:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --surface-quiet: #f2f5f9;
  --ink: #172033;
  --muted: #667085;
  --line: #d7deea;
  --line-strong: #c8d1df;
  --brand: #2f6fed;
  --brand-strong: #1f57d6;
  --accent: #18a67c;
  --accent-strong: #0d8b69;
  --warn: #b86e16;
  --danger: #b42318;
  --rail: #101828;
  --focus: #84adff;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 6%);
  --shadow-md: 0 10px 26px rgb(16 24 40 / 10%);
  --shadow-lg: 0 20px 46px rgb(16 24 40 / 14%);
  --motion-fast: 140ms ease;
  --motion-med: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f5f8fc 0, var(--bg) 340px),
    var(--bg);
  color: var(--ink);
  font-family:
    Pretendard, Inter, "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea {
  transition:
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    color var(--motion-fast),
    box-shadow var(--motion-fast),
    transform var(--motion-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 66%, transparent);
  outline-offset: 3px;
}

button:not(:disabled):active,
a:active {
  transform: translateY(1px);
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, #111b2d 0%, var(--rail) 62%, #0b1220 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  color: #ffffff;
}

.mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 14px;
  line-height: 1.2;
}

.brand-lockup small {
  margin-top: 3px;
  color: #94a3b8;
}

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

