/* Active Mode remodel overrides. Load after styles.css. */

:root {
  --remodel-bg: #08090b;
  --remodel-surface: #111318;
  --remodel-surface-2: #181b22;
  --remodel-surface-3: #222632;
  --remodel-surface-raised: #1c2029;
  --remodel-ink: #f4f7fb;
  --remodel-ink-soft: #c8d0dc;
  --remodel-ink-muted: #8993a3;
  --remodel-line: #2a2f3a;
  --remodel-line-strong: #3a4150;
  --remodel-green: #38d27d;
  --remodel-amber: #ffbf4d;
  --remodel-red: #ff5d5d;
  --remodel-blue: #5aa8ff;
  --remodel-cyan: #35d6ff;
  --remodel-magenta: #d36bff;
  --remodel-stage-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --remodel-inset: inset 0 1px rgba(255, 255, 255, 0.07), inset 0 -1px rgba(0, 0, 0, 0.46);
}

:root[data-theme="light"] {
  --remodel-bg: #f4f6f9;
  --remodel-surface: #ffffff;
  --remodel-surface-2: #f3f6fa;
  --remodel-surface-3: #e8eef6;
  --remodel-surface-raised: #ffffff;
  --remodel-ink: #151b24;
  --remodel-ink-soft: #344256;
  --remodel-ink-muted: #667386;
  --remodel-line: #d5dde8;
  --remodel-line-strong: #b7c3d2;
  --remodel-stage-shadow: 0 18px 42px rgba(24, 32, 45, 0.12);
  --remodel-inset: inset 0 1px rgba(255, 255, 255, 0.78), inset 0 -1px rgba(15, 23, 42, 0.08);
}

.screen-active {
  --rail-width: 168px;
  --active-accent: var(--remodel-cyan);
  --active-accent-soft: color-mix(in srgb, var(--active-accent) 14%, transparent);
  --active-viewport-top-gap: 18px;
  --active-viewport-bottom-gap: 50px;
}

.screen-active .workspace {
  width: min(1490px, 100%);
  padding: var(--active-viewport-top-gap) 24px var(--active-viewport-bottom-gap);
}

.screen-active .content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 316px);
  gap: 26px;
  align-items: start;
}

.screen-active .main-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.screen-active .main-column .log-panel {
  margin-top: 0;
}

.screen-active .main-panel {
  container-type: inline-size;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.screen-active .activity-header {
  display: none;
}

.screen-active .presentation-console {
  display: grid;
  gap: 18px;
}

.screen-active .presentation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.screen-active .presentation-stage-column,
.screen-active .presentation-clock-column {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.screen-active .presentation-stage-column .presentation-program-monitor.tf-program-monitor {
  min-height: clamp(118px, 15cqi, 172px);
  padding: clamp(14px, 1.8cqi, 22px);
}

.screen-active .presentation-stage-column .presentation-program-monitor .tf-speaker-name {
  max-width: 19ch;
  font-size: clamp(2.3rem, 4.8cqw, 4.65rem);
  line-height: 0.92;
}

.screen-active .presentation-progress-card,
.screen-active .presentation-score-preview-card,
.screen-active .takeaway-prompt-card,
.screen-active .presentation-rubric-panel,
.screen-active .presentation-notes-panel {
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-surface-2) 94%, transparent), color-mix(in srgb, var(--remodel-surface) 98%, transparent)),
    var(--remodel-surface);
  box-shadow: var(--remodel-inset);
}

.screen-active .presentation-progress-card {
  padding: 16px;
}

.screen-active .presentation-score-preview-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-color: color-mix(in srgb, var(--remodel-green) 24%, var(--remodel-line));
}

.screen-active .presentation-score-preview-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--remodel-green) 28%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-green) 12%, transparent), transparent),
    color-mix(in srgb, var(--remodel-surface-2) 82%, transparent);
}

.screen-active .presentation-score-preview-card.is-building .presentation-score-preview-main {
  border-color: color-mix(in srgb, var(--remodel-blue) 28%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-blue) 11%, transparent), transparent),
    color-mix(in srgb, var(--remodel-surface-2) 82%, transparent);
}

.screen-active .presentation-score-preview-main span,
.screen-active .presentation-score-breakdown span,
.screen-active .presentation-score-preview-footer span {
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.screen-active .presentation-score-preview-main strong {
  color: var(--remodel-green);
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 2.7cqw, 2.25rem);
  line-height: 0.9;
  text-align: right;
}

.screen-active .presentation-score-preview-card.is-building .presentation-score-preview-main strong {
  color: var(--remodel-blue);
}

.screen-active .presentation-score-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.screen-active .presentation-score-breakdown > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  padding: 8px;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--remodel-bg) 44%, var(--remodel-surface-2));
}

.screen-active .presentation-score-breakdown strong {
  color: var(--remodel-ink);
  font-family: var(--font-mono);
  font-size: 0.96rem;
  line-height: 1;
}

.screen-active .presentation-score-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.screen-active .presentation-score-preview-footer strong {
  color: var(--remodel-ink-soft);
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.screen-active .presentation-penalty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.screen-active .presentation-penalty-option {
  width: fit-content;
  min-height: 46px;
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: 18px max-content;
  gap: 9px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--remodel-amber) 36%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-amber) 9%, var(--remodel-surface-2));
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
}

.screen-active .presentation-penalty-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.screen-active .presentation-penalty-option span {
  min-width: max-content;
}

.screen-active .presentation-penalty-option.late-penalty-option {
  border-color: color-mix(in srgb, var(--remodel-red) 40%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-red) 10%, var(--remodel-surface-2));
}

.screen-active .presentation-penalty-option.late-penalty-option span {
  color: color-mix(in srgb, var(--remodel-red) 76%, var(--remodel-ink));
}

.screen-active .presentation-stopwatch-card {
  min-height: 320px;
}

.screen-active .presentation-flow-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screen-active .presentation-stopwatch-card .timer-primary-controls:has(.filler-instrument) {
  grid-template-columns: minmax(172px, 0.92fr) minmax(150px, 1.08fr);
}

.screen-active .presentation-inline-controls {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.screen-active .presentation-progress-ticker {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--remodel-cyan) 30%, var(--remodel-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--remodel-cyan) 9%, var(--remodel-surface-2));
  box-shadow: var(--remodel-inset);
}

.screen-active .presentation-progress-ticker span,
.screen-active .presentation-progress-ticker small {
  min-width: 0;
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.screen-active .presentation-progress-ticker strong {
  color: var(--remodel-ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.screen-active .presentation-progress-ticker small {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.screen-active .presentation-stopwatch-card .timer-primary-controls:has(.filler-instrument) .presentation-flow-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-active .presentation-stopwatch-card .presentation-inline-controls .presentation-flow-actions {
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.screen-active .presentation-stopwatch-card .presentation-inline-controls .presentation-flow-actions > button {
  min-height: 60px;
}

.screen-active .presentation-flow-actions > button:only-child {
  grid-column: 1 / -1;
}

.screen-active .presentation-rubric-panel,
.screen-active .presentation-notes-panel {
  padding: 16px;
}

.screen-active .presentation-rubric-grid {
  display: grid;
  gap: 8px;
}

.screen-active .presentation-rubric-row {
  --rubric-accent: var(--remodel-line-strong);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.42fr) 46px;
  gap: 10px;
  position: relative;
  align-items: center;
  min-height: 50px;
  overflow: hidden;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--remodel-surface-3) 72%, var(--remodel-surface));
}

.screen-active .presentation-rubric-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: color-mix(in srgb, var(--rubric-accent) 76%, var(--remodel-line-strong));
  opacity: 0.68;
}

.screen-active .presentation-rubric-row span {
  color: var(--remodel-ink);
  font-weight: 760;
}

.screen-active .presentation-rubric-row select,
.screen-active .presentation-notes-panel textarea {
  width: 100%;
  border: 1px solid var(--remodel-line-strong);
  border-radius: 8px;
  background: var(--remodel-bg);
  color: var(--remodel-ink);
}

.screen-active .presentation-rubric-row:not(.level-blank) {
  border-color: color-mix(in srgb, var(--rubric-accent) 58%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--rubric-accent) 16%, transparent), transparent 62%),
    color-mix(in srgb, var(--rubric-accent) 7%, var(--remodel-surface-2));
}

