:root {
  color-scheme: dark;
  --bg: #080807;
  --panel: #121210;
  --panel-2: #191814;
  --line: rgba(255, 255, 255, .10);
  --text: #f4f1e8;
  --muted: #aaa397;
  --soft: #6f6a5f;
  --yellow: #ffd22e;
  --yellow-2: #f7a900;
  --learner-primary: #ffd22e;
  --learner-accent: #f7a900;
  --learner-bg: #080807;
  --green: #69d39a;
  --danger: #ff746d;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-width: 1180px;
  overflow-x: auto;
  overflow-y: hidden;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: 100vh;
}

body.is-learner-surface {
  min-width: 960px;
  background: var(--learner-bg);
}

body.is-learner-surface .shell {
  display: block;
}

body.is-learner-surface .rail {
  display: none;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 14px;
  background: #0c0c0b;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--muted);
}

.rail-nav a::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255, 210, 46, .24);
  opacity: .82;
}

.rail-nav a[data-route="dashboard"]::before {
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--yellow) 0 26%, transparent 28%),
    conic-gradient(from 210deg, rgba(255, 210, 46, .85) 0 75%, rgba(255, 255, 255, .08) 0);
}

.rail-nav a[data-route="content"]::before {
  background:
    linear-gradient(var(--yellow), var(--yellow)) 4px 4px / 8px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 4px 8px / 8px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 4px 12px / 6px 2px no-repeat,
    rgba(255, 210, 46, .08);
}

.rail-nav a[data-route="learners"]::before {
  background:
    radial-gradient(circle at 6px 6px, var(--yellow) 0 2px, transparent 3px),
    radial-gradient(circle at 11px 8px, rgba(255, 210, 46, .7) 0 2px, transparent 3px),
    linear-gradient(var(--yellow), var(--yellow)) 4px 12px / 8px 2px no-repeat,
    rgba(255, 210, 46, .08);
}

.rail-nav a[data-route="portal"]::before {
  background:
    linear-gradient(var(--yellow), var(--yellow)) 3px 4px / 10px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 3px 7px / 10px 6px no-repeat,
    rgba(255, 210, 46, .08);
}

.rail-nav a[data-route="learner-preview"]::before {
  border-color: transparent;
  border-radius: 50%;
  background: var(--yellow);
  clip-path: none;
}

.rail-nav a[data-route="learner-preview"]::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #111;
}

.rail-nav a[data-route="reports"]::before {
  background:
    linear-gradient(to top, var(--yellow) 0 55%, transparent 55%) 3px 5px / 2px 8px no-repeat,
    linear-gradient(to top, var(--yellow) 0 78%, transparent 78%) 7px 3px / 2px 10px no-repeat,
    linear-gradient(to top, var(--yellow) 0 40%, transparent 40%) 11px 7px / 2px 6px no-repeat,
    rgba(255, 210, 46, .08);
}

.rail-nav a[data-route="billing"]::before {
  background:
    linear-gradient(var(--yellow), var(--yellow)) 3px 5px / 10px 2px no-repeat,
    linear-gradient(rgba(255, 210, 46, .7), rgba(255, 210, 46, .7)) 3px 10px / 6px 2px no-repeat,
    rgba(255, 210, 46, .08);
}

.rail-nav a.active,
.rail-nav a:hover {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

.rail-nav a.active::before,
.rail-nav a:hover::before {
  opacity: 1;
  border-color: rgba(255, 210, 46, .55);
}

.rail-meter {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #15140f;
}

.rail-gauge {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rail-gauge p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.rail-gauge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.rail-gauge strong {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
}

.rail-gauge b {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.rail-gauge b::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--meter, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-2));
}

.stage {
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  padding: 28px;
}

body.is-learner-surface .stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 36px;
}