.rail-section-label {
  margin: 12px 8px 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.rail-link {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px 6px 6px;
  position: relative;
}

.rail-link:hover,
.rail-link.active {
  background: #253044;
  color: #ffffff;
}

.rail-link.active::before {
  position: absolute;
  inset: 8px auto 8px -6px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.rail-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  background: rgb(255 255 255 / 6%);
  color: #dbeafe;
  font-size: 11px;
}

.mobile-console-menu {
  display: none;
}

.mobile-console-menu summary,
.permission-disclosure summary,
.legacy-commerce-disclosure summary,
.signup-collapsible summary {
  list-style: none;
}

.mobile-console-menu summary::-webkit-details-marker,
.permission-disclosure summary::-webkit-details-marker,
.legacy-commerce-disclosure summary::-webkit-details-marker,
.signup-collapsible summary::-webkit-details-marker {
  display: none;
}

.mobile-console-menu summary,
.permission-disclosure > summary,
.legacy-commerce-disclosure > summary,
.signup-collapsible > summary {
  cursor: pointer;
}

main {
  margin-left: 232px;
  padding: 28px 36px 64px;
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.front-preview-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.front-preview-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.front-preview-links a:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgb(47 111 237 / 12%);
  color: var(--brand);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

p,
small {
  color: var(--muted);
  line-height: 1.55;
}

small {
  display: block;
  font-size: 12px;
}

code {
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 12px;
}

.status-card,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.status-dot.error {
  background: var(--danger);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 22px;
}

.summary-grid article {
  padding: 18px;
}

.summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.dashboard-command-center {
  margin-bottom: 22px;
}

.dashboard-customer-handoff {
  margin-bottom: 22px;
}

.dashboard-first-customer {
  margin-bottom: 22px;
}

.dashboard-demo-brief {
  margin-bottom: 22px;
}

.dashboard-production-deploy {
  margin-bottom: 22px;
}

.dashboard-production-decision,
.dashboard-production-evidence,
.dashboard-production-signoff,
.dashboard-production-report,
.dashboard-production-runbook,
.dashboard-production-command,
.dashboard-production-closeout,
.dashboard-production-approval {
  margin-bottom: 22px;
}

.dashboard-ops-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-op-card {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(128px, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 16px;
}

.dashboard-op-card.ok {
  border-top: 4px solid var(--accent);
}

.dashboard-op-card.watch {
  border-top: 4px solid var(--warn);
}

.dashboard-op-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.dashboard-op-card p {
  margin: 10px 0 0;
  font-size: 13px;
}

.dashboard-op-card a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-op-card a:hover {
  border-color: var(--brand);
  background: #f2f6ff;
  box-shadow: 0 8px 18px rgb(47 111 237 / 12%);
}

.customer-handoff-grid,
.customer-onboarding-grid,
.customer-demo-grid,
.pilot-evidence-grid,
.production-deploy-grid,
.production-decision-grid,
.production-evidence-grid,
.production-signoff-grid,
.production-report-grid,
.production-runbook-grid,
.production-command-grid,
.production-closeout-grid,
.production-approval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.customer-handoff-grid article,
.customer-onboarding-grid article,
.customer-demo-grid article,
.pilot-evidence-grid article,
.production-deploy-grid article,
.production-decision-grid article,
.production-evidence-grid article,
.production-signoff-grid article,
.production-report-grid article,
.production-runbook-grid article,
.production-command-grid article,
.production-closeout-grid article,
.production-approval-grid article {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(108px, 1fr) auto auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.customer-handoff-grid article.ok,
.customer-onboarding-grid article.ok,
.customer-demo-grid article.ok,
.pilot-evidence-grid article.ok,
.production-deploy-grid article.ok,
.production-decision-grid article.ok,
.production-evidence-grid article.ok,
.production-signoff-grid article.ok,
.production-report-grid article.ok,
.production-runbook-grid article.ok,
.production-command-grid article.ok,
.production-closeout-grid article.ok,
.production-approval-grid article.ok {
  border-top: 4px solid var(--accent);
}

.customer-handoff-grid article.watch,
.customer-onboarding-grid article.watch,
.customer-demo-grid article.watch,
.pilot-evidence-grid article.watch,
.production-deploy-grid article.watch,
.production-decision-grid article.watch,
.production-evidence-grid article.watch,
.production-signoff-grid article.watch,
.production-report-grid article.watch,
.production-runbook-grid article.watch,
.production-command-grid article.watch,
.production-closeout-grid article.watch,
.production-approval-grid article.watch {
  border-top: 4px solid var(--warn);
}

.customer-handoff-grid article.over,
.customer-onboarding-grid article.over,
.customer-demo-grid article.over,
.pilot-evidence-grid article.over,
.production-deploy-grid article.over,
.production-decision-grid article.over,
.production-evidence-grid article.over,
.production-signoff-grid article.over,
.production-report-grid article.over,
.production-runbook-grid article.over,
.production-command-grid article.over,
.production-closeout-grid article.over,
.production-approval-grid article.over {
  border-top: 4px solid var(--danger);
}

.customer-handoff-grid strong,
.customer-handoff-grid small,
.customer-handoff-grid p,
.customer-handoff-grid code,
.customer-onboarding-grid strong,
.customer-onboarding-grid small,
.customer-onboarding-grid p,
.customer-onboarding-grid code,
.customer-demo-grid strong,
.customer-demo-grid small,
.customer-demo-grid p,
.customer-demo-grid code,
.pilot-evidence-grid strong,
.pilot-evidence-grid small,
.pilot-evidence-grid p,
.pilot-evidence-grid code,
.production-deploy-grid strong,
.production-deploy-grid small,
.production-deploy-grid p,
.production-deploy-grid code,
.production-decision-grid strong,
.production-decision-grid small,
.production-decision-grid p,
.production-decision-grid code,
.production-evidence-grid strong,
.production-evidence-grid small,
.production-evidence-grid p,
.production-evidence-grid code,
.production-signoff-grid strong,
.production-signoff-grid small,
.production-signoff-grid p,
.production-signoff-grid code,
.production-report-grid strong,
.production-report-grid small,
.production-report-grid p,
.production-report-grid code,
.production-runbook-grid strong,
.production-runbook-grid small,
.production-runbook-grid p,
.production-runbook-grid code,
.production-command-grid strong,
.production-command-grid small,
.production-command-grid p,
.production-command-grid code,
.production-closeout-grid strong,
.production-closeout-grid small,
.production-closeout-grid p,
.production-closeout-grid code,
.production-approval-grid strong,
.production-approval-grid small,
.production-approval-grid p,
.production-approval-grid code {
  display: block;
  overflow-wrap: anywhere;
}

.customer-handoff-grid strong,
.customer-onboarding-grid strong,
.customer-demo-grid strong,
.pilot-evidence-grid strong,
.production-deploy-grid strong,
.production-decision-grid strong,
.production-evidence-grid strong,
.production-signoff-grid strong,
.production-report-grid strong,
.production-runbook-grid strong,
.production-command-grid strong,
.production-closeout-grid strong,
.production-approval-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.customer-handoff-grid small,
.customer-handoff-grid p,
.customer-handoff-grid code,
.customer-onboarding-grid small,
.customer-onboarding-grid p,
.customer-onboarding-grid code,
.customer-demo-grid small,
.customer-demo-grid p,
.customer-demo-grid code,
.pilot-evidence-grid small,
.pilot-evidence-grid p,
.pilot-evidence-grid code,
.production-deploy-grid small,
.production-deploy-grid p,
.production-deploy-grid code,
.production-decision-grid small,
.production-decision-grid p,
.production-decision-grid code,
.production-evidence-grid small,
.production-evidence-grid p,
.production-evidence-grid code,
.production-signoff-grid small,
.production-signoff-grid p,
.production-signoff-grid code,
.production-report-grid small,
.production-report-grid p,
.production-report-grid code,
.production-runbook-grid small,
.production-runbook-grid p,
.production-runbook-grid code,
.production-command-grid small,
.production-command-grid p,
.production-command-grid code,
.production-closeout-grid small,
.production-closeout-grid p,
.production-closeout-grid code,
.production-approval-grid small,
.production-approval-grid p,
.production-approval-grid code {
  color: var(--muted);
  font-size: 12px;
}

.customer-handoff-grid p,
.customer-onboarding-grid p,
.customer-demo-grid p,
.pilot-evidence-grid p,
.production-deploy-grid p,
.production-decision-grid p,
.production-evidence-grid p,
.production-signoff-grid p,
.production-report-grid p,
.production-runbook-grid p,
.production-command-grid p,
.production-closeout-grid p,
.production-approval-grid p {
  margin: 0;
  line-height: 1.45;
}

.customer-handoff-grid a,
.customer-onboarding-grid a,
.customer-demo-grid a,
.pilot-evidence-grid a,
.production-deploy-grid a,
.production-decision-grid a,
.production-evidence-grid a,
.production-signoff-grid a,
.production-report-grid a,
.production-runbook-grid a,
.production-command-grid a,
.production-closeout-grid a,
.production-approval-grid a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.route-hidden {
  display: none !important;
}

.summary-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-grid article,
.panel,
.dashboard-op-card {
  animation: fade-up 360ms ease both;
}

.summary-grid article:nth-child(2),
.dashboard-op-card:nth-child(2) {
  animation-delay: 45ms;
}

.summary-grid article:nth-child(3),
.dashboard-op-card:nth-child(3) {
  animation-delay: 90ms;
}

.panel:hover,
.summary-grid article:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.summary-grid article {
  padding: 20px;
}

.summary-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.panel {
  margin-top: 18px;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.front-template-surface {
  --front-primary: var(--brand);
  --front-accent: var(--accent);
  --front-font: inherit;
  font-family: var(--front-font);
}

.front-template-surface .pill {
  border-color: var(--front-primary);
  color: var(--front-primary);
}

.front-template-surface h2 {
  color: var(--ink);
}

.shell-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.shell-tab {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: left;
}

.shell-tab span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shell-tab strong {
  line-height: 1.35;
}

.shell-tab:hover,
.shell-tab.active {
  border-color: var(--brand);
  background: #f2f6ff;
}

.shell-detail {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding: 18px;
}

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

.detail-meta div {
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

.module-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #344054;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.route-chip-list {
  padding-top: 2px;
}

.route-chip-list a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
}

.route-chip-list a:hover {
  border-color: var(--brand);
  background: #f2f6ff;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap.compact {
  margin-top: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: var(--surface-muted);
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  display: block;
  margin-bottom: 4px;
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.progress-cell.wide {
  margin: 12px 0;
}

progress {
  width: 120px;
  height: 8px;
  accent-color: var(--brand);
}

.cards,
.usage-grid,
.split-grid,
.course-layout,
.cms-attachment-layout,
.classroom-layout {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.usage-grid,
.split-grid,
.course-layout,
.cms-attachment-layout,
.classroom-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.classroom-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.split-grid > *,
.course-layout > *,
.cms-attachment-layout > *,
.classroom-layout > *,
.billing-layout > *,
.commerce-layout > *,
.white-label-layout > *,
.platform-layout > * {
  min-width: 0;
}

.cards article,
.usage-grid article,
.channel-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 18px;
}

.course-tabs,
.channel-grid {
  display: grid;
  gap: 10px;
}

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

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

.course-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  cursor: pointer;
  min-height: 76px;
  padding: 14px;
  text-align: left;
}

.course-tab strong,
.course-tab span {
  display: block;
}

.course-tab span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.course-tab:hover,
.course-tab.active {
  border-color: var(--brand);
  background: #f2f6ff;
}

.course-outline {
  margin-top: 12px;
}

.course-readiness-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
  margin-bottom: 12px;
}

.course-readiness-panel strong {
  display: block;
  margin-top: 8px;
}

.readiness-blockers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.readiness-blockers button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  text-align: left;
}

.readiness-blockers button:hover {
  border-color: var(--brand);
  background: #f2f6ff;
}

.readiness-blockers strong,
.readiness-blockers small {
  display: block;
}

.readiness-blockers strong {
  color: var(--ink);
}

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

.selected-row {
  outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: -2px;
}

.course-authoring-panel {
  margin-bottom: 12px;
}

.course-authoring-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  margin-top: 14px;
}

.course-authoring-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.section-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.section-block + .section-block {
  margin-top: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.section-title h3 {
  margin-bottom: 0;
}

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

.course-section-editor .section-title {
  min-width: 0;
}

.course-section-editor input,
.course-lesson-editor input,
.course-lesson-editor select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.course-section-editor input[name='title'],
.course-lesson-main input {
  width: 100%;
  min-width: 0;
  font-weight: 900;
}

.course-small-input {
  width: 76px;
}

.lesson-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.course-lesson-main,
.course-lesson-controls {
  min-width: 0;
}

.course-lesson-main {
  display: grid;
  gap: 6px;
}

.course-lesson-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.course-lesson-controls select {
  width: 132px;
}

.course-lesson-controls small {
  color: #667085;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
}

.tool-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 18px;
}

.tool-panel form {
  display: grid;
  gap: 12px;
}

.tool-panel form + form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tool-panel label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

.tool-panel input[type='checkbox'] {
  width: auto;
  min-height: auto;
}

.export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-panel button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.tool-panel button:hover {
  background: #2458bf;
}

.tool-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

.retention-action-row,
.viewer-retention-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.viewer-retention-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.viewer-retention-actions button:hover {
  border-color: var(--brand);
  background: #f2f6ff;
}

.invite-log-block {
  margin-top: 18px;
}

.viewer-invite-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.viewer-invite-toolbar select,
.viewer-invite-toolbar button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
}