.screen-active .presentation-rubric-row:not(.level-blank) select {
  border-color: color-mix(in srgb, var(--rubric-accent) 36%, var(--remodel-line-strong));
}

.screen-active .presentation-rubric-row strong {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--remodel-ink-soft);
}

.screen-active .presentation-rubric-row:not(.level-blank) strong {
  color: color-mix(in srgb, var(--rubric-accent) 84%, var(--remodel-ink));
}

.screen-active .presentation-rubric-row.level-awesome {
  --rubric-accent: var(--remodel-blue);
}

.screen-active .presentation-rubric-row.level-great {
  --rubric-accent: var(--remodel-cyan);
}

.screen-active .presentation-rubric-row.level-good {
  --rubric-accent: var(--remodel-green);
}

.screen-active .presentation-rubric-row.level-okay {
  --rubric-accent: var(--remodel-amber);
}

.screen-active .presentation-rubric-row.level-little {
  --rubric-accent: var(--remodel-magenta);
}

.screen-active .presentation-rubric-row.level-none {
  --rubric-accent: var(--remodel-red);
}

.screen-active .presentation-notes-panel textarea {
  min-height: 210px;
  padding: 12px;
  resize: vertical;
}

.screen-active .presentation-notes-panel .presentation-penalty-grid {
  margin-top: 12px;
}

.screen-active .count-pill.danger,
.presentation-report .count-pill.danger {
  border-color: color-mix(in srgb, var(--remodel-red) 45%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-red) 12%, transparent);
  color: var(--remodel-red);
}

@container (max-width: 860px) {
  .screen-active .presentation-hero {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 620px) {
  .screen-active .presentation-rubric-row {
    grid-template-columns: 1fr;
  }

  .screen-active .presentation-rubric-row strong {
    text-align: left;
  }
}

.screen-active .side-panel {
  position: sticky;
  top: calc(var(--studio-bar-height) + var(--active-viewport-top-gap));
  height: calc(100dvh - var(--studio-bar-height) - var(--active-viewport-top-gap) - var(--active-viewport-bottom-gap));
  max-height: calc(100dvh - var(--studio-bar-height) - var(--active-viewport-top-gap) - var(--active-viewport-bottom-gap));
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.screen-active .side-panel .roster-drawer {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.screen-active .side-panel .roster-drawer-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.screen-active .side-panel .roster-list {
  min-height: 0;
  overflow: visible;
  padding-bottom: 28px;
}

.screen-active .side-panel .roster-summary-board {
  position: sticky;
  top: 0;
  z-index: 2;
}

.screen-active .side-panel .roster-list::after {
  content: "";
  display: block;
  min-height: 14px;
}

.screen-active .activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom-color: var(--remodel-line);
}

.screen-active .activity-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.screen-active .activity-header .action-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 5px;
  padding: 5px;
}

.screen-active .activity-header .action-cluster-label {
  flex: 0 0 auto;
  align-self: center;
  writing-mode: horizontal-tb;
  transform: none;
}

.screen-active .activity-header .system-button {
  flex: 1 1 180px;
  min-height: 38px;
}

.screen-active .activity-title h1 {
  flex: 0 0 auto;
  color: var(--remodel-ink);
  font-size: clamp(1.25rem, 1.35vw, 1.65rem);
  letter-spacing: 0;
  line-height: 1;
}

.screen-active .activity-title .activity-kicker {
  flex: 0 0 auto;
  padding: 3px 7px;
  font-size: 0.62rem;
  line-height: 1;
}

.screen-active .activity-title .muted,
.screen-active .muted-count {
  color: var(--remodel-ink-muted);
}

.screen-active .activity-title .muted {
  min-width: 0;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-active .prompt-dock {
  gap: 7px;
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 8px;
}

.screen-active .prompt-dock .prompt-control {
  gap: 3px;
}

.screen-active .prompt-dock .prompt-control span {
  padding-left: 6px;
  font-size: 0.64rem;
}

.screen-active .prompt-dock input {
  min-height: 36px;
  border-radius: 7px;
}

/* Shared widescreen stage for Wins and Never Met. */
.screen-active .live-console-layout {
  margin-bottom: 16px;
}

.screen-active .live-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.72fr);
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active-accent) 7%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent),
    color-mix(in srgb, var(--remodel-surface-2) 78%, transparent);
  box-shadow: var(--remodel-inset);
}

.screen-active .solo-live-deck {
  grid-template-columns: minmax(0, 1.72fr) minmax(310px, 0.72fr);
  gap: 12px;
}

.screen-active .program-stack,
.screen-active .timer-stack,
.screen-active .tf-program-monitor,
.screen-active .tf-clock-module,
.screen-active .tf-instrument,
.screen-active .speaker-tracking-card,
.screen-active .queue-block {
  min-width: 0;
}

.screen-active .program-card,
.screen-active .timer-card,
.screen-active .tf-program-monitor,
.screen-active .tf-instrument,
.screen-active .speaker-tracking-card,
.screen-active .presence-console-card,
.screen-active .operator-queue {
  border-radius: 8px;
  border-color: var(--remodel-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), transparent),
    var(--remodel-surface-raised);
  box-shadow: var(--remodel-inset), 0 18px 44px rgba(0, 0, 0, 0.18);
}

/* Current identity band. */
.screen-active .program-card,
.screen-active .tf-program-monitor {
  height: clamp(220px, 26cqw, 320px);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(24px, auto) minmax(0, 1fr) minmax(22px, auto);
  gap: clamp(8px, 1.2cqw, 16px);
  padding: clamp(16px, 2.2cqw, 28px);
  border-left: 5px solid var(--active-accent);
  overflow: hidden;
}

.screen-active .solo-stage-column .program-card {
  height: clamp(232px, 21cqw, 260px);
}

.screen-active .solo-stage-tools .next-instrument {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.screen-active .solo-stage-tools .next-three-list {
  min-height: 0;
  overflow: hidden;
}

.screen-active .solo-stage-tools .next-three-row {
  min-height: 40px;
}

.screen-active .program-card::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 16%, transparent), transparent 42%),
    linear-gradient(180deg, transparent 0 calc(100% - 3px), color-mix(in srgb, var(--active-accent) 48%, transparent) calc(100% - 3px));
  opacity: 0.72;
}

.screen-active .program-card-topline,
.screen-active .tf-monitor-top {
  display: grid;
  grid-template-columns: minmax(0, max-content) 1fr minmax(0, max-content);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.screen-active .program-card-topline .status-pill,
.screen-active .tf-monitor-top > :last-child {
  justify-self: end;
}

.screen-active .program-card .status-pill {
  position: static;
  max-width: 100%;
}

.screen-active .tf-monitor-top > :nth-child(2) {
  justify-self: center;
}

.screen-active .tf-monitor-bottom {
  min-width: 0;
}

.screen-active .speaker-name,
.screen-active .tf-speaker-name {
  align-self: center;
  color: var(--remodel-ink);
  display: -webkit-box;
  font-family: var(--font-display);
  letter-spacing: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding-block-end: 0.12em;
  margin-block-end: -0.12em;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.screen-active .speaker-name {
  max-width: 18ch;
  font-size: clamp(2.8rem, 6.2cqw, 5.45rem);
  line-height: 1.06;
}

.screen-active .tf-speaker-name {
  max-width: 18ch;
  font-size: clamp(2.7rem, 5.15cqw, 4.95rem);
  line-height: 1.06;
}

.screen-active .activity-kicker,
.screen-active .console-chip {
  border-color: color-mix(in srgb, var(--active-accent) 44%, var(--remodel-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--active-accent) 12%, var(--remodel-surface-2));
  color: color-mix(in srgb, var(--active-accent) 84%, white);
  letter-spacing: 0.04em;
}

.screen-active .program-meta,
.screen-active .pair-summary {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Timer and controls take cockpit priority. */
.screen-active .timer-stack .timer-card,
.screen-active .tf-clock-module .timer-card {
  min-height: 0;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  border-color: color-mix(in srgb, var(--remodel-blue) 36%, var(--remodel-line));
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--remodel-blue) 18%, transparent), transparent 8.5rem),
    linear-gradient(180deg, #10141b, #090b10);
  color: var(--remodel-ink);
}

.screen-active .timer-readout,
.screen-active .tf-clock-module .timer-readout,
.screen-active .timer-stack .timer-readout {
  justify-self: center;
  color: var(--remodel-amber);
  font-family: var(--font-mono);
  font-size: clamp(4.15rem, 7.4cqw, 6.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 0.9;
}

.screen-active .timer-readout.warning {
  color: var(--remodel-amber);
}

.screen-active .timer-readout.done {
  color: var(--remodel-green);
}

.screen-active .flow-actions,
.screen-active .timer-actions {
  display: grid;
  min-width: 0;
  align-content: stretch;
  gap: 8px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 22%, var(--remodel-line));
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.screen-active .timer-primary-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 10px;
  align-items: stretch;
}

.screen-active .timer-primary-controls:has(.filler-instrument) {
  grid-template-columns: minmax(0, 1.24fr) minmax(82px, 0.76fr);
  gap: 10px;
}

.screen-active .timer-primary-controls:has(.filler-instrument) .flow-actions {
  grid-template-columns: 1fr;
}

.screen-active .flow-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-active .timer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-active .timer-actions > button,
.screen-active .flow-actions > button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 9px 10px;
  border-radius: 6px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Filler module stays visually distinct and close to live controls. */
.screen-active .tf-instrument-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.screen-active .tf-instrument-row .tf-instrument {
  height: 100%;
  min-height: 0;
  gap: 10px;
  padding: 12px;
}

.screen-active .tf-instrument-row .instrument-heading {
  min-height: 22px;
}

.screen-active .tf-side-controls {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screen-active .setup-instrument {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
}

.screen-active .setup-control-buttons {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
}

.screen-active .setup-word-readout {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--remodel-amber) 30%, var(--remodel-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--remodel-amber) 7%, var(--remodel-surface-2));
  overflow: visible;
}

