/* Single Screen view — local styles. */

/* Drop the .aq-scs ancestor — page renders its own scroll root. */
.scs-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.scs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--aq-line);
}
.scs-header-meta { flex: 1; min-width: 0; }
.scs-header-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aq-text-faint);
  margin-bottom: 8px;
}
.scs-id {
  color: var(--aq-text);
  background: var(--aq-surface);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--aq-line);
}
.scs-divider {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--aq-text-faint);
  opacity: 0.5;
}
.scs-header h1 {
  margin: 0 0 8px;
  font-family: var(--aq-ff-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--aq-text);
}
.scs-header-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scs-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--aq-success) 14%, transparent);
  color: var(--aq-success);
  font-family: var(--aq-ff-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scs-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--aq-success);
  box-shadow: 0 0 6px var(--aq-success);
}
.scs-meta { font-size: 12px; color: var(--aq-text-faint); }

.scs-header-actions { display: flex; gap: 8px; }
.scs-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px;
  background: var(--aq-text);
  border: 1px solid var(--aq-text);
  border-radius: 7px;
  color: #08090b;
  font: inherit; font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.scs-btn:hover { background: rgba(255,255,255,0.92); }
.scs-btn.ghost {
  background: var(--aq-surface-2);
  border-color: var(--aq-line);
  color: var(--aq-text);
  font-weight: 400;
}
.scs-btn.ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--aq-line-strong); }
.scs-btn.sm { padding: 5px 10px; font-size: 11.5px; }

.scs-link {
  background: transparent; border: 0; padding: 0;
  color: var(--aq-accent);
  font: inherit; font-size: 11.5px;
  cursor: pointer;
}
.scs-link:hover { text-decoration: underline; }

/* ── Cards ────────────────────────────────────────────────── */
.scs-card {
  background: var(--aq-surface);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  overflow: hidden;
}
.scs-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--aq-line);
}
.scs-card-head h2 {
  margin: 0 0 2px;
  font-family: var(--aq-ff-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--aq-text);
  letter-spacing: -0.005em;
}
.scs-card-head p {
  margin: 0;
  font-size: 11.5px;
  color: var(--aq-text-faint);
}
.scs-card-actions { display: flex; gap: 6px; }

/* ── Top row ──────────────────────────────────────────────── */
.scs-toprow {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}

.scs-preview-card {
  background: var(--aq-surface);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  overflow: hidden;
}
.scs-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--aq-danger) 18%, transparent);
  color: #FF7A7A;
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}
.scs-preview-tag .scs-status-dot { background: #FF7A7A; box-shadow: 0 0 6px #FF7A7A; animation: scs-pulse 2s ease-in-out infinite; }
@keyframes scs-pulse { 50% { opacity: 0.5; } }

.scs-preview { padding: 18px; }
.scs-preview-frame {
  background: linear-gradient(135deg, #16191e, #0c0e12);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  padding: 8px;
  aspect-ratio: 16 / 9;
}
.scs-preview-body {
  height: 100%;
  border-radius: 6px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.scs-preview-pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scs-preview-content { position: relative; z-index: 1; }
.scs-preview-eyebrow {
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.scs-preview-title {
  font-family: var(--aq-ff-display);
  font-size: 38px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.scs-preview-sub {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.scs-preview-progress {
  margin-top: 18px;
  width: 240px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
}
.scs-preview-progress-fill {
  height: 100%;
  background: white;
  border-radius: 99px;
}

.scs-preview-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--aq-line);
}
.scs-preview-footer > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.scs-preview-footer span {
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  color: var(--aq-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scs-preview-footer b { color: var(--aq-text); font-weight: 500; }

/* ── Stats grid ───────────────────────────────────────────── */
.scs-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--aq-line);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  overflow: hidden;
}
.scs-stat-card {
  background: var(--aq-surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scs-stat-label {
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aq-text-faint);
}
.scs-stat-value {
  font-family: var(--aq-ff-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--aq-text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.scs-stat-value.is-ok { color: var(--aq-success); }
.scs-stat-value > span { font-size: 13px; color: var(--aq-text-faint); font-weight: 400; }
.scs-stat-sub { font-size: 11px; color: var(--aq-text-faint); }

.scs-bar {
  margin-top: 4px;
  height: 4px;
  background: var(--aq-surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.scs-bar-fill {
  height: 100%;
  border-radius: 99px;
}

/* ── Schedule ─────────────────────────────────────────────── */
.scs-schedule { padding: 16px 18px 18px; }
.scs-schedule-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  color: var(--aq-text-faint);
  letter-spacing: 0.04em;
  padding: 0 2px;
  margin-bottom: 6px;
}
.scs-schedule-track {
  position: relative;
  height: 56px;
  background: var(--aq-surface-2);
  border: 1px solid var(--aq-line);
  border-radius: 7px;
  overflow: hidden;
}
.scs-schedule-bar {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
}
.scs-schedule-bar > span {
  font-size: 10px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.scs-bar-play { background: rgba(157, 188, 255, 0.42); }
.scs-bar-camp { background: color-mix(in srgb, var(--aq-accent) 65%, transparent); }
.scs-bar-ann  { background: rgba(242, 200, 121, 0.55); }
.scs-bar-off  { background: rgba(255,255,255,0.05); }
.scs-bar-off  > span { color: var(--aq-text-faint); }

.scs-schedule-now {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--aq-text);
  z-index: 2;
}
.scs-schedule-now::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aq-text);
}
.scs-schedule-now > span {
  position: absolute;
  top: -16px;
  left: 6px;
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  color: var(--aq-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.scs-schedule-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--aq-text-faint);
  flex-wrap: wrap;
}
.scs-schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scs-legend-swatch {
  display: inline-block;
  width: 12px; height: 8px;
  border-radius: 2px;
}

/* ── Bottom row ───────────────────────────────────────────── */
.scs-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scs-hw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 16px 18px 18px;
}
.scs-hw-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--aq-line);
}
.scs-hw-grid > div:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.scs-hw-grid span {
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  color: var(--aq-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scs-hw-grid b {
  color: var(--aq-text);
  font-weight: 500;
  font-size: 12.5px;
}
.scs-mono { font-family: var(--aq-ff-mono); font-size: 11.5px !important; letter-spacing: 0.04em; }

/* ── History ──────────────────────────────────────────────── */
.scs-history {
  list-style: none;
  margin: 0;
  padding: 8px 18px 14px;
  position: relative;
}
.scs-history::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 16px;
  bottom: 18px;
  width: 1px;
  background: var(--aq-line);
}
.scs-event {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  position: relative;
}
.scs-event-mark {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aq-text-faint);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-left: 3px;
  transform: translateY(2px);
}
.scs-event-ok .scs-event-mark { background: var(--aq-success); }
.scs-event-warn .scs-event-mark { background: #F2C879; }
.scs-event-time {
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  color: var(--aq-text-faint);
  letter-spacing: 0.04em;
  width: 80px;
  flex-shrink: 0;
}
.scs-event-msg {
  font-size: 12px;
  color: var(--aq-text-dim);
  line-height: 1.5;
  flex: 1;
}
.scs-event-warn .scs-event-msg { color: var(--aq-text); }