.viewer-invite-toolbar button:hover {
  border-color: var(--brand);
  background: #f2f6ff;
}

.viewer-invite-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.viewer-invite-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.viewer-invite-summary strong {
  color: var(--ink);
  font-size: 16px;
}

.access-import-operations-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}

.access-import-operations-summary article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.access-import-operations-summary span,
.access-import-operations-summary small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.access-import-operations-summary strong {
  display: block;
  margin: 2px 0;
  color: var(--ink);
  font-size: 18px;
}

.external-sales-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.external-sales-boundary strong,
.external-sales-boundary p {
  display: block;
  margin: 0;
}

.external-sales-boundary strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.external-sales-boundary p {
  margin-top: 6px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.invite-preview-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.invite-preview-box strong {
  line-height: 1.35;
}

.invite-preview-box pre {
  overflow: auto;
  max-height: 220px;
  margin: 0;
  color: #475467;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.import-job-detail,
.integration-guide {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.mini-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mini-heading h4 {
  margin: 0 0 3px;
  font-size: 14px;
}

.mini-heading small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mini-heading button {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.issue-guide {
  display: grid;
  gap: 7px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.issue-guide strong,
.issue-guide p,
.issue-guide ul,
.issue-guide li {
  margin: 0;
}

.issue-guide strong {
  font-size: 12px;
}

.issue-guide p,
.issue-guide li {
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.issue-guide ul {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.issue-guide li {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
}

.issue-guide code {
  overflow-wrap: anywhere;
}

.retry-plan {
  display: grid;
  gap: 8px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.retry-plan strong,
.retry-plan p,
.retry-plan ul,
.retry-plan li {
  margin: 0;
}

.retry-plan > strong {
  font-size: 12px;
}

.retry-plan p,
.retry-plan li,
.retry-plan small {
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.retry-plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.retry-plan-summary article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.retry-plan-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.retry-plan ul {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.retry-plan li {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
}

.retry-plan code {
  overflow-wrap: anywhere;
}

.retry-plan-list {
  display: grid;
  gap: 8px;
}

.retry-plan-list article {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.retry-plan-list strong,
.retry-plan-list small {
  display: block;
}

.retry-plan-list p {
  margin-top: 4px;
}

.integration-spec-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.integration-spec-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
}

.integration-spec-list dt,
.integration-spec-list dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.integration-spec-list dt {
  color: #475467;
  font-weight: 800;
}

.integration-spec-list dd {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.integration-guide pre {
  overflow: auto;
  max-height: 260px;
  margin: 0;
  border-radius: 8px;
  background: #101828;
  color: #d1e0ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  white-space: pre-wrap;
}

.result {
  min-height: 42px;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 10px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.compact-tool {
  margin-top: 8px;
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

body[data-current-shell='learner-front'] {
  background: #ffffff;
}

body[data-current-shell='learner-front'] .rail,
body[data-current-shell='learner-front'] .topbar,
body[data-current-shell='learner-front'] .mobile-console-menu {
  display: none;
}

body[data-current-shell='learner-front'] main {
  margin-left: 0;
  padding: 0;
}

body[data-current-shell='learner-front'] .panel {
  width: min(1360px, calc(100vw - 48px));
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.front-local-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.front-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.front-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.front-local-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.front-local-header nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.front-local-header nav a:hover,
.front-local-header nav a.active {
  border-color: var(--front-primary);
  background: color-mix(in srgb, var(--front-primary) 8%, #ffffff);
  color: var(--front-primary);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--front-primary) 14%, transparent);
}

.signup-page {
  background: var(--surface);
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  min-height: 560px;
}

.signup-copy,
.signup-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 22px;
}

.signup-copy {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(90deg, rgb(14 23 42 / 78%), rgb(14 23 42 / 18%)),
    var(--signup-cover-url, linear-gradient(135deg, #101828, #344054));
  background-position: center;
  background-size: cover;
  color: #ffffff;
  padding: 42px;
  position: relative;
}

.signup-copy::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgb(255 255 255 / 14%) 50%, transparent 72%);
  content: "";
  opacity: 0;
  transform: translateX(-70%);
  animation: hero-sheen 5.4s ease-in-out 900ms infinite;
}

.signup-brand-strip {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, max-content);
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.signup-brand-strip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.signup-copy h2 {
  max-width: 620px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.14;
}

.signup-copy p {
  max-width: 540px;
  margin-top: 0;
  color: #e7edf6;
  font-size: 15px;
  line-height: 1.7;
}

.signup-copy .eyebrow {
  color: #bfdbfe;
}

.signup-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signup-proof-list article {
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}

.signup-proof-list strong {
  display: inline;
  margin-right: 8px;
  color: #ffffff;
  font-size: 12px;
}

.signup-proof-list span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.signup-card {
  align-self: center;
  display: grid;
  gap: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.signup-card-head {
  display: grid;
  gap: 6px;
}

.signup-card-head h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.signup-card-head small {
  line-height: 1.55;
}

.signup-cover {
  display: none;
}

.signup-cover img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
}

.signup-card form {
  display: grid;
  gap: 12px;
}

.signup-card label,
.signup-primary-form label,
.learner-auth-panel label,
.invite-accept-panel label,
.signup-access-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.signup-card input,
.signup-card select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
}

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

.signup-card input:focus,
.signup-card select:focus {
  border-color: var(--front-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--front-primary) 13%, transparent);
}

.signup-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--front-primary);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.signup-card button:not(:disabled):hover {
  box-shadow: 0 12px 24px color-mix(in srgb, var(--front-primary) 22%, transparent);
  transform: translateY(-1px);
}

.signup-card small {
  overflow-wrap: anywhere;
}

.learner-auth-panel,
.invite-accept-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.signup-secondary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
  padding: 14px;
}

.signup-collapsible {
  display: grid;
  gap: 12px;
}

.signup-collapsible > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.signup-collapsible > summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signup-collapsible > summary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.signup-collapsible > summary::after {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "+";
  font-size: 15px;
  font-weight: 900;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.signup-collapsible[open] > summary {
  padding-bottom: 10px;
}

.signup-collapsible[open] > summary::after {
  content: "-";
}

.signup-secondary-panel .card-head h3 {
  margin-bottom: 2px;
}

.learner-auth-panel form,
.invite-accept-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: end;
}

.invite-accept-panel form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.invite-accept-panel form button {
  grid-column: 1 / -1;
}

.learner-auth-panel > button {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
}

.learner-auth-panel > button:not(:disabled):hover {
  border-color: var(--front-primary);
  background: color-mix(in srgb, var(--front-primary) 8%, #ffffff);
  color: var(--front-primary);
}

.learner-auth-panel > button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.learner-session-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.learner-session-summary article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.learner-session-summary strong,
.learner-session-summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.learner-session-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.signup-access-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.signup-access-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
}

.signup-access-panel form button {
  grid-column: 1 / -1;
}

.signup-access-paths {
  display: grid;
  gap: 8px;
}

.signup-access-path {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  padding: 10px;
  text-decoration: none;
}

.signup-access-path.active {
  border-color: var(--front-primary);
  background: color-mix(in srgb, var(--front-primary) 8%, #ffffff);
}

.signup-access-path strong,
.signup-access-path small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.signup-access-path small {
  grid-column: 1 / -1;
}

.signup-page[data-front-layout="visual-cover"] .signup-cover img {
  height: 240px;
}

.signup-page[data-front-layout="proof-side"] .signup-proof-list {
  grid-template-columns: 1fr;
}

.player-panel,
.curriculum-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

#classroom.front-template-surface .player-panel {
  border-top: 4px solid var(--front-primary);
}

#classroom.front-template-surface .curriculum-panel {
  border-top: 4px solid var(--front-accent);
}

#classroom.front-template-surface .meter span {
  background: var(--front-accent);
}

#classroom.front-template-surface #issuePlaybackSession {
  background: var(--front-primary);
}

.player-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(16 24 40 / 76%), rgb(16 24 40 / 24%)),
    var(--classroom-poster-url, #101828);
  background-position: center;
  background-size: cover;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  position: relative;
}

.player-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgb(255 255 255 / 16%), transparent 32%);
  content: "";
  opacity: 0.55;
}

.classroom-video {
  display: none;
  width: 100%;
  min-height: 460px;
  aspect-ratio: 16 / 9;
  background: #101828;
  object-fit: cover;
}

.player-frame.session-ready .classroom-video {
  display: block;
}

.player-frame.session-ready .player-poster {
  display: none;
}

.player-poster {
  min-height: 460px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.player-poster strong {
  max-width: 680px;
  font-size: 32px;
  line-height: 1.3;
}

.player-poster small {
  color: #cbd5e1;
}

.play-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #94a3b8;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  animation: play-pulse 2.8s ease-in-out infinite;
}

.player-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #344054;
  padding: 14px;
  font-size: 12px;
  font-weight: 800;
}

.player-controls .meter {
  margin: 0;
  background: #344054;
}

.player-adapter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-top: 1px solid #344054;
  padding: 10px 14px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.player-adapter-bar span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-adapter-bar span:last-child {
  text-align: right;
}

.playback-session-strip {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.session-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}

.session-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.session-meta div {
  min-width: 0;
}

.session-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.session-meta dd {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.progress-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.progress-actions button:not(:disabled):hover {
  background: var(--brand-strong);
  box-shadow: 0 10px 22px rgb(47 111 237 / 18%);
  transform: translateY(-1px);
}

.progress-actions button:disabled {
  background: #d0d5dd;
  color: #667085;
  cursor: not-allowed;
}

.progress-actions .result {
  grid-column: 1 / -1;
  margin-top: 0;
}

.classroom-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
}

.classroom-summary strong {
  color: var(--ink);
  font-size: 24px;
}

.curriculum-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.curriculum-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.curriculum-lesson {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-align: left;
}

.curriculum-lesson + .curriculum-lesson {
  margin-top: 8px;
}

.curriculum-lesson.active,
.curriculum-lesson:hover {
  border-color: var(--brand);
  background: #f2f6ff;
  box-shadow: 0 8px 18px rgb(47 111 237 / 8%);
}

.curriculum-lesson strong,
.curriculum-lesson small {
  display: block;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.platform-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.compact-metrics {
  margin-top: 0;
}

.admin-metrics article,
.platform-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
  padding: 16px;
}

.admin-console-shell .admin-metrics article,
.platform-metrics article {
  padding: 13px 14px;
}

.admin-metrics strong,
.platform-metrics strong {
  display: block;
  font-size: 22px;
}

.admin-console-shell .admin-metrics article:first-child,
.platform-metrics article:first-child {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: 0 8px 20px rgb(47 111 237 / 9%);
}

.row-actions button,
.admin-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.row-actions button:hover,
.admin-toolbar button:hover {
  border-color: var(--brand);
  background: #f2f6ff;
  box-shadow: 0 8px 18px rgb(47 111 237 / 10%);
  transform: translateY(-1px);
}

.row-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.form-actions button {
  flex: 1 1 150px;
}

.approval-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.approval-summary-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 13px 14px;
}