.screen-active .tf-stage-tools > .setup-instrument {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-auto-rows: auto;
  align-content: start;
  align-items: stretch;
  height: auto;
  padding: 14px;
}

.screen-active .tf-stage-tools > .setup-instrument .instrument-heading {
  grid-column: 1 / -1;
}

.screen-active .tf-stage-tools > .setup-instrument .setup-word-readout {
  min-height: 0;
  margin-bottom: 0;
  align-content: center;
  grid-column: 1 / -1;
}

.screen-active .tf-stage-tools > .setup-instrument .setup-control-buttons {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.screen-active .tf-stage-tools > .setup-instrument .system-button {
  min-height: 0;
}

.screen-active .setup-word-readout span {
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.screen-active .setup-word-readout strong {
  min-width: 0;
  color: var(--remodel-ink);
  font-size: clamp(0.95rem, 1.28cqw, 1.18rem);
  line-height: 1.16;
  overflow: visible;
  overflow-wrap: break-word;
  text-overflow: clip;
  text-wrap: pretty;
  white-space: normal;
  word-break: normal;
}

.screen-active .setup-instrument .system-button {
  min-width: 0;
  min-height: 56px;
  justify-content: start;
  text-align: left;
}

.screen-active .setup-instrument .system-button span,
.screen-active .setup-instrument .system-button strong {
  min-width: 0;
  max-width: 100%;
}

.screen-active .filler-instrument,
.screen-active .speaker-tracking-card {
  border-color: color-mix(in srgb, var(--remodel-amber) 38%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-amber) 10%, transparent), transparent 64%),
    var(--remodel-surface-raised);
}

.screen-active .filler-hardware,
.screen-active .compact-filler {
  display: grid;
  grid-template-columns: minmax(48px, 58px) minmax(0, 1fr) minmax(48px, 58px);
  align-items: stretch;
  gap: 8px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--remodel-amber) 28%, var(--remodel-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--remodel-amber) 7%, #05070a);
  box-shadow: var(--remodel-inset);
}

.screen-active .filler-hardware > *,
.screen-active .compact-filler > * {
  min-width: 0;
}

.screen-active .compact-filler {
  grid-template-columns: minmax(42px, 50px) minmax(0, 1fr) minmax(42px, 50px);
  gap: 6px;
  padding: 6px;
}

.screen-active .filler-hardware .stepper-button,
.screen-active .compact-filler .stepper-button {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  border-color: color-mix(in srgb, var(--remodel-amber) 46%, var(--remodel-line));
  color: var(--remodel-ink);
  font-size: 1.55rem;
  line-height: 1;
}

.screen-active .filler-total {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-height: 70px;
  min-width: 0;
  padding: 5px 4px;
  border-radius: 6px;
  border-color: color-mix(in srgb, var(--remodel-amber) 34%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-amber) 11%, var(--remodel-surface-2));
  overflow: hidden;
}

.screen-active .filler-total span {
  max-width: 100%;
  color: var(--remodel-amber);
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4cqw, 4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 0.95;
}

.screen-active .filler-total small {
  color: var(--remodel-ink-muted);
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

/* Think Fast horizontal live stage. */
.screen-active .thinkfast-console {
  display: grid;
  gap: 12px;
}

.screen-active .thinkfast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(310px, 0.72fr);
  align-items: stretch;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.screen-active .tf-program-monitor {
  --active-accent: var(--remodel-amber);
  grid-template-rows: minmax(24px, auto) minmax(0, 1fr);
}

.screen-active .tf-stage-column {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr);
  gap: 12px;
}

.screen-active .tf-stage-column .tf-program-monitor {
  height: clamp(185px, 20cqw, 260px);
}

.screen-active .tf-stage-tools {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 12px;
}

.screen-active .tf-stage-tools .tf-instrument {
  height: 100%;
}

.screen-active .tf-stage-tools .setup-instrument {
  min-height: 0;
  gap: 10px;
}

.screen-active .tf-stage-tools .setup-control-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-active .tf-stage-tools .system-button {
  min-height: 48px;
}

.screen-active .tf-clock-module {
  display: grid;
  align-content: stretch;
  gap: 8px;
}

.screen-active .tf-clock-module .timer-card {
  border-color: color-mix(in srgb, var(--remodel-amber) 34%, var(--remodel-line));
}

.screen-active .tf-clock-module .filler-instrument {
  min-height: 0;
}

.screen-active .tf-stage-tools > .presence-instrument,
.screen-active .review-instrument {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 9px;
  padding: 10px;
  border-color: color-mix(in srgb, var(--remodel-blue) 34%, var(--remodel-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-blue) 9%, transparent), transparent 42%),
    color-mix(in srgb, var(--remodel-surface-2) 88%, transparent);
  box-shadow: var(--remodel-inset);
}

.screen-active .tf-stage-tools > .presence-instrument .instrument-heading,
.screen-active .review-instrument .instrument-heading {
  gap: 8px;
  margin-bottom: 0;
}

.screen-active .tf-stage-tools > .presence-instrument .instrument-heading strong,
.screen-active .review-instrument .instrument-heading strong {
  font-size: 0.78rem;
}

.screen-active .tf-stage-tools > .presence-instrument .rating-button {
  min-height: 0;
  padding: 8px 7px;
  font-size: 0.74rem;
}

.screen-active .tf-stage-tools > .presence-instrument .presence-buttons {
  align-self: stretch;
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
}

.screen-active .review-instrument .review-nav {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) repeat(2, minmax(74px, 0.78fr));
  align-self: stretch;
  align-items: stretch;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.screen-active .review-instrument .review-nav.state-hidden {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-active .review-instrument .review-nav .count-pill,
.screen-active .review-instrument .review-nav > button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  border-radius: 6px;
  white-space: normal;
}

.screen-active .review-instrument .review-nav .count-pill {
  padding: 5px 7px;
  font-size: 0.68rem;
}

.screen-active .review-instrument .review-nav > button {
  padding: 7px 8px;
  line-height: 1.05;
}