.topbar {
  height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.topbar p,
.kicker,
.focus-card p,
.publish-card p {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 620px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions,
.hero-actions,
.route-mode-actions,
.route-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
}

body.is-learner-surface .topbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.is-learner-surface .top-actions {
  display: none;
}

body.is-learner-surface .top-route-note {
  display: none;
}

.route-title-row {
  gap: 28px;
  min-width: 0;
}

.topbar.has-route-mode .route-title-row {
  gap: 52px;
}

.topbar.has-route-mode .route-title-row h1 {
  flex: 0 0 360px;
  max-width: 360px;
}

.top-route-note {
  min-width: 0;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}

.solid-button,
.ghost-button,
.auth-toggle,
.settings-button,
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 800;
}

.route-mode-actions {
  display: none;
  flex: 0 0 auto;
}

.route-mode-actions.is-visible {
  display: flex;
}

.route-mode-actions button {
  width: 128px;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.route-mode-actions button.is-active {
  border-color: transparent;
  background: var(--yellow);
  color: #111;
}

.solid-button {
  background: var(--yellow);
  color: #111;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.auth-toggle {
  min-width: 82px;
  min-height: 36px;
  border: 1px solid rgba(255, 210, 46, .45);
  background: rgba(255, 210, 46, .13);
  color: var(--yellow);
}

.auth-toggle.is-logged-in {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--text);
}

.settings-button {
  min-width: 78px;
  min-height: 36px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .055);
  color: var(--text);
  font-weight: 700;
}

.settings-button:hover,
.auth-toggle:hover,
.account-avatar:hover {
  border-color: rgba(255, 255, 255, .18);
}

.account-avatar {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 210, 46, .28);
  border-radius: 999px;
  background: rgba(255, 210, 46, .12);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.full {
  width: 100%;
}

.page {
  display: none;
  overflow: hidden;
}

.page.active {
  display: block;
}

.landing,
.dashboard-page,
.content-page,
.learners-page,
.portal-page,
.learner-preview-page,
.reports-page,
.billing-page,
.my-settings-page,
.learner-landing-page,
.learner-settings-page,
.classroom-page {
  position: relative;
  height: calc(100vh - 146px);
  min-height: 560px;
}

.learner-account-chip {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 210, 46, .28);
  border-radius: 999px;
  background: rgba(255, 210, 46, .12);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

body.is-learner-surface .learner-account-chip {
  display: grid;
}

body.is-learner-surface .solid-button,
body.is-learner-surface .play-mark,
body.is-learner-surface .progress-line span {
  background: var(--learner-primary);
}

body.is-learner-surface .watch-pane,
body.is-learner-surface .curriculum-pane,
body.is-learner-surface .settings-profile-card,
body.is-learner-surface .settings-panel,
body.is-learner-surface .learner-landing-hero,
body.is-learner-surface .learner-landing-list,
body.is-learner-surface .auth-panel {
  border-color: color-mix(in srgb, var(--learner-primary) 24%, rgba(255, 255, 255, .10));
}

.hero-grid,
.content-workbench,
.classroom-grid,
.portal-board,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 18px;
}

.split-layout {
  height: 100%;
}

.hero-copy,
.focus-card,
.table-band,
.source-pane,
.mapping-pane,
.publish-card,
.publish-steps,
.billing-plan,
.billing-usage,
.billing-ledger,
.settings-profile-card,
.settings-panel,
.auth-panel,
.watch-pane,
.curriculum-pane,
.chart-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-copy {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
}

.hero-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.desk-preview {
  display: grid;
  gap: 18px;
}

.landing .hero-grid {
  height: calc(100% - 76px);
}

.landing .desk-preview {
  grid-template-rows: minmax(0, 1fr) 96px;
}

.landing .hero-copy,
.landing .preview-window.large {
  min-height: 0;
}

.preview-window {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.preview-window.large {
  min-height: 406px;
}

.preview-window.small {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 96px;
}

.preview-window.small span {
  color: var(--muted);
}

.window-head {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.window-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--soft);
}

