/* rostra-app.css
   All screens, layout, components. Theme-agnostic; reads var(--rostra-*).
   This file is the editable source (the build-css-bundle script was retired in the 2026-06 consolidation). */

.studio-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--studio-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 7px 18px;
  border-bottom: 1px solid rgba(121, 168, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 46%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 34%, color-mix(in srgb, var(--blue) 9%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, var(--nav-2) 92%, transparent), color-mix(in srgb, var(--nav) 98%, transparent)),
    var(--nav);
  color: var(--nav-ink);
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.24);
}

.studio-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 177, 0.48), transparent);
  opacity: 0.55;
}

.studio-signal,
.theme-switcher {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: var(--space-4);
}

.studio-signal {
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.tally-light {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #28d17c;
  box-shadow: 0 0 0 3px rgba(40, 209, 124, 0.12), 0 0 18px rgba(40, 209, 124, 0.72);
}

.studio-label,
.theme-label {
  font-size: var(--step--1);
  font-weight: 780;
  text-transform: uppercase;
}

.studio-label {
  color: #f8fafc;
}

.studio-mode {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  max-width: min(52vw, 620px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-3);
  background: rgba(7, 13, 19, 0.42);
  color: #d8e0e8;
  padding: 5px 10px;
  font-size: var(--step--1);
  font-weight: 720;
}

.top-context {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-3);
  background: rgba(7, 13, 19, 0.44);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.top-context .studio-mode,
.top-context .count-pill,
.top-context .status-pill {
  min-height: 30px;
  gap: var(--space-2);
  border-color: transparent;
  background: rgba(255, 255, 255, 0.075);
  color: #dbe4ee;
  padding: 4px 9px;
}

.top-context strong {
  min-width: 0;
  max-width: 24ch;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-icon-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-switcher {
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-3);
  background: rgba(7, 13, 19, 0.44);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.theme-label {
  padding: 0 5px 0 8px;
  color: var(--nav-muted);
}

.theme-choice {
  min-height: 36px;
  min-width: 62px;
  border-radius: var(--radius-2);
  background: transparent;
  color: #d8e0e8;
  font-size: var(--step--1);
  font-weight: 760;
  cursor: pointer;
}

.theme-choice:hover {
  background: rgba(255, 255, 255, 0.09);
}

.theme-choice.active {
  background: var(--rostra-accent-muted);
  color: var(--rostra-text-primary);
  box-shadow: 0 0 0 1px var(--rostra-border-strong);
}

.home-button,
.icon-button {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 0;
  cursor: pointer;
  box-shadow: var(--hardware-shadow, var(--control-shadow));
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.studio-bar .home-button,
.studio-bar .icon-button,
.top-icon-actions .home-button,
.top-icon-actions .icon-button {
  border-color: rgba(121, 168, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  color: #eef4fa;
  box-shadow: var(--hardware-shadow);
}

.home-button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--ink);
}

.studio-bar .home-button:hover,
.studio-bar .icon-button:hover,
.top-icon-actions .home-button:hover,
.top-icon-actions .icon-button:hover {
  border-color: rgba(79, 195, 177, 0.42);
  background: linear-gradient(180deg, rgba(79, 195, 177, 0.18), rgba(255, 255, 255, 0.055));
  color: #ffffff;
}

.home-button:active:not(:disabled),
.icon-button:active:not(:disabled) {
  box-shadow: var(--control-shadow-active);
}

.icon-button.active,
.icon-button[aria-pressed="true"],
.home-button.active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: color-mix(in srgb, var(--accent) 74%, var(--ink));
}

.icon-button svg,
.home-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.icon-button svg *,
.home-button svg * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-glyph {
  min-width: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--studio-bar-offset, var(--studio-bar-height)));
}

.screen-launcher .app-shell,
.screen-class-home .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.screen-launcher .left-rail,
.screen-launcher .top-bar,
.screen-launcher .setup-strip,
.screen-launcher .side-panel,
.screen-launcher .log-panel,
.screen-class-home .left-rail,
.screen-class-home .log-panel {
  display: none;
}

.left-rail {
  position: sticky;
  top: var(--studio-bar-offset, var(--studio-bar-height));
  z-index: 25;
  align-self: start;
  height: calc(100dvh - var(--studio-bar-offset, var(--studio-bar-height)));
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 98%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 42%),
    var(--surface);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.035), var(--shadow-xs);
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: var(--space-4);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--nav-3));
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 45%),
    linear-gradient(145deg, var(--nav-3), var(--nav)),
    var(--nav);
  color: var(--nav-ink);
  font-size: 19px;
  font-weight: 820;
  box-shadow: var(--hardware-shadow, var(--shadow-sm));
}

.brand-name {
  color: var(--ink);
  font-size: var(--step-2);
  font-weight: 780;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 680;
}

.activity-nav {
  display: grid;
  gap: var(--space-3);
}

.nav-button {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-3);
  background: color-mix(in srgb, var(--surface-2) 54%, transparent);
  color: var(--ink-soft);
  padding: 8px 10px;
  font-size: var(--step-0);
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.nav-button::before {
  content: "";
  width: 7px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
}

.nav-button:hover {
  border-color: color-mix(in srgb, var(--blue) 18%, var(--line));
  background: var(--surface-2);
  color: var(--ink);
}

.nav-button.active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent),
    var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--hardware-shadow, var(--shadow-xs)), var(--blue-glow, none);
}

.nav-button.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 12px color-mix(in srgb, var(--accent) 46%, transparent);
}

.nav-section-break {
  margin-top: var(--space-5);
}

.nav-section-break::after {
  content: "";
  position: absolute;
  top: calc(var(--space-4) * -1);
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--line);
  opacity: 0.8;
}

.workspace {
  width: min(var(--content-max), 100%);
  min-width: 0;
  margin: 0 auto;
  padding: var(--space-7);
}

.screen-launcher .workspace,
.screen-class-home .workspace {
  width: min(1480px, 100%);
  padding: clamp(18px, 2.1vw, 30px);
}

.top-bar,
.setup-strip,
.main-panel,
.side-panel,
.log-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background:
    var(--module-gradient, linear-gradient(180deg, var(--surface), var(--surface))),
    var(--surface);
  box-shadow: var(--module-shadow, var(--shadow-sm));
}

.top-bar {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-3);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%, color-mix(in srgb, var(--blue) 6%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface-2) 92%, transparent)),
    var(--surface);
  box-shadow: var(--module-shadow, var(--shadow-xs));
}

.class-fields {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(170px, 220px);
  gap: var(--space-5);
}

label {
  display: grid;
  gap: var(--space-2);
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 760;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: var(--surface-2);
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--line-strong);
}

textarea {
  min-height: 66px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus-ring);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 16%, transparent);
}

input[type="file"] {
  padding: 6px;
}

input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 720;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--ink);
}

.top-actions,
.action-row,
.status-actions,
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.top-actions {
  justify-content: flex-end;
  gap: var(--space-2);
}

.save-status,
.muted-count {
  color: var(--ink-muted);
  font-size: var(--step-0);
  font-weight: 680;
}

.save-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  padding: 5px 9px;
  white-space: nowrap;
  font-size: var(--step--1);
}

.save-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 58%, transparent);
}

.setup-strip {
  margin-top: var(--space-5);
  overflow: clip;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent 48%),
    var(--surface-2);
}

.setup-strip[hidden] {
  display: none;
}

.screen-active .setup-strip:not([open]) {
  margin-top: var(--space-4);
}

.setup-strip summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: var(--space-5);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.screen-active .setup-strip:not([open]) summary {
  min-height: 40px;
  padding: 8px 14px;
}

.setup-strip summary::-webkit-details-marker {
  display: none;
}

.setup-strip summary::after {
  content: "Show";
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  color: var(--ink-soft);
  padding: 4px 10px;
  font-size: var(--step--1);
  font-weight: 740;
}

.setup-strip[open] summary::after {
  content: "Hide";
}

#setupSummaryMeta {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: var(--step-0);
  font-weight: 650;
}

.setup-body {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(240px, 1fr) auto auto;
  align-items: end;
  gap: var(--space-5);
  padding: 0 14px 14px;
}

.setup-item {
  min-width: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.main-column {
  min-width: 0;
  display: grid;
  gap: var(--space-6);
}

.command-bar {
  display: none;
  grid-template-columns: 1.1fr 1.6fr 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-raised) 90%, transparent), color-mix(in srgb, var(--surface-2) 92%, transparent)),
    var(--surface);
  box-shadow: var(--module-shadow, var(--shadow-sm));
}

.command-bar[hidden] {
  display: none;
}

.command-item {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.command-item.primary {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.command-label {
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 780;
  text-transform: uppercase;
}

.command-item strong,
.command-item span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-item strong {
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 780;
}

.command-item span:last-child {
  color: var(--ink-muted);
  font-size: var(--step-0);
}

.screen-launcher .content-grid,
.screen-class-home .content-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.main-panel,
.side-panel,
.log-panel {
  padding: var(--space-6);
}

.main-panel {
  min-height: 560px;
}

.screen-launcher .main-panel,
.screen-class-home .main-panel {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.side-panel {
  align-self: start;
  max-height: none;
  overflow: visible;
}

.log-panel {
  margin-top: var(--space-6);
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.activity-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 15%, var(--line));
}

.activity-title {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}

.activity-kicker {
  width: max-content;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: var(--radius-1);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--surface-2);
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  padding: 3px 7px;
  font-size: var(--step--1);
  font-weight: 760;
  text-transform: uppercase;
}

.activity-status-strip,
.action-cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.activity-status-strip {
  width: 100%;
  margin: 0 0 var(--space-5);
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.filler-button,
.participation-toggle {
  min-height: 40px;
  border-radius: var(--radius-2);
  padding: 8px 11px;
  font-size: var(--step-0);
  font-weight: 720;
  line-height: 1.15;
  white-space: normal;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.small-button:disabled,
.rating-button:disabled,
.filler-button:disabled,
.participation-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: saturate(0.65);
}

.primary-button {
  border: 1px solid color-mix(in srgb, var(--accent-strong) 72%, #fff);
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 18%, transparent), transparent 52%),
    linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  box-shadow: var(--hardware-shadow, var(--control-shadow)), 0 0 18px color-mix(in srgb, var(--accent) 16%, transparent);
}

.primary-button:hover:not(:disabled) {
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 22%, transparent), transparent 52%),
    linear-gradient(180deg, var(--accent-strong), color-mix(in srgb, var(--accent) 88%, #000));
}

.secondary-button {
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
  box-shadow: var(--control-shadow);
}

.secondary-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}

.ghost-button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  color: var(--ink-soft);
  box-shadow: var(--control-shadow);
}

.ghost-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--ink);
}

.danger-button {
  border: 1px solid color-mix(in srgb, var(--coral) 38%, var(--line));
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  color: var(--coral);
  box-shadow: var(--control-shadow);
}

.danger-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--coral) 9%, var(--surface));
}

.small-button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.small-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--ink);
}

.small-button.active {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--ink);
}

.live-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: stretch;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.live-deck.pair-mode {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
}

.program-stack,
.timer-stack,
.control-bank,
.queue-block {
  min-width: 0;
}

.speaker-card,
.timer-card,
.presence-card,
.filler-card,
.project-card,
.session-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background:
    var(--module-gradient, linear-gradient(180deg, var(--surface-raised), var(--surface-raised))),
    var(--surface-raised);
  box-shadow: var(--module-shadow, var(--shadow-xs));
}

.speaker-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: var(--space-4);
  min-height: 186px;
  padding: var(--space-5);
  overflow: hidden;
}

.speaker-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    linear-gradient(180deg, transparent 0 calc(100% - 3px), color-mix(in srgb, var(--accent) 42%, transparent) calc(100% - 3px));
  opacity: 0.62;
}

.speaker-card > * {
  position: relative;
  z-index: 1;
}

.speaker-card .status-pill {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  max-width: 46%;
}

.program-card-topline,
.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: var(--space-3);
}

.program-card-topline .activity-kicker,
.control-label-row .activity-kicker {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    color-mix(in srgb, var(--surface-2) 84%, transparent);
}

.speaker-name {
  align-self: center;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 780;
  line-height: 1.02;
}

.timer-card {
  position: relative;
  display: grid;
  gap: var(--space-4);
  height: 100%;
  min-height: 190px;
  padding: var(--space-5);
  overflow: hidden;
  border-color: color-mix(in srgb, var(--blue) 24%, #000);
  background:
    linear-gradient(180deg, rgba(121, 168, 255, 0.09), transparent 42%),
    linear-gradient(90deg, rgba(79, 195, 177, 0.08), transparent 46%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.022) 8px),
    var(--monitor);
  color: var(--monitor-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), inset 0 -1px rgba(0, 0, 0, 0.72), 0 18px 42px rgba(0, 0, 0, 0.3);
}

.timer-readout {
  color: var(--monitor-ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 4.1rem;
  font-weight: 800;
  line-height: 0.95;
}

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

.timer-readout.done {
  color: var(--coral);
}

.timer-card .secondary-button,
.timer-card .ghost-button {
  border-color: rgba(121, 168, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  color: #f8fafc;
  box-shadow: var(--hardware-shadow);
}

.timer-card .count-pill {
  border-color: rgba(255, 234, 166, 0.18);
  background: rgba(255, 234, 166, 0.07);
  color: rgba(255, 234, 166, 0.88);
}

.flow-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

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

.timer-actions > button,
.flow-actions > button {
  width: 100%;
}

.pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.pair-grid .speaker-card {
  min-height: 190px;
}

.pair-grid .speaker-name {
  font-size: 2.35rem;
}

.pair-summary {
  margin-top: var(--space-4);
}

.presence-card {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-5);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 5%, transparent), transparent),
    var(--surface);
}

.presence-list {
  display: grid;
  gap: var(--space-3);
}

.presence-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 2fr);
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-2);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.presence-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: var(--space-2);
}

.rating-button {
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  color: var(--ink-soft);
  font-size: var(--step--1);
  box-shadow: var(--hardware-shadow, none);
}

.rating-button:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--ink);
}

.rating-button.active {
  border-color: color-mix(in srgb, var(--blue) 46%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 22%, transparent), transparent),
    color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--ink);
}

.filler-zone {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.filler-zone > .action-row {
  justify-content: flex-end;
}

.filler-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--amber) 6%, transparent), transparent),
    var(--surface);
}

.filler-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  gap: var(--space-3);
}

.filler-button {
  min-height: 56px;
  border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--amber) 11%, transparent), transparent 58%),
    var(--surface);
  color: var(--ink);
  font-weight: 760;
  box-shadow: var(--hardware-shadow, var(--control-shadow));
}

.filler-button:hover {
  border-color: color-mix(in srgb, var(--amber) 48%, var(--line));
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
}

.speaker-tracking-zone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.speaker-tracking-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface);
  box-shadow: var(--module-shadow, var(--shadow-xs));
}

.tracking-student {
  font-weight: 820;
  color: var(--ink);
}

.compact-filler {
  display: grid;
  grid-template-columns: 48px minmax(90px, 1fr) 48px;
  align-items: center;
  gap: var(--space-2);
}

.stepper-button {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line));
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--amber) 10%, transparent), transparent),
    var(--surface);
  color: var(--ink);
  font-size: var(--step-3);
  font-weight: 860;
  cursor: pointer;
  box-shadow: var(--hardware-shadow, none);
}

.stepper-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.filler-total {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid color-mix(in srgb, var(--amber) 26%, var(--line));
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--amber) 14%, transparent), transparent),
    color-mix(in srgb, var(--amber) 7%, var(--surface));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), inset 0 -1px rgba(0, 0, 0, 0.22);
}

.filler-total span {
  font-size: var(--step-5);
  font-weight: 900;
  line-height: 1;
}

.filler-total small {
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 760;
  text-transform: uppercase;
}

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

.compact-presence .rating-button {
  min-height: 34px;
  padding: 6px;
}

.shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 20px;
  margin-left: 6px;
  border: 1px solid currentColor;
  border-radius: var(--radius-1);
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.62;
  vertical-align: middle;
}

.count-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  padding: 3px 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--surface-2);
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.status-pill.available {
  border-color: color-mix(in srgb, var(--green) 38%, var(--line));
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
  color: color-mix(in srgb, var(--green) 72%, var(--ink));
}

.status-pill.absent {
  border-color: color-mix(in srgb, var(--amber) 46%, var(--line));
  background: color-mix(in srgb, var(--amber) 13%, var(--surface));
  color: color-mix(in srgb, var(--amber) 68%, var(--ink));
}

.status-pill.late {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
}

.status-pill.left {
  border-color: color-mix(in srgb, var(--coral) 42%, var(--line));
  background: color-mix(in srgb, var(--coral) 13%, var(--surface));
  color: color-mix(in srgb, var(--coral) 74%, var(--ink));
}

.roster-list,
.queue-list,
.session-log,
.grid-table,
.project-section,
.session-list,
.project-grid,
.project-card-main {
  display: grid;
  gap: var(--space-2);
}

.roster-row,
.queue-row,
.log-row,
.grid-row {
  display: grid;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.roster-row,
.queue-row,
.log-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 9px;
}

.side-panel .roster-row {
  grid-template-columns: 1fr;
  align-items: start;
}

.side-panel .status-actions {
  justify-content: flex-start;
}

.roster-operator-sheet {
  gap: var(--space-2);
}

.roster-operator-sheet .table-header {
  grid-template-columns: minmax(0, 1fr);
}

.roster-signal-cell {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.roster-status-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: var(--space-2);
}

.roster-status-buttons .small-button {
  min-height: 30px;
  padding: 5px 7px;
}

.roster-console-heading {
  margin-bottom: var(--space-3);
}

.queue-row.current {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.log-row {
  align-items: start;
}

.student-meta {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.student-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}

.speaker-card .student-name,
.presence-row .student-name {
  white-space: normal;
  overflow-wrap: anywhere;
}

.student-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-subtle);
  font-size: var(--step--1);
}

.status-actions {
  justify-content: flex-end;
}

.grid-row {
  grid-template-columns: minmax(180px, 1fr) repeat(6, minmax(72px, 92px));
  padding: 7px;
}

.discussion-grid .grid-row {
  grid-template-columns: minmax(180px, 1fr) 132px minmax(460px, 2.4fr) 100px;
}

.operator-table .table-header {
  min-height: 34px;
  border-color: color-mix(in srgb, var(--blue) 18%, var(--line));
  background: color-mix(in srgb, var(--surface-3) 70%, transparent);
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 820;
  text-transform: uppercase;
}

.operator-table .table-row:hover {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 7%, transparent), transparent 50%),
    var(--surface-2);
}

.discussion-grid.operator-table {
  gap: var(--space-2);
}

.discussion-grid.operator-table .grid-row {
  grid-template-columns: minmax(190px, 1fr) 104px minmax(360px, 1.6fr) 92px;
}

.discussion-mark-cell,
.roster-signal-cell {
  min-width: 0;
}

.discussion-mark-cell .participation-toggle {
  width: 100%;
}

.participation-toggle {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--coral) 11%, transparent), transparent),
    color-mix(in srgb, var(--coral) 6%, var(--surface));
  color: color-mix(in srgb, var(--coral) 72%, var(--ink));
  font-weight: 780;
  box-shadow: var(--hardware-shadow, none);
}

.participation-toggle:hover {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}

.participation-toggle.active {
  border-color: color-mix(in srgb, var(--green) 44%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--green) 20%, transparent), transparent),
    color-mix(in srgb, var(--green) 12%, var(--surface));
  color: color-mix(in srgb, var(--green) 74%, var(--ink));
}

.discussion-presence {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent),
    color-mix(in srgb, var(--blue) 4%, var(--surface));
}

.presence-label {
  color: color-mix(in srgb, var(--blue) 74%, var(--ink));
  font-size: var(--step--1);
  font-weight: 820;
  text-transform: uppercase;
}

.article-card {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent),
    color-mix(in srgb, var(--blue) 4%, var(--surface));
  box-shadow: var(--module-shadow, none);
}

.article-card a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--blue) 32%, var(--line-strong));
  border-radius: var(--radius-3);
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(255, 255, 255, 0.025) 16px),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 6%, transparent), transparent),
    color-mix(in srgb, var(--surface-2) 84%, transparent);
  color: var(--ink-muted);
  padding: var(--space-8);
  text-align: center;
  font-weight: 720;
}

.empty-library-section {
  gap: 0;
}

.empty-library-state {
  min-height: clamp(300px, 42vh, 460px);
  border-style: solid;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 64%),
    color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.empty-library-state > div {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  max-width: 560px;
}

.empty-library-state h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1;
}

.empty-library-state .muted {
  max-width: 34rem;
}

.empty-library-state .action-row {
  justify-content: center;
  margin-top: var(--space-2);
}

.empty-library-state .ghost-button {
  min-width: 142px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-6);
}

.library-manager {
  gap: var(--space-7);
}

.library-toolbar,
.preflight-panel {
  display: grid;
  gap: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%),
    var(--module-gradient, linear-gradient(180deg, var(--surface), var(--surface-2))),
    var(--surface);
  box-shadow: var(--module-shadow, var(--shadow-sm));
}

.library-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: var(--space-7);
}

.library-title-block,
.file-main {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}

.command-cluster {
  padding: var(--space-2);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: var(--radius-3);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.file-manager-list {
  grid-template-columns: 1fr;
}

.class-file-row,
.session-file-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: var(--space-5);
}

.file-leading {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius-2);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent),
    var(--surface-2);
  color: color-mix(in srgb, var(--accent) 74%, var(--ink));
  box-shadow: var(--hardware-shadow, var(--shadow-xs));
}

.file-glyph {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.file-meta,
.file-actions {
  align-items: center;
}

.preflight-console {
  display: grid;
  gap: var(--space-5);
}

.preflight-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: stretch;
  padding: var(--space-5);
}

.preflight-checklist {
  display: grid;
  gap: var(--space-3);
}

.preflight-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  padding: var(--space-4);
}

.preflight-item > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.preflight-item strong {
  color: var(--ink);
  font-size: var(--step-0);
}

.preflight-item span:not(.preflight-led) {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preflight-led {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 16%, transparent);
}

.preflight-item.ready .preflight-led {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent), 0 0 14px color-mix(in srgb, var(--green) 42%, transparent);
}

.preflight-launch {
  display: grid;
  align-content: end;
  gap: var(--space-3);
}

.date-control,
.topic-control,
.prompt-control {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}

.go-live-button {
  min-height: 54px;
}

.roster-stats {
  margin-bottom: var(--space-5);
}

.launcher {
  display: grid;
  gap: var(--space-8);
}

.launcher-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-7);
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), var(--surface) 48%, color-mix(in srgb, var(--blue) 11%, var(--surface))),
    var(--surface);
  box-shadow: var(--module-shadow, var(--shadow-md));
}

.launcher-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--amber), var(--blue));
}

.launcher-hero > * {
  position: relative;
  z-index: 1;
}

.launcher-hero h1 {
  font-size: var(--step-5);
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card,
.session-card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover,
.session-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.session-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.queue-block {
  margin-top: var(--space-7);
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--space-7);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.app-modal {
  width: min(520px, 100%);
  display: grid;
  gap: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-4);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.app-modal-header,
.app-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.app-modal-body {
  display: grid;
  gap: var(--space-5);
}

.app-modal-close {
  width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  line-height: 1;
}

.app-modal-actions {
  justify-content: flex-end;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
*::before,
*::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1320px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .left-rail {
    top: var(--studio-bar-offset, var(--studio-bar-height));
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding: var(--space-4) var(--space-7);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .activity-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(720px, 100%);
  }

  .nav-button {
    justify-content: center;
    text-align: center;
  }
}

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

  .command-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    max-height: none;
  }

  .live-deck,
.live-deck.pair-mode {
    grid-template-columns: 1fr;
  }

  .timer-card {
    min-height: 0;
  }

  .discussion-grid .grid-row {
    grid-template-columns: minmax(160px, 1fr) minmax(128px, auto);
  }

  .discussion-grid .discussion-presence,
.discussion-grid .status-pill {
    grid-column: 1 / -1;
  }

  .discussion-grid.operator-table .grid-row,
.side-panel .roster-operator-sheet .roster-row {
    grid-template-columns: minmax(180px, 1fr) minmax(120px, auto) minmax(240px, auto);
  }

  .discussion-grid.operator-table .discussion-presence,
.discussion-grid.operator-table .status-pill {
    grid-column: auto;
  }

  .side-panel .roster-operator-sheet .table-header {
    grid-template-columns: minmax(180px, 1fr) minmax(120px, auto) minmax(240px, auto);
  }

  .side-panel .roster-status-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .left-rail {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .activity-nav {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-button {
    min-width: 142px;
  }

  .top-bar,
.setup-body,
.activity-header,
.library-toolbar,
.preflight-panel,
.launcher-hero,
.class-file-row,
.session-file-row,
.field-row {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .class-fields,
.top-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions > *,
.action-row > button {
    width: 100%;
  }

  .workspace,
.screen-launcher .workspace,
.screen-class-home .workspace {
    padding: var(--space-5);
  }

  .settings-stat-grid {
    grid-template-columns: 1fr;
  }

  .main-panel,
.side-panel,
.log-panel {
    padding: var(--space-5);
  }

  .pair-grid,
.flow-actions,
.filler-buttons {
    grid-template-columns: 1fr;
  }

  .grid-row,
.discussion-grid .grid-row,
.discussion-grid.operator-table .grid-row,
.side-panel .roster-operator-sheet .roster-row,
.side-panel .roster-operator-sheet .table-header {
    grid-template-columns: 1fr;
  }

  .discussion-grid.operator-table .table-header,
.side-panel .roster-operator-sheet .table-header {
    display: none;
  }

  .discussion-grid.operator-table .discussion-presence,
.discussion-grid.operator-table .status-pill {
    grid-column: auto;
  }

  .side-panel .roster-status-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-bar {
    grid-template-columns: 1fr;
  }

  .presence-row,
.presence-buttons {
    grid-template-columns: 1fr;
  }

  .session-card {
    grid-template-columns: 1fr;
  }

  .speaker-card .status-pill {
    position: static;
    justify-self: start;
    max-width: 100%;
  }

  .speaker-name {
    font-size: 2.55rem;
  }

  .pair-grid .speaker-name {
    font-size: 2rem;
  }

  .timer-readout {
    font-size: 3.8rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: var(--step-0);
  }

  .studio-bar {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .studio-signal,
.top-icon-actions,
.theme-switcher {
    justify-content: space-between;
  }

  .studio-mode {
    max-width: none;
  }

  .top-context {
    width: 100%;
  }

  .top-context .count-pill {
    flex: 1 1 0;
  }

  .top-icon-actions {
    width: 100%;
  }

  .left-rail {
    top: 0;
  }

  .brand-subtitle,
.theme-label {
    display: none;
  }

  .setup-strip summary {
    align-items: flex-start;
    flex-direction: column;
  }

  #setupSummaryMeta {
    margin-left: 0;
  }

  .launcher-hero {
    padding: var(--space-7);
  }

  .launcher-hero h1 {
    font-size: 2.25rem;
  }

  .speaker-name {
    font-size: 2.15rem;
  }

  .timer-readout {
    font-size: 3.35rem;
  }
}

/* High-fidelity console direction: Think Fast is the visual prototype. */
:root {
  --console-black: #070a0d;
  --console-panel: #111820;
  --console-panel-2: #171f29;
  --console-metal: #252a31;
  --console-metal-2: #30343b;
  --console-glass: rgba(18, 25, 33, 0.78);
  --console-hairline: rgba(164, 183, 204, 0.16);
  --console-hairline-strong: rgba(143, 181, 220, 0.31);
  --console-teal: #76e4d0;
  --console-blue: #76adff;
  --console-gold: #ffe8a6;
  --console-red: #ff756b;
  --console-radius: 18px;
  --console-radius-lg: 24px;
  --console-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.055);
  --console-inset: inset 0 1px rgba(255, 255, 255, 0.07), inset 0 -1px rgba(0, 0, 0, 0.52);
}

body {
  background:
    var(--bg);
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 180px),
    linear-gradient(90deg, rgba(118, 228, 208, 0.075), transparent 16%, transparent 78%, rgba(118, 173, 255, 0.07));
}

.console-chrome {
  min-height: 58px;
  border-bottom: 1px solid var(--console-hairline);
  background:
    linear-gradient(180deg, rgba(24, 31, 40, 0.96), rgba(7, 10, 13, 0.94)),
    var(--console-black);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.console-chrome .studio-label {
  letter-spacing: 0.02em;
}

.console-chrome .studio-mode,
.console-chrome .count-pill,
.console-chrome .save-status,
.console-chrome .icon-button {
  min-height: 40px;
  border-radius: 12px;
  border-color: var(--console-hairline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(16, 21, 28, 0.92);
  box-shadow: var(--console-inset), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.console-chrome .home-button {
  border-radius: 14px;
}

.top-context {
  border-color: var(--console-hairline);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 14px;
}

.screen-active .workspace {
  width: min(1760px, 100%);
  padding: 18px 22px 28px;
}

.screen-active .content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 18px;
}

.screen-active .main-panel,
.screen-active .side-panel,
.screen-active .setup-strip,
.screen-active .log-panel,
.screen-class-home .main-panel,
.screen-launcher .main-panel {
  border-color: var(--console-hairline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 160px),
    rgba(17, 24, 32, 0.86);
  box-shadow: var(--console-shadow);
}

.screen-active .main-panel {
  padding: 18px;
  border-radius: var(--console-radius-lg);
}

.activity-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--console-hairline);
}

.activity-title h1 {
  font-size: clamp(2rem, 3vw, 3.65rem);
  line-height: 0.95;
}

.activity-title .muted {
  font-size: var(--step-2);
}

.activity-kicker,
.console-chip {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(118, 228, 208, 0.34);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(118, 228, 208, 0.13), rgba(118, 228, 208, 0.035)),
    rgba(4, 12, 14, 0.7);
  color: #9ff4e6;
  padding: 5px 8px;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-chip.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--console-teal);
  box-shadow: 0 0 16px rgba(118, 228, 208, 0.85);
}

.prompt-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px;
  border: 1px solid var(--console-hairline);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), transparent),
    rgba(5, 9, 13, 0.55);
  box-shadow: var(--console-inset);
}

.prompt-dock .prompt-control {
  gap: 5px;
}

.prompt-dock .prompt-control span {
  padding-left: 8px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prompt-dock input {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(2, 6, 10, 0.72);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.thinkfast-console {
  display: grid;
  gap: 16px;
}

.thinkfast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.72fr);
  gap: 16px;
}

.tf-program-monitor,
.tf-clock-module .timer-card,
.tf-instrument {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--console-hairline-strong);
  border-radius: var(--console-radius-lg);
  background:
    linear-gradient(135deg, rgba(118, 228, 208, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--console-panel);
  box-shadow: var(--console-shadow);
}

.tf-program-monitor::before,
.tf-clock-module .timer-card::before,
.tf-instrument::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.025) 32px),
    radial-gradient(circle at 18% 18%, rgba(118, 228, 208, 0.12), transparent 16rem);
  background-size: 32px 32px, auto;
  opacity: 0.55;
}

.tf-program-monitor > *,
.tf-clock-module .timer-card > *,
.tf-instrument > * {
  position: relative;
  z-index: 1;
}

.tf-program-monitor {
  min-height: 390px;
  display: grid;
  align-content: space-between;
  padding: clamp(22px, 3vw, 38px);
}

.tf-monitor-top,
.tf-monitor-bottom,
.instrument-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.tf-speaker-name {
  max-width: 15ch;
  color: #f4f8fb;
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 6vw, 6.8rem);
  font-weight: 830;
  letter-spacing: 0;
  line-height: 0.88;
  overflow-wrap: anywhere;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.tf-monitor-bottom {
  justify-content: flex-start;
  color: var(--ink-muted);
}

.tf-monitor-bottom span,
.instrument-heading span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tf-monitor-bottom strong,
.instrument-heading strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--step-0);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-clock-module .timer-card {
  min-height: 390px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 34%, rgba(118, 173, 255, 0.2), transparent 10.5rem),
    radial-gradient(circle at 50% 36%, rgba(0, 0, 0, 0) 0 8.8rem, rgba(118, 228, 208, 0.28) 8.9rem 9.05rem, rgba(0, 0, 0, 0) 9.15rem),
    linear-gradient(180deg, rgba(12, 18, 24, 0.92), rgba(4, 7, 10, 0.98)),
    var(--console-black);
}

.tf-clock-module .timer-card::before {
  opacity: 0.3;
}

.tf-clock-module .timer-readout {
  justify-self: center;
  color: var(--ink);
  font-size: clamp(4.6rem, 7.5vw, 8rem);
  font-weight: 850;
  text-shadow: none;
}

.tf-clock-module .mini-stats {
  justify-content: center;
}

.tf-clock-module .flow-actions {
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border: 1px solid var(--console-hairline);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
}

.tf-clock-module .timer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tf-clock-module .timer-actions button,
.tf-clock-module .flow-actions button,
.tf-instrument button {
  border-radius: 13px;
}

.tf-instrument-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.2fr) minmax(300px, 1fr);
  gap: 14px;
}

.tf-instrument {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.filler-hardware {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: stretch;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--console-hairline);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(3, 7, 10, 0.54);
  box-shadow: var(--console-inset);
}

.filler-hardware .stepper-button {
  min-height: 88px;
  border-radius: 16px;
  font-size: 1.5rem;
}

.filler-hardware .filler-total {
  min-height: 88px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 232, 166, 0.08), transparent),
    rgba(255, 232, 166, 0.045);
}

.filler-hardware .filler-total span {
  font-size: clamp(3rem, 4vw, 4.6rem);
}

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

.presence-instrument .rating-button {
  min-height: 44px;
  border-radius: 13px;
}

.next-three-list {
  display: grid;
  gap: 7px;
}

.next-three-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--console-hairline);
  border-radius: 13px;
  background: rgba(5, 9, 13, 0.5);
  padding: 6px 9px;
}

.next-three-row > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(118, 173, 255, 0.12);
  color: #b9d2ff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 850;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.stepper-button,
.participation-toggle {
  box-shadow: var(--console-inset), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.primary-button {
  background: var(--accent);
  color: var(--bg);
}

.danger-button {
  color: #ffd0cc;
}

.screen-active .side-panel {
  border-radius: var(--console-radius-lg);
}

.roster-drawer {
  display: grid;
  gap: 14px;
}

.roster-drawer > summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--console-ink);
  cursor: pointer;
  list-style: none;
}

.roster-drawer > summary::-webkit-details-marker {
  display: none;
}

.roster-drawer > summary span:first-child {
  font-size: 1.08rem;
  font-weight: 850;
}

.roster-drawer > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(220, 236, 255, 0.74);
  border-bottom: 2px solid rgba(220, 236, 255, 0.74);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.roster-drawer[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.roster-drawer-body {
  display: grid;
  gap: 12px;
}

.roster-summary-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  background: var(--analog-black);
}

.roster-summary-meter {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
  background: var(--surface-2);
}

.roster-summary-meter span {
  min-width: 0;
  overflow: hidden;
  color: var(--analog-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.roster-summary-meter strong {
  color: var(--analog-ink);
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.roster-summary-meter.status-available {
  border-color: #395f45;
}

.roster-summary-meter.status-late,
.roster-summary-meter.status-discussion {
  border-color: #51472e;
}

.roster-summary-meter.status-left,
.roster-summary-meter.status-absent,
.roster-summary-meter.status-notSeen {
  border-color: #5a3c32;
}

.roster-operator-sheet .table-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent),
    rgba(9, 14, 19, 0.62);
}

.roster-status-buttons .small-button.active,
.status-actions .small-button.active {
  border-color: rgba(118, 228, 208, 0.42);
  background:
    linear-gradient(180deg, rgba(118, 228, 208, 0.22), rgba(118, 228, 208, 0.06)),
    rgba(10, 35, 33, 0.78);
  color: #bafbef;
}

.library-toolbar,
.preflight-panel,
.class-file-row,
.session-file-row {
  border-radius: var(--console-radius-lg);
}

.library-toolbar {
  background:
    radial-gradient(circle at 82% 18%, rgba(118, 173, 255, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(118, 228, 208, 0.095), transparent 40%),
    rgba(18, 25, 33, 0.88);
}

.class-file-row,
.session-file-row {
  background:
    linear-gradient(135deg, rgba(118, 228, 208, 0.08), transparent 24%),
    rgba(18, 25, 33, 0.88);
}

@media (min-width: 1181px) {
  .screen-active .side-panel {
    align-self: start;
    position: sticky;
    top: calc(var(--studio-bar-offset, var(--studio-bar-height)) + 18px);
  }
}

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

  .screen-active .side-panel {
    position: static;
    top: auto;
  }

  .tf-instrument-row {
    grid-template-columns: 1fr;
  }

  .tf-program-monitor,
.tf-clock-module .timer-card {
    min-height: 310px;
  }
}

@media (max-width: 760px) {
  .prompt-dock {
    grid-template-columns: 1fr;
  }

  .thinkfast-hero {
    grid-template-columns: 1fr;
  }

  .tf-speaker-name {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .tf-instrument {
    min-height: 0;
  }

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

/* Analog console reset: flatter,
warmer,
and closer to a retro live-control desk. */
:root {
  --analog-bg: #11130f;
  --analog-bg-deep: #090b09;
  --analog-panel: #191b16;
  --analog-panel-2: #20231d;
  --analog-panel-3: #272a22;
  --analog-ink: #eee9d8;
  --analog-soft: #c9c0aa;
  --analog-muted: #9f967f;
  --analog-line: #3d4035;
  --analog-line-strong: #585a4b;
  --analog-green: #6fb886;
  --analog-green-deep: #203c2f;
  --analog-amber: #d6aa55;
  --analog-red: #c87361;
  --analog-blue: #71879d;
  --analog-black: #070806;
  --analog-radius: 6px;
  --analog-radius-sm: 4px;
  --analog-radius-lg: 9px;
  --analog-shadow: none;
  --analog-inset: inset 0 1px rgba(255, 255, 255, 0.035), inset 0 -1px rgba(0, 0, 0, 0.28);

  --bg: var(--analog-bg);
  --surface: var(--analog-panel);
  --surface-2: var(--analog-panel-2);
  --surface-3: var(--analog-panel-3);
  --surface-raised: var(--analog-panel-2);
  --ink: var(--analog-ink);
  --ink-soft: var(--analog-soft);
  --ink-muted: var(--analog-muted);
  --ink-subtle: #827a67;
  --line: var(--analog-line);
  --line-strong: var(--analog-line-strong);
  --accent: var(--analog-green);
  --blue: var(--analog-blue);
  --amber: var(--analog-amber);
  --coral: var(--analog-red);
  --green: var(--analog-green);
  --radius-1: 4px;
  --radius-2: 6px;
  --radius-3: 8px;
  --radius-4: 9px;
  --module-shadow: var(--analog-inset);
  --hardware-shadow: var(--analog-inset);
}

body {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent 0 39px, rgba(238, 233, 216, 0.026) 40px),
    var(--bg);
  background-size: auto, 40px 40px, auto;
  color: var(--analog-ink);
}

body::before {
  background:
    linear-gradient(90deg, rgba(111, 184, 134, 0.06), transparent 26%, transparent 74%, rgba(214, 170, 85, 0.045));
}

.console-chrome,
.left-rail,
.top-bar,
.setup-strip,
.main-panel,
.side-panel,
.log-panel,
.library-toolbar,
.preflight-panel,
.class-file-row,
.session-file-row,
.modal-content {
  border-color: var(--analog-line);
  border-radius: var(--analog-radius-lg);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 6px),
    var(--analog-panel);
  box-shadow: var(--analog-inset);
  backdrop-filter: none;
}

.console-chrome {
  min-height: 56px;
  background:
    linear-gradient(180deg, #1b1e18, #11130f);
  box-shadow: inset 0 -1px var(--analog-line);
}

.studio-label,
.brand-name,
.activity-title h1,
.section-heading h2,
.roster-drawer > summary span:first-child {
  color: var(--analog-ink);
}

.studio-label,
.activity-kicker,
.console-chip,
.command-label,
.instrument-heading span,
.tf-monitor-bottom span,
label {
  letter-spacing: 0.06em;
}

.studio-mode,
.top-context,
.console-chrome .count-pill,
.console-chrome .save-status,
.console-chrome .icon-button,
.home-button,
.icon-button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.stepper-button,
.participation-toggle,
input,
textarea,
select {
  border-color: var(--analog-line);
  border-radius: var(--analog-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.045)),
    var(--analog-panel-2);
  box-shadow: var(--analog-inset);
  color: var(--analog-ink);
}

.top-context {
  background: var(--analog-black);
}

.tally-light {
  background: var(--analog-green);
  box-shadow: 0 0 0 1px #314737;
}

.save-status::before,
.console-chip.live::before {
  background: var(--analog-green);
  box-shadow: 0 0 0 1px #304a37;
}

.left-rail {
  background:
    var(--surface);
}

.brand-mark {
  border-color: var(--analog-line-strong);
  border-radius: var(--analog-radius);
  background: var(--surface-3);
  box-shadow: var(--analog-inset);
  color: var(--analog-ink);
}

.brand-subtitle,
.muted,
.muted-count,
.student-id,
.count-pill,
.status-pill,
.activity-title .muted {
  color: var(--analog-muted);
}

.brand-name,
.activity-title h1,
.tf-speaker-name,
.speaker-name {
  font-family: var(--font-display);
}

.activity-kicker,
.console-chip,
label,
.command-label,
.count-pill,
.status-pill,
.nav-icon,
.file-glyph,
.shortcut,
.roster-summary-meter span,
.roster-summary-meter strong {
  font-family: var(--font-label);
}

.timer-readout,
.tf-clock-module .timer-readout,
.filler-total span {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums slashed-zero;
}

.nav-button {
  border-color: transparent;
  border-radius: var(--analog-radius);
  background: var(--surface-2);
  color: var(--analog-soft);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--analog-line-strong);
  border-radius: var(--analog-radius-sm);
  background: var(--analog-black);
  color: var(--analog-soft);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.nav-button::before {
  width: 6px;
  height: 28px;
  border-radius: 3px;
  background: #42483b;
  box-shadow: none;
}

.nav-button:hover {
  border-color: var(--analog-line);
  background: var(--surface-3);
}

.nav-button.active {
  border-color: var(--analog-line-strong);
  background: var(--surface-3);
  box-shadow: none;
}

.nav-button.active::before {
  background: var(--analog-green);
  box-shadow: none;
}

.screen-active .workspace {
  width: min(1720px, 100%);
}

.screen-active .content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
}

.screen-active .main-panel,
.screen-active .side-panel,
.screen-active .setup-strip,
.screen-active .log-panel,
.screen-class-home .main-panel,
.screen-launcher .main-panel {
  border-color: var(--analog-line);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 7px),
    var(--analog-panel);
  box-shadow: var(--analog-inset);
}

.screen-active .main-panel,
.screen-active .side-panel {
  border-radius: var(--analog-radius-lg);
}

.activity-header {
  border-bottom-color: var(--analog-line);
}

.activity-title h1 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.activity-title .muted {
  font-size: 1rem;
}

.activity-kicker,
.console-chip {
  border-color: var(--analog-line-strong);
  border-radius: var(--analog-radius-sm);
  background: var(--surface-2);
  color: var(--ink-soft);
  padding: 4px 8px;
  font-size: 0.68rem;
  box-shadow: none;
}

.prompt-dock {
  gap: 8px;
  border-color: var(--analog-line);
  border-radius: var(--analog-radius-lg);
  background: var(--analog-panel-2);
  box-shadow: var(--analog-inset);
}

.prompt-dock input,
input,
textarea,
select {
  background: var(--analog-black);
  color: var(--analog-ink);
}

.prompt-dock .prompt-control span,
.instrument-heading span,
.tf-monitor-bottom span {
  color: var(--analog-muted);
}

.thinkfast-console {
  gap: 18px;
}

.thinkfast-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 18px;
}

.tf-program-monitor,
.tf-clock-module .timer-card,
.tf-instrument {
  overflow: hidden;
  border-color: var(--analog-line-strong);
  border-radius: var(--analog-radius-lg);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 7px),
    var(--analog-panel-2);
  box-shadow: var(--analog-inset);
}

.tf-program-monitor::before,
.tf-clock-module .timer-card::before,
.tf-instrument::before {
  background:
    linear-gradient(90deg, rgba(111, 184, 134, 0.05), transparent 34%, transparent 66%, rgba(214, 170, 85, 0.035));
  background-size: auto;
  opacity: 1;
}

.tf-program-monitor {
  min-height: 330px;
  padding: 28px;
}

.tf-speaker-name {
  max-width: none;
  color: var(--analog-ink);
  font-size: clamp(3rem, 4.8vw, 5.4rem);
  font-weight: 760;
  line-height: 0.96;
  text-shadow: none;
}

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

.tf-clock-module .timer-card {
  min-height: 330px;
  align-content: stretch;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 7px),
    var(--analog-panel-2);
}

.tf-clock-module .timer-readout {
  width: 100%;
  align-self: center;
  justify-self: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--analog-radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: 16px 12px;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 6vw, 6.4rem);
  font-weight: 760;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  text-shadow: none;
}

.tf-clock-module .flow-actions,
.filler-hardware {
  border-color: var(--analog-line);
  border-radius: var(--analog-radius);
  background: var(--analog-black);
  box-shadow: var(--analog-inset);
}

.tf-clock-module .timer-actions button,
.tf-clock-module .flow-actions button,
.tf-instrument button {
  border-radius: var(--analog-radius);
}

.tf-instrument-row {
  grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1.2fr) minmax(310px, 1fr);
  gap: 18px;
}

.screen-active .main-panel {
  container-type: inline-size;
}

@container (max-width: 920px) {
  .thinkfast-hero,
.tf-instrument-row {
    grid-template-columns: 1fr;
  }
}

.tf-instrument {
  min-height: 190px;
}

.filler-hardware {
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  padding: 8px;
}

.filler-hardware .stepper-button {
  min-height: 78px;
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--analog-ink);
  font-size: 1.45rem;
}

.filler-hardware .filler-total {
  min-height: 78px;
  border: 1px solid var(--line-strong);
  border-radius: var(--analog-radius);
  background: var(--surface-2);
}

.filler-hardware .filler-total span {
  color: var(--analog-ink);
  font-family: var(--font-mono);
  font-size: clamp(2.7rem, 3.2vw, 4rem);
  font-weight: 720;
}

.filler-hardware .filler-total small {
  color: var(--analog-muted);
}

.presence-instrument .rating-button,
.participation-toggle,
.small-button,
.secondary-button,
.ghost-button {
  background: var(--surface-3);
}

.presence-instrument .rating-button.active,
.rating-button.active,
.participation-toggle.active,
.roster-status-buttons .small-button.active,
.status-actions .small-button.active {
  border-color: #526b56;
  background: var(--analog-green-deep);
  color: #c9ead2;
}

.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.danger-button {
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
  background: color-mix(in srgb, var(--red) 14%, var(--surface-2));
  color: var(--red);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.stepper-button,
.participation-toggle {
  box-shadow: var(--analog-inset);
}

.next-three-row,
.roster-operator-sheet .table-row,
.queue-row,
.grid-row,
.log-row,
.project-card,
.class-file-row,
.session-file-row {
  border-color: var(--analog-line);
  border-radius: var(--analog-radius);
  background: var(--surface-2);
  box-shadow: var(--analog-inset);
}

.next-three-row > span {
  border-radius: var(--analog-radius-sm);
  background: var(--surface-3);
  color: var(--analog-soft);
}

.roster-operator-sheet .table-header,
.discussion-grid.operator-table .table-header {
  border-color: var(--analog-line-strong);
  background: var(--analog-panel-2);
}

.roster-stats .count-pill,
.mini-stats .count-pill {
  background: var(--surface-2);
}

.count-pill,
.status-pill {
  border-radius: var(--analog-radius-sm);
  font-family: var(--font-label);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.article-card,
.app-modal {
  border-color: var(--analog-line);
  border-radius: var(--analog-radius-lg);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 7px),
    var(--analog-panel);
  box-shadow: var(--analog-inset);
}

.article-card a {
  color: #a8d8b8;
}

.app-modal-backdrop {
  background: rgba(7, 8, 6, 0.72);
  backdrop-filter: none;
}

.discussion-presence {
  border-color: var(--analog-line);
  background: var(--surface-2);
}

.discussion-grid.operator-table .grid-row {
  grid-template-columns: minmax(190px, 1fr) 104px minmax(360px, 1.6fr) 92px;
}

.library-toolbar,
.class-file-row,
.session-file-row {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 7px),
    var(--analog-panel);
}

.class-setup-console,
.class-dashboard,
.class-settings-console {
  display: grid;
  gap: 16px;
}

.roster-import-panel,
.class-stat-card,
.new-session-card {
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-lg);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 7px),
    var(--analog-panel);
  box-shadow: var(--analog-inset);
}

.roster-import-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  padding: 28px;
}

.roster-import-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.roster-import-copy h2 {
  max-width: 8ch;
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.2vw, 7rem);
  line-height: 0.88;
}

.roster-import-copy p {
  max-width: 34rem;
  font-size: var(--step-0);
}

.roster-import-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.84fr) minmax(300px, 1fr);
  gap: 18px;
}

.roster-import-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 310px;
  padding: 20px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  background: var(--surface-2);
  box-shadow: var(--analog-inset);
}

.roster-import-card strong {
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0;
}

.file-import-card {
  cursor: pointer;
}

.file-import-card input[type="file"] {
  align-self: end;
  margin-top: auto;
}

.manual-import-card textarea {
  min-height: 170px;
  resize: vertical;
}

.manual-import-card .secondary-button {
  min-height: 46px;
}

.class-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.class-stat-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 140px;
  padding: 18px;
}

.class-stat-card span,
.session-list-title {
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: var(--step--2);
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.class-stat-card strong {
  overflow: hidden;
  color: var(--analog-cream);
  font-family: var(--font-numeric);
  font-size: clamp(2rem, 2.4vw, 3rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-stat-card small {
  color: var(--analog-muted);
  font-size: var(--step--1);
  font-weight: 700;
}

.class-session-panel {
  margin-top: 8px;
}

.new-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) minmax(170px, 220px);
  align-items: end;
  gap: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.new-session-card h3 {
  margin: 6px 0 4px;
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: var(--step-3);
  letter-spacing: 0;
  line-height: 0.98;
}

.archive-drawer {
  display: grid;
  gap: var(--space-3);
}

.archive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  cursor: pointer;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  padding: 0 var(--space-4);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 760;
}

.archive-summary::after {
  content: "+";
  color: var(--analog-muted);
  font-family: var(--font-mono);
}

.archive-drawer[open] .archive-summary::after {
  content: "-";
}

.class-dashboard-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.54fr) minmax(720px, 1.46fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
}

.class-dashboard-title {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.class-dashboard-title h1 {
  min-width: 0;
  overflow: hidden;
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.05rem);
  letter-spacing: 0;
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-launch-panel {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 8px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  padding: 10px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  box-shadow: var(--analog-inset);
}

.compact-date-control {
  flex: 1 1 148px;
  gap: 4px;
  min-width: 128px;
}

.dashboard-launch-panel .session-type-control {
  flex-basis: 178px;
}

.dashboard-launch-panel .evaluation-series-control,
.dashboard-launch-panel .presentation-title-control {
  flex: 1.25 1 190px;
}

.compact-date-control span {
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: var(--step--2);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compact-date-control input,
.compact-date-control select {
  min-height: 38px;
}

.dashboard-launch-panel .go-live-button {
  flex: 0 0 92px;
  min-height: 38px;
  min-width: 0;
}

.dashboard-launch-panel .class-settings-button {
  flex: 0 0 116px;
  min-height: 38px;
  min-width: 0;
}

.class-settings-header {
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  justify-content: start;
  gap: 12px;
}

.class-settings-actions {
  align-items: end;
}

.class-settings-window {
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.settings-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.settings-stat-card,
.settings-card {
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 7px),
    var(--analog-panel);
  box-shadow: var(--analog-inset);
}

.settings-stat-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 82px;
  padding: 12px;
}

.settings-stat-card span,
.settings-stat-card small,
.settings-field span {
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: var(--step--2);
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-transform: uppercase;
}

.settings-stat-card strong {
  color: var(--analog-cream);
  font-family: var(--font-numeric);
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  line-height: 1;
}

.class-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.roster-settings-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.settings-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.settings-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.class-name-settings-panel {
  padding: 16px;
}

.class-name-field {
  gap: 8px;
}

.class-name-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.settings-field input,
.settings-card textarea,
.settings-file-drop {
  width: 100%;
}

.settings-file-drop {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 14px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  background: var(--surface-2);
  cursor: pointer;
}

.settings-file-drop strong,
.settings-roster-notes strong {
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: 0;
}

.settings-roster-notes {
  display: grid;
  gap: 10px;
}

.settings-roster-notes > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.settings-roster-notes span {
  color: var(--analog-muted);
  font-weight: 720;
  line-height: 1.25;
}

.roster-settings-panel {
  gap: 16px;
}

.roster-settings-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.roster-settings-titlebar > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.roster-settings-titlebar h2 {
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
}

.roster-settings-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.roster-add-toggle {
  min-height: 38px;
  white-space: nowrap;
}

.roster-add-toggle span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border-radius: 999px;
}

.roster-settings-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
  gap: 12px;
  align-items: stretch;
}

.roster-settings-tools[hidden] {
  display: none !important;
}

.roster-add-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 150px) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.roster-import-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  border: 1px dashed var(--analog-line);
  border-radius: var(--analog-radius);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  cursor: pointer;
}

.roster-import-compact strong {
  min-width: 0;
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: var(--step-0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-import-compact input {
  grid-column: 1 / -1;
  width: 100%;
}

.roster-settings-editor {
  display: grid;
  gap: 14px;
}

.roster-settings-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.roster-settings-group-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 28px;
}

.roster-settings-group-heading h3 {
  color: var(--analog-cream);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1;
}

.roster-settings-group-heading span {
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: var(--step--2);
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.roster-settings-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 7px;
  min-width: 0;
  max-height: 52vh;
  overflow: auto;
  padding: 2px 7px 8px 2px;
}

.roster-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.roster-settings-row.inactive {
  opacity: 0.74;
}

.roster-settings-identity {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  height: 100%;
}

.roster-settings-identity strong,
.roster-settings-identity span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-settings-identity strong {
  color: var(--analog-cream);
  font-size: var(--step-0);
  font-weight: 850;
  line-height: 1.05;
}

.roster-settings-identity span {
  color: var(--analog-muted);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 720;
  line-height: 1;
}

.roster-settings-row-actions {
  display: grid;
  align-items: center;
  justify-items: end;
  min-width: 0;
  height: 100%;
}

.roster-mini-button {
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  min-height: 36px;
  padding: 0 10px;
}

.roster-settings-empty {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
}

.progress-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.progress-card {
  display: grid;
  grid-template-rows: auto minmax(124px, 1fr);
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-lg);
  padding: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 7px),
    var(--analog-panel);
  box-shadow: var(--analog-inset);
}

.progress-card-head {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.progress-card-head strong {
  overflow: hidden;
  color: var(--analog-cream);
  font-family: var(--font-numeric);
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-card-head small {
  color: var(--analog-muted);
  font-size: var(--step--1);
  font-weight: 720;
}

.progress-chart {
  width: 100%;
  min-height: 124px;
  overflow: visible;
}

.chart-grid-line {
  stroke: color-mix(in srgb, var(--analog-line) 82%, transparent);
  stroke-width: 1;
}

.chart-grid-line.faint {
  opacity: 0.42;
}

.trend-area {
  fill: color-mix(in srgb, var(--green) 14%, transparent);
}

.trend-line-path,
.average-line-path {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bar-point rect {
  fill: color-mix(in srgb, var(--blue) 70%, var(--accent));
}

.average-line-path {
  stroke: var(--amber);
}

.average-point circle,
.chart-point circle {
  fill: var(--surface);
  stroke: var(--green);
  stroke-width: 3;
}

.average-point circle {
  stroke: var(--amber);
}

.chart-value-label,
.chart-average-label,
.chart-date-label {
  fill: var(--analog-cream);
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 820;
}

.chart-average-label,
.chart-date-label {
  fill: var(--analog-muted);
}

.progress-discussion .bar-point rect {
  fill: color-mix(in srgb, var(--blue) 78%, var(--accent));
}

.progress-fillers .bar-point rect {
  fill: color-mix(in srgb, var(--amber) 72%, var(--red));
}

.progress-empty-chart {
  display: grid;
  min-height: 124px;
  place-items: center;
  border: 1px dashed var(--analog-line);
  border-radius: var(--analog-radius);
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.class-session-panel {
  display: grid;
  gap: 12px;
}

.class-session-panel .session-list {
  gap: 8px;
}

.class-session-panel .session-file-row {
  min-height: 58px;
  padding: 10px 12px;
}

.class-session-panel .file-main h2 {
  font-size: var(--step-1);
}

.session-list-title {
  margin-bottom: 10px;
}

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

  .screen-active .side-panel {
    position: static;
    top: auto;
  }

  .thinkfast-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  }

  .discussion-grid.operator-table .grid-row {
    grid-template-columns: minmax(180px, 1fr) 96px minmax(320px, 1.4fr) 84px;
  }

  .roster-import-panel,
.roster-import-grid,
.new-session-card {
    grid-template-columns: 1fr;
  }

  .class-dashboard-header,
.class-settings-header,
.dashboard-launch-panel,
.progress-card-grid,
.class-settings-grid,
.roster-settings-layout,
.roster-settings-tools,
.roster-add-form,
.roster-settings-titlebar {
    grid-template-columns: 1fr;
  }

  .roster-settings-title-actions {
    justify-content: space-between;
  }

  .class-stat-grid,
.settings-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .thinkfast-hero,
.tf-instrument-row,
.discussion-grid.operator-table .grid-row {
    grid-template-columns: 1fr;
  }

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

  .discussion-presence,
.discussion-grid.operator-table .status-pill {
    grid-column: auto;
  }

  .tf-speaker-name {
    font-size: clamp(2.5rem, 10vw, 4.2rem);
  }

  .class-stat-grid {
    grid-template-columns: 1fr;
  }

  .roster-import-panel {
    padding: 18px;
  }

  .roster-settings-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .roster-settings-list {
    grid-template-columns: 1fr;
  }

  .roster-settings-row-actions {
    flex-wrap: wrap;
  }

  .class-name-control {
    grid-template-columns: 1fr;
  }
}

/* Polish pass: keep the analog dashboard,
remove the raw "sticker label" feeling. */
:root {
  --font-display: "Helvetica Neue", "Segoe UI", Arial, system-ui, sans-serif;
  --analog-cream: var(--analog-ink);
}

.top-context {
  gap: 10px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.context-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 32px;
  max-width: 30ch;
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.context-chip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--analog-ink);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-icon-actions {
  gap: 8px;
}

.save-state-button,
.theme-toggle-switch {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.035)),
    var(--analog-panel-2);
  box-shadow: var(--analog-inset);
  color: var(--analog-ink);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
  padding: 0 12px;
}

.save-state-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switch-track {
  width: 34px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--analog-line-strong);
  border-radius: 999px;
  background: var(--analog-black);
}

.theme-switch-knob {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--analog-amber);
  transition: transform 160ms ease, background 160ms ease;
}

.theme-toggle-switch[aria-checked="true"] .theme-switch-knob {
  transform: translateX(16px);
  background: var(--analog-green);
}

.studio-mode,
.save-status,
.home-button,
.icon-button,
.save-state-button,
.theme-toggle-switch,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.stepper-button,
.participation-toggle {
  min-height: 40px;
  line-height: 1.1;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.participation-toggle {
  padding: 9px 14px;
}

.activity-kicker,
.console-chip,
.count-pill,
.status-pill,
.shortcut,
.setup-option-label {
  align-items: center;
  border-radius: var(--analog-radius-sm);
  line-height: 1;
  padding: 5px 8px;
}

.activity-kicker,
.console-chip,
.setup-option-label {
  border-color: color-mix(in srgb, var(--analog-green) 28%, var(--analog-line));
  background: color-mix(in srgb, var(--analog-panel-2) 88%, var(--analog-green));
  color: color-mix(in srgb, var(--analog-green) 62%, var(--analog-ink));
}

.count-pill,
.status-pill,
.shortcut {
  background: color-mix(in srgb, var(--analog-panel-2) 86%, var(--analog-black));
}

.activity-title h1,
.launcher-hero h1,
.library-title-block h1,
.section-heading h2,
.new-session-card h3,
.roster-import-card strong,
.student-name,
.speaker-name,
.tf-speaker-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.library-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 156px;
  padding: 28px 30px;
}

.library-title-block h1 {
  font-size: clamp(2rem, 2.6vw, 3.1rem);
  line-height: 1;
}

.command-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
}

.command-cluster .primary-button,
.command-cluster .secondary-button,
.command-cluster .ghost-button {
  min-width: 132px;
}

.empty-state {
  min-height: 250px;
}

.empty-state .action-row {
  justify-content: center;
}

.roster-import-panel {
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 30px;
}

.roster-import-copy {
  align-content: start;
  max-width: 780px;
}

.roster-import-copy h2 {
  max-width: none;
  font-size: clamp(2.4rem, 3.6vw, 4.4rem);
  line-height: 0.98;
}

.roster-import-copy p {
  max-width: 54rem;
}

.roster-import-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  align-items: stretch;
}

.roster-import-card {
  min-height: 360px;
  gap: 16px;
  padding: 24px;
}

.setup-option-label {
  width: max-content;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-import-card textarea {
  min-height: 170px;
}

.screen-active .workspace {
  padding: 14px 18px 20px;
}

.screen-active .main-panel {
  padding: 16px;
}

.screen-active .setup-strip {
  display: none !important;
}

.activity-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.activity-title h1 {
  font-size: clamp(1.9rem, 2.25vw, 2.8rem);
  line-height: 1;
}

.activity-title .muted {
  font-size: var(--step-1);
}

.prompt-dock,
.field-row.prompt-command-row,
.field-row.discussion-command-row {
  gap: 10px;
  margin: 0 0 12px;
}

.prompt-dock input,
.prompt-command-row input,
.discussion-command-row input {
  min-height: 46px;
}

.nevermet-prompt-card {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
}

.nevermet-prompt-header {
  display: flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nevermet-prompt-header span {
  color: color-mix(in srgb, var(--accent) 72%, var(--analog-muted));
  font-size: 0.66rem;
  line-height: 1;
}

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

.nevermet-prompt-readout textarea {
  min-height: 82px;
  padding: 8px 10px;
  resize: none;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--analog-line));
  border-radius: var(--analog-radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent),
    var(--analog-panel-2);
  box-shadow: var(--analog-inset);
  font-size: clamp(0.88rem, 1.15cqw, 1rem);
  font-weight: 750;
  line-height: 1.24;
  text-transform: none;
}

.nevermet-reprompt-button {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--analog-line));
  border-radius: var(--analog-radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent),
    var(--analog-panel-2);
  box-shadow: var(--analog-inset);
  min-height: 36px;
  min-width: 0;
  align-self: center;
  padding-inline: 16px;
}

.thinkfast-console {
  gap: 12px;
}

.thinkfast-hero {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
  gap: 14px;
}

.tf-program-monitor,
.tf-clock-module .timer-card {
  min-height: 255px;
}

.tf-program-monitor {
  padding: 22px 24px;
}

.tf-speaker-name {
  font-size: clamp(2.55rem, 3.65vw, 4.45rem);
  font-weight: 760;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
}

.tf-clock-module .timer-card {
  padding: 14px;
}

.tf-clock-module .timer-readout {
  padding: 12px 10px;
  font-size: clamp(3.5rem, 5vw, 5.4rem);
  letter-spacing: 0;
}

.tf-clock-module .flow-actions {
  padding: 4px;
}

.tf-clock-module .timer-actions {
  gap: 6px;
}

.tf-instrument-row {
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1fr) minmax(290px, 0.95fr);
  gap: 14px;
}

.tf-instrument {
  min-height: 150px;
  gap: 10px;
  padding: 14px;
}

.filler-hardware {
  grid-template-columns: 56px minmax(0, 1fr) 56px;
}

.filler-hardware .stepper-button,
.filler-hardware .filler-total {
  min-height: 64px;
}

.filler-hardware .filler-total span {
  font-size: clamp(2.1rem, 2.6vw, 3.1rem);
}

.live-deck.pair-mode {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 14px;
}

.program-pair-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.program-pair-grid .pair-speaker-card {
  min-height: 108px;
  padding: 18px;
}

.pair-speaker-card .speaker-name {
  font-size: clamp(1.85rem, 2.2vw, 2.7rem);
  line-height: 1.04;
  overflow-wrap: break-word;
  word-break: normal;
}

.pair-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.speaker-tracking-zone {
  gap: 14px;
}

.speaker-tracking-card {
  min-width: 0;
}

@media (max-width: 1180px) {
  .library-toolbar,
.roster-import-grid,
.thinkfast-hero,
.tf-instrument-row,
.live-deck.pair-mode {
    grid-template-columns: 1fr;
  }

  .command-cluster {
    justify-content: flex-start;
  }
}

/* Responsive live-console hardening. These overrides keep the analog panel
   language while preventing controls from colliding as the window changes. */
.studio-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  gap: 16px;
  padding: 7px 18px;
}

.studio-signal {
  flex-wrap: nowrap;
  gap: 12px;
  overflow: hidden;
}

.studio-label,
.studio-mode,
.save-status,
.save-state-button,
.theme-toggle-switch {
  flex: 0 0 auto;
}

.studio-mode {
  min-height: 42px;
  max-width: min(22rem, 30vw);
  justify-content: center;
  padding-inline: 14px;
}

.top-context {
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--analog-line);
}

.context-chip {
  min-width: 0;
  max-width: none;
  padding-right: 2px;
}

.context-chip strong {
  max-width: min(18vw, 24ch);
}

.top-icon-actions {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.save-state-button,
.theme-toggle-switch {
  white-space: nowrap;
}

.screen-active .content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(320px, 24vw, 390px));
  align-items: start;
}

.screen-active .main-panel,
.screen-active .side-panel,
.activity-header,
.activity-title,
.prompt-dock,
.field-row,
.thinkfast-console,
.thinkfast-hero,
.tf-program-monitor,
.tf-clock-module,
.timer-stack,
.timer-card,
.tf-instrument,
.tf-instrument-row,
.live-console-layout,
.live-deck,
.program-stack,
.program-pair-grid,
.pair-speaker-card,
.speaker-tracking-card,
.discussion-grid,
.discussion-grid .grid-row,
.discussion-presence,
.presence-buttons,
.next-instrument {
  min-width: 0;
}

.activity-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.activity-header .activity-actions,
.activity-header .action-row,
.field-row .action-row {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.discussion-command-row {
  grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
}

.discussion-command-row .command-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-self: stretch;
  width: 100%;
}

.discussion-command-row .command-cluster > button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.discussion-grid.operator-table {
  overflow: visible;
}

.discussion-grid.operator-table .grid-row {
  grid-template-columns: minmax(210px, 0.9fr) minmax(110px, 150px) minmax(0, 1.65fr);
  align-items: stretch;
  gap: 10px;
}

.discussion-grid.operator-table .table-header {
  align-items: center;
}

.discussion-grid.operator-table .table-row > *,
.discussion-grid.operator-table .table-header > * {
  min-width: 0;
}

.discussion-presence {
  align-self: stretch;
  padding: 8px;
  overflow: hidden;
}

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

.discussion-presence .rating-button,
.presence-instrument .rating-button,
.compact-presence .rating-button,
.speaker-tracking-card .rating-button {
  min-width: 0;
  white-space: normal;
  line-height: 1.05;
}

.presence-buttons .rating-button {
  overflow-wrap: anywhere;
}

.thinkfast-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: stretch;
}

.tf-program-monitor {
  min-height: clamp(250px, 32vw, 420px);
}

.tf-speaker-name {
  font-size: clamp(2.2rem, 6.2cqw, 4.4rem);
  overflow-wrap: anywhere;
}

.tf-clock-module .timer-card,
.timer-stack .timer-card {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
}

.tf-clock-module .timer-readout,
.timer-stack .timer-readout {
  font-size: clamp(3rem, 7cqw, 5rem);
}

.flow-actions,
.timer-actions {
  min-width: 0;
}

.flow-actions > button,
.timer-actions > button {
  min-width: 0;
  white-space: normal;
}

.tf-instrument-row {
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr) minmax(260px, 0.92fr);
}

.tf-instrument {
  overflow: hidden;
}

.next-three-row {
  min-width: 0;
}

.next-three-row .student-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-deck.pair-mode {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: stretch;
}

.program-pair-grid {
  grid-template-columns: 1fr;
}

.program-pair-grid .pair-speaker-card {
  min-height: 124px;
  overflow: hidden;
}

.program-pair-grid .speaker-card .status-pill,
.pair-speaker-card .status-pill {
  position: static;
  max-width: none;
}

.program-pair-grid .program-card-topline {
  align-items: flex-start;
}

.pair-speaker-card .speaker-name {
  font-size: clamp(1.65rem, 5cqw, 2.45rem);
  overflow-wrap: anywhere;
}

.pair-summary {
  align-items: center;
}

.speaker-tracking-zone {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speaker-tracking-card {
  overflow: hidden;
}

@container (max-width: 1160px) {
  .thinkfast-hero,
.live-deck.pair-mode {
    grid-template-columns: 1fr;
  }

  .tf-program-monitor {
    min-height: clamp(230px, 45vw, 360px);
  }

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

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

  .discussion-command-row,
.field-row.prompt-command-row {
    grid-template-columns: 1fr;
  }

  .field-row.prompt-command-row.nevermet-prompt-card {
    grid-template-columns: 1fr;
  }

  .discussion-command-row .command-cluster {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }
}

@container (max-width: 980px) {
  .discussion-grid.operator-table .table-header {
    display: none;
  }

  .discussion-grid.operator-table .grid-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  }

  .discussion-presence {
    grid-column: 1 / -1;
  }
}

@container (max-width: 760px) {
  .activity-header,
.discussion-grid.operator-table .grid-row,
.tf-instrument-row,
.speaker-tracking-zone {
    grid-template-columns: 1fr;
  }

  .activity-header .action-row,
.field-row .action-row {
    justify-content: stretch;
  }

  .activity-header .action-row > button,
.field-row .action-row > button {
    width: 100%;
  }

  .field-row.prompt-command-row.nevermet-prompt-card {
    grid-template-columns: 1fr;
  }

  .discussion-command-row .command-cluster {
    grid-template-columns: 1fr;
  }

  .discussion-presence {
    grid-column: auto;
  }

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

  .tf-speaker-name {
    font-size: clamp(2rem, 13cqw, 3.5rem);
  }

  .tf-clock-module .timer-readout,
.timer-stack .timer-readout {
    font-size: clamp(3rem, 18cqw, 4.8rem);
  }
}

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

  .screen-active .side-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 1100px) {
  .studio-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .studio-signal,
.top-icon-actions {
    justify-content: flex-start;
  }

  .studio-signal {
    flex-wrap: wrap;
  }

  .top-context {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .context-chip strong {
    max-width: 28ch;
  }
}

@media (max-width: 760px) {
  .studio-label,
.top-context,
.save-state-button span:not(.sr-only),
.theme-toggle-switch #themeToggleLabel {
    display: none;
  }

  .studio-mode {
    max-width: none;
  }

  .top-icon-actions {
    justify-content: space-between;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .studio-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .studio-signal {
    flex-wrap: nowrap;
  }

  .top-context {
    display: none;
  }

  .top-icon-actions {
    justify-content: flex-end;
  }

  .studio-mode {
    max-width: 17rem;
  }
}

@media (max-width: 760px) {
  .studio-bar {
    grid-template-columns: 1fr;
  }
}

/* Control polish: make system controls,
keyboard badges,
and top metadata feel intentional. */
.top-context {
  min-height: 44px;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--analog-line);
  border-left: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.035)),
    color-mix(in srgb, var(--analog-panel-2) 86%, transparent);
  box-shadow: var(--analog-inset);
}

.context-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.context-chip + .context-chip {
  border-left: 1px solid var(--analog-line);
}

.context-chip strong {
  line-height: 1;
}

.action-cluster {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.035)),
    color-mix(in srgb, var(--analog-panel-2) 78%, transparent);
  box-shadow: var(--analog-inset);
}

.action-cluster-label {
  align-self: center;
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.system-button {
  min-width: 132px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  min-height: 56px;
  padding: 10px 14px;
  text-align: left;
}

.system-button span {
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 840;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.system-button strong {
  color: var(--analog-ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
}

.timer-actions > button {
  min-height: 64px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding-block: 9px;
}

.button-main-label {
  display: block;
  line-height: 1;
}

.timer-actions .shortcut {
  min-width: 58px;
  min-height: 24px;
  margin-left: 0;
  display: inline-grid;
  place-items: center;
  border-color: color-mix(in srgb, currentColor 40%, transparent);
  background: color-mix(in srgb, var(--analog-black) 18%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), inset 0 -1px rgba(0, 0, 0, 0.18);
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 820;
  opacity: 0.86;
}

.timer-actions .primary-button .shortcut {
  border-color: color-mix(in srgb, currentColor 38%, transparent);
  background: color-mix(in srgb, currentColor 18%, transparent);
  color: inherit;
}

.timer-actions button:disabled .shortcut {
  border-color: color-mix(in srgb, var(--analog-muted) 38%, transparent);
  background: color-mix(in srgb, var(--analog-panel-2) 70%, transparent);
  color: var(--analog-muted);
  opacity: 0.9;
}

.discussion-brief-card {
  gap: 12px;
  padding: 18px 20px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.discussion-brief-card h2 {
  max-width: 46ch;
  margin: 0;
  color: var(--analog-ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.1vw, 2.55rem);
  line-height: 1.02;
}

.discussion-brief-card p {
  max-width: 64ch;
  margin: 0;
  color: var(--analog-muted);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.35;
}

.discussion-brief-card a {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
  padding: 7px 10px;
  background: var(--analog-panel-2);
  color: var(--analog-green);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 820;
  text-decoration: none;
}

/* Compact discussion operator sheet: one dense row per student on desktop. */
.discussion-grid.operator-table {
  gap: 5px;
}

.discussion-grid.operator-table .grid-row {
  grid-template-columns: minmax(170px, 1fr) minmax(154px, 176px) minmax(154px, 176px) minmax(170px, 200px);
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: var(--analog-radius-sm);
}

.discussion-grid.operator-table .table-header {
  min-height: 28px;
  padding-block: 3px;
  font-size: 0.68rem;
}

.discussion-grid.operator-table .student-meta {
  gap: 0;
}

.discussion-grid.operator-table .student-name {
  font-size: 0.96rem;
  line-height: 1.02;
}

.discussion-grid.operator-table .student-id {
  font-size: 0.7rem;
  line-height: 1.05;
}

.discussion-mark-cell,
.discussion-filler-cell {
  min-width: 0;
}

.discussion-counter {
  display: grid;
  gap: 3px;
}

.discussion-counter-label {
  overflow: hidden;
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.discussion-counter-stepper.compact-filler {
  display: grid;
  grid-template-columns: 38px minmax(64px, 1fr) 38px;
  gap: 4px;
}

.discussion-counter-stepper .stepper-button,
.discussion-counter-stepper .filler-total {
  min-height: 32px;
}

.discussion-counter-stepper .filler-total span {
  font-size: 0.85rem;
}

.discussion-counter-stepper .filler-total small {
  font-size: 0.52rem;
}

.discussion-presence {
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.discussion-presence .rating-button {
  min-height: 32px;
  padding: 4px 5px;
  border-radius: var(--analog-radius-sm);
  font-size: 0.67rem;
  line-height: 1;
  white-space: nowrap;
}

.discussion-brief-card {
  margin-bottom: 10px;
  padding: 12px 14px;
}

.discussion-waiting-card {
  margin-bottom: 10px;
  padding: 12px 14px;
}

.discussion-waiting-card h2 {
  margin: 0;
  color: var(--analog-ink);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.45vw, 1.7rem);
  line-height: 1.04;
}

.discussion-waiting-card p {
  max-width: 72ch;
  margin: 6px 0 0;
  color: var(--analog-muted);
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.25;
}

.discussion-live-mode {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.discussion-live-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  padding: 10px 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--analog-blue) 8%, transparent), transparent),
    color-mix(in srgb, var(--analog-panel) 88%, transparent);
  box-shadow: var(--analog-inset);
}

.discussion-live-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.discussion-live-status .count-pill {
  border-color: color-mix(in srgb, var(--analog-green) 42%, var(--analog-line));
  background: color-mix(in srgb, var(--analog-green) 12%, var(--analog-panel-2));
  color: var(--analog-green);
}

.discussion-live-status div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.discussion-live-status span:not(.count-pill) {
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.discussion-live-status strong {
  min-width: 0;
  overflow: hidden;
  color: var(--analog-ink);
  font-size: 1rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-live-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.discussion-live-controls .primary-button,
.discussion-live-controls .secondary-button,
.discussion-live-controls .ghost-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.discussion-live-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--analog-blue) 34%, var(--analog-line));
  border-radius: var(--analog-radius-lg);
  padding: clamp(18px, 2.4vw, 30px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--analog-blue) 7%, transparent), transparent),
    color-mix(in srgb, var(--analog-panel) 92%, transparent);
  box-shadow: var(--analog-inset);
}

.discussion-live-card .article-card-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.66rem;
}

.discussion-live-card h2 {
  max-width: 36ch;
  margin: 0;
  color: var(--analog-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.7vw, 3.4rem);
  line-height: 1.03;
}

.discussion-live-summary {
  max-width: 78ch;
  margin: 0;
  border-left: 3px solid color-mix(in srgb, var(--analog-green) 52%, var(--analog-line));
  padding: 12px 14px;
  border-radius: 0 var(--analog-radius) var(--analog-radius) 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--analog-green) 8%, transparent), transparent),
    color-mix(in srgb, var(--analog-panel-2) 72%, transparent);
  color: var(--analog-soft);
  font-size: clamp(0.98rem, 1.12vw, 1.18rem);
  font-weight: 650;
  line-height: 1.38;
}

.discussion-live-summary.missing {
  color: var(--analog-muted);
}

.discussion-live-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discussion-live-source-actions .secondary-button,
.discussion-live-source-actions .ghost-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.discussion-live-card .discussion-live-source-actions a {
  color: color-mix(in srgb, var(--analog-blue) 72%, var(--analog-ink));
}

.discussion-live-next {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--analog-green) 28%, var(--analog-line));
  border-radius: var(--analog-radius);
  padding: 9px 12px;
  background: color-mix(in srgb, var(--analog-panel-2) 82%, transparent);
}

.discussion-live-next span {
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.discussion-live-next strong {
  min-width: 0;
  overflow: hidden;
  color: var(--analog-soft);
  font-size: 0.88rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-article-planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.discussion-article-queue-panel,
.discussion-candidate-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius);
  padding: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--analog-green) 6%, transparent), transparent),
    color-mix(in srgb, var(--analog-panel) 88%, transparent);
  box-shadow: var(--analog-inset);
}

.discussion-article-queue-panel {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--analog-amber) 7%, transparent), transparent),
    color-mix(in srgb, var(--analog-panel) 90%, transparent);
}

.discussion-article-queue-panel .section-heading,
.discussion-candidate-panel .section-heading {
  gap: 8px;
  margin-bottom: 0;
}

.discussion-article-queue-panel .section-heading h2,
.discussion-candidate-panel .section-heading h2 {
  margin: 0;
}

.discussion-article-queue-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.discussion-article-queue-actions .primary-button,
.discussion-article-queue-actions .secondary-button,
.discussion-article-queue-actions .ghost-button {
  min-width: 0;
  min-height: 34px;
  justify-content: center;
  padding: 7px 8px;
  font-size: 0.72rem;
  text-align: center;
}

.discussion-article-queue-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: 190px;
  overflow: auto;
  padding-right: 2px;
}

.discussion-article-queue-row,
.discussion-article-queue-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
  padding: 8px;
  background: color-mix(in srgb, var(--analog-panel-2) 82%, transparent);
}

.discussion-article-queue-row.current {
  border-color: color-mix(in srgb, var(--analog-green) 42%, var(--analog-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--analog-green) 9%, transparent), transparent),
    color-mix(in srgb, var(--analog-panel-2) 82%, transparent);
}

.discussion-article-queue-empty {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 58px;
  border-style: dashed;
  color: var(--analog-muted);
}

.discussion-article-queue-empty strong {
  min-width: 0;
  overflow: hidden;
  color: var(--analog-soft);
  font-size: 0.82rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.discussion-article-queue-copy .article-card-meta {
  gap: 6px;
  justify-content: flex-start;
  font-size: 0.58rem;
}

.discussion-article-queue-copy h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--analog-ink);
  font-size: 0.82rem;
  line-height: 1.12;
}

.discussion-article-queue-row > .ghost-button {
  min-width: 0;
  min-height: 30px;
  padding: 5px 7px;
  font-size: 0.64rem;
}

.discussion-candidate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: min(58vh, 620px);
  overflow: auto;
  padding-right: 2px;
}

.discussion-candidate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.28fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--analog-green) 20%, var(--analog-line));
  border-radius: var(--analog-radius-sm);
  padding: 10px;
  background: color-mix(in srgb, var(--analog-panel-2) 84%, transparent);
}

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

.discussion-candidate-card .article-card-meta {
  gap: 7px;
  justify-content: flex-start;
  font-size: 0.61rem;
  overflow: hidden;
}

.discussion-candidate-card h3 {
  margin: 0;
  color: var(--analog-ink);
  font-family: var(--font-display);
  font-size: clamp(1.04rem, 1.05vw, 1.22rem);
  line-height: 1.08;
}

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

.discussion-candidate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.discussion-candidate-tags span {
  border: 1px solid color-mix(in srgb, var(--analog-green) 24%, var(--analog-line));
  border-radius: var(--analog-radius-sm);
  padding: 4px 6px;
  background: color-mix(in srgb, var(--analog-green) 8%, transparent);
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.discussion-candidate-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.discussion-candidate-actions .primary-button,
.discussion-candidate-actions .secondary-button,
.discussion-candidate-actions .ghost-button {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.discussion-brief-card .article-card-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.64rem;
}

.discussion-brief-card h2 {
  max-width: 72ch;
  font-size: clamp(1.18rem, 1.45vw, 1.7rem);
  line-height: 1.04;
}

.discussion-brief-card p {
  display: -webkit-box;
  max-width: 78ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
  line-height: 1.25;
}

.discussion-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discussion-brief-actions .secondary-button,
.discussion-brief-actions .ghost-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.68rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.discussion-brief-card .discussion-brief-actions a {
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
}

@container (max-width: 980px) {
  .discussion-live-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .discussion-live-controls {
    justify-content: stretch;
  }

  .discussion-live-controls .primary-button,
.discussion-live-controls .secondary-button,
.discussion-live-controls .ghost-button {
    flex: 1 1 140px;
  }

  .discussion-article-planner,
.discussion-candidate-card {
    grid-template-columns: 1fr;
  }

  .discussion-grid.operator-table .grid-row {
    grid-template-columns: minmax(0, 1fr) minmax(86px, 112px);
  }

  .discussion-presence {
    grid-column: 1 / -1;
  }

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

  .discussion-article-queue-actions,
.discussion-candidate-actions {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 760px) {
  .action-cluster {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .action-cluster-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .system-button {
    width: 100%;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .top-context {
    display: none;
  }
}

/* Discussion presence is a disclosure so the roster scans quickly. */
.discussion-grid.operator-table .discussion-row {
  grid-template-columns: minmax(170px, 1fr) minmax(154px, 176px) minmax(154px, 176px) minmax(150px, 188px);
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 5px 8px;
}

.discussion-student-cell,
.discussion-presence-toggle-cell {
  min-width: 0;
}

.discussion-presence-toggle-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 5px;
}

.presence-current {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
  background: color-mix(in srgb, var(--analog-black) 32%, transparent);
  color: var(--analog-muted);
  font-family: var(--font-label);
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.presence-current.set {
  border-color: color-mix(in srgb, var(--analog-green) 36%, var(--analog-line));
  background: color-mix(in srgb, var(--analog-green) 8%, var(--analog-panel));
  color: var(--analog-cream);
}

.presence-disclosure {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--analog-line);
  border-radius: var(--analog-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--analog-panel-2);
  color: var(--analog-cream);
  cursor: pointer;
  box-shadow: var(--analog-inset);
}

.presence-disclosure:hover {
  border-color: color-mix(in srgb, var(--analog-green) 38%, var(--analog-line));
}

.presence-disclosure .chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}

.discussion-row.expanded .presence-disclosure .chevron {
  transform: translateY(2px) rotate(225deg);
}

.discussion-row .discussion-presence {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--analog-green) 22%, var(--analog-line));
  border-radius: var(--analog-radius-sm);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--analog-green) 7%, transparent), transparent),
    color-mix(in srgb, var(--analog-panel-2) 76%, transparent);
}

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

.discussion-row .discussion-presence .rating-button {
  min-height: 32px;
  padding: 4px 6px;
  font-size: 0.68rem;
}

@container (max-width: 980px) {
  .discussion-grid.operator-table .discussion-row {
    grid-template-columns: minmax(0, 1fr) minmax(154px, 176px) minmax(154px, 176px) minmax(118px, 148px);
  }

  .discussion-row .discussion-presence {
    grid-column: 1 / -1;
  }

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

@container (max-width: 760px) {
  .discussion-grid.operator-table .discussion-row {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  }

  .discussion-filler-cell,
.discussion-presence-toggle-cell {
    grid-column: 1 / -1;
  }

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

.session-report {
  display: grid;
  gap: 16px;
}

.report-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--analog-line, var(--line));
  border-radius: var(--analog-radius, var(--radius-2));
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--surface);
  box-shadow: var(--analog-inset, var(--shadow-xs));
}

.report-export-disclosure {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.report-export-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.report-export-summary::-webkit-details-marker {
  display: none;
}

.report-export-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-export-title strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.report-export-title small {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 740;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-export-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.report-export-state {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--analog-line, var(--line));
  border-radius: var(--analog-radius-sm, var(--radius-1));
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.report-export-state::before,
.report-export-state::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink-soft);
  transform: translate(-50%, -50%);
}

.report-export-state::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

.report-export-disclosure[open] .report-export-state::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.report-export-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid color-mix(in srgb, var(--analog-line, var(--line)) 72%, transparent);
}

.report-export-command-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.report-export-grid,
.report-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-export-grid {
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr) minmax(260px, 0.9fr);
  align-items: start;
}

.report-export-grid fieldset {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--analog-line, var(--line));
  border-radius: var(--analog-radius-sm, var(--radius-1));
  padding: 10px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.report-export-grid legend {
  padding: 0 5px;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.check-option,
.select-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: var(--step-0);
  font-weight: 700;
}

.select-option {
  grid-template-columns: 1fr;
}

.report-export-button {
  width: 100%;
  min-height: 44px;
}

.report-export-scope-fieldset {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.74fr);
  align-items: end;
}

.report-export-scope-fieldset legend {
  grid-column: 1 / -1;
}

.report-activity-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--analog-line, var(--line));
  border-radius: var(--analog-radius-sm, var(--radius-1));
  padding: 12px;
  background: var(--surface-2);
}

.report-activity-card span,
.report-activity-card small {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-activity-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
}

.report-student-table {
  overflow-x: auto;
}

.report-student-table .grid-row {
  grid-template-columns: minmax(142px, 1.08fr) minmax(76px, 0.54fr) minmax(62px, 0.38fr) minmax(58px, 0.36fr) minmax(70px, 0.44fr) minmax(74px, 0.46fr) minmax(74px, 0.46fr) minmax(126px, 0.7fr);
  min-width: 820px;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
}

.presentation-participation-table .grid-row {
  grid-template-columns: minmax(150px, 1.15fr) minmax(86px, 0.5fr) minmax(94px, 0.54fr) minmax(94px, 0.54fr) minmax(82px, 0.46fr) minmax(118px, 0.58fr);
  min-width: 760px;
}

.report-student-table .grid-row > * {
  min-width: 0;
}

.report-student-table .table-header {
  min-height: 25px;
  font-size: 0.64rem;
  line-height: 1.1;
}

.report-student-table .table-row {
  font-size: 0.78rem;
  line-height: 1.12;
}

.report-student-table .status-pill {
  min-height: 18px;
  padding: 2px 5px;
  font-size: 0.62rem;
}

.report-cell-note {
  display: block;
  margin-top: 1px;
  font-size: 0.64rem;
  line-height: 1;
  white-space: nowrap;
}

.report-score-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 6px;
  align-content: center;
}

.report-score-value {
  color: var(--ink);
  white-space: nowrap;
}

.report-score-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
}

.report-score-actions .small-button {
  min-width: max-content;
  min-height: 22px;
  padding: 3px 5px;
  font-size: 0.64rem;
  line-height: 1.05;
  white-space: nowrap;
}

.report-student-table .report-edit-row {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.report-edit-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: var(--radius-1);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 6%, transparent), transparent),
    color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.report-edit-grid,
.presentation-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.report-score-editor {
  gap: 10px;
}

.report-score-editor-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.report-score-editor-group {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--analog-line, var(--line)) 72%, transparent);
  border-radius: var(--analog-radius-sm, var(--radius-1));
  background: color-mix(in srgb, var(--surface-2) 66%, transparent);
}

.report-score-editor-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.report-score-editor-label strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1;
}

.report-score-editor-label span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.15;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-session-edit-grid,
.report-presence-edit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-filler-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.report-edit-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.report-edit-field > span,
.presentation-report-penalty-option small {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.report-edit-field select {
  width: 100%;
  min-width: 0;
}

.presentation-report-penalty-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.compact-heading {
  min-height: 0;
}

.presentation-report-penalty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
}

.presentation-report-penalty-option {
  min-height: 52px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line));
  border-radius: var(--radius-1);
  background: color-mix(in srgb, var(--amber) 8%, var(--surface-2));
}

.presentation-report-penalty-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.presentation-report-penalty-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.presentation-report-penalty-option strong {
  min-width: 0;
  color: var(--ink);
  line-height: 1.05;
}

.presentation-notes-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.presentation-notes-detail strong {
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.presentation-notes-detail p {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.extra-credit-instrument-row {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.8fr) minmax(320px, 1fr);
}

.extra-credit-ready-console {
  display: grid;
  gap: 14px;
}

.extra-credit-ready-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(250px, 0.35fr);
  gap: 14px;
  align-items: start;
}

.extra-credit-selection-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.extra-credit-ready-rail {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.extra-credit-settings-panel {
  gap: 12px;
  min-height: 0;
  padding: 14px;
}

.extra-credit-settings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
}

.extra-credit-setting-control {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.extra-credit-setting-control span,
.extra-credit-settings-preview span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.extra-credit-setting-control input {
  width: 100%;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: var(--radius-1);
  font-family: var(--font-numeric);
  font-size: 1rem;
  font-weight: 760;
}

.extra-credit-settings-footer {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.extra-credit-settings-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--console-hairline));
  border-radius: var(--radius-1);
  background: color-mix(in srgb, var(--green) 10%, var(--surface-2));
  box-shadow: none;
}

.extra-credit-settings-preview strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.extra-credit-ready-console .extra-credit-picker {
  min-height: 0;
  gap: 12px;
  padding: 14px;
}

.extra-credit-picker .select-option,
.extra-credit-notes-card textarea {
  width: 100%;
}

.extra-credit-picker-actions {
  display: grid;
  grid-template-columns: minmax(92px, 0.6fr) minmax(82px, 0.45fr) minmax(132px, 1fr);
  gap: 8px;
}

.extra-credit-picker-actions .primary-button,
.extra-credit-picker-actions .secondary-button,
.extra-credit-picker-actions .ghost-button {
  min-width: 0;
}

.extra-credit-picker-list {
  max-height: min(42vh, 380px);
  display: grid;
  gap: 7px;
  overflow: auto;
  padding-right: 3px;
}

.extra-credit-ready-console .extra-credit-picker-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: clamp(240px, 48vh, 430px);
}

.extra-credit-student-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid var(--console-hairline);
  border-radius: 10px;
  background: var(--surface-2);
}

.extra-credit-ready-console .extra-credit-student-option {
  min-height: 46px;
  padding: 8px 11px;
}

.extra-credit-student-option input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  place-self: center;
}

.extra-credit-student-option span {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.extra-credit-student-option strong,
.extra-credit-student-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-credit-student-option small {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.extra-credit-notes-card textarea {
  min-height: 124px;
  resize: vertical;
}

.extra-credit-score-readout strong {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
}

.extra-credit-session-summary.compact,
.extra-credit-history-card.compact {
  min-height: 0;
  gap: 10px;
  padding: 12px;
}

.extra-credit-stat-strip {
  display: grid;
  gap: 4px;
  min-height: 52px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--console-hairline));
  border-radius: var(--radius-1);
  background: color-mix(in srgb, var(--blue) 10%, var(--surface-2));
  box-shadow: none;
}

.extra-credit-stat-strip span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.extra-credit-stat-strip strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.extra-credit-history-card.compact .next-three-list {
  max-height: 272px;
  overflow: auto;
}

.extra-credit-history-card.compact .next-three-row {
  min-height: 42px;
  padding: 8px;
}

.extra-credit-report-table .grid-row {
  grid-template-columns: minmax(150px, 1.1fr) minmax(76px, 0.44fr) minmax(84px, 0.46fr) minmax(72px, 0.42fr) minmax(88px, 0.5fr) minmax(76px, 0.44fr) minmax(180px, 1fr) minmax(136px, 0.76fr);
}

.extra-credit-report-note-cell {
  min-width: 0;
}

.extra-credit-note-preview {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-timeline .log-row strong {
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.8rem;
}

@container (max-width: 980px) {
  .extra-credit-ready-layout {
    grid-template-columns: 1fr;
  }

  .extra-credit-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extra-credit-ready-console .extra-credit-picker-list {
    max-height: none;
  }

  .report-export-grid,
.report-activity-grid {
    grid-template-columns: 1fr;
  }

  .report-export-command-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-student-table {
    overflow-x: visible;
  }

  .report-student-table .grid-row {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    min-width: 0;
    gap: 6px;
    padding: 8px;
  }

  .report-student-table .report-edit-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .presentation-report-penalty-grid {
    grid-template-columns: 1fr;
  }

  .report-student-table .table-header {
    display: none;
  }

  .report-student-table .report-student-row > [role="cell"] {
    display: grid;
    gap: 2px;
    align-content: start;
    min-height: 44px;
    padding: 6px 7px;
    border: 1px solid color-mix(in srgb, var(--blue) 14%, var(--line));
    border-radius: var(--radius-1);
    background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  }

  .report-student-table .report-student-row > [role="cell"]::before {
    color: var(--ink-muted);
    font-family: var(--font-label);
    font-size: 0.58rem;
    font-weight: 820;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
  }

  .report-student-table .report-student-row > [role="cell"]:first-child,
.report-student-table .report-score-cell {
    grid-column: 1 / -1;
  }

  .report-student-table .report-student-row > [role="cell"]:first-child {
    min-height: auto;
    padding: 0 0 2px;
    border: 0;
    background: transparent;
  }

  .report-student-table .report-student-row > [role="cell"]:first-child::before {
    content: none;
  }

  .report-student-table .report-student-row > [role="cell"][data-cell-label]::before {
    content: attr(data-cell-label);
  }

  .report-student-table .report-score-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 34px;
    padding: 6px 7px;
  }

  .report-student-table .report-score-actions {
    justify-content: end;
  }
}

@container (max-width: 760px) {
  .extra-credit-picker-actions,
.extra-credit-ready-console .extra-credit-picker-list,
.report-export-command-row,
.report-export-scope-fieldset {
    grid-template-columns: 1fr;
  }

  .report-export-summary {
    align-items: start;
  }

  .report-export-title small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

.report-workbench-grid {
  display: grid;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.report-workbench-main {
  min-width: 0;
}

.report-workbench-side {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-items: start;
  position: static;
  top: auto;
  align-self: start;
  max-height: none;
  overflow: visible;
}

.report-workbench-main .session-score-table .grid-row:not(.report-edit-row) {
  grid-template-columns: minmax(154px, 1fr) 58px minmax(46px, 0.28fr);
  min-width: 0;
  gap: 8px;
  padding: 4px 6px;
}

.report-workbench-main .session-score-table .table-header > [role="columnheader"]:nth-child(2) {
  text-align: center;
}

.report-workbench-main .session-score-table .table-header > [role="columnheader"]:nth-child(3) {
  padding-right: 2px !important;
  text-align: right;
}

.report-workbench-side .extra-credit-report-table .grid-row {
  grid-template-columns: minmax(148px, 1fr) minmax(54px, 0.34fr) minmax(54px, 0.34fr) minmax(66px, 0.42fr) minmax(80px, 0.48fr) minmax(120px, 0.76fr) minmax(116px, 0.62fr);
  min-width: 690px;
}

.report-workbench-side .presentation-score-table .grid-row {
  grid-template-columns: minmax(148px, 1fr) minmax(78px, 0.45fr) minmax(54px, 0.32fr) minmax(64px, 0.36fr) minmax(96px, 0.56fr) minmax(86px, 0.44fr) minmax(62px, 0.34fr);
  min-width: 720px;
}

.report-command-bar {
  gap: 12px;
}

.report-command-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.report-command-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-command-title h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1;
}

.report-command-title span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 740;
  line-height: 1.2;
}

.report-command-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.report-command-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.report-command-stat {
  display: grid;
  gap: 2px;
  min-width: 70px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--analog-line, var(--line)) 72%, transparent);
  border-radius: var(--analog-radius-sm, var(--radius-1));
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.report-command-stat strong,
.report-command-stat small {
  line-height: 1;
}

.report-command-stat strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.94rem;
}

.report-command-stat small {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-command-actions button {
  min-height: 36px;
}

.report-student-identity-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-width: 0;
}

.report-student-select {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.report-student-select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 3px;
}

.report-inline-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
}

.report-copy-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-student-row.selected {
  border-color: color-mix(in srgb, var(--red, var(--coral)) 62%, var(--analog-line, var(--line))) !important;
  border-left-color: var(--red, var(--coral)) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--red, var(--coral)) 16%, transparent), transparent 38%),
    color-mix(in srgb, var(--red, var(--coral)) 7%, var(--surface)) !important;
}

.report-student-inspector {
  align-self: start;
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.report-inspector-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.report-inspector-student {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-inspector-student-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-inspector-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.report-inspector-student .student-name {
  min-width: 0;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-inspector-status-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.45em;
  height: 1.45em;
  border: 1px solid color-mix(in srgb, var(--green) 54%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 82%, var(--surface));
  color: color-mix(in srgb, white 92%, var(--green));
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

.report-inspector-status-badge.late {
  border-color: color-mix(in srgb, var(--blue) 56%, var(--line));
  background: color-mix(in srgb, var(--blue) 78%, var(--surface));
}

.report-inspector-status-badge.left {
  border-color: color-mix(in srgb, var(--coral) 56%, var(--line));
  background: color-mix(in srgb, var(--coral) 76%, var(--surface));
}

.report-inspector-status-badge.absent,
.report-inspector-status-badge.notSeen {
  border-color: color-mix(in srgb, var(--amber) 56%, var(--line));
  background: color-mix(in srgb, var(--amber) 76%, var(--surface));
}

.report-inspector-score {
  display: grid;
  gap: 3px;
  min-width: 82px;
  text-align: right;
}

.report-inspector-score span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.report-inspector-score strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.7vw, 1.82rem);
  line-height: 1;
}

.report-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  justify-content: center;
  gap: 7px;
}

.report-inspector-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
}

.report-inspector-nav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--analog-line, var(--line)) 72%, transparent);
  border-radius: var(--analog-radius-sm, var(--radius-1));
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.report-inspector-nav span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.report-nav-button {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--analog-line, var(--line)) 86%, transparent);
  border-radius: var(--analog-radius-sm, var(--radius-1));
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.report-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.report-inspector-summary {
  display: grid;
  gap: 4px;
}

.report-inspector-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.report-inspector-footer button {
  min-height: 34px;
}

.report-unsaved-note {
  margin: 0;
  color: color-mix(in srgb, var(--red, var(--coral)) 76%, var(--ink));
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.report-breakdown-grid {
  display: grid;
  gap: 6px;
}

.report-breakdown-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.55fr) minmax(62px, 0.38fr) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--analog-line, var(--line)) 58%, transparent);
}

.report-breakdown-row:last-child {
  border-bottom: 0;
}

.report-breakdown-row span,
.report-breakdown-row small {
  color: var(--ink-muted);
  line-height: 1.2;
}

.report-breakdown-row span {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-breakdown-row strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}

.report-breakdown-row small {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
}

.report-inspector-corrections .report-edit-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.report-inspector-corrections .report-score-editor-stack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.report-inspector-corrections .report-score-editor-group {
  min-height: 0;
  padding: 9px;
}

.report-inspector-corrections .report-score-editor-group:nth-child(3) {
  grid-column: auto;
}

.report-inspector-corrections .report-score-editor-group:nth-child(4) {
  grid-column: 1 / -1;
}

.report-inspector-corrections .report-session-edit-grid,
.report-inspector-corrections .report-presence-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.report-inspector-corrections .report-filler-edit-grid {
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 7px;
}

.report-inspector-corrections .report-edit-stepper {
  min-width: 0;
}

.report-inspector-corrections .report-edit-field select {
  min-height: 34px;
  padding-block: 5px;
}

.report-inspector-corrections .report-edit-stepper .compact-filler {
  grid-template-columns: 38px minmax(58px, 1fr) 38px;
}

.report-inspector-corrections .filler-total {
  min-height: 46px;
}

@media (max-width: 1080px) {
  .report-workbench-grid {
    grid-template-columns: 1fr;
  }

  .report-workbench-side,
.report-student-inspector {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1380px) {
  .report-inspector-corrections .report-score-editor-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .report-command-main,
.report-inspector-header {
    grid-template-columns: 1fr;
  }

  .report-command-stats,
.report-inspector-score {
    justify-content: start;
    text-align: left;
  }

  .report-command-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .report-session-edit-grid,
.report-presence-edit-grid,
.report-filler-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-inspector-corrections .report-score-editor-stack {
    grid-template-columns: 1fr;
  }

  .report-inspector-corrections .report-score-editor-group:nth-child(3) {
    grid-column: auto;
  }

  .report-score-editor-label {
    display: grid;
    justify-content: stretch;
  }

  .report-score-editor-label span {
    text-align: left;
    white-space: normal;
  }

  .report-inspector-actions {
    grid-template-columns: 1fr;
  }
}


/* ===== merged: styles-remodel-base.css ===== */
/*
  Rostra remodel base overrides.
  Linked after styles.css,
this file re-skins the existing UI without changing
  the current render contract.
*/

@font-face {
  font-family: "Rostra Inter";
  src: url("./assets/fonts/Inter-opsz-wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rostra Oswald";
  src: url("./assets/fonts/Oswald-wght.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --studio-bar-height: 54px;
  --rail-width: 188px;
  --content-max: 1640px;
  --font-sans: "Rostra Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Rostra Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-label: "Rostra Oswald", "Arial Narrow", "Bahnschrift SemiCondensed", "Avenir Next Condensed", sans-serif;
  --font-mono: "SF Mono", "Andale Mono", "Cascadia Mono", "Roboto Mono", ui-monospace, monospace;
  --font-numeric: var(--font-mono);

  --bg: #f3f6fa;
  --bg-grid: transparent;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #e9edf4;
  --surface-raised: #ffffff;
  --ink: #111827;
  --ink-soft: #334155;
  --ink-muted: #667085;
  --ink-subtle: #8a94a6;
  --line: #d8dee8;
  --line-strong: #b8c2d0;

  --nav: #101419;
  --nav-2: #171d25;
  --nav-3: #202733;
  --nav-ink: #f6f8fb;
  --nav-muted: #a5afbf;

  --accent: #188f7d;
  --accent-strong: #116f62;
  --accent-soft: #d9f3ef;
  --blue: #246bd1;
  --blue-soft: #dceafe;
  --amber: #b87613;
  --amber-soft: #fff0cc;
  --coral: #c83f3f;
  --coral-soft: #ffe1e1;
  --red: #c83f3f;
  --green: #168a53;
  --green-soft: #dcf7e8;
  --cyan: #0b93b6;
  --magenta: #9a4fd6;

  --monitor: #0a0d11;
  --monitor-2: #111722;
  --monitor-ink: #f7fbff;
  --focus-ring: #5aa8ff;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 22px 56px rgba(15, 23, 42, 0.12);
  --inset-highlight: inset 0 1px rgba(255, 255, 255, 0.72);
  --control-shadow: var(--inset-highlight), 0 1px 2px rgba(15, 23, 42, 0.08);
  --control-shadow-active: inset 0 1px 2px rgba(15, 23, 42, 0.16);
  --hardware-shadow: var(--control-shadow);
  --module-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  --module-shadow: var(--inset-highlight), 0 18px 42px rgba(15, 23, 42, 0.08);
  --blue-glow: none;

  --analog-bg: var(--bg);
  --analog-bg-deep: #e2e8f0;
  --analog-panel: var(--surface);
  --analog-panel-2: var(--surface-2);
  --analog-panel-3: var(--surface-3);
  --analog-ink: var(--ink);
  --analog-cream: var(--ink);
  --analog-soft: var(--ink-soft);
  --analog-muted: var(--ink-muted);
  --analog-line: var(--line);
  --analog-line-strong: var(--line-strong);
  --analog-green: var(--green);
  --analog-green-deep: var(--green-soft);
  --analog-amber: var(--amber);
  --analog-red: var(--red);
  --analog-blue: var(--blue);
  --analog-black: var(--surface-2);
}

body {
  background: var(--bg);
  background-size: auto;
}

body::before {
  background: none;
}

h1,
h2,
h3,
.studio-label,
.brand-name,
.activity-title h1,
.section-heading h2,
.student-name,
.speaker-name,
.tf-speaker-name {
  letter-spacing: 0;
}

.studio-bar,
.console-chrome {
  min-height: var(--studio-bar-height);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--nav-2) 86%, transparent), var(--nav));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.studio-bar::after {
  opacity: 0;
}

.studio-signal {
  gap: 10px;
}

.tally-light {
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 13%, transparent);
}

.studio-label {
  color: var(--nav-ink);
  font-size: 0.76rem;
}

.studio-mode,
.top-context,
.save-status,
.theme-toggle-switch,
.save-state-button,
.studio-bar .home-button,
.studio-bar .icon-button,
.top-icon-actions .icon-button {
  border-color: color-mix(in srgb, var(--line-strong) 50%, transparent);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--ink-soft);
  box-shadow: none;
}

.studio-mode {
  min-height: 32px;
  border-radius: 8px;
  padding: 4px 9px;
}

.top-context {
  min-height: 32px;
  padding: 2px;
}

.context-chip,
.top-context .count-pill,
.top-context .status-pill {
  min-height: 26px;
  border-color: transparent;
  background: transparent;
  color: var(--ink-muted);
}

.top-context strong {
  color: var(--ink);
}

.save-state-button,
.theme-toggle-switch {
  min-height: 36px;
}

.app-shell {
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.left-rail {
  gap: 18px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 94%, var(--bg)));
  box-shadow: none;
}

.brand-block {
  gap: 9px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.9rem;
  box-shadow: none;
}

.brand-name {
  font-size: 1rem;
}

.brand-subtitle {
  font-size: 0.68rem;
}

.activity-nav {
  gap: 7px;
}

.nav-button {
  min-height: 36px;
  gap: 8px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  padding: 6px 7px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  box-shadow: none;
}

.nav-button::before {
  display: none;
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.nav-button:hover {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.nav-button.active {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--ink);
  box-shadow: none;
}

.nav-button.active .nav-icon {
  border-color: color-mix(in srgb, var(--blue) 50%, var(--line));
  background: color-mix(in srgb, var(--blue) 16%, var(--surface));
  color: var(--blue);
}

.nav-button-wins.active .nav-icon {
  border-color: color-mix(in srgb, var(--green) 50%, var(--line));
  color: var(--green);
}

.nav-button-think-fast.active .nav-icon {
  border-color: color-mix(in srgb, var(--amber) 52%, var(--line));
  color: var(--amber);
}

.nav-button-never-met.active .nav-icon {
  border-color: color-mix(in srgb, var(--magenta) 48%, var(--line));
  color: var(--magenta);
}

.nav-section-break {
  margin-top: 14px;
}

.nav-section-break::after {
  left: 7px;
  right: 7px;
}

.workspace {
  width: min(var(--content-max), 100%);
  padding: clamp(18px, 2.1vw, 34px);
}

.content-grid {
  gap: clamp(18px, 1.8vw, 28px);
}

.top-bar,
.setup-strip,
.main-panel,
.side-panel,
.log-panel,
.library-toolbar,
.preflight-panel,
.report-panel,
.roster-import-panel,
.class-file-row,
.session-file-row,
.class-stat-card,
.new-session-card,
.speaker-card,
.timer-card,
.presence-card,
.filler-card,
.tf-program-monitor,
.tf-instrument,
.speaker-tracking-card,
.article-card,
.project-card,
.session-card,
.app-modal {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--module-gradient), var(--surface);
  box-shadow: var(--module-shadow);
}

.main-panel,
.side-panel,
.log-panel {
  padding: clamp(16px, 1.55vw, 26px);
}

.screen-active .main-panel,
.screen-active .side-panel {
  background: var(--module-gradient), var(--surface);
}

.activity-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom-color: var(--line);
}

.activity-title h1 {
  max-width: 28ch;
}

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

.activity-title .muted,
.main-panel p,
.side-panel p,
.log-panel p,
.app-modal p {
  line-height: 1.5;
}

.activity-kicker,
.console-chip,
.count-pill,
.status-pill,
.shortcut {
  border-radius: 7px;
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--ink-soft);
  box-shadow: none;
}

.activity-kicker {
  color: var(--blue);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.action-cluster,
.command-cluster,
.prompt-dock,
.field-row.prompt-command-row,
.field-row.discussion-command-row {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--surface-2);
  box-shadow: var(--inset-highlight);
}

input,
textarea,
select {
  min-height: 40px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 12px;
  line-height: 1.35;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

textarea {
  line-height: 1.45;
}

input:focus,
textarea:focus,
select:focus {
  border-color: color-mix(in srgb, var(--focus-ring) 70%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 18%, transparent);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.filler-button,
.stepper-button,
.participation-toggle,
.presence-disclosure,
input[type="file"]::file-selector-button {
  border-radius: 8px;
  line-height: 1.2;
  box-shadow: none;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
input[type="file"]::file-selector-button {
  min-height: 42px;
  padding: 10px 14px;
}

.small-button,
.rating-button,
.filler-button,
.stepper-button,
.participation-toggle,
.presence-disclosure {
  line-height: 1.15;
}

.primary-button {
  border-color: color-mix(in srgb, var(--green) 58%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 92%, #ffffff), var(--green));
  color: #07100b;
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 96%, #ffffff), color-mix(in srgb, var(--green) 86%, #000000));
}

.secondary-button {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface-raised));
  color: color-mix(in srgb, var(--blue) 82%, var(--ink));
}

.ghost-button,
.small-button,
.rating-button,
.participation-toggle,
input[type="file"]::file-selector-button {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink-soft);
}

.danger-button {
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
  background: color-mix(in srgb, var(--red) 9%, var(--surface-raised));
  color: var(--red);
}

.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.small-button:hover:not(:disabled),
.rating-button:hover:not(:disabled),
.participation-toggle:hover:not(:disabled),
input[type="file"]::file-selector-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--ink);
}

.timer-card {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent 48%),
    var(--monitor);
  color: var(--monitor-ink);
}

.timer-readout,
.filler-total span {
  font-variant-numeric: tabular-nums;
}

.timer-readout {
  color: var(--monitor-ink);
}

.timer-card .count-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: color-mix(in srgb, var(--monitor-ink) 82%, transparent);
}

.timer-card .secondary-button,
.timer-card .ghost-button {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
  color: var(--monitor-ink);
}

.speaker-card::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent 48%),
    linear-gradient(180deg, transparent 0 calc(100% - 2px), color-mix(in srgb, var(--blue) 34%, transparent) calc(100% - 2px));
  opacity: 1;
}

.presence-card,
.filler-card,
.speaker-tracking-card,
.queue-block {
  background: var(--surface);
}

.presence-row,
.roster-row,
.queue-row,
.log-row,
.grid-row,
.next-three-row {
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  box-shadow: none;
}

.rating-button.active,
.participation-toggle.active,
.small-button.active {
  border-color: color-mix(in srgb, var(--green) 44%, var(--line));
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  color: color-mix(in srgb, var(--green) 80%, var(--ink));
}

.filler-hardware,
.filler-total {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
  background: color-mix(in srgb, var(--amber) 8%, var(--surface));
  box-shadow: none;
}

.stepper-button,
.filler-button {
  border-color: color-mix(in srgb, var(--amber) 34%, var(--line));
  background: color-mix(in srgb, var(--amber) 9%, var(--surface-raised));
  color: var(--ink);
}

.status-pill.available,
.status-available,
.roster-summary-meter.status-available {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: color-mix(in srgb, var(--green) 11%, var(--surface));
  color: color-mix(in srgb, var(--green) 78%, var(--ink));
}

.status-pill.late,
.status-late,
.roster-summary-meter.status-late {
  border-color: color-mix(in srgb, var(--amber) 46%, var(--line));
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
  color: color-mix(in srgb, var(--amber) 78%, var(--ink));
}

.status-pill.left,
.status-left,
.status-pill.absent,
.status-absent,
.roster-summary-meter.status-left,
.roster-summary-meter.status-absent {
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
  background: color-mix(in srgb, var(--red) 10%, var(--surface));
  color: color-mix(in srgb, var(--red) 82%, var(--ink));
}

.side-panel {
  position: sticky;
  top: calc(var(--studio-bar-offset, var(--studio-bar-height)) + 18px);
  max-height: calc(100dvh - var(--studio-bar-height) - 36px);
  overflow: auto;
}

.roster-drawer > summary {
  border-radius: 8px;
}

.roster-summary-board {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.roster-operator-sheet {
  gap: 7px;
}

.roster-status-group,
.roster-status-group.status-available,
.roster-status-group.status-late,
.roster-status-group.status-left,
.roster-status-group.status-absent,
.roster-status-group.status-notSeen {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.roster-operator-sheet .roster-group-heading.table-header,
.roster-group-heading {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
}

.roster-status-group.status-available .roster-group-heading {
  border-left: 3px solid var(--green);
}

.roster-status-group.status-late .roster-group-heading {
  border-left: 3px solid var(--amber);
}

.roster-status-group.status-left .roster-group-heading,
.roster-status-group.status-absent .roster-group-heading {
  border-left: 3px solid var(--red);
}

.roster-status-group.status-notSeen .roster-group-heading {
  border-left: 3px solid var(--line-strong);
}

.article-card-meta {
  min-width: 0;
  flex-wrap: wrap;
}

.article-card-meta > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-panel .roster-row {
  gap: 7px;
  padding: 8px;
}

.roster-signal-cell {
  gap: 5px;
}

.roster-signal-cell .count-pill {
  min-height: 21px;
  padding: 2px 6px;
  font-size: 0.68rem;
}

.roster-status-buttons {
  gap: 5px;
}

.roster-status-buttons .small-button {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 0.7rem;
}

.screen-active .log-panel {
  margin-top: 16px;
  padding: 10px 12px;
}

.log-panel {
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  box-shadow: var(--inset-highlight);
}

.log-panel .section-heading {
  min-height: 30px;
  margin-bottom: 6px;
}

.log-panel .section-heading h2 {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.log-panel .muted-count {
  font-size: 0.72rem;
}

.session-log {
  gap: 5px;
  max-height: 118px;
  overflow: auto;
}

.screen-active .session-log:not(.event-timeline) {
  max-height: none;
  overflow: visible;
}

.screen-active .session-log:has(.session-ticker[open]) {
  max-height: none;
}

.session-log .empty-state {
  min-height: 54px;
  padding: 8px;
}

.session-log .empty-state h2 {
  font-size: 0.9rem;
}

.session-log .empty-state p {
  display: none;
}

.log-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.log-row .muted {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.session-ticker {
  display: grid;
  gap: 6px;
}

.session-ticker summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.session-ticker-expanded {
  display: grid;
  gap: 5px;
  max-height: none;
  overflow: visible;
}

.session-ticker[open],
.log-panel[open],
.log-panel.expanded,
.log-panel.is-expanded {
  padding: 14px;
}

.session-ticker[open] .session-ticker-expanded,
.log-panel[open] .session-log,
.log-panel.expanded .session-log,
.log-panel.is-expanded .session-log {
  max-height: none;
  overflow: visible;
}

.event-timeline.session-log {
  max-height: min(52dvh, 620px);
}

@media (min-width: 1180px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }
}

@media (max-width: 760px) {
  :root {
    --rail-width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .left-rail {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    overflow-x: auto;
  }

  .brand-block {
    flex: 0 0 auto;
  }

  .activity-nav {
    display: flex;
    min-width: max-content;
  }

  .nav-button {
    min-width: max-content;
  }

  .side-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1320px) and (min-width: 761px) {
  .app-shell {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  .left-rail {
    position: sticky;
    top: var(--studio-bar-offset, var(--studio-bar-height));
    align-self: start;
    height: calc(100dvh - var(--studio-bar-offset, var(--studio-bar-height)));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    overflow: visible;
  }

  .activity-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    min-width: 0;
    overflow: visible;
  }

  .nav-button {
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .studio-bar {
    gap: 8px;
    padding: 7px 10px;
  }

  .studio-label,
.brand-subtitle,
.nav-label {
    display: none;
  }

  .workspace {
    padding: 14px;
  }

  .main-panel,
.side-panel,
.log-panel {
    padding: 14px;
  }

  .screen-active .log-panel {
    padding: 9px;
  }
}


/* ===== merged: styles-remodel-active.css ===== */
/* 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);
}

.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[data-workspace="live"] .main-panel {
  padding: 0;
}

.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) 10%, transparent), transparent 8.5rem),
    var(--surface-raised);
  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(--ink);
  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: var(--surface-2);
}

.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;
  place-items: center;
  padding: 9px 10px;
  border-radius: 6px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

.screen-active .timer-actions > button {
  min-height: 58px;
}

.screen-active .timer-action-icon {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 1em;
  font-family: var(--font-sans);
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.screen-active .timer-action-pause {
  font-size: 1.32rem;
  letter-spacing: 0.08em;
}

.screen-active .timer-actions .button-main-label {
  display: grid;
  place-items: center;
  width: 100%;
  line-height: 1;
}

/* 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 .prompt-warning {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--remodel-amber) 48%, var(--remodel-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--remodel-amber) 12%, var(--remodel-surface-2));
  color: var(--remodel-text);
  font-size: 0.78rem;
  line-height: 1.25;
}

.screen-active .prompt-warning .secondary-button {
  min-height: 34px;
  width: 100%;
}

.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-word-readout strong:only-child {
  align-self: center;
}

.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%, var(--surface-2));
  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;
  width: 100%;
  justify-self: stretch;
  gap: 12px;
}

.screen-active .thinkfast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 30cqw, 352px);
  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 .standard-single-stage-top {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
  container-type: inline-size;
}

.screen-active .standard-single-stage-top.has-prompt {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-active .standard-single-stage-top > .tf-program-monitor,
.screen-active .standard-single-stage-top > .setup-instrument {
  min-width: 0;
  height: clamp(204px, 31cqw, 228px);
}

.screen-active .standard-single-stage-top > .setup-instrument {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.screen-active .tf-stage-tools {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 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: var(--surface-2);
  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: var(--surface-raised);
}

.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 .tone-instrument {
  --tf-panel-accent: var(--remodel-cyan);
}

.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 .custom-penalty-instrument {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.screen-active .custom-penalty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.screen-active .custom-penalty-option {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--tf-control-border);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 48%),
    color-mix(in srgb, var(--remodel-surface-2) 84%, #05080d);
  box-shadow: var(--remodel-inset);
}

.screen-active .custom-penalty-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--danger);
}

.screen-active .custom-penalty-option strong,
.screen-active .custom-penalty-option small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.screen-active .custom-penalty-option strong {
  color: var(--remodel-ink);
  font-size: 0.9rem;
}

.screen-active .custom-penalty-option small {
  margin-top: 4px;
  color: var(--remodel-ink-muted);
  font-size: 0.72rem;
}

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

.screen-active .tf-stage-tools > .setup-instrument .setup-word-readout,
.screen-active .standard-single-stage-top > .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,
.screen-active .standard-single-stage-top > .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,
.screen-active .standard-single-stage-top > .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,
.screen-active .standard-single-stage-top > .setup-instrument .setup-control-buttons {
  gap: 10px;
  grid-auto-rows: auto;
}

.screen-active .tf-stage-tools > .setup-instrument .system-button,
.screen-active .standard-single-stage-top > .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,
.screen-active .standard-single-stage-top > .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,
.screen-active .standard-single-stage-top > .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),
.screen-active .standard-single-stage-top > .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),
.screen-active .standard-single-stage-top > .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 .standard-single-stage-top > .standard-single-monitor {
  container-type: inline-size;
}

.screen-active .standard-single-stage-top > .standard-single-monitor .tf-speaker-name {
  max-width: 100%;
  font-size: clamp(1.9rem, 8.8cqw, 3.6rem);
  line-height: 0.99;
}

.screen-active .standard-single-stage-top > .setup-instrument {
  --prompt-tile-size: clamp(82px, 35cqw, 102px);
  container-type: inline-size;
  grid-template-rows: auto minmax(58px, 0.72fr) minmax(var(--prompt-tile-size), 1fr);
  align-content: stretch;
  padding: 12px;
}

.screen-active .standard-single-stage-top > .setup-instrument .instrument-heading {
  min-height: 20px;
}

.screen-active .standard-single-stage-top > .setup-instrument .setup-word-readout {
  min-height: 58px;
  margin-bottom: 0;
  align-content: center;
  padding: 10px 12px;
}

.screen-active .standard-single-stage-top > .setup-instrument .setup-word-readout strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.screen-active .standard-single-stage-top > .setup-instrument .setup-control-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(54px, auto);
  align-content: end;
  justify-content: stretch;
}

.screen-active .standard-single-stage-top > .setup-instrument .system-button {
  width: auto;
  min-height: 54px;
  aspect-ratio: auto;
  align-content: center;
  justify-items: center;
  padding: 10px 12px;
  text-align: center;
}

.screen-active .standard-single-stage-top > .setup-instrument .system-button strong {
  font-size: clamp(0.86rem, 4cqw, 0.98rem);
  line-height: 1;
}

.screen-active .standard-single-stage-top > .setup-instrument:not(:has(.setup-control-buttons)) {
  grid-template-rows: auto minmax(0, 1fr);
}

.screen-active .standard-single-stage-top > .setup-instrument:not(:has(.setup-control-buttons)) .setup-word-readout {
  height: 100%;
  min-height: 0;
}

.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[data-activity="neverMet"] .speaker-tracking-zone {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 620px), 1fr));
}

.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 .nevermet-tracking-card {
  grid-template-columns: minmax(170px, 210px) minmax(360px, 1fr);
  gap: 10px 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 .tracking-instrument {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.screen-active .tracking-instrument-label {
  min-width: 0;
  overflow: hidden;
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.screen-active .filler-tracking-instrument {
  align-self: start;
}

.screen-active .body-language-tracking-instrument,
.screen-active .tone-tracking-instrument {
  min-width: 360px;
}

.screen-active .nevermet-tracking-card .presence-buttons {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.screen-active .tone-tracking-instrument {
  grid-column: 2;
}

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

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

.screen-active .nevermet-score-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  min-width: 0;
}

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

.screen-active .nevermet-question-counter {
  min-height: 58px;
  --nevermet-counter-color: var(--remodel-blue);
  --nevermet-counter-bg: color-mix(in srgb, var(--nevermet-counter-color) 10%, var(--remodel-surface-2));
  border-color: color-mix(in srgb, var(--nevermet-counter-color) 46%, var(--remodel-line));
  background: color-mix(in srgb, var(--nevermet-counter-color) 8%, var(--remodel-surface-2));
}

.screen-active .nevermet-question-counter-openEnded {
  --nevermet-counter-color: var(--remodel-blue);
}

.screen-active .nevermet-question-counter-closedEnded {
  --nevermet-counter-color: var(--remodel-magenta);
}

.screen-active .nevermet-question-counter .stepper-button {
  border-color: color-mix(in srgb, var(--nevermet-counter-color) 42%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nevermet-counter-color) 18%, transparent), transparent),
    color-mix(in srgb, var(--nevermet-counter-color) 12%, var(--remodel-surface-3));
  color: color-mix(in srgb, var(--nevermet-counter-color) 72%, white);
}

.screen-active .nevermet-question-counter .filler-total {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  min-width: 76px;
  border-color: color-mix(in srgb, var(--nevermet-counter-color) 44%, var(--remodel-line));
  background: var(--nevermet-counter-bg);
  text-align: center;
}

.screen-active .nevermet-question-counter .filler-total span {
  width: 100%;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--nevermet-counter-color) 78%, white);
  font-size: clamp(2rem, 3cqw, 2.85rem);
  line-height: 1;
  text-align: center;
}

.screen-active .nevermet-question-counter .filler-total small {
  width: 100%;
  max-width: none;
  overflow: visible;
  color: color-mix(in srgb, var(--nevermet-counter-color) 58%, var(--remodel-ink-muted));
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.screen-active .nevermet-penalty-option {
  min-height: 58px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--remodel-red) 42%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-red) 10%, transparent), transparent),
    color-mix(in srgb, var(--remodel-red) 8%, var(--remodel-surface-2));
  color: color-mix(in srgb, var(--remodel-red) 76%, white);
  font-weight: 780;
}

.screen-active .nevermet-penalty-option input {
  accent-color: var(--remodel-red);
}

/* 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(158px, 180px) minmax(158px, 180px) minmax(150px, 188px);
  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-counter {
  gap: 2px;
}

.screen-active .discussion-mark-cell .discussion-counter-stepper {
  --discussion-counter-accent: var(--remodel-cyan);
}

.screen-active .discussion-filler-cell .discussion-counter-stepper {
  --discussion-counter-accent: var(--remodel-amber);
}

.screen-active .discussion-counter-stepper.compact-filler {
  grid-template-columns: 38px minmax(68px, 1fr) 38px;
  gap: 4px;
  min-height: 0;
  padding: 4px;
  border-color: color-mix(in srgb, var(--discussion-counter-accent) 36%, var(--remodel-line));
  background: color-mix(in srgb, var(--discussion-counter-accent) 8%, var(--surface-2));
}

.screen-active .discussion-counter-stepper .stepper-button,
.screen-active .discussion-counter-stepper .filler-total {
  min-height: 34px;
  height: 34px;
  border-radius: 6px;
}

.screen-active .discussion-counter-stepper .stepper-button {
  border-color: color-mix(in srgb, var(--discussion-counter-accent) 48%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--discussion-counter-accent) 18%, transparent), transparent),
    color-mix(in srgb, var(--discussion-counter-accent) 12%, var(--remodel-surface-3));
  color: color-mix(in srgb, var(--discussion-counter-accent) 72%, white);
  font-size: 1.15rem;
}

.screen-active .discussion-counter-stepper .filler-total {
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 68px;
  padding: 2px 4px;
  border-color: color-mix(in srgb, var(--discussion-counter-accent) 40%, var(--remodel-line));
  background: color-mix(in srgb, var(--discussion-counter-accent) 10%, var(--remodel-surface-2));
  text-align: center;
}

.screen-active .discussion-counter-stepper .filler-total span {
  width: 100%;
  color: color-mix(in srgb, var(--discussion-counter-accent) 78%, white);
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
}

.screen-active .discussion-counter-stepper .filler-total small {
  width: 100%;
  max-width: none;
  overflow: visible;
  font-size: 0.48rem;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
}

.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.rating-awesome { --rating-accent: var(--remodel-green); }
.screen-active .rating-button.rating-great { --rating-accent: var(--remodel-blue); }
.screen-active .rating-button.rating-good { --rating-accent: var(--remodel-amber); }
.screen-active .rating-button.rating-okay { --rating-accent: var(--remodel-cyan); }
.screen-active .rating-button.rating-not-okay { --rating-accent: var(--remodel-orange, #f97316); }
.screen-active .rating-button.rating-bad { --rating-accent: var(--remodel-red); }

.screen-active .rating-button.active,
.screen-active .presence-current.set {
  border-color: color-mix(in srgb, var(--rating-accent, var(--remodel-green)) 72%, var(--remodel-line-strong));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rating-accent, var(--remodel-green)) 34%, transparent), transparent),
    color-mix(in srgb, var(--rating-accent, var(--remodel-green)) 22%, var(--remodel-surface));
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rating-accent, var(--remodel-green)) 42%, transparent),
    0 0 0 2px color-mix(in srgb, var(--rating-accent, var(--remodel-green)) 16%, transparent);
}

@container (max-width: 620px) {
  .screen-active .thinkfast-hero,
.screen-active .standard-single-stage-top.has-prompt,
.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 .nevermet-tracking-card {
	    grid-template-columns: 1fr;
	  }

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

	  .screen-active .body-language-tracking-instrument,
.screen-active .tone-tracking-instrument {
	    min-width: 0;
	  }

	  .screen-active .tone-tracking-instrument {
	    grid-column: auto;
	  }
	}

@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(150px, 180px);
  }

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

  .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;
  }
}

/* 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;
}


/* ===== merged: styles-remodel-library-display.css ===== */
/*
  Rostra remodel override: library,
class home,
report,
modals,
and display support.
  This file is intentionally CSS-only. app.js owns the child-window student display
  template today; notes near the end mark styles that should move there when the
  parent/child display styling is integrated.
*/

:root {
  --remodel-bg: #08090b;
  --remodel-surface: #111318;
  --remodel-surface-2: #181b22;
  --remodel-surface-3: #222632;
  --remodel-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-panel-shadow: inset 0 1px rgba(255, 255, 255, 0.065), 0 18px 44px rgba(0, 0, 0, 0.28);
  --remodel-control-shadow: inset 0 1px rgba(255, 255, 255, 0.08), inset 0 -1px rgba(0, 0, 0, 0.34), 0 1px 2px rgba(0, 0, 0, 0.32);
}

.screen-launcher .workspace,
.screen-class-home .workspace {
  background: transparent;
}

.screen-launcher .main-panel,
.screen-class-home .main-panel {
  border-color: color-mix(in srgb, var(--remodel-line) 76%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-surface-2) 92%, transparent), color-mix(in srgb, var(--remodel-surface) 98%, transparent)),
    var(--remodel-surface);
  box-shadow: var(--remodel-panel-shadow);
}

.screen-class-home .main-panel {
  padding: clamp(20px, 2vw, 34px);
}

.launcher.library-manager,
.class-home.class-setup-console,
.class-home.class-dashboard,
.session-report {
  gap: clamp(20px, 2vw, 30px);
}

.library-toolbar,
.roster-import-panel,
.new-session-card,
.report-panel,
.app-modal {
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 58%),
    var(--remodel-surface);
  box-shadow: var(--remodel-panel-shadow);
}

.library-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 22px;
}

.library-title-block h1,
.class-home .activity-title h1 {
  color: var(--remodel-ink);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 1;
}

.library-title-block .muted,
.class-home .activity-title .muted,
.roster-import-copy .muted,
.new-session-card .muted {
  color: var(--remodel-ink-muted);
  line-height: 1.55;
}

.activity-kicker,
.setup-option-label,
.session-list-title,
.class-stat-card span,
.report-activity-card span,
.report-activity-card small,
.report-export-grid legend {
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.command-cluster {
  border-color: color-mix(in srgb, var(--remodel-blue) 24%, var(--remodel-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--remodel-surface-2) 82%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.class-file-row,
.session-file-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-cyan) 7%, transparent), transparent 42%),
    var(--remodel-surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.class-file-row:hover,
.session-file-row:hover {
  border-color: var(--remodel-line-strong);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-blue) 10%, transparent), transparent 48%),
    var(--remodel-surface-2);
}

.file-leading {
  width: 48px;
  height: 48px;
  border-color: color-mix(in srgb, var(--remodel-cyan) 42%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-cyan) 16%, transparent), transparent),
    var(--remodel-raised);
  color: var(--remodel-cyan);
  box-shadow: var(--remodel-control-shadow);
}

.file-glyph {
  letter-spacing: 0.05em;
}

.file-meta .count-pill,
.program-meta .count-pill,
.roster-stats .count-pill,
.report-cell-note,
.muted-count {
  color: var(--remodel-ink-muted);
}

.project-card-main h2,
.file-main h2,
.new-session-card h3,
.roster-import-card strong,
.class-stat-card strong,
.report-activity-card strong {
  color: var(--remodel-ink);
}

.roster-import-panel {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(22px, 2vw, 32px);
  padding: clamp(26px, 2.4vw, 38px);
}

.roster-import-copy {
  gap: 16px;
  padding-block: 4px;
}

.roster-import-copy h2 {
  max-width: 12ch;
  color: var(--remodel-ink);
  font-size: clamp(2.35rem, 4.8vw, 5.25rem);
  line-height: 1;
}

.roster-import-copy p {
  max-width: 38rem;
}

.roster-import-grid {
  grid-template-columns: minmax(230px, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.roster-import-card {
  gap: 17px;
  min-height: 328px;
  padding: clamp(22px, 2vw, 28px);
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--remodel-surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.roster-import-card strong {
  line-height: 1.15;
}

.roster-import-card .muted {
  line-height: 1.5;
}

.file-import-card input[type="file"] {
  align-self: end;
  margin-top: auto;
  padding: 8px;
}

.file-import-card {
  border-color: color-mix(in srgb, var(--remodel-cyan) 32%, var(--remodel-line));
}

.manual-import-card {
  border-color: color-mix(in srgb, var(--remodel-blue) 28%, var(--remodel-line));
}

.manual-import-card textarea {
  min-height: 178px;
  padding: 16px 18px;
  line-height: 1.45;
}

.manual-import-card .secondary-button {
  min-height: 54px;
  padding: 12px 18px;
  line-height: 1.15;
}

.manual-import-card textarea,
.date-control input,
.select-option select,
.report-export-grid input,
.app-modal input,
.app-modal textarea,
.app-modal select {
  border-color: var(--remodel-line);
  background: var(--remodel-bg);
  color: var(--remodel-ink);
}

.class-stat-grid.report-overview-grid,
.class-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.class-stat-card {
  gap: 10px;
  min-width: 0;
  min-height: 118px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--remodel-surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.class-stat-card strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.8rem, 2.2vw, 2.65rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-stat-card.latest-stat-card strong {
  font-size: clamp(1.35rem, 1.7vw, 1.95rem);
  line-height: 1.08;
}

.new-session-card {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px) minmax(160px, 220px);
  gap: clamp(18px, 1.8vw, 26px);
  padding: clamp(20px, 1.8vw, 28px);
}

.new-session-card h3 {
  line-height: 1.08;
}

.archive-drawer {
  display: grid;
  gap: 10px;
}

.archive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  cursor: pointer;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--remodel-surface-2) 80%, transparent);
  color: var(--remodel-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 780;
}

.archive-summary::after {
  content: "+";
  color: var(--remodel-ink-muted);
  font-family: var(--font-mono);
}

.archive-drawer[open] .archive-summary::after {
  content: "-";
}

.class-dashboard-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.54fr) minmax(720px, 1.46fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
}

.class-dashboard-title {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.class-dashboard-title h1 {
  min-width: 0;
  overflow: hidden;
  color: var(--remodel-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 0.96;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dashboard-launch-panel {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 8px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    color-mix(in srgb, var(--remodel-surface-2) 84%, transparent);
  box-shadow: var(--remodel-control-shadow);
}

.compact-date-control {
  flex: 1 1 148px;
  gap: 4px;
  min-width: 128px;
}

.dashboard-launch-panel .session-type-control {
  flex-basis: 178px;
}

.dashboard-launch-panel .evaluation-series-control,
.dashboard-launch-panel .presentation-title-control {
  flex: 1.25 1 190px;
}

.compact-date-control span {
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compact-date-control input,
.compact-date-control select {
  min-height: 38px;
}

.dashboard-launch-panel .go-live-button {
  flex: 0 0 92px;
  min-height: 38px;
  min-width: 0;
}

.dashboard-launch-panel .class-settings-button {
  flex: 0 0 116px;
  min-height: 38px;
  min-width: 0;
}

.progress-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.progress-card {
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr);
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--remodel-surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.progress-card-head {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.progress-card-head strong {
  overflow: hidden;
  color: var(--remodel-ink);
  font-family: var(--font-numeric);
  font-size: clamp(1.45rem, 1.8vw, 2.1rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-card-head small {
  color: var(--remodel-ink-muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.progress-chart {
  width: 100%;
  min-height: 150px;
  overflow: visible;
}

.chart-grid-line {
  stroke: color-mix(in srgb, var(--remodel-line) 86%, transparent);
  stroke-width: 1;
}

.chart-grid-line.faint {
  opacity: 0.42;
}

.trend-area {
  fill: color-mix(in srgb, var(--remodel-green) 14%, transparent);
}

.trend-line-path,
.average-line-path {
  fill: none;
  stroke: var(--remodel-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bar-point rect {
  fill: color-mix(in srgb, var(--remodel-blue) 70%, var(--remodel-cyan));
}

.average-line-path {
  stroke: var(--remodel-amber);
}

.average-point circle,
.chart-point circle {
  fill: var(--remodel-surface-2);
  stroke: var(--remodel-green);
  stroke-width: 3;
}

.average-point circle {
  stroke: var(--remodel-amber);
}

.chart-value-label,
.chart-average-label,
.chart-date-label {
  fill: var(--remodel-ink);
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 840;
}

.chart-average-label,
.chart-date-label {
  fill: var(--remodel-ink-muted);
}

.progress-discussion .bar-point rect {
  fill: color-mix(in srgb, var(--remodel-blue) 78%, var(--remodel-cyan));
}

.progress-fillers .bar-point rect {
  fill: color-mix(in srgb, var(--remodel-amber) 72%, var(--remodel-red));
}

.progress-empty-chart {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed var(--remodel-line);
  border-radius: 8px;
  color: var(--remodel-ink-muted);
  font-family: var(--font-label);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.class-session-panel {
  display: grid;
  gap: 12px;
}

.class-session-panel .session-list {
  gap: 8px;
}

.class-session-panel .session-file-row {
  min-height: 58px;
  padding: 10px 12px;
}

.class-session-panel .file-main h2 {
  font-size: 1rem;
}

.date-control,
.select-option {
  gap: 8px;
  line-height: 1.25;
}

.go-live-button {
  min-height: 54px;
}

.setup-strip.preflight-strip {
  border-color: var(--remodel-line);
  border-radius: 8px;
  background: var(--remodel-surface);
  box-shadow: var(--remodel-panel-shadow);
}

.setup-strip.preflight-strip summary {
  min-height: 50px;
  padding: 14px 18px;
  color: var(--remodel-ink);
  line-height: 1.3;
}

.setup-body.preflight-tools {
  gap: 16px;
  padding: 16px 18px 18px;
  border-top-color: var(--remodel-line);
}

.setup-item label,
.file-label {
  gap: 8px;
  color: var(--remodel-ink-soft);
  line-height: 1.25;
}

.setup-item.compact button {
  min-height: 42px;
  padding-inline: 14px;
}

.report-panel {
  padding: clamp(18px, 1.6vw, 24px);
  container-type: inline-size;
}

.report-export-grid,
.report-activity-grid {
  gap: 14px;
}

.report-export-grid fieldset {
  border-color: var(--remodel-line);
  border-radius: 8px;
  background: var(--remodel-surface-2);
}

.check-option,
.select-option {
  color: var(--remodel-ink-soft);
}

.check-option input[type="checkbox"] {
  accent-color: var(--remodel-cyan);
}

.report-activity-card {
  border-color: var(--remodel-line);
  border-radius: 8px;
  background: var(--remodel-surface-2);
}

.report-student-table {
  overflow-x: auto;
  overflow-y: visible;
}

.report-student-table .grid-row {
  grid-template-columns: minmax(142px, 1.08fr) minmax(76px, 0.54fr) minmax(62px, 0.38fr) minmax(58px, 0.36fr) minmax(70px, 0.44fr) minmax(74px, 0.46fr) minmax(74px, 0.46fr) minmax(126px, 0.7fr);
  gap: 5px;
  min-width: 820px;
  padding: 4px 6px;
  border-color: var(--remodel-line);
  overflow: visible;
}

.report-student-table .table-header {
  min-height: 25px;
  padding-block: 3px;
  background: var(--remodel-surface-3);
  color: var(--remodel-ink-soft);
  font-size: 0.64rem;
}

.report-student-table .grid-row > [role="cell"],
.report-student-table .table-header > [role="columnheader"] {
  min-width: 0;
}

.report-student-row:nth-child(odd),
.event-timeline .log-row:nth-child(odd) {
  background: color-mix(in srgb, var(--remodel-surface-2) 86%, transparent);
}

.report-student-table .student-meta {
  gap: 0;
}

.report-student-table .student-name {
  font-size: 0.78rem;
  line-height: 1.05;
}

.report-student-table .student-id,
.report-student-table .report-cell-note {
  margin-top: 1px;
  font-size: 0.62rem;
  line-height: 1;
  white-space: nowrap;
}

.report-student-table .status-pill {
  min-height: 18px;
  padding: 2px 5px;
  font-size: 0.62rem;
  line-height: 1;
}

.report-student-table .report-score-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: visible;
}

.report-student-table .report-score-value {
  color: var(--remodel-ink);
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.report-student-table .report-score-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
  width: auto;
  overflow: visible;
}

.report-student-table .report-score-actions .small-button {
  min-height: 20px;
  min-width: 0;
  padding: 2px 5px;
  border-color: color-mix(in srgb, var(--remodel-blue) 30%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-blue) 9%, var(--remodel-surface-2));
  color: color-mix(in srgb, var(--remodel-blue) 72%, var(--remodel-ink));
  font-size: 0.6rem;
  line-height: 1;
  white-space: nowrap;
}

.report-student-table .report-score-actions .report-feedback-button {
  border-color: color-mix(in srgb, var(--remodel-green) 30%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-green) 9%, var(--remodel-surface-2));
  color: color-mix(in srgb, var(--remodel-green) 72%, var(--remodel-ink));
}

@container (max-width: 980px) {
  .report-student-table {
    overflow-x: visible;
  }

  .report-student-table .grid-row {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    min-width: 0;
    gap: 6px;
    padding: 8px;
  }

  .report-student-table .table-header {
    display: none;
  }

  .report-student-table .report-student-row > [role="cell"] {
    display: grid;
    gap: 2px;
    align-content: start;
    min-height: 44px;
    padding: 6px 7px;
    border: 1px solid color-mix(in srgb, var(--remodel-blue) 18%, var(--remodel-line));
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent),
      color-mix(in srgb, var(--remodel-surface-2) 80%, transparent);
  }

  .report-student-table .report-student-row > [role="cell"]::before {
    color: var(--remodel-ink-muted);
    font-family: var(--font-label);
    font-size: 0.58rem;
    font-weight: 840;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
  }

  .report-student-table .report-student-row > [role="cell"]:first-child,
.report-student-table .report-score-cell {
    grid-column: 1 / -1;
  }

  .report-student-table .report-student-row > [role="cell"]:first-child {
    min-height: auto;
    padding: 0 0 2px;
    border: 0;
    background: transparent;
  }

  .report-student-table .report-student-row > [role="cell"]:first-child::before {
    content: none;
  }

  .report-student-table .report-student-row > [role="cell"]:nth-child(2)::before {
    content: "Attendance";
  }

  .report-student-table .report-student-row > [role="cell"]:nth-child(3)::before {
    content: "Fillers";
  }

  .report-student-table .report-student-row > [role="cell"]:nth-child(4)::before {
    content: "Presence";
  }

  .report-student-table .report-student-row > [role="cell"]:nth-child(5)::before {
    content: "Discuss";
  }

  .report-student-table .report-student-row > [role="cell"]:nth-child(6)::before {
    content: "Think Fast";
  }

  .report-student-table .report-student-row > [role="cell"]:nth-child(7)::before {
    content: "Never Met";
  }

  .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(2)::before {
    content: "Status";
  }

  .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(3)::before {
    content: "Fillers";
  }

  .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(4)::before {
    content: "Time";
  }

  .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(5)::before {
    content: "Penalties";
  }

  .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(6)::before {
    content: "Final Score";
  }

  .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(7)::before {
    content: "Actions";
  }

  .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(2)::before {
    content: "Wins";
  }

  .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(3)::before {
    content: "Takeaways";
  }

  .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(4)::before {
    content: "Presence";
  }

  .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(5)::before {
    content: "Participation Score";
  }

  .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(6)::before {
    content: "Actions";
  }

  .report-student-table .report-score-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 34px;
    padding: 6px 7px;
    border-color: color-mix(in srgb, var(--remodel-blue) 24%, var(--remodel-line));
  }

  .report-student-table .report-score-cell::before {
    content: "Report Summary";
  }

  .presentation-score-table .presentation-score-row > .report-score-cell::before {
    content: "Final Score";
  }

  .presentation-participation-table .presentation-participation-row > .report-score-cell::before {
    content: "Participation Score";
  }

  .report-student-table .report-score-actions {
    justify-content: end;
  }
}

.event-timeline .log-row strong {
  color: var(--remodel-ink);
}

.app-modal-backdrop {
  background: rgba(3, 5, 8, 0.74);
  backdrop-filter: blur(0);
}

.app-modal {
  width: min(560px, 100%);
  color: var(--remodel-ink);
}

.app-modal h2,
.app-modal h3 {
  color: var(--remodel-ink);
}

.app-modal-body {
  color: var(--remodel-ink-soft);
}

.app-modal .app-modal-close {
  --modal-close-size: 38px;
  --modal-close-stroke: 15px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--modal-close-size);
  min-width: var(--modal-close-size);
  min-height: var(--modal-close-size);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 22%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-blue) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--remodel-surface-2) 76%, transparent);
  color: var(--remodel-ink-soft);
  box-shadow: 2px 2px 0 color-mix(in srgb, #000 42%, transparent);
  transform: none;
}

.app-modal .app-modal-close::before,
.app-modal .app-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--modal-close-stroke);
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% 50%;
}

.app-modal .app-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.app-modal .app-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.app-modal .app-modal-close:hover,
.app-modal .app-modal-close:focus-visible {
  border-color: color-mix(in srgb, var(--remodel-blue) 42%, var(--remodel-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-blue) 20%, transparent), transparent 58%),
    color-mix(in srgb, var(--remodel-surface-2) 86%, transparent);
  color: var(--remodel-ink);
  box-shadow:
    2px 2px 0 color-mix(in srgb, #000 42%, transparent),
    0 0 0 3px color-mix(in srgb, var(--remodel-blue) 16%, transparent);
  transform: translate(-1px, -1px);
}

.app-modal .app-modal-close:active {
  background: color-mix(in srgb, var(--remodel-blue) 18%, var(--remodel-surface-2));
  box-shadow: 1px 1px 0 color-mix(in srgb, #000 42%, transparent);
  transform: translate(1px, 1px);
}

.roster-drawer {
  gap: 12px;
}

.roster-drawer > summary {
  color: var(--remodel-ink);
}

.roster-summary-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-color: var(--remodel-line);
  border-radius: 8px;
  background: var(--remodel-bg);
}

.roster-summary-meter {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-color: var(--remodel-line);
  border-radius: 6px;
  background: var(--remodel-surface-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: var(--remodel-control-shadow);
}

.roster-summary-meter:hover {
  transform: translateY(-1px);
  border-color: var(--remodel-line-strong);
}

.roster-summary-meter:focus-visible {
  outline: 2px solid var(--remodel-cyan);
  outline-offset: 2px;
}

.roster-summary-meter.active,
.roster-summary-meter[aria-pressed="true"] {
  background:
    linear-gradient(180deg, color-mix(in srgb, currentColor 13%, transparent), transparent),
    var(--remodel-surface-3);
  box-shadow: inset 0 0 0 1px currentColor, var(--remodel-control-shadow);
}

.roster-summary-meter span {
  color: var(--remodel-ink-muted);
}

.roster-summary-meter strong {
  color: var(--remodel-ink);
}

.roster-summary-meter.status-available {
  border-color: color-mix(in srgb, var(--remodel-green) 52%, var(--remodel-line));
}

.roster-summary-meter.status-late,
.roster-summary-meter.status-discussion {
  border-color: color-mix(in srgb, var(--remodel-amber) 52%, var(--remodel-line));
}

.roster-summary-meter.status-left,
.roster-summary-meter.status-absent {
  border-color: color-mix(in srgb, var(--remodel-red) 48%, var(--remodel-line));
}

.roster-summary-meter.status-notSeen {
  border-color: var(--remodel-line-strong);
}

.roster-operator-sheet .table-row {
  border-color: var(--remodel-line);
  background: var(--remodel-surface-2);
}

.roster-status-group,
.roster-status-group.status-available,
.roster-status-group.status-late,
.roster-status-group.status-left,
.roster-status-group.status-absent,
.roster-status-group.status-notSeen {
  display: grid;
  gap: 6px;
  background: transparent;
  color: var(--remodel-ink);
}

.roster-operator-sheet .roster-group-heading.table-header,
.roster-group-heading {
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-color: var(--remodel-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--remodel-surface-2);
  color: var(--remodel-ink-soft);
  line-height: 1;
  position: static;
  z-index: auto;
}

.roster-status-group.status-available .roster-group-heading {
  border-left: 3px solid var(--remodel-green);
}

.roster-status-group.status-late .roster-group-heading {
  border-left: 3px solid var(--remodel-amber);
}

.roster-status-group.status-left .roster-group-heading,
.roster-status-group.status-absent .roster-group-heading {
  border-left: 3px solid var(--remodel-red);
}

.roster-status-group.status-notSeen .roster-group-heading {
  border-left: 3px solid var(--remodel-line-strong);
}

.roster-signal-cell {
  gap: 5px;
}

.roster-status-buttons {
  gap: 5px;
}

.roster-status-buttons .small-button,
.status-actions .small-button {
  min-height: 30px;
  border-radius: 6px;
}

.roster-status-buttons .small-button.active,
.status-actions .small-button.active {
  border-color: color-mix(in srgb, var(--remodel-green) 56%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-green) 24%, transparent), color-mix(in srgb, var(--remodel-green) 10%, transparent)),
    var(--remodel-surface-2);
  color: color-mix(in srgb, var(--remodel-green) 86%, var(--remodel-ink));
}

.screen-active .side-panel {
  border-color: var(--remodel-line);
  background: var(--remodel-surface);
}

.screen-active .side-panel {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.screen-active .side-panel .roster-drawer {
  display: block;
  height: auto;
  min-height: max-content;
  overflow: visible;
}

.screen-active .side-panel .roster-drawer > summary {
  position: sticky;
  top: 0;
  z-index: 4;
  margin-bottom: 12px;
  background: var(--remodel-surface);
}

.screen-active .side-panel .roster-drawer-body {
  display: block;
  min-height: auto;
  overflow: visible;
}

.screen-active .side-panel .roster-summary-board {
  position: sticky;
  top: 48px;
  z-index: 3;
  margin-bottom: 12px;
  background: var(--remodel-bg);
}

.screen-active .side-panel .roster-list {
  overflow: visible;
  padding-bottom: 72px;
}

.student-meta {
  min-width: 0;
}

.student-name {
  color: var(--remodel-ink);
}

.student-id {
  color: var(--remodel-ink-muted);
}

.status-pill.available {
  border-color: color-mix(in srgb, var(--remodel-green) 48%, var(--remodel-line));
  color: var(--remodel-green);
}

.status-pill.late {
  border-color: color-mix(in srgb, var(--remodel-amber) 48%, var(--remodel-line));
  color: var(--remodel-amber);
}

.status-pill.left,
.status-pill.absent {
  border-color: color-mix(in srgb, var(--remodel-red) 42%, var(--remodel-line));
  color: var(--remodel-red);
}

.status-pill.notSeen {
  border-color: var(--remodel-line-strong);
  color: var(--remodel-ink-muted);
}

/*
  Student display integration notes:
  - app.js currently writes .display,
.activity,
.title,
.subtitle,
.timer,
.next,
.article-board,
.article-overline,
.article-content,
.article-headline,
.article-summary,
.article-topic,
and .article-footer
    into the child window as inline CSS.
  - When the parent can share a stylesheet with rostraStudentDisplay,
move the
    presentation tokens below into that template instead of duplicating them.
  - Keep the display private-safe: no filler counts,
roster statuses,
grades,
or
    instructor-only controls.
*/

.student-display-support,
.display-support-panel {
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-blue) 8%, transparent), transparent),
    var(--remodel-surface);
  color: var(--remodel-ink);
  box-shadow: var(--remodel-panel-shadow);
}

.student-display-support .display-preview,
.display-support-panel .display-preview {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--remodel-cyan) 30%, var(--remodel-line));
  border-radius: 8px;
  background: var(--remodel-bg);
  color: var(--remodel-ink-soft);
}

.display-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--remodel-green) 42%, var(--remodel-line));
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--remodel-green) 12%, transparent);
  color: var(--remodel-green);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.display-status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-launch-panel .session-type-control select,
.dashboard-launch-panel .presentation-title-control input {
  min-height: 40px;
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background: var(--remodel-bg);
  color: var(--remodel-ink);
  padding: 0 10px;
}

.presentation-report .presentation-score-table .grid-row {
  grid-template-columns: minmax(220px, 1.25fr) minmax(112px, 0.72fr) minmax(72px, 0.45fr) minmax(82px, 0.5fr) minmax(150px, 0.9fr) minmax(116px, 0.62fr) minmax(126px, 0.68fr);
}

.presentation-report .presentation-participation-table .grid-row {
  grid-template-columns: minmax(220px, 1.35fr) minmax(110px, 0.65fr) minmax(120px, 0.72fr) minmax(120px, 0.72fr) minmax(140px, 0.8fr) minmax(92px, 0.46fr);
}

.presentation-report .presentation-detail-row {
  grid-template-columns: 1fr !important;
}

.presentation-report .presentation-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.presentation-report .presentation-detail-item,
.presentation-report .presentation-notes-detail {
  border: 1px solid var(--remodel-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--remodel-surface-2) 82%, transparent);
  padding: 12px;
}

.presentation-report .presentation-detail-item span,
.presentation-report .presentation-notes-detail strong {
  display: block;
  color: var(--remodel-ink-muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.presentation-report .presentation-detail-item strong {
  color: var(--remodel-ink);
}

.presentation-report .presentation-notes-detail {
  margin-top: 12px;
}

.presentation-report .presentation-notes-detail p {
  margin: 0;
  color: var(--remodel-ink-soft);
  white-space: pre-wrap;
}

.presentation-report .presentation-penalty-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@container (max-width: 980px) {
  .presentation-report .presentation-score-table .grid-row,
.presentation-report .presentation-participation-table .grid-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .presentation-report .presentation-score-row > .report-score-actions[role="cell"],
.presentation-report .presentation-participation-row > .report-score-actions[role="cell"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .presentation-report .report-square-action {
    width: 36px;
    height: 36px;
  }

  .presentation-report .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(2)::before {
    content: "Status";
  }

  .presentation-report .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(3)::before {
    content: "Fillers";
  }

  .presentation-report .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(4)::before {
    content: "Time";
  }

  .presentation-report .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(5)::before {
    content: "Penalties";
  }

  .presentation-report .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(6)::before {
    content: "Final Score";
  }

  .presentation-report .presentation-score-table .presentation-score-row > [role="cell"]:nth-child(7)::before {
    content: "Actions";
  }

  .presentation-report .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(2)::before {
    content: "Wins";
  }

  .presentation-report .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(3)::before {
    content: "Takeaways";
  }

  .presentation-report .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(4)::before {
    content: "Presence";
  }

  .presentation-report .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(5)::before,
.presentation-report .presentation-participation-table .report-score-cell::before {
    content: "Participation Score";
  }

  .presentation-report .presentation-participation-table .presentation-participation-row > [role="cell"]:nth-child(6)::before {
    content: "Actions";
  }
}

@media (max-width: 1180px) {
  .library-toolbar,
.roster-import-panel,
.roster-import-grid,
.new-session-card,
.class-dashboard-header,
.dashboard-launch-panel,
.progress-card-grid {
    grid-template-columns: 1fr;
  }

  .command-cluster,
.file-actions {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .library-toolbar,
.roster-import-panel,
.new-session-card,
.report-panel,
.app-modal {
    padding: 16px;
  }

  .roster-import-card,
.class-stat-card {
    min-height: auto;
    padding: 18px;
  }

  .setup-strip.preflight-strip summary {
    padding: 14px 16px;
  }

  .setup-body.preflight-tools {
    grid-template-columns: 1fr;
    padding: 14px 16px 16px;
  }

  .class-file-row,
.session-file-row {
    grid-template-columns: 1fr;
  }

  .file-leading {
    display: none;
  }

  .file-actions,
.new-session-card .go-live-button {
    width: 100%;
  }

  .file-actions .primary-button,
.file-actions .ghost-button,
.file-actions .danger-button,
.file-actions .secondary-button,
.new-session-card .go-live-button {
    width: 100%;
  }

  .report-student-table .grid-row {
    min-width: 0;
  }
}


/* ===== merged: styles-playful-geometric.css ===== */
/*
  Playful Geometric shared skin.
  This final CSS layer adapts the reference design system to Rostra's current
  static app without changing the render or data contract.
*/

:root {
  --pg-paper: #fffdf5;
  --pg-paper-dot: rgba(30, 41, 59, 0.075);
  --pg-card: #ffffff;
  --pg-card-soft: #f8fafc;
  --pg-ink: #1e293b;
  --pg-on-candy: #1e293b;
  --pg-ink-soft: #475569;
  --pg-muted: #64748b;
  --pg-border: #1e293b;
  --pg-border-soft: #e2e8f0;
  --pg-violet: #8b5cf6;
  --pg-violet-deep: #6d45dc;
  --pg-pink: #f472b6;
  --pg-yellow: #fbbf24;
  --pg-green: #34d399;
  --pg-blue: #38bdf8;
  --pg-red: #fb7185;
  --pg-navy: #1e293b;
  --pg-navy-2: #111827;
  --pg-shadow-color: #1e293b;
  --pg-shadow-sm: 3px 3px 0 var(--pg-shadow-color);
  --pg-shadow-md: 5px 5px 0 var(--pg-shadow-color);
  --pg-shadow-lg: 8px 8px 0 var(--pg-shadow-color);
  --pg-shadow-soft: 6px 6px 0 #dbe5f0;
  --pg-radius-card: 8px;
  --pg-radius-soft: 16px;
  --pg-radius-pill: 999px;
  --pg-border-width: 2px;
  --pg-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --bg: var(--pg-paper);
  --bg-grid: var(--pg-paper-dot);
  --surface: var(--pg-card);
  --surface-2: var(--pg-card-soft);
  --surface-3: #eef4fb;
  --surface-raised: var(--pg-card);
  --ink: var(--pg-ink);
  --ink-soft: var(--pg-ink-soft);
  --ink-muted: var(--pg-muted);
  --ink-subtle: #94a3b8;
  --line: var(--pg-border);
  --line-strong: var(--pg-border);
  --nav: var(--pg-navy);
  --nav-2: var(--pg-navy-2);
  --nav-3: #26364d;
  --nav-ink: #fffdf5;
  --nav-muted: #cbd5e1;
  --accent: var(--pg-violet);
  --accent-strong: var(--pg-violet-deep);
  --accent-soft: #ede9fe;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --coral: #db2777;
  --coral-soft: #fce7f3;
  --red: #e11d48;
  --green: #059669;
  --green-soft: #dcfce7;
  --cyan: #0891b2;
  --magenta: #9333ea;
  --monitor: #111827;
  --monitor-2: #1e293b;
  --monitor-ink: #fffdf5;
  --focus-ring: var(--pg-violet);
  --shadow-xs: var(--pg-shadow-sm);
  --shadow-sm: var(--pg-shadow-md);
  --shadow-md: var(--pg-shadow-lg);
  --control-shadow: var(--pg-shadow-sm);
  --control-shadow-active: 1px 1px 0 var(--pg-shadow-color);
  --hardware-shadow: var(--pg-shadow-sm);
  --module-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.42));
  --module-shadow: var(--pg-shadow-soft);
}

body {
  background:
    radial-gradient(circle, var(--pg-paper-dot) 1px, transparent 1.5px),
    var(--bg);
  background-size: 18px 18px, auto;
  color: var(--ink);
}

body::before {
  background: none;
}

.studio-bar,
.console-chrome {
  border-bottom: var(--pg-border-width) solid var(--pg-border);
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.13), transparent 38%, rgba(52, 211, 153, 0.12)),
    var(--nav);
  color: var(--nav-ink);
  box-shadow: 0 4px 0 var(--pg-shadow-color);
}

.studio-label,
.brand-name,
.activity-title h1,
.section-heading h2,
.library-title-block h1,
.class-home .activity-title h1,
.class-dashboard-title h1 {
  color: var(--ink);
  font-weight: 850;
}

.studio-bar .studio-label,
.studio-bar .studio-mode,
.studio-bar .context-chip,
.studio-bar .save-status {
  color: var(--nav-ink);
}

.tally-light {
  width: 11px;
  height: 11px;
  border: 2px solid var(--pg-border);
  background: var(--pg-green);
  box-shadow: none;
}

.studio-mode,
.top-context,
.save-status,
.theme-toggle-switch,
.save-state-button,
.cloud-account-summary,
.studio-bar .home-button,
.studio-bar .icon-button,
.top-icon-actions .icon-button {
  border: var(--pg-border-width) solid color-mix(in srgb, var(--nav-ink) 42%, var(--pg-border));
  border-radius: var(--pg-radius-card);
  background: rgba(255, 253, 245, 0.09);
  color: var(--nav-ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 72%, transparent);
}

.top-context {
  flex: 0 1 auto;
  width: auto;
  max-width: min(46vw, 440px);
  min-height: 34px;
  gap: 0;
  padding: 2px;
  overflow: hidden;
}

.context-chip {
  min-height: 28px;
  gap: 6px;
  padding: 0 8px;
  color: var(--nav-muted);
  font-size: 0.68rem;
  line-height: 1;
}

.context-chip strong {
  max-width: min(13vw, 16ch);
  font-size: 0.78rem;
  line-height: 1;
}

.context-date strong {
  max-width: 7ch;
}

.session-record-button {
  width: 30px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--nav-ink) 42%, var(--pg-border));
  border-radius: var(--pg-radius-card);
  background: rgba(255, 253, 245, 0.09);
  color: var(--nav-ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 72%, transparent);
  cursor: pointer;
  flex: 0 0 auto;
}

.session-record-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ff3b30 14%, transparent);
}

.session-record-button.recording .session-record-dot,
.session-record-button[aria-pressed="true"] .session-record-dot {
  box-shadow:
    0 0 0 3px color-mix(in srgb, #ff3b30 18%, transparent),
    0 0 18px color-mix(in srgb, #ff3b30 62%, transparent);
}

.context-timekeeper {
  min-width: 104px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.context-timekeeper strong {
  max-width: none;
}

.session-recording .tally-light {
  background: #ff3b30;
  box-shadow:
    0 0 0 4px color-mix(in srgb, #ff3b30 13%, transparent),
    0 0 20px color-mix(in srgb, #ff3b30 40%, transparent);
}

.top-context strong,
.context-chip strong {
  color: var(--nav-ink);
}

.save-state-button {
  border-radius: var(--pg-radius-pill);
  font-weight: 800;
}

.theme-switch-track {
  border: 2px solid var(--pg-border);
  background: var(--pg-yellow);
}

.theme-switch-knob {
  border: 2px solid var(--pg-border);
  background: var(--pg-card);
}

.left-rail {
  border-right: var(--pg-border-width) solid var(--pg-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    var(--surface);
  box-shadow: 4px 0 0 var(--pg-shadow-color);
}

.brand-mark {
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: var(--pg-yellow);
  color: var(--pg-on-candy);
  box-shadow: var(--pg-shadow-sm);
  transform: rotate(-4deg);
}

.brand-subtitle {
  color: var(--ink-muted);
  font-weight: 750;
}

.nav-button {
  --nav-accent: var(--pg-blue);
  border: var(--pg-border-width) solid transparent;
  border-radius: var(--pg-radius-card);
  color: var(--ink-soft);
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--pg-bounce), box-shadow 180ms var(--pg-bounce);
}

.nav-button-wins {
  --nav-accent: var(--pg-yellow);
}

.nav-button-discussion {
  --nav-accent: var(--pg-green);
}

.nav-button-think-fast {
  --nav-accent: var(--pg-violet);
}

.nav-button-never-met {
  --nav-accent: var(--pg-pink);
}

.nav-button-report {
  --nav-accent: var(--pg-blue);
}

.nav-icon {
  border: var(--pg-border-width) solid var(--pg-border);
  background: color-mix(in srgb, var(--nav-accent) 72%, white);
  color: var(--pg-on-candy);
  box-shadow: 2px 2px 0 var(--pg-shadow-color);
}

.nav-button:hover {
  border-color: var(--pg-border);
  background: color-mix(in srgb, var(--nav-accent) 18%, var(--surface));
  color: var(--ink);
  transform: translate(-1px, -1px);
}

.nav-button.active {
  border-color: var(--pg-border);
  background: color-mix(in srgb, var(--nav-accent) 28%, var(--surface));
  color: var(--ink);
  box-shadow: var(--pg-shadow-sm);
}

.nav-button.active .nav-icon {
  border-color: var(--pg-border);
  background: var(--nav-accent);
  color: var(--pg-on-candy);
}

.top-bar,
.setup-strip,
.main-panel,
.side-panel,
.log-panel,
.library-toolbar,
.cloud-auth-panel,
.cloud-beta-panel,
.preflight-panel,
.report-panel,
.roster-import-panel,
.settings-card,
.settings-stat-card,
.class-file-row,
.session-file-row,
.class-stat-card,
.new-session-card,
.speaker-card,
.timer-card,
.presence-card,
.filler-card,
.tf-program-monitor,
.tf-instrument,
.speaker-tracking-card,
.article-card,
.project-card,
.session-card,
.progress-card,
.report-activity-card,
.report-export-grid fieldset,
.app-modal {
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: var(--module-gradient), var(--surface);
  box-shadow: var(--module-shadow);
}

.screen-active .main-panel,
.screen-active .side-panel,
.screen-active .log-panel {
  background: var(--module-gradient), var(--surface);
}

.class-file-row,
.session-file-row,
.presence-row,
.roster-row,
.queue-row,
.log-row,
.grid-row,
.next-three-row {
  border-width: var(--pg-border-width);
  border-color: color-mix(in srgb, var(--pg-border) 88%, var(--pg-border-soft));
  background: var(--surface);
}

.activity-kicker,
.console-chip,
.count-pill,
.status-pill,
.shortcut,
.display-status-chip {
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 78%, transparent);
  font-weight: 850;
}

.activity-kicker,
.setup-option-label,
.session-list-title,
.class-stat-card span,
.report-activity-card span,
.report-activity-card small,
.report-export-grid legend {
  color: var(--ink);
  letter-spacing: 0.055em;
}

.activity-kicker,
.console-chip.live {
  background: var(--pg-yellow);
  color: var(--pg-on-candy);
}

.count-pill {
  background: color-mix(in srgb, var(--pg-blue) 32%, var(--surface));
}

.screen-cloud-auth .left-rail,
.screen-cloud-auth .setup-strip,
.screen-cloud-auth .side-panel,
.screen-cloud-auth .log-panel,
.screen-cloud-loading .left-rail,
.screen-cloud-loading .setup-strip,
.screen-cloud-loading .side-panel,
.screen-cloud-loading .log-panel {
  display: none;
}

.screen-cloud-auth #homeButton,
.screen-cloud-auth #saveStatus,
.screen-cloud-auth #openDisplayButton,
.screen-cloud-auth #saveStateButton,
.screen-cloud-auth #cloudAccountMenu,
.screen-cloud-loading #homeButton,
.screen-cloud-loading #saveStatus,
.screen-cloud-loading #openDisplayButton,
.screen-cloud-loading #saveStateButton,
.screen-cloud-loading #cloudAccountMenu {
  display: none;
}

.screen-cloud-auth .app-shell,
.screen-cloud-loading .app-shell {
  grid-template-columns: 1fr;
}

.screen-cloud-auth .workspace,
.screen-cloud-loading .workspace {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(26px, 6vh, 76px) clamp(16px, 4vw, 48px);
}

.screen-cloud-auth .content-grid,
.screen-cloud-auth .main-column,
.screen-cloud-loading .content-grid,
.screen-cloud-loading .main-column {
  display: block;
}

.screen-cloud-auth .main-panel,
.screen-cloud-loading .main-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.cloud-auth-shell {
  display: grid;
  min-height: min(640px, calc(100dvh - var(--studio-bar-height) - 96px));
  place-items: center;
}

.cloud-auth-panel {
  width: min(100%, 560px);
  padding: clamp(22px, 4vw, 34px);
}

.cloud-auth-title {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.cloud-auth-title h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.96;
}

.cloud-auth-title p,
.cloud-auth-form p {
  margin: 0;
}

.cloud-auth-form {
  display: grid;
  gap: 14px;
}

.cloud-auth-field {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.cloud-auth-field span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.cloud-auth-field input {
  width: 100%;
  min-height: 50px;
  background: color-mix(in srgb, var(--surface-2) 86%, var(--surface));
  font-size: 1rem;
}

.cloud-session-loader {
  min-height: 270px;
  display: grid;
  align-content: center;
}

.cloud-loading-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cloud-loading-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--pg-border);
  border-radius: 50%;
  background: var(--pg-blue);
  animation: cloud-loading-pulse 900ms ease-in-out infinite;
}

.cloud-loading-dot:nth-child(2) {
  animation-delay: 120ms;
}

.cloud-loading-dot:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes cloud-loading-pulse {
  0%,
100% {
    opacity: 0.42;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.cloud-auth-oauth,
.cloud-auth-actions,
.cloud-auth-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-auth-oauth {
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cloud-auth-later-actions {
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

.cloud-auth-later-actions > button {
  min-width: 132px;
}

.cloud-auth-oauth > button,
.cloud-auth-actions > button,
.cloud-auth-form > button {
  min-height: 46px;
}

.cloud-oauth-button {
  display: inline-grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  padding: 0;
}

.cloud-oauth-logo {
  display: block;
  width: 22px;
  height: 22px;
}

.cloud-oauth-button:disabled .cloud-oauth-logo {
  filter: grayscale(0.35);
  opacity: 0.58;
}

.cloud-auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.cloud-auth-divider::before,
.cloud-auth-divider::after {
  content: "";
  height: var(--pg-border-width);
  background: color-mix(in srgb, var(--pg-border) 70%, transparent);
}

.cloud-account-menu {
  position: relative;
  z-index: 75;
}

.cloud-account-menu[hidden] {
  display: none;
}

.cloud-account-summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 10px 3px 5px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cloud-account-summary::-webkit-details-marker {
  display: none;
}

.cloud-account-avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--nav-ink) 40%, var(--pg-border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--pg-blue) 40%, var(--surface));
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.cloud-account-avatar.ready {
  background: color-mix(in srgb, var(--pg-green) 70%, var(--surface));
  color: var(--pg-on-candy);
}

.cloud-account-avatar.pending {
  background: color-mix(in srgb, var(--pg-yellow) 76%, var(--surface));
  color: var(--pg-on-candy);
}

.cloud-account-avatar.offline {
  background: color-mix(in srgb, var(--surface-2) 86%, var(--surface));
  color: var(--ink-muted);
}

.cloud-account-summary-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1;
}

.cloud-account-summary-copy span {
  color: var(--nav-muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cloud-account-summary-copy strong {
  max-width: 15ch;
  overflow: hidden;
  color: var(--nav-ink);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  padding: 12px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--pg-shadow-md);
}

.cloud-account-card {
  display: grid;
  gap: 12px;
}

.cloud-account-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.cloud-account-identity > div > strong,
.cloud-account-identity > div > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-account-identity > div > strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.cloud-account-identity > div > span {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.cloud-account-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cloud-account-menu-actions button {
  min-width: 0;
  min-height: 36px;
  padding-inline: 10px;
  white-space: nowrap;
}

.cloud-account-menu-actions .ghost-button {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .cloud-account-summary {
    padding: 3px;
  }

  .cloud-account-summary-copy {
    display: none;
  }

  .cloud-account-panel {
    right: -58px;
  }
}

.cloud-beta-panel {
  padding: clamp(14px, 2vw, 20px);
}

.cloud-beta-row,
.cloud-beta-account,
.cloud-beta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-beta-row {
  justify-content: space-between;
}

.cloud-beta-actions button {
  white-space: nowrap;
}

.status-pill.available,
.status-available,
.roster-summary-meter.status-available {
  border-color: var(--pg-border);
  background: color-mix(in srgb, var(--pg-green) 66%, var(--surface));
  color: var(--pg-on-candy);
}

.status-pill.late,
.status-late,
.roster-summary-meter.status-late {
  border-color: var(--pg-border);
  background: color-mix(in srgb, var(--pg-yellow) 78%, var(--surface));
  color: var(--pg-on-candy);
}

.status-pill.left,
.status-left,
.status-pill.absent,
.status-absent,
.status-pill.notSeen,
.status-notSeen,
.roster-summary-meter.status-left,
.roster-summary-meter.status-absent,
.roster-summary-meter.status-notSeen {
  border-color: var(--pg-border);
  background: color-mix(in srgb, var(--pg-pink) 58%, var(--surface));
  color: var(--pg-on-candy);
}

input,
textarea,
select {
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--pg-border);
  background: color-mix(in srgb, var(--pg-yellow) 8%, var(--surface));
}

input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 0;
  border-color: var(--pg-violet);
  box-shadow: 4px 4px 0 var(--pg-violet);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.filler-button,
.stepper-button,
.participation-toggle,
.presence-disclosure,
.system-button,
input[type="file"]::file-selector-button {
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-pill);
  box-shadow: var(--pg-shadow-sm);
  font-weight: 850;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--pg-bounce), box-shadow 180ms var(--pg-bounce);
}

.primary-button,
.go-live-button,
.command-cluster .primary-button,
.timer-actions .primary-button,
.flow-actions .primary-button {
  background: var(--pg-violet);
  color: #ffffff;
}

.secondary-button,
.system-button,
input[type="file"]::file-selector-button {
  background: var(--surface);
  color: var(--ink);
}

.ghost-button,
.small-button,
.rating-button,
.participation-toggle {
  background: color-mix(in srgb, var(--pg-blue) 12%, var(--surface));
  color: var(--ink);
}

.danger-button {
  background: var(--pg-pink);
  color: var(--pg-on-candy);
}

.stepper-button,
.filler-button {
  background: var(--pg-yellow);
  color: var(--pg-on-candy);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.danger-button:hover:not(:disabled),
.small-button:hover:not(:disabled),
.rating-button:hover:not(:disabled),
.filler-button:hover:not(:disabled),
.stepper-button:hover:not(:disabled),
.participation-toggle:hover:not(:disabled),
.presence-disclosure:hover:not(:disabled),
.system-button:hover:not(:disabled),
input[type="file"]::file-selector-button:hover {
  border-color: var(--pg-border);
  box-shadow: var(--pg-shadow-md);
  transform: translate(-2px, -2px);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.ghost-button:active:not(:disabled),
.danger-button:active:not(:disabled),
.small-button:active:not(:disabled),
.rating-button:active:not(:disabled),
.filler-button:active:not(:disabled),
.stepper-button:active:not(:disabled),
.participation-toggle:active:not(:disabled),
.presence-disclosure:active:not(:disabled),
.system-button:active:not(:disabled),
input[type="file"]::file-selector-button:active {
  box-shadow: var(--control-shadow-active);
  transform: translate(2px, 2px);
}

.home-button,
.icon-button {
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  box-shadow: var(--pg-shadow-sm);
}

.home-button:hover,
.icon-button:hover {
  box-shadow: var(--pg-shadow-md);
  transform: translate(-1px, -1px);
}

.class-settings-console {
  gap: 16px;
  justify-items: center;
}

.class-settings-header {
  padding: 0;
}

.class-settings-back::before {
  content: "<";
  margin-right: 6px;
  font-family: var(--font-mono);
}

.class-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-launch-panel {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px;
  width: 100%;
}

.dashboard-launch-panel .compact-date-control {
  flex: 1 1 148px;
  min-width: 128px;
}

.dashboard-launch-panel .session-type-control {
  flex-basis: 178px;
}

.dashboard-launch-panel .evaluation-series-control,
.dashboard-launch-panel .presentation-title-control {
  flex: 1.25 1 190px;
}

.class-settings-button {
  flex: 0 0 116px;
  min-width: 0;
}

.dashboard-launch-panel .go-live-button {
  flex: 0 0 92px;
}

.settings-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.settings-stat-card {
  min-height: 76px;
  padding: 12px 13px;
}

.settings-stat-card strong {
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
}

.settings-card {
  gap: 13px;
  padding: 18px;
}

.class-settings-window {
  gap: 14px;
}

.roster-settings-layout {
  grid-template-columns: 1fr;
}

.class-name-settings-panel {
  padding: 16px 18px;
}

.class-name-control {
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
}

.class-name-control .primary-button {
  min-height: 44px;
}

.roster-settings-panel {
  gap: 16px;
  padding: 18px;
}

.roster-settings-titlebar {
  padding-bottom: 10px;
  border-bottom: var(--pg-border-width) solid color-mix(in srgb, var(--pg-border) 72%, var(--pg-border-soft));
}

.roster-settings-titlebar h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
}

.roster-settings-title-actions {
  align-items: center;
}

.roster-add-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
}

.roster-add-toggle span[aria-hidden="true"] {
  border: var(--pg-border-width) solid var(--pg-border);
  background: var(--pg-green);
  color: var(--pg-on-candy);
  font-family: var(--font-display);
  font-weight: 950;
}

.roster-add-toggle.active {
  background: color-mix(in srgb, var(--pg-green) 42%, var(--surface));
}

.settings-card .section-heading {
  margin-bottom: 2px;
}

.settings-field input,
.settings-card textarea {
  min-height: 44px;
  background: color-mix(in srgb, var(--surface-2) 82%, var(--surface));
}

.settings-card textarea {
  min-height: 134px;
  resize: vertical;
}

.settings-file-drop {
  min-height: 136px;
  border: var(--pg-border-width) dashed color-mix(in srgb, var(--pg-border) 82%, var(--pg-blue));
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--pg-blue) 22%, transparent) 0 22px, transparent 23px),
    color-mix(in srgb, var(--pg-blue) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pg-blue) 18%, transparent);
}

.settings-file-drop input[type="file"] {
  align-self: end;
  margin-top: 4px;
}

.settings-roster-notes > div {
  border-width: var(--pg-border-width);
  border-color: color-mix(in srgb, var(--pg-border) 78%, var(--pg-border-soft));
  background: color-mix(in srgb, var(--pg-yellow) 7%, var(--surface));
}

.settings-roster-notes span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-settings-tools {
  border: var(--pg-border-width) solid color-mix(in srgb, var(--pg-border) 78%, var(--pg-border-soft));
  border-radius: var(--pg-radius-card);
  padding: 12px;
  background: color-mix(in srgb, var(--pg-blue) 6%, var(--surface));
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--pg-shadow-color) 58%, transparent);
}

.roster-add-form .secondary-button {
  min-height: 44px;
}

.roster-import-compact {
  border-width: var(--pg-border-width);
  border-color: color-mix(in srgb, var(--pg-border) 78%, var(--pg-blue));
  background: color-mix(in srgb, var(--pg-yellow) 8%, var(--surface));
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--pg-shadow-color) 72%, transparent);
}

.roster-import-compact .file-glyph {
  width: 40px;
  height: 40px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: color-mix(in srgb, var(--pg-blue) 28%, var(--surface));
}

.roster-settings-list {
  scrollbar-color: color-mix(in srgb, var(--pg-blue) 45%, var(--pg-border)) transparent;
}

.roster-settings-row {
  align-self: stretch;
  border-width: var(--pg-border-width);
  border-color: color-mix(in srgb, var(--pg-border) 82%, var(--pg-border-soft));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pg-green) 7%, transparent), transparent 46%),
    var(--surface);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 62%, transparent);
}

.roster-settings-row:nth-child(even) {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pg-blue) 8%, transparent), transparent 46%),
    var(--surface);
}

.roster-settings-row.inactive {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pg-pink) 9%, transparent), transparent 46%),
    color-mix(in srgb, var(--surface-2) 82%, var(--surface));
}

.roster-mini-button {
  border-radius: var(--pg-radius-card);
  margin: 0 2px 2px 0;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 58%, transparent);
  font-size: 0.78rem;
  line-height: 1;
}

.roster-settings-row.active .roster-mini-button {
  background: color-mix(in srgb, var(--pg-yellow) 14%, var(--surface));
}

.roster-settings-row.inactive .roster-mini-button {
  background: color-mix(in srgb, var(--pg-green) 22%, var(--surface));
}

.rating-button.active,
.participation-toggle.active,
.small-button.active {
  border-color: var(--pg-border);
  background: var(--pg-green);
  color: var(--pg-on-candy);
}

.timer-card,
.tf-clock-module .timer-card,
.timer-stack .timer-card {
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.02)),
    var(--monitor);
  color: var(--monitor-ink);
}

.timer-card .count-pill,
.timer-card .secondary-button,
.timer-card .ghost-button {
  border-color: color-mix(in srgb, var(--monitor-ink) 42%, var(--pg-border));
}

.article-card,
.project-card,
.session-card,
.new-session-card,
.roster-import-card,
.settings-card,
.settings-stat-card,
.class-stat-card,
.progress-card {
  position: relative;
}

.article-card::before,
.project-card::before,
.session-card::before,
.new-session-card::before,
.roster-import-card::before,
.settings-card::before,
.settings-stat-card::before,
.class-stat-card::before,
.progress-card::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-left: var(--pg-border-width) solid var(--pg-border);
  border-bottom: var(--pg-border-width) solid var(--pg-border);
  border-radius: 0 6px 0 8px;
  background: var(--pg-yellow);
  pointer-events: none;
}

.article-card:nth-child(3n + 2)::before,
.project-card:nth-child(3n + 2)::before,
.session-card:nth-child(3n + 2)::before,
.new-session-card:nth-child(3n + 2)::before,
.roster-import-card:nth-child(3n + 2)::before,
.settings-card:nth-child(3n + 2)::before,
.settings-stat-card:nth-child(3n + 2)::before,
.class-stat-card:nth-child(3n + 2)::before,
.progress-card:nth-child(3n + 2)::before {
  background: var(--pg-pink);
}

.article-card:nth-child(3n)::before,
.project-card:nth-child(3n)::before,
.session-card:nth-child(3n)::before,
.new-session-card:nth-child(3n)::before,
.roster-import-card:nth-child(3n)::before,
.settings-card:nth-child(3n)::before,
.settings-stat-card:nth-child(3n)::before,
.class-stat-card:nth-child(3n)::before,
.progress-card:nth-child(3n)::before {
  background: var(--pg-green);
}

.article-card:hover,
.project-card:hover,
.session-card:hover {
  transform: translate(-1px, -1px) rotate(-0.35deg);
}

.app-modal-backdrop {
  background: rgba(30, 41, 59, 0.56);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0) !important;
}

.app-modal {
  position: relative;
  overflow: visible;
}

/* Dense roster/discussion tables need stronger row rhythm than card surfaces. */
.discussion-grid.operator-table .discussion-row,
.side-panel .roster-operator-sheet .roster-row {
  position: relative;
  border-left-width: 4px;
  border-left-color: color-mix(in srgb, var(--pg-blue) 24%, var(--pg-border-soft));
}

.discussion-grid.operator-table .discussion-row:nth-child(odd),
.side-panel .roster-operator-sheet .roster-row:nth-child(odd) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    color-mix(in srgb, var(--pg-blue) 8%, var(--surface));
}

.discussion-grid.operator-table .discussion-row:nth-child(even),
.side-panel .roster-operator-sheet .roster-row:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    color-mix(in srgb, var(--pg-violet) 6%, var(--surface));
}

.discussion-grid.operator-table .discussion-row:hover,
.side-panel .roster-operator-sheet .roster-row:hover {
  border-left-color: var(--pg-violet);
  background: color-mix(in srgb, var(--pg-yellow) 14%, var(--surface));
}

/* Step 1 dark-mode polish: keep the geometric language {
  gap: 5px;
}

.screen-active .side-panel .roster-drawer-body {
  gap: 10px;
}

.screen-active .side-panel .roster-list {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding-top: 8px;
}

.screen-active .side-panel .roster-status-group {
  display: grid;
  gap: 7px;
}

.screen-active .side-panel .roster-status-group:first-child .roster-group-heading {
  margin-top: 4px;
}

.roster-filter-banner {
  --filter-accent: var(--pg-blue);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-left: 5px solid var(--filter-accent);
  border-radius: var(--pg-radius-card);
  background: color-mix(in srgb, var(--filter-accent) 11%, var(--surface));
  color: var(--ink);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--pg-shadow-color) 70%, transparent);
}

.roster-filter-banner span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.roster-filter-banner strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-filter-banner.status-available,
.roster-summary-meter.status-available {
  --filter-accent: var(--pg-green);
}

.roster-filter-banner.status-late,
.roster-summary-meter.status-late {
  --filter-accent: var(--pg-yellow);
}

.roster-filter-banner.status-left,
.roster-summary-meter.status-left,
.roster-filter-banner.status-absent,
.roster-summary-meter.status-absent {
  --filter-accent: var(--pg-pink);
}

.roster-summary-meter {
  position: relative;
}

.roster-summary-meter.active,
.roster-summary-meter[aria-pressed="true"] {
  border-color: var(--filter-accent, var(--pg-violet));
  background: color-mix(in srgb, var(--filter-accent, var(--pg-violet)) 20%, var(--surface));
  box-shadow:
    inset 0 0 0 2px var(--filter-accent, var(--pg-violet)),
    3px 3px 0 var(--pg-shadow-color);
}

.roster-summary-meter.active::after,
.roster-summary-meter[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-pill);
  background: var(--filter-accent, var(--pg-violet));
  box-shadow: 2px 2px 0 var(--pg-shadow-color);
}

.roster-summary-meter.active::before,
.roster-summary-meter[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 1;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--pg-on-candy);
  border-bottom: 2px solid var(--pg-on-candy);
  transform: rotate(-45deg);
}

.session-report {
  gap: 10px;
}

.report-overview-grid.class-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.report-overview-grid .class-stat-card {
  min-height: 76px;
  gap: 4px;
  padding: 10px 12px;
}

.report-overview-grid .class-stat-card::before {
  width: 16px;
  height: 16px;
}

.report-overview-grid .class-stat-card span,
.report-overview-grid .class-stat-card small {
  font-size: 0.62rem;
  line-height: 1.12;
}

.report-overview-grid .class-stat-card strong {
  font-size: clamp(1.45rem, 1.8vw, 2rem);
}

.report-panel {
  gap: 9px;
  padding: 10px 12px;
  container-type: inline-size;
}

.report-panel > .section-heading {
  min-height: 0;
  margin-bottom: 0;
}

.report-panel > .section-heading h2 {
  font-size: 1rem;
}

.export-panel .report-export-button {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 0.76rem;
  line-height: 1.05;
}

.export-panel .report-export-button {
  width: auto;
  min-width: 168px;
  justify-self: end;
  align-self: end;
  border-radius: var(--pg-radius-pill);
}

.report-export-grid {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.08fr) minmax(220px, 0.8fr);
  gap: 8px;
}

.report-export-grid fieldset {
  gap: 5px;
  padding: 8px 10px 9px;
}

.report-export-grid legend {
  font-size: 0.62rem;
}

.check-option,
.select-option {
  gap: 6px;
  font-size: 0.74rem;
  line-height: 1.08;
}

.check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.export-panel .select-option select {
  min-height: 34px;
}

.export-panel .report-export-grid fieldset:last-child {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.export-panel .report-export-grid fieldset:last-child legend {
  grid-column: 1 / -1;
}

.report-activity-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.report-activity-card {
  gap: 4px;
  min-height: 58px;
  padding: 8px 10px;
}

.report-activity-card span,
.report-activity-card small {
  font-size: 0.6rem;
  line-height: 1.08;
}

.report-activity-card strong {
  font-size: 1rem;
}

.report-student-table .report-edit-row {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0 6px 8px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

@container (min-width: 981px) {
  .report-student-table .grid-row {
    grid-template-columns: minmax(142px, 1.08fr) minmax(76px, 0.54fr) minmax(62px, 0.38fr) minmax(58px, 0.36fr) minmax(70px, 0.44fr) minmax(74px, 0.46fr) minmax(74px, 0.46fr) minmax(152px, 0.78fr);
    min-width: 880px;
  }
}

.report-score-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 148px;
}

.report-score-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.report-square-action {
  --action-tone: var(--pg-violet);
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: color-mix(in srgb, var(--action-tone) 16%, var(--surface));
  color: var(--ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 68%, transparent);
  cursor: pointer;
  line-height: 1;
  transition: transform 160ms var(--pg-bounce), box-shadow 160ms ease, background 160ms ease;
}

.report-square-action:hover,
.report-square-action:focus-visible,
.report-square-action.active {
  background: color-mix(in srgb, var(--action-tone) 28%, var(--surface));
  transform: translate(-1px, -1px);
}

.report-square-action:active {
  box-shadow: 1px 1px 0 color-mix(in srgb, var(--pg-shadow-color) 70%, transparent);
  transform: translate(1px, 1px);
}

.report-square-action.copied {
  animation: copy-button-pop 540ms var(--pg-bounce);
  background: color-mix(in srgb, var(--pg-green) 72%, var(--surface));
  color: var(--pg-on-candy);
  transform: scale(1.16);
}

.report-square-action.copied::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--pg-border);
  border-radius: var(--pg-radius-pill);
  background: var(--pg-green);
  box-shadow: 1px 1px 0 var(--pg-shadow-color);
}

.report-square-action.copied::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 1;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--pg-on-candy);
  border-bottom: 2px solid var(--pg-on-candy);
  transform: rotate(-45deg);
}

.report-square-action.copy {
  --action-tone: var(--pg-blue);
}

.report-square-action.stats {
  --action-tone: var(--pg-green);
}

.report-square-action.correction {
  --action-tone: var(--pg-violet);
  background: color-mix(in srgb, var(--pg-violet) 70%, var(--surface));
  color: #ffffff;
}

.report-square-action.correction.active::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--pg-border);
  border-radius: 3px;
  background: var(--pg-yellow);
  box-shadow: 1px 1px 0 var(--pg-shadow-color);
}

.report-square-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-square-action.copy,
.report-square-action.stats {
  color: var(--pg-on-candy);
}

.report-square-action.copy {
  background: color-mix(in srgb, var(--pg-blue) 72%, var(--surface));
}

.report-square-action.stats {
  background: color-mix(in srgb, var(--pg-green) 74%, var(--surface));
}

.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pg-green) 22%, transparent), transparent 54%),
    var(--surface);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--pg-shadow-color);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transition: opacity 180ms ease, transform 220ms var(--pg-bounce);
}

.copy-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes copy-button-pop {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.22) rotate(-2deg);
  }
  100% {
    transform: scale(1.16);
  }
}

.report-edit-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pg-violet) 10%, transparent), transparent 42%),
    var(--surface-2);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--pg-shadow-color) 72%, transparent);
}

.report-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-score-editor-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.report-score-editor-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: var(--pg-border-width) solid color-mix(in srgb, var(--pg-border) 74%, var(--pg-border-soft));
  border-radius: var(--pg-radius-card);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pg-blue) 4%, transparent), transparent),
    color-mix(in srgb, var(--surface) 84%, var(--surface-2));
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 54%, transparent);
}

.report-score-editor-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-bottom: 2px;
}

.report-score-editor-label strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1;
}

.report-score-editor-label span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1.15;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-session-edit-grid,
.report-presence-edit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-filler-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.report-edit-field,
.field-control.compact-select {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.report-edit-field span,
.field-control.compact-select span,
.report-edit-stepper > span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.report-edit-field select,
.field-control.compact-select select {
  width: 100%;
  min-height: 34px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 62%, transparent);
}

.report-edit-stepper {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: var(--pg-border-width) solid color-mix(in srgb, var(--pg-border) 74%, var(--pg-border-soft));
  border-radius: var(--pg-radius-card);
  background: var(--surface);
}

.nevermet-control-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.nevermet-control-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: var(--pg-border-width) solid var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: var(--module-gradient), var(--surface);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--pg-shadow-color) 70%, transparent);
}

.nevermet-control-card .section-heading {
  margin-bottom: 0;
}

.nevermet-pool-list {
  display: grid;
  gap: 7px;
  max-height: 172px;
  overflow: auto;
  padding-right: 2px;
}

.nevermet-pool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: var(--pg-border-width) solid color-mix(in srgb, var(--pg-border) 70%, var(--pg-border-soft));
  border-radius: var(--pg-radius-card);
  background: color-mix(in srgb, var(--surface-2) 78%, var(--surface));
}

.nevermet-pool-row .student-meta {
  min-width: 0;
}

.nevermet-pool-row .student-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nevermet-pool-row .status-pill {
  flex: 0 0 auto;
}

.nevermet-pool-empty {
  min-height: 46px;
  margin: 0;
  padding: 9px 10px;
  border: var(--pg-border-width) dashed color-mix(in srgb, var(--pg-border) 50%, transparent);
  border-radius: var(--pg-radius-card);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  font-weight: 720;
  line-height: 1.25;
}

.nevermet-manual-pair-panel {
  align-content: start;
}

.nevermet-manual-pair-panel .secondary-button {
  width: 100%;
  justify-content: center;
}

.skip-student-button {
  width: 100%;
  justify-content: center;
  min-height: 32px;
  margin-top: 2px;
}

.screen-active :is(.program-card, .tf-program-monitor, .timer-card, .tf-instrument, .presence-console-card, .operator-queue) {
  border-width: var(--pg-border-width);
  border-color: var(--pg-border);
  border-radius: var(--pg-radius-card);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--pg-shadow-color) 74%, transparent);
}

.screen-active :is(.timer-actions, .flow-actions, .timer-turn-nav) {
  border-width: var(--pg-border-width);
  border-color: color-mix(in srgb, var(--pg-border) 86%, var(--pg-border-soft));
  border-radius: var(--pg-radius-card);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--pg-shadow-color) 64%, transparent);
}

.screen-active :is(.timer-actions > button, .flow-actions > button, .timer-turn-nav .review-nav > button) {
  border-width: var(--pg-border-width);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 70%, transparent);
}

@container (max-width: 980px) {
  .report-student-table .report-student-row > .report-score-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
  }

  .report-student-table .report-student-row > .report-score-actions::before {
    margin-right: auto;
  }

  .report-student-table .report-square-action {
    width: 36px;
    height: 36px;
  }

  .report-student-table .report-square-action svg {
    width: 17px;
    height: 17px;
  }
}

/* Session reports should always stay in row-table form; narrow panes scroll sideways. */
.report-student-table {
  overflow-x: auto !important;
  overflow-y: visible;
}

.report-student-table .grid-row {
  grid-template-columns: minmax(150px, 1.16fr) minmax(52px, 0.34fr) minmax(54px, 0.34fr) minmax(54px, 0.34fr) minmax(54px, 0.34fr) minmax(58px, 0.36fr) minmax(58px, 0.36fr) minmax(142px, 0.72fr) !important;
  min-width: 760px !important;
  gap: 5px;
  align-items: center;
  padding: 4px 6px;
}

.presentation-report .presentation-score-table .grid-row {
  grid-template-columns: minmax(220px, 1.25fr) minmax(112px, 0.72fr) minmax(72px, 0.45fr) minmax(82px, 0.5fr) minmax(150px, 0.9fr) minmax(116px, 0.62fr) minmax(126px, 0.68fr) !important;
  min-width: 980px !important;
}

.presentation-report .presentation-participation-table .grid-row {
  grid-template-columns: minmax(220px, 1.35fr) minmax(110px, 0.65fr) minmax(120px, 0.72fr) minmax(120px, 0.72fr) minmax(140px, 0.8fr) minmax(92px, 0.46fr) !important;
  min-width: 900px !important;
}

.report-student-table .table-header {
  display: grid !important;
}

.report-student-table .table-header > [role="columnheader"] {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.58rem;
  letter-spacing: 0.025em;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.report-student-table .report-student-row > [role="cell"],
.report-student-table .table-header > [role="columnheader"] {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.report-student-table .report-student-row > [role="cell"]::before,
.report-student-table .report-score-cell::before,
.report-student-table .report-score-actions::before {
  display: none !important;
  content: none !important;
}

.report-student-table .report-student-row > [role="cell"]:first-child,
.report-student-table .report-score-cell {
  grid-column: auto !important;
}

.report-student-table .report-score-cell {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  min-height: auto !important;
  border-color: transparent !important;
}

.report-student-table .report-score-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-height: auto !important;
  padding: 0 !important;
}

.report-student-table .status-pill[data-short-label] {
  min-width: 22px;
  min-height: 16px;
  max-width: 100%;
  padding: 1px 4px;
  font-size: 0.54rem;
  line-height: 1;
}

.report-student-table .status-pill[data-short-label] .status-label {
  display: none;
}

.report-student-table .status-pill[data-short-label]::after {
  content: attr(data-short-label);
}

/* Report mode should use the whole work area; the hidden live roster must not reserve a column. */
.screen-active.screen-report .workspace {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.screen-active.screen-report .content-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: stretch;
}

.screen-active.screen-report .main-column,
.screen-active.screen-report .main-panel,
.screen-active.screen-report .session-report,
.screen-active.screen-report .report-panel,
.screen-active.screen-report .report-student-table {
  width: 100%;
  max-width: none;
}

.screen-active.screen-report .side-panel {
  display: none !important;
}

/* Dense student rows need a stronger scanning rhythm in both report and discussion views. */
.screen-active :is(.discussion-grid.operator-table .discussion-row, .report-student-table .report-student-row) {
  --scan-row-accent: var(--pg-blue);
  --scan-row-bg: color-mix(in srgb, var(--scan-row-accent) 7%, var(--surface));
  --scan-row-wash: color-mix(in srgb, var(--scan-row-accent) 12%, transparent);
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--pg-border) 82%, var(--scan-row-accent)) !important;
  border-left-width: 5px !important;
  border-left-color: var(--scan-row-accent) !important;
  background:
    linear-gradient(90deg, var(--scan-row-wash), transparent 34%),
    var(--scan-row-bg) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.5),
    0 1px 0 color-mix(in srgb, var(--pg-border) 34%, transparent);
}

.screen-active :is(.discussion-grid.operator-table .discussion-row, .report-student-table .report-student-row):nth-child(4n+2) {
  --scan-row-accent: var(--pg-blue);
}

.screen-active :is(.discussion-grid.operator-table .discussion-row, .report-student-table .report-student-row):nth-child(4n+3) {
  --scan-row-accent: var(--pg-green);
}

.screen-active :is(.discussion-grid.operator-table .discussion-row, .report-student-table .report-student-row):nth-child(4n+4) {
  --scan-row-accent: var(--pg-violet);
}

.screen-active :is(.discussion-grid.operator-table .discussion-row, .report-student-table .report-student-row):nth-child(4n+5) {
  --scan-row-accent: var(--pg-yellow);
}

.screen-active :is(.discussion-grid.operator-table .discussion-row, .report-student-table .report-student-row):hover,
.screen-active :is(.discussion-grid.operator-table .discussion-row, .report-student-table .report-student-row):focus-within {
  --scan-row-bg: color-mix(in srgb, var(--scan-row-accent) 14%, var(--surface));
  --scan-row-wash: color-mix(in srgb, var(--scan-row-accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--scan-row-accent) 70%, var(--pg-border)) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.62),
    0 0 0 1px color-mix(in srgb, var(--scan-row-accent) 24%, transparent);
}

.screen-active .discussion-grid.operator-table .discussion-row.expanded {
  --scan-row-accent: var(--pg-green);
  --scan-row-bg: color-mix(in srgb, var(--pg-green) 13%, var(--surface));
}

.screen-active.screen-report .report-student-table .report-student-row {
  --scan-row-accent: color-mix(in srgb, var(--pg-border) 74%, var(--ink-muted));
  --scan-row-bg: color-mix(in srgb, var(--surface) 94%, var(--ink) 6%);
  --scan-row-wash: transparent;
  border-color: color-mix(in srgb, var(--pg-border) 88%, transparent) !important;
  border-left-color: color-mix(in srgb, var(--pg-border) 88%, var(--ink-muted)) !important;
  background: var(--scan-row-bg) !important;
}

.screen-active.screen-report .report-student-table .report-student-row:hover,
.screen-active.screen-report .report-student-table .report-student-row:focus-within {
  --scan-row-bg: color-mix(in srgb, var(--surface) 88%, var(--ink) 12%);
  border-color: color-mix(in srgb, var(--pg-border) 70%, var(--ink-muted)) !important;
  background: var(--scan-row-bg) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .nav-button:hover,
.article-card:hover,
.project-card:hover,
.session-card:hover,
.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.danger-button:hover:not(:disabled),
.small-button:hover:not(:disabled),
.rating-button:hover:not(:disabled),
.filler-button:hover:not(:disabled),
.stepper-button:hover:not(:disabled),
.participation-toggle:hover:not(:disabled),
.presence-disclosure:hover:not(:disabled),
.system-button:hover:not(:disabled),
.home-button:hover,
.icon-button:hover,
.report-square-action:hover,
.report-square-action.copied {
    transform: none;
  }
}

@media (max-width: 980px) {
  .roster-settings-layout {
    grid-template-columns: 1fr;
  }

  .roster-settings-title-actions {
    align-items: stretch;
  }

  .roster-add-toggle {
    min-width: 0;
  }

  .report-edit-grid,
.report-presence-edit-grid,
.report-filler-edit-grid,
.nevermet-control-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --pg-shadow-sm: 2px 2px 0 var(--pg-shadow-color);
    --pg-shadow-md: 3px 3px 0 var(--pg-shadow-color);
    --pg-shadow-lg: 4px 4px 0 var(--pg-shadow-color);
    --pg-shadow-soft: 3px 3px 0 #dbe5f0;
  }

  .screen-cloud-auth .app-shell,
.screen-cloud-loading .app-shell {
    grid-template-columns: 1fr;
  }

  .screen-launcher .workspace,
.screen-class-home .workspace,
.screen-cloud-auth .workspace {
    padding-inline: 12px;
  }

  .screen-cloud-auth .cloud-auth-shell {
    justify-items: stretch;
    min-height: min(640px, calc(100dvh - var(--studio-bar-height) - 64px));
  }

  .screen-cloud-auth .cloud-auth-panel {
    justify-self: stretch;
    width: 100%;
  }

  .cloud-auth-form > .primary-button,
.cloud-auth-oauth > button,
.cloud-auth-actions > button {
    width: 100%;
  }

  .cloud-auth-oauth > .cloud-oauth-button {
    flex-basis: 54px;
    width: 54px;
  }

  .cloud-auth-later-actions > button {
    width: auto;
  }

  .screen-launcher .main-panel,
.screen-class-home .main-panel,
.launcher.library-manager,
.library-toolbar,
.project-section,
.file-manager-list,
.empty-state,
.archive-drawer {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .library-toolbar .command-cluster {
    width: 100%;
  }

  .library-toolbar .command-cluster > button {
    flex: 1 1 0;
    min-width: 0;
  }

  .left-rail,
.studio-bar,
.top-bar,
.setup-strip,
.main-panel,
.side-panel,
.log-panel,
.library-toolbar,
.cloud-auth-panel,
.cloud-account-panel,
.cloud-beta-panel,
.preflight-panel,
.report-panel,
.roster-import-panel,
.settings-card,
.settings-stat-card,
.class-file-row,
.session-file-row,
.class-stat-card,
.new-session-card,
.speaker-card,
.timer-card,
.presence-card,
.filler-card,
.tf-program-monitor,
.tf-instrument,
.speaker-tracking-card,
.article-card,
.project-card,
.session-card,
.progress-card,
.app-modal {
    box-shadow: var(--pg-shadow-sm);
  }
}

.screen-active .session-log:not(.event-timeline) {
  max-height: none;
  overflow: visible;
}

.screen-active .session-log:has(.session-ticker[open]),
.screen-active .session-ticker-expanded {
  max-height: none;
  overflow: visible;
}

.extra-credit-student-option input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
}

.screen-active.screen-report .report-workbench {
  gap: 12px;
}

.screen-active.screen-report .report-workbench-grid {
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.screen-active.screen-report .report-workbench-side {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-items: start;
  position: static;
  top: auto;
  align-self: start;
  max-height: none;
  overflow: visible;
}

.screen-active.screen-report .report-command-bar {
  gap: 10px;
  padding: 12px;
}

.screen-active.screen-report .report-command-main {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.screen-active.screen-report .report-command-title h2 {
  font-size: 1.02rem;
}

.screen-active.screen-report .report-command-title span {
  font-size: 0.72rem;
}

.screen-active.screen-report .report-command-stats {
  gap: 6px;
}

.screen-active.screen-report .report-command-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.screen-active.screen-report .report-command-stat {
  min-width: 68px;
  padding: 6px 8px;
  border-width: var(--pg-border-width);
  border-color: var(--pg-border);
  border-radius: var(--pg-radius-card);
  background: color-mix(in srgb, var(--pg-blue) 8%, var(--surface));
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 54%, transparent);
}

.screen-active.screen-report .report-command-actions {
  gap: 7px;
}

.screen-active.screen-report .report-command-actions button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.76rem;
}

.screen-active.screen-report .report-workbench-main .session-score-table .grid-row:not(.report-edit-row) {
  grid-template-columns: minmax(154px, 1fr) 58px minmax(46px, 0.28fr) !important;
  min-width: 0 !important;
  gap: 8px;
  padding: 4px 6px;
}

.screen-active.screen-report .report-workbench-main .session-score-table .table-header > [role="columnheader"]:nth-child(2) {
  text-align: center;
}

.screen-active.screen-report .report-workbench-main .session-score-table .table-header > [role="columnheader"]:nth-child(3) {
  padding-right: 2px !important;
  text-align: right;
}

.screen-active.screen-report .report-workbench-side .extra-credit-report-table .grid-row:not(.report-edit-row) {
  grid-template-columns: minmax(150px, 1fr) minmax(54px, 0.34fr) minmax(54px, 0.34fr) minmax(66px, 0.42fr) minmax(82px, 0.5fr) minmax(70px, 0.42fr) minmax(126px, 0.76fr) minmax(116px, 0.62fr) !important;
  min-width: 760px !important;
}

.screen-active.screen-report .report-workbench-side .presentation-score-table .grid-row:not(.report-edit-row) {
  grid-template-columns: minmax(150px, 1fr) minmax(78px, 0.45fr) minmax(54px, 0.32fr) minmax(64px, 0.36fr) minmax(96px, 0.56fr) minmax(86px, 0.44fr) minmax(62px, 0.34fr) !important;
  min-width: 720px !important;
}

.screen-active.screen-report .report-workbench-main .session-score-table .report-edit-row {
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0 !important;
}

.screen-active.screen-report .report-student-identity-cell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-width: 0;
}

.screen-active.screen-report .report-student-select {
  border-radius: 4px;
  color: inherit;
}

.screen-active.screen-report .report-student-select .student-meta {
  gap: 1px;
}

.screen-active.screen-report .report-score-list-student,
body.screen-report .report-score-list-student {
  gap: 0;
}

.screen-active.screen-report .report-score-list-student .student-name,
body.screen-report .report-score-list-student .student-name {
  line-height: 1.05;
}

.screen-active.screen-report .report-inline-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.screen-active.screen-report .report-copy-cell {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.screen-active.screen-report .report-inline-actions .report-square-action {
  width: 24px;
  height: 24px;
}

.screen-active.screen-report .report-inline-actions .report-square-action svg {
  width: 13px;
  height: 13px;
}

.screen-active.screen-report .report-workbench-main .session-score-table .report-score-cell {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: end !important;
  gap: 2px;
  min-width: 0 !important;
  text-align: right;
}

.screen-active.screen-report .report-workbench-main .session-score-table .report-score-cell .report-cell-note {
  margin-top: 0;
  color: color-mix(in srgb, var(--ink-muted) 72%, transparent);
}

.screen-active.screen-report .report-workbench-main .report-student-row.selected {
  --scan-row-accent: var(--pg-red);
  --scan-row-bg: color-mix(in srgb, var(--pg-red) 16%, var(--surface));
  --scan-row-wash: color-mix(in srgb, var(--pg-red) 22%, transparent);
  border-color: color-mix(in srgb, var(--pg-red) 74%, var(--pg-border)) !important;
  border-left-color: var(--pg-red) !important;
  background:
    linear-gradient(90deg, var(--scan-row-wash), transparent 38%),
    var(--scan-row-bg) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 2px color-mix(in srgb, var(--pg-red) 20%, transparent);
}

.screen-active.screen-report .report-student-inspector {
  gap: 9px;
  padding: 12px;
  max-height: none;
  overflow: visible;
  border-color: color-mix(in srgb, var(--pg-green) 38%, var(--pg-border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pg-green) 9%, transparent), transparent 46%),
    var(--module-gradient),
    var(--surface);
}

.screen-active.screen-report .report-inspector-header {
  gap: 9px;
  align-items: center;
}

.screen-active.screen-report .report-inspector-student {
  gap: 4px;
}

.screen-active.screen-report .report-inspector-name-line {
  gap: 8px;
}

.screen-active.screen-report .report-inspector-status-badge {
  width: 1.45em;
  height: 1.45em;
  border-width: var(--pg-border-width);
  border-color: color-mix(in srgb, var(--pg-green) 76%, var(--pg-border));
  background: var(--pg-green);
  color: var(--pg-on-candy);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    2px 2px 0 color-mix(in srgb, var(--pg-shadow-color) 64%, transparent);
}

.screen-active.screen-report .report-inspector-status-badge.late {
  border-color: color-mix(in srgb, var(--pg-blue) 74%, var(--pg-border));
  background: var(--pg-blue);
}

.screen-active.screen-report .report-inspector-status-badge.left,
.screen-active.screen-report .report-inspector-status-badge.absent,
.screen-active.screen-report .report-inspector-status-badge.notSeen {
  border-color: color-mix(in srgb, var(--pg-yellow) 72%, var(--pg-border));
  background: var(--pg-yellow);
}

.screen-active.screen-report .report-inspector-score {
  min-width: 82px;
}

.screen-active.screen-report .report-inspector-score strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 1.7vw, 1.82rem);
}

.screen-active.screen-report .report-inspector-actions {
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  justify-content: center;
  gap: 7px;
}

.screen-active.screen-report .report-inspector-actions button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.74rem;
  line-height: 1.08;
}

.screen-active.screen-report .report-breakdown-grid {
  gap: 0;
  border-top: var(--pg-border-width) solid color-mix(in srgb, var(--pg-border) 78%, transparent);
  border-bottom: var(--pg-border-width) solid color-mix(in srgb, var(--pg-border) 78%, transparent);
}

.screen-active.screen-report .report-breakdown-row {
  grid-template-columns: minmax(74px, 0.5fr) minmax(58px, 0.34fr) minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom-color: color-mix(in srgb, var(--pg-border) 58%, transparent);
}

.screen-active.screen-report .report-breakdown-row strong {
  font-size: 0.8rem;
}

.screen-active.screen-report .report-breakdown-row small {
  font-size: 0.7rem;
}

.screen-active.screen-report .report-inspector-corrections .report-edit-panel {
  gap: 7px;
}

.screen-active.screen-report .report-inspector-corrections .report-score-editor-stack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.screen-active.screen-report .report-inspector-corrections .report-score-editor-group {
  min-height: 0;
  padding: 9px;
}

.screen-active.screen-report .report-inspector-corrections .report-score-editor-group:nth-child(3) {
  grid-column: auto;
}

.screen-active.screen-report .report-inspector-corrections .report-session-edit-grid,
.screen-active.screen-report .report-inspector-corrections .report-presence-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.screen-active.screen-report .report-inspector-corrections .report-filler-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.screen-active.screen-report .report-inspector-corrections .report-edit-field select {
  min-height: 34px;
  padding-block: 5px;
}

.screen-active.screen-report .report-inspector-corrections .compact-filler {
  grid-template-columns: 38px minmax(58px, 1fr) 38px;
}

.screen-active.screen-report .report-inspector-corrections .filler-total {
  min-height: 46px;
}

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

  .screen-active.screen-report .report-workbench-side,
.screen-active.screen-report .report-student-inspector {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1380px) {
  .screen-active.screen-report .report-inspector-corrections .report-score-editor-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .screen-active.screen-report .report-command-main,
.screen-active.screen-report .report-inspector-header {
    grid-template-columns: 1fr;
  }

  .screen-active.screen-report .report-command-stats {
    justify-content: flex-start;
  }

  .screen-active.screen-report .report-command-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .screen-active.screen-report .report-session-edit-grid,
.screen-active.screen-report .report-presence-edit-grid,
.screen-active.screen-report .report-filler-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-active.screen-report .report-inspector-corrections .report-score-editor-stack {
    grid-template-columns: 1fr;
  }

  .screen-active.screen-report .report-inspector-corrections .report-score-editor-group:nth-child(3) {
    grid-column: auto;
  }

  .screen-active.screen-report .report-score-editor-label {
    display: grid;
    justify-content: stretch;
  }

  .screen-active.screen-report .report-score-editor-label span {
    text-align: left;
    white-space: normal;
  }

  .screen-active.screen-report .report-command-actions,
.screen-active.screen-report .report-inspector-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/*
  2026 production-console pass.
  This section intentionally overrides the earlier playful geometric skin while
  keeping every existing class,
id,
and data hook intact.
*/

:root {
  --console-black: #07090c;
  --console-ink: #f5f7fb;
  --console-ink-soft: #c8d0dc;
  --console-muted: #8c97a8;
  --console-panel: #11151c;
  --console-panel-2: #171c25;
  --console-panel-3: #202632;
  --console-rail: #0b0e13;
  --console-line: #2a3140;
  --console-line-bright: #3c4658;
  --console-green: #38d27d;
  --console-cyan: #35d6ff;
  --console-blue: #5aa8ff;
  --console-amber: #ffbf4d;
  --console-red: #ff5d5d;
  --console-magenta: #d36bff;
  --console-radius: 8px;
  --console-radius-tight: 6px;
  --console-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
  --console-shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
  --console-inset: inset 0 1px rgba(255, 255, 255, 0.09), inset 0 -1px rgba(0, 0, 0, 0.52);
  --console-control-shadow: var(--console-inset), 0 1px 1px rgba(0, 0, 0, 0.34), 0 8px 18px rgba(0, 0, 0, 0.16);
  --active-accent: var(--console-cyan);
}

body[data-activity="wins"] { --active-accent: var(--console-green); }
body[data-activity="discussion"] { --active-accent: var(--console-blue); }
body[data-activity="thinkFast"] { --active-accent: var(--console-amber); }
body[data-activity="neverMet"] { --active-accent: var(--console-magenta); }
body[data-activity="extraCredit"] { --active-accent: var(--console-cyan); }
body[data-activity="presentations"] { --active-accent: var(--console-cyan); }
body[data-activity="takeaways"] { --active-accent: var(--console-green); }

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 220px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 28px),
    var(--bg);
  color: var(--ink);
}

body::before {
  background:
    linear-gradient(90deg, rgba(56, 210, 125, 0.09), transparent 18%, transparent 76%, rgba(53, 214, 255, 0.075)),
    linear-gradient(180deg, transparent 0 72%, rgba(0, 0, 0, 0.18));
}

body::after {
  content: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--console-magenta) 56%, var(--line));
  border-radius: var(--console-radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--console-magenta) 22%, transparent), transparent),
    color-mix(in srgb, var(--surface) 88%, black);
  color: var(--ink);
  padding: 0 16px;
  box-shadow: var(--console-shadow);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.2, .9, .2, 1);
}

body.rostra-afterhours::after {
  content: "ROSTRA AFTER HOURS";
  opacity: 1;
  transform: translateY(0) scale(1);
}

.screen-cloud-auth #homeButton,
.screen-cloud-auth #saveStatus,
.screen-cloud-auth #openDisplayButton,
.screen-cloud-auth #saveStateButton,
.screen-cloud-auth #cloudAccountMenu {
  display: none !important;
}

.studio-bar,
.console-chrome {
  border-bottom: 1px solid color-mix(in srgb, var(--active-accent) 26%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 16%, transparent), transparent 42%, rgba(255, 255, 255, 0.045)),
    linear-gradient(180deg, color-mix(in srgb, var(--nav-2) 96%, transparent), var(--nav));
  box-shadow: var(--console-inset), 0 12px 34px rgba(0, 0, 0, 0.32);
}

.studio-bar::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--active-accent) 84%, white), transparent);
  opacity: 0.74;
}

.timer-running .studio-bar::after {
  animation: rostra-scan 1.9s linear infinite;
}

.tally-light {
  border: 1px solid color-mix(in srgb, var(--active-accent) 54%, #ffffff);
  background: var(--active-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--active-accent) 16%, transparent), 0 0 20px color-mix(in srgb, var(--active-accent) 62%, transparent);
}

.timer-running .tally-light {
  animation: rostra-tally 1.2s ease-in-out infinite;
}

.studio-label,
.brand-name,
.activity-title h1,
.section-heading h2,
.library-title-block h1,
.class-dashboard-title h1 {
  color: var(--ink);
  font-weight: 820;
}

.studio-bar .studio-label,
.studio-bar .studio-mode,
.studio-bar .context-chip,
.studio-bar .save-status {
  color: var(--nav-ink);
}

.studio-mode,
.top-context,
.save-status,
.theme-toggle-switch,
.save-state-button,
.cloud-account-summary,
.studio-bar .home-button,
.studio-bar .icon-button,
.top-icon-actions .icon-button {
  border: 1px solid color-mix(in srgb, var(--active-accent) 24%, rgba(255, 255, 255, 0.16));
  border-radius: var(--console-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(7, 10, 14, 0.62);
  box-shadow: var(--console-control-shadow);
}

.left-rail {
  border-right: 1px solid color-mix(in srgb, var(--active-accent) 18%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nav-2) 78%, transparent), var(--nav)),
    var(--nav);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.045), 10px 0 34px rgba(0, 0, 0, 0.22);
}

.brand-mark {
  border: 1px solid color-mix(in srgb, var(--active-accent) 44%, var(--line));
  border-radius: var(--console-radius-tight);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--active-accent) 34%, #ffffff), color-mix(in srgb, var(--active-accent) 14%, var(--surface-3))),
    var(--surface-3);
  color: #061015;
  box-shadow: var(--console-control-shadow), 0 0 22px color-mix(in srgb, var(--active-accent) 16%, transparent);
  transform: none;
}

.nav-button {
  --nav-accent: var(--active-accent);
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--console-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    color-mix(in srgb, var(--surface-2) 62%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  font-weight: 780;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.nav-button::before {
  background: color-mix(in srgb, var(--nav-accent) 46%, var(--line-strong));
}

.nav-icon {
  border: 1px solid color-mix(in srgb, var(--nav-accent) 34%, var(--line));
  border-radius: var(--console-radius-tight);
  background: color-mix(in srgb, var(--nav-accent) 18%, var(--surface-3));
  box-shadow: var(--console-inset);
  color: var(--ink);
}

.nav-button:hover,
.nav-button.active {
  border-color: color-mix(in srgb, var(--nav-accent) 48%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nav-accent) 15%, transparent), transparent),
    var(--surface-raised);
  box-shadow: var(--console-control-shadow);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-button.active .nav-icon {
  background: var(--nav-accent);
  color: #061015;
}

.top-bar,
.setup-strip,
.main-panel,
.side-panel,
.log-panel,
.library-toolbar,
.cloud-auth-panel,
.cloud-beta-panel,
.preflight-panel,
.report-panel,
.roster-import-panel,
.settings-card,
.settings-stat-card,
.class-file-row,
.session-file-row,
.class-stat-card,
.new-session-card,
.speaker-card,
.timer-card,
.presence-card,
.filler-card,
.tf-program-monitor,
.tf-instrument,
.speaker-tracking-card,
.article-card,
.project-card,
.session-card,
.progress-card,
.report-activity-card,
.report-export-grid fieldset,
.app-modal,
.presentation-rubric-panel,
.presentation-notes-panel,
.presentation-score-preview-card,
.nevermet-control-card {
  border: 1px solid color-mix(in srgb, var(--active-accent) 12%, var(--line));
  border-radius: var(--console-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--surface);
  box-shadow: var(--console-inset), var(--console-shadow-soft);
}

.screen-active .main-panel {
  background: transparent;
  box-shadow: none;
}

.class-file-row::before,
.session-file-row::before,
.article-card::before,
.project-card::before,
.session-card::before,
.new-session-card::before,
.roster-import-card::before,
.settings-card::before,
.settings-stat-card::before,
.class-stat-card::before,
.progress-card::before {
  width: 3px;
  height: auto;
  inset: 10px auto 10px 10px;
  border: 0;
  border-radius: var(--console-radius-tight);
  background: var(--active-accent);
  opacity: 0.86;
  box-shadow: 0 0 18px color-mix(in srgb, var(--active-accent) 38%, transparent);
}

.class-file-row,
.session-file-row,
.presence-row,
.roster-row,
.queue-row,
.log-row,
.grid-row,
.next-three-row {
  border-width: 1px;
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.project-card:hover,
.session-card:hover,
.article-card:hover,
.class-file-row:hover,
.session-file-row:hover,
.roster-row:hover,
.queue-row:hover {
  border-color: color-mix(in srgb, var(--active-accent) 42%, var(--line));
  box-shadow: var(--console-inset), var(--console-shadow);
  transform: translateY(-1px);
}

.activity-kicker,
.console-chip,
.count-pill,
.status-pill,
.shortcut,
.display-status-chip {
  border: 1px solid color-mix(in srgb, var(--active-accent) 18%, var(--line));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    color-mix(in srgb, var(--surface-2) 82%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.075);
  color: var(--ink-soft);
  font-weight: 820;
}

.activity-kicker,
.console-chip.live,
.on-mic-chip {
  border-color: color-mix(in srgb, var(--active-accent) 54%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--active-accent) 22%, rgba(255, 255, 255, 0.06)), color-mix(in srgb, var(--active-accent) 9%, transparent)),
    var(--surface-2);
  color: color-mix(in srgb, var(--active-accent) 72%, var(--ink));
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.filler-button,
.stepper-button,
.participation-toggle,
.presence-disclosure,
.system-button,
input[type="file"]::file-selector-button {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--active-accent) 16%, var(--line));
  border-radius: var(--console-radius);
  box-shadow: var(--console-control-shadow);
  font-weight: 790;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.primary-button,
.go-live-button,
.command-cluster .primary-button,
.timer-actions .primary-button,
.flow-actions .primary-button {
  border-color: color-mix(in srgb, var(--active-accent) 72%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--active-accent) 96%, white), color-mix(in srgb, var(--active-accent) 72%, black)),
    var(--active-accent);
  color: #061015;
}

.secondary-button,
.system-button,
input[type="file"]::file-selector-button {
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  color: var(--ink);
}

.ghost-button,
.small-button,
.rating-button,
.participation-toggle {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--ink-soft);
}

.danger-button {
  border-color: color-mix(in srgb, var(--console-red) 68%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--console-red) 90%, white), color-mix(in srgb, var(--console-red) 72%, black)),
    var(--console-red);
  color: #1b0608;
}

.stepper-button,
.filler-button {
  border-color: color-mix(in srgb, var(--console-amber) 72%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--console-amber) 92%, white), color-mix(in srgb, var(--console-amber) 70%, black)),
    var(--console-amber);
  color: #171007;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.danger-button:hover:not(:disabled),
.small-button:hover:not(:disabled),
.rating-button:hover:not(:disabled),
.filler-button:hover:not(:disabled),
.stepper-button:hover:not(:disabled),
.participation-toggle:hover:not(:disabled),
.presence-disclosure:hover:not(:disabled),
.system-button:hover:not(:disabled),
input[type="file"]::file-selector-button:hover {
  border-color: color-mix(in srgb, var(--active-accent) 54%, var(--line));
  box-shadow: var(--console-inset), 0 12px 28px color-mix(in srgb, var(--active-accent) 12%, rgba(0, 0, 0, 0.24));
  transform: translateY(-1px);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.ghost-button:active:not(:disabled),
.danger-button:active:not(:disabled),
.small-button:active:not(:disabled),
.rating-button:active:not(:disabled),
.filler-button:active:not(:disabled),
.stepper-button:active:not(:disabled),
.participation-toggle:active:not(:disabled),
.presence-disclosure:active:not(:disabled),
.system-button:active:not(:disabled),
input[type="file"]::file-selector-button:active {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.34);
  transform: translateY(1px);
}

.timer-card,
.tf-clock-module .timer-card,
.timer-stack .timer-card,
.presentation-stopwatch-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--active-accent) 32%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--active-accent) 11%, transparent), transparent 42%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px),
    var(--monitor);
  color: var(--monitor-ink);
  box-shadow: var(--console-inset), 0 26px 64px rgba(0, 0, 0, 0.36), 0 0 0 1px color-mix(in srgb, var(--active-accent) 8%, transparent);
}

.timer-card::after,
.tf-program-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, 0.09) 48%, transparent 58%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-80%);
}

.timer-running .timer-card::after,
.timer-running .tf-program-monitor::after {
  animation: rostra-sweep 2.8s ease-in-out infinite;
}

.timer-readout,
.tf-clock-module .timer-readout {
  color: color-mix(in srgb, var(--active-accent) 64%, var(--monitor-ink));
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px color-mix(in srgb, var(--active-accent) 22%, transparent);
}

.timer-readout.warning {
  color: var(--console-amber);
}

.timer-readout.done {
  color: var(--console-red);
}

.speaker-card,
.tf-program-monitor {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active-accent) 14%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--surface);
}

.speaker-card::after,
.tf-program-monitor::before {
  border-color: color-mix(in srgb, var(--active-accent) 62%, transparent);
}

.speaker-name,
.tf-speaker-name {
  color: var(--ink);
  font-weight: 880;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.filler-total {
  border-color: color-mix(in srgb, var(--console-amber) 42%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--console-amber) 12%, transparent), transparent),
    color-mix(in srgb, var(--surface-2) 82%, transparent);
  box-shadow: var(--console-inset);
}

.rating-button.active,
.participation-toggle.active,
.small-button.active {
  border-color: color-mix(in srgb, var(--active-accent) 68%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--active-accent) 86%, white), color-mix(in srgb, var(--active-accent) 64%, black)),
    var(--active-accent);
  color: #061015;
}

.side-panel .roster-drawer {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 94%, transparent)),
    var(--surface);
}

.screen-active .side-panel .roster-drawer > summary {
  border-color: color-mix(in srgb, var(--active-accent) 24%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 10%, transparent), transparent),
    var(--surface-2);
}

.roster-summary-meter {
  border-width: 1px;
  border-radius: var(--console-radius);
  box-shadow: var(--console-control-shadow);
}

.roster-summary-meter.active,
.roster-summary-meter[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--active-accent) 72%, var(--line));
  box-shadow: var(--console-inset), 0 0 0 2px color-mix(in srgb, var(--active-accent) 16%, transparent);
}

.roster-summary-meter.active::before,
.roster-summary-meter[aria-pressed="true"]::before,
.roster-summary-meter.active::after,
.roster-summary-meter[aria-pressed="true"]::after {
  display: none;
}

.roster-row.current-speaker,
.queue-row.current {
  border-color: color-mix(in srgb, var(--active-accent) 68%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 16%, transparent), transparent),
    var(--surface-2);
  box-shadow: var(--console-inset), 0 0 0 2px color-mix(in srgb, var(--active-accent) 12%, transparent);
}

select,
input,
textarea {
  border-radius: var(--console-radius-tight);
  border-color: color-mix(in srgb, var(--active-accent) 10%, var(--line));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--surface-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), inset 0 2px 10px rgba(0, 0, 0, 0.13);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--active-accent) 72%, transparent);
  outline-offset: 3px;
}

.session-ticker {
  border-color: color-mix(in srgb, var(--active-accent) 14%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-accent) 7%, transparent), transparent),
    var(--surface);
}

.session-ticker summary {
  min-height: 50px;
}

.copy-toast {
  border-color: color-mix(in srgb, var(--active-accent) 42%, var(--line));
  border-radius: var(--console-radius);
  background: var(--surface-raised);
  box-shadow: var(--console-shadow);
}

.rostra-icon {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.nav-icon,
.file-glyph,
.kicker-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
}

.nav-icon {
  width: 28px;
  height: 28px;
}

.nav-icon .rostra-icon {
  width: 18px;
  height: 18px;
}

.file-glyph {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.file-glyph .rostra-icon {
  width: 25px;
  height: 25px;
}

.roster-import-compact .file-glyph {
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--active-accent) 34%, var(--line));
  border-radius: var(--console-radius-tight);
  background: color-mix(in srgb, var(--active-accent) 11%, var(--surface-2));
  color: color-mix(in srgb, var(--active-accent) 72%, var(--ink));
  box-shadow: var(--console-inset);
}

.roster-import-compact .file-glyph .rostra-icon {
  width: 21px;
  height: 21px;
}

.activity-kicker.progress-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kicker-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.kicker-icon .rostra-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

@keyframes rostra-scan {
  0% { opacity: 0.28; transform: translateX(-24%); }
  45% { opacity: 0.9; }
  100% { opacity: 0.28; transform: translateX(24%); }
}

.class-context-grid {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.template-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.template-preview-card {
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--active-accent));
  border-radius: var(--console-radius-tight);
  background: color-mix(in srgb, var(--surface-2) 88%, var(--active-accent) 12%);
  padding: 12px;
}

.template-preview-card.planning-underfilled {
  border-color: color-mix(in srgb, #5ab8ff 50%, var(--line));
}

.template-preview-card.planning-caution {
  border-color: color-mix(in srgb, #f4b95a 60%, var(--line));
}

.template-preview-card.planning-overbooked {
  border-color: color-mix(in srgb, #ef6b6b 65%, var(--line));
}

.template-preview-card p {
  margin: 8px 0 0;
}

@keyframes rostra-tally {
  0%,
100% { filter: brightness(0.9); transform: scale(1); }
  50% { filter: brightness(1.26); transform: scale(1.08); }
}

@keyframes rostra-sweep {
  0% { opacity: 0; transform: translateX(-90%); }
  24% { opacity: 0.68; }
  58%,
100% { opacity: 0; transform: translateX(90%); }
}

@media (prefers-reduced-motion: reduce) {
  .timer-running .studio-bar::after,
.timer-running .tally-light,
.timer-running .timer-card::after,
.timer-running .tf-program-monitor::after,
.cloud-loading-dot {
    animation: none;
  }

  body::after,
.nav-button,
.project-card,
.session-card,
.article-card,
.class-file-row,
.session-file-row,
.roster-row,
.queue-row,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.rating-button,
.filler-button,
.stepper-button,
.participation-toggle,
.presence-disclosure,
.system-button {
    transition: none;
  }
}


/* ===== merged: styles-warm-signal-console.css ===== */
/*
  Warm Signal Console
  Default Rostra theme layer. Loaded last so it can standardize the app-wide
  visual language without changing the existing render or behavior contract.
*/

:root {
  color-scheme: light;

  --studio-bar-height: 64px;
  --rail-width: 224px;
  --content-max: 1640px;

  --rostra-canvas: #ffffff;
  --rostra-surface: #f5f5f5;
  --rostra-surface-raised: #ffffff;
  --rostra-surface-inset: #f8f9fa;
  --rostra-surface-control: #ffffff;
  --rostra-surface-selected: #f3f4f6;
  --rostra-text-primary: #111111;
  --rostra-text-secondary: #374151;
  --rostra-text-muted: #6b7280;
  --rostra-border: #e5e7eb;
  --rostra-border-strong: #d1d5db;
  --rostra-accent: #111111;
  --rostra-accent-muted: #f3f4f6;
  --rostra-success: #10b981;
  --rostra-warning: #f59e0b;
  --rostra-danger: #ef4444;
  --rostra-focus: #2563eb;
  --rostra-font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --rostra-font-display: "Avenir Next Condensed", "DIN Alternate", "Bahnschrift SemiCondensed", "Arial Narrow", "Avenir Next", "Segoe UI", sans-serif;
  --rostra-font-label: "Andale Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", "Courier New", ui-monospace, monospace;
  --rostra-font-mono: "Andale Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", "Courier New", ui-monospace, monospace;
  --rostra-font-numeric: var(--rostra-font-mono);
  --rostra-radius-none: 0;
  --rostra-radius-xs: 4px;
  --rostra-radius-sm: 6px;
  --rostra-radius-md: 8px;
  --rostra-radius-lg: 12px;
  --rostra-radius-xl: 16px;
  --rostra-radius-pill: 999px;
  --rostra-shadow-none: none;
  --rostra-shadow-xs: 0 1px 2px rgba(17, 17, 17, 0.05);
  --rostra-shadow-sm: 0 4px 12px rgba(17, 17, 17, 0.08);
  --rostra-shadow-md: 0 12px 28px rgba(17, 17, 17, 0.10);
  --rostra-motion-fast: 120ms;
  --rostra-motion-base: 180ms;
  --rostra-motion-easing: cubic-bezier(.2, 0, 0, 1);

  --font-sans: var(--rostra-font-sans);
  --font-display: var(--rostra-font-display);
  --font-label: var(--rostra-font-label);
  --font-mono: var(--rostra-font-mono);
  --font-numeric: var(--rostra-font-numeric);

  --radius-xs: var(--rostra-radius-xs);
  --radius-sm: var(--rostra-radius-sm);
  --radius-md: var(--rostra-radius-md);
  --radius-lg: var(--rostra-radius-lg);
  --radius-xl: var(--rostra-radius-xl);
  --radius-2xl: var(--rostra-radius-xl);
  --radius-pill: var(--rostra-radius-pill);

  --motion-fast: var(--rostra-motion-fast);
  --motion-standard: var(--rostra-motion-base);
  --motion-panel: calc(var(--rostra-motion-base) + 80ms);
  --ease-standard: var(--rostra-motion-easing);
  --ease-press: var(--rostra-motion-easing);

  --bg: var(--rostra-canvas);
  --bg-soft: var(--rostra-surface-inset);
  --surface: var(--rostra-surface);
  --surface-2: var(--rostra-surface-inset);
  --surface-3: var(--rostra-surface-control);
  --surface-warm: var(--rostra-surface-selected);
  --surface-raised: var(--rostra-surface-raised);
  --elevated: var(--rostra-surface-raised);

  --ink: var(--rostra-text-primary);
  --ink-soft: var(--rostra-text-secondary);
  --ink-muted: var(--rostra-text-muted);
  --ink-subtle: var(--rostra-text-muted);
  --line: var(--rostra-border);
  --line-strong: var(--rostra-border-strong);
  --line-hot: color-mix(in srgb, var(--rostra-accent) 40%, var(--rostra-border));

  --accent: var(--rostra-accent);
  --accent-strong: var(--rostra-accent);
  --accent-soft: var(--rostra-accent-muted);
  --accent-warm: var(--rostra-warning);
  --blue: var(--rostra-focus);
  --blue-soft: var(--rostra-accent-muted);
  --amber: var(--rostra-warning);
  --amber-soft: var(--rostra-accent-muted);
  --coral: var(--rostra-danger);
  --coral-soft: var(--rostra-accent-muted);
  --red: var(--rostra-danger);
  --green: var(--rostra-success);
  --green-soft: var(--rostra-accent-muted);
  --cyan: var(--rostra-accent);
  --magenta: color-mix(in srgb, var(--rostra-focus) 64%, var(--rostra-danger));
  --focus-ring: var(--rostra-focus);

  --nav: color-mix(in srgb, var(--rostra-surface) 86%, transparent);
  --nav-2: color-mix(in srgb, var(--rostra-surface-raised) 82%, transparent);
  --nav-3: var(--rostra-surface-control);
  --nav-ink: var(--ink);
  --nav-muted: var(--ink-muted);

  --monitor: color-mix(in srgb, var(--rostra-canvas) 88%, black);
  --monitor-2: color-mix(in srgb, var(--rostra-surface-inset) 84%, black);
  --monitor-ink: var(--rostra-text-primary);

  --shadow-xs: var(--rostra-shadow-xs);
  --shadow-sm: var(--rostra-shadow-sm);
  --shadow-md: var(--rostra-shadow-md);
  --shadow-glass: var(--rostra-shadow-md);
  --inset-highlight: inset 0 1px color-mix(in srgb, white 56%, transparent);
  --control-shadow: var(--inset-highlight), var(--rostra-shadow-xs);
  --control-shadow-active: inset 0 1px 2px color-mix(in srgb, var(--rostra-text-primary) 14%, transparent);
  --module-gradient: linear-gradient(180deg, color-mix(in srgb, white 42%, transparent), rgba(255, 255, 255, 0));
  --module-shadow: var(--inset-highlight), var(--shadow-sm);

  --activity-wins: var(--green);
  --activity-discussion: var(--blue);
  --activity-think-fast: var(--amber);
  --activity-never-met: var(--magenta);
  --activity-extra-credit: color-mix(in srgb, var(--rostra-focus) 68%, var(--rostra-accent));
  --activity-presentations: var(--rostra-text-primary);
  --activity-takeaways: var(--rostra-success);
  --activity-report: var(--rostra-text-muted);

  --remodel-bg: var(--bg);
  --remodel-surface: var(--surface);
  --remodel-surface-2: var(--surface-2);
  --remodel-surface-3: var(--surface-3);
  --remodel-raised: var(--surface-raised);
  --remodel-surface-raised: var(--surface-raised);
  --remodel-ink: var(--ink);
  --remodel-ink-soft: var(--ink-soft);
  --remodel-ink-muted: var(--ink-muted);
  --remodel-line: var(--line);
  --remodel-line-strong: var(--line-strong);
  --remodel-green: var(--green);
  --remodel-amber: var(--amber);
  --remodel-red: var(--red);
  --remodel-blue: var(--blue);
  --remodel-cyan: var(--cyan);
  --remodel-magenta: var(--magenta);
  --remodel-panel-shadow: var(--module-shadow);
  --remodel-control-shadow: var(--control-shadow);
  --remodel-stage-shadow: var(--shadow-md);
  --remodel-inset: var(--inset-highlight);

  --analog-bg: var(--bg);
  --analog-bg-deep: var(--bg-soft);
  --analog-panel: var(--surface);
  --analog-panel-2: var(--surface-2);
  --analog-panel-3: var(--surface-3);
  --analog-ink: var(--ink);
  --analog-cream: var(--ink);
  --analog-soft: var(--ink-soft);
  --analog-muted: var(--ink-muted);
  --analog-line: var(--line);
  --analog-line-strong: var(--line-strong);
  --analog-green: var(--green);
  --analog-green-deep: var(--green-soft);
  --analog-amber: var(--amber);
  --analog-red: var(--red);
  --analog-blue: var(--blue);
  --analog-black: var(--monitor);

  --console-black: var(--bg-soft);
  --console-panel: var(--surface);
  --console-panel-2: var(--surface-2);
  --console-metal: var(--surface-3);
  --console-metal-2: var(--surface-3);
  --console-glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --console-hairline: var(--line);
  --console-hairline-strong: var(--line-strong);
  --console-teal: var(--accent);
  --console-blue: var(--blue);
  --console-gold: var(--amber);
  --console-red: var(--red);
  --console-shadow: var(--shadow-md);
  --console-inset: var(--inset-highlight);
}

html,
body {
  background: var(--bg);
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at 12% 4%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 30rem),
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent-warm) 12%, transparent), transparent 32rem),
    radial-gradient(circle at 72% 88%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 36rem),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 34rem);
  font-family: var(--font-sans);
}

body::before {
  display: none;
  background: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button,
.system-button,
.rating-button,
.participation-toggle,
.presence-current,
.presence-disclosure,
.nav-button,
.icon-button,
.cloud-account-summary,
.theme-toggle-switch {
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-press);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 78%, white);
  outline-offset: 3px;
}

button:active:not(:disabled),
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.ghost-button:active:not(:disabled),
.danger-button:active:not(:disabled),
.small-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.studio-bar,
.console-chrome {
  position: fixed;
  left: clamp(10px, 1.3vw, 18px);
  right: clamp(10px, 1.3vw, 18px);
  top: 10px;
  width: auto;
  min-height: var(--studio-bar-height);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nav-2) 94%, var(--surface)), color-mix(in srgb, var(--nav) 97%, var(--surface))),
    var(--surface);
  box-shadow: var(--shadow-glass), var(--inset-highlight);
  backdrop-filter: none;
}

.studio-signal {
  gap: 12px;
}

.tally-light {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--green) 13%, transparent),
    0 0 20px color-mix(in srgb, var(--green) 40%, transparent);
}

.studio-label,
.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 840;
}

.studio-label {
  font-size: 0.86rem;
}

.studio-mode,
.save-status,
.context-chip,
.count-pill,
.status-pill,
.console-chip,
.chip {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  color: var(--ink-soft);
  font-weight: 720;
}

.studio-mode {
  padding-inline: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
}

.top-context {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  box-shadow: var(--inset-highlight);
}

.top-context strong,
.context-chip strong {
  color: var(--ink);
}

.session-record-button {
  width: 30px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  color: var(--ink);
  box-shadow: var(--inset-highlight);
  cursor: pointer;
  flex: 0 0 auto;
}

.session-record-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ff3b30 14%, transparent);
}

.session-record-button.recording .session-record-dot,
.session-record-button[aria-pressed="true"] .session-record-dot {
  box-shadow:
    0 0 0 3px color-mix(in srgb, #ff3b30 18%, transparent),
    0 0 18px color-mix(in srgb, #ff3b30 62%, transparent);
}

.context-timekeeper {
  min-width: 104px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.context-timekeeper strong {
  max-width: none;
}

.session-recording .tally-light {
  background: #ff3b30;
  box-shadow:
    0 0 0 4px color-mix(in srgb, #ff3b30 13%, transparent),
    0 0 20px color-mix(in srgb, #ff3b30 40%, transparent);
}

.theme-toggle-switch,
.save-state-button,
.studio-bar .home-button,
.studio-bar .icon-button,
.top-icon-actions .icon-button,
.cloud-account-summary {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--ink-soft);
  box-shadow: var(--control-shadow);
}

.save-state-button:hover,
.theme-toggle-switch:hover,
.studio-bar .icon-button:hover,
.cloud-account-summary:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  color: var(--ink);
}

.theme-switch-track {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent) 17%, var(--surface-3));
}

.theme-switch-knob {
  background: var(--accent);
}

.app-shell {
  padding-top: calc(var(--studio-bar-height) + 22px);
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100dvh;
}

.left-rail {
  margin: 0 0 16px clamp(10px, 1.3vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 94%, transparent)),
    var(--surface);
  box-shadow: var(--module-shadow);
}

.brand-block {
  padding: 4px 2px 12px;
}

.brand-mark {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-warm) 10%, transparent)),
    var(--surface-raised);
  color: var(--ink);
}

.brand-subtitle {
  color: var(--ink-muted);
}

.activity-nav {
  gap: 10px;
}

.nav-section {
  display: grid;
  gap: 7px;
}

.nav-section + .nav-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.nav-section-label {
  padding: 0 8px;
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-section-evaluations .nav-section-label {
  color: color-mix(in srgb, var(--activity-presentations) 72%, var(--ink));
}

.nav-section-optional .nav-section-label {
  color: color-mix(in srgb, var(--activity-extra-credit) 70%, var(--ink));
}

.nav-section-admin .nav-section-label {
  color: color-mix(in srgb, var(--activity-report) 72%, var(--ink));
}

.nav-button {
  min-height: 44px;
  position: relative;
  border-radius: var(--radius-md);
  color: var(--ink-muted);
}

.nav-button::after {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: var(--radius-pill);
  background: transparent;
}

.nav-button:hover {
  background: color-mix(in srgb, var(--surface-3) 62%, transparent);
  color: var(--ink);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-3) 72%, transparent);
  border-color: var(--line);
}

.nav-button.active {
  border-color: color-mix(in srgb, var(--active-accent, var(--accent)) 25%, var(--line));
  background: color-mix(in srgb, var(--active-accent, var(--accent)) 12%, var(--surface-2));
  color: var(--ink);
}

.nav-button.active::after {
  background: var(--active-accent, var(--accent));
}

.nav-button.active .nav-icon {
  border-color: color-mix(in srgb, var(--active-accent, var(--accent)) 42%, var(--line));
  background: color-mix(in srgb, var(--active-accent, var(--accent)) 18%, var(--surface));
  color: var(--active-accent, var(--accent));
}

.nav-button-wins.active { --active-accent: var(--activity-wins); }
.nav-button-discussion.active { --active-accent: var(--activity-discussion); }
.nav-button-think-fast.active { --active-accent: var(--activity-think-fast); }
.nav-button-never-met.active { --active-accent: var(--activity-never-met); }
.nav-button-extra-credit.active { --active-accent: var(--activity-extra-credit); }
.nav-button-presentations.active { --active-accent: var(--activity-presentations); }
.nav-button-takeaways.active { --active-accent: var(--activity-takeaways); }
.nav-button-report.active { --active-accent: var(--activity-report); }

.workspace {
  width: min(var(--content-max), 100%);
  padding: clamp(20px, 2.2vw, 36px);
}

.screen-class-home .app-shell,
.screen-active .app-shell {
  padding-top: calc(var(--studio-bar-offset, var(--studio-bar-height)) + 18px);
}

.screen-class-home .workspace {
  width: min(1480px, 100%);
  padding-top: clamp(16px, 1.6vw, 24px);
}

.screen-class-home .main-panel {
  padding: clamp(16px, 1.7vw, 26px);
}

.class-dashboard-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(720px, 1.2fr);
  gap: clamp(16px, 1.8vw, 26px);
  align-items: end;
}

.dashboard-launch-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
}

.dashboard-launch-panel .compact-date-control {
  flex: 1 1 148px;
  min-width: 132px;
}

.dashboard-launch-panel .session-type-control {
  flex: 1.2 1 190px;
}

.dashboard-launch-panel .evaluation-series-control,
.dashboard-launch-panel .presentation-title-control {
  flex: 1.5 1 220px;
}

.dashboard-launch-panel .class-settings-button,
.dashboard-launch-panel .dashboard-open-latest-button,
.dashboard-launch-panel .go-live-button {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .class-dashboard-header {
    grid-template-columns: 1fr;
  }

  .dashboard-launch-panel {
    justify-content: stretch;
  }

  .dashboard-launch-panel .class-settings-button,
.dashboard-launch-panel .dashboard-open-latest-button,
.dashboard-launch-panel .go-live-button {
    flex: 1 1 120px;
  }
}

.main-panel,
.side-panel,
.log-panel,
.library-toolbar,
.cloud-auth-panel,
.cloud-beta-panel,
.roster-import-panel,
.new-session-card,
.progress-card,
.report-panel,
.settings-card,
.settings-stat-card,
.class-file-row,
.session-file-row,
.class-stat-card,
.archive-summary,
.roster-import-card,
.app-modal,
.setup-strip.preflight-strip,
.screen-active .program-card,
.screen-active .tf-program-monitor,
.screen-active .tf-instrument,
.screen-active .speaker-tracking-card,
.screen-active .presence-console-card,
.screen-active .operator-queue,
.screen-active .discussion-command-row,
.screen-active .discussion-brief-card,
.screen-active .timer-card,
.screen-active .roster-drawer,
.screen-active .roster-summary-board,
.screen-active .discussion-grid.operator-table,
.screen-active .roster-operator-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--module-gradient), var(--surface);
  box-shadow: var(--module-shadow);
}

.main-panel,
.side-panel,
.log-panel {
  padding: clamp(18px, 1.6vw, 28px);
}

.library-toolbar,
.cloud-auth-panel {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 22rem),
    radial-gradient(circle at 100% 10%, color-mix(in srgb, var(--accent-warm) 14%, transparent), transparent 20rem),
    var(--module-gradient),
    var(--surface);
}

.library-title-block h1,
.cloud-auth-title h1,
.class-home .activity-title h1,
.class-dashboard-title h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: 0;
}

.library-title-block .muted,
.cloud-auth-title p,
.cloud-auth-form p,
.class-home .activity-title .muted,
.roster-import-copy .muted,
.new-session-card .muted,
.app-modal-body,
.muted,
.muted-count {
  color: var(--ink-muted);
}

.activity-kicker,
.setup-option-label,
.session-list-title,
.class-stat-card span,
.report-activity-card span,
.report-activity-card small,
.report-export-grid legend,
.cloud-auth-field span,
.settings-field span,
.compact-date-control span,
.stage-card-label {
  color: color-mix(in srgb, var(--accent-warm) 72%, var(--ink-muted));
  font-family: var(--font-label);
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.primary-button,
.go-live-button,
.cloud-auth-form > .primary-button,
.cloud-beta-actions .primary-button {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 74%, transparent);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #061312;
  font-weight: 820;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    0 10px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

.primary-button:hover:not(:disabled),
.go-live-button:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.32),
    0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.secondary-button,
.cloud-auth-oauth > button,
.cloud-auth-actions > button,
.class-settings-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-3) 72%, var(--accent) 8%);
  color: var(--ink);
  font-weight: 760;
  box-shadow: var(--control-shadow);
}

.secondary-button:hover:not(:disabled),
.cloud-auth-oauth > button:hover:not(:disabled),
.class-settings-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--surface-3) 64%, var(--accent) 13%);
}

.ghost-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 720;
}

.ghost-button:hover:not(:disabled) {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-3) 54%, transparent);
  color: var(--ink);
}

.danger-button {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--red) 34%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--red) 9%, var(--surface-2));
  color: color-mix(in srgb, var(--red) 78%, var(--ink));
  font-weight: 760;
}

input,
textarea,
select,
.cloud-auth-field input,
.settings-field input,
.settings-card textarea,
.manual-import-card textarea,
.date-control input,
.select-option select,
.report-export-grid input,
.app-modal input,
.app-modal textarea,
.app-modal select {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 84%, var(--bg));
  color: var(--ink);
  box-shadow: var(--inset-highlight);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-subtle);
}

.empty-state,
.recovery-state {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface-2) 86%, var(--surface-warm) 14%);
}

.class-file-row,
.session-file-row,
.roster-settings-row,
.report-student-table .grid-row,
.discussion-grid.operator-table .discussion-row,
.side-panel .roster-row {
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
}

.class-file-row:hover,
.session-file-row:hover,
.roster-settings-row:hover,
.discussion-grid.operator-table .discussion-row:hover,
.side-panel .roster-row:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--surface-3) 76%, var(--accent) 5%);
}

.file-leading,
.cloud-account-avatar,
.settings-stat-card::before {
  border-radius: var(--radius-md);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), color-mix(in srgb, var(--accent-warm) 9%, transparent)),
    var(--surface-raised);
  color: var(--accent);
}

body.screen-active[data-activity="discussion"] .discussion-grid.operator-table .discussion-row {
  grid-template-columns: minmax(180px, 1fr) minmax(158px, 180px) minmax(158px, 180px) minmax(150px, 188px);
}

body.screen-active[data-activity="discussion"] .discussion-counter {
  gap: 2px;
}

body.screen-active[data-activity="discussion"] .discussion-mark-cell .discussion-counter-stepper {
  --discussion-counter-accent: var(--blue);
}

body.screen-active[data-activity="discussion"] .discussion-filler-cell .discussion-counter-stepper {
  --discussion-counter-accent: var(--amber);
}

body.screen-active[data-activity="discussion"] .discussion-counter-stepper.compact-filler {
  grid-template-columns: 38px minmax(68px, 1fr) 38px;
  gap: 4px;
  min-height: 0;
  padding: 4px;
  border-color: color-mix(in srgb, var(--discussion-counter-accent) 36%, var(--line));
  background: color-mix(in srgb, var(--discussion-counter-accent) 8%, var(--surface));
}

body.screen-active[data-activity="discussion"] .discussion-counter-stepper .stepper-button,
body.screen-active[data-activity="discussion"] .discussion-counter-stepper .filler-total {
  min-height: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
}

body.screen-active[data-activity="discussion"] .discussion-counter-stepper .stepper-button {
  border-color: color-mix(in srgb, var(--discussion-counter-accent) 48%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--discussion-counter-accent) 18%, transparent), transparent),
    color-mix(in srgb, var(--discussion-counter-accent) 12%, var(--surface-3));
  color: color-mix(in srgb, var(--discussion-counter-accent) 72%, white);
  font-size: 1.15rem;
}

body.screen-active[data-activity="discussion"] .discussion-counter-stepper .filler-total {
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 68px;
  padding: 2px 4px;
  border-color: color-mix(in srgb, var(--discussion-counter-accent) 40%, var(--line));
  background: color-mix(in srgb, var(--discussion-counter-accent) 10%, var(--surface-2));
  text-align: center;
}

body.screen-active[data-activity="discussion"] .discussion-counter-stepper .filler-total span {
  display: grid;
  width: 100%;
  place-items: center;
  color: color-mix(in srgb, var(--discussion-counter-accent) 78%, white);
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
}

body.screen-active[data-activity="discussion"] .discussion-counter-stepper .filler-total small {
  width: 100%;
  max-width: none;
  overflow: visible;
  font-size: 0.48rem;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
}

@container (max-width: 860px) {
  body.screen-active[data-activity="discussion"] .discussion-grid.operator-table .discussion-row {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  }
}

.cloud-account-avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  line-height: 1;
}

.session-file-row,
.progress-card,
.class-stat-card,
.report-activity-card {
  overflow: hidden;
}

.session-file-row::before,
.progress-card::before,
.class-stat-card::before,
.report-activity-card::before {
  left: 14px;
  right: auto;
  top: 14px;
  bottom: 14px;
  width: 3px;
  height: auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--active-accent, var(--accent));
  opacity: 0.78;
  box-shadow: 0 0 16px color-mix(in srgb, var(--active-accent, var(--accent)) 28%, transparent);
}

.session-file-row {
  gap: 18px;
  padding-left: 28px;
}

.session-file-row .file-leading {
  margin-left: 8px;
}

.progress-card,
.class-stat-card,
.report-activity-card {
  padding-left: clamp(28px, 2vw, 36px);
}

.progress-card-head,
.progress-chart {
  min-width: 0;
}

.roster-import-panel {
  border-radius: var(--radius-xl);
}

.roster-import-card {
  border-radius: var(--radius-lg);
  min-height: 300px;
}

.file-import-card {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.manual-import-card {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
}

.class-stat-card,
.progress-card,
.report-activity-card,
.report-export-grid fieldset,
.settings-card,
.settings-stat-card {
  border-radius: var(--radius-lg);
}

.setup-strip.preflight-strip {
  border-radius: var(--radius-lg);
}

.cloud-auth-shell {
  min-height: calc(100vh - var(--studio-bar-height) - 96px);
}

body.screen-cloud-auth .app-shell,
body.screen-cloud-loading .app-shell {
  grid-template-columns: 1fr;
  min-height: 100dvh;
  padding-top: calc(var(--studio-bar-height) + 22px);
}

body.screen-cloud-auth .workspace,
body.screen-cloud-loading .workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 7vh, 72px) clamp(16px, 5vw, 64px);
}

body.screen-cloud-auth .content-grid,
body.screen-cloud-auth .main-column,
body.screen-cloud-auth .main-panel,
body.screen-cloud-auth .cloud-auth-shell,
body.screen-cloud-loading .content-grid,
body.screen-cloud-loading .main-column,
body.screen-cloud-loading .main-panel,
body.screen-cloud-loading .cloud-auth-shell {
  width: 100%;
  min-width: 0;
}

body.screen-cloud-auth .content-grid,
body.screen-cloud-auth .main-column,
body.screen-cloud-loading .content-grid,
body.screen-cloud-loading .main-column {
  display: block;
}

body.screen-cloud-auth .cloud-auth-shell,
body.screen-cloud-loading .cloud-auth-shell {
  display: grid;
  min-height: calc(100dvh - var(--studio-bar-height) - clamp(96px, 18vh, 180px));
  place-items: center;
}

body.screen-cloud-auth .cloud-auth-panel,
body.screen-cloud-loading .cloud-auth-panel {
  width: min(100%, 560px);
}

body.screen-cloud-auth .main-panel,
body.screen-cloud-loading .main-panel {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.screen-cloud-auth .main-panel,
body.screen-cloud-loading .main-panel {
  padding: 0 !important;
}

.cloud-auth-panel {
  max-width: 680px;
  padding: clamp(28px, 4vw, 48px);
}

.cloud-auth-form,
.cloud-auth-oauth,
.cloud-auth-actions,
.cloud-auth-status {
  gap: 12px;
}

.cloud-auth-oauth {
  justify-content: center;
  margin-top: 2px;
}

.cloud-oauth-button {
  flex-basis: 56px;
  width: 56px;
  border-radius: var(--radius-md);
}

.cloud-oauth-button .cloud-oauth-logo {
  width: 22px;
  height: 22px;
}

.cloud-oauth-button:disabled .cloud-oauth-logo {
  opacity: 0.5;
}

.cloud-auth-later-actions {
  justify-content: center;
  margin-top: 18px;
}

.cloud-auth-later-actions > button {
  min-width: 136px;
}

.cloud-auth-divider {
  color: var(--ink-muted);
}

.cloud-account-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
}

.cloud-account-section {
  display: grid;
  gap: 8px;
}

.cloud-account-section-label {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px;
}

.theme-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px;
  text-align: left;
}

.theme-choice:hover,
.theme-choice.active {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--ink);
  box-shadow: none;
}

.theme-choice span:not(.theme-choice-swatch) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.theme-choice strong,
.theme-choice small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-choice small {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-choice-swatch {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: inset 0 1px color-mix(in srgb, #fff 34%, transparent);
}

.theme-choice-swatch-academic {
  background:
    linear-gradient(135deg, #f7f3e9 0 50%, #14202e 50%),
    #f7f3e9;
}

.theme-choice-swatch-broadcast {
  background:
    radial-gradient(circle at 72% 28%, #f2b24c 0 18%, transparent 19%),
    linear-gradient(135deg, #07100f 0 54%, #163735 54%),
    #07100f;
}

.cloud-beta-panel {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%),
    var(--module-gradient),
    var(--surface);
}

.class-settings-window {
  gap: clamp(18px, 2vw, 28px);
}

.class-settings-header,
.roster-settings-titlebar {
  align-items: center;
}

.settings-card,
.settings-stat-card {
  background: var(--module-gradient), var(--surface);
}

.roster-settings-tools,
.settings-file-drop,
.roster-settings-list {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.screen-active {
  --rail-width: 204px;
  --active-accent: var(--accent);
  --active-accent-soft: color-mix(in srgb, var(--active-accent) 14%, transparent);
  --active-viewport-top-gap: 12px;
  --active-viewport-bottom-gap: 34px;
}

.screen-active[data-activity="wins"] { --active-accent: var(--activity-wins); }
.screen-active[data-activity="discussion"] { --active-accent: var(--activity-discussion); }
.screen-active[data-activity="thinkFast"] { --active-accent: var(--activity-think-fast); }
.screen-active[data-activity="neverMet"] { --active-accent: var(--activity-never-met); }
.screen-active[data-activity="extraCredit"] { --active-accent: var(--activity-extra-credit); }
.screen-active[data-activity="presentations"] { --active-accent: var(--activity-presentations); }
.screen-active[data-activity="takeaways"] { --active-accent: var(--activity-takeaways); }
.screen-active[data-activity="report"] { --active-accent: var(--activity-report); }

body[data-activity="wins"] { --active-accent: var(--activity-wins); }
body[data-activity="discussion"] { --active-accent: var(--activity-discussion); }
body[data-activity="thinkFast"] { --active-accent: var(--activity-think-fast); }
body[data-activity="neverMet"] { --active-accent: var(--activity-never-met); }
body[data-activity="extraCredit"] { --active-accent: var(--activity-extra-credit); }
body[data-activity="presentations"] { --active-accent: var(--activity-presentations); }
body[data-activity="takeaways"] { --active-accent: var(--activity-takeaways); }
body[data-activity="report"] { --active-accent: var(--activity-report); }

.screen-active .main-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.screen-active .workspace {
  width: min(1420px, 100%);
}

body.screen-active[data-activity="neverMet"] .workspace {
  width: min(1760px, 100%);
}

.screen-active .content-grid {
  gap: clamp(14px, 1.3vw, 20px);
}

@media (min-width: 1181px) {
  body.screen-active[data-activity="neverMet"] .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 316px);
  }
}

@media (min-width: 1181px) {
  :root:has(body.screen-active) {
    height: 100%;
    overflow: hidden;
  }

  body.screen-active {
    --active-shell-top: calc(var(--studio-bar-offset, var(--studio-bar-height)) + 18px);
    --active-shell-bottom: 16px;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body.screen-active .studio-bar,
body.screen-active .console-chrome {
    z-index: 120;
  }

  body.screen-active .app-shell {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding-top: var(--active-shell-top);
    padding-bottom: var(--active-shell-bottom);
  }

  body.screen-active .app-shell::before {
    content: "";
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    left: 0;
    height: calc(var(--active-shell-top) + 12px);
    pointer-events: none;
    background: linear-gradient(
      180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 96%, transparent) 70%,
      transparent 100%
    );
  }

  body.screen-active .left-rail,
body.screen-active .workspace {
    height: calc(100dvh - var(--active-shell-top) - var(--active-shell-bottom));
    max-height: calc(100dvh - var(--active-shell-top) - var(--active-shell-bottom));
    min-height: 0;
  }

  body.screen-active .left-rail {
    position: relative;
    top: auto;
    align-self: stretch;
    margin-bottom: 0;
    overflow: hidden;
  }

  body.screen-active .workspace {
    overflow: hidden;
  }

  body.screen-active .content-grid {
    height: 100%;
    min-height: 0;
    align-items: stretch;
    margin-top: 0;
  }

  body.screen-active .main-column {
    container-type: inline-size;
    display: block;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }

  body.screen-active .main-panel {
    container-type: normal;
    min-height: 0;
  }

  body.screen-active .log-panel {
    position: relative;
    z-index: 0;
    min-height: 0;
    margin-top: 18px;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
  }

  body.screen-active .session-log:not(.event-timeline),
body.screen-active .session-log:has(.session-ticker[open]),
body.screen-active .session-ticker-expanded {
    max-height: none;
    overflow: hidden;
  }

  body.screen-active .session-ticker,
body.screen-active .session-ticker summary {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  body.screen-active .side-panel {
    position: relative;
    top: auto;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  body.screen-active .side-panel .roster-drawer {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }

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

  body.screen-active .side-panel .roster-summary-board {
    position: relative;
    top: auto;
    margin-bottom: 0;
  }

  body.screen-active .side-panel .roster-filter-banner {
    min-height: 0;
    margin: 0;
  }

  body.screen-active .side-panel .roster-list {
    min-height: 0;
    margin-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 28px;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }
}

.screen-active .tf-program-monitor,
.screen-active .program-card,
.screen-active .live-deck,
.screen-active .timer-card {
  border-radius: var(--radius-xl);
  border-color: color-mix(in srgb, var(--active-accent) 28%, var(--line));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--active-accent) 13%, transparent), transparent 20rem),
    var(--module-gradient),
    var(--surface);
}

.screen-active .timer-readout,
.screen-active .tf-speaker-name,
.screen-active .speaker-name {
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.screen-active .flow-actions,
.screen-active .timer-actions,
.screen-active .timer-turn-nav,
.screen-active .filler-instrument,
.screen-active .prompt-dock,
.screen-active .field-row.prompt-command-row {
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}

body.screen-active[data-activity="neverMet"] .pair-live-console {
  display: grid;
  gap: 16px;
}

body.screen-active[data-activity="neverMet"] .live-deck.pair-mode {
  gap: 16px;
  padding: clamp(14px, 1.35cqw, 20px);
  align-items: stretch;
}

body.screen-active[data-activity="neverMet"] .pair-program-stack {
  gap: 13px;
}

body.screen-active[data-activity="neverMet"] .program-pair-grid {
  gap: 14px;
}

body.screen-active[data-activity="neverMet"] .program-pair-grid .pair-speaker-card {
  min-height: clamp(136px, 11cqw, 170px);
  gap: 12px;
  padding: clamp(16px, 1.55cqw, 22px);
  align-content: space-between;
}

body.screen-active[data-activity="neverMet"] .pair-speaker-card .program-card-topline {
  min-height: 30px;
  align-items: center;
}

body.screen-active[data-activity="neverMet"] .pair-speaker-card .activity-kicker,
body.screen-active[data-activity="neverMet"] .nevermet-prompt-header > span,
body.screen-active[data-activity="neverMet"] .pair-queue .table-header {
  letter-spacing: 0.035em;
}

body.screen-active[data-activity="neverMet"] .pair-speaker-card .speaker-name {
  font-size: clamp(1.8rem, 3cqw, 2.7rem);
  line-height: 1.06;
  text-wrap: balance;
}

body.screen-active[data-activity="neverMet"] .nevermet-prompt-card {
  gap: 11px;
  padding: 15px;
}

body.screen-active[data-activity="neverMet"] .nevermet-prompt-header {
  min-height: 36px;
  padding-bottom: 9px;
}

body.screen-active[data-activity="neverMet"] .nevermet-reprompt-button {
  min-height: 34px;
  padding: 6px 18px;
  line-height: 1;
}

body.screen-active[data-activity="neverMet"] .nevermet-prompt-readout textarea {
  min-height: 92px;
  padding: 12px 14px;
  font-size: clamp(0.98rem, 1.05cqw, 1.08rem);
  font-weight: 730;
  line-height: 1.34;
}

body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .timer-card {
  gap: 11px;
  padding: 14px;
}

body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .timer-actions,
body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .flow-actions,
body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .timer-turn-nav {
  gap: 8px;
  padding: 7px;
}

body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .timer-actions > button,
body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .flow-actions > button,
body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .timer-turn-nav .review-nav > button {
  min-height: 48px;
  padding: 8px 10px;
  line-height: 1.1;
}

body.screen-active[data-activity="neverMet"] .speaker-tracking-zone {
  gap: 14px;
  margin-top: 14px;
}

body.screen-active[data-activity="neverMet"] .speaker-tracking-card {
  gap: 12px;
  padding: 14px;
}

body.screen-active[data-activity="neverMet"] .tracking-student {
  line-height: 1.08;
  text-wrap: balance;
}

body.screen-active[data-activity="neverMet"] .compact-filler {
  gap: 8px;
  padding: 7px;
}

body.screen-active[data-activity="neverMet"] .compact-presence .presence-buttons {
  gap: 8px;
}

body.screen-active[data-activity="neverMet"] .speaker-tracking-card .rating-button {
  min-height: 42px;
  padding: 8px 9px;
  letter-spacing: 0;
}

body.screen-active[data-activity="neverMet"] .skip-student-button {
  min-height: 36px;
}

body.screen-active[data-activity="neverMet"] .pair-queue {
  display: grid;
  gap: 10px;
  padding: 14px;
}

body.screen-active[data-activity="neverMet"] .pair-queue .section-heading {
  margin-bottom: 0;
}

body.screen-active[data-activity="neverMet"] .pair-queue .queue-list {
  gap: 8px;
}

body.screen-active[data-activity="neverMet"] .pair-queue .queue-row {
  min-height: 52px;
  padding: 9px 12px;
}

body.screen-active[data-activity="neverMet"] .pair-queue .table-header {
  min-height: 34px;
  color: var(--ink-soft);
}

@container (max-width: 1080px) {
  body.screen-active[data-activity="neverMet"] .live-deck.pair-mode {
    grid-template-columns: 1fr;
  }

  body.screen-active[data-activity="neverMet"] .live-deck.pair-mode .timer-stack {
    order: initial;
  }

  body.screen-active[data-activity="neverMet"] .program-pair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 780px) {
  body.screen-active[data-activity="neverMet"] .program-pair-grid,
body.screen-active[data-activity="neverMet"] .speaker-tracking-zone,
body.screen-active[data-activity="neverMet"] .speaker-tracking-card {
    grid-template-columns: 1fr;
  }
}

.screen-active .rating-button.active,
.screen-active .participation-toggle.active,
.screen-active .small-button.active,
.screen-active .presence-current.set {
  border-color: color-mix(in srgb, var(--active-accent) 52%, var(--line));
  background: color-mix(in srgb, var(--active-accent) 18%, var(--surface-2));
  color: var(--ink);
}

.screen-report .report-panel,
.screen-report .report-activity-card,
.screen-report .report-export-grid fieldset,
.report-student-table .grid-row {
  box-shadow: var(--inset-highlight);
}

.report-student-table .table-header,
.discussion-grid.operator-table .table-header,
.roster-operator-sheet .table-header {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-3) 76%, transparent);
  color: var(--ink-soft);
}

.app-modal-backdrop {
  background: rgba(3, 5, 8, 0.62);
  backdrop-filter: blur(8px);
}

.app-modal {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 92%, transparent)),
    var(--surface);
}

.app-modal .app-modal-close {
  border-radius: var(--radius-md);
  box-shadow: var(--control-shadow);
}

/* Canvas-inspired class dashboard. This borrows the course-card rhythm and
   clean dashboard scan path without copying Canvas visual assets. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) {
  --rail-width: 92px;
  --course-card-bg: var(--rostra-surface);
  --course-card-ink: var(--rostra-text-primary);
  --course-card-muted: var(--rostra-text-muted);
  --course-card-line: var(--rostra-border);
  --course-card-shadow: var(--rostra-shadow-xs);
  --course-accent: var(--blue);
  --course-accent-2: color-mix(in srgb, var(--course-accent) 42%, var(--rostra-surface));
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent-warm) 9%, transparent), transparent 28rem),
    linear-gradient(180deg, var(--rostra-surface), var(--rostra-canvas));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .studio-bar {
  left: clamp(10px, 1.3vw, 18px);
  right: clamp(10px, 1.3vw, 18px);
  top: 10px;
  min-height: 58px;
  border-width: 1px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 94%, var(--surface)), color-mix(in srgb, var(--surface) 98%, var(--bg))),
    var(--surface);
  box-shadow: var(--shadow-glass), var(--inset-highlight);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .app-shell {
  padding-top: calc(58px + 18px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .left-rail {
  min-height: calc(100vh - 58px);
  margin: 0;
  padding: 14px 8px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--rostra-focus) 28%, var(--rostra-surface-control));
  box-shadow: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .brand-block {
  justify-items: center;
  padding: 0 0 14px;
  text-align: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .brand-mark {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .brand-name,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .brand-subtitle {
  display: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .nav-button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 58px;
  padding: 6px 4px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .nav-button:hover,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .nav-button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .nav-button::after {
  inset: 6px auto 6px 0;
  background: transparent;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .nav-icon {
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .nav-label {
  max-width: 76px;
  font-size: 0.7rem;
  line-height: 1.05;
  white-space: normal;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .workspace {
  width: min(1480px, 100%);
  padding: clamp(26px, 3vw, 48px) clamp(28px, 3.4vw, 56px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .main-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .launcher.library-manager {
  gap: clamp(22px, 2.2vw, 34px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 18px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-title-block {
  gap: 8px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-title-block h1 {
  color: var(--ink);
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 0.98;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-title-block .muted {
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .command-cluster {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-section > .section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-section > .section-heading h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 720;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .file-manager-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(246px, 1fr));
  gap: clamp(22px, 2.2vw, 34px);
  align-items: stretch;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .file-manager-list.compact {
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row {
  --course-accent: #2379bd;
  --course-accent-2: #83bfe6;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 122px minmax(92px, 1fr) auto;
  min-height: 276px;
  overflow: visible;
  border: 1px solid var(--course-card-line);
  border-radius: var(--radius-sm);
  background: var(--course-card-bg);
  box-shadow: var(--course-card-shadow);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .file-manager-list > .class-file-row:nth-child(4n + 2) {
  --course-accent: #3d6075;
  --course-accent-2: #9aa88f;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .file-manager-list > .class-file-row:nth-child(4n + 3) {
  --course-accent: #6d49a8;
  --course-accent-2: #bd78c5;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .file-manager-list > .class-file-row:nth-child(4n + 4) {
  --course-accent: #ad4a82;
  --course-accent-2: #e57091;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 122px;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background:
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.24), transparent 15%),
    linear-gradient(116deg, color-mix(in srgb, var(--course-accent) 92%, #000) 0 36%, color-mix(in srgb, var(--course-accent) 70%, transparent) 36% 54%, transparent 54%),
    linear-gradient(90deg, var(--course-accent), var(--course-accent-2));
  box-shadow: none;
  opacity: 1;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row[data-course-pattern="topograph"]::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-preview[data-course-pattern="topograph"] {
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.24), transparent 18%),
    repeating-radial-gradient(ellipse at 28% 68%, transparent 0 8px, rgba(255, 255, 255, 0.19) 9px 10px),
    linear-gradient(135deg, color-mix(in srgb, var(--course-accent) 88%, #07131c), var(--course-accent-2));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row[data-course-pattern="signal"]::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-preview[data-course-pattern="signal"] {
  background:
    radial-gradient(circle at 18% 52%, rgba(255, 255, 255, 0.36) 0 3px, transparent 4px),
    radial-gradient(circle at 18% 52%, transparent 0 19px, rgba(255, 255, 255, 0.2) 20px 21px, transparent 22px 41px, rgba(255, 255, 255, 0.12) 42px 43px, transparent 44px),
    linear-gradient(126deg, color-mix(in srgb, var(--course-accent) 92%, #061118), color-mix(in srgb, var(--course-accent-2) 86%, #ffffff));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row[data-course-pattern="grid"]::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-preview[data-course-pattern="grid"] {
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.16) 12%, transparent 12.5% 87%, rgba(255, 255, 255, 0.16) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.16) 12%, transparent 12.5% 87%, rgba(255, 255, 255, 0.16) 87.5%),
    linear-gradient(90deg, color-mix(in srgb, var(--course-accent) 82%, #07131c), var(--course-accent-2));
  background-size: 36px 62px, 36px 62px, auto;
  background-position: 0 0, 0 0, 0 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row[data-course-pattern="orbit"]::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-preview[data-course-pattern="orbit"] {
  background:
    radial-gradient(circle at 74% 52%, rgba(255, 255, 255, 0.24) 0 7%, transparent 8%),
    repeating-radial-gradient(circle at 74% 52%, transparent 0 18px, rgba(255, 255, 255, 0.16) 19px 20px),
    linear-gradient(118deg, color-mix(in srgb, var(--course-accent) 90%, #050c12), var(--course-accent-2));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row[data-course-pattern="ribbon"]::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-preview[data-course-pattern="ribbon"] {
  background:
    linear-gradient(128deg, transparent 0 12%, rgba(255, 255, 255, 0.2) 12% 20%, transparent 20% 34%, rgba(0, 0, 0, 0.12) 34% 44%, transparent 44%),
    linear-gradient(90deg, color-mix(in srgb, var(--course-accent) 94%, #07131c), var(--course-accent-2));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-preview[data-course-pattern="prism"] {
  background:
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.24), transparent 15%),
    linear-gradient(116deg, color-mix(in srgb, var(--course-accent) 92%, #000) 0 36%, color-mix(in srgb, var(--course-accent) 70%, transparent) 36% 54%, transparent 54%),
    linear-gradient(90deg, var(--course-accent), var(--course-accent-2));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row::after {
  content: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu > summary {
  list-style: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu > summary::-webkit-details-marker {
  display: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-trigger {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-trigger span,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-trigger::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-trigger::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 9px currentColor, 0 -9px currentColor;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-trigger::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-trigger::after {
  display: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-trigger:hover,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu[open] .class-card-menu-trigger {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.13);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-panel {
  position: fixed;
  top: var(--class-menu-top, 88px);
  left: var(--class-menu-left, 24px);
  right: auto;
  display: grid;
  width: min(324px, calc(100vw - 32px));
  max-height: var(--class-menu-max-height, calc(100vh - 104px));
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--course-card-line);
  border-radius: var(--radius-md);
  background: var(--course-card-bg);
  color: var(--course-card-ink);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.22);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-field,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-color-field,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  border: 0;
  margin: 0;
  padding: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-field span,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-color-field legend,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-field legend {
  color: var(--course-card-ink);
  font-size: 0.78rem;
  font-weight: 820;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-field input,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-color-input {
  min-height: 34px;
  border-color: var(--course-card-line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--course-card-bg) 90%, var(--surface-2));
  color: var(--course-card-ink);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  min-height: 28px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--swatch-color);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-color-swatch.active,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-color-swatch:focus-visible {
  border-color: var(--course-card-ink);
  outline: 2px solid color-mix(in srgb, var(--course-accent) 34%, transparent);
  outline-offset: 2px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-swatch {
  display: grid;
  min-width: 0;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--course-card-line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--course-card-bg) 92%, var(--surface-2));
  color: var(--course-card-ink);
  padding: 5px;
  text-align: left;
  --course-accent: var(--swatch-color);
  --course-accent-2: var(--swatch-color-2);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-swatch:hover,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-swatch.active,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-swatch:focus-visible {
  border-color: color-mix(in srgb, var(--swatch-color) 64%, var(--course-card-line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--swatch-color) 28%, transparent);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1.9;
  overflow: hidden;
  border-radius: calc(var(--radius-sm) - 2px);
  background:
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.24), transparent 15%),
    linear-gradient(116deg, color-mix(in srgb, var(--course-accent) 92%, #000) 0 36%, color-mix(in srgb, var(--course-accent) 70%, transparent) 36% 54%, transparent 54%),
    linear-gradient(90deg, var(--course-accent), var(--course-accent-2));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-pattern-name {
  overflow: hidden;
  color: var(--course-card-ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row.class-card-menu-open {
  transform: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-actions .primary-button,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-actions .ghost-button {
  min-height: 32px;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 0.82rem;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-card-menu-actions .primary-button {
  background: var(--course-accent);
  border-color: var(--course-accent);
  font-family: var(--font-mono);
  color: #ffffff;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row:hover {
  border-color: color-mix(in srgb, var(--course-accent) 34%, var(--course-card-line));
  box-shadow: 0 5px 16px rgba(31, 41, 51, 0.2);
  transform: translateY(-1px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-leading {
  position: absolute;
  z-index: 1;
  top: 36px;
  left: 18px;
  width: 54px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-leading svg,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-leading [data-rostra-icon] {
  color: currentColor;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .project-card-main {
  z-index: 1;
  grid-row: 1 / 3;
  align-self: start;
  padding: 140px 20px 8px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .project-card-main h2 {
  color: var(--course-accent);
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.18;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .mini-stats {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .count-pill {
  min-height: auto;
  justify-content: start;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--course-card-muted);
  font-size: 0.86rem;
  font-weight: 520;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions {
  z-index: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 12%, 34px);
  min-height: 48px;
  border-top: 1px solid color-mix(in srgb, var(--course-card-line) 70%, transparent);
  padding: 7px 18px 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions .primary-button,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions .secondary-button,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions .ghost-button,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions .danger-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: none;
  min-width: 74px;
  padding: 0 10px;
  font-size: 0.82rem;
  text-align: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions .primary-button {
  border-color: color-mix(in srgb, var(--blue) 66%, #ffffff);
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 18%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 96%, #ffffff), color-mix(in srgb, var(--blue) 82%, #000000));
  color: #ffffff !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--blue) 22%, transparent);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions .primary-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--blue) 78%, #ffffff);
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 22%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 100%, #ffffff), color-mix(in srgb, var(--blue) 88%, #000000));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions [data-action="toggle-project-archive"][data-status="archived"] {
  border-color: color-mix(in srgb, var(--amber) 58%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 9%, transparent), transparent 58%),
    color-mix(in srgb, var(--amber) 15%, var(--surface));
  color: color-mix(in srgb, var(--amber) 82%, var(--ink));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row .file-actions [data-action="toggle-project-archive"][data-status="archived"]:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--amber) 72%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 12%, transparent), transparent 58%),
    color-mix(in srgb, var(--amber) 22%, var(--surface));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-section {
  display: grid;
  gap: 16px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: -8px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-section-actions button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
  align-items: stretch;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(96px, 1fr) auto auto;
  gap: 14px;
  min-height: 268px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent));
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface) 84%, var(--surface-2));
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-creator-type="user"] {
  border-color: color-mix(in srgb, var(--accent-warm) 42%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-warm) 13%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface) 84%, var(--surface-2));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card.archived {
  opacity: 0.72;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line-strong));
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.18);
  transform: translateY(-1px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-top,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph {
  width: 42px;
  height: 42px;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  color: color-mix(in srgb, var(--accent) 74%, var(--ink));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-badges,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-badges .count-pill,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-tags .count-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 24px;
  padding: 3px 8px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main h3,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.18;
  letter-spacing: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main p,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-copy p {
  margin: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-tags {
  justify-content: flex-start;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-tags .count-pill {
  max-width: 100%;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions {
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-top: 12px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions .secondary-button {
  min-height: 34px;
  border-radius: var(--radius-sm);
  padding: 0 12px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-section-note {
  display: grid;
  gap: 4px;
  border: 1px dashed color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  padding: 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-section-note span {
  color: var(--ink-muted);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-scaffold {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent-warm));
  border-radius: var(--radius-sm);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent-warm) 10%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-soft);
  padding: clamp(16px, 2.2vw, 24px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status {
  display: grid;
  align-content: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  padding: 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status.inactive {
  border-style: dashed;
  opacity: 0.78;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .archive-drawer {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .archive-summary {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.class-context-grid {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.template-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.template-preview-card {
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--active-accent));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 90%, var(--active-accent) 10%);
  padding: 12px;
}

.template-preview-card.planning-underfilled {
  border-color: color-mix(in srgb, #5ab8ff 50%, var(--line));
}

.template-preview-card.planning-caution {
  border-color: color-mix(in srgb, #f4b95a 60%, var(--line));
}

.template-preview-card.planning-overbooked {
  border-color: color-mix(in srgb, #ef6b6b 65%, var(--line));
}

.template-preview-card p {
  margin: 8px 0 0;
}

@media (max-width: 980px) {
  :root {
    --studio-bar-height: 58px;
    --rail-width: 72px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) {
    --rail-width: 72px;
  }

  .studio-bar,
.console-chrome,
.left-rail {
    border-radius: var(--radius-lg);
  }

  .nav-button {
    justify-content: center;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .studio-bar {
    left: clamp(8px, 2vw, 14px);
    right: clamp(8px, 2vw, 14px);
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .left-rail {
    padding: 10px 6px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .brand-mark {
    width: 42px;
    height: 42px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .nav-label {
    display: none;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .workspace {
    padding: 24px 20px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .command-cluster {
    justify-content: start;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .file-manager-list,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .file-manager-list.compact {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 226px), 1fr));
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-section-actions {
    justify-content: flex-start;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 226px), 1fr));
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-scaffold,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  body.screen-active .top-context {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    flex: 0 0 158px;
    width: 158px;
    max-width: 158px;
    min-width: 0;
  }

  body.screen-active .top-context .context-class,
body.screen-active .top-context .context-date {
    display: none;
  }

  body.screen-active .context-timekeeper {
    min-width: 118px;
  }
}

@media (max-width: 760px) {
  body.screen-active {
    overflow-x: hidden;
  }

  body.screen-active .app-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-inline: 10px;
  }

  body.screen-active .left-rail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px;
    overflow: hidden;
  }

  body.screen-active .left-rail .brand-block {
    display: none;
  }

  body.screen-active .activity-nav {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  body.screen-active .nav-section {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex: 0 0 auto;
    min-width: max-content;
    scroll-snap-align: start;
  }

  body.screen-active .nav-section + .nav-section {
    margin-top: 0;
    padding-top: 0;
    padding-left: 8px;
    border-top: 0;
    border-left: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  }

  body.screen-active .nav-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    white-space: nowrap;
  }

  body.screen-active .nav-button {
    flex: 0 0 auto;
    min-width: 54px;
    min-height: 44px;
    padding-inline: 10px;
  }

  body.screen-active .workspace {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 0 20px;
  }

  body.screen-cloud-auth .app-shell,
body.screen-cloud-loading .app-shell {
    grid-template-columns: 1fr;
  }

  body.screen-cloud-auth .workspace,
body.screen-cloud-loading .workspace {
    padding-inline: 12px;
  }

  body.screen-cloud-auth .content-grid,
body.screen-cloud-auth .main-column,
body.screen-cloud-auth .main-panel,
body.screen-cloud-auth .cloud-auth-shell,
body.screen-cloud-loading .content-grid,
body.screen-cloud-loading .main-column,
body.screen-cloud-loading .main-panel,
body.screen-cloud-loading .cloud-auth-shell {
    width: 100%;
    min-width: 0;
  }

  body.screen-cloud-auth .cloud-auth-shell,
body.screen-cloud-loading .cloud-auth-shell {
    justify-items: stretch;
  }

  body.screen-cloud-auth .cloud-auth-panel,
body.screen-cloud-loading .cloud-auth-panel {
    width: 100%;
    max-width: none;
  }

  .cloud-auth-form > .primary-button,
.cloud-auth-oauth > button,
.cloud-auth-actions > button {
    width: 100%;
  }

  .cloud-auth-oauth > .cloud-oauth-button {
    flex-basis: 56px;
    width: 56px;
  }

  .cloud-auth-later-actions > button {
    width: auto;
  }
}

@media (min-width: 1181px) {
  body.screen-active .activity-nav {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.screen-active .nav-section-account {
    margin-top: auto;
  }
}

body.screen-account-settings,
body.screen-activity-studio {
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

body.screen-account-settings .studio-bar,
body.screen-account-settings .console-chrome,
body.screen-account-settings .left-rail,
body.screen-account-settings .setup-strip,
body.screen-account-settings .log-panel,
body.screen-account-settings .side-panel,
body.screen-activity-studio .studio-bar,
body.screen-activity-studio .console-chrome,
body.screen-activity-studio .left-rail,
body.screen-activity-studio .setup-strip,
body.screen-activity-studio .log-panel,
body.screen-activity-studio .side-panel {
  display: none !important;
}

body.screen-account-settings .app-shell,
body.screen-activity-studio .app-shell {
  display: block;
  min-height: 100dvh;
  padding: 0;
}

body.screen-account-settings .workspace,
body.screen-account-settings .content-grid,
body.screen-account-settings .main-column,
body.screen-account-settings .main-panel,
body.screen-activity-studio .workspace,
body.screen-activity-studio .content-grid,
body.screen-activity-studio .main-column,
body.screen-activity-studio .main-panel {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

body.screen-account-settings .content-grid,
body.screen-activity-studio .content-grid {
  display: block;
}

body.screen-account-settings .main-panel,
body.screen-activity-studio .main-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-settings-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--ink);
}

.account-settings-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 2.2vw, 32px) clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.account-settings-header h1,
.account-settings-content-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.account-settings-back {
  min-width: 84px;
}

.activity-studio-savebar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.activity-studio-savebar .report-unsaved-note {
  margin: 0 4px 0 0;
  white-space: nowrap;
}

.account-settings-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  min-height: 0;
}

.account-settings-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

body.screen-activity-studio .account-settings-nav {
  position: sticky;
  top: 0;
  max-height: 100dvh;
  overflow: auto;
}

.account-settings-nav-button {
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}

.account-settings-nav-button strong {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.account-settings-nav-button span {
  font-size: 0.78rem;
  line-height: 1.3;
}

.account-settings-nav-button:hover,
.account-settings-nav-button.active {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--ink);
}

.account-settings-nav-button.active strong {
  color: var(--ink);
}

.activity-studio-advanced {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  overflow: clip;
}

.activity-studio-advanced > summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 16px;
}

.activity-studio-advanced > summary::-webkit-details-marker {
  display: none;
}

.activity-studio-advanced > summary span:first-child {
  display: grid;
  gap: 4px;
}

.activity-studio-advanced > summary strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.activity-studio-advanced > summary small {
  color: var(--ink-muted);
  line-height: 1.35;
}

.activity-studio-advanced-body {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.activity-studio-subsection {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  padding: 14px;
}

.nevermet-pair-management {
  display: grid;
  gap: 0;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--module-gradient), var(--surface);
  box-shadow: var(--module-shadow);
  overflow: clip;
}

.nevermet-pair-management > summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
}

.nevermet-pair-management > summary::-webkit-details-marker {
  display: none;
}

.nevermet-pair-management > summary span:first-child {
  display: grid;
  gap: 3px;
}

.nevermet-pair-management > summary strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.nevermet-pair-management > summary small {
  color: var(--ink-muted);
  line-height: 1.35;
}

.nevermet-pair-management .nevermet-control-panels {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.account-settings-pane {
  min-width: 0;
  padding: clamp(22px, 3vw, 48px);
}

.account-settings-content-panel {
  max-width: 1040px;
  display: grid;
  gap: 12px;
}

.account-settings-placeholder {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border: 1px dashed color-mix(in srgb, var(--line-strong) 74%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  padding: 18px;
  color: var(--ink-muted);
}

.account-settings-placeholder strong {
  color: var(--ink);
}

.account-settings-summary-grid,
.account-settings-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.account-settings-summary-card,
.account-settings-card,
.account-settings-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-soft);
}

.account-settings-summary-card {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 16px;
}

.account-settings-summary-card span,
.account-settings-summary-card small,
.account-settings-note span {
  color: var(--ink-muted);
}

.account-settings-summary-card strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.account-settings-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.account-settings-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.account-settings-card h3,
.account-activity-title h3 {
  margin: 0;
  letter-spacing: 0;
}

.account-settings-card .project-section {
  margin: 0;
}

.account-settings-note {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.account-activity-list,
.account-settings-cloud-stack,
.account-backup-list {
  display: grid;
  gap: 12px;
}

.account-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 68%, transparent);
  padding: 14px;
}

.account-activity-row.archived {
  opacity: 0.72;
}

.account-activity-icon .activity-glyph {
  width: 40px;
  height: 40px;
}

.account-activity-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-activity-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-activity-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 280px;
}

.account-settings-status-label {
  display: grid;
  gap: 3px;
  max-width: 260px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  padding: 9px 10px;
  color: var(--ink-muted);
  line-height: 1.28;
}

.account-settings-status-label strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.account-settings-status-label span {
  font-size: 0.76rem;
}

.activity-studio-form,
.activity-studio-section-card {
  display: grid;
  gap: 14px;
  scroll-margin-top: 24px;
}

.activity-studio-field-grid,
.activity-studio-locked-grid,
.activity-studio-policy-grid,
.activity-studio-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.activity-studio-field,
.activity-studio-locked-field,
.activity-studio-slot-list span {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 12px;
}

.activity-studio-field span:first-child,
.activity-studio-locked-field span:first-child,
.activity-studio-slot-list span {
  display: grid;
  gap: 3px;
}

.activity-studio-field strong,
.activity-studio-locked-field strong,
.activity-studio-slot-list strong,
.activity-studio-prompt-preview strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.activity-studio-field small,
.activity-studio-locked-field small,
.activity-studio-slot-list small {
  color: var(--ink-muted);
  line-height: 1.3;
}

.activity-studio-number-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.activity-studio-number-control input,
.activity-studio-locked-field input,
.activity-studio-field input[type="text"],
.activity-studio-field select,
.activity-studio-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
}

.activity-studio-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.4;
}

.activity-studio-field select {
  appearance: none;
}

.activity-studio-field input[type="color"] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  padding: 4px;
}

.activity-icon-picker {
  grid-column: 1 / -1;
  margin: 0;
  min-inline-size: 0;
}

.activity-icon-picker legend {
  margin: 0 0 3px;
  padding: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.activity-icon-picker > small {
  display: block;
  margin-bottom: 8px;
}

.activity-icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, max-content));
  gap: 10px 14px;
  align-items: center;
}

.activity-icon-option {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

.activity-icon-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.activity-icon-option:focus-within {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 3px;
}

.activity-icon-option:hover .activity-icon-option-glyph,
.activity-icon-option:has(input:checked) .activity-icon-option-glyph {
  color: var(--ink);
}

.activity-icon-option:has(input:checked) .activity-icon-option-glyph {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, var(--line-strong));
  outline-offset: 4px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.activity-icon-option-glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  color: var(--ink-muted);
}

.activity-icon-option-glyph .rostra-icon {
  width: 30px;
  height: 30px;
}

.activity-studio-checkbox-field {
  align-content: start;
}

.activity-studio-checkbox-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  padding: 9px 10px;
}

.activity-studio-checkbox-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.activity-studio-checkbox-control em {
  color: var(--ink);
  font-size: 0.82rem;
  font-style: normal;
}

.activity-formula-builder {
  display: grid;
  gap: 12px;
}

.activity-formula-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  padding: 4px;
}

.activity-formula-tab {
  border: 0;
  border-radius: calc(var(--radius-xs) - 2px);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
}

.activity-formula-tab.active {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
  color: var(--ink);
}

.activity-formula-panel {
  display: grid;
  gap: 12px;
}

.activity-formula-variable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.activity-formula-variable {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 10px;
}

.activity-formula-variable span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.activity-formula-variable small {
  min-width: 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-token-button {
  flex: 0 0 auto;
  padding: 6px 8px;
  font-size: 0.76rem;
}

.activity-formula-variable input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

.activity-formula-preview {
  display: grid;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  padding: 12px;
}

.activity-formula-preview.invalid {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--line));
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
}

.activity-formula-preview div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.activity-formula-preview strong {
  color: var(--ink);
}

.activity-formula-preview span,
.activity-formula-preview li {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.activity-formula-preview ul {
  margin: 0;
  padding-left: 18px;
}

.note-template-editor-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.note-template-editor-shell {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  padding: 12px;
}

.note-template-editor-heading {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.note-template-editor-heading > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.note-template-editor-heading strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.note-template-editor-heading small {
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.note-template-reset-button {
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.note-template-toolbar {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  padding: 8px;
}

.note-template-format-tools,
.note-template-token-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.note-template-token-tools {
  max-height: 88px;
  overflow: auto;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-top: 8px;
}

.note-template-tool-button,
.note-template-token-button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.note-template-tool-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
}

.note-template-token-button {
  min-height: 30px;
  padding: 6px 9px;
  color: color-mix(in srgb, var(--accent) 74%, var(--ink));
}

.note-template-tool-button:hover,
.note-template-token-button:hover,
.note-template-tool-button:focus-visible,
.note-template-token-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line-strong));
  background: color-mix(in srgb, var(--accent) 13%, var(--surface-2));
}

.note-template-canvas {
  min-height: 210px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, #ffffff);
  border-radius: var(--radius-xs);
  background: #f8fafc;
  color: #0f172a;
  padding: 16px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  outline: none;
}

.note-template-canvas:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.note-template-canvas h3,
.note-template-canvas h4,
.note-template-canvas p {
  margin: 0 0 10px;
}

.note-template-canvas table {
  margin: 0 0 12px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.note-template-canvas th,
.note-template-canvas td {
  border: 1px solid #cbd5e1;
  padding: 7px 9px;
}

.note-template-canvas th {
  background: #e2e8f0;
  text-align: left;
}

.note-template-token-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 54%, #94a3b8);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 17%, #eff6ff);
  color: #0f172a;
  padding: 1px 7px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.activity-pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.activity-pack-actions .count-pill.danger {
  border-color: color-mix(in srgb, var(--danger) 56%, var(--line));
  color: color-mix(in srgb, var(--danger) 74%, var(--ink));
}

.activity-studio-prompt-manager {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.activity-studio-locked-field input:disabled {
  opacity: 1;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}

.activity-studio-number-control em {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-style: normal;
  white-space: nowrap;
}

.activity-studio-prompt-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 12px;
}

.activity-studio-prompt-preview ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  line-height: 1.35;
}

.activity-studio-prompt-preview li {
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-top: 6px;
}

.account-definition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-definition-list span,
.account-template-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  padding: 10px;
}

.account-template-section {
  display: grid;
  gap: 8px;
}

.account-template-editor {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 12px;
}

.account-template-editor-section {
  display: grid;
  gap: 8px;
}

.account-template-editor-section > strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.account-template-editor-row,
.account-template-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(92px, 0.55fr) auto;
  gap: 8px;
  align-items: end;
}

.account-template-editor-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding: 8px;
}

.account-template-editor-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 800;
}

.account-template-editor label {
  display: grid;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-template-editor input,
.account-template-editor select {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--bg) 72%, black);
  color: var(--ink);
  min-height: 38px;
  padding: 0 10px;
  font: inherit;
  text-transform: none;
}

.account-template-editor .check-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}

.account-template-editor .check-option input {
  min-height: auto;
}

.account-settings-cloud-card {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 52%),
    color-mix(in srgb, var(--surface) 84%, transparent);
}

.account-settings-cloud-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.account-settings-cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-backup-list .empty-state {
  min-height: auto;
}

.account-backup-list .class-file-row {
  box-shadow: none;
}

@media (max-width: 960px) {
  .account-settings-header,
.account-settings-layout {
    grid-template-columns: 1fr;
  }

  .activity-studio-savebar {
    justify-content: flex-start;
  }

  .account-settings-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    position: static;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .account-settings-pane {
    padding: 18px;
  }

  .account-settings-summary-grid,
.account-settings-card-grid,
.account-definition-list,
.account-activity-row {
    grid-template-columns: 1fr;
  }

  .account-activity-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .account-settings-status-label {
    max-width: none;
  }
}

/* Release 0.6.26 visual-discipline pass.
   This layer applies the AI-slop/SaaS audit lessons: fewer permanent cards,
less exposed metadata,
quieter chrome,
and details only when the task needs them. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 12px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 178px;
  border-color: color-mix(in srgb, var(--line) 78%, var(--ink) 8%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
  box-shadow: none;
  padding: 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line-strong));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent);
  transform: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-top {
  align-items: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-2));
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
  box-shadow: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-status {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main {
  gap: 7px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main h3 {
  font-size: 1rem;
  text-transform: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-copy h3 {
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-meta,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-details {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 740;
  line-height: 1.25;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-details {
  opacity: 0.82;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main .muted {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions {
  justify-content: flex-start;
  border-top: 0;
  padding-top: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions .secondary-button {
  min-height: 32px;
  padding-inline: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-section-note {
  border: 0;
  background: transparent;
  padding: 6px 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .compact-store-scaffold {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 0;
  border-color: color-mix(in srgb, var(--line) 64%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  box-shadow: none;
  padding: 12px 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .compact-store-scaffold .activity-store-copy {
  gap: 3px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .compact-store-scaffold .activity-kicker {
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .compact-store-scaffold .activity-store-copy h3 {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.18;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .compact-store-scaffold .activity-store-copy p {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 54%, transparent);
  padding: 2px 8px;
  white-space: nowrap;
}

/* Installed activities should read like installed apps,
not SDK brochures. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 16px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card {
  --activity-a: #0e7c71;
  --activity-b: #b48a32;
  --activity-c: #72dfc2;
  display: grid;
  grid-template-rows: 94px minmax(82px, 1fr) auto;
  gap: 0;
  min-height: 234px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  padding: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-activity-id="wins"] {
  --activity-a: #0e7c71;
  --activity-b: #b48a32;
  --activity-c: #75e0bd;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-activity-id="discussion"] {
  --activity-a: #5e5abf;
  --activity-b: #26a0a7;
  --activity-c: #f0cf6a;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-activity-id="thinkFast"] {
  --activity-a: #16826d;
  --activity-b: #486bd8;
  --activity-c: #d7e86a;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-activity-id="neverMet"] {
  --activity-a: #6f4fc7;
  --activity-b: #c45c7d;
  --activity-c: #6ee0c8;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-activity-id="takeaways"] {
  --activity-a: #9e7a23;
  --activity-b: #1b8a74;
  --activity-c: #f4c96b;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-activity-id="extraCredit"] {
  --activity-a: #bf5743;
  --activity-b: #7c57c2;
  --activity-c: #f1b66f;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card[data-activity-id="presentations"] {
  --activity-a: #35556f;
  --activity-b: #a87d3d;
  --activity-c: #90c8df;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 94px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 32%, color-mix(in srgb, var(--activity-c) 64%, transparent) 0 18%, transparent 19%),
    radial-gradient(circle at 22% 78%, color-mix(in srgb, #ffffff 22%, transparent) 0 2px, transparent 3px 100%),
    repeating-radial-gradient(circle at 14% 84%, transparent 0 13px, color-mix(in srgb, #ffffff 14%, transparent) 14px 15px, transparent 16px 28px),
    linear-gradient(135deg, color-mix(in srgb, var(--activity-a) 92%, #061015), color-mix(in srgb, var(--activity-b) 88%, #ffffff));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, #ffffff 9%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, #ffffff 7%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 74% 34%, #000 0 42%, transparent 68%);
  opacity: 0.58;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border: 1px solid color-mix(in srgb, #ffffff 28%, transparent);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 18px color-mix(in srgb, #ffffff 6%, transparent),
    0 0 0 14px color-mix(in srgb, #ffffff 5%, transparent);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, #ffffff 34%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, #071016 22%, transparent);
  color: #ffffff;
  box-shadow: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-status {
  position: relative;
  z-index: 1;
  color: color-mix(in srgb, #ffffff 82%, transparent);
  font-size: 0.7rem;
  font-weight: 820;
  line-height: 1;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 20px 18px 18px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.08;
  text-transform: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main .muted {
  display: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding: 12px 18px 16px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions .secondary-button {
  min-height: 34px;
  border-radius: 7px;
  padding-inline: 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .workspace {
  padding-top: clamp(34px, 4vw, 64px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-toolbar {
  border-bottom-color: var(--rostra-border);
  padding-bottom: 24px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .class-file-row:hover {
  transform: translateY(-1px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-section-actions {
  justify-content: flex-start;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 14px;
}

/* Theme-agnostic geometry for the dashboard activity card. Themes set paint
   only; this block owns the shared layout for both Academic and Broadcast. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card {
  grid-template-rows: 104px minmax(82px, 1fr) auto;
  min-height: 226px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art {
  min-height: 104px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art::before {
  inset: 18px 16px auto 80px;
  height: 52px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art::after {
  right: 24px;
  bottom: 20px;
  width: 72px;
  height: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph {
  width: 48px;
  height: 48px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph .rostra-icon {
  width: 28px;
  height: 28px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main {
  padding: 16px 16px 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions {
  min-height: 48px;
  padding: 10px 16px 14px;
}

.account-settings-card {
  padding: 22px;
}

body.screen-class-home .class-dashboard-header {
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: start;
  gap: 24px;
}

body.screen-class-home .dashboard-launch-panel {
  justify-self: end;
  width: auto;
  min-width: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: none;
}

body.screen-class-home .class-dashboard-title {
  align-self: start;
  gap: 0;
  max-width: 100%;
}

body.screen-class-home .class-dashboard-title h1 {
  display: block;
  max-width: min(560px, 100%);
  overflow: hidden;
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 0.98;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

body.screen-class-home .class-analytics-disclosure {
  display: grid;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: none;
  overflow: hidden;
}

body.screen-class-home .class-analytics-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

body.screen-class-home .class-analytics-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.screen-class-home .class-analytics-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.screen-class-home .class-analytics-title strong {
  color: var(--ink);
  font-size: 1rem;
}

body.screen-class-home .class-analytics-title small {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

body.screen-class-home .class-analytics-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.screen-class-home .class-analytics-stats span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

body.screen-class-home .class-analytics-stats strong {
  color: var(--ink);
  font-size: 0.94rem;
}

body.screen-class-home .class-analytics-disclosure:not([open]) .progress-card-grid {
  display: none;
}

body.screen-class-home .class-analytics-disclosure[open] .progress-card-grid {
  padding: 0 14px 14px;
}

body.screen-class-home .progress-card {
  min-height: 0;
  border-radius: 10px;
  box-shadow: none;
}

body.screen-class-home .progress-chart {
  min-height: 96px;
}

body.screen-class-home .class-session-panel,
body.screen-class-home .session-file-row {
  box-shadow: none;
}

body.screen-report .report-panel,
body.screen-report .report-student-inspector,
body.screen-report .report-edit-panel {
  box-shadow: none;
}

body.screen-report .report-panel {
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

body.screen-report .report-workbench-grid {
  gap: 12px;
}

body.screen-report .report-student-table {
  gap: 2px;
}

body.screen-report .report-student-table .table-header {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.screen-report .report-student-table .report-student-row:not(.selected) {
  border-color: color-mix(in srgb, var(--line) 70%, transparent) !important;
  border-left-color: color-mix(in srgb, var(--line) 70%, transparent) !important;
  background: color-mix(in srgb, var(--surface-2) 64%, transparent) !important;
  background-image: none !important;
  box-shadow: none;
}

body.screen-report .session-score-table .report-student-row:not(.selected),
body.screen-report .session-score-table .report-student-row:not(.selected) > [role="cell"],
body.screen-report .session-score-table .report-student-row:not(.selected) .report-student-select,
body.screen-report .session-score-table .report-student-row:not(.selected) .student-meta {
  border-color: color-mix(in srgb, var(--line) 70%, transparent) !important;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.screen-report .session-score-table .report-student-row:not(.selected) > [role="cell"] {
  border: 0 !important;
}

body.screen-report .report-student-table .report-student-row.selected {
  border-color: color-mix(in srgb, var(--red, var(--coral)) 62%, var(--line)) !important;
  border-left: 4px solid var(--red, var(--coral)) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--red, var(--coral)) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface) 92%, var(--red, var(--coral)) 8%) !important;
}

.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected),
.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected):hover,
.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected):focus-within {
  --scan-row-accent: color-mix(in srgb, var(--line) 88%, var(--ink-muted)) !important;
  --scan-row-bg: color-mix(in srgb, var(--surface-2) 70%, transparent) !important;
  --scan-row-wash: transparent !important;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent) !important;
  border-left-width: 1px !important;
  border-left-color: color-mix(in srgb, var(--line) 72%, transparent) !important;
  background: var(--scan-row-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected) > [role="cell"],
.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected) .report-student-select,
.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected) .student-meta,
.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected) .student-name,
.screen-active.screen-report .report-workbench-main .session-score-table .report-student-row:not(.selected) .student-id {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.screen-active.screen-report .report-workbench-main .session-score-table .report-square-action {
  border-color: color-mix(in srgb, var(--line) 82%, transparent) !important;
  background: color-mix(in srgb, var(--surface) 82%, var(--ink-muted) 4%) !important;
  color: var(--ink-muted) !important;
  box-shadow: none !important;
}

.screen-active.screen-report .report-workbench-main .session-score-table .report-square-action:hover,
.screen-active.screen-report .report-workbench-main .session-score-table .report-square-action:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line)) !important;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)) !important;
  color: var(--ink) !important;
}

body.screen-report .report-copy-cell .report-inline-actions,
.screen-active.screen-report .report-copy-cell .report-inline-actions {
  width: 100%;
  flex-direction: row;
  justify-content: center;
  gap: 5px;
}

body.screen-report .report-copy-cell .report-square-action,
.screen-active.screen-report .report-workbench-main .session-score-table .report-copy-cell .report-square-action {
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-color: color-mix(in srgb, var(--line-strong) 62%, transparent) !important;
  border-radius: var(--rostra-radius-sm, 6px) !important;
  color: #f7fbff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14) !important;
  line-height: 1 !important;
}

body.screen-report .report-copy-cell .report-square-action.copy,
.screen-active.screen-report .report-workbench-main .session-score-table .report-copy-cell .report-square-action.copy {
  border-color: color-mix(in srgb, var(--blue) 66%, var(--line-strong)) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%),
    color-mix(in srgb, var(--blue) 58%, var(--surface)) !important;
}

body.screen-report .report-copy-cell .report-square-action.stats,
.screen-active.screen-report .report-workbench-main .session-score-table .report-copy-cell .report-square-action.stats {
  border-color: color-mix(in srgb, var(--green) 66%, var(--line-strong)) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%),
    color-mix(in srgb, var(--green) 56%, var(--surface)) !important;
}

body.screen-report .report-copy-cell .report-square-action svg,
.screen-active.screen-report .report-copy-cell .report-square-action svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: inherit !important;
  stroke: currentColor !important;
  stroke-width: 2.6;
}

body.screen-report .report-copy-cell .report-square-action span,
.screen-active.screen-report .report-copy-cell .report-square-action span {
  display: none;
}

body.screen-report .report-copy-cell .report-square-action:hover,
body.screen-report .report-copy-cell .report-square-action:focus-visible,
.screen-active.screen-report .report-workbench-main .session-score-table .report-copy-cell .report-square-action:hover,
.screen-active.screen-report .report-workbench-main .session-score-table .report-copy-cell .report-square-action:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line-strong)) !important;
  color: #ffffff !important;
}

body.screen-report .report-student-select .student-id,
body.screen-report .report-cell-note {
  color: var(--ink-muted);
}

body.screen-report .report-inspector-nav {
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
}

body.screen-report .report-inspector-corrections .report-score-editor-stack {
  gap: 8px;
}

body.screen-report .report-inspector-corrections .report-score-editor-group {
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 54%, transparent);
  box-shadow: none;
}

body.screen-report .report-inspector-actions {
  max-width: 620px;
  margin-inline: auto;
  width: 100%;
}

body.screen-active .session-ticker {
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: none;
  overflow: hidden;
}

body.screen-active .session-ticker > summary {
  grid-template-columns: auto auto minmax(0, 1fr);
  min-height: 46px;
  padding: 10px 12px;
}

body.screen-active .session-ticker-title {
  font-size: 0.92rem;
}

body.screen-active .session-ticker-expanded {
  padding: 0 12px 12px;
}

body.screen-active .side-panel {
  width: clamp(260px, 20vw, 340px);
  padding: 14px;
}

body.screen-active .roster-drawer,
body.screen-active .roster-summary-board,
body.screen-active .roster-operator-sheet {
  box-shadow: none;
}

body.screen-active .roster-summary-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: transparent;
  padding: 0;
  border: 0;
}

body.screen-active .roster-summary-meter {
  min-height: 30px;
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
}

body.screen-active .roster-filter-banner {
  min-height: 34px;
}

body.screen-active .side-panel .roster-row {
  gap: 8px;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 56%, transparent);
  box-shadow: none;
}

body.screen-active .side-panel .roster-signal-cell {
  min-height: 0;
}

body.screen-active .side-panel .student-name {
  font-size: 0.9rem;
}

body.screen-active .side-panel .student-id {
  font-size: 0.76rem;
}

@media (max-width: 1160px) {
  body.screen-class-home .class-dashboard-header,
body.screen-class-home .class-analytics-disclosure > summary,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .compact-store-scaffold {
    grid-template-columns: 1fr;
  }

  body.screen-class-home .class-analytics-stats,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-status-line {
    justify-content: flex-start;
  }
}

/* Broadcast buildout: precise dark production desk,
with sparse Rostra signal striping. */
/* Phase 6: screen-specific surface reduction. Keep the same information
   architecture,
but make high-frequency screens quieter and denser. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card {
  grid-template-rows: 104px minmax(0, 1fr) auto;
  min-height: 226px;
  border-radius: var(--rostra-radius-md, 8px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art {
  min-height: 104px;
  align-items: center;
  padding: 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art::after {
  right: -24px;
  bottom: -30px;
  width: 112px;
  height: 112px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph {
  width: 48px;
  height: 48px;
  border-radius: var(--rostra-radius-md, 8px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph .rostra-icon {
  width: 28px;
  height: 28px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-status {
  position: relative;
  z-index: 1;
  font-size: 0.66rem;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main {
  align-content: start;
  gap: 5px;
  padding: 12px 12px 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main h3 {
  font-size: 0.98rem;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-meta {
  font-size: 0.74rem;
  font-weight: 720;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions {
  min-height: 44px;
  padding: 8px 10px 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions .secondary-button {
  width: 100%;
  min-height: 32px;
  justify-content: center;
  padding-inline: 8px;
  font-size: 0.8rem;
}

/* Activity library launcher: icon over name,
no card chrome. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 112px));
  justify-content: start;
  align-items: start;
  gap: 26px 30px;
  padding-top: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-item {
  min-width: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-item.archived {
  opacity: 0.58;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card {
  appearance: none;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card:hover,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 8px;
  border-radius: var(--rostra-radius-md, 8px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art {
  position: relative;
  width: 62px;
  min-height: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art::before,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-art::after {
  display: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border: 1px solid color-mix(in srgb, var(--activity-a, var(--accent)) 48%, var(--line-strong));
  border-radius: 10px;
  background:
    radial-gradient(circle at 74% 20%, color-mix(in srgb, var(--activity-c, var(--accent)) 18%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface-raised) 86%, transparent);
  color: var(--ink);
  box-shadow: none;
  display: grid;
  place-items: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph .rostra-icon {
  width: 34px;
  height: 34px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main {
  display: block;
  width: 100%;
  padding: 0;
  min-height: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-main h3,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-name {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-status,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-meta,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-details,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-actions {
  display: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card:hover .dashboard-activity-glyph {
  border-color: color-mix(in srgb, var(--activity-a, var(--accent)) 68%, var(--line-strong));
  background:
    radial-gradient(circle at 74% 20%, color-mix(in srgb, var(--activity-c, var(--accent)) 24%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface-raised) 92%, var(--activity-a, var(--accent)) 8%);
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card {
  grid-template-rows: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card,
:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card:hover {
  min-height: 0;
  border-color: transparent;
  background-color: transparent;
  background-image: none;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-art {
  width: 62px;
  min-height: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  overflow: visible;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-art::before,
:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-art::after {
  content: none;
  display: none;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-section-actions {
  justify-content: flex-end;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 112px));
  justify-content: start;
  gap: 26px 30px;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card-main {
  padding: 0;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-glyph {
  width: 62px;
  height: 62px;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-glyph .rostra-icon {
  width: 34px;
  height: 34px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .compact-store-scaffold {
  min-height: 0;
  padding: 10px 12px;
}

body.screen-class-home .dashboard-launch-panel {
  flex-wrap: nowrap;
  align-items: end;
  gap: 6px;
  border-radius: var(--rostra-radius-md, 8px);
  padding: 8px;
}

body.screen-class-home .dashboard-launch-panel .compact-date-control {
  flex: 0 0 142px;
  min-width: 142px;
}

body.screen-class-home .dashboard-launch-panel .session-type-control {
  flex: 0 0 174px;
}

body.screen-class-home .dashboard-launch-panel .evaluation-series-control,
body.screen-class-home .dashboard-launch-panel .presentation-title-control {
  flex: 1 1 188px;
}

body.screen-class-home .dashboard-launch-panel .date-control {
  gap: 3px;
}

body.screen-class-home .dashboard-launch-panel .date-control span {
  font-size: 0.66rem;
}

body.screen-class-home .dashboard-launch-panel input,
body.screen-class-home .dashboard-launch-panel select,
body.screen-class-home .dashboard-launch-panel .class-settings-button,
body.screen-class-home .dashboard-launch-panel .dashboard-open-latest-button,
body.screen-class-home .dashboard-launch-panel .go-live-button {
  min-height: 40px;
  font-size: 0.84rem;
}

body.screen-class-home .dashboard-launch-panel .class-settings-button,
body.screen-class-home .dashboard-launch-panel .go-live-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  min-height: 40px;
  padding-inline: 0;
}

body.screen-class-home .dashboard-launch-panel .class-settings-button .rostra-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

body.screen-report .report-panel {
  padding: 14px;
}

body.screen-report .report-workbench-grid {
  align-items: start;
}

body.screen-report .report-workbench-side {
  gap: 10px;
}

body.screen-report .report-student-inspector {
  gap: 10px;
  padding: 12px;
}

body.screen-report .report-student-inspector.empty {
  min-height: 148px;
}

body.screen-report .report-inspector-header {
  gap: 10px;
  align-items: center;
}

body.screen-report .report-inspector-student {
  min-width: 0;
}

body.screen-report .report-inspector-name-line {
  gap: 6px;
}

body.screen-report .report-inspector-score {
  min-width: 88px;
  padding: 8px 10px;
}

body.screen-report .report-inspector-score span {
  font-size: 0.62rem;
}

body.screen-report .report-inspector-score strong {
  font-size: 1.35rem;
}

body.screen-report .report-inspector-nav {
  min-height: 34px;
  padding: 5px 0;
  font-size: 0.74rem;
}

body.screen-report .report-inspector-corrections .report-score-editor-stack {
  gap: 6px;
}

body.screen-report .report-inspector-corrections .report-score-editor-group {
  border-radius: var(--rostra-radius-md, 8px);
  padding: 8px;
}

body.screen-report .report-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
}

body.screen-report .report-inspector-actions .primary-button,
body.screen-report .report-inspector-actions .secondary-button,
body.screen-report .report-inspector-footer .primary-button,
body.screen-report .report-inspector-footer .secondary-button {
  min-height: 34px;
}

body.screen-report .report-edit-grid,
body.screen-report .presentation-detail-grid,
body.screen-report .presentation-report-penalty-grid,
body.screen-report .report-inspector-summary {
  gap: 8px;
}

body.screen-report .report-breakdown-row {
  min-height: 0;
  padding: 8px 10px;
}

body.screen-report .report-breakdown-row strong {
  font-size: 0.95rem;
}

body.screen-report .report-breakdown-row small {
  line-height: 1.25;
}

body.screen-active .session-ticker {
  border-radius: var(--rostra-radius-md, 8px);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

body.screen-active .side-panel {
  width: clamp(250px, 18vw, 320px);
  padding: 12px;
}

body.screen-active .roster-summary-meter {
  min-height: 28px;
  padding: 4px 7px;
}

body.screen-active .roster-filter-banner {
  min-height: 30px;
  padding: 5px 8px;
}

body.screen-active .side-panel .roster-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(94px, 0.58fr);
  gap: 6px;
  border-radius: var(--rostra-radius-md, 8px);
  padding: 7px;
}

body.screen-active .side-panel .roster-signal-cell {
  max-width: 72px;
  justify-content: end;
}

body.screen-active .side-panel .student-name {
  font-size: 0.88rem;
}

body.screen-active .side-panel .student-id {
  font-size: 0.72rem;
}

body.screen-active .side-panel .roster-status-select select {
  min-height: 32px;
  padding-inline: 8px;
  font-size: 0.78rem;
}

body.screen-active .tf-program-monitor,
body.screen-active .program-card,
body.screen-active .live-deck,
body.screen-active .timer-card,
body.screen-active .tf-instrument,
body.screen-active .speaker-tracking-card,
body.screen-active .presence-console-card,
body.screen-active .operator-queue,
body.screen-active .discussion-brief-card,
body.screen-active .discussion-grid.operator-table {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 64%, transparent));
  box-shadow: none;
}

body.screen-active .flow-actions,
body.screen-active .timer-actions,
body.screen-active .timer-turn-nav,
body.screen-active .filler-instrument,
body.screen-active .prompt-dock,
body.screen-active .field-row.prompt-command-row,
body.screen-active .presence-buttons {
  background: color-mix(in srgb, var(--surface-2) 58%, transparent);
  box-shadow: none;
}

body.screen-active .live-deck {
  padding: clamp(12px, 1.2vw, 18px);
}

@media (max-width: 1160px) {
  body.screen-class-home .dashboard-launch-panel {
    flex-wrap: wrap;
  }
}

body.screen-active .rating-button.active,
body.screen-active .presence-current.set {
  border-color: color-mix(in srgb, var(--green) 78%, var(--line-strong)) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--green) 28%, transparent), transparent),
    color-mix(in srgb, var(--green) 22%, var(--surface-3)) !important;
  color: var(--ink) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--green) 48%, transparent),
    0 0 0 2px color-mix(in srgb, var(--green) 18%, transparent) !important;
}

body.screen-active .rating-button.rating-awesome { --rating-accent: var(--green); }
body.screen-active .rating-button.rating-great { --rating-accent: var(--blue); }
body.screen-active .rating-button.rating-good { --rating-accent: var(--amber); }
body.screen-active .rating-button.rating-okay { --rating-accent: #5ba7ff; }
body.screen-active .rating-button.rating-not-okay { --rating-accent: #f97316; }
body.screen-active .rating-button.rating-bad { --rating-accent: var(--coral); }

body.screen-active .rating-button.active:is(.rating-awesome, .rating-great, .rating-good, .rating-okay, .rating-not-okay, .rating-bad) {
  border-color: color-mix(in srgb, var(--rating-accent) 78%, var(--line-strong)) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rating-accent) 30%, transparent), transparent),
    color-mix(in srgb, var(--rating-accent) 22%, var(--surface-3)) !important;
  color: var(--ink) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rating-accent) 50%, transparent),
    0 0 0 2px color-mix(in srgb, var(--rating-accent) 18%, transparent) !important;
}

/* Session Report redesign: report-native review controls, not live hardware controls. */
body.screen-report .session-score-inspector {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  max-height: min(900px, calc(100dvh - var(--studio-bar-height, 76px) - 76px));
  padding: 0;
  overflow: hidden;
}

body.screen-report .session-score-inspector .report-inspector-fixed {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

body.screen-report .session-score-inspector .report-review-fixed {
  --report-review-control-size: 48px;
  --report-review-control-gap: 6px;
  --report-review-control-radius: var(--rostra-radius-sm, 6px);
  padding: 10px 12px;
}

body.screen-report .report-review-bar {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1fr) auto;
  gap: var(--report-review-control-gap);
  align-items: center;
  min-width: 0;
}

body.screen-report .report-review-student,
body.screen-report .report-review-total {
  box-sizing: border-box;
  height: var(--report-review-control-size);
  min-height: var(--report-review-control-size);
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--report-review-control-radius);
  background: color-mix(in srgb, var(--surface-2) 56%, transparent);
}

body.screen-report .report-review-student {
  align-content: center;
  gap: 4px;
}

body.screen-report .report-review-eyebrow,
body.screen-report .report-review-control-label,
body.screen-report .report-review-position span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.1;
}

body.screen-report .report-review-student .student-name {
  font-size: 1rem;
  line-height: 1.08;
}

body.screen-report .report-review-total-nav {
  display: flex;
  gap: var(--report-review-control-gap);
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
}

body.screen-report .report-review-total {
  align-content: center;
  min-width: 82px;
  text-align: right;
}

body.screen-report .report-review-total strong {
  font-size: 1.34rem;
}

body.screen-report .report-review-nav {
  display: flex;
  flex: 0 0 auto;
  gap: var(--report-review-control-gap);
  height: var(--report-review-control-size);
  min-height: var(--report-review-control-size);
  padding: 0;
  border: 0;
  background: transparent;
}

body.screen-report .report-review-nav-button,
body.screen-report .report-review-position {
  box-sizing: border-box;
  height: var(--report-review-control-size);
  min-height: var(--report-review-control-size);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: var(--report-review-control-radius);
  background: color-mix(in srgb, var(--surface-2) 58%, transparent);
  box-shadow: none;
}

body.screen-report .report-review-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--report-review-control-size);
  min-width: var(--report-review-control-size);
  padding: 0;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 860;
}

body.screen-report .report-review-nav-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
}

body.screen-report .report-review-nav-button:not(:disabled):hover,
body.screen-report .report-review-nav-button:not(:disabled):focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

body.screen-report .report-review-position {
  display: none;
  place-items: center;
  gap: 2px;
  padding: 6px 10px;
  text-align: center;
}

body.screen-report .report-review-position strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 860;
  line-height: 1.1;
}

body.screen-report .report-review-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--report-review-control-gap);
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
}

body.screen-report .report-review-control-group {
  display: grid;
  gap: 0;
  min-width: 0;
}

body.screen-active.screen-report .report-review-copy-actions,
body.screen-report .report-review-copy-actions {
  display: grid;
  grid-template-columns: repeat(2, var(--report-review-control-size));
  gap: var(--report-review-control-gap);
  width: auto;
  max-width: none;
  margin: 0;
}

body.screen-report .report-review-copy-actions .report-inspector-copy-button {
  box-sizing: border-box;
  display: inline-grid;
  grid-template-rows: auto auto;
  gap: 2px;
  align-items: center;
  justify-content: center;
  width: var(--report-review-control-size);
  min-width: var(--report-review-control-size);
  height: var(--report-review-control-size);
  min-height: var(--report-review-control-size);
  padding: 5px 4px 4px;
  border-radius: var(--report-review-control-radius);
  color: #f7fbff;
  font-size: 0.58rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
}

body.screen-report .report-review-copy-actions .report-inspector-copy-button[data-action="copy-report-score"] {
  border-color: color-mix(in srgb, var(--blue) 66%, var(--line-strong));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%),
    color-mix(in srgb, var(--blue) 58%, var(--surface));
}

body.screen-report .report-review-copy-actions .report-inspector-copy-button[data-action="copy-report-feedback"] {
  border-color: color-mix(in srgb, var(--green) 66%, var(--line-strong));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%),
    color-mix(in srgb, var(--green) 56%, var(--surface));
}

body.screen-report .report-review-copy-actions .report-inspector-copy-button span {
  display: block;
  color: inherit;
  font-family: var(--font-label);
  font-size: 0.56rem;
  font-weight: 860;
  letter-spacing: 0;
}

body.screen-report .report-review-copy-actions .report-inspector-copy-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2.55;
  justify-self: center;
}

body.screen-report .report-inspector-copy-button svg,
body.screen-report .report-inspector-copy-button svg *,
body.screen-report .report-copy-cell .report-square-action svg,
body.screen-report .report-copy-cell .report-square-action svg * {
  fill: none !important;
}

body.screen-report .report-review-attendance-group .report-session-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.screen-report .report-review-attendance-group .report-edit-field {
  box-sizing: border-box;
  position: relative;
  width: 134px;
  height: var(--report-review-control-size);
  gap: 0;
}

body.screen-report .report-review-attendance-group .report-edit-field > span {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 10px;
  pointer-events: none;
}

body.screen-report .report-review-save-group {
  display: flex;
  align-items: stretch;
  gap: var(--report-review-control-gap);
}

body.screen-report .report-review-save-group .report-inspector-state-row {
  align-items: stretch;
  min-height: var(--report-review-control-size);
}

body.screen-report .report-review-save-group .report-inspector-footer {
  display: grid;
  grid-template-columns: repeat(2, 72px);
  gap: var(--report-review-control-gap);
  flex-wrap: nowrap;
  margin-left: 0;
}

body.screen-report .report-review-save-group .report-clean-note {
  display: none;
}

body.screen-report .report-review-save-group .report-unsaved-note {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: var(--report-review-control-size);
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-radius: var(--report-review-control-radius);
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
  white-space: nowrap;
}

body.screen-report .report-review-save-group .report-inspector-footer button,
body.screen-report .report-review-attendance-group .report-edit-field select {
  box-sizing: border-box;
  min-height: var(--report-review-control-size);
  height: var(--report-review-control-size);
  border-radius: var(--report-review-control-radius);
  white-space: nowrap;
}

body.screen-report .report-review-save-group .report-inspector-footer button {
  width: 72px;
  min-width: 72px;
  padding: 0 8px;
}

body.screen-report .report-review-save-group [data-action="apply-report-inspector"] {
  font-size: 0;
}

body.screen-report .report-review-save-group [data-action="apply-report-inspector"]::after {
  content: "Apply";
  font-size: 0.8rem;
}

body.screen-report .report-review-attendance-group .report-edit-field select {
  padding: 18px 26px 6px 10px;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%),
    color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  font-weight: 800;
}

body.screen-report .session-score-inspector .report-inspector-corrections {
  min-height: 0;
  padding: 10px 12px 12px;
  overflow: auto;
  overscroll-behavior: contain;
}

body.screen-report .report-inspector-score.changed strong,
body.screen-report .report-activity-subtotal.changed strong {
  color: var(--ink);
}

body.screen-report .report-inspector-score em,
body.screen-report .report-activity-subtotal em {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

body.screen-report .report-session-fields {
  display: grid;
  grid-template-columns: minmax(160px, 220px);
  gap: 8px;
}

body.screen-report .report-inspector-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

body.screen-report .report-clean-note {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body.screen-report .session-score-inspector .report-inspector-footer {
  margin-left: auto;
}

body.screen-report .session-score-inspector .report-inspector-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body.screen-report .report-correction-heading {
  margin-bottom: 4px;
}

body.screen-report .report-activity-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.screen-report .report-activity-block {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
  background: transparent;
}

body.screen-report .report-activity-block:first-child {
  padding-top: 0;
}

body.screen-report .report-activity-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.screen-report .report-activity-block.changed {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
}

body.screen-report .report-activity-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

body.screen-report .report-activity-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.screen-report .report-activity-title h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.05;
}

body.screen-report .report-activity-title span,
body.screen-report .report-activity-subtotal span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body.screen-report .report-activity-subtotal {
  display: grid;
  gap: 2px;
  min-width: 74px;
  text-align: right;
}

body.screen-report .report-activity-subtotal strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

body.screen-report .report-activity-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
  align-items: end;
}

body.screen-report .report-evidence-correction {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--amber) 46%, var(--line));
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}

body.screen-report .report-evidence-correction div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.screen-report .report-evidence-correction strong {
  color: color-mix(in srgb, var(--amber) 72%, var(--ink));
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.1;
}

body.screen-report .report-evidence-correction span {
  color: var(--ink-muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

body.screen-report .report-evidence-correction-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border-color: color-mix(in srgb, var(--amber) 54%, var(--line));
  color: color-mix(in srgb, var(--amber) 64%, var(--ink));
  white-space: nowrap;
}

body.screen-report .report-activity-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

body.screen-report .report-edit-field,
body.screen-report .report-edit-stepper {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.screen-report .report-edit-field > span,
body.screen-report .report-edit-stepper > span {
  color: var(--ink-muted);
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body.screen-report .report-edit-field.changed > span,
body.screen-report .report-edit-stepper.changed > span {
  color: color-mix(in srgb, var(--green) 72%, var(--ink));
}

body.screen-report .report-edit-field select {
  min-height: 32px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-2) 54%, var(--surface));
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 720;
  box-shadow: none;
}

body.screen-report .report-edit-field.changed select {
  border-color: color-mix(in srgb, var(--green) 56%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
}

body.screen-report .report-edit-stepper.changed .report-stepper-button,
body.screen-report .report-edit-stepper.changed .report-stepper-value {
  border-color: color-mix(in srgb, var(--green) 50%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}

body.screen-report .report-stepper-control {
  display: grid;
  grid-template-columns: 30px minmax(46px, 1fr) 30px;
  gap: 4px;
  align-items: stretch;
  min-width: 0;
}

body.screen-report .report-stepper-button {
  min-width: 0;
  min-height: 32px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-2) 60%, var(--surface));
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: none;
}

body.screen-report .report-stepper-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

body.screen-report .report-stepper-value {
  display: grid;
  place-items: center;
  min-height: 32px;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-2) 48%, var(--surface));
  box-shadow: none;
}

body.screen-report .report-stepper-value span {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
}

body.screen-report .report-stepper-value small {
  color: var(--ink-muted);
  font-size: 0.56rem;
  font-weight: 780;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  body.screen-report .session-score-inspector {
    max-height: min(760px, calc(100dvh - 96px));
    overflow: hidden;
  }

  body.screen-report .session-score-inspector .report-inspector-corrections {
    min-height: 0;
    overflow: auto;
  }
}

/* Session Report readability pass: keep corrections visible, but make the review feel approachable. */
body.screen-report .session-score-inspector .report-edit-panel.report-score-editor {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.screen-report .report-correction-heading {
  align-items: center;
  margin: 0 0 10px;
  padding: 0 2px;
}

body.screen-report .report-correction-heading h2 {
  font-size: 1rem;
  line-height: 1.1;
}

body.screen-report .report-correction-heading .muted-count {
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

body.screen-report .report-activity-stack {
  gap: 10px;
}

body.screen-report .report-activity-block {
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: var(--rostra-radius-md, 8px);
  background: color-mix(in srgb, var(--surface-2) 48%, var(--surface));
}

body.screen-report .report-activity-block:first-child {
  padding-top: 12px;
}

body.screen-report .report-activity-block:last-child {
  padding-bottom: 12px;
}

body.screen-report .report-activity-block.changed {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-2) 52%, var(--surface));
}

body.screen-report .report-activity-header {
  align-items: center;
}

body.screen-report .report-activity-title h3 {
  font-size: 1.05rem;
  line-height: 1.1;
}

body.screen-report .report-activity-title span,
body.screen-report .report-activity-subtotal span,
body.screen-report .report-edit-field > span,
body.screen-report .report-edit-stepper > span {
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

body.screen-report .report-activity-title span {
  color: color-mix(in srgb, var(--ink-muted) 92%, var(--ink));
}

body.screen-report .report-activity-subtotal {
  min-width: 106px;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

body.screen-report .report-activity-subtotal strong {
  font-size: 1.1rem;
}

body.screen-report .report-activity-subtotal em {
  margin-top: 2px;
  font-size: 0.9rem;
}

body.screen-report .report-activity-fields {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

body.screen-report .report-activity-field {
  min-width: 0;
}

body.screen-report .report-edit-field,
body.screen-report .report-edit-stepper {
  gap: 6px;
}

body.screen-report .report-edit-field select {
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.86rem;
  font-weight: 760;
}

body.screen-report .report-toggle-body {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: stretch;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  overflow: hidden;
}

body.screen-report .report-toggle-body input {
  width: 100%;
  min-height: 40px;
  margin: 0;
  accent-color: var(--green);
  border-right: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

body.screen-report .report-toggle-body > span {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 5px 10px;
}

body.screen-report .report-toggle-body strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.05;
}

body.screen-report .report-toggle-body small {
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1;
}

body.screen-report .report-stepper-control {
  grid-template-columns: 40px minmax(82px, 1fr) 40px;
  gap: 6px;
}

body.screen-report .report-stepper-button {
  min-height: 40px;
  font-size: 1.08rem;
}

body.screen-report .report-stepper-value {
  min-height: 40px;
}

body.screen-report .report-stepper-value span {
  font-size: 1.02rem;
}

body.screen-report .report-stepper-value small {
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1320px) {
  body.screen-active.screen-report .report-workbench-grid,
  body.screen-report .report-workbench-grid {
    grid-template-columns: 1fr;
  }

  body.screen-active.screen-report .report-workbench-side,
  body.screen-active.screen-report .report-student-inspector,
  body.screen-report .report-workbench-side,
  body.screen-report .report-student-inspector {
    position: static;
    max-height: none;
    overflow: visible;
  }

  body.screen-active.screen-report .report-student-inspector.session-score-inspector,
  body.screen-report .report-student-inspector.session-score-inspector {
    max-height: min(760px, calc(100dvh - 96px));
  }

  body.screen-report .report-activity-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  body.screen-report .report-review-controls {
    grid-template-columns: auto minmax(132px, 0.62fr) minmax(212px, auto);
  }

  body.screen-active.screen-report .report-review-copy-actions,
  body.screen-report .report-review-copy-actions {
    grid-template-columns: repeat(2, 38px);
    justify-content: start;
  }

  body.screen-report .report-review-copy-actions .report-inspector-copy-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  body.screen-report .report-review-copy-actions .report-inspector-copy-button span {
    display: none;
  }
}

@media (max-width: 900px) {
  body.screen-report .report-review-bar {
    grid-template-columns: 1fr;
  }

  body.screen-report .report-review-total-nav {
    justify-content: stretch;
  }

  body.screen-report .report-review-total {
    flex: 1 1 auto;
  }

  body.screen-report .report-review-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  body.screen-report .report-review-save-group .report-inspector-state-row,
  body.screen-report .report-review-save-group .report-inspector-footer {
    justify-content: stretch;
  }

  body.screen-report .report-review-save-group .report-inspector-footer button {
    flex: 1 1 auto;
  }
}

@media (max-width: 1080px) {
  body.screen-active.screen-report .session-score-inspector,
  body.screen-report .session-score-inspector {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(760px, calc(100dvh - 96px));
    overflow: hidden;
  }

  body.screen-active.screen-report .session-score-inspector .report-inspector-corrections,
  body.screen-report .session-score-inspector .report-inspector-corrections {
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 620px) {
  body.screen-report .report-review-bar,
  body.screen-report .report-review-nav,
  body.screen-report .report-review-controls,
  body.screen-report .report-review-copy-actions {
    grid-template-columns: 1fr;
  }

  body.screen-report .report-review-total {
    text-align: left;
  }

  body.screen-report .report-activity-header {
    grid-template-columns: 1fr;
  }

  body.screen-report .report-activity-subtotal {
    min-width: 0;
    text-align: left;
  }
}

/* Keep the selected student's activity review scrollable inside the inspector. */
body.screen-active.screen-report .report-student-inspector.session-score-inspector,
body.screen-report .report-student-inspector.session-score-inspector {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(900px, calc(100dvh - var(--studio-bar-height, 76px) - 76px));
  overflow: hidden;
}

body.screen-active.screen-report .report-student-inspector.session-score-inspector .report-inspector-corrections,
body.screen-report .report-student-inspector.session-score-inspector .report-inspector-corrections {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (max-width: 1080px) {
  body.screen-active.screen-report .report-student-inspector.session-score-inspector,
  body.screen-report .report-student-inspector.session-score-inspector {
    max-height: min(760px, calc(100dvh - 96px));
  }
}

/* Session Report score list tabs: planned and optional rows share the score chooser. */
body.screen-report .report-score-list-panel {
  display: grid;
  gap: 10px;
}

body.screen-report .report-score-list-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 0;
}

body.screen-report .report-score-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.screen-report .report-score-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

body.screen-report .report-toolbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  max-width: 112px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 52%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-2) 80%, var(--surface));
  color: color-mix(in srgb, var(--ink-muted) 82%, var(--ink));
  box-shadow: none;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 120ms ease;
}

body.screen-report .report-toolbar-action svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.screen-report .report-toolbar-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.screen-report .report-toolbar-action:hover,
body.screen-report .report-toolbar-action:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line-strong));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--ink);
}

body.screen-report .report-toolbar-action:active {
  transform: translateY(1px);
}

body.screen-report .report-score-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-2) 60%, var(--surface));
}

body.screen-report .report-score-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: left;
}

body.screen-report .report-score-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.screen-report .report-score-tab strong {
  display: grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-muted) 14%, transparent);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
}

body.screen-report .report-score-tab:hover,
body.screen-report .report-score-tab:focus-visible {
  border-color: color-mix(in srgb, var(--line-strong) 72%, transparent);
  color: var(--ink);
}

body.screen-report .report-score-tab.active {
  border-color: color-mix(in srgb, var(--ink) 88%, var(--line));
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 20%, transparent);
}

body.screen-report .report-score-tab.active strong {
  background: color-mix(in srgb, var(--surface) 22%, transparent);
}

body.screen-report .report-score-list-tabpanel {
  min-width: 0;
}

body.screen-report .report-score-list-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 138px;
  padding: 18px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-2) 36%, var(--surface));
  color: var(--ink-muted);
  text-align: center;
}

body.screen-report .report-score-list-empty strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1.1;
}

body.screen-report .report-score-list-empty span {
  max-width: 24ch;
  font-size: 0.72rem;
  line-height: 1.25;
}

body.screen-report .report-activity-row-label {
  display: block;
  margin-top: 2px;
  color: color-mix(in srgb, var(--ink-muted) 88%, var(--ink));
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* SDK activity accents: activities expose identity, themes decide contrast. */
body.screen-active .nav-button[data-nav-activity] {
  border-color: color-mix(in srgb, var(--activity-accent, var(--accent)) 24%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--activity-accent, var(--accent)) 15%, transparent), transparent 68%),
    color-mix(in srgb, var(--activity-accent, var(--accent)) 8%, var(--surface-2));
  color: color-mix(in srgb, var(--activity-accent, var(--accent)) 30%, var(--ink-soft));
}

body.screen-active .nav-button[data-nav-activity]::after {
  background: var(--activity-accent, var(--accent));
  opacity: 0.72;
}

body.screen-active .nav-button[data-nav-activity] .nav-icon {
  border-color: color-mix(in srgb, var(--activity-accent, var(--accent)) 38%, var(--line));
  background: color-mix(in srgb, var(--activity-accent, var(--accent)) 13%, var(--surface));
  color: color-mix(in srgb, var(--activity-accent, var(--accent)) 78%, var(--ink));
}

body.screen-active .nav-button[data-nav-activity]:hover:not(.active) {
  border-color: color-mix(in srgb, var(--activity-accent, var(--accent)) 42%, var(--line-strong));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--activity-accent, var(--accent)) 20%, transparent), transparent 70%),
    color-mix(in srgb, var(--activity-accent, var(--accent)) 12%, var(--surface-raised));
  color: var(--ink);
}

body.screen-active .nav-button[data-nav-activity].active,
body.screen-active .nav-button.nav-button-report.active {
  border-color: color-mix(in srgb, var(--rostra-accent, var(--accent)) 72%, var(--line));
  background: var(--rostra-accent, var(--accent));
  color: var(--rostra-canvas, var(--bg));
  box-shadow: var(--control-shadow);
}

body.screen-active .nav-button[data-nav-activity].active::after {
  background: var(--activity-accent, var(--accent));
  opacity: 1;
}

body.screen-active .nav-button[data-nav-activity].active .nav-icon {
  border-color: color-mix(in srgb, var(--activity-accent, var(--accent)) 52%, var(--rostra-canvas, var(--bg)));
  background: color-mix(in srgb, var(--activity-accent, var(--accent)) 16%, var(--rostra-accent, var(--accent)));
  color: color-mix(in srgb, var(--activity-accent, var(--accent)) 82%, var(--rostra-canvas, var(--bg)));
}

body.screen-active .nav-button.nav-button-report.active .nav-icon {
  border-color: color-mix(in srgb, var(--rostra-canvas, var(--bg)) 34%, transparent);
  background: color-mix(in srgb, var(--rostra-canvas, var(--bg)) 12%, transparent);
  color: currentColor;
}

body.screen-report .report-activity-block[data-activity-accent] {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--activity-accent, var(--accent)) 28%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--activity-accent, var(--accent)) 10%, transparent), transparent 52%),
    color-mix(in srgb, var(--surface-2) 52%, var(--surface));
}

body.screen-report .report-activity-block[data-activity-accent]::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 var(--rostra-radius-xs, 4px) var(--rostra-radius-xs, 4px) 0;
  background: var(--activity-accent, var(--accent));
  opacity: 0.92;
}

body.screen-report .report-activity-block[data-activity-accent].changed {
  border-color: color-mix(in srgb, var(--green) 58%, var(--activity-accent, var(--accent)));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--activity-accent, var(--accent)) 12%, transparent), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--green) 8%, transparent), transparent),
    color-mix(in srgb, var(--surface-2) 54%, var(--surface));
}

body.screen-report .report-activity-block[data-activity-accent] .report-activity-title,
body.screen-report .report-activity-block[data-activity-accent] .report-activity-fields {
  position: relative;
}

body.screen-report .report-activity-block[data-activity-accent] .report-activity-title h3 {
  color: color-mix(in srgb, var(--activity-accent, var(--accent)) 34%, var(--ink));
}

body.screen-report .report-activity-block[data-activity-accent] .report-activity-subtotal {
  border-color: color-mix(in srgb, var(--activity-accent, var(--accent)) 30%, var(--line));
  background: color-mix(in srgb, var(--activity-accent, var(--accent)) 8%, var(--surface));
}

/* Launcher dashboard polish: class-first rhythm, icon utility controls, and
   installed activity tiles that read as clean SDK app entries. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .workspace {
  padding-top: clamp(42px, 4.4vw, 70px);
  padding-bottom: clamp(58px, 6vw, 92px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .launcher.library-manager {
  gap: clamp(34px, 3.4vw, 56px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-toolbar {
  align-items: center;
  padding-bottom: clamp(26px, 2.8vw, 38px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-title-block {
  gap: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-title-block .activity-kicker,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-title-block .muted {
  display: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-section {
  scroll-margin-top: 96px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-section > .section-heading {
  min-height: 38px;
  padding-bottom: 14px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  column-gap: 24px;
  row-gap: 24px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section > .section-heading {
  grid-column: 1 / -1;
  grid-row: 1;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section > .dashboard-activity-grid,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section > .dashboard-section-note {
  grid-column: 1 / -1;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action,
:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-icon-action {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--rostra-radius-sm, 6px);
  padding: 0;
  cursor: pointer;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action .rostra-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.35;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-section-actions {
  gap: 10px;
  justify-content: end;
  margin: 0;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(88px, 98px));
  gap: 32px 34px;
  align-items: start;
  padding-top: 2px;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card {
  width: 100%;
  min-height: 82px;
  gap: 10px;
  border: 0;
  border-radius: var(--rostra-radius-sm, 6px);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card:hover,
:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card:focus-visible {
  background: transparent;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-art {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-art::before,
:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-art::after {
  content: none;
  display: none;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-glyph {
  box-sizing: border-box;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--activity-a, var(--accent)) 52%, var(--line));
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--activity-a, var(--accent)) 13%, var(--surface-raised));
  color: color-mix(in srgb, var(--activity-a, var(--accent)) 24%, var(--ink));
  box-shadow: inset 0 1px color-mix(in srgb, #ffffff 8%, transparent);
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-glyph .rostra-icon {
  width: 30px;
  height: 30px;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card-main {
  width: 100%;
  padding: 0;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-name {
  display: block;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 820;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-card:hover .dashboard-activity-glyph {
  border-color: color-mix(in srgb, var(--activity-a, var(--accent)) 72%, var(--line-strong));
  background: color-mix(in srgb, var(--activity-a, var(--accent)) 18%, var(--surface-raised));
  color: color-mix(in srgb, var(--activity-a, var(--accent)) 32%, var(--ink));
}

@media (max-width: 760px) {
  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .workspace {
    padding: 28px 20px 52px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  :root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 96px));
    gap: 28px 26px;
  }
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-toolbar {
  border-bottom: 0;
  padding-bottom: clamp(12px, 1.6vw, 22px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .section-heading-tools {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  min-width: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .section-heading-tools .dashboard-section-actions,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .published-class-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .section-heading-tools .dashboard-icon-action,
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .published-class-actions .dashboard-icon-action {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="new-project"],
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="create-custom-activity"] {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 11%, transparent), transparent 58%),
    color-mix(in srgb, var(--green) 16%, var(--surface));
  color: color-mix(in srgb, var(--green) 84%, var(--ink));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="new-project"]:hover:not(:disabled),
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="create-custom-activity"]:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--green) 70%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--green) 23%, var(--surface));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="open-project-file"],
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="import-custom-activity-pack"],
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="open-dashboard-activity-browser"] {
  border-color: color-mix(in srgb, var(--blue) 50%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--blue) 14%, var(--surface));
  color: color-mix(in srgb, var(--blue) 82%, var(--ink));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="open-project-file"]:hover:not(:disabled),
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="import-custom-activity-pack"]:hover:not(:disabled),
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="open-dashboard-activity-browser"]:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--blue) 66%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--blue) 21%, var(--surface));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="open-dashboard-archive"] {
  border-color: color-mix(in srgb, var(--amber) 58%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--amber) 16%, var(--surface));
  color: color-mix(in srgb, var(--amber) 84%, var(--ink));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-icon-action[data-action="open-dashboard-archive"]:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--amber) 72%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--amber) 23%, var(--surface));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-item-placeholder {
  opacity: 0.38;
  pointer-events: none;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-card-placeholder {
  cursor: default;
  filter: saturate(0.68);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-glyph-placeholder {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface-raised) 76%, transparent);
  color: var(--ink-muted);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-browser-coming-soon {
  min-height: clamp(136px, 16vw, 190px);
  display: grid;
  place-items: center;
  border-radius: var(--rostra-radius-md, 8px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  text-align: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-browser-coming-soon strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.cloud-account-summary {
  width: 56px;
  min-width: 56px;
  height: 42px;
  min-height: 42px;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.cloud-account-profile {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
}

.cloud-account-summary .cloud-account-avatar {
  width: 30px;
  height: 30px;
  border-color: color-mix(in srgb, var(--line-strong) 72%, transparent);
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.cloud-account-settings-badge {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-raised) 92%, var(--surface));
  color: var(--ink);
  box-shadow: 0 1px 2px color-mix(in srgb, #000 26%, transparent);
}

.cloud-account-settings-badge .rostra-icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
}

.cloud-account-theme-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: var(--rostra-radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
  color: var(--ink);
}

.cloud-account-theme-icon .rostra-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.35;
}

.cloud-account-theme-icon-academic {
  border-color: #d1d5db;
  background: #f8fafc;
  color: #111827;
}

.cloud-account-theme-icon-broadcast {
  border-color: #38414d;
  background: #151b23;
  color: #f4f7fb;
}

@media (max-width: 760px) {
  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .section-heading-tools {
    width: 100%;
    justify-content: space-between;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-section > .section-heading {
    align-items: start;
  }
}

/* Dashboard spacing correction: after moving the utility actions into section
   headings, the title bar should be compact and the SDK activity tray should
   resolve as a readable two-row grid instead of a long ribbon. */
body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .workspace {
  padding-top: clamp(18px, 2.2vw, 32px);
  padding-bottom: clamp(64px, 6vw, 96px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .launcher.library-manager {
  gap: clamp(28px, 2.8vw, 44px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-toolbar {
  align-items: end;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-title-block h1 {
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  line-height: 1;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .library-section > .section-heading {
  min-height: 44px;
  padding-bottom: 16px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section {
  row-gap: clamp(28px, 3vw, 40px);
}

:root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-grid {
  grid-template-columns: repeat(5, minmax(88px, 98px));
  justify-content: center;
  margin-inline: auto;
  max-width: min(100%, 820px);
  gap: clamp(42px, 3.8vw, 52px) clamp(54px, 4.6vw, 78px);
  padding-top: 4px;
  padding-bottom: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: clamp(78px, 8vh, 110px) clamp(18px, 4vw, 52px) clamp(32px, 5vh, 56px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-scrim {
  position: absolute;
  inset: 0;
  cursor: default;
  border: 0;
  background: color-mix(in srgb, #02070a 72%, transparent);
  backdrop-filter: blur(8px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1368px, calc(100vw - 80px));
  min-height: min(720px, calc(100vh - 110px));
  max-height: min(760px, calc(100vh - 110px));
  align-content: start;
  gap: clamp(18px, 2vw, 26px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent) 14%);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 94%, #07131c);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
  padding: clamp(18px, 2.2vw, 28px);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-bottom: 15px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-dialog-title {
  min-width: 0;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-dialog-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 720;
  line-height: 1.05;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-dialog-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-close {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: var(--radius-sm);
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-close .rostra-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-card-grid .empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-card-grid .archived-class-row {
  min-height: 276px;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-card-grid .archived-class-row .project-card-main h2 {
  overflow-wrap: anywhere;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-browser-dialog {
  min-height: min(520px, calc(100vh - 110px));
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-browser-coming-soon {
  display: grid;
  place-items: center;
  min-height: clamp(260px, 42vh, 420px);
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--blue) 12%);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface-2) 84%, transparent);
  color: var(--ink);
  padding: clamp(22px, 4vw, 48px);
  text-align: center;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-activity-browser-coming-soon strong {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.15;
}

body.desktop-shell {
  --desktop-traffic-light-reserve: 92px;
}

body.desktop-shell .studio-bar,
body.desktop-shell .console-chrome {
  top: 0;
  left: 0;
  right: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding-left: max(18px, calc(var(--desktop-traffic-light-reserve) + 8px));
  -webkit-app-region: drag;
}

body.desktop-shell .studio-bar button,
body.desktop-shell .studio-bar input,
body.desktop-shell .studio-bar select,
body.desktop-shell .studio-bar textarea,
body.desktop-shell .studio-bar summary,
body.desktop-shell .studio-bar details,
body.desktop-shell .studio-bar a,
body.desktop-shell .studio-bar [role="button"],
body.desktop-shell .console-chrome button,
body.desktop-shell .console-chrome input,
body.desktop-shell .console-chrome select,
body.desktop-shell .console-chrome textarea,
body.desktop-shell .console-chrome summary,
body.desktop-shell .console-chrome details,
body.desktop-shell .console-chrome a,
body.desktop-shell .console-chrome [role="button"] {
  -webkit-app-region: no-drag;
}

body.desktop-shell.screen-account-settings .account-settings-header,
body.desktop-shell.screen-activity-studio .account-settings-header {
  min-height: calc(var(--studio-bar-height) + 10px);
  padding-top: max(clamp(18px, 2.2vw, 32px), 34px);
  padding-left: max(clamp(20px, 3vw, 48px), calc(var(--desktop-traffic-light-reserve) + 12px));
  -webkit-app-region: drag;
}

body.desktop-shell.screen-account-settings .account-settings-header button,
body.desktop-shell.screen-account-settings .account-settings-header a,
body.desktop-shell.screen-account-settings .account-settings-header input,
body.desktop-shell.screen-account-settings .account-settings-header select,
body.desktop-shell.screen-account-settings .account-settings-header textarea,
body.desktop-shell.screen-activity-studio .account-settings-header button,
body.desktop-shell.screen-activity-studio .account-settings-header a,
body.desktop-shell.screen-activity-studio .account-settings-header input,
body.desktop-shell.screen-activity-studio .account-settings-header select,
body.desktop-shell.screen-activity-studio .account-settings-header textarea {
  -webkit-app-region: no-drag;
}

body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .activity-store-section {
  margin-top: clamp(10px, 1.4vw, 22px);
}

/* Live console clarity pass: keep control surfaces names-only, stable, and fast-feeling. */
body.screen-active .studio-signal {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  flex: 1 1 auto;
}

body.screen-active .top-context {
  grid-column: 4;
  justify-self: center;
  max-width: min(72vw, 860px);
}

body.screen-active .top-context .context-class strong {
  max-width: min(42ch, 38vw);
}

body.screen-active .top-context .context-date strong,
body.screen-active .top-context .context-timekeeper strong {
  max-width: none;
}

body.screen-active .tf-stage-tools > .presence-instrument .instrument-heading,
body.screen-active .presence-console-card .section-heading {
  align-items: center;
  justify-content: flex-start;
  min-height: 30px;
}

body.screen-active .tf-stage-tools > .presence-instrument .instrument-heading span,
body.screen-active .presence-console-card .section-heading h2 {
  color: color-mix(in srgb, var(--tf-panel-accent, var(--remodel-blue)) 84%, var(--remodel-ink));
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.035em;
}

body.screen-active .thinkfast-console .rating-button {
  transition: border-color 70ms ease, background-color 70ms ease, color 70ms ease, transform 70ms ease;
}

body.screen-active .thinkfast-console .rating-button.active {
  box-shadow: var(--remodel-inset), 0 0 0 1px color-mix(in srgb, var(--remodel-green) 54%, transparent);
}

body.screen-active .filler-hardware,
body.screen-active .compact-filler,
body.screen-active .timer-card .filler-hardware {
  grid-template-columns: minmax(32px, 0.78fr) minmax(44px, 1.44fr) minmax(32px, 0.78fr);
}

body.screen-active .filler-total span,
body.screen-active .timer-card .filler-total span {
  min-width: 3ch;
  text-align: center;
}

body.screen-active .next-instrument {
  gap: 10px;
}

body.screen-active .next-instrument .instrument-heading {
  align-items: center;
}

body.screen-active .next-instrument-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.screen-active .next-instrument-actions strong {
  max-width: none;
  color: var(--remodel-ink-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

body.screen-active .queue-disclosure-button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

body.screen-active .next-three-row {
  grid-template-columns: minmax(42px, auto) minmax(0, 1fr);
}

body.screen-active .next-three-row > span {
  width: auto;
  min-width: 34px;
  padding: 0 6px;
}

body.screen-active .next-full-order[hidden] {
  display: none !important;
}

body.screen-active .next-full-order {
  display: grid;
  gap: 5px;
  max-height: 180px;
  overflow: auto;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 20%, var(--remodel-line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--remodel-bg) 58%, transparent);
}

body.screen-active .next-full-order-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--remodel-ink-soft);
}

body.screen-active .next-full-order-row.current {
  background: color-mix(in srgb, var(--remodel-green) 10%, var(--remodel-surface-2));
  color: var(--remodel-ink);
}

body.screen-active .next-full-order-row.complete {
  color: color-mix(in srgb, var(--remodel-ink-muted) 72%, transparent);
}

body.screen-active .next-full-order-row span {
  color: var(--remodel-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: right;
}

body.screen-active .next-full-order-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.screen-active .side-panel .roster-summary-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.screen-active .side-panel .roster-filter-banner {
  min-height: 32px;
}

body.screen-active .side-panel .attendance-list {
  gap: 6px;
}

body.screen-active .side-panel .roster-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  color: var(--remodel-ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.screen-active .side-panel .roster-list-heading strong {
  color: var(--remodel-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

body.screen-active .side-panel .roster-row {
  grid-template-columns: minmax(0, 1fr) minmax(108px, auto);
  align-items: center;
}

body.screen-active .side-panel .roster-row .student-id {
  display: none;
}

body.screen-active .side-panel .roster-signal-cell {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

body.screen-active .side-panel .roster-status-select select {
  min-height: 32px;
  padding: 6px 8px;
}

body.screen-active .log-panel .section-heading {
  display: none;
}

body.screen-active .session-ticker summary {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--remodel-line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--remodel-surface-2) 74%, transparent);
}

body.screen-active .session-ticker-expanded {
  max-height: min(44dvh, 520px);
  overflow: auto;
  padding-top: 7px;
}

body.screen-active .thinkfast-console .tf-instrument .instrument-heading > span,
body.screen-active .presence-console-card .section-heading h2 {
  color: color-mix(in srgb, var(--tf-panel-accent, var(--remodel-blue)) 86%, var(--remodel-ink));
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.035em;
}

body.screen-active .filler-instrument .instrument-heading > strong {
  color: var(--remodel-ink-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

body.screen-active .queue-disclosure-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
}

body.screen-active .queue-disclosure-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

body.screen-active .next-three-row {
  position: relative;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 48px;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 18%, var(--remodel-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--remodel-surface-2) 72%, var(--remodel-bg));
}

body.screen-active .next-three-row:first-child {
  border-color: color-mix(in srgb, var(--tf-panel-accent, var(--remodel-blue)) 42%, var(--remodel-line));
}

body.screen-active .next-three-row:first-child::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--tf-panel-accent, var(--remodel-blue));
}

body.screen-active .next-three-index {
  width: 34px;
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--tf-panel-accent, var(--remodel-blue)) 25%, var(--remodel-line));
  border-radius: 5px;
  background: color-mix(in srgb, var(--tf-panel-accent, var(--remodel-blue)) 10%, var(--remodel-surface));
  color: var(--remodel-ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

body.screen-active .next-three-label {
  min-width: 0;
  color: var(--remodel-ink-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

body.screen-active .next-three-row .student-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.screen-active .next-three-row .student-name {
  overflow: hidden;
  color: var(--remodel-ink);
  font-size: 0.86rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.screen-active .timer-turn-nav-heading {
  justify-content: center;
}

body.screen-active .timer-turn-nav-heading strong {
  width: 100%;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tf-panel-accent, var(--remodel-blue)) 22%, var(--remodel-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--tf-panel-accent, var(--remodel-blue)) 8%, var(--remodel-surface-2));
  color: var(--remodel-ink);
  text-align: center;
}

body.screen-active .session-ticker summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

body.screen-active .session-ticker-label {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

body.screen-active .session-ticker-title {
  color: var(--remodel-ink);
  font-size: 0.82rem;
  font-weight: 900;
}

body.screen-active .session-ticker-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 18%, var(--remodel-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--remodel-surface-control) 72%, transparent);
}

body.screen-active .session-ticker-icon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--remodel-ink-muted);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 140ms ease;
}

body.screen-active .session-ticker[open] .session-ticker-icon::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

@media (max-width: 980px) {
  :root body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .installed-activities-section .dashboard-activity-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 96px));
    justify-content: start;
    gap: 30px 32px;
  }
}

@media (max-width: 760px) {
  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .workspace {
    padding: 28px 20px 56px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .launcher.library-manager {
    gap: 42px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-overlay {
    padding: 72px 16px 24px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-dialog {
    width: min(100%, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    padding: 16px;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-dialog-header {
    align-items: start;
  }

  body.screen-launcher:not(.screen-cloud-auth):not(.screen-cloud-loading) .dashboard-archive-card-grid {
    grid-template-columns: 1fr;
  }
}

body.screen-active[data-activity="discussion"] .discussion-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 18%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--remodel-blue) 8%, transparent), transparent 48%),
    color-mix(in srgb, var(--remodel-surface-2) 78%, transparent);
  box-shadow: none;
}

body.screen-active[data-activity="discussion"] .discussion-command-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.screen-active[data-activity="discussion"] .discussion-command-copy strong {
  color: var(--remodel-ink);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

body.screen-active[data-activity="discussion"] .discussion-command-copy span {
  min-width: 0;
  overflow: hidden;
  color: var(--remodel-ink-muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.screen-active[data-activity="discussion"] .discussion-command-row .command-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

body.screen-active[data-activity="discussion"] .discussion-command-row .command-cluster > button {
  min-height: 34px;
  height: 34px;
  border-radius: 7px;
  white-space: nowrap;
}

body.screen-active[data-activity="discussion"] .discussion-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 7px;
}

body.screen-active[data-activity="discussion"] .discussion-icon-button .rostra-icon {
  width: 17px;
  height: 17px;
}

body.screen-active[data-activity="discussion"] .discussion-refresh-button {
  border-color: color-mix(in srgb, var(--remodel-blue) 44%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-blue) 20%, transparent), transparent),
    color-mix(in srgb, var(--remodel-blue) 14%, var(--remodel-surface-control));
  color: color-mix(in srgb, var(--remodel-blue) 74%, white);
}

body.screen-active[data-activity="discussion"] .discussion-article-planner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-panel,
body.screen-active[data-activity="discussion"] .discussion-article-queue-panel {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-height: min(58vh, 640px);
  margin-bottom: 0;
  padding: 10px;
  border-radius: 8px;
  box-shadow: none;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-panel {
  grid-column: span 2;
  border-color: color-mix(in srgb, var(--remodel-blue) 34%, var(--remodel-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-blue) 14%, transparent), transparent 52%),
    color-mix(in srgb, var(--remodel-blue) 7%, var(--remodel-surface-2));
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  border-color: color-mix(in srgb, var(--remodel-amber) 38%, var(--remodel-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-amber) 15%, transparent), transparent 50%),
    color-mix(in srgb, var(--remodel-amber) 8%, var(--remodel-surface-2));
  padding-inline: 6px;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-panel .section-heading,
body.screen-active[data-activity="discussion"] .discussion-article-queue-panel .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--remodel-line) 72%, transparent);
}

body.screen-active[data-activity="discussion"] .discussion-candidate-panel .section-heading h2,
body.screen-active[data-activity="discussion"] .discussion-article-queue-panel .section-heading h2 {
  margin: 0;
  color: var(--remodel-ink);
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-panel .section-heading .discussion-refresh-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 7px;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 198px;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 198px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--remodel-blue) 32%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-blue) 12%, transparent), transparent 58%),
    color-mix(in srgb, var(--remodel-surface) 82%, var(--remodel-blue) 10%);
}

body.screen-active[data-activity="discussion"] .discussion-candidate-card:hover,
body.screen-active[data-activity="discussion"] .discussion-article-queue-row:hover {
  border-color: color-mix(in srgb, var(--remodel-blue) 36%, var(--remodel-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-blue) 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--remodel-surface-3) 78%, transparent);
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-row:hover {
  border-color: color-mix(in srgb, var(--remodel-amber) 42%, var(--remodel-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-amber) 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--remodel-surface-3) 78%, var(--remodel-amber) 8%);
}

body.screen-active[data-activity="discussion"] .discussion-candidate-copy {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 10px;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-source {
  align-self: end;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--remodel-blue) 18%, transparent);
  color: color-mix(in srgb, var(--remodel-ink-muted) 78%, var(--remodel-blue));
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  padding-right: 78px;
  color: var(--remodel-ink);
  font-size: clamp(1rem, 1.2cqw, 1.16rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--remodel-ink-muted) 88%, var(--remodel-ink));
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-actions .primary-button,
body.screen-active[data-activity="discussion"] .discussion-candidate-actions .ghost-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 7px;
  padding: 0;
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 12%, transparent);
}

body.screen-active[data-activity="discussion"] .discussion-candidate-actions .primary-button {
  border-color: color-mix(in srgb, var(--remodel-green) 54%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-green) 28%, transparent), transparent),
    color-mix(in srgb, var(--remodel-green) 18%, var(--remodel-surface-control));
  color: color-mix(in srgb, var(--remodel-green) 78%, white);
}

body.screen-active[data-activity="discussion"] .discussion-candidate-actions .ghost-button {
  border-color: color-mix(in srgb, var(--coral) 50%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--coral) 18%, transparent), transparent),
    color-mix(in srgb, var(--coral) 10%, var(--remodel-surface-control));
  color: color-mix(in srgb, var(--coral) 82%, white);
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-actions {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  justify-content: start;
  gap: 7px;
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-actions > button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 7px;
  padding: 0;
}

body.screen-active[data-activity="discussion"] .discussion-start-button {
  border-color: color-mix(in srgb, var(--remodel-green) 62%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--remodel-green) 34%, transparent), transparent),
    color-mix(in srgb, var(--remodel-green) 22%, var(--remodel-surface-control));
  color: color-mix(in srgb, var(--remodel-green) 82%, white);
}

body.screen-active[data-activity="discussion"] .discussion-next-button {
  border-color: color-mix(in srgb, var(--remodel-blue) 42%, var(--remodel-line));
  background: color-mix(in srgb, var(--remodel-blue) 11%, var(--remodel-surface-control));
  color: color-mix(in srgb, var(--remodel-blue) 72%, white);
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-list {
  grid-column: auto;
  display: grid;
  align-content: stretch;
  gap: 7px;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-right: 0;
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-row {
  display: grid;
  align-self: start;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 188px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--remodel-amber) 32%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-amber) 11%, transparent), transparent 58%),
    color-mix(in srgb, var(--remodel-surface) 76%, var(--remodel-amber) 9%);
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-row > .count-pill {
  min-width: 34px;
  justify-content: center;
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-copy .article-card-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--remodel-amber) 72%, var(--remodel-ink));
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-copy h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.14;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-empty {
  min-height: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--remodel-amber) 34%, var(--remodel-line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--remodel-amber) 10%, transparent), transparent 62%),
    color-mix(in srgb, var(--remodel-amber) 7%, transparent);
  text-align: center;
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-empty strong {
  max-width: 16ch;
  color: color-mix(in srgb, var(--remodel-amber) 72%, var(--remodel-ink-muted));
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-empty {
  grid-column: 1 / -1;
  min-height: 198px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed color-mix(in srgb, var(--remodel-blue) 28%, var(--remodel-line));
  border-radius: 8px;
  color: color-mix(in srgb, var(--remodel-ink-muted) 82%, var(--remodel-blue));
  text-align: center;
}

body.screen-active[data-activity="discussion"] .discussion-candidate-empty strong {
  font-size: 0.9rem;
  font-weight: 900;
}

body.screen-active[data-activity="discussion"] .discussion-tally {
  display: none;
}

@container (max-width: 980px) {
  body.screen-active[data-activity="discussion"] .discussion-article-planner,
  body.screen-active[data-activity="discussion"] .discussion-candidate-grid {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 700px) {
  body.screen-active[data-activity="discussion"] .discussion-command-row {
    grid-template-columns: 1fr;
  }

  body.screen-active[data-activity="discussion"] .discussion-command-row .command-cluster {
    justify-content: start;
  }
}

body.screen-active[data-activity="discussion"] .discussion-article-queue-row > .ghost-button {
  border-color: color-mix(in srgb, var(--coral) 50%, var(--remodel-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--coral) 18%, transparent), transparent),
    color-mix(in srgb, var(--coral) 10%, var(--remodel-surface-control));
  color: color-mix(in srgb, var(--coral) 82%, white);
}

body.screen-active[data-activity="discussion"] .discussion-grid.operator-table {
  overflow-x: auto;
}

body.screen-active[data-activity="discussion"] .discussion-grid.operator-table .grid-row,
body.screen-active[data-activity="discussion"] .discussion-grid.operator-table .discussion-row {
  grid-template-columns: minmax(150px, 220px) repeat(3, minmax(136px, 158px));
  justify-content: start;
  align-items: center;
  gap: 8px;
}

body.screen-active[data-activity="discussion"] .discussion-grid.operator-table .table-header > span {
  display: grid;
  min-width: 0;
  place-items: center;
  text-align: center;
}

body.screen-active[data-activity="discussion"] .discussion-grid.operator-table .table-header > span:first-child {
  place-items: center start;
  text-align: left;
}

body.screen-active[data-activity="discussion"] .discussion-mark-cell,
body.screen-active[data-activity="discussion"] .discussion-filler-cell,
body.screen-active[data-activity="discussion"] .discussion-presence-toggle-cell {
  width: 100%;
  display: grid;
  justify-items: center;
}

body.screen-active[data-activity="discussion"] .discussion-counter {
  width: 100%;
  max-width: 150px;
  justify-items: center;
}

body.screen-active[data-activity="discussion"] .discussion-counter-label {
  display: none;
}

body.screen-active[data-activity="discussion"] .discussion-counter-stepper.compact-filler {
  width: 100%;
  grid-template-columns: 34px minmax(56px, 1fr) 34px;
  justify-self: center;
}

body.screen-active[data-activity="discussion"] .discussion-presence-toggle-cell {
  grid-template-columns: minmax(0, 112px) 32px;
  justify-content: center;
  gap: 6px;
}

body.screen-active[data-activity="discussion"] .presence-current {
  width: 100%;
  justify-self: center;
  text-align: center;
}

body.screen-active[data-activity="discussion"] .presence-disclosure {
  justify-self: center;
}

@container (max-width: 980px) {
  body.screen-active[data-activity="discussion"] .discussion-candidate-panel {
    grid-column: auto;
  }

  body.screen-active[data-activity="discussion"] .discussion-article-planner,
  body.screen-active[data-activity="discussion"] .discussion-candidate-grid {
    grid-template-columns: 1fr;
  }

  body.screen-active[data-activity="discussion"] .discussion-candidate-grid {
    grid-auto-rows: minmax(198px, auto);
  }
}