.screen-active .timer-turn-nav {
  display: grid;
  gap: 7px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 24%, var(--remodel-line));
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.screen-active .timer-turn-nav-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.screen-active .timer-turn-nav-heading span {
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.screen-active .timer-turn-nav-heading strong {
  min-width: 0;
  color: var(--remodel-ink);
  font-size: 0.74rem;
  line-height: 1;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-active .timer-turn-nav .review-nav.state-hidden {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.screen-active .timer-turn-nav .review-nav > button {
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.05;
}

.screen-active .timer-card .filler-instrument {
  min-width: 0;
  padding: 9px;
  border-color: color-mix(in srgb, var(--remodel-amber) 34%, var(--remodel-line));
  background: rgba(0, 0, 0, 0.22);
  box-shadow: none;
}

.screen-active .timer-card .filler-instrument .instrument-heading {
  margin-bottom: 5px;
}

.screen-active .timer-card .filler-instrument .instrument-heading strong {
  display: none;
}

.screen-active .timer-card .filler-hardware {
  grid-template-columns: minmax(32px, 0.85fr) minmax(44px, 1.15fr) minmax(32px, 0.85fr);
  gap: 6px;
  padding: 6px;
}

.screen-active .timer-card .filler-hardware .stepper-button {
  min-width: 0;
}

.screen-active .timer-card .filler-total,
.screen-active .timer-card .filler-hardware .stepper-button {
  min-height: 56px;
}

.screen-active .timer-card .filler-total span {
  font-size: clamp(1.75rem, 3.2cqw, 2.25rem);
}

.screen-active .timer-card .filler-total small {
  display: none;
}

/* Think Fast control-system pass: one visual language, purpose-coded accents. */
.screen-active .thinkfast-console {
  --tf-radius: 8px;
  --tf-panel-accent: var(--remodel-blue);
  --tf-panel-bg: color-mix(in srgb, var(--remodel-surface-raised) 88%, #05070a);
  --tf-panel-border: color-mix(in srgb, var(--tf-panel-accent) 30%, var(--remodel-line));
  --tf-control-bg: color-mix(in srgb, var(--remodel-surface-2) 78%, #06080c);
  --tf-control-border: color-mix(in srgb, var(--tf-panel-accent) 22%, var(--remodel-line));
}

.screen-active .thinkfast-console :is(.tf-program-monitor, .tf-clock-module .timer-card, .tf-stage-tools .tf-instrument, .tf-instrument-row .tf-instrument) {
  border-color: var(--tf-panel-border);
  border-radius: var(--tf-radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tf-panel-accent) 8%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.044), transparent),
    var(--tf-panel-bg);
  box-shadow: var(--remodel-inset), 0 18px 42px rgba(0, 0, 0, 0.2);
}

.screen-active .thinkfast-console .tf-program-monitor {
  --tf-panel-accent: var(--remodel-amber);
  --tf-panel-bg: color-mix(in srgb, var(--remodel-surface-raised) 92%, #07080b);
  border-left-color: var(--tf-panel-accent);
}

.screen-active .thinkfast-console .tf-clock-module .timer-card {
  --tf-panel-accent: var(--remodel-amber);
  --tf-panel-bg: linear-gradient(180deg, #10141b, #080a0f);
}

.screen-active .thinkfast-console .setup-instrument {
  --tf-panel-accent: var(--remodel-cyan);
}

.screen-active .thinkfast-console .presence-instrument {
  --tf-panel-accent: var(--remodel-blue);
}

.screen-active .thinkfast-console .next-instrument,
.screen-active .thinkfast-console .timer-turn-nav {
  --tf-panel-accent: var(--remodel-blue);
}

.screen-active .thinkfast-console :is(.instrument-heading, .control-label-row, .timer-turn-nav-heading, .tf-monitor-top) {
  min-height: 24px;
  gap: 8px;
}

.screen-active .thinkfast-console :is(.instrument-heading span, .timer-turn-nav-heading span),
.screen-active .thinkfast-console .control-label-row .activity-kicker {
  color: color-mix(in srgb, var(--tf-panel-accent) 72%, var(--remodel-ink-muted));
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.screen-active .thinkfast-console :is(.instrument-heading strong, .timer-turn-nav-heading strong, .control-label-row .count-pill) {
  color: var(--remodel-ink);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1;
}

.screen-active .thinkfast-console :is(.setup-word-readout, .system-button, .rating-button, .timer-turn-nav, .flow-actions, .timer-actions, .filler-hardware, .filler-total, .stepper-button) {
  border-radius: 7px;
  border-color: var(--tf-control-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, white 4%, transparent), transparent),
    var(--tf-control-bg);
  box-shadow: var(--remodel-inset);
}

.screen-active .thinkfast-console :is(.system-button, .rating-button, .timer-turn-nav .review-nav > button, .timer-actions > button, .flow-actions > button, .stepper-button) {
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.screen-active .thinkfast-console :is(.system-button, .rating-button, .timer-turn-nav .review-nav > button, .timer-actions > button, .flow-actions > button, .stepper-button):hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--tf-panel-accent) 52%, var(--remodel-line-strong));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tf-panel-accent) 11%, transparent), transparent),
    color-mix(in srgb, var(--remodel-surface-3) 72%, #06080c);
}

.screen-active .tf-stage-tools > .setup-instrument {
  height: auto;
}

.screen-active .tf-stage-tools > .setup-instrument .setup-word-readout {
  height: auto;
  min-height: 74px;
  padding: 14px 16px;
  border-color: color-mix(in srgb, var(--tf-panel-accent) 52%, var(--remodel-line-strong));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tf-panel-accent) 10%, transparent), transparent 62%),
    color-mix(in srgb, var(--remodel-surface-3) 72%, #05080d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.screen-active .tf-stage-tools > .setup-instrument .setup-word-readout span {
  color: color-mix(in srgb, var(--tf-panel-accent) 76%, var(--remodel-ink-muted));
}

.screen-active .tf-stage-tools > .setup-instrument .setup-word-readout strong {
  font-size: clamp(1.15rem, 1.6cqw, 1.44rem);
  line-height: 1.08;
}

.screen-active .tf-stage-tools > .setup-instrument .setup-control-buttons {
  gap: 10px;
  grid-auto-rows: auto;
}

.screen-active .tf-stage-tools > .setup-instrument .system-button {
  position: relative;
  min-height: 62px;
  padding: 11px 13px;
  border-color: color-mix(in srgb, var(--tf-panel-accent) 34%, var(--remodel-line));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 48%),
    color-mix(in srgb, var(--remodel-surface-2) 84%, #05080d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 0 rgba(0, 0, 0, 0.46);
  cursor: pointer;
}

.screen-active .tf-stage-tools > .setup-instrument .system-button span {
  color: color-mix(in srgb, var(--tf-panel-accent) 58%, var(--remodel-ink-muted));
}

.screen-active .tf-stage-tools > .setup-instrument .system-button strong {
  color: var(--remodel-ink);
  font-size: 1rem;
  line-height: 1.05;
}

.screen-active .tf-stage-tools > .setup-instrument .system-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 0 rgba(0, 0, 0, 0.5);
}

.screen-active .tf-stage-tools > .setup-instrument .system-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.5);
}

.screen-active .thinkfast-console .flow-actions .primary-button {
  --tf-panel-accent: var(--remodel-green);
  border-color: color-mix(in srgb, var(--remodel-green) 62%, var(--remodel-line));
  background: linear-gradient(180deg, #4be08a, #31bf6d);
  color: #06110b;
  font-weight: 860;
}

.screen-active .thinkfast-console .flow-actions .danger-button {
  --tf-panel-accent: var(--remodel-red);
  border-color: color-mix(in srgb, var(--remodel-red) 48%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-red) 14%, transparent), transparent),
    color-mix(in srgb, var(--remodel-red) 12%, var(--remodel-surface-2));
  color: color-mix(in srgb, var(--remodel-red) 76%, white);
  font-weight: 820;
}

.screen-active .thinkfast-console [data-action="random-word"],
.screen-active .thinkfast-console .filler-instrument {
  --tf-panel-accent: var(--remodel-amber);
}

.screen-active .thinkfast-console [data-action="randomize-think"] {
  --tf-panel-accent: var(--remodel-blue);
}

.screen-active .thinkfast-console .rating-button.active {
  border-color: color-mix(in srgb, var(--remodel-green) 54%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-green) 20%, transparent), transparent),
    color-mix(in srgb, var(--remodel-green) 14%, var(--remodel-surface));
  color: var(--remodel-ink);
}

.screen-active .thinkfast-console .timer-turn-nav {
  padding: 8px;
  border-color: color-mix(in srgb, var(--remodel-blue) 32%, var(--remodel-line));
}