.video-block,
.source-video,
.video-player {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #25200d, #0f0f0d 62%);
  border: 1px solid rgba(255, 210, 46, .25);
}

.play-mark {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 50%;
  background: var(--yellow);
  position: relative;
  box-shadow: 0 0 0 10px rgba(255, 210, 46, .12);
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  border-left: 14px solid #111;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.mapping-row,
.task-row,
.lesson-card,
.publish-steps div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
}

.mapping-row b {
  width: 118px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow);
}

.mapping-row.muted b {
  width: 74px;
  background: var(--soft);
}

.mini-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.mini-flow span {
  padding: 18px;
  border-radius: var(--radius);
  background: #0f0f0d;
  border: 1px solid var(--line);
  color: var(--muted);
}

.auth-page {
  min-height: calc(100vh - 148px);
  display: none;
  place-items: center;
}

.auth-page.active {
  display: grid;
}

.auth-panel {
  width: min(420px, 100%);
  padding: 28px;
}

.auth-panel img {
  width: 52px;
  height: 52px;
}

.auth-panel h2 {
  margin: 18px 0 4px;
  font-size: 34px;
}

.auth-panel p {
  color: var(--muted);
}

.auth-kicker {
  margin: 0 0 24px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.google-button {
  gap: 10px;
  margin-top: 12px;
}

.google-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
}

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0b0b0a;
  color: var(--text);
}

select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0b0b0a;
  color: var(--text);
}

.ops-grid,
.report-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(126px, .45fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-board {
  grid-template-rows: 230px minmax(0, 1fr);
  height: 100%;
}

.dashboard-board,
.billing-board {
  display: grid;
  gap: 18px;
}

.dashboard-board .ops-grid {
  margin-bottom: 0;
  min-height: 0;
}

.dashboard-page .focus-card,
.dashboard-page .metric-card {
  min-height: 0;
  overflow: hidden;
}

.dashboard-board .table-band {
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.dashboard-ops-board {
  display: flex;
  flex-direction: column;
}

.dashboard-ops-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  flex: 1;
}

.dashboard-ops-panels section {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-ops-panels h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.dashboard-ops-panels .task-row {
  min-height: 46px;
  margin-top: 8px;
  padding: 0 12px;
}

.billing-grid {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.billing-board {
  grid-template-rows: minmax(0, 1fr) 220px;
  height: 100%;
}

.billing-board .billing-grid {
  margin-bottom: 0;
  min-height: 0;
}

.settings-board {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  grid-template-rows: 168px minmax(0, 1fr);
  gap: 18px;
  height: 100%;
}

.settings-profile-card,
.settings-panel {
  min-height: 0;
  overflow: hidden;
  padding: 24px;
}

.settings-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 24px;
}

.settings-profile-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.settings-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 210, 46, .32);
  border-radius: 999px;
  background: rgba(255, 210, 46, .14);
  color: var(--yellow);
  font-weight: 900;
}

.settings-profile-main p,
.settings-profile-main h2 {
  margin: 0;
}

.settings-profile-main p {
  color: var(--yellow);
  font-weight: 900;
}

.settings-profile-main h2 {
  margin-top: 8px;
  font-size: 34px;
}

.settings-profile-main strong {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.settings-profile-actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 180px;
}

.settings-profile-actions button {
  width: 100%;
}

.settings-profile-actions button,
.settings-panel .band-head button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 210, 46, .26);
  background: rgba(255, 210, 46, .14);
  color: var(--yellow);
  font-weight: 900;
}

.settings-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: calc(100% - 52px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.settings-readonly-grid div {
  display: grid;
  gap: 8px;
  min-height: 0;
  align-content: center;
  padding: 0 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.settings-readonly-grid span,
.settings-panel .band-head span {
  color: var(--muted);
}

.settings-readonly-grid strong {
  color: var(--text);
}

.my-settings-page .settings-readonly-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 54px);
  height: auto;
}

.my-settings-page .settings-readonly-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
}