.approval-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.approval-summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) 130px 130px 140px;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.admin-toolbar label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.admin-toolbar input,
.admin-toolbar select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.admin-subpage {
  margin-top: 14px;
}

.admin-console-shell {
  background: #f8fafc;
}

.admin-console-shell .panel-heading,
.cms-shell .panel-heading {
  margin: -24px -24px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 22px 24px 18px;
}

.admin-console-shell .panel-heading {
  border-left: 4px solid var(--brand);
}

.cms-shell .panel-heading {
  border-left: 4px solid #12b76a;
}

.admin-console-shell .admin-metrics article,
.admin-console-shell .tool-panel,
.admin-console-shell .table-wrap,
.cms-shell .tool-panel,
.cms-shell .table-wrap,
.cms-shell .channel-grid article,
.cms-shell .delivery-panel,
.cms-shell .delivery-detail {
  background: #ffffff;
}

.admin-console-shell .admin-metrics article,
.admin-console-shell .tool-panel,
.admin-console-shell .table-wrap,
.cms-local-menu,
.cms-local-content {
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}

.admin-console-shell .subpage-tabs {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
}

.admin-console-shell .subpage-tabs a {
  border: 0;
  min-height: 36px;
}

.admin-console-shell .admin-toolbar {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(128px, 0.8fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.admin-console-shell th,
.admin-console-shell td,
.cms-shell th,
.cms-shell td {
  padding: 12px 14px;
}

.admin-console-shell .admin-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.72fr);
  gap: 16px;
}

.permission-disclosure {
  margin-top: 14px;
}

.permission-disclosure > summary,
.legacy-commerce-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
}