.screen-active .thinkfast-console .timer-turn-nav .review-nav > button {
  background: color-mix(in srgb, var(--remodel-blue) 8%, var(--remodel-surface-2));
}

.screen-active .tf-monitor-bottom strong,
.screen-active .instrument-heading strong {
  color: var(--remodel-ink);
}

.screen-active .next-three-list {
  gap: 6px;
}

.screen-active .next-three-row {
  min-height: 38px;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
}

.screen-active .next-three-row > span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.screen-active .next-instrument .small-button {
  min-height: 34px;
  border-radius: 6px;
}

.screen-active .presentation-queue-controls {
  display: grid;
  margin-top: 4px;
}

.screen-active .presentation-reshuffle-button {
  width: 100%;
}

/* Never Met pair lanes. */
.screen-active .live-deck.pair-mode {
  --active-accent: var(--remodel-magenta);
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.72fr);
  align-items: start;
  gap: 12px;
}

.screen-active .program-pair-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.screen-active .pair-program-stack {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 10px;
}

.screen-active .pair-program-stack .prompt-command-row {
  margin: 0;
}

.screen-active .nevermet-prompt-card {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  padding: 11px 12px 12px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--remodel-magenta) 28%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-magenta) 12%, transparent), transparent 70%),
    var(--remodel-surface-2);
}

.screen-active .nevermet-prompt-header {
  display: flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--remodel-magenta) 22%, transparent);
}

.screen-active .nevermet-prompt-header > span {
  color: color-mix(in srgb, var(--remodel-magenta) 78%, var(--remodel-ink-soft));
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.screen-active .nevermet-prompt-readout {
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.screen-active .nevermet-prompt-readout textarea {
  width: 100%;
  height: 82px;
  min-height: 82px;
  resize: none;
  border-color: color-mix(in srgb, var(--remodel-magenta) 18%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    color-mix(in srgb, var(--remodel-bg) 58%, var(--remodel-surface-2));
  color: var(--remodel-ink);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.2cqw, 1.08rem);
  font-weight: 780;
  line-height: 1.28;
  padding: 11px 13px;
  overflow: hidden;
}

.screen-active .nevermet-reprompt-button {
  align-self: center;
  width: auto;
  min-width: 104px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--remodel-blue) 36%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-blue) 22%, transparent), transparent),
    color-mix(in srgb, var(--remodel-blue) 11%, var(--remodel-surface-3));
  color: color-mix(in srgb, var(--remodel-blue) 76%, white);
  font-size: 0.82rem;
  padding: 4px 14px;
  box-shadow: none;
}

.screen-active .program-pair-grid .pair-speaker-card {
  min-height: clamp(150px, 15cqw, 176px);
  height: auto;
  grid-template-rows: minmax(24px, auto) minmax(0, 1fr);
  gap: 8px;
  padding: clamp(13px, 1.35cqw, 18px);
  border-left-color: var(--remodel-magenta);
}

.screen-active .pair-speaker-card .speaker-name {
  display: block;
  align-self: center;
  max-width: 100%;
  overflow: visible;
  font-size: clamp(1.65rem, 2.35cqw, 2.45rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.screen-active .live-deck.pair-mode .timer-stack {
  align-self: start;
}

.screen-active .live-deck.pair-mode .timer-card {
  height: auto;
  min-height: 0;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.screen-active .live-deck.pair-mode .timer-readout {
  font-size: clamp(3.8rem, 5.7cqw, 5.15rem);
}

.screen-active .live-deck.pair-mode .timer-actions,
.screen-active .live-deck.pair-mode .flow-actions {
  gap: 6px;
  padding: 6px;
}

.screen-active .live-deck.pair-mode .timer-actions > button,
.screen-active .live-deck.pair-mode .flow-actions > button {
  min-height: 44px;
  padding: 7px 9px;
}

.screen-active .live-deck.pair-mode .timer-primary-controls,
.screen-active .live-deck.pair-mode .timer-turn-nav {
  gap: 6px;
}

.screen-active .live-deck.pair-mode .timer-turn-nav {
  padding: 6px;
}

.screen-active .live-deck.pair-mode .timer-turn-nav .review-nav > button {
  min-height: 30px;
  padding: 5px 8px;
}

.screen-active .speaker-tracking-zone {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.screen-active .speaker-tracking-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(220px, 1.1fr);
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}

.screen-active .speaker-tracking-card > * {
  min-width: 0;
}

.screen-active .tracking-student {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--remodel-ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.85cqw, 1.9rem);
  font-weight: 780;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.screen-active .compact-presence .presence-buttons,
.screen-active .presence-instrument .presence-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.screen-active .compact-presence,
.screen-active .compact-presence .presence-buttons,
.screen-active .presence-instrument,
.screen-active .presence-instrument .presence-buttons {
  min-width: 0;
}

.screen-active .compact-presence .rating-button,
.screen-active .presence-instrument .rating-button,
.screen-active .speaker-tracking-card .rating-button {
  min-width: 0;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  text-align: center;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
}

.screen-active .compact-presence .rating-button {
  min-height: 40px;
  padding: 6px 7px;
  font-size: 0.72rem;
}

/* Previous, next, and review state hooks. Existing current rows are styled now;
   review hooks are ready for the behavior slice without needing selector churn. */
.screen-active .queue-row.current,
.screen-active .next-three-row.current,
.screen-active [aria-current="step"] {
  border-color: color-mix(in srgb, var(--active-accent) 58%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 18%, transparent), transparent),
    var(--remodel-surface-2);
  box-shadow: inset 4px 0 var(--active-accent);
}

.screen-active .queue-row.previous,
.screen-active .queue-row.done,
.screen-active .turn-state-previous,
.screen-active .turn-state-done {
  opacity: 0.76;
}

.screen-active .queue-row.next,
.screen-active .turn-state-next {
  border-color: color-mix(in srgb, var(--remodel-blue) 28%, var(--remodel-line));
}

.screen-active .review-state,
.screen-active .reviewing-previous,
.screen-active .is-reviewing,
.screen-active .live-stage.reviewing-previous,
.screen-active [data-review-state="previous"] {
  border-color: color-mix(in srgb, var(--remodel-amber) 56%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-amber) 17%, transparent), transparent),
    var(--remodel-surface-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--remodel-amber) 24%, transparent);
}

.screen-active .review-state .timer-card,
.screen-active .reviewing-previous .timer-card,
.screen-active .is-reviewing .timer-card,
.screen-active [data-review-state="previous"] .timer-card {
  opacity: 0.78;
}

/* Discussion: compact operator sheet, not a cinematic stage. */
.screen-active .discussion-command-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background: var(--remodel-surface-2);
}

.screen-active .discussion-command-row input {
  min-height: 42px;
  border-radius: 6px;
}

.screen-active .discussion-command-row .command-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.screen-active .discussion-command-row .command-cluster > button {
  min-width: 0;
  min-height: 42px;
  border-radius: 6px;
  white-space: normal;
}

.screen-active .discussion-brief-card {
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--remodel-blue) 26%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-blue) 10%, transparent), transparent),
    var(--remodel-surface-2);
}

.screen-active .discussion-article-queue-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, auto);
  gap: 8px 12px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--remodel-cyan) 26%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-cyan) 8%, transparent), transparent 44%),
    var(--remodel-surface-2);
  box-shadow: var(--remodel-inset);
}

.screen-active .discussion-article-queue-panel .section-heading {
  min-height: 30px;
}

.screen-active .discussion-article-queue-actions {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) minmax(112px, 0.9fr) minmax(88px, 0.72fr);
  gap: 6px;
  align-self: start;
}

.screen-active .discussion-article-queue-actions > button {
  min-width: 0;
  min-height: 34px;
  border-radius: 999px;
  padding-inline: 10px;
  white-space: nowrap;
}

.screen-active .discussion-article-queue-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  max-height: 220px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.screen-active .discussion-article-queue-row {
  display: grid;
  grid-template-columns: minmax(44px, auto) minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--remodel-cyan) 20%, var(--remodel-line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--remodel-surface) 78%, transparent);
}

.screen-active .discussion-article-queue-row.current {
  border-color: color-mix(in srgb, var(--remodel-green) 40%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-green) 10%, var(--remodel-surface));
}