.my-settings-page .settings-readonly-grid strong,
.settings-list strong {
  min-width: 0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-list {
  display: grid;
  gap: 12px;
  max-height: calc(100% - 52px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.settings-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
}

.settings-list strong {
  color: var(--text);
}

.learner-settings-board {
  display: grid;
  grid-template-columns: .72fr 1fr 1fr;
  gap: 18px;
  height: 100%;
}

.learner-landing-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  height: 100%;
}

.learner-landing-hero,
.learner-landing-list {
  min-height: 0;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.learner-landing-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.learner-landing-hero p {
  margin: 0 0 12px;
  color: var(--learner-primary);
  font-weight: 900;
}

.learner-landing-hero h2 {
  max-width: 720px;
  margin: 0;
  font-size: 68px;
  line-height: .95;
}

.learner-landing-hero span {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.learner-landing-hero .solid-button {
  width: 180px;
}

.learner-settings-board .settings-profile-card,
.learner-settings-board .settings-panel {
  min-height: 0;
  overflow: hidden;
}

.report-board {
  display: grid;
  grid-template-rows: 124px minmax(0, 1fr);
  gap: 12px;
  height: 100%;
}

.report-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.report-kpi-row article {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.report-kpi-row span {
  color: var(--muted);
}

.report-kpi-row strong {
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
}

.report-main-grid {
  display: grid;
  grid-template-columns: 1.32fr .82fr .82fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.report-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.report-funnel-panel {
  grid-row: 1 / span 2;
}

.report-activity-panel {
  grid-column: 2 / span 2;
}

.report-panel .band-head {
  margin-bottom: 10px;
}

.report-panel .band-head h3 {
  font-size: 16px;
}

.funnel-bars.compact {
  gap: 10px;
}

.funnel-bars.compact div {
  grid-template-columns: 86px minmax(0, 1fr) 46px;
  gap: 10px;
}

.funnel-bars.compact b {
  height: 12px;
}

.report-mini-list {
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.report-mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.report-mini-list span {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-mini-list strong {
  color: var(--yellow);
  white-space: nowrap;
}

.report-actions-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.report-actions-inline a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 210, 46, .12);
  color: var(--yellow);
  font-weight: 800;
}

.funnel-bars {
  display: grid;
  gap: 14px;
}

.funnel-bars div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.funnel-bars b {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), rgba(255, 210, 46, .18));
}

.funnel-bars strong {
  text-align: right;
  color: var(--text);
}

.focus-card,
.metric-card,
.table-band,
.chart-band,
.billing-plan,
.billing-usage,
.billing-ledger {
  padding: 22px;
}

.focus-card h2,
.publish-card h2,
.billing-plan h2 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.05;
}

.dashboard-page .focus-card h2,
.learners-page .learner-access-card h2 {
  white-space: nowrap;
  line-height: 1.08;
}

.dashboard-page .focus-card h2 {
  font-size: 22px;
}

.learners-page .learner-access-card h2 {
  font-size: 19px;
}

.focus-card.compact span,
.publish-card span,
.billing-plan span {
  color: var(--muted);
}

.link-copy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.link-copy-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.link-copy-card button {
  min-height: 36px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #111;
  font-weight: 800;
}

#copyStatus {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: var(--yellow);
}

.billing-plan p {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-plan .solid-button {
  margin-top: 24px;
}

.billing-usage {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.billing-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px 18px;
  align-items: center;
  min-height: 70px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.billing-row span {
  color: var(--muted);
}

.billing-row strong {
  text-align: right;
}

.billing-row b {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.billing-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.metric-card {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  font-size: 42px;
  color: var(--yellow);
}

.progress-line {
  height: 8px;
  margin: 22px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.band-head,
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.band-head h3 {
  margin: 0;
}

.band-head a,
.band-head button,
.pane-head a,
.pane-head button {
  min-height: 34px;
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 210, 46, .12);
  color: var(--yellow);
}

.content-workbench {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  height: 100%;
}

.content-mode-panel {
  display: none;
}

.content-mode-panel.is-active,
.learner-mode-panel.is-active {
  display: grid;
}

.learner-mode-panel {
  display: none;
  height: 100%;
}

.source-pane,
.mapping-pane,
.curriculum-pane,
.watch-pane {
  padding: 18px;
}

.content-page .source-pane,
.content-page .mapping-pane,
.learners-page .table-band,
.learners-page .focus-card,
.portal-page .publish-card,
.portal-page .publish-steps,
.billing-page .billing-plan,
.billing-page .billing-usage,
.billing-page .billing-ledger,
.learner-preview-page .watch-pane,
.learner-preview-page .curriculum-pane,
.classroom-page .watch-pane,
.classroom-page .curriculum-pane {
  min-height: 0;
  overflow: hidden;
}

.content-page .source-pane,
.content-page .mapping-pane,
.learners-page .table-band,
.learners-page .focus-card,
.billing-page .billing-usage,
.billing-page .billing-ledger,
.learner-preview-page .watch-pane,
.learner-preview-page .curriculum-pane,
.classroom-page .watch-pane,
.classroom-page .curriculum-pane {
  display: flex;
  flex-direction: column;
}

.content-page .mapping-pane {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.learners-page .table-band,
.learners-page .focus-card {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.billing-page .billing-usage,
.billing-page .billing-ledger {
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.billing-page .billing-usage {
  gap: 10px;
}

.billing-page .billing-row {
  min-height: 60px;
  padding: 12px;
}

.billing-page .billing-ledger .band-head {
  margin-bottom: 8px;
}

.billing-page .billing-ledger .task-row {
  min-height: 42px;
  margin-top: 8px;
  padding: 0 12px;
}

.content-page .source-video {
  min-height: 284px;
}

.content-page .source-pane,
.content-page .mapping-pane {
  padding: 14px;
  font-size: 14px;
}

.content-page .pane-head {
  margin-bottom: 10px;
  font-size: 14px;
}

.content-page .pane-head button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.mapping-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 210, 46, .08);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

#lessonMappingList {
  min-height: 0;
  overflow: visible;
}

.content-page .source-video strong {
  font-size: 14px;
}

.asset-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.asset-list div {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 13px;
}

.content-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.content-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}

.content-list button.is-selected {
  border: 1px solid rgba(255, 210, 46, .4);
  color: var(--text);
}

.content-list strong,
.version-row strong {
  color: var(--yellow);
}

.content-edit-form {
  display: grid;
  gap: 6px;
}

.content-edit-form label {
  margin-bottom: 0;
  font-size: 13px;
  gap: 5px;
}

.content-page input {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.content-edit-block {
  margin-top: 7px;
  min-height: 0;
}

.pane-head.compact {
  margin-bottom: 6px;
}

.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-top: 5px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 13px;
}

.version-row.current {
  border: 1px solid rgba(255, 210, 46, .35);
  color: var(--text);
}

.learner-access-card {
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--yellow);
}

.danger-button {
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 16px;
  background: rgba(255, 116, 109, .12);
  color: var(--danger);
  font-weight: 800;
}

.lesson-card {
  justify-content: flex-start;
  min-height: 78px;
}

.lesson-card b,
.publish-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #111;
}

.lesson-card div {
  display: grid;
  gap: 6px;
}

.lesson-card span {
  color: var(--muted);
}

.lesson-card.selected {
  border: 1px solid rgba(255, 210, 46, .4);
  color: var(--text);
}

.content-page .lesson-card {
  min-height: 60px;
  padding: 9px;
  font-size: 14px;
}

.content-page .lesson-card b {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.content-page .lesson-card div {
  gap: 4px;
}

.portal-board {
  grid-template-columns: minmax(560px, 1.32fr) minmax(300px, .68fr);
  height: 100%;
}

.publish-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.portal-config-panel {
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-config-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 10px;
  height: 100%;
}

.portal-config-grid article {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.portal-important-config {
  border: 1px solid rgba(255, 210, 46, .2);
}

.portal-important-config .pane-head {
  margin-bottom: 4px;
}

.portal-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.portal-status-grid article,
.portal-domain-card,
.portal-row {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.portal-status-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
}

.portal-status-grid span,
.portal-domain-card span,
.portal-row span {
  color: var(--muted);
  font-size: 12px;
}

.portal-status-grid strong,
.portal-domain-card strong,
.portal-row strong {
  color: var(--text);
  font-size: 14px;
}

.portal-domain-card {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
}

.portal-domain-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--yellow);
}

.portal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.portal-actions button {
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 16px;
  background: rgba(255, 210, 46, .12);
  color: var(--yellow);
  font-weight: 800;
}

.portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin-top: 6px;
  padding: 0 10px;
}

.portal-browser-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: #090909;
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
}