.permission-disclosure > summary span,
.legacy-commerce-disclosure > summary span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.permission-disclosure > summary strong,
.legacy-commerce-disclosure > summary strong {
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

.permission-disclosure > summary::after,
.legacy-commerce-disclosure > summary::after {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "+";
  font-weight: 900;
}

.permission-disclosure[open] > summary::after,
.legacy-commerce-disclosure[open] > summary::after {
  content: "-";
}

.permission-disclosure[open] .permission-grid,
.permission-disclosure[open] .platform-role-controls {
  margin-top: 12px;
}

.legacy-commerce-disclosure {
  margin: 14px 0;
}

.legacy-commerce-disclosure > summary {
  background: #fffaf0;
}

.legacy-commerce-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.legacy-commerce-archive strong,
.legacy-commerce-archive p {
  display: block;
  margin: 0;
}

.legacy-commerce-archive strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.legacy-commerce-archive p {
  margin-top: 6px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.legacy-commerce-disclosure[open] .legacy-commerce-tabs {
  margin-top: 12px;
}

.section-note {
  display: block;
  margin: -4px 0 12px;
  color: var(--muted);
}

.admin-list-pane {
  min-width: 0;
}

.admin-section-toolbar {
  margin-top: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  padding: 14px 16px;
}

.admin-list-pane .table-wrap {
  margin-top: 0;
  border-radius: 0 0 8px 8px;
}

.admin-console-shell th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-console-shell tbody tr:hover td,
.cms-shell tbody tr:hover td {
  background: #f8fbff;
}

.admin-action-panel {
  align-self: start;
  position: sticky;
  top: 22px;
}

.action-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.action-panel-head h3 {
  margin: 2px 0 0;
}

.admin-console-shell .pagination-bar {
  justify-content: flex-end;
  margin-top: 12px;
}

.cms-shell {
  background: #f8fafc;
}

.cms-shell-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.cms-local-menu,
.cms-local-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cms-local-menu {
  align-self: start;
  position: sticky;
  top: 22px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.cms-local-menu strong {
  display: block;
  font-size: 17px;
}

.cms-side-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.cms-shell .subpage-tabs {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.cms-shell .subpage-tabs a {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.cms-shell .subpage-tabs a:hover,
.cms-shell .subpage-tabs a.active {
  border-color: var(--brand);
  background: #f2f6ff;
  color: var(--brand);
}

.cms-local-content {
  min-height: 620px;
  padding: 18px;
}

.cms-subpage {
  margin-top: 0;
}

.cms-shell .section-toolbar {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.cms-shell .section-toolbar + .channel-grid,
.cms-shell .section-toolbar + .table-wrap {
  margin-top: 12px;
}

.cms-selected-asset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, #ffffff) 0%, #ffffff 42%),
    #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.cms-selected-asset h3 {
  margin-bottom: 4px;
}

.cms-selected-asset p {
  margin: 0;
}

.cms-selected-asset .muted-line {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.cms-asset-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.cms-selected-asset a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.cms-selected-asset a:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 22px rgb(24 166 124 / 18%);
}

.video-library-row.selected-row td {
  background: color-mix(in srgb, var(--accent) 8%, #ffffff);
}

.video-library-row .compact-actions {
  margin-top: 8px;
}

.delivery-ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.delivery-panel,
.delivery-detail {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.delivery-panel-head,
.delivery-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.delivery-panel-head strong,
.delivery-detail-head strong {
  display: block;
  margin-top: 4px;
}

.delivery-panel-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.delivery-panel-head button:hover {
  border-color: var(--brand);
  background: #f2f6ff;
}

.delivery-panel-head button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.delivery-status-list,
.delivery-summary,
.delivery-detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.delivery-status-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delivery-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.delivery-status-list span,
.delivery-summary span,
.delivery-detail-grid section,
.delivery-empty {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.delivery-summary strong {
  display: block;
  font-size: 22px;
}

.delivery-flow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.delivery-flow-rail article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.delivery-flow-rail span {
  width: 34px;
  height: 34px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f7f1;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.delivery-flow-rail strong,
.delivery-flow-rail small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.delivery-flow-rail strong {
  font-size: 13px;
}

.media-production-readiness {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.media-production-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.media-production-head h3 {
  margin: 4px 0 0;
}

.media-production-head > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 22px;
  white-space: nowrap;
}

.media-production-summary,
.media-production-checklist,
.media-production-evidence,
.media-external-evidence-grid {
  display: grid;
  gap: 10px;
}

.media-production-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.media-production-checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-production-evidence {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-external-evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-production-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-production-ops-grid h3 {
  margin: 0 0 8px;
}

.media-production-summary article,
.media-production-checklist article,
.media-production-evidence span,
.media-external-evidence-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.media-production-checklist article.ok {
  background: #f7fffb;
}

.media-production-checklist article.watch {
  background: #fffaf0;
}

.media-production-checklist article.over {
  background: #fff7f6;
}

.media-external-evidence-grid article.ok {
  background: #f7fffb;
}

.media-external-evidence-grid article.watch {
  background: #fffaf0;
}

.media-external-evidence-grid article.over {
  background: #fff7f6;
}

.media-production-summary span,
.media-production-summary small,
.media-production-checklist small,
.media-production-evidence small,
.media-external-evidence-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.media-production-summary strong,
.media-production-evidence strong,
.media-external-evidence-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.media-production-evidence code,
.media-external-evidence-grid code {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.media-external-evidence-grid article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.media-external-evidence-grid p {
  min-height: 42px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.media-signoff-panel {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.media-signoff-panel form {
  margin: 12px 0;
}

.media-production-checklist article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.media-production-checklist strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.media-production-checklist p {
  min-height: 40px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.media-production-checklist a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.delivery-selected-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.delivery-selected-strip span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.delivery-selected-strip small,
.delivery-selected-strip strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.delivery-selected-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-selected-strip strong {
  margin-top: 4px;
  font-size: 13px;
}

.delivery-table-toolbar {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  padding: 14px 16px;
}

.delivery-table-wrap {
  margin-top: 0;
  border-radius: 0 0 8px 8px;
}

.compact-result {
  min-height: 70px;
  margin-top: 12px;
}

.cms-runtime-strip {
  margin: 12px 0;
}

.upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.upload-result-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.upload-result-detail article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.upload-result-detail strong,
.upload-result-detail code,
.upload-result-detail small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.upload-result-detail code {
  color: var(--ink);
  font-size: 12px;
}

.delivery-course-impact {
  grid-column: 1 / -1;
}

.delivery-impact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.delivery-course-impact .compact-actions {
  margin-top: 10px;
}

.delivery-detail {
  margin-top: 12px;
}

.delivery-detail-grid {
  grid-template-columns: minmax(160px, 0.75fr) minmax(200px, 0.95fr) minmax(220px, 1fr) minmax(260px, 1.15fr);
}

.delivery-detail-grid p {
  margin: 6px 0;
}

.delivery-log-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.muted-line {
  color: var(--muted);
}

.delivery-command {
  max-height: 150px;
  overflow: auto;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.muted-command {
  background: var(--surface);
  color: var(--muted);
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 180px;
}

.compact-actions button {
  min-width: 58px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.pagination-bar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

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

.pagination-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-modal {
  width: min(880px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(16 24 40 / 20%);
  padding: 22px;
}

.detail-drawer {
  width: min(680px, calc(100vw - 24px));
  height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  margin: 12px 12px 12px auto;
  padding: 0;
}

.detail-modal::backdrop {
  background: rgb(16 24 40 / 48%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 20px 22px 16px;
}

.modal-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

#studentDetailBody {
  padding: 18px 22px 22px;
}

.detail-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.detail-identity strong,
.detail-identity small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-identity > div > strong {
  margin-top: 4px;
  font-size: 22px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.detail-summary article,
.detail-grid section,
.detail-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.detail-summary strong {
  display: block;
  font-size: 18px;
}

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

.detail-profile-section {
  background: #ffffff;
}

.detail-kv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.detail-kv-list span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.detail-kv-list small,
.detail-kv-list strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-kv-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-status-row,
.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-status-row {
  margin-top: 12px;
}

.detail-note + .detail-note {
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: #344054;
  margin: 0 4px 4px 0;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.csv-preview {
  min-height: 120px;
  margin: 14px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #d1e0ff;
  font-size: 12px;
  line-height: 1.6;
  padding: 14px;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-toolbar h3 {
  margin-bottom: 0;
}

.section-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.section-toolbar button:hover {
  border-color: var(--brand);
  background: #f2f6ff;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subpage-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 4px;
}

.subpage-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.subpage-tabs a:hover,
.subpage-tabs a.active {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--brand);
}

.reference-tabs {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.reference-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.reference-tabs a:hover,
.reference-tabs a.active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.commerce-subpage {
  margin-top: 18px;
}

.billing-subpage {
  margin-top: 18px;
}

.learning-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
  margin-top: 16px;
}

.learning-filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.learning-filter-panel select {
  width: 100%;
}

.learning-filter-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.learning-action-handoff {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.learning-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.learning-action-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.learning-action-grid article.watch {
  border-color: #fed7aa;
  background: #fff7ed;
}

.learning-action-grid small,
.learning-action-grid p,
.learning-action-grid code {
  display: block;
  overflow-wrap: anywhere;
}

.learning-action-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.learning-action-grid p {
  margin: 8px 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.learning-action-grid code {
  color: var(--muted);
  font-size: 11px;
}

.learning-cohort-panel {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.learning-cohort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.learning-cohort-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.learning-cohort-item.watch {
  border-color: #fed7aa;
  background: #fff7ed;
}

.learning-cohort-item.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.learning-cohort-item dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.learning-cohort-item dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.learning-cohort-item dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.learning-cohort-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.learning-trend-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 16px;
}

.learning-trend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.learning-trend-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.trend-item-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trend-item-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.trend-delta {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 900;
  background: #eef2ff;
  color: #475569;
}

.trend-delta.up {
  background: #ecfdf3;
  color: #087443;
}

.trend-delta.down {
  background: #fff1f2;
  color: #be123c;
}

.trend-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 12px 0;
}

.trend-meter span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.learning-trend-item dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.learning-trend-item div {
  min-width: 0;
}

.learning-trend-item dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.learning-trend-item dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.selected-row {
  background: #f8fafc;
}

.mini-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mini-button:hover,
.mini-button.active {
  border-color: var(--brand);
  color: var(--brand);
}

.learning-drilldown-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.learning-cohort-drilldown-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.learning-drilldown-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.learning-drilldown-summary article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.learning-drilldown-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.learning-drilldown-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.learning-distribution {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.learning-distribution-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 800;
}

.distribution-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.distribution-meter span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--brand);
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-top: 18px;
}

.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-top: 18px;
}

.commerce-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.commerce-catalog article {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.commerce-catalog strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 20px;
}

.commerce-catalog p {
  margin-bottom: 0;
}

.commerce-catalog .readiness-blockers,
.commerce-catalog .compact-actions {
  margin-top: 10px;
}

.commerce-secondary {
  align-items: start;
}

.commerce-ops-grid {
  align-items: start;
  margin-top: 18px;
}

.viewer-invite-guide {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.viewer-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.viewer-guide-head strong,
.viewer-guide-head small {
  display: block;
}

.viewer-guide-head small {
  margin-top: 4px;
  color: #667085;
}

.viewer-guide-summary {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.viewer-guide-steps,
.viewer-lifecycle-strip {
  display: grid;
  gap: 8px;
}

.viewer-guide-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.viewer-guide-steps article,
.viewer-lifecycle-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.viewer-guide-steps strong,
.viewer-guide-steps small,
.viewer-lifecycle-strip strong,
.viewer-lifecycle-strip small {
  display: block;
}

.viewer-guide-steps small,
.viewer-lifecycle-strip small {
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.viewer-lifecycle-strip article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
}

.viewer-lifecycle-strip article > small {
  grid-column: 1 / -1;
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 14px;
  margin-top: 18px;
}

.platform-persistence-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
  margin-top: 18px;
}

.db-cutover-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.db-cutover-panel .section-toolbar {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.db-cutover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.db-cutover-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.db-cutover-grid strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.platform-subpage,
.platform-role-panel {
  margin-top: 18px;
}

.platform-account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.platform-account-summary article {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.platform-account-summary strong,
.platform-account-summary small {
  display: block;
  margin-top: 8px;
}

.account-structure-layout {
  align-items: start;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tenant-admin-lifecycle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tenant-admin-lifecycle-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.tenant-admin-lifecycle-actions button:not(:disabled):hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tenant-admin-lifecycle-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.account-flow {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-flow article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.flow-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f7f1;
  color: #047857;
  font-size: 13px;
  font-weight: 900;
}

.account-flow strong,
.account-flow small {
  display: block;
}

.account-flow small {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.account-flow p {
  margin: 8px 0 0;
  color: #475467;
}

.migration-list {
  display: grid;
  gap: 10px;
}

.platform-runtime-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.platform-runtime-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.platform-runtime-strip strong,
.platform-runtime-strip small {
  display: block;
}

.platform-runtime-strip small {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.migration-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.migration-list strong,
.migration-list small {
  display: block;
}

.migration-list small {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.settings-subpage {
  margin-top: 18px;
}

.platform-role-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.platform-role-panel {
  margin-top: 14px;
  background: #ffffff;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.admin-permission-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  max-height: 118px;
  overflow: auto;
  padding-right: 4px;
}

.permission-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.permission-grid article:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.permission-grid strong,
.permission-grid small {
  display: block;
  margin-top: 6px;
}

.platform-audit-toolbar {
  grid-template-columns: 180px 150px minmax(180px, 1fr) auto minmax(190px, 0.65fr);
}

.inline-result {
  margin: 0;
}

.white-label-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-top: 18px;
}

.front-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-top: 18px;
}

.portal-readiness-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-top: 18px;
}

.portal-readiness-main,
.portal-readiness-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.portal-readiness-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.portal-score-block,
.portal-readiness-metrics article,
.portal-check-card,
.portal-readiness-links,
.compact-table-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
}

.portal-score-block {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.portal-score-block.ok {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: #effaf6;
}

.portal-score-block.watch {
  border-color: #f5c489;
  background: #fff8ec;
}

.portal-score-block.over {
  border-color: #f0a8a1;
  background: #fff4f2;
}

.portal-score-block span,
.portal-score-block small,
.portal-readiness-metrics span,
.portal-check-card p,
.portal-check-action small,
.portal-readiness-links strong,
.portal-readiness-links em {
  color: var(--muted);
}

.portal-score-block strong {
  display: block;
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.portal-score-block span,
.portal-score-block small,
.portal-readiness-metrics span,
.portal-readiness-links em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-readiness-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-readiness-metrics article {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.portal-readiness-metrics strong {
  color: var(--ink);
  font-size: 18px;
}

.portal-readiness-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-readiness-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.portal-demo-handoff,
.portal-launch-evidence {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.portal-demo-grid,
.portal-launch-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.portal-demo-grid article,
.portal-launch-evidence-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.portal-demo-grid article.watch {
  border-color: #fed7aa;
  background: #fff7ed;
}

.portal-launch-evidence-grid article.ok {
  border-color: var(--ok);
  background: #f2fbf6;
}

.portal-launch-evidence-grid article.watch {
  border-color: var(--warn);
  background: #fff8eb;
}

.portal-launch-evidence-grid article.over {
  border-color: var(--danger);
  background: #fff5f5;
}

.portal-demo-grid small,
.portal-demo-grid p,
.portal-demo-grid code,
.portal-launch-evidence-grid small,
.portal-launch-evidence-grid p,
.portal-launch-evidence-grid code {
  display: block;
  overflow-wrap: anywhere;
}

.portal-demo-grid small,
.portal-launch-evidence-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-demo-grid p,
.portal-launch-evidence-grid p {
  margin: 8px 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.portal-demo-grid code,
.portal-launch-evidence-grid code {
  color: var(--muted);
  font-size: 11px;
}

.portal-guide-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.portal-guide-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.portal-guide-step.ok {
  background: #f7fffb;
}

.portal-guide-step.watch {
  background: #fffaf0;
}

.portal-guide-step.over {
  background: #fff7f6;
}

.portal-guide-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.portal-guide-step p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.portal-guide-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.portal-guide-meta span,
.portal-guide-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-guide-step a {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.portal-check-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.portal-check-card.ok {
  background: #f7fffb;
}

.portal-check-card.watch {
  background: #fffaf0;
}

.portal-check-card.over {
  background: #fff7f6;
}

.portal-check-head,
.portal-check-action {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.portal-check-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-check-card p {
  min-height: 38px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.portal-check-action small {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.portal-check-action a,
.portal-readiness-links a {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.portal-readiness-links {
  padding: 14px;
}

.portal-readiness-links h3 {
  margin: 0 0 10px;
}

.portal-readiness-links > div {
  display: grid;
  gap: 8px;
}

.portal-readiness-links a {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.portal-readiness-links span {
  color: var(--ink);
  font-weight: 900;
}

.portal-readiness-links strong {
  grid-column: 1;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.portal-readiness-links em {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.portal-readiness-links em.ok {
  color: var(--accent-strong);
}

.portal-readiness-links em.watch {
  color: var(--warn);
}

.portal-readiness-links em.over {
  color: var(--danger);
}

.compact-table-block {
  padding: 14px;
}

.scope-policy-grid,
.front-template-preview-grid {
  display: grid;
  gap: 12px;
}

.template-preview-handoff-grid,
.template-signoff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.scope-policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.scope-policy-grid article,
.front-template-card,
.template-preview-handoff-grid article,
.template-signoff-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.template-preview-handoff-grid article.watch {
  border-color: var(--warn);
  background: #fff8eb;
}

.template-signoff-grid article.ok {
  border-color: var(--ok);
  background: #f2fbf6;
}

.template-signoff-grid article.watch {
  border-color: var(--warn);
  background: #fff8eb;
}

.template-signoff-grid article.over {
  border-color: var(--danger);
  background: #fff5f5;
}

.scope-policy-grid strong,
.front-template-card strong {
  display: block;
}

.scope-policy-grid small,
.front-template-card small,
.template-preview-handoff-grid small,
.template-signoff-grid small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.template-preview-handoff-grid p,
.template-signoff-grid p {
  margin: 8px 0;
  color: var(--ink);
  font-size: 13px;
}

.template-preview-handoff-grid a,
.template-signoff-grid a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.front-template-card.active {
  border-color: var(--brand);
  background: #f2f6ff;
}

.template-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--template-primary);
  font-size: 12px;
  font-weight: 900;
}

.front-template-mock {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.front-template-mock img {
  width: 104px;
  height: 96px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.front-template-mock p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.front-template-mock button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: default;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.front-template-mock small {
  display: block;
  margin-top: 8px;
}

.reference-form-panel form {
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-field {
  grid-column: 1 / -1;
}

.table-with-title {
  margin-top: 18px;
}

.title-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.title-block h3 {
  margin: 0;
}

.title-block small {
  color: #667085;
  font-weight: 700;
}

.compact-select-label {
  min-width: 220px;
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.compact-select-label select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.reference-table table {
  min-width: 720px;
}

.reference-table th {
  height: 40px;
  background: #f8fafc;
  color: #667085;
  font-weight: 800;
  white-space: nowrap;
}

.reference-table td {
  height: 56px;
  vertical-align: middle;
}

.brand-preview {
  display: grid;
  gap: 12px;
}

.brand-preview-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
}

.brand-preview-hero > img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
}

.brand-preview-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(16 24 40 / 76%), rgb(16 24 40 / 18%));
}

.brand-preview-copy {
  position: absolute;
  inset: auto 22px 22px 22px;
  z-index: 1;
  max-width: 520px;
  color: #ffffff;
}

.preview-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

.preview-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-preview-copy strong {
  display: block;
  font-size: 30px;
  line-height: 1.25;
}

.brand-preview-copy p {
  max-width: 440px;
  margin: 10px 0 16px;
  color: #e4e7ec;
}

.brand-preview-copy button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: default;
  font-size: 14px;
  font-weight: 900;
  padding: 9px 14px;
}

.brand-preview-strip,
.image-slot-grid {
  display: grid;
  gap: 12px;
}

.brand-preview-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-preview-strip img {
  width: 100%;
  height: 112px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.image-slot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.image-slot-grid article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.image-slot-grid article.active {
  border-color: var(--brand);
  background: #f2f6ff;
}

.slot-image {
  width: 86px;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.slot-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.white-label-secondary {
  align-items: start;
}

.subsection-title {
  margin-top: 18px;
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}

.billing-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.billing-summary strong {
  display: block;
  font-size: 20px;
}

.billing-action-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.billing-action-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.billing-action-summary strong {
  display: block;
  font-size: 18px;
}

.billing-summary small,
.billing-action-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.ok {
  background: #e8f7f1;
  color: #047857;
}

.status.watch {
  background: #fff6e6;
  color: var(--warn);
}

.status.over {
  background: #fee4e2;
  color: var(--danger);
}

.status.muted {
  background: #eef2f7;
  color: #475467;
}

.meter {
  width: 100%;
  height: 9px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe3ef;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.reuse-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-sheen {
  0%,
  62% {
    opacity: 0;
    transform: translateX(-70%);
  }

  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(80%);
  }
}

@keyframes play-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(255 255 255 / 28%);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 16px rgb(255 255 255 / 0%);
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  .summary-grid,
  .dashboard-ops-grid,
  .customer-handoff-grid,
  .customer-onboarding-grid,
  .customer-demo-grid,
  .pilot-evidence-grid,
  .production-deploy-grid,
  .production-decision-grid,
  .production-evidence-grid,
  .production-signoff-grid,
  .production-report-grid,
  .production-runbook-grid,
  .production-command-grid,
  .production-closeout-grid,
  .production-approval-grid,
  .cards,
  .reuse-cards,
  .admin-metrics,
  .platform-metrics,
  .platform-account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shell-detail,
  .split-grid,
  .course-layout,
  .cms-attachment-layout,
  .classroom-layout,
  .signup-layout,
  .admin-grid,
  .billing-layout,
	  .commerce-layout,
	  .white-label-layout,
	  .portal-readiness-layout,
	  .front-template-layout,
	  .account-action-grid,
	  .platform-layout,
	  .platform-persistence-head,
      .cms-selected-asset,
		  .cms-shell-layout,
	  .approval-summary-grid,
	  .delivery-ops-grid,
	  .media-production-ops-grid,
	  .upload-result-detail,
	  .delivery-detail-grid,
	  .learning-filter-panel,
	  .learning-cohort-grid,
	  .template-preview-handoff-grid,
	  .template-signoff-grid,
	  .portal-launch-evidence-grid,
	  .portal-guide-step,
	  .learning-drilldown-layout {
	    grid-template-columns: 1fr;
	  }

	  .delivery-flow-rail,
	  .media-production-summary,
	  .access-import-operations-summary,
	  .external-sales-boundary,
	  .legacy-commerce-archive,
	  .media-production-checklist,
	  .media-production-evidence,
	  .media-external-evidence-grid,
	  .media-production-ops-grid,
	  .delivery-selected-strip,
	  .learning-cohort-grid,
	  .learning-trend-grid,
	  .learning-action-grid,
	  .learning-drilldown-summary,
	  .billing-action-summary,
	  .portal-readiness-summary,
	  .portal-readiness-metrics,
	  .db-cutover-grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

  .admin-toolbar,
  .platform-role-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-shell .admin-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-local-menu {
    position: static;
  }

  .admin-action-panel {
    position: static;
  }

  .form-grid.two-column {
    grid-template-columns: 1fr;
  }

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

  .scope-policy-grid,
  .front-template-preview-grid,
  .portal-readiness-checklist,
  .portal-launch-evidence-grid,
  .viewer-guide-steps,
  .retention-action-row,
  .platform-runtime-strip,
  .viewer-retention-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rail {
    position: sticky;
    inset: 0 0 auto;
    width: 100%;
    min-height: 70px;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    z-index: 5;
  }

  .brand-lockup {
    grid-template-columns: 40px minmax(0, 1fr);
    flex: 1 1 auto;
  }

  .brand-lockup strong {
    font-size: 16px;
  }

	  .rail-section-label {
	    display: none;
	  }

  .mark {
    width: 36px;
    height: 36px;
  }

  .rail-nav {
    display: none;
  }

  .mobile-console-menu {
    display: block;
    position: sticky;
    top: 70px;
    z-index: 4;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 10px 24px rgb(16 24 40 / 8%);
    backdrop-filter: blur(12px);
  }

  .mobile-console-menu summary {
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
  }

  .mobile-console-menu summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-console-menu summary strong {
    color: var(--ink);
    font-size: 16px;
  }

  .mobile-console-menu summary::after {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand);
    content: "Menu";
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-console-menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid var(--line);
    padding: 10px 14px 14px;
  }

  .mobile-menu-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
  }

  .mobile-menu-link.active {
    border-color: var(--brand);
    background: #f2f6ff;
    color: var(--brand);
  }

  main {
    margin-left: 0;
    padding: 16px 14px 48px;
  }

	  .topbar,
	  .topbar-side,
	  .front-preview-links,
	  .panel-heading,
	  .section-toolbar {
	    flex-direction: column;
	    align-items: flex-start;
	  }

  h1 {
    font-size: 25px;
  }

  .topbar {
    gap: 14px;
  }

  .topbar-side {
    width: 100%;
  }

  .front-preview-links,
  .status-card {
    width: 100%;
  }

  .topbar .front-preview-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar .front-preview-links a {
    min-height: 38px;
    flex: 1 1 120px;
    justify-content: center;
  }

  .summary-grid,
  .dashboard-ops-grid,
  .customer-handoff-grid,
  .customer-onboarding-grid,
  .customer-demo-grid,
  .pilot-evidence-grid,
  .production-deploy-grid,
  .production-decision-grid,
  .production-evidence-grid,
  .production-signoff-grid,
  .production-report-grid,
  .production-runbook-grid,
  .production-command-grid,
  .production-closeout-grid,
  .production-approval-grid,
  .cards,
  .usage-grid,
  .reuse-cards,
  .admin-metrics,
  .platform-metrics,
  .platform-account-summary,
	  .billing-summary,
	  .billing-action-summary,
	  .learning-cohort-grid,
	  .learning-trend-grid,
	  .learning-drilldown-summary,
	  .portal-readiness-summary,
	  .portal-readiness-metrics,
	  .portal-demo-grid,
	  .portal-readiness-checklist,
	  .commerce-catalog,
  .brand-preview-strip,
  .image-slot-grid,
  .shell-tabs,
  .detail-meta,
  .detail-summary,
  .detail-grid,
  .course-tabs,
  .channel-grid,
  .signup-proof-list,
  .player-adapter-bar,
  .session-meta,
  .progress-actions,
  .admin-toolbar,
	  .platform-role-controls,
	  .account-action-grid,
	  .export-actions,
	  .learner-auth-panel form,
	  .invite-accept-panel form,
	  .learner-session-summary,
	  .signup-access-panel form,
	  .delivery-ops-grid,
	  .upload-actions,
	  .upload-result-detail,
	  .delivery-status-list,
	  .delivery-summary,
	  .media-production-ops-grid,
		  .delivery-detail-grid,
		  .cms-shell-layout,
		  .course-readiness-panel,
      .cms-selected-asset,
	  .delivery-flow-rail,
	  .media-production-summary,
	  .media-production-checklist,
	  .media-production-evidence,
	  .media-external-evidence-grid,
		  .delivery-selected-strip,
		  .db-cutover-grid,
		  .retry-plan-summary,
	  .viewer-guide-steps,
	  .viewer-lifecycle-strip article,
	  .retention-action-row,
		  .viewer-retention-actions,
		  .form-grid.two-column {
		    grid-template-columns: 1fr;
		  }

  .admin-console-shell .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-metrics,
  .platform-metrics {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-shell .admin-metrics article,
  .platform-metrics article {
    min-height: 74px;
    padding: 12px;
  }

  .admin-metrics strong,
  .platform-metrics strong {
    font-size: 20px;
  }

  .admin-console-shell .panel-heading,
  .cms-shell .panel-heading {
    margin: -16px -16px 0;
    padding: 16px;
  }

  .permission-disclosure > summary,
  .legacy-commerce-disclosure > summary {
    align-items: flex-start;
  }

  .admin-list-pane .table-wrap,
  .cms-shell .table-wrap {
    overflow-x: auto;
  }

  .admin-list-pane table,
  .cms-shell table {
    min-width: 680px;
  }

  .cms-local-menu {
    gap: 8px;
    padding: 14px;
  }

  .cms-local-menu > small {
    display: none;
  }

  .cms-shell .subpage-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-selected-asset {
    align-items: stretch;
    gap: 12px;
  }

  .cms-asset-status {
    justify-content: flex-start;
  }

  .signup-layout {
    gap: 16px;
    min-height: 0;
  }

  .signup-copy {
    min-height: 0;
    gap: 18px;
    padding: 26px 22px;
  }

  .signup-copy h2 {
    font-size: 35px;
    line-height: 1.12;
  }

  .signup-copy p {
    font-size: 14px;
  }

  .signup-proof-list {
    gap: 8px;
  }

  .signup-proof-list article {
    border-radius: 8px;
  }

  .signup-card {
    padding: 18px;
  }

  .signup-secondary-panel {
    padding: 12px;
  }

  .player-poster,
  .classroom-video {
    min-height: 360px;
  }

  .player-poster strong {
    font-size: 28px;
  }

	  .title-block {
	    align-items: stretch;
	    flex-direction: column;
	  }

	  body[data-current-shell='learner-front'] .panel {
	    width: 100%;
	    padding: 16px;
	  }

	  .front-local-header {
	    align-items: flex-start;
	    flex-direction: column;
	    padding-bottom: 14px;
	  }

	  .front-local-header nav {
	    width: 100%;
	    overflow-x: auto;
	  }

  .compact-select-label {
    width: 100%;
  }

  .course-authoring-grid,
  .course-section-editor {
    grid-template-columns: 1fr;
  }

  .course-lesson-controls {
    justify-content: flex-start;
  }

  .course-authoring-status {
    justify-content: flex-start;
  }

  .course-lesson-controls select,
  .course-small-input {
    width: 100%;
  }

  .lesson-row,
  .curriculum-lesson {
    grid-template-columns: 1fr;
  }
}