.screen-active .discussion-article-queue-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.screen-active .discussion-article-queue-copy .article-card-meta {
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
}

.screen-active .discussion-article-queue-copy h3 {
  margin: 0;
  overflow: hidden;
  color: var(--remodel-ink);
  font-size: 0.92rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-active .discussion-article-queue-row > button {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.screen-active .discussion-candidate-panel {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  max-height: min(58vh, 620px);
  margin-bottom: 8px;
  padding: 10px;
  border-color: color-mix(in srgb, var(--remodel-blue) 24%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-blue) 9%, transparent), transparent 44%),
    var(--remodel-surface-2);
}

.screen-active .discussion-candidate-panel .section-heading {
  min-height: 28px;
}

.screen-active .discussion-candidate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.screen-active .discussion-candidate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 278px);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  border-color: color-mix(in srgb, var(--remodel-blue) 24%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-surface) 78%, transparent);
}

.screen-active .discussion-candidate-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.screen-active .discussion-candidate-card .article-card-meta {
  min-width: 0;
  gap: 7px;
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
}

.screen-active .discussion-candidate-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--remodel-ink);
  font-size: clamp(1.02rem, 1.55cqw, 1.42rem);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.screen-active .discussion-candidate-card p {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--remodel-ink-muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.screen-active .discussion-candidate-tags {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.screen-active .discussion-candidate-tags span {
  flex: 0 0 auto;
}

.screen-active .discussion-candidate-actions {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) repeat(2, minmax(66px, 0.72fr));
  gap: 6px;
  min-width: 0;
}

.screen-active .discussion-candidate-actions .primary-button,
.screen-active .discussion-candidate-actions .secondary-button,
.screen-active .discussion-candidate-actions .ghost-button {
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.screen-active .discussion-tally {
  margin-bottom: 8px;
}

.screen-active .discussion-grid.operator-table {
  display: grid;
  gap: 4px;
  overflow: visible;
}

.screen-active .discussion-grid.operator-table .discussion-row {
  grid-template-columns: minmax(180px, 1fr) minmax(82px, 108px) minmax(130px, 168px);
  min-height: 40px;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 6px;
  border-color: color-mix(in srgb, var(--remodel-blue) 12%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-surface-2) 78%, transparent);
}

.screen-active .discussion-grid.operator-table .table-header {
  min-height: 26px;
  padding-block: 3px;
  color: var(--remodel-ink-muted);
  font-size: 0.68rem;
}

.screen-active .discussion-mark-cell .participation-toggle {
  min-height: 30px;
  border-radius: 6px;
}

.screen-active .participation-toggle.active {
  border-color: color-mix(in srgb, var(--remodel-blue) 46%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-blue) 17%, var(--remodel-surface));
  color: var(--remodel-ink);
}

.screen-active .presence-current,
.screen-active .presence-disclosure {
  min-height: 30px;
  border-radius: 6px;
}

.screen-active .discussion-row .discussion-presence {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 6px;
  border-radius: 6px;
  border-color: color-mix(in srgb, var(--remodel-blue) 24%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-blue) 7%, var(--remodel-surface-2));
}

.screen-active .discussion-row .discussion-presence .presence-buttons {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.screen-active .rating-button {
  border-radius: 6px;
}

.screen-active .rating-button.active,
.screen-active .presence-current.set {
  border-color: color-mix(in srgb, var(--remodel-green) 46%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-green) 14%, var(--remodel-surface));
  color: var(--remodel-ink);
}

@container (max-width: 620px) {
  .screen-active .thinkfast-hero,
  .screen-active .tf-stage-tools,
  .screen-active .live-deck,
  .screen-active .live-deck.pair-mode {
    grid-template-columns: 1fr;
  }

  .screen-active .tf-clock-module,
  .screen-active .timer-stack {
    order: -1;
  }

  .screen-active .tf-program-monitor,
  .screen-active .program-card {
    min-height: 180px;
    padding: 18px;
  }

  .screen-active .tf-speaker-name,
  .screen-active .speaker-name {
    font-size: clamp(2.35rem, 9cqw, 4.2rem);
    line-height: 0.95;
  }

  .screen-active .timer-stack .timer-card,
  .screen-active .tf-clock-module .timer-card {
    min-height: 0;
    gap: 7px;
    padding: 10px 14px;
  }

  .screen-active .timer-readout,
  .screen-active .tf-clock-module .timer-readout,
  .screen-active .timer-stack .timer-readout {
    font-size: clamp(3.6rem, 13cqw, 5.6rem);
  }

  .screen-active .timer-actions > button,
  .screen-active .flow-actions > button {
    min-height: 44px;
  }

  .screen-active .tf-instrument-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-active .next-instrument {
    grid-column: 1 / -1;
  }

  .screen-active .tf-side-controls {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-active .program-pair-grid,
  .screen-active .speaker-tracking-zone {
    grid-template-columns: 1fr;
  }

  .screen-active .speaker-tracking-card {
    grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1fr);
  }

  .screen-active .compact-presence {
    grid-column: 1 / -1;
  }
}

@container (max-width: 860px) {
  .screen-active .discussion-command-row,
  .screen-active .discussion-article-queue-panel,
  .screen-active .field-row.prompt-command-row {
    grid-template-columns: 1fr;
  }

  .screen-active .discussion-article-queue-actions {
    grid-template-columns: minmax(132px, 1fr) minmax(112px, 0.82fr) minmax(82px, 0.62fr);
  }

  .screen-active .discussion-command-row .command-cluster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-active .discussion-grid.operator-table .table-header {
    display: none;
  }

  .screen-active .discussion-grid.operator-table .discussion-row {
    grid-template-columns: minmax(0, 1fr) minmax(80px, 96px);
  }

  .screen-active .discussion-candidate-card {
    grid-template-columns: 1fr;
  }

  .screen-active .discussion-candidate-actions {
    grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(76px, 0.75fr));
  }

  .screen-active .discussion-presence-toggle-cell,
  .screen-active .discussion-row .discussion-presence {
    grid-column: 1 / -1;
  }

  .screen-active .discussion-row .discussion-presence .presence-buttons,
  .screen-active .presence-instrument .presence-buttons,
  .screen-active .compact-presence .presence-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (max-width: 980px) {
  .screen-active .live-deck.pair-mode {
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  }

  .screen-active .live-deck.pair-mode .timer-stack {
    order: initial;
  }

  .screen-active .live-deck.pair-mode .timer-card {
    min-height: 0;
    align-content: start;
    gap: 8px;
    padding: 14px;
  }

  .screen-active .live-deck.pair-mode .timer-readout {
    font-size: clamp(3.8rem, 9cqw, 5.25rem);
  }

  .screen-active .live-deck.pair-mode .flow-actions > button,
  .screen-active .live-deck.pair-mode .timer-actions > button {
    min-height: 48px;
  }

  .screen-active .live-deck.pair-mode .program-pair-grid {
    grid-template-columns: 1fr;
  }

  .screen-active .live-deck.pair-mode .pair-speaker-card {
    min-height: 140px;
    padding: 16px;
  }

  .screen-active .live-deck.pair-mode .pair-speaker-card .speaker-name {
    display: block;
    max-width: 100%;
    overflow: visible;
    font-size: clamp(1.7rem, 4.8cqw, 2.65rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
    word-break: normal;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  .screen-active .speaker-tracking-zone {
    grid-template-columns: 1fr;
  }

  .screen-active .speaker-tracking-card {
    grid-template-columns: minmax(170px, 0.85fr) minmax(220px, 1.15fr);
  }
}

@container (max-width: 620px) {
  .screen-active .live-deck.pair-mode {
    grid-template-columns: 1fr;
  }

  .screen-active .live-deck.pair-mode .timer-stack {
    order: -1;
  }

  .screen-active .tf-instrument-row,
  .screen-active .tf-stage-tools,
  .screen-active .speaker-tracking-card,
  .screen-active .tf-side-controls,
  .screen-active .discussion-command-row .command-cluster,
  .screen-active .timer-primary-controls,
  .screen-active .flow-actions,
  .screen-active .timer-actions {
    grid-template-columns: 1fr;
  }

  .screen-active .discussion-row .discussion-presence .presence-buttons,
  .screen-active .presence-instrument .presence-buttons,
  .screen-active .compact-presence .presence-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-active .timer-readout,
  .screen-active .tf-clock-module .timer-readout,
  .screen-active .timer-stack .timer-readout {
    font-size: clamp(3.2rem, 18cqw, 5rem);
  }

  .screen-active .timer-primary-controls:has(.filler-instrument) {
    grid-template-columns: 1fr;
  }
}

@container (min-width: 621px) {
  .screen-active .flow-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-active .timer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1500px) {
  .screen-active .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .screen-active .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 316px);
  }
}