.browser-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.browser-chrome strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.portal-preview-hero {
  display: grid;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 38px;
  align-content: end;
  background: linear-gradient(135deg, rgba(255, 210, 46, .18), rgba(255, 255, 255, .035));
}

.portal-preview-hero small {
  color: var(--yellow);
  font-weight: 900;
}

.portal-preview-hero strong {
  font-size: 56px;
  line-height: 1.05;
}

.portal-preview-hero span,
.portal-preview-list span {
  color: var(--muted);
}

.portal-preview-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.portal-preview-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.portal-preview-list b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #111;
  font-size: 12px;
}

.portal-preview-list strong {
  color: var(--yellow);
  font-size: 12px;
}

.portal-row span,
.portal-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-domain-config {
  display: grid;
  gap: 5px;
}

.portal-domain-config > span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.portal-domain-config label {
  gap: 4px;
  margin: 0;
  font-size: 12px;
}

.portal-domain-config label div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.portal-domain-config input {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.portal-domain-config strong {
  color: var(--muted);
  font-size: 12px;
}

.portal-domain-config small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.portal-domain-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-domain-actions button {
  min-height: 30px;
  border-radius: var(--radius);
  padding: 0 9px;
  background: rgba(255, 210, 46, .12);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.chart-band {
  height: 360px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.chart-band span {
  flex: 1;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, var(--yellow), rgba(255, 210, 46, .18));
}

.metric-card.wide {
  min-height: 132px;
}

.classroom-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  height: 100%;
}

.video-player {
  min-height: 0;
  flex: 1;
}

.watch-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.watch-meta div {
  display: grid;
  gap: 4px;
}

.watch-meta span,
.curriculum-pane h3 {
  color: var(--muted);
}

#curriculumList,
#previewCurriculumList {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#curriculumList div,
#previewCurriculumList div {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

#curriculumList strong,
#previewCurriculumList strong {
  display: block;
  margin-bottom: 6px;
}

#curriculumList span,
#previewCurriculumList span {
  color: var(--muted);
  font-size: 13px;
}

.preview-side-panel {
  display: none;
  min-height: 0;
  height: 100%;
}

.preview-side-panel.is-active {
  display: flex;
  flex-direction: column;
}

.preview-side-panel h3 {
  flex: 0 0 auto;
  margin-top: 0;
}

.preview-side-panel #previewCurriculumList {
  flex: 1;
}

.preview-course-switcher {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.preview-course-switcher button {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 78px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 210, 46, .22);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  font-weight: 900;
}

.preview-course-switcher button span {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 210, 46, .22);
}

.preview-course-switcher button span::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--yellow);
}

.preview-course-switcher button.is-current {
  border-color: rgba(255, 210, 46, .55);
  color: var(--yellow);
}

.preview-content-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.preview-content-list article {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.preview-content-list span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.preview-content-list strong {
  font-size: 18px;
}

.preview-content-list small {
  color: var(--muted);
}