.screen-active .tf-instrument-row:has(.setup-instrument) {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.72fr);
}

.screen-active .tf-instrument-row:has(.setup-instrument) .next-instrument {
  grid-column: auto;
}

@container (max-width: 860px) {
  .screen-active .tf-instrument-row:has(.setup-instrument) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-active .tf-side-controls {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@container (max-width: 620px) {
  .screen-active .tf-instrument-row:has(.setup-instrument),
  .screen-active .tf-side-controls {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}

/* Light mode legibility pass for active console surfaces. */
:root[data-theme="light"] {
  --remodel-bg: #f4f7fb;
  --remodel-surface: #ffffff;
  --remodel-surface-2: #eef3f9;
  --remodel-surface-3: #e1eaf4;
  --remodel-surface-raised: #ffffff;
  --remodel-ink: #111827;
  --remodel-ink-soft: #283548;
  --remodel-ink-muted: #4f5f73;
  --remodel-line: #c8d3e0;
  --remodel-line-strong: #9aabc0;
  --remodel-green: #176d43;
  --remodel-amber: #805606;
  --remodel-red: #a3322c;
  --remodel-blue: #1d5f96;
  --remodel-cyan: #006d89;
  --remodel-magenta: #82359d;
  --remodel-stage-shadow: 0 18px 42px rgba(30, 41, 59, 0.12);
  --remodel-inset: inset 0 1px rgba(255, 255, 255, 0.92), inset 0 -1px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .screen-active {
  --active-accent-soft: color-mix(in srgb, var(--active-accent) 12%, #ffffff);
}

:root[data-theme="light"] .screen-active .live-deck,
:root[data-theme="light"] .screen-active .program-card,
:root[data-theme="light"] .screen-active .tf-program-monitor,
:root[data-theme="light"] .screen-active .tf-instrument,
:root[data-theme="light"] .screen-active .speaker-tracking-card,
:root[data-theme="light"] .screen-active .presence-console-card,
:root[data-theme="light"] .screen-active .operator-queue,
:root[data-theme="light"] .screen-active .discussion-command-row,
:root[data-theme="light"] .screen-active .discussion-brief-card,
:root[data-theme="light"] .screen-active .discussion-grid.operator-table .discussion-row {
  color: var(--remodel-ink);
  box-shadow: var(--remodel-inset), 0 16px 34px rgba(30, 41, 59, 0.1);
}

:root[data-theme="light"] .screen-active .activity-kicker,
:root[data-theme="light"] .screen-active .console-chip {
  border-color: color-mix(in srgb, var(--active-accent) 42%, var(--remodel-line));
  background: color-mix(in srgb, var(--active-accent) 10%, #ffffff);
  color: color-mix(in srgb, var(--active-accent) 76%, #111827);
}

:root[data-theme="light"] .screen-active .prompt-dock,
:root[data-theme="light"] .screen-active .field-row.prompt-command-row {
  border-color: var(--remodel-line);
  background: color-mix(in srgb, var(--remodel-surface-2) 82%, #ffffff);
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .prompt-dock .prompt-control span,
:root[data-theme="light"] .screen-active .field-row.prompt-command-row label,
:root[data-theme="light"] .screen-active .setup-word-readout span,
:root[data-theme="light"] .screen-active .timer-turn-nav-heading span,
:root[data-theme="light"] .screen-active .discussion-grid.operator-table .table-header {
  color: var(--remodel-ink-muted);
}

:root[data-theme="light"] .screen-active .prompt-dock input,
:root[data-theme="light"] .screen-active .discussion-command-row input {
  border-color: var(--remodel-line-strong);
  background: #ffffff;
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .nevermet-prompt-readout textarea {
  border-color: color-mix(in srgb, var(--remodel-magenta) 24%, var(--remodel-line-strong));
  background: #ffffff;
  color: var(--remodel-ink);
  box-shadow: var(--remodel-inset);
}

:root[data-theme="light"] .screen-active .nevermet-reprompt-button {
  border-color: color-mix(in srgb, var(--remodel-blue) 42%, var(--remodel-line-strong));
  background: color-mix(in srgb, var(--remodel-blue) 12%, #ffffff);
  color: color-mix(in srgb, var(--remodel-blue) 78%, #111827);
}

:root[data-theme="light"] .screen-active .timer-stack .timer-card,
:root[data-theme="light"] .screen-active .tf-clock-module .timer-card {
  border-color: color-mix(in srgb, var(--remodel-amber) 38%, var(--remodel-line));
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--remodel-amber) 12%, transparent), transparent 8.5rem),
    linear-gradient(180deg, #fffaf0, #f2e7d1);
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .timer-readout,
:root[data-theme="light"] .screen-active .tf-clock-module .timer-readout,
:root[data-theme="light"] .screen-active .timer-stack .timer-readout,
:root[data-theme="light"] .screen-active .timer-card .count-pill,
:root[data-theme="light"] .screen-active .filler-total span {
  color: var(--remodel-amber);
  text-shadow: none;
}

:root[data-theme="light"] .screen-active .timer-readout.done {
  color: var(--remodel-green);
}

:root[data-theme="light"] .screen-active .flow-actions,
:root[data-theme="light"] .screen-active .timer-actions,
:root[data-theme="light"] .screen-active .timer-turn-nav,
:root[data-theme="light"] .screen-active .timer-card .filler-instrument {
  border-color: color-mix(in srgb, var(--remodel-blue) 26%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-blue) 7%, #ffffff);
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .filler-hardware,
:root[data-theme="light"] .screen-active .compact-filler {
  border-color: color-mix(in srgb, var(--remodel-amber) 32%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-amber) 8%, #ffffff);
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .thinkfast-console {
  --tf-panel-bg: color-mix(in srgb, var(--remodel-surface-raised) 94%, #f4f7fb);
  --tf-panel-border: color-mix(in srgb, var(--tf-panel-accent) 32%, var(--remodel-line));
  --tf-control-bg: color-mix(in srgb, var(--remodel-surface-2) 86%, #ffffff);
  --tf-control-border: color-mix(in srgb, var(--tf-panel-accent) 30%, var(--remodel-line));
}

:root[data-theme="light"] .screen-active .thinkfast-console .tf-program-monitor,
:root[data-theme="light"] .screen-active .thinkfast-console .tf-clock-module .timer-card {
  --tf-panel-bg: color-mix(in srgb, var(--remodel-amber) 7%, #ffffff);
}

:root[data-theme="light"] .screen-active .thinkfast-console .tf-clock-module .timer-card {
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--remodel-amber) 12%, transparent), transparent 8.5rem),
    linear-gradient(180deg, #fffaf0, #f2e7d1);
}

:root[data-theme="light"] .screen-active .thinkfast-console :is(.tf-program-monitor, .tf-clock-module .timer-card, .tf-stage-tools .tf-instrument, .tf-instrument-row .tf-instrument) {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tf-panel-accent) 7%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent),
    var(--tf-panel-bg);
  box-shadow: var(--remodel-inset), 0 16px 34px rgba(30, 41, 59, 0.1);
}

:root[data-theme="light"] .screen-active .thinkfast-console :is(.instrument-heading span, .timer-turn-nav-heading span),
:root[data-theme="light"] .screen-active .thinkfast-console .control-label-row .activity-kicker {
  color: color-mix(in srgb, var(--tf-panel-accent) 74%, #1f2937);
}

:root[data-theme="light"] .screen-active .thinkfast-console :is(.system-button, .rating-button, .timer-turn-nav .review-nav > button, .timer-actions > button, .flow-actions > button, .stepper-button) {
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .thinkfast-console :is(.system-button, .rating-button, .timer-turn-nav .review-nav > button, .timer-actions > button, .flow-actions > button, .stepper-button):hover:not(:disabled) {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tf-panel-accent) 10%, transparent), transparent),
    color-mix(in srgb, var(--remodel-surface-3) 74%, #ffffff);
}

:root[data-theme="light"] .screen-active .thinkfast-console .flow-actions .primary-button,
:root[data-theme="light"] .screen-active .flow-actions .primary-button {
  border-color: color-mix(in srgb, var(--remodel-green) 72%, #0f172a);
  background: linear-gradient(180deg, #248452, #176d43);
  color: #ffffff;
}

:root[data-theme="light"] .screen-active .thinkfast-console .flow-actions .danger-button,
:root[data-theme="light"] .screen-active .flow-actions .danger-button {
  border-color: color-mix(in srgb, var(--remodel-red) 62%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-red) 12%, transparent), transparent),
    color-mix(in srgb, var(--remodel-red) 10%, #ffffff);
  color: var(--remodel-red);
}

:root[data-theme="light"] .screen-active .thinkfast-console .rating-button.active,
:root[data-theme="light"] .screen-active .rating-button.active,
:root[data-theme="light"] .screen-active .presence-current.set,
:root[data-theme="light"] .screen-active .participation-toggle.active {
  border-color: color-mix(in srgb, var(--remodel-green) 52%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-green) 14%, #ffffff);
  color: color-mix(in srgb, var(--remodel-green) 82%, #111827);
}

:root[data-theme="light"] .screen-active .queue-row,
:root[data-theme="light"] .screen-active .next-three-row,
:root[data-theme="light"] .screen-active .roster-row,
:root[data-theme="light"] .screen-active .roster-operator-sheet .table-row {
  border-color: var(--remodel-line);
  background: #ffffff;
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .queue-row.current,
:root[data-theme="light"] .screen-active .next-three-row.current,
:root[data-theme="light"] .screen-active [aria-current="step"] {
  border-color: color-mix(in srgb, var(--active-accent) 52%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 12%, transparent), transparent),
    #ffffff;
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .queue-row.previous,
:root[data-theme="light"] .screen-active .queue-row.done,
:root[data-theme="light"] .screen-active .turn-state-previous,
:root[data-theme="light"] .screen-active .turn-state-done {
  opacity: 1;
  color: var(--remodel-ink-soft);
}

:root[data-theme="light"] .screen-active .review-state,
:root[data-theme="light"] .screen-active .reviewing-previous,
:root[data-theme="light"] .screen-active .is-reviewing,
:root[data-theme="light"] .screen-active .live-stage.reviewing-previous,
:root[data-theme="light"] .screen-active [data-review-state="previous"] {
  border-color: color-mix(in srgb, var(--remodel-amber) 48%, var(--remodel-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-amber) 12%, transparent), transparent),
    #ffffff;
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .review-state .timer-card,
:root[data-theme="light"] .screen-active .reviewing-previous .timer-card,
:root[data-theme="light"] .screen-active .is-reviewing .timer-card,
:root[data-theme="light"] .screen-active [data-review-state="previous"] .timer-card {
  opacity: 1;
}

/* Light mode timer bay polish: keep the controls readable and intentional. */
:root[data-theme="light"] .screen-active .tf-clock-module .timer-card,
:root[data-theme="light"] .screen-active .timer-stack .timer-card {
  border-color: color-mix(in srgb, var(--remodel-amber) 48%, var(--remodel-line-strong));
  background:
    linear-gradient(180deg, #fffdf7, #f1e7d4);
  box-shadow: var(--remodel-inset), 0 16px 34px rgba(86, 66, 24, 0.14);
}

:root[data-theme="light"] .screen-active .tf-clock-module .timer-readout,
:root[data-theme="light"] .screen-active .timer-stack .timer-readout,
:root[data-theme="light"] .screen-active .timer-readout {
  border-color: #80621e;
  background:
    repeating-linear-gradient(0deg, rgba(255, 191, 77, 0.055) 0 1px, transparent 1px 6px),
    #070807;
  color: #ffbf4d;
  text-shadow: 0 0 18px rgba(255, 191, 77, 0.16);
}

:root[data-theme="light"] .screen-active .timer-actions,
:root[data-theme="light"] .screen-active .flow-actions,
:root[data-theme="light"] .screen-active .timer-turn-nav {
  border-color: #b8c7d8;
  background: #f8fbff;
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .timer-actions > button,
:root[data-theme="light"] .screen-active .timer-turn-nav .review-nav > button,
:root[data-theme="light"] .screen-active .flow-actions > button {
  border-color: #c6d1df;
  background:
    linear-gradient(180deg, #ffffff, #edf2f8);
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .timer-actions > button:disabled,
:root[data-theme="light"] .screen-active .timer-turn-nav .review-nav > button:disabled {
  border-color: #d8e0ea;
  background: #eef2f7;
  color: #747f8e;
}

:root[data-theme="light"] .screen-active .timer-actions .primary-button,
:root[data-theme="light"] .screen-active .flow-actions .primary-button {
  border-color: color-mix(in srgb, var(--remodel-green) 74%, #0f172a);
  background: linear-gradient(180deg, #238a56, #176d43);
  color: #ffffff;
}

:root[data-theme="light"] .screen-active .flow-actions .danger-button {
  border-color: color-mix(in srgb, var(--remodel-red) 62%, #ffffff);
  background:
    linear-gradient(180deg, #fff8f8, #f8dede);
  color: var(--remodel-red);
}

:root[data-theme="light"] .screen-active .timer-actions .shortcut {
  border-color: color-mix(in srgb, currentColor 38%, transparent);
  background: color-mix(in srgb, #ffffff 74%, transparent);
  color: currentColor;
}

:root[data-theme="light"] .screen-active .timer-card .filler-instrument {
  border-color: color-mix(in srgb, var(--remodel-amber) 45%, var(--remodel-line));
  background: #fffdf8;
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .timer-card .filler-hardware {
  border-color: color-mix(in srgb, var(--remodel-amber) 44%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-amber) 8%, #ffffff);
}

:root[data-theme="light"] .screen-active .timer-card .filler-hardware .stepper-button,
:root[data-theme="light"] .screen-active .timer-card .filler-total {
  border-color: color-mix(in srgb, var(--remodel-amber) 28%, var(--remodel-line));
  background: #ffffff;
  color: var(--remodel-ink);
}

:root[data-theme="light"] .screen-active .timer-card .filler-total span {
  color: var(--remodel-amber);
}

/* Wins uses the Think Fast architecture, but without filler/prompt modules.
   Keep its lighter control set compact instead of spreading it down the rail. */
.screen-active .wins-live-deck .timer-card {
  height: 100%;
  grid-template-rows: minmax(94px, 1.15fr) minmax(72px, 0.72fr) minmax(72px, 0.7fr) minmax(64px, 0.58fr);
  align-content: stretch;
  align-items: stretch;
  gap: 10px;
}

.screen-active .wins-live-deck .timer-readout {
  display: grid;
  place-items: center;
  margin-bottom: 0;
}

.screen-active .wins-live-deck .timer-actions,
.screen-active .wins-live-deck .flow-actions,
.screen-active .wins-live-deck .timer-turn-nav {
  align-self: stretch;
}

.screen-active .wins-live-deck .timer-actions > button,
.screen-active .wins-live-deck .flow-actions > button,
.screen-active .wins-live-deck .timer-turn-nav .review-nav > button {
  min-height: 0;
}

.screen-active .wins-live-deck .timer-primary-controls,
.screen-active .wins-live-deck .timer-turn-nav {
  margin-top: 0;
}

.screen-active .wins-live-deck .wins-stage-tools {
  grid-template-columns: 1fr;
  min-height: 0;
}

.screen-active .wins-live-deck .wins-stage-tools .presence-instrument {
  min-height: 0;
}

.screen-active .wins-instrument-row {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.screen-active .wins-instrument-row .next-instrument {
  grid-column: auto;
  min-height: 0;
}

.screen-active .wins-instrument-row .next-three-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  overflow: visible;
}

@container (max-width: 620px) {
  .screen-active .wins-live-deck .wins-stage-tools {
    grid-template-columns: 1fr;
  }

  .screen-active .wins-instrument-row .next-three-list {
    grid-template-columns: 1fr;
  }
}

/* Active live screens start with the control surface, not a title banner. */
.screen-active .activity-header {
  display: none;
}
