/* Zam Brothers Agency OS — authenticated product system
   Built around the v3 brand kit. This file intentionally owns the app shell;
   public marketing pages do not load it. */

/* Semantic aliases keep older controls aligned with Brand Kit v3 tokens. */
:root {
  --brand: var(--emerald);
  --brand-ink: var(--on-emerald);
  --border-control: var(--border-strong);
  --shadow-float: var(--shadow-card);
  --student-progress: 0%;
}

/* Preserve dark-mode action contrast after the shared theme aliases. */
html[data-theme="dark"] {
  --on-emerald: #102A20;
  --on-lilac: #241C48;
  --emerald-strong: #8CE0BA;
}

html[data-theme] body:not(.agency-home) {
  min-width: 320px;
  background: var(--canvas) !important;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme] *, html[data-theme] *::before, html[data-theme] *::after { box-sizing: border-box; }
html[data-theme] :focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
html[data-theme] a { color: inherit; }

/* Application frame */
[data-flux-main] { background: var(--canvas) !important; }
[data-flux-sidebar] {
  width: var(--sidebar-width) !important;
  padding: 16px 12px !important;
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}
[data-flux-sidebar-header] { min-height: 52px !important; margin-bottom: 12px; padding: 0 4px; }
[data-flux-sidebar-brand] { min-height: 44px !important; }
[data-flux-sidebar-brand] > div:first-child { border-radius: 14px !important; background: var(--forest) !important; color: var(--command-ink) !important; box-shadow: none !important; }
[data-flux-sidebar-brand] > div:last-child { color: var(--ink) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.01em; }
[data-flux-sidebar-nav] { gap: 10px !important; }
ui-disclosure > button {
  min-height: 32px !important;
  padding: 0 8px !important;
  color: var(--muted) !important;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}
ui-disclosure:has([data-flux-sidebar-item][data-current]) > button { color: var(--ink) !important; }
[data-flux-sidebar-item] {
  position: relative;
  min-height: 42px !important;
  margin: 1px 0 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: background-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease) !important;
}
[data-flux-sidebar-item] svg { color: currentColor !important; stroke-width: 1.7 !important; }
[data-flux-sidebar-item]:hover { border-color: var(--border) !important; background: var(--surface-sunken) !important; color: var(--ink) !important; }
[data-flux-sidebar-item][data-current] { border-color: var(--emerald) !important; background: var(--emerald) !important; color: var(--on-emerald) !important; font-weight: 600 !important; box-shadow: 0 8px 18px -14px var(--emerald); }
[data-flux-sidebar-item][data-current]::before { position: absolute; top: 11px; bottom: 11px; left: -13px; width: 3px; border-radius: 0 3px 3px 0; background: var(--emerald); content: ''; }
[data-flux-sidebar] .rounded-xl.border { border-color: var(--border) !important; border-radius: 16px !important; background: var(--surface-sunken) !important; box-shadow: none !important; }
[data-flux-sidebar] .rounded-xl.border p:first-child { color: var(--muted) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .08em !important; }
[data-flux-sidebar] .rounded-xl.border p:last-child { color: var(--muted) !important; font-size: 12px !important; }

.app-topbar {
  min-height: 72px !important;
  padding: 0 28px !important;
  border-bottom: 1px solid var(--border) !important;
  background: color-mix(in srgb, var(--canvas) 84%, transparent) !important;
  backdrop-filter: blur(16px);
  box-shadow: none !important;
}
.app-topbar-label { color: var(--muted) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase; }
.app-topbar-actions { gap: 8px !important; }
.app-topbar-divider { width: 1px; height: 28px; margin: 0 4px; background: var(--border) !important; }
.theme-switcher, .notification-bell, .app-topbar-profile {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: border-color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease) !important;
}
.theme-switcher:hover, .notification-bell:hover, .app-topbar-profile:hover { border-color: var(--border-strong) !important; background: var(--surface-sunken) !important; transform: translateY(-1px); }

/* Shared content and composition */
.app-page { width: 100%; max-width: 1560px; gap: 28px; padding: 32px 32px 48px; }
.app-page > header h1, .app-page h1 { color: var(--ink); font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.13; }
.app-page > header > p:first-child, .app-section-eyebrow, .app-page table th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.app-page h2 { color: var(--ink); font-weight: 600; letter-spacing: -.015em; }
.app-page .text-zinc-950 { color: var(--ink) !important; }
.app-page .text-zinc-400, .app-page .text-zinc-500, .app-page .text-zinc-600 { color: var(--muted) !important; }
.app-page .text-zinc-700, .app-page .text-zinc-800, .app-page .text-zinc-900 { color: var(--ink) !important; }
.app-page .text-brand-700, .app-page .text-brand-800, .app-table-action { color: var(--emerald-text) !important; }

.app-panel, .app-metric {
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--ink) !important;
  transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.app-panel { border-radius: var(--radius-panel) !important; }
.app-metric { border-radius: var(--radius-card) !important; padding: 20px !important; }
.app-panel:hover, .app-metric:hover { border-color: var(--border-strong) !important; box-shadow: var(--shadow-menu) !important; }

.app-primary-action, .app-page button[type="submit"]:not(.app-secondary-action):not(.app-danger-action):not(.app-warning-action):not(.app-success-action) {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px;
  padding: 0 17px; border: 1px solid var(--emerald); border-radius: var(--radius-control);
  background: var(--emerald); color: var(--on-emerald) !important; font-size: 14px; font-weight: 600; line-height: 1;
  box-shadow: 0 10px 20px -16px var(--emerald); transition: background-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.app-primary-action:hover, .app-page button[type="submit"]:not(.app-secondary-action):not(.app-danger-action):not(.app-warning-action):not(.app-success-action):hover { border-color: var(--emerald-strong); background: var(--emerald-strong); box-shadow: 0 14px 24px -16px var(--emerald); transform: translateY(-1px); }
.app-secondary-action, .app-danger-action {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink) !important; font-size: 13px; font-weight: 600; line-height: 1;
  transition: background-color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}
.app-secondary-action:hover { border-color: var(--ink); background: var(--surface-sunken); transform: translateY(-1px); }
.app-warning-action, .app-success-action { display:inline-flex; min-height:42px; align-items:center; justify-content:center; border:1px solid; border-radius:var(--radius-control); padding:0 15px; font-size:13px; font-weight:600; line-height:1; transition:border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.app-warning-action { border-color:color-mix(in srgb,var(--honey) 58%,var(--border)); background:var(--honey-soft); color:var(--honey-text) !important; }
.app-success-action { border-color:color-mix(in srgb,var(--emerald) 52%,var(--border)); background:var(--emerald-soft); color:var(--emerald-text) !important; }
.app-warning-action:hover, .app-success-action:hover { box-shadow:0 10px 18px -14px color-mix(in srgb,currentColor 64%,transparent); transform:translateY(-1px); }
.app-danger-action { border-color: var(--rose); color: var(--rose-text) !important; }.app-danger-action:hover { background: var(--rose-soft); }
.app-table-action { display: inline-flex; min-height: 36px; align-items: center; font-size: 13px; font-weight: 600; }.app-table-action:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Forms and data tables */
.app-page label > span:first-child, .app-page label > label, .app-page legend { color: var(--ink); font-size: 13px; font-weight: 600; }
.app-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .app-page select, .app-page textarea, [data-flux-control] {
  min-height: 44px; border: 1px solid var(--border-strong) !important; border-radius: var(--radius-control) !important;
  background: var(--surface) !important; color: var(--ink) !important; box-shadow: none !important; font: inherit;
}
.app-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .app-page select { padding: 0 14px; }.app-page textarea { min-height: 112px; padding: 12px 14px; }.app-page input::placeholder, .app-page textarea::placeholder { color: var(--muted); opacity: 1; }
.app-page input:focus, .app-page select:focus, .app-page textarea:focus, [data-flux-control]:focus { border-color: var(--emerald) !important; box-shadow: var(--focus-halo) !important; outline: none; }
.app-page table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; color: var(--ink); }.app-page table thead { background: var(--surface-sunken) !important; }.app-page table th { padding: 13px 12px; color: var(--muted) !important; text-align: left; }.app-page table th:first-child, .app-page table td:first-child { padding-left: 24px; }.app-page table th:last-child, .app-page table td:last-child { padding-right: 24px; }.app-page table tbody tr { border-top: 1px solid var(--border); }.app-page table tbody tr:hover { background: var(--surface-sunken) !important; }.app-page table td { padding: 15px 12px; }.app-page table td:first-child { font-size: 14px; font-weight: 600; }.app-page table td:not(:first-child) { font-size: 13px; font-variant-numeric: tabular-nums; }

/* Semantic status colors stay legible in both modes. */
.app-page .bg-emerald-50, .app-page .bg-brand-50 { background: var(--emerald-soft) !important; }.app-page .text-emerald-700, .app-page .text-emerald-800, .app-page .text-brand-700, .app-page .text-brand-800 { color: var(--emerald-text) !important; }.app-page .bg-amber-50 { background: var(--honey-soft) !important; }.app-page .text-amber-700, .app-page .text-amber-800, .app-page .text-amber-900, .app-page .text-amber-950 { color: var(--honey-text) !important; }.app-page .bg-rose-50, .app-page .bg-red-50 { background: var(--rose-soft) !important; }.app-page .text-rose-700, .app-page .text-red-600, .app-page .text-red-700, .app-page .text-red-800 { color: var(--rose-text) !important; }.app-page .bg-sky-50 { background: var(--sky-soft) !important; }.app-page .text-sky-700, .app-page .text-sky-800 { color: var(--sky-text) !important; }
.profile-avatar-image { display:block; width:100%; height:100%; object-fit:cover; }

/* Owner dashboard: 12-column editorial operating board. */
.owner-page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0; }.owner-page-header h1 { margin:0; }.owner-eyebrow { margin:0 0 6px; color:var(--emerald-text); font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }.owner-page-summary { margin:8px 0 0; color:var(--muted); font-size:14px; }.owner-header-actions { display:flex; flex-wrap:wrap; gap:10px; }
.owner-security { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 24px; border:1px solid var(--honey); border-radius:var(--radius-card); background:var(--honey-soft); }.owner-security p { margin:0 0 4px; color:var(--honey-text); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }.owner-security h2 { margin:0; font-size:18px; }.owner-security span { display:block; max-width:720px; margin-top:4px; color:var(--muted); font-size:13px; }.owner-security > div:last-child { display:flex; flex-wrap:wrap; gap:8px; }.owner-security form { margin:0; }
.owner-dashboard-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:20px; align-items:stretch; }.owner-command-card { grid-column:span 8; display:flex; min-height:470px; flex-direction:column; padding:28px; border:1px solid var(--command-border); border-radius:var(--radius-panel); background:var(--forest); color:var(--command-ink); box-shadow:var(--shadow-card); }.owner-command-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:16px; border-bottom:1px solid var(--command-line); }.owner-command-top > p { display:flex; align-items:center; gap:8px; margin:0 auto 0 0; font-size:14px; font-weight:500; }.owner-command-top > p i { width:9px; height:9px; border-radius:50%; background:var(--command-accent); box-shadow:0 0 0 4px var(--command-selected); }.owner-card-tag { display:inline-flex; min-height:28px; align-items:center; padding:0 10px; border:1px solid var(--command-line); border-radius:var(--radius-chip); color:var(--command-muted); font-size:12px; font-weight:500; }.owner-command-value { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-top:24px; }.owner-command-value p { margin:0 0 8px; color:var(--command-muted); font-size:13px; }.owner-command-value strong { display:block; font-size:50px; font-weight:600; letter-spacing:-.035em; line-height:.95; }.owner-command-value strong span { margin-right:8px; font-size:17px; font-weight:500; letter-spacing:0; }.owner-command-value > div:last-child { display:grid; gap:8px; justify-items:end; }.owner-command-value small { color:var(--command-muted); font-size:13px; }.owner-finance-breakdown { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }.owner-finance-breakdown > div { padding:12px; border:1px solid var(--command-line); border-radius:12px; background:var(--command-selected); }.owner-finance-breakdown span { display:block; color:var(--command-muted); font-size:12px; }.owner-finance-breakdown b { display:block; margin-top:5px; color:var(--command-ink); font-size:14px; font-weight:600; }.owner-income-chart { width:100%; height:118px; margin-top:16px; overflow:visible; }.owner-income-chart .owner-chart-grid { fill:none; stroke:var(--command-line); stroke-width:.45; }.owner-income-chart polyline { fill:none; stroke:var(--command-accent); stroke-linecap:round; stroke-linejoin:round; stroke-width:2; vector-effect:non-scaling-stroke; }.owner-chart-months { display:grid; grid-template-columns:repeat(6,1fr); color:var(--command-muted); font-size:12px; text-align:center; }.owner-command-card footer { display:flex; justify-content:space-between; gap:16px; margin-top:auto; padding-top:16px; border-top:1px solid var(--command-line); color:var(--command-muted); font-size:13px; }.owner-command-card footer a { color:var(--command-accent); font-weight:600; text-decoration:none; }
.owner-finance-trends { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }.owner-finance-trend { min-width:0; padding:11px 12px 8px; border:1px solid var(--command-line); border-radius:14px; background:color-mix(in srgb,var(--command-selected) 68%,transparent); }.owner-finance-trend header { display:flex; align-items:center; justify-content:space-between; gap:8px; }.owner-finance-trend header strong { color:var(--command-ink); font-size:12px; font-weight:600; }.owner-finance-trend header span { color:var(--command-muted); font-size:10px; white-space:nowrap; }.owner-finance-trend svg { display:block; width:100%; height:54px; margin-top:5px; overflow:visible; }.owner-finance-trend .owner-chart-grid { fill:none; stroke:var(--command-line); stroke-width:.6; }.owner-finance-trend polyline { fill:none; stroke:var(--command-accent); stroke-linecap:round; stroke-linejoin:round; stroke-width:2.5; vector-effect:non-scaling-stroke; }.owner-finance-trend > div { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); color:var(--command-muted); font-size:10px; text-align:center; }.owner-finance-trend-usd polyline { stroke:var(--sky); }
.owner-decisions { grid-column:span 4; display:flex; min-height:470px; flex-direction:column; padding:24px; }.owner-panel-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }.owner-panel-title > div > p { margin:0 0 4px; color:var(--muted); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.owner-panel-title h2 { margin:0; font-size:18px; }.owner-panel-title > span { display:grid; min-width:28px; min-height:28px; place-items:center; border-radius:50%; background:var(--honey-soft); color:var(--honey-text); font-size:13px; font-weight:600; }.owner-panel-title a, .owner-open-all { color:var(--emerald-text); font-size:13px; font-weight:600; text-decoration:none; }.owner-decision-list { display:grid; gap:0; margin-top:14px; }.owner-decision-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }.owner-decision-list p { min-width:0; margin:0; }.owner-decision-list strong, .owner-week-row strong, .owner-learning-row strong { display:block; color:var(--ink); font-size:14px; font-weight:600; }.owner-decision-list small, .owner-week-row small, .owner-learning-row small { display:block; margin-top:3px; color:var(--muted); font-size:13px; line-height:1.4; }.owner-decision-list .app-secondary-action { min-height:34px; padding:0 10px; font-size:12px; }.owner-decision-empty { display:block !important; min-height:0 !important; padding:24px 0 !important; border-bottom:0 !important; text-align:left !important; }.owner-decision-empty p { margin:0; }.owner-open-all { margin-top:auto; padding-top:16px; }
.owner-metric { grid-column:span 3; min-height:184px; padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-card); }.owner-metric > p { display:flex; align-items:center; gap:8px; margin:0; color:var(--muted); font-size:14px; font-weight:500; }.owner-icon { display:inline-block; width:18px; height:18px; border:1.5px solid currentColor; border-radius:6px; color:var(--sky); }.owner-icon.honey { border-radius:50%; color:var(--honey); }.owner-icon.lilac { border-radius:4px; color:var(--lilac); transform:rotate(45deg); }.owner-metric > strong { display:block; margin-top:22px; color:var(--ink); font-size:31px; font-weight:600; letter-spacing:-.025em; line-height:1; }.owner-metric > strong small { font-size:14px; font-weight:500; letter-spacing:0; }.owner-metric > small { display:block; margin-top:12px; color:var(--muted); font-size:13px; }.status-chip { display:inline-flex; align-items:center; min-height:26px; margin-top:14px; padding:0 9px; border-radius:var(--radius-chip); font-size:12px; font-weight:600; white-space:nowrap; }.status-chip.emerald { background:var(--emerald-soft); color:var(--emerald-text); }.status-chip.honey { background:var(--honey-soft); color:var(--honey-text); }.status-chip.rose { background:var(--rose-soft); color:var(--rose-text); }.status-chip.lilac { background:var(--lilac-soft); color:var(--lilac-text); }.status-chip.sky { background:var(--sky-soft); color:var(--sky-text); }.owner-metric em { display:flex; align-items:end; gap:3px; height:19px; margin-top:12px; font-style:normal; }.owner-metric em i { width:20%; min-height:7px; border-radius:5px 5px 2px 2px; background:var(--sky-soft); }.owner-metric em i:nth-child(2) { height:17px; background:var(--sky); }.owner-metric em i:nth-child(3) { height:11px; }
.owner-mini-pipeline { display:grid; gap:5px; margin-top:13px; }.owner-mini-pipeline > span { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:6px; color:var(--muted); font-size:10px; }.owner-mini-pipeline i { display:block; height:6px; border-radius:999px; background:var(--sky); }.owner-mini-pipeline > span:nth-child(2) i { background:var(--honey); }.owner-mini-pipeline > span:nth-child(3) i { background:var(--lilac); }.owner-mini-pipeline b { color:var(--muted); font-size:10px; font-weight:600; }.owner-mini-pipeline em { min-width:12px; margin:0; color:var(--ink); font-size:10px; font-style:normal; font-weight:700; text-align:right; }
.owner-subscriptions { grid-column:span 8; min-height:260px; padding:24px; }.owner-week { grid-column:span 4; min-height:260px; padding:24px; }.owner-learning { grid-column:span 8; min-height:220px; padding:24px; }.owner-subscription-table { margin-top:20px; overflow:hidden; border:1px solid var(--border); border-radius:14px; }.owner-subscription-table > div { display:grid; grid-template-columns:2fr 1.1fr 1fr 1.1fr .6fr; align-items:center; gap:12px; min-height:56px; padding:0 16px; border-top:1px solid var(--border); color:var(--muted); font-size:13px; }.owner-subscription-table > div:first-child { border-top:0; }.owner-subscription-table > div:not(.owner-table-head):hover { background:var(--surface-sunken); }.owner-subscription-table strong { color:var(--ink); font-weight:600; }.owner-subscription-table a { color:var(--emerald-text); font-weight:600; text-decoration:none; }.owner-table-head { background:var(--surface-sunken); color:var(--muted); font-size:11px !important; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.owner-empty { display:grid !important; grid-template-columns:none !important; gap:4px; min-height:150px !important; place-content:center; text-align:center; }.owner-empty strong { color:var(--ink); }.owner-empty span { color:var(--muted); font-size:13px; }.owner-week-row, .owner-learning-row { display:flex; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid var(--border); text-decoration:none; }.owner-week-row:last-child, .owner-learning-row:last-child { border-bottom:0; }.owner-week-row:hover, .owner-learning-row:hover { margin-inline:-8px; padding-inline:8px; border-radius:12px; background:var(--surface-sunken); }.owner-week-row time { display:grid; min-width:44px; min-height:48px; place-items:center; border-radius:12px; background:var(--sky-soft); color:var(--sky-text); }.owner-week-row time span { font-size:11px; font-weight:600; text-transform:uppercase; }.owner-week-row time b { font-size:17px; font-weight:600; }.owner-week-row p { margin:0; }.owner-learning .owner-panel-title { margin-bottom:8px; }.owner-learning-row { justify-content:space-between; }.owner-learning-row b { color:var(--lilac-text); font-size:13px; font-weight:600; white-space:nowrap; }

@media (max-width:1199px) { .owner-command-card { grid-column:span 7; }.owner-decisions { grid-column:span 5; }.owner-metric { grid-column:span 6; }.owner-subscriptions, .owner-learning { grid-column:span 7; }.owner-week { grid-column:span 5; } }
@media (max-width:767px) { .app-page { padding:20px 16px 36px; gap:20px; }.app-page > header h1, .app-page h1 { font-size:27px; }.app-topbar { min-height:64px !important; padding:0 16px !important; }.owner-page-header, .owner-security { align-items:flex-start; flex-direction:column; }.owner-header-actions, .owner-security > div:last-child { width:100%; }.owner-header-actions > a, .owner-security > div:last-child > a, .owner-security > div:last-child form { flex:1; }.owner-security > div:last-child form button { width:100%; }.owner-dashboard-grid { grid-template-columns:1fr; gap:16px; }.owner-command-card, .owner-decisions, .owner-metric, .owner-subscriptions, .owner-week, .owner-learning { grid-column:span 1; min-height:0; }.owner-command-card { padding:20px; }.owner-command-value { align-items:flex-start; flex-direction:column; }.owner-command-value > div:last-child { justify-items:start; }.owner-command-value strong { font-size:42px; }.owner-finance-breakdown { grid-template-columns:1fr; }.owner-income-chart { height:94px; }.owner-command-card footer { align-items:flex-start; flex-direction:column; }.owner-subscription-table { overflow-x:auto; }.owner-subscription-table > div { min-width:620px; }.app-page table { min-width:560px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }


/* Dashboard composition correction: hero → decisions → KPIs → operational boards. */
.app-topbar { display:flex !important; align-items:center !important; width:100% !important; }
.app-topbar-actions { display:flex !important; align-items:center !important; margin-left:auto !important; }
.app-page { padding-top:24px; }
.owner-dashboard-grid { grid-auto-flow:row dense; }
.owner-command-card { min-height:372px; }
.owner-decisions { min-height:372px; }
.owner-income-chart { height:78px; }

/* Brand Kit v3: shared search belongs in the shell, while actions stay grouped at right. */
.app-topbar-label { flex:0 0 auto; color:var(--ink) !important; font-size:13px !important; font-weight:650 !important; letter-spacing:-.01em !important; text-transform:none !important; }
.app-topbar-search { display:flex; width:min(100%,390px); min-width:250px; height:42px; align-items:center; gap:10px; margin-inline:auto; padding:0 13px; border:1px solid var(--border-strong); border-radius:13px; background:var(--surface); color:var(--muted); transition:border-color var(--motion-fast) var(--ease),box-shadow var(--motion-fast) var(--ease),background-color var(--motion-fast) var(--ease); }
.app-topbar-search:focus-within { border-color:var(--emerald); box-shadow:0 0 0 3px var(--emerald-soft); }
.app-topbar-search > svg { width:17px; height:17px; flex:0 0 auto; }
.app-topbar-search input { width:100%; min-width:0; height:100%; padding:0; border:0 !important; outline:0; background:transparent !important; color:var(--ink) !important; box-shadow:none !important; font:inherit; font-size:13px; }
.app-topbar-search input::placeholder { color:var(--muted); opacity:1; }
.app-topbar-search input::-webkit-search-cancel-button { cursor:pointer; }
.app-topbar-actions { flex:0 0 auto; }

/* Owner finance trends use one shared scale per currency and distinguish outflow. */
.owner-finance-trend svg { height:72px; }
.owner-finance-trend .owner-chart-legend { display:flex; grid-template-columns:none; align-items:center; gap:14px; margin-top:5px; color:var(--command-muted); font-size:10px; }
.owner-chart-legend span { display:inline-flex; align-items:center; gap:5px; }
.owner-chart-legend i { width:7px; height:7px; border-radius:50%; background:var(--command-accent); }
.owner-chart-legend i.expense { background:var(--honey); }
.owner-finance-trend polyline.owner-chart-income { stroke:var(--command-accent); }
.owner-finance-trend polyline.owner-chart-expenses { stroke:var(--honey); stroke-dasharray:2.5 2; }
.owner-finance-trend-usd polyline.owner-chart-income { stroke:var(--sky); }
.owner-finance-trend-usd polyline.owner-chart-expenses { stroke:var(--rose); }
.owner-finance-trend .owner-chart-months { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); margin-top:2px; color:var(--command-muted); font-size:10px; text-align:center; }
.owner-metric-finance { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:13px; padding-top:11px; border-top:1px solid var(--border); }
.owner-metric-finance span { display:grid; gap:3px; min-width:0; }
.owner-metric-finance small { color:var(--muted); font-size:11px; }
.owner-metric-finance b { overflow-wrap:anywhere; color:var(--ink); font-size:12px; font-weight:650; font-variant-numeric:tabular-nums; }
@media (max-width:1150px) { .app-topbar-search { width:min(100%,300px); min-width:200px; } }
@media (max-width:1023px) { .app-topbar-search { display:none; } }
@media (max-width:520px) { .owner-finance-trend svg { height:64px; } }
.owner-finance-breakdown { margin-top:16px; }
.owner-command-card footer { margin-top:14px; }
.owner-metric { min-height:156px; }
.owner-metric > strong { margin-top:18px; }
.owner-metric em, .owner-metric > small { margin-top:9px; }
.owner-subscriptions, .owner-week { min-height:236px; }

/* Role dashboards — different operating surfaces, never a copy of the owner board. */
.role-hero { position:relative; display:flex; min-height:224px; align-items:flex-end; justify-content:space-between; gap:24px; overflow:hidden; padding:30px; border:1px solid var(--command-border); border-radius:var(--radius-panel); background:var(--forest); color:var(--command-ink); box-shadow:var(--shadow-card); }
.role-hero::after { position:absolute; right:-72px; bottom:-102px; width:300px; height:300px; border:1px solid var(--command-line); border-radius:50%; content:''; }.role-hero-copy { position:relative; z-index:1; max-width:650px; }.role-hero-copy > p { margin:0 0 8px; color:var(--command-accent); font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }.role-hero h1 { margin:0; color:var(--command-ink); font-size:36px; font-weight:600; letter-spacing:-.03em; }.role-hero-copy > span { display:block; max-width:560px; margin-top:10px; color:var(--command-muted); font-size:14px; line-height:1.5; }.role-hero-action { position:relative; z-index:1; display:inline-flex; min-height:44px; align-items:center; gap:8px; padding:0 16px; border-radius:var(--radius-control); background:var(--surface); color:var(--forest); font-size:14px; font-weight:600; text-decoration:none; }.role-hero-teacher { border-color:var(--lilac); }.role-hero-teacher .role-hero-copy > p { color:var(--lilac-text); }.role-hero-student { border-color:var(--lilac); }.role-hero-employee { border-color:var(--sky); }.role-hero-client { border-color:var(--emerald); }.role-hero-admin { border-color:var(--honey); }
.role-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }.role-metric { min-height:150px; padding:20px; border:1px solid var(--border); border-top:3px solid var(--sky); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-card); }.role-metric-2 { border-top-color:var(--honey); }.role-metric-3 { border-top-color:var(--lilac); }.role-metric-4 { border-top-color:var(--emerald); }.role-metric p { margin:0; color:var(--muted); font-size:13px; font-weight:500; }.role-metric strong { display:block; margin-top:16px; color:var(--ink); font-size:29px; font-weight:600; letter-spacing:-.025em; line-height:1; }.role-metric span { display:block; margin-top:11px; color:var(--muted); font-size:12px; line-height:1.4; }
.role-board { display:grid; grid-template-columns:minmax(0,8fr) minmax(280px,4fr); gap:20px; }.role-panel { min-height:300px; padding:24px; }.role-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding-bottom:18px; border-bottom:1px solid var(--border); }.role-panel-heading p { margin:0 0 4px; color:var(--muted); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.role-panel-heading h2 { margin:0; font-size:19px; }.role-panel-heading > a, .role-text-action { color:var(--emerald-text); font-size:13px; font-weight:600; text-decoration:none; white-space:nowrap; }.role-list { display:grid; }.role-list-row { display:flex; align-items:center; gap:12px; padding:16px 4px; border-bottom:1px solid var(--border); text-decoration:none; }.role-list-row:hover { margin-inline:-8px; padding-inline:12px; border-radius:12px; background:var(--surface-sunken); }.role-list-mark { width:10px; height:10px; flex:0 0 auto; border-radius:50%; background:var(--sky); box-shadow:0 0 0 4px var(--sky-soft); }.role-list-mark.lilac { background:var(--lilac); box-shadow:0 0 0 4px var(--lilac-soft); }.role-list-mark.emerald { background:var(--emerald); box-shadow:0 0 0 4px var(--emerald-soft); }.role-list-row > span:nth-child(2) { min-width:0; flex:1; }.role-list-row strong { display:block; color:var(--ink); font-size:14px; font-weight:600; }.role-list-row small { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.role-status { display:inline-flex; min-height:26px; align-items:center; padding:0 9px; border-radius:var(--radius-chip); background:var(--sky-soft); color:var(--sky-text); font-size:12px; font-weight:600; }.role-status.lilac { background:var(--lilac-soft); color:var(--lilac-text); }.role-status.rose { background:var(--rose-soft); color:var(--rose-text); }.role-status.emerald { background:var(--emerald-soft); color:var(--emerald-text); }.role-empty { display:grid; min-height:190px; place-content:center; gap:5px; text-align:center; }.role-empty strong { color:var(--ink); font-size:14px; font-weight:600; }.role-empty span { max-width:320px; color:var(--muted); font-size:13px; }.role-side-panel { display:flex; flex-direction:column; }.role-side-stat { display:flex; align-items:baseline; justify-content:space-between; padding:15px 0; border-bottom:1px solid var(--border); }.role-side-stat span { color:var(--muted); font-size:13px; }.role-side-stat strong { color:var(--ink); font-size:24px; font-weight:600; letter-spacing:-.02em; }.role-text-action { margin-top:auto; padding-top:20px; }
.learning-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding-top:20px; }.learning-card { padding:18px; border:1px solid var(--border); border-radius:18px; background:var(--surface-sunken); }.learning-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.learning-card-top span { color:var(--lilac-text); font-size:12px; font-weight:600; }.learning-card-top h3 { margin:6px 0 0; color:var(--ink); font-size:16px; font-weight:600; }.learning-card-top b { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border-radius:50%; background:var(--lilac-soft); color:var(--lilac-text); font-size:12px; font-weight:600; }.learning-progress { height:7px; overflow:hidden; margin-top:22px; border-radius:var(--radius-chip); background:var(--border); }.learning-progress i { display:block; height:100%; border-radius:inherit; background:var(--lilac); }.learning-card > p { margin:10px 0 0; color:var(--muted); font-size:13px; }.learning-card > a { display:inline-flex; margin-top:16px; color:var(--lilac-text); font-size:13px; font-weight:600; text-decoration:none; }.role-admin-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-top:20px; }.role-admin-summary > div { padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--surface-sunken); }.role-admin-summary span, .role-admin-summary small { display:block; color:var(--muted); font-size:12px; }.role-admin-summary strong { display:block; margin:8px 0; color:var(--ink); font-size:24px; font-weight:600; }.role-shortcut { display:flex; align-items:center; justify-content:space-between; padding:16px 0; border-bottom:1px solid var(--border); color:var(--ink); font-size:14px; font-weight:500; text-decoration:none; }.role-shortcut span { color:var(--emerald-text); font-weight:600; }
@media (max-width:1023px) { .role-board { grid-template-columns:1fr; }.role-side-panel { min-height:220px; }.role-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px) { .role-hero { min-height:240px; align-items:flex-start; flex-direction:column; padding:22px; }.role-hero h1 { font-size:28px; }.role-hero-action { margin-top:auto; }.role-metric-grid, .learning-card-grid, .role-admin-summary { grid-template-columns:1fr; }.role-metric { min-height:132px; }.role-panel { padding:20px; }.role-panel-heading { align-items:flex-start; flex-direction:column; }.role-list-row small { white-space:normal; }.role-status { align-self:flex-start; }.role-list-row { align-items:flex-start; }.role-list-row > .role-list-mark { margin-top:5px; } }

/* Classroom and client-portal working pages. */
.classroom-page-header, .client-portal-header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }.classroom-page-header p, .client-portal-header p { margin:0 0 6px; color:var(--lilac-text); font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }.classroom-page-header h1, .client-portal-header h1 { margin:0; }.classroom-page-header span, .client-portal-header span { display:block; max-width:650px; margin-top:8px; color:var(--muted); font-size:14px; line-height:1.5; }
.classroom-course-board { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }.classroom-course-board-card { overflow:hidden; padding:0; }.classroom-course-board-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:22px 22px 18px; border-bottom:1px solid var(--border); }.classroom-course-board-top p { margin:0 0 4px; color:var(--lilac-text); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.classroom-course-board-top h2 { margin:0; font-size:19px; }.classroom-course-board-top a { color:var(--lilac-text); font-size:13px; font-weight:600; text-decoration:none; white-space:nowrap; }.classroom-step-list { display:grid; padding:8px 14px 14px; }.classroom-step-row { display:flex; align-items:center; gap:12px; padding:12px 8px; border-bottom:1px solid var(--border); text-decoration:none; }.classroom-step-row:last-child { border-bottom:0; }.classroom-step-row:hover { border-radius:12px; background:var(--surface-sunken); }.classroom-step-row > span { display:grid; width:30px; height:30px; flex:0 0 auto; place-items:center; border-radius:9px; background:var(--lilac-soft); color:var(--lilac-text); font-size:11px; font-weight:600; }.classroom-step-row div { min-width:0; flex:1; }.classroom-step-row strong { display:block; overflow:hidden; color:var(--ink); font-size:14px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }.classroom-step-row small { display:block; margin-top:2px; color:var(--muted); font-size:12px; }.classroom-step-row i { color:var(--lilac-text); font-style:normal; }.classroom-step-empty { display:grid; min-height:128px; place-content:center; gap:5px; padding:20px; color:var(--muted); text-align:center; }.classroom-step-empty strong { color:var(--ink); font-size:14px; font-weight:600; }.classroom-step-empty span { font-size:13px; }.classroom-empty-state { display:grid; min-height:260px; place-content:center; justify-items:center; gap:8px; padding:32px; text-align:center; }.classroom-empty-state p { margin:0; color:var(--lilac-text); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.classroom-empty-state h2 { margin:0; font-size:20px; }.classroom-empty-state span { max-width:370px; color:var(--muted); font-size:14px; }.classroom-empty-state .app-primary-action { margin-top:12px; }
.classroom-review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.classroom-review-count { padding:20px; border:1px solid var(--sky); border-radius:var(--radius-card); background:var(--sky-soft); color:var(--sky-text); }.classroom-review-count-lilac { border-color:var(--lilac); background:var(--lilac-soft); color:var(--lilac-text); }.classroom-review-count span { display:block; font-size:13px; font-weight:600; }.classroom-review-count strong { display:block; margin-top:12px; font-size:32px; font-weight:600; letter-spacing:-.03em; }.classroom-review-count p { margin:7px 0 0; font-size:13px; }.classroom-review-list { overflow:hidden; padding:0; }.classroom-review-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:22px 24px; border-bottom:1px solid var(--border); }.classroom-review-list-heading p { margin:0 0 4px; color:var(--lilac-text); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.classroom-review-list-heading h2 { margin:0; font-size:19px; }.classroom-review-list-heading > span { display:inline-flex; min-height:27px; align-items:center; padding:0 10px; border-radius:var(--radius-chip); background:var(--lilac-soft); color:var(--lilac-text); font-size:12px; font-weight:600; }.classroom-review-row { display:flex; align-items:center; gap:14px; padding:16px 24px; border-bottom:1px solid var(--border); }.classroom-review-avatar { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border-radius:50%; background:var(--lilac-soft); color:var(--lilac-text); font-size:14px; font-weight:600; }.classroom-review-copy { min-width:0; flex:1; }.classroom-review-copy strong { display:block; color:var(--ink); font-size:14px; font-weight:600; }.classroom-review-copy span { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.client-portal-header p { color:var(--emerald-text); }.client-workspace-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }.client-workspace-card { display:flex; min-height:190px; align-items:flex-start; gap:14px; padding:22px; text-decoration:none; }.client-workspace-card:hover { transform:translateY(-2px); }.client-workspace-mark { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border-radius:14px; background:var(--emerald-soft); color:var(--emerald-text); font-size:16px; font-weight:600; }.client-workspace-card > div:nth-child(2) { min-width:0; flex:1; }.client-workspace-card p { margin:0; color:var(--emerald-text); font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }.client-workspace-card h2 { margin:8px 0 0; overflow:hidden; font-size:18px; text-overflow:ellipsis; white-space:nowrap; }.client-workspace-card span { display:block; margin-top:8px; color:var(--muted); font-size:13px; line-height:1.45; }.client-workspace-card i { color:var(--emerald-text); font-size:18px; font-style:normal; }
@media (max-width:1023px) { .classroom-course-board, .client-workspace-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }.role-status.honey { background:var(--honey-soft); color:var(--honey-text); }@media (max-width:767px) { .classroom-page-header { align-items:flex-start; flex-direction:column; }.classroom-course-board, .classroom-review-grid, .client-workspace-grid { grid-template-columns:1fr; }.classroom-review-row { align-items:flex-start; flex-wrap:wrap; padding:16px; }.classroom-review-row .app-secondary-action { width:100%; }.classroom-review-copy span { white-space:normal; } }

/* Operational page families: each has its own calm, meaningful accent. */
.app-page > form.rounded-2xl.border { border-color:var(--border) !important; background:var(--surface) !important; box-shadow:var(--shadow-card); }
.app-page .rounded-2xl.border.border-dashed { border-color:var(--border-strong) !important; background:var(--surface-sunken) !important; }
.projects-page > header > div > p, .deliveries-page > header > div > p, .time-page > header > p { color:var(--sky-text) !important; }.clients-page > header > div > p { color:var(--emerald-text) !important; }.employees-page > header > div > p, .leave-page > header > p { color:var(--lilac-text) !important; }.finance-page > header > div > p, .reports-page > header > p { color:var(--sky-text) !important; }.subscription-page > header > p { color:var(--honey-text) !important; }.credentials-page > header > p, .founder-notes-page > header > div > p { color:var(--rose-text) !important; }.payroll-page > header > p { color:var(--lilac-text) !important; }
.projects-page .app-panel > .flex > .rounded-full, .clients-page .app-panel > .flex > .rounded-full { background:var(--sky-soft) !important; color:var(--sky-text) !important; }.clients-page [aria-label="Client relationship overview"] .app-panel:nth-child(2n) { border-top:3px solid var(--honey) !important; }.clients-page [aria-label="Client relationship overview"] .app-panel:nth-child(3n) { border-top-color:var(--lilac) !important; }.clients-page [aria-label="Client relationship overview"] .app-panel:nth-child(4n) { border-top-color:var(--emerald) !important; }.clients-page [aria-label="Client relationship overview"] .app-panel { border-top:3px solid var(--sky) !important; }
.finance-page .app-metric:nth-child(4n+1), .reports-page .app-panel:nth-child(4n+1) { border-top:3px solid var(--sky) !important; }.finance-page .app-metric:nth-child(4n+2), .reports-page .app-panel:nth-child(4n+2) { border-top:3px solid var(--honey) !important; }.finance-page .app-metric:nth-child(4n+3), .reports-page .app-panel:nth-child(4n+3) { border-top:3px solid var(--emerald) !important; }.finance-page .app-metric:nth-child(4n), .reports-page .app-panel:nth-child(4n) { border-top:3px solid var(--lilac) !important; }
.subscription-page .subscription-create-panel { border-top:3px solid var(--honey) !important; }.subscription-page .subscription-records { border-top:3px solid var(--sky) !important; }.credentials-page .app-panel:first-of-type { border-top:3px solid var(--rose) !important; }.payroll-page .app-panel:first-of-type { border-top:3px solid var(--lilac) !important; }.deliveries-page .app-panel:first-of-type { border-top:3px solid var(--sky) !important; }.founder-notes-page .app-panel:first-of-type { border-top:3px solid var(--rose) !important; }
.app-page .bg-zinc-950:not([data-flux-sidebar-brand]), .app-page a.bg-zinc-950, .app-page button.bg-zinc-950 { background:var(--emerald) !important; color:var(--on-emerald) !important; }.app-page .hover\:bg-zinc-800:hover { background:var(--emerald-strong) !important; }
.app-page details > summary { color:var(--emerald-text); }.app-page details[open] > summary { margin-bottom:14px; }.app-page .divide-y > * { border-color:var(--border) !important; }.app-page .border-zinc-100, .app-page .border-zinc-200, .app-page .border-zinc-300 { border-color:var(--border) !important; }.app-page .bg-zinc-50 { background:var(--surface-sunken) !important; }

/* Page-by-page operating surfaces. These rules style real workflows without adding decorative cards. */
.app-topbar { justify-content:space-between !important; }
.app-topbar-actions { flex:0 0 auto; }

/* Every legacy page inherits a durable, high-contrast control layer. */
.app-page input:not([type="checkbox"]):not([type="radio"]), .app-page select, .app-page textarea {
  border-color:var(--border-control) !important; background:var(--surface) !important; color:var(--ink) !important;
  box-shadow:0 1px 0 color-mix(in srgb,var(--ink) 4%,transparent) inset;
}
.app-page input::placeholder, .app-page textarea::placeholder { color:var(--muted) !important; opacity:.78; }
.app-page input:hover, .app-page select:hover, .app-page textarea:hover { border-color:var(--ink) !important; }
.app-page input:focus, .app-page select:focus, .app-page textarea:focus { border-color:var(--emerald) !important; box-shadow:0 0 0 3px var(--emerald-soft) !important; }
.app-page label > span, .app-page legend { color:var(--ink) !important; font-weight:600 !important; }
.app-page thead { background:var(--surface-sunken) !important; }
.app-page tr:hover td { background:color-mix(in srgb,var(--emerald-soft) 42%,transparent) !important; }

/* Shared operational pages get a purposeful accent without changing their information architecture. */
.time-page, .attendance-page { --page-accent:var(--sky); --page-soft:var(--sky-soft); --page-text:var(--sky-text); }
.leave-page, .classroom-overview-page, .classroom-students-page, .classroom-teachers-page { --page-accent:var(--lilac); --page-soft:var(--lilac-soft); --page-text:var(--lilac-text); }
.founder-notes-page, .admin-audit-page { --page-accent:var(--rose); --page-soft:var(--rose-soft); --page-text:var(--rose-text); }
.announcements-page, .admin-accounts-page, .admin-access-page, .admin-company-page, .workflow-page { --page-accent:var(--honey); --page-soft:var(--honey-soft); --page-text:var(--honey-text); }
.search-page { --page-accent:var(--emerald); --page-soft:var(--emerald-soft); --page-text:var(--emerald-text); }
.time-page > header > p, .attendance-page > header > p, .leave-page > header > p, .founder-notes-page > header p:first-child, .announcements-page > header > p, .classroom-overview-page > header > p, .classroom-students-page > header > p, .admin-accounts-page > header > p, .admin-access-page > header p:first-child, .admin-company-page > div > p:first-child, .workflow-page > div > div > p:first-child, .admin-audit-page > header > p, .search-page > header > p { color:var(--page-text) !important; }
.time-page > header, .leave-page > header, .founder-notes-page > header, .announcements-page > header, .classroom-overview-page > header, .classroom-students-page > header, .admin-accounts-page > header, .admin-access-page > header, .admin-company-page > div:first-child, .workflow-page > div:first-child, .admin-audit-page > header, .search-page > header { padding-bottom:18px; border-bottom:1px solid var(--border); }
.time-page .app-panel:first-of-type, .leave-page .app-panel:first-of-type, .founder-notes-page .app-panel:first-of-type, .announcements-page .app-panel:first-of-type, .classroom-overview-page .app-panel:first-of-type:not(.group), .admin-accounts-page .app-panel:first-of-type, .admin-access-page .app-panel:first-of-type, .admin-company-page .app-panel:first-of-type, .workflow-page .app-panel:first-of-type, .admin-audit-page .app-panel:first-of-type { border-top:3px solid var(--page-accent) !important; }
.time-page .rounded-2xl.border, .leave-page .rounded-2xl.border, .founder-notes-page .rounded-2xl.border, .announcements-page .rounded-2xl.border, .classroom-overview-page .rounded-2xl.border, .admin-accounts-page .rounded-2xl.border, .admin-access-page .rounded-2xl.border, .admin-company-page .rounded-2xl.border, .workflow-page .rounded-2xl.border { border-color:var(--border) !important; background:var(--surface) !important; box-shadow:var(--shadow-card); }
/* founder-notes and admin-audit excluded below: both already colour their
   pills by real meaning in the template (note priority; this was forcing
   every priority, and every audit action regardless of type, to the same
   alarm-rose page accent, which defeats "colour is never the only cue" by
   making every action look equally severe). */
.announcements-page .rounded-full, .admin-access-page .rounded-full { background:var(--page-soft) !important; color:var(--page-text) !important; border-color:color-mix(in srgb,var(--page-accent) 40%,var(--border)) !important; }

/* Classroom roster makes progress readable at a glance, including in dark mode. */
.classroom-students-page article { position:relative; overflow:hidden; }
.classroom-students-page article > div:first-child > span { color:var(--emerald-text); font-size:20px; font-weight:600; }
.classroom-teachers-page article { display:flex; align-items:center; justify-content:space-between; gap:18px; border-left:3px solid var(--lilac) !important; }
.classroom-teachers-page article::after { content:'Teacher'; color:var(--lilac-text); font-size:12px; font-weight:600; }

/* Settings and admin screens keep a compact premium hierarchy instead of raw framework chrome. */
.admin-accounts-page > .app-panel, .admin-access-page > .app-panel, .admin-company-page > form, .workflow-page > form, .admin-audit-page > .app-panel { overflow:hidden; }
.admin-accounts-page .grid > .app-panel, .admin-access-page .app-metric { border-top:3px solid var(--honey) !important; }
.admin-access-page .app-metric:nth-child(2) { border-top-color:var(--sky) !important; }.admin-access-page .app-metric:nth-child(3) { border-top-color:var(--lilac) !important; }

@media (max-width:767px) {
  .app-page input:not([type="checkbox"]):not([type="radio"]), .app-page select, .app-page textarea { font-size:16px !important; }
  .time-page, .leave-page { padding-top:24px; }
  .classroom-teachers-page article { align-items:flex-start; flex-direction:column; }
}

/* Record detail pages read as focused workspaces: context first, actions second. */
.project-detail-page, .client-detail-page, .employee-detail-page, .calendar-page { --page-accent:var(--sky); --page-soft:var(--sky-soft); --page-text:var(--sky-text); }
.client-detail-page { --page-accent:var(--emerald); --page-soft:var(--emerald-soft); --page-text:var(--emerald-text); }
.clients-pipeline-page { --page-accent:var(--emerald); --page-soft:var(--emerald-soft); --page-text:var(--emerald-text); }
.clients-pipeline-page > header { padding-bottom:20px; border-bottom:1px solid var(--border); }
.clients-pipeline-page > header > div > p { color:var(--page-text) !important; }
.clients-pipeline-page .app-panel { min-height:220px; border-top:3px solid var(--sky); }
.clients-pipeline-page .app-panel:nth-child(2) { border-top-color:var(--honey); }
.clients-pipeline-page .app-panel:nth-child(3) { border-top-color:var(--emerald); }
.clients-pipeline-page .app-panel > div:first-child > span { background:var(--page-soft) !important; color:var(--page-text) !important; }
.clients-pipeline-page .app-panel a { border-color:var(--border) !important; background:var(--surface) !important; }
.clients-pipeline-page .app-panel a:hover { border-color:var(--page-accent) !important; background:var(--page-soft) !important; box-shadow:var(--shadow-menu); transform:translateY(-1px); }
.employee-detail-page { --page-accent:var(--lilac); --page-soft:var(--lilac-soft); --page-text:var(--lilac-text); }
.calendar-page { --page-accent:var(--honey); --page-soft:var(--honey-soft); --page-text:var(--honey-text); }
.project-detail-page > header, .client-detail-page > header, .employee-detail-page > header, .calendar-page > header { padding-bottom:20px; border-bottom:1px solid var(--border); }
.project-detail-page header .bg-brand-50, .client-detail-page .bg-brand-50, .employee-detail-page .bg-brand-50, .calendar-page .bg-brand-700 { background:var(--page-soft) !important; color:var(--page-text) !important; }
.project-detail-page .rounded-2xl.border, .client-detail-page .rounded-2xl.border, .employee-detail-page .rounded-2xl.border, .calendar-page .rounded-xl.border { border-color:var(--border) !important; background:var(--surface) !important; box-shadow:var(--shadow-card); }
.project-detail-page details { border-color:var(--border) !important; background:var(--surface) !important; box-shadow:var(--shadow-card); }
.project-detail-page details[open] { border-left:3px solid var(--sky) !important; }.project-detail-page details summary:hover { background:var(--surface-sunken); }
.client-detail-page > .grid > aside { border-top:3px solid var(--emerald) !important; }.client-detail-page .app-panel:nth-child(odd) { border-top:3px solid var(--sky) !important; }.client-detail-page .app-panel:nth-child(even) { border-top:3px solid var(--emerald) !important; }
.employee-detail-page > header > div > span { background:var(--lilac-soft) !important; color:var(--lilac-text) !important; }.employee-detail-page .rounded-2xl.border { border-top:3px solid var(--lilac) !important; }.employee-detail-page .rounded-2xl.border:nth-child(even) { border-top-color:var(--sky) !important; }
.calendar-page > header > div:last-child { border-top:3px solid var(--honey) !important; }.calendar-page .calendar-event { border-radius:8px; }.calendar-page .calendar-event:hover { box-shadow:inset 0 0 0 1px var(--page-accent); }

/* Profile, security, and appearance read as a cohesive personal account area. */
.settings-shell { max-width:980px; padding:30px; border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--surface); box-shadow:var(--shadow-card); }
.settings-nav { margin-right:28px; padding:8px; border:1px solid var(--border); border-radius:18px; background:var(--surface-sunken); }
.settings-nav [data-flux-navlist-item] { min-height:42px; border-radius:11px; color:var(--muted); font-weight:500; }
.settings-nav [data-flux-navlist-item][data-current] { background:var(--emerald) !important; color:var(--on-emerald) !important; font-weight:600; }
.settings-content > [data-flux-heading] { color:var(--ink) !important; font-size:24px !important; font-weight:600 !important; letter-spacing:-.02em; }
.settings-content > [data-flux-subheading] { color:var(--muted) !important; line-height:1.5; }
.settings-content .mt-5 > form, .settings-content .mt-5 > section { padding:20px; border:1px solid var(--border); border-radius:18px; background:var(--surface-sunken); }
@media (max-width:767px) { .settings-shell { margin:0 16px; padding:16px; border-radius:20px; }.settings-nav { width:100%; margin-right:0; }.settings-content .mt-5 > form, .settings-content .mt-5 > section { padding:16px; } }

/* Dashboard arranger: a working board, not a raw settings list. */
.dashboard-arranger-page { --arranger-ink:var(--ink); --arranger-panel:var(--surface); --arranger-subtle:var(--surface-sunken); }
.dashboard-arranger-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:30px; border:1px solid var(--command-border); border-radius:var(--radius-panel); background:linear-gradient(118deg,var(--forest) 0%,color-mix(in srgb,var(--forest) 80%,var(--emerald)) 100%); box-shadow:var(--shadow-card); }
.dashboard-arranger-hero > div { max-width:670px; }.dashboard-arranger-hero p,.dashboard-arranger-heading p { margin:0; color:var(--command-accent); font-size:12px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; }.dashboard-arranger-hero h1 { margin:10px 0 0; color:var(--command-ink) !important; font-size:34px !important; }.dashboard-arranger-hero span { display:block; margin-top:10px; color:var(--command-muted); font-size:14px; line-height:1.55; }.dashboard-arranger-hero .app-secondary-action { border-color:var(--command-line); background:color-mix(in srgb,var(--surface) 92%,transparent); color:var(--forest) !important; white-space:nowrap; }
.dashboard-arranger-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr); gap:20px; margin-top:22px; }.dashboard-arranger-board,.dashboard-library { min-height:540px; padding:24px; border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--arranger-panel); box-shadow:var(--shadow-card); }.dashboard-library { background:var(--arranger-subtle); }.dashboard-arranger-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:18px; border-bottom:1px solid var(--border); }.dashboard-arranger-heading p { color:var(--emerald-text); }.dashboard-library .dashboard-arranger-heading p { color:var(--lilac-text); }.dashboard-arranger-heading h2 { margin:5px 0 0; color:var(--ink); font-size:20px; font-weight:600; letter-spacing:-.02em; }.dashboard-arranger-heading span { display:block; margin-top:5px; color:var(--muted); font-size:13px; line-height:1.45; }.dashboard-count { display:inline-flex !important; min-height:28px; align-items:center; margin:0 !important; padding:0 10px; border-radius:var(--radius-chip); background:var(--emerald-soft); color:var(--emerald-text) !important; font-size:12px !important; font-weight:600; white-space:nowrap; }
.dashboard-widget-stack,.dashboard-library-stack { display:grid; gap:10px; margin-top:18px; }.dashboard-widget-card { display:flex; min-height:78px; align-items:center; gap:12px; padding:13px; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:0 5px 14px -14px color-mix(in srgb,var(--ink) 50%,transparent); transition:transform var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease),box-shadow var(--motion-fast) var(--ease),background-color var(--motion-fast) var(--ease); }.dashboard-widget-card:hover,.dashboard-widget-card:focus-within { border-color:var(--border-strong); box-shadow:var(--shadow-card); transform:translateY(-1px); }.dashboard-widget-card.is-dragging { opacity:.5; transform:scale(.98); }.dashboard-widget-drag { display:grid; width:24px; height:30px; flex:0 0 auto; grid-template-columns:repeat(2,4px); grid-template-rows:repeat(3,4px); gap:3px; place-content:center; cursor:grab; }.dashboard-widget-drag i { display:block; width:4px; height:4px; border-radius:50%; background:var(--muted); }.dashboard-widget-symbol { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border-radius:13px; background:var(--sky-soft); color:var(--sky-text); font-size:16px; font-weight:600; }.dashboard-widget-symbol::before { content:'↗'; }.dashboard-widget-card[data-widget="finance"] .dashboard-widget-symbol { background:var(--emerald-soft); color:var(--emerald-text); }.dashboard-widget-card[data-widget="finance"] .dashboard-widget-symbol::before { content:'₨'; }.dashboard-widget-card[data-widget="financial-actions"] .dashboard-widget-symbol { background:var(--honey-soft); color:var(--honey-text); }.dashboard-widget-card[data-widget="financial-actions"] .dashboard-widget-symbol::before { content:'◷'; }.dashboard-widget-card[data-widget="operations"] .dashboard-widget-symbol { background:var(--sky-soft); color:var(--sky-text); }.dashboard-widget-card[data-widget="operations"] .dashboard-widget-symbol::before { content:'◫'; }.dashboard-widget-card[data-widget="approvals"] .dashboard-widget-symbol { background:var(--lilac-soft); color:var(--lilac-text); }.dashboard-widget-card[data-widget="approvals"] .dashboard-widget-symbol::before { content:'✓'; }.dashboard-widget-card[data-widget="deadlines"] .dashboard-widget-symbol { background:var(--rose-soft); color:var(--rose-text); }.dashboard-widget-card[data-widget="deadlines"] .dashboard-widget-symbol::before { content:'!'; }.dashboard-widget-card[data-widget="decisions"] .dashboard-widget-symbol { background:var(--rose-soft); color:var(--rose-text); }.dashboard-widget-card[data-widget="decisions"] .dashboard-widget-symbol::before { content:'◆'; }.dashboard-widget-card[data-widget="classroom-launch"] .dashboard-widget-symbol { background:var(--lilac-soft); color:var(--lilac-text); }.dashboard-widget-card[data-widget="classroom-launch"] .dashboard-widget-symbol::before { content:'◈'; }.dashboard-widget-copy { min-width:0; flex:1; }.dashboard-widget-copy strong { display:block; color:var(--ink); font-size:14px; font-weight:600; }.dashboard-widget-copy span { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:12px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }.dashboard-widget-index { display:grid; width:28px; height:28px; flex:0 0 auto; place-items:center; border-radius:50%; background:var(--surface-sunken); color:var(--muted); font-size:12px; font-weight:600; }.dashboard-widget-actions { display:flex; align-items:center; gap:5px; }.dashboard-widget-actions button,.dashboard-widget-add { display:inline-flex; min-height:32px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:600; transition:background-color var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease),color var(--motion-fast) var(--ease); }.dashboard-widget-actions button { width:32px; }.dashboard-widget-actions button:hover { border-color:var(--emerald); background:var(--emerald-soft); color:var(--emerald-text); }.dashboard-widget-actions .dashboard-widget-hide { width:auto; padding:0 10px; color:var(--rose-text); }.dashboard-widget-actions .dashboard-widget-hide:hover { border-color:var(--rose); background:var(--rose-soft); }.dashboard-library .dashboard-widget-card { min-height:88px; background:color-mix(in srgb,var(--surface) 88%,transparent); }.dashboard-widget-add { min-width:56px; padding:0 10px; border-color:var(--lilac); background:var(--lilac-soft); color:var(--lilac-text); }.dashboard-widget-add:hover { background:var(--lilac); color:var(--on-lilac); }.dashboard-empty-zone { display:grid; min-height:180px; place-content:center; justify-items:center; padding:24px; border:1px dashed var(--border-strong); border-radius:18px; background:var(--surface-sunken); color:var(--muted); text-align:center; }.dashboard-empty-zone > span { display:grid; width:36px; height:36px; place-items:center; border-radius:12px; background:var(--emerald-soft); color:var(--emerald-text); font-size:19px; }.dashboard-empty-zone strong { margin-top:10px; color:var(--ink); font-size:14px; font-weight:600; }.dashboard-empty-zone p { margin:4px 0 0; font-size:13px; }.dashboard-library-empty > span { background:var(--lilac-soft); color:var(--lilac-text); }.dashboard-arranger-footer { position:sticky; bottom:18px; display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:20px; padding:14px 16px; border:1px solid var(--border); border-radius:18px; background:color-mix(in srgb,var(--surface) 94%,transparent); box-shadow:var(--shadow-menu); backdrop-filter:blur(18px); }.dashboard-arranger-footer p { margin:0; color:var(--muted); font-size:13px; }.dashboard-arranger-footer p span { color:var(--emerald); font-size:11px; }.dashboard-arranger-footer .app-primary-action { min-width:168px; }
@media (max-width:900px) { .dashboard-arranger-grid { grid-template-columns:1fr; }.dashboard-arranger-board,.dashboard-library { min-height:0; }.dashboard-arranger-hero { align-items:flex-start; flex-direction:column; }.dashboard-arranger-footer { bottom:12px; } }
@media (max-width:560px) { .dashboard-arranger-hero,.dashboard-arranger-board,.dashboard-library { padding:18px; }.dashboard-widget-card { min-height:70px; gap:9px; padding:10px; }.dashboard-widget-drag { display:none; }.dashboard-widget-copy span { white-space:normal; }.dashboard-widget-actions .dashboard-widget-hide { display:none; }.dashboard-arranger-footer { align-items:flex-start; flex-direction:column; }.dashboard-arranger-footer .app-primary-action { width:100%; }.dashboard-arranger-hero h1 { font-size:27px !important; } }

/* The board is a responsive placement grid: every widget participates in reflow. */
.dashboard-widget-stack { grid-template-columns:1fr; }.dashboard-widget-stack .dashboard-widget-card { height:100%; }
.owner-founder-decisions { grid-column:span 4; display:flex; min-height:236px; flex-direction:column; padding:24px; }
@media (max-width:767px) { .owner-founder-decisions { grid-column:span 1; min-height:0; } }
.dashboard-widget-card[data-widget="usd-income"] .dashboard-widget-symbol { background:var(--sky-soft); color:var(--sky-text); }.dashboard-widget-card[data-widget="usd-income"] .dashboard-widget-symbol::before { content:'$'; }.dashboard-widget-card[data-widget="subscriptions-due"] .dashboard-widget-symbol { background:var(--honey-soft); color:var(--honey-text); }.dashboard-widget-card[data-widget="subscriptions-due"] .dashboard-widget-symbol::before { content:'◌'; }.dashboard-widget-card[data-widget="classroom-review"] .dashboard-widget-symbol { background:var(--lilac-soft); color:var(--lilac-text); }.dashboard-widget-card[data-widget="classroom-review"] .dashboard-widget-symbol::before { content:'✦'; }

/* In-place founder dashboard editing. Widgets retain their real live sizes while the grid reflows. */
.owner-live-layout-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 18px; border:1px solid var(--lilac); border-radius:18px; background:var(--lilac-soft); }.owner-live-layout-toolbar > div:first-child { min-width:0; }.owner-live-layout-toolbar p { margin:0 0 3px; color:var(--lilac-text); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }.owner-live-layout-toolbar strong { color:var(--ink); font-size:14px; font-weight:600; }.owner-live-layout-toolbar > div:last-child { display:flex; flex-wrap:wrap; gap:8px; }.is-dashboard-editing #owner-dashboard-grid { position:relative; padding:8px; border:1px dashed var(--lilac); border-radius:var(--radius-panel); background:color-mix(in srgb,var(--lilac-soft) 35%,transparent); }.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget] { position:relative; cursor:grab; outline:2px solid transparent; outline-offset:3px; transition:transform var(--motion-fast) var(--ease),outline-color var(--motion-fast) var(--ease),opacity var(--motion-fast) var(--ease); }.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget]:hover { outline-color:var(--lilac); transform:translateY(-2px); }.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget]::after { position:absolute; top:12px; right:12px; z-index:4; display:grid; width:29px; height:29px; place-items:center; border:1px solid var(--lilac); border-radius:9px; background:var(--surface); color:var(--lilac-text); box-shadow:var(--shadow-card); content:'⠿'; font-size:16px; line-height:1; }.is-dashboard-editing #owner-dashboard-grid .owner-command-card::after { top:18px; right:18px; }.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget] a,.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget] button { pointer-events:none; }.is-dashboard-editing #owner-dashboard-grid .owner-widget-dragging { opacity:.45; cursor:grabbing; transform:scale(.985); }.is-dashboard-editing #owner-dashboard-grid .owner-widget-drop-target { outline-color:var(--emerald); box-shadow:0 0 0 5px var(--emerald-soft),var(--shadow-menu); }.is-dashboard-editing #owner-dashboard-grid .owner-widget-drop-target::after { border-color:var(--emerald); color:var(--emerald-text); content:'↓'; }
@media (max-width:767px) { .owner-live-layout-toolbar { align-items:flex-start; flex-direction:column; }.owner-live-layout-toolbar > div:last-child { width:100%; }.owner-live-layout-toolbar button { flex:1; }.owner-arranger-link { display:none; } }

/* A clear, deliberate visual language for text and status across every authenticated screen. */
[data-flux-main] .text-zinc-950, [data-flux-main] .text-zinc-900, [data-flux-main] .text-zinc-800, [data-flux-main] .dark\:text-white { color:var(--ink) !important; }
[data-flux-main] .text-zinc-700, [data-flux-main] .text-zinc-600, [data-flux-main] .text-zinc-500, [data-flux-main] .text-zinc-400, [data-flux-main] .dark\:text-zinc-300, [data-flux-main] .dark\:text-zinc-200 { color:var(--muted) !important; }
[data-flux-main] .bg-white, [data-flux-main] .dark\:bg-zinc-900, [data-flux-main] .dark\:bg-zinc-800 { background:var(--surface) !important; }
[data-flux-main] .bg-zinc-50, [data-flux-main] .dark\:bg-zinc-950 { background:var(--surface-sunken) !important; }
[data-flux-main] .border-zinc-100, [data-flux-main] .border-zinc-200, [data-flux-main] .border-zinc-300, [data-flux-main] .dark\:border-zinc-700, [data-flux-main] .dark\:border-zinc-800 { border-color:var(--border) !important; }
.owner-live-hide-widget { position:absolute; top:12px; right:50px; z-index:5; display:inline-flex; min-height:29px; align-items:center; padding:0 9px; border:1px solid var(--rose); border-radius:9px; background:var(--surface); color:var(--rose-text); font-size:11px; font-weight:600; box-shadow:var(--shadow-card); }.owner-command-card .owner-live-hide-widget { top:18px; right:56px; }.is-dashboard-editing #owner-dashboard-grid .owner-live-hide-widget { pointer-events:auto; }.owner-live-hide-widget:hover { background:var(--rose-soft); }.owner-live-layout-toolbar #owner-live-layout-manage { color:var(--lilac-text) !important; }
@media (max-width:767px) { .owner-live-layout-toolbar #owner-live-layout-manage { display:none; }.owner-live-hide-widget { top:10px; right:46px; }.owner-command-card .owner-live-hide-widget { top:14px; right:52px; } }

/* Authentication is a calm, purpose-built entrance to the workspace. */
.auth-shell { min-height:100vh; background:var(--canvas); color:var(--ink); font-family:var(--font-sans); }
.auth-layout { display:grid; min-height:100vh; grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr); }
.auth-intro { position:relative; display:flex; min-height:100%; flex-direction:column; overflow:hidden; padding:42px clamp(42px,7vw,112px); background:linear-gradient(136deg,#0b2f23 0%,#0f3e2e 54%,#155b43 100%); color:var(--command-ink); }
.auth-intro::before,.auth-intro::after { position:absolute; border:1px solid rgba(141,224,186,.22); border-radius:50%; content:''; pointer-events:none; }.auth-intro::before { right:-180px; bottom:-220px; width:600px; height:600px; }.auth-intro::after { right:16%; top:-260px; width:480px; height:480px; }
.auth-brand { position:relative; z-index:1; display:inline-flex; align-items:center; gap:11px; width:max-content; color:var(--command-ink); font-size:15px; font-weight:600; text-decoration:none; }.auth-brand-mark { display:grid; width:38px; height:38px; place-items:center; overflow:hidden; border:1px solid rgba(231,238,233,.24); border-radius:12px; background:rgba(255,255,255,.11); font-size:16px; font-weight:700; }.auth-brand-logo { width:100%; height:100%; object-fit:contain; }
.auth-intro-copy { position:relative; z-index:1; max-width:550px; margin:auto 0; }.auth-intro-copy p,.auth-panel-header p { margin:0; color:var(--command-accent); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }.auth-intro-copy h1 { max-width:540px; margin:16px 0; color:var(--command-ink); font-size:clamp(42px,5vw,72px); font-weight:600; letter-spacing:-.06em; line-height:.96; }.auth-intro-copy > span { display:block; max-width:490px; color:var(--command-muted); font-size:16px; line-height:1.65; }.auth-intro-points { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:12px 22px; color:var(--command-muted); font-size:13px; }.auth-intro-points span { display:inline-flex; align-items:center; gap:8px; }.auth-intro-points i { width:7px; height:7px; border-radius:50%; background:var(--command-accent); box-shadow:0 0 0 4px rgba(93,211,160,.14); }
.auth-panel { display:flex; flex-direction:column; justify-content:center; padding:52px clamp(32px,7vw,108px); background:var(--canvas); }.auth-panel-header { display:flex; align-items:center; justify-content:space-between; max-width:440px; margin:0 auto 16px; width:100%; }.auth-panel-header span { color:var(--muted); font-size:12px; }.auth-card { width:100%; max-width:440px; margin:0 auto; padding:32px; border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--surface); box-shadow:var(--shadow-card); }.auth-footer { max-width:440px; margin:18px auto 0; color:var(--muted); font-size:12px; line-height:1.5; text-align:center; }
.auth-form-stack { display:grid; gap:24px; }.auth-form-heading h1 { margin:0; color:var(--ink); font-size:28px; font-weight:600; letter-spacing:-.035em; line-height:1.1; }.auth-form-heading p { margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }.auth-form { display:grid; gap:18px; }.auth-card [data-flux-field] { gap:7px; }.auth-card [data-flux-label],.auth-field-label label { color:var(--ink) !important; font-size:13px; font-weight:600; }.auth-card [data-flux-control] { min-height:46px !important; border:1px solid var(--border-strong) !important; border-radius:13px !important; background:var(--surface) !important; color:var(--ink) !important; box-shadow:none !important; }.auth-card [data-flux-control]:focus-within { border-color:var(--emerald) !important; box-shadow:var(--focus-halo) !important; }.auth-field-label { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }.auth-field-label a { color:var(--emerald-text); font-size:12px; font-weight:600; text-decoration:none; }.auth-field-label a:hover { text-decoration:underline; text-underline-offset:3px; }.auth-remember { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:13px; }.auth-card [data-flux-button][data-variant="primary"] { min-height:46px; border-radius:13px; background:var(--emerald) !important; color:var(--on-emerald) !important; font-weight:600; }.auth-card [data-flux-button][data-variant="primary"]:hover { background:var(--emerald-strong) !important; }.auth-status { padding:12px 14px; border:1px solid var(--emerald); border-radius:13px; background:var(--emerald-soft); color:var(--emerald-text); font-size:13px; }.auth-card a:not(.auth-field-label a) { color:var(--emerald-text); font-weight:600; }.auth-card .text-zinc-400,.auth-card .text-zinc-500,.auth-card .text-zinc-600,.auth-card .dark\\:text-zinc-400 { color:var(--muted) !important; }
@media (max-width:900px) { .auth-layout { grid-template-columns:1fr; }.auth-intro { min-height:310px; padding:30px 28px; }.auth-intro-copy { margin:50px 0 0; }.auth-intro-copy h1 { font-size:42px; }.auth-intro-points { display:none; }.auth-panel { padding:32px 20px 48px; }.auth-card { padding:26px; } }
@media (max-width:480px) { .auth-intro { min-height:270px; }.auth-intro-copy h1 { font-size:36px; }.auth-intro-copy > span { font-size:14px; }.auth-card { padding:22px 18px; border-radius:22px; } }

/* Form workspaces use clear sections and restrained colour instead of raw framework fields. */
.client-form-page,.project-form-page,.employee-form-page { max-width:1080px; margin:0 auto; }.client-form-page > form,.project-form-page > form,.employee-form-page > form { border-radius:var(--radius-panel) !important; box-shadow:var(--shadow-card) !important; }.client-form-page > form > .grid,.project-form-page > form > .grid,.employee-form-page > form > .grid { gap:20px !important; }.client-form-page > form > .grid > label,.project-form-page > form > .grid > label,.employee-form-page > form > .grid > label { display:block; }.client-form-page > form > .grid > label > span,.project-form-page > form > .grid > label > span,.employee-form-page > form > .grid > label > span { letter-spacing:.005em; }.client-form-page > form > .grid > label:focus-within > span,.project-form-page > form > .grid > label:focus-within > span,.employee-form-page > form > .grid > label:focus-within > span { color:var(--emerald-text); }.client-form-page > a,.project-form-page > a,.employee-form-page > a { display:inline-flex; align-items:center; min-height:36px; color:var(--emerald-text) !important; font-size:13px; font-weight:600; text-decoration:none; }.client-form-page > a:hover,.project-form-page > a:hover,.employee-form-page > a:hover { text-decoration:underline; text-underline-offset:4px; }.client-form-page > form { border-top:3px solid var(--emerald) !important; }.project-form-page > form { border-top:3px solid var(--sky) !important; }.employee-form-page > form { border-top:3px solid var(--lilac) !important; }.project-form-page fieldset { padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--surface-sunken); }.project-form-page fieldset > div { border-color:var(--border) !important; background:var(--surface) !important; }.project-form-page fieldset label:hover { background:var(--emerald-soft) !important; }

/* Form workspaces use clear sections and restrained colour instead of raw framework fields. */
.client-form-page,.project-form-page,.employee-form-page { max-width:1080px; margin:0 auto; }.client-form-page > form,.project-form-page > form,.employee-form-page > form { border-radius:var(--radius-panel) !important; box-shadow:var(--shadow-card) !important; }.client-form-page > form > .grid,.project-form-page > form > .grid,.employee-form-page > form > .grid { gap:20px !important; }.client-form-page > form > .grid > label,.project-form-page > form > .grid > label,.employee-form-page > form > .grid > label { display:block; }.client-form-page > form > .grid > label > span,.project-form-page > form > .grid > label > span,.employee-form-page > form > .grid > label > span { letter-spacing:.005em; }.client-form-page > form > .grid > label:focus-within > span,.project-form-page > form > .grid > label:focus-within > span,.employee-form-page > form > .grid > label:focus-within > span { color:var(--emerald-text); }.client-form-page > a,.project-form-page > a,.employee-form-page > a { display:inline-flex; align-items:center; min-height:36px; color:var(--emerald-text) !important; font-size:13px; font-weight:600; text-decoration:none; }.client-form-page > a:hover,.project-form-page > a:hover,.employee-form-page > a:hover { text-decoration:underline; text-underline-offset:4px; }.client-form-page > form { border-top:3px solid var(--emerald) !important; }.project-form-page > form { border-top:3px solid var(--sky) !important; }.employee-form-page > form { border-top:3px solid var(--lilac) !important; }.project-form-page fieldset { padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--surface-sunken); }.project-form-page fieldset > div { border-color:var(--border) !important; background:var(--surface) !important; }.project-form-page fieldset label:hover { background:var(--emerald-soft) !important; }

/* Operational utility screens: status stays readable, actions stay deliberate. */
.notification-bell [aria-hidden="true"] + span { border-color:var(--surface) !important; background:var(--rose) !important; color:#fff !important; }.notification-bell + [data-flux-menu] { border:1px solid var(--border) !important; border-radius:18px !important; background:var(--surface) !important; box-shadow:var(--shadow-menu) !important; }.notification-bell + [data-flux-menu] .text-zinc-950,.notification-bell + [data-flux-menu] .dark\\:text-white { color:var(--ink) !important; }.notification-bell + [data-flux-menu] .text-zinc-500,.notification-bell + [data-flux-menu] .text-zinc-600 { color:var(--muted) !important; }.notification-bell + [data-flux-menu] button:hover { background:var(--emerald-soft) !important; }.notification-bell + [data-flux-menu] .bg-brand-500 { background:var(--emerald) !important; }
.client-portal-show-page section > h2 { display:flex; align-items:center; gap:9px; margin:0; color:var(--ink); font-size:20px; font-weight:600; letter-spacing:-.02em; }.client-portal-show-page section > h2::before { width:9px; height:9px; border-radius:50%; background:var(--emerald); content:''; }.client-portal-show-page section { padding:22px; border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--surface-sunken); }.client-portal-show-page section .app-panel { background:var(--surface) !important; }.client-portal-show-page form { border-color:var(--border) !important; background:var(--surface-sunken) !important; }.client-portal-show-page .bg-brand-50 { background:var(--emerald-soft) !important; }.client-portal-show-page .text-brand-800,.client-portal-show-page .text-brand-700 { color:var(--emerald-text) !important; }
.credentials-page > section:first-of-type { border-top:3px solid var(--lilac) !important; }.credentials-page .app-primary-action { align-self:end; }.credentials-page table td:nth-child(2) { color:var(--lilac-text); font-size:12px; font-weight:600; }.credentials-page form button:not(.app-secondary-action):not(.app-primary-action) { color:var(--rose-text) !important; }.subscriptions-page .app-panel,.finance-edit-page .app-panel { border-top:3px solid var(--emerald) !important; }.subscription-edit-page .app-panel { border-top:3px solid var(--honey) !important; }
.app-page :where(p,span,td,th,label,a,button) { overflow-wrap:break-word; }.app-page :where(input,textarea,select) { max-width:100%; }.app-page [role="alert"] { border-color:var(--rose) !important; background:var(--rose-soft) !important; color:var(--rose-text) !important; }.app-page [role="status"] { border-color:var(--emerald) !important; background:var(--emerald-soft) !important; color:var(--emerald-text) !important; }

/* Classroom is a learning product, so lesson work and review decisions stay visibly separate. */
.classroom-course-page { --classroom-accent:var(--lilac); --classroom-soft:var(--lilac-soft); --classroom-text:var(--lilac-text); }.classroom-course-page > a { display:inline-flex; align-items:center; min-height:36px; color:var(--classroom-text) !important; font-size:13px; font-weight:600; text-decoration:none; }.classroom-course-page > a:hover { text-decoration:underline; text-underline-offset:4px; }.classroom-course-page > header { border-color:var(--border) !important; }.classroom-course-page > header > div > p:first-child,.classroom-course-page .text-brand-700 { color:var(--classroom-text) !important; }.classroom-course-page > header .bg-brand-50,.classroom-course-page .bg-brand-50 { background:var(--classroom-soft) !important; }.classroom-course-page .text-brand-800 { color:var(--classroom-text) !important; }.classroom-course-page > section.app-panel,.classroom-course-page > details.app-panel { border-top:3px solid var(--classroom-accent) !important; }.classroom-course-page > .grid > .app-panel:first-child { border-top:3px solid var(--sky) !important; }.classroom-course-page > .grid > .app-panel:last-child { border-top:3px solid var(--lilac) !important; }.classroom-course-page details > summary { display:flex; align-items:center; min-height:32px; color:var(--ink); }.classroom-course-page details > summary:hover { color:var(--classroom-text); }.classroom-course-page details > form { padding-top:18px; border-top:1px solid var(--border); }.classroom-course-page [type="file"]::file-selector-button { margin-right:10px; border:0; border-radius:9px; background:var(--lilac-soft); color:var(--lilac-text); font:inherit; font-size:12px; font-weight:600; cursor:pointer; }.classroom-course-page [type="file"]::file-selector-button:hover { background:var(--lilac); color:var(--on-lilac); }.classroom-course-page .divide-y > * { border-color:var(--border) !important; }.classroom-course-page details details { border-top:1px solid var(--border); }.classroom-course-page details details[open] { padding:12px; border-radius:14px; background:var(--surface-sunken); }.classroom-progress-page { --page-accent:var(--lilac); --page-soft:var(--lilac-soft); --page-text:var(--lilac-text); }.classroom-progress-page > header { padding-bottom:18px; border-bottom:1px solid var(--border); }.classroom-progress-page > header > p:first-child { color:var(--lilac-text) !important; }.classroom-progress-page .app-panel { border-top:3px solid var(--lilac) !important; }.classroom-progress-page .app-panel:nth-of-type(2n) { border-top-color:var(--sky) !important; }

/* Administration cards carry meaningful state without sacrificing scanability. */
.admin-accounts-page .app-panel,.admin-access-page .app-panel,.admin-company-page .app-panel,.workflow-page .app-panel,.admin-audit-page .app-panel { box-shadow:var(--shadow-card); }.admin-accounts-page .bg-amber-50,.admin-access-page .bg-amber-50,.admin-company-page .bg-amber-50,.workflow-page .bg-amber-50 { background:var(--honey-soft) !important; }.admin-accounts-page .text-amber-900,.admin-access-page .text-amber-900,.admin-company-page .text-amber-900,.workflow-page .text-amber-900 { color:var(--honey-text) !important; }.admin-accounts-page [data-status],.admin-access-page [data-status] { border-color:var(--border) !important; }.admin-company-page form > section,.workflow-page form > section { border-color:var(--border) !important; }.admin-company-page input[type="color"] { min-height:44px; padding:3px; border:1px solid var(--border-strong); border-radius:12px; background:var(--surface); }.admin-audit-page table td:first-child { color:var(--rose-text); font-size:12px; font-weight:600; }

/* Personal settings are a focused workspace, not an exposed framework form. */
.settings-shell { margin:30px auto; max-width:1040px; }.settings-shell .settings-content { min-width:0; }.settings-content [data-flux-heading] { color:var(--ink) !important; }.settings-content [data-flux-subheading],.settings-content [data-flux-text] { color:var(--muted) !important; }.settings-content [data-flux-field] { gap:8px; }.settings-content [data-flux-label] { color:var(--ink) !important; font-size:13px; font-weight:600; }.settings-content [data-flux-control] { min-height:44px !important; border-color:var(--border-strong) !important; background:var(--surface) !important; color:var(--ink) !important; }.settings-content [data-flux-control]:focus-within { border-color:var(--emerald) !important; box-shadow:var(--focus-halo) !important; }.settings-content [data-flux-button][data-variant="primary"] { background:var(--emerald) !important; color:var(--on-emerald) !important; }.settings-content .app-panel { border-top:3px solid var(--emerald) !important; }.settings-content .app-panel + .app-panel { border-top-color:var(--sky) !important; }.settings-content .bg-brand-50 { background:var(--emerald-soft) !important; }.settings-content .text-brand-700,.settings-content .text-brand-800 { color:var(--emerald-text) !important; }.settings-content .bg-zinc-100 { background:var(--surface-sunken) !important; }.settings-content .text-zinc-700,.settings-content .text-zinc-500 { color:var(--muted) !important; }.settings-content input[type="file"]::file-selector-button { border-radius:9px; background:var(--emerald-soft); color:var(--emerald-text); }.settings-content .mt-12 { padding-top:24px; border-top:1px solid var(--border); }.settings-content [data-flux-radio-group] { border:1px solid var(--border); border-radius:14px; background:var(--surface-sunken); padding:4px; }.settings-content [data-flux-radio][data-checked] { background:var(--surface) !important; color:var(--emerald-text) !important; box-shadow:var(--shadow-card); }

/* Auth screens use the same readable controls regardless of the workflow (reset, join, MFA). */
.auth-card [data-flux-heading] { color:var(--ink) !important; font-size:27px !important; font-weight:600 !important; letter-spacing:-.03em; }.auth-card [data-flux-subheading],.auth-card [data-flux-text] { color:var(--muted) !important; line-height:1.5; }.auth-card form:not(.auth-form) { display:grid; gap:18px; }.auth-card [data-flux-button][data-variant="outline"] { min-height:44px; border-color:var(--border-strong) !important; border-radius:13px; background:var(--surface) !important; color:var(--ink) !important; }.auth-card [data-flux-button][data-variant="outline"]:hover { background:var(--surface-sunken) !important; border-color:var(--emerald) !important; }.auth-card .border-zinc-200,.auth-card .dark\\:border-zinc-700 { border-color:var(--border) !important; }.auth-card .bg-white,.auth-card .dark\\:bg-zinc-900 { background:var(--surface) !important; }.auth-card .text-green-600,.auth-card .dark\\:text-green-400 { color:var(--emerald-text) !important; }.auth-card .text-red-600,.auth-card .dark\\:text-red-400 { color:var(--rose-text) !important; }

/* Finance and operations: currency, state, and responsibility are visible at a glance. */
.finance-page > header,.reports-page > header,.subscription-page > header,.payroll-page > header,.deliveries-page > header { padding-bottom:20px; border-bottom:1px solid var(--border); }.finance-page > .app-panel { border-top:3px solid var(--emerald) !important; }.finance-page > .app-panel:nth-of-type(2n) { border-top-color:var(--sky) !important; }.finance-page > .app-panel:nth-of-type(3n) { border-top-color:var(--honey) !important; }.finance-page details > summary { list-style:none; }.finance-page details > summary::-webkit-details-marker { display:none; }.finance-page details[open] > summary { border-color:var(--emerald); background:var(--emerald-soft); color:var(--emerald-text) !important; }.finance-page details > form { border-color:var(--border) !important; background:var(--surface) !important; box-shadow:var(--shadow-menu); }.finance-page nav a { border-radius:12px !important; }.finance-page nav a.bg-zinc-950 { background:var(--emerald) !important; color:var(--on-emerald) !important; }.finance-page figure { border-color:var(--border) !important; background:var(--surface-sunken) !important; }.finance-page figure figcaption { color:var(--ink); }.finance-page .bg-amber-50 { background:var(--honey-soft) !important; border-color:var(--honey) !important; }.finance-page .bg-zinc-50 { background:var(--surface-sunken) !important; }.finance-page ol > li { border-color:var(--border) !important; background:var(--surface-sunken) !important; }.finance-import-page .app-panel { border-top:3px solid var(--sky) !important; }.finance-import-page table td:nth-child(1) { color:var(--muted); font-variant-numeric:tabular-nums; }
.subscription-page > .app-panel { box-shadow:var(--shadow-card); }.subscription-page .subscription-create-panel { background:color-mix(in srgb,var(--honey-soft) 24%,var(--surface)) !important; }.subscription-page .subscription-records table td:first-child { color:var(--ink); }.subscription-page .subscription-records table td:nth-child(5) { color:var(--honey-text); font-weight:600; }.payroll-page > .app-panel,.payroll-mine-page > .app-panel { border-top:3px solid var(--lilac) !important; }.payroll-page table td:nth-child(2),.payroll-page table td:nth-child(3),.payroll-page table td:nth-child(4),.payroll-mine-page table td:nth-child(2),.payroll-mine-page table td:nth-child(3),.payroll-mine-page table td:nth-child(4) { font-variant-numeric:tabular-nums; }.payroll-page .bg-brand-50 { background:var(--lilac-soft) !important; }.payroll-page .text-brand-800 { color:var(--lilac-text) !important; }

/* Subscription register: keep the section identity inside its card and separate
   the empty/table states from the card edge. */
.subscription-page .subscription-create-panel { padding:22px !important; }
.subscription-page .subscription-panel-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.subscription-page .subscription-panel-heading > div { min-width:0; }
.subscription-page .subscription-panel-heading h2 { margin:4px 0 0; }
.subscription-page .subscription-panel-help { max-width:360px; margin:0; color:var(--muted); font-size:13px; line-height:1.45; text-align:right; }
.subscription-page .subscription-create-form { margin-top:20px !important; }
.subscription-page .subscription-create-form > button { align-self:end; min-height:48px; }
.subscription-page .subscription-records { overflow:hidden; }
.subscription-page .subscription-records-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; min-height:94px; padding:20px 22px 18px; border-bottom:1px solid var(--border); background:var(--surface); }
.subscription-page .subscription-records-header > div { min-width:0; }
.subscription-page .subscription-records-header .app-section-eyebrow { display:block; margin:0 0 5px; color:var(--sky-text); line-height:1.25; }
.subscription-page .subscription-records-header h2 { margin:0; }
.subscription-page .subscription-records-count { display:inline-flex; flex:0 0 auto; min-height:28px; align-items:center; padding:0 10px; border:1px solid color-mix(in srgb,var(--sky) 35%,var(--border)); border-radius:var(--radius-chip); background:var(--sky-soft); color:var(--sky-text); font-size:12px; font-weight:650; white-space:nowrap; }
.subscription-page .subscription-table { border-collapse:separate; border-spacing:0; }
.subscription-page .subscription-table thead th { height:48px; border-bottom:1px solid var(--border); background:var(--surface-sunken) !important; color:var(--muted); vertical-align:middle; }
.subscription-page .subscription-table tbody td { vertical-align:middle; }
.subscription-page .subscription-table tbody tr:last-child td { border-bottom:0; }
.subscription-page .subscription-table tbody tr:only-child td[colspan] { min-height:132px; color:var(--muted); font-size:13px; }
@media (max-width:767px) { .subscription-page .subscription-create-panel { padding:18px !important; }.subscription-page .subscription-panel-heading { align-items:flex-start; flex-direction:column; gap:7px; }.subscription-page .subscription-panel-help { max-width:none; text-align:left; }.subscription-page .subscription-records-header { align-items:flex-start; min-height:0; padding:18px; }.subscription-page .subscription-records-count { margin-top:2px; } }
.deliveries-page .app-panel { border-top:3px solid var(--sky) !important; }.deliveries-page .app-panel article { border-color:var(--border) !important; }.deliveries-page .app-panel article:hover { border-color:var(--sky) !important; box-shadow:var(--shadow-card); }.deliveries-page .bg-amber-50 { background:var(--honey-soft) !important; }.deliveries-page .text-amber-950 { color:var(--honey-text) !important; }.deliveries-page .bg-emerald-50 { background:var(--emerald-soft) !important; }.deliveries-page .text-emerald-950 { color:var(--emerald-text) !important; }.time-page .rounded-2xl.border,.leave-page .rounded-2xl.border { border-top:3px solid var(--page-accent) !important; }.time-page .rounded-2xl.border:nth-of-type(2n),.leave-page .rounded-2xl.border:nth-of-type(2n) { border-top-color:var(--lilac) !important; }.attendance-page .app-panel { border-top:3px solid var(--sky) !important; }.attendance-page .app-panel:nth-of-type(2n) { border-top-color:var(--lilac) !important; }

/* Classroom people views: recognisable people, concise status, and a practical path to action. */
.settings-nav [data-flux-navlist-item][aria-current="page"] { background:var(--emerald) !important; color:var(--on-emerald) !important; font-weight:600; }
.classroom-student-grid,.classroom-teacher-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.classroom-student-card,.classroom-teacher-card { position:relative; overflow:hidden; min-width:0; padding:20px; transition:transform var(--motion-fast) var(--ease),box-shadow var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease); }
.classroom-student-card:hover,.classroom-teacher-card:hover { border-color:var(--border-strong) !important; box-shadow:var(--shadow-card); transform:translateY(-2px); }
.classroom-student-card-top { display:flex; align-items:center; gap:12px; }
.classroom-student-card-top h2,.classroom-teacher-card h2 { margin:0; overflow:hidden; color:var(--ink); font-size:15px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.classroom-student-card-top p,.classroom-teacher-card p { margin:3px 0 0; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.classroom-student-percent { display:grid; width:44px; height:44px; flex:0 0 auto; place-items:center; border-radius:14px; background:var(--lilac-soft); color:var(--lilac-text); font-size:13px; font-weight:600; }
.classroom-student-progress { height:8px; overflow:hidden; margin-top:20px; border-radius:99px; background:var(--surface-sunken); }
.classroom-student-progress > span { display:block; height:100%; min-width:2px; border-radius:inherit; background:linear-gradient(90deg,var(--lilac),var(--sky)); }
.classroom-student-stats { display:flex; gap:18px; margin-top:13px; color:var(--muted); font-size:12px; }
.classroom-student-stats b { color:var(--ink); font-weight:600; }
.classroom-student-link { display:inline-flex; align-items:center; gap:7px; min-height:36px; margin-top:14px; color:var(--emerald-text) !important; font-size:13px; font-weight:600; text-decoration:none; transition:gap var(--motion-fast) var(--ease); }
.classroom-student-link:hover { gap:10px; text-decoration:underline; text-underline-offset:4px; }
.classroom-teacher-card { display:flex; align-items:center; gap:13px; }
.classroom-teacher-count { display:grid; min-width:64px; min-height:44px; place-content:center; padding:4px 10px; border-radius:13px; background:var(--lilac-soft); color:var(--lilac-text); font-size:11px; font-weight:600; text-align:center; }
.classroom-teacher-count b { display:block; font-size:16px; line-height:1.1; }
.classroom-review-row .classroom-review-avatar { border:0; box-shadow:none; }
@media (max-width:1023px) { .classroom-student-grid,.classroom-teacher-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px) { .classroom-student-grid,.classroom-teacher-grid { grid-template-columns:1fr; }.classroom-teacher-card { align-items:flex-start; } }

/* Salary history keeps compensation private while making each paid amount easy to scan. */
.payroll-page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding-bottom:20px; border-bottom:1px solid var(--border); }.payroll-page-header p,.payroll-history-heading p { margin:0; color:var(--lilac-text); font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }.payroll-page-header h1 { margin:9px 0 0; color:var(--ink); font-size:32px; font-weight:600; letter-spacing:-.035em; }.payroll-page-header > div > span { display:block; max-width:600px; margin-top:9px; color:var(--muted); font-size:14px; line-height:1.55; }.payroll-page-count { display:inline-flex; min-height:30px; align-items:center; padding:0 12px; border-radius:var(--radius-chip); background:var(--lilac-soft); color:var(--lilac-text); font-size:12px; font-weight:600; white-space:nowrap; }.payroll-history-panel { margin-top:22px; border-top:3px solid var(--lilac) !important; }.payroll-history-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:21px 24px; border-bottom:1px solid var(--border); }.payroll-history-heading h2 { margin:5px 0 0; color:var(--ink); font-size:19px; font-weight:600; }.payroll-history-heading > span { max-width:280px; color:var(--muted); font-size:12px; line-height:1.45; text-align:right; }.payroll-history-panel table thead { background:var(--surface-sunken) !important; color:var(--muted); font-size:11px; letter-spacing:.07em; text-transform:uppercase; }.payroll-history-panel th { padding:13px 24px; font-weight:600; }.payroll-history-panel td { padding:16px 24px; color:var(--ink); font-variant-numeric:tabular-nums; }.payroll-paid-date { display:inline-flex; min-height:27px; align-items:center; padding:0 9px; border-radius:var(--radius-chip); background:var(--emerald-soft); color:var(--emerald-text); font-size:12px; font-weight:600; }.payroll-empty-row { padding:48px 24px !important; color:var(--muted) !important; text-align:center; }.payroll-pagination { padding:14px 24px; border-top:1px solid var(--border); }
@media (max-width:767px) { .payroll-page-header { align-items:flex-start; flex-direction:column; }.payroll-history-heading { padding:18px; }.payroll-history-heading > span { text-align:left; }.payroll-history-panel th,.payroll-history-panel td { padding:14px 18px; } }

/* Search and attendance are frequent operating actions, so the controls remain obvious in either appearance. */
.page-heading { padding-bottom:18px; border-bottom:1px solid var(--border); }
.page-heading > .page-eyebrow, .page-eyebrow { margin:0; color:var(--page-text, var(--emerald-text)); font-size:12px; font-weight:700; letter-spacing:.08em; line-height:1.2; text-transform:uppercase; }
.page-heading > h1 { margin:7px 0 0; }
.page-heading > p:last-child { max-width:760px; margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
.app-status-chip { display:inline-flex; min-height:27px; align-items:center; padding:0 10px; border:1px solid color-mix(in srgb,var(--page-accent, var(--emerald)) 32%,var(--border)); border-radius:var(--radius-chip); background:var(--page-soft, var(--emerald-soft)); color:var(--page-text, var(--emerald-text)); font-size:12px; font-weight:700; white-space:nowrap; }
.app-alert { padding:13px 16px; border:1px solid var(--border); border-radius:var(--radius-control); font-size:14px; font-weight:500; }.app-alert-success { border-color:var(--emerald); background:var(--emerald-soft); color:var(--emerald-text); }.app-alert-danger { border-color:var(--rose); background:var(--rose-soft); color:var(--rose-text); }
.form-field { display:grid; gap:8px; }.form-field > span { color:var(--ink); font-size:13px; font-weight:600; }.form-control { width:100%; }
.search-command { border-top:3px solid var(--page-accent, var(--emerald)) !important; }.search-result-row { text-decoration:none; transition:background-color var(--motion-fast) var(--ease); }.search-result-row:hover { background:var(--surface-sunken); }
.attendance-page { --page-accent:var(--sky); --page-soft:var(--sky-soft); --page-text:var(--sky-text); }.attendance-page .app-panel:first-of-type { border-top:3px solid var(--sky) !important; }.attendance-page .app-status-chip { border-color:color-mix(in srgb,var(--sky) 38%,var(--border)); background:var(--sky-soft); color:var(--sky-text); }.correction-row { transition:background-color var(--motion-fast) var(--ease); }.correction-row:hover { background:color-mix(in srgb,var(--sky-soft) 35%,var(--surface)); }
@media (max-width:767px) { .app-page { padding:24px 16px 40px; gap:20px; }.search-command .app-primary-action { width:100%; }.page-heading > h1 { font-size:27px; }.correction-row { padding:18px 16px; } }
.owner-live-layout-toolbar > div:first-child > span { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget] { cursor:grab; }.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget]:active { cursor:grabbing; }

/* Live owner-dashboard editing: editable cards must look and behave like editable cards. */
#owner-dashboard-grid [data-dashboard-widget] { position:relative; }
.owner-live-drag-handle { position:absolute; z-index:7; top:11px; left:11px; display:none; min-height:30px; align-items:center; gap:6px; padding:0 9px; border:1px solid var(--lilac); border-radius:9px; background:var(--surface); color:var(--lilac-text); box-shadow:var(--shadow-card); cursor:grab; font:inherit; font-size:11px; font-weight:700; line-height:1; }
.owner-live-drag-handle > span { display:grid; grid-template-columns:repeat(2,3px); grid-template-rows:repeat(3,3px); gap:2px; }.owner-live-drag-handle i { display:block; width:3px; height:3px; border-radius:99px; background:currentColor; }.owner-live-drag-handle b { font:inherit; }
.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget] { outline:2px dashed color-mix(in srgb,var(--lilac) 70%,transparent); outline-offset:4px; cursor:grab; }
.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget]:hover { outline-color:var(--lilac); }.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget]:active { cursor:grabbing; }
.is-dashboard-editing #owner-dashboard-grid .owner-live-drag-handle { display:inline-flex; pointer-events:auto; }.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget][aria-grabbed="true"] { opacity:.65; outline-color:var(--emerald); }
.is-dashboard-editing #owner-dashboard-grid [data-dashboard-widget]::after { content:none; display:none; }

/* Role workspaces use their own calm identity without turning the operating system
   into a rainbow. The shared green remains the agency action color. */
/* Brand-kit v4 §1: companion colours (sky/honey/rose/lilac) are status/category
   tints only, never a dominant action-adjacent background, and every colour used
   anywhere must come from theme.css tokens, not hardcoded hex. These five
   gradients are rebuilt from the existing --lilac/--sky/--honey/--emerald tokens
   (same visual pattern as before, no more off-brand/hardcoded violet) so each
   role keeps a calm identity without introducing untokenized colour. Whether
   non-owner roles should keep a coloured hero at all (vs. the spec's "only the
   owner gets the focal card" rule) is a bigger call left for the Phase 4
   role-dashboard pass — see docs/audit/roadmap.md.
*/
.role-hero-teacher { border-color:var(--lilac); background:radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--lilac) 35%,transparent),transparent 30%),linear-gradient(135deg,color-mix(in srgb,var(--lilac) 22%,#141022) 0%,color-mix(in srgb,var(--lilac) 40%,#141022) 55%,color-mix(in srgb,var(--lilac) 26%,#141022) 100%); }
.role-hero-teacher .role-hero-copy > p { color:var(--lilac-soft); }.role-hero-teacher .role-hero-action { color:var(--lilac-text); }
.role-hero-student { border-color:var(--emerald); background:radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--emerald) 32%,transparent),transparent 30%),linear-gradient(135deg,color-mix(in srgb,var(--emerald) 20%,#081c17) 0%,color-mix(in srgb,var(--emerald) 38%,#081c17) 55%,color-mix(in srgb,var(--emerald) 24%,#081c17) 100%); }
.role-hero-student .role-hero-copy > p { color:var(--emerald-soft); }.role-hero-student .role-hero-action { color:var(--emerald-text); }
.role-hero-employee { border-color:var(--sky); background:radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--sky) 31%,transparent),transparent 30%),linear-gradient(135deg,color-mix(in srgb,var(--sky) 20%,#0d1f2b) 0%,color-mix(in srgb,var(--sky) 38%,#0d1f2b) 55%,color-mix(in srgb,var(--sky) 24%,#0d1f2b) 100%); }
.role-hero-employee .role-hero-copy > p { color:var(--sky-soft); }.role-hero-employee .role-hero-action { color:var(--sky-text); }
.role-hero-client { border-color:var(--emerald); background:radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--emerald) 30%,transparent),transparent 30%),linear-gradient(135deg,color-mix(in srgb,var(--emerald) 18%,#081c17) 0%,color-mix(in srgb,var(--emerald) 36%,#081c17) 55%,color-mix(in srgb,var(--emerald) 22%,#081c17) 100%); }
.role-hero-client .role-hero-copy > p { color:var(--emerald-soft); }.role-hero-client .role-hero-action { color:var(--emerald-text); }
.role-hero-admin { border-color:var(--honey); background:radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--honey) 24%,transparent),transparent 30%),linear-gradient(135deg,color-mix(in srgb,var(--honey) 16%,#211c13) 0%,color-mix(in srgb,var(--honey) 30%,#211c13) 55%,color-mix(in srgb,var(--honey) 20%,#211c13) 100%); }
.role-hero-admin .role-hero-copy > p { color:var(--honey-soft); }.role-hero-admin .role-hero-action { color:var(--honey-text); }

/* Native disclosure blocks appear in delivery, project, and finance work. Make
   their editable state a clear control rather than a plain line of text. */
.app-page details { overflow:visible; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface-sunken); }
.app-page details[open] { border-color:var(--border-strong); background:var(--surface); box-shadow:var(--shadow-card); }
.app-page details > summary { display:flex; min-height:44px; align-items:center; padding:0 15px; color:var(--emerald-text); cursor:pointer; font-size:13px; font-weight:650; list-style:none; }
.app-page details > summary::-webkit-details-marker { display:none; }.app-page details > summary::after { margin-left:auto; color:var(--muted); content:'+'; font-size:18px; font-weight:400; }.app-page details[open] > summary { border-bottom:1px solid var(--border); }.app-page details[open] > summary::after { content:'–'; }
.app-page details > form { margin:14px; }
/* Finance import is a small anchored popover. It must be allowed to extend beyond
   its trigger instead of being treated like an in-flow edit form. */
.finance-page > header details { border:0; background:transparent; box-shadow:none; }
.finance-page > header details > summary { border:1px solid var(--border-strong); border-radius:var(--radius-control); background:var(--surface); }.finance-page > header details[open] > summary { border-bottom:1px solid var(--border-strong); }
.finance-page > header details > form { margin:8px 0 0; }
.is-dashboard-editing #owner-dashboard-grid .owner-command-top { padding-left:36px; }.is-dashboard-editing #owner-dashboard-grid .owner-metric > p { padding-left:36px; }
.owner-live-hide-widget { z-index:8 !important; }
@media (max-width:767px) { .owner-live-drag-handle { top:8px; left:8px; }.is-dashboard-editing #owner-dashboard-grid .owner-command-top { padding-left:34px; }.is-dashboard-editing #owner-dashboard-grid .owner-metric > p { padding-left:34px; } }
@media (max-width:520px) { .owner-finance-trends { grid-template-columns:1fr; }.owner-finance-trend svg { height:48px; } }
/* The arranger saves visibility immediately; keep the confirmation noticeable without adding a second banner. */
.dashboard-layout-status { color:var(--emerald-text); font-weight:600; }
.dashboard-layout-status:not(:empty)::before { content:' · '; color:var(--muted); font-weight:400; }
/* Classroom library: make course status and operational scale visible at a glance. */
.classroom-library-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:24px 0; }
.classroom-library-metrics article { min-width:0; padding:17px 18px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-card); }
.classroom-library-metrics span { display:block; overflow:hidden; color:var(--muted); font-size:12px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }.classroom-library-metrics strong { display:block; margin-top:9px; color:var(--ink); font-size:27px; font-weight:600; letter-spacing:-.035em; line-height:1; }.classroom-library-metrics small { display:block; min-height:16px; margin-top:8px; color:var(--muted); font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
.classroom-category-badge,.classroom-publish-state { display:inline-flex; align-items:center; min-height:25px; max-width:58%; overflow:hidden; padding:0 9px; border-radius:var(--radius-chip); font-size:11px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }.classroom-category-slate { background:var(--surface-sunken); color:var(--muted); }.classroom-category-amber { background:var(--honey-soft); color:var(--honey-text); }.classroom-category-blue { background:var(--sky-soft); color:var(--sky-text); }.classroom-category-emerald { background:var(--emerald-soft); color:var(--emerald-text); }.classroom-category-purple { background:var(--lilac-soft); color:var(--lilac-text); }.classroom-category-rose { background:var(--rose-soft); color:var(--rose-text); }.classroom-publish-state.is-published { background:var(--emerald-soft); color:var(--emerald-text); }.classroom-publish-state.is-draft { background:var(--surface-sunken); color:var(--muted); }.classroom-course-level { margin:17px 0 0; color:var(--lilac-text); font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.classroom-course-card-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }.classroom-course-card-meta span { display:inline-flex; align-items:center; min-height:25px; max-width:100%; padding:0 8px; border:1px solid var(--border); border-radius:var(--radius-chip); color:var(--muted); font-size:11px; font-weight:600; }
@media (max-width:900px) { .classroom-library-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .classroom-library-metrics { grid-template-columns:1fr; }.classroom-library-metrics strong { font-size:25px; }.classroom-category-badge,.classroom-publish-state { max-width:48%; } }

/* Administration should answer access questions before the owner enters an edit form. */
.admin-account-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.admin-account-metric { display:grid; min-height:122px; align-content:start; gap:7px; padding:18px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-card); color:var(--ink); text-decoration:none; }
.admin-account-metric > span { color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.055em; text-transform:uppercase; }
.admin-account-metric strong { color:var(--ink); font-size:30px; font-weight:700; line-height:1; letter-spacing:-.045em; }
.admin-account-metric small { color:var(--muted); font-size:12px; line-height:1.45; }
.admin-account-metric-alert { border-color:color-mix(in srgb,var(--honey) 52%,var(--border)); background:linear-gradient(135deg,color-mix(in srgb,var(--honey-soft) 78%,var(--surface)),var(--surface)); transition:transform var(--motion-fast) var(--ease),box-shadow var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease); }
.admin-account-metric-alert:hover { border-color:var(--honey); box-shadow:var(--shadow-float); transform:translateY(-2px); }
.admin-account-metric-accent { border-top:3px solid var(--lilac); }
.workflow-template-card { border-top:3px solid color-mix(in srgb,var(--honey) 55%,var(--border)); }
.workflow-template-facts { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.workflow-template-facts span { display:inline-flex; align-items:center; gap:4px; padding:5px 8px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--muted); font-size:12px; }
.workflow-template-facts b { color:var(--ink); font-weight:700; }
.workflow-template-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.workflow-template-summary-helper { color:var(--muted); font-size:12px; font-weight:500; }
.workflow-template-summary-helper b { display:inline-block; color:var(--honey-text); font-size:15px; transition:transform var(--motion-fast) var(--ease); }
details[open] .workflow-template-summary-helper b { transform:rotate(180deg); }
@media (max-width:767px) { .admin-account-metrics { grid-template-columns:1fr; }.admin-account-metric { min-height:0; }.workflow-template-summary { align-items:flex-start; flex-direction:column; gap:5px; } }

/* Corrections stay available in project workspaces without competing with live delivery. */
.project-task-corrections { overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--surface); box-shadow:var(--shadow-card); }
.project-task-corrections > summary { display:flex; min-height:68px; align-items:center; justify-content:space-between; gap:18px; padding:16px 20px; color:var(--ink); cursor:pointer; list-style:none; }
.project-task-corrections > summary::-webkit-details-marker { display:none; }
.project-task-corrections > summary:hover { background:var(--surface-sunken); }
.project-task-corrections > summary > span:first-child { display:grid; gap:4px; }
.project-task-corrections > summary b { font-size:14px; font-weight:700; }
.project-task-corrections > summary small { color:var(--muted); font-size:12px; line-height:1.45; }
.project-task-corrections-summary-action { display:inline-flex; align-items:center; gap:7px; color:var(--rose-text); font-size:12px; font-weight:700; white-space:nowrap; }
.project-task-corrections-summary-action i { font-style:normal; transition:transform var(--motion-fast) var(--ease); }
.project-task-corrections[open] .project-task-corrections-summary-action i { transform:rotate(180deg); }
.project-task-corrections-body { padding:18px 20px 20px; border-top:1px solid var(--border); background:color-mix(in srgb,var(--rose-soft) 30%,var(--surface)); }
.project-task-corrections-body > div:first-child > p { max-width:650px; margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.project-task-corrections-list { margin-top:16px; padding:0 14px; border:1px solid color-mix(in srgb,var(--rose) 24%,var(--border)); border-radius:14px; background:var(--surface); }
.project-task-corrections-list > div + div { border-top:1px solid var(--border); }
@media (max-width:640px) { .project-task-corrections > summary { align-items:flex-start; flex-direction:column; gap:8px; }.project-task-corrections-body { padding:16px; }.project-task-corrections-list { padding:0 12px; }.project-task-corrections-list > div { align-items:flex-start; flex-direction:column; }.project-task-corrections-list form,.project-task-corrections-list form button { width:100%; } }

/* A client should understand their next agency action before reading every delivery. */
.client-portal-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding:0 !important; border:0 !important; border-radius:0 !important; background:transparent !important; }
.client-portal-overview > article { display:grid; min-height:136px; align-content:start; gap:8px; padding:18px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-card); }
.client-portal-overview > article > span { color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.065em; text-transform:uppercase; }
.client-portal-overview > article > strong { overflow:hidden; color:var(--ink); font-size:25px; font-weight:700; letter-spacing:-.04em; line-height:1.08; text-overflow:ellipsis; white-space:nowrap; }
.client-portal-overview > article > small { overflow:hidden; color:var(--muted); font-size:12px; line-height:1.42; text-overflow:ellipsis; white-space:nowrap; }
.client-portal-overview > .client-portal-overview-action { border-top:3px solid var(--honey); background:linear-gradient(135deg,color-mix(in srgb,var(--honey-soft) 80%,var(--surface)),var(--surface)); }
.client-portal-overview > .client-portal-overview-contact { border-top:3px solid var(--emerald); }
.client-portal-show-page section.client-portal-overview > h2::before { content:none; }
@media (max-width:1100px) { .client-portal-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .client-portal-overview { grid-template-columns:1fr; }.client-portal-overview > article { min-height:0; }.client-portal-overview > article > small { white-space:normal; } }

/* Dashboard arranging has a visible save state so every hide or move is confirmed. */
.owner-live-layout-feedback { position:fixed; right:24px; bottom:24px; z-index:60; max-width:min(390px,calc(100vw - 32px)); padding:12px 15px; border:1px solid var(--emerald); border-radius:13px; background:var(--surface); color:var(--emerald-text); box-shadow:var(--shadow-menu); font-size:13px; font-weight:650; line-height:1.4; }
.owner-live-layout-feedback[data-state="saving"],.owner-live-layout-feedback[data-state="info"] { border-color:var(--lilac); color:var(--lilac-text); }
.owner-live-layout-feedback[data-state="error"] { border-color:var(--rose); color:var(--rose-text); }
@media (max-width:767px) { .owner-live-layout-feedback { right:16px; bottom:16px; } }

/* Brand Kit v3 finishing pass: align the shared controls with the live shell. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
.app-page { color:var(--ink); }
.app-page h1, .app-page h2, .app-page h3 { text-wrap:balance; }
.app-page :where(input,select,textarea,button,a) { touch-action:manipulation; }
.app-page :where(td,th,.owner-command-value strong,.owner-metric > strong,.admin-account-metric strong) { font-variant-numeric:tabular-nums; }
.app-panel { border-radius:22px !important; }
.app-metric, .admin-account-metric, .classroom-library-metrics article { border-radius:18px !important; }
.app-panel:hover, .app-metric:hover { border-color:color-mix(in srgb,var(--emerald) 50%,var(--border)) !important; box-shadow:0 12px 28px -20px color-mix(in srgb,var(--emerald) 38%,transparent) !important; }
.app-secondary-action:hover { border-color:var(--emerald) !important; background:var(--emerald-soft) !important; color:var(--emerald-text) !important; }
.app-danger-action:hover { border-color:var(--rose) !important; background:var(--rose-soft) !important; color:var(--rose-text) !important; }
.app-page input:focus-visible, .app-page select:focus-visible, .app-page textarea:focus-visible, .app-page button:focus-visible, .app-page a:focus-visible { outline:2px solid var(--emerald) !important; outline-offset:3px !important; }
.app-page select { color-scheme:inherit; }

/* Admin, finance, and classroom share one clear hierarchy and semantic accents. */
.admin-accounts-page .admin-account-metric-alert { background:var(--honey-soft); }
.admin-accounts-page .admin-account-metric:not(.admin-account-metric-alert):not(.admin-account-metric-accent) { border-top:3px solid var(--emerald); }
.admin-accounts-page .admin-account-metric-accent { border-top:3px solid var(--lilac); }
.admin-accounts-page .admin-account-metric-alert:hover { box-shadow:0 12px 26px -20px color-mix(in srgb,var(--honey) 50%,transparent); }
.admin-accounts-page #pending-applications > div form { border-color:color-mix(in srgb,var(--honey) 40%,var(--border)) !important; background:color-mix(in srgb,var(--honey-soft) 48%,var(--surface)) !important; }
.finance-page .app-metric { border-top:3px solid var(--emerald) !important; }
.finance-page .app-metric:nth-of-type(4n+2) { border-top-color:var(--sky) !important; }
.finance-page .app-metric:nth-of-type(4n+3) { border-top-color:var(--honey) !important; }
.finance-page .app-metric:nth-of-type(4n) { border-top-color:var(--lilac) !important; }
.finance-page nav a { min-height:40px; border:1px solid var(--border) !important; color:var(--muted) !important; }
.finance-page nav a:hover { border-color:var(--emerald) !important; background:var(--emerald-soft) !important; color:var(--emerald-text) !important; }
.finance-page nav a.bg-zinc-950 { border-color:var(--emerald) !important; background:var(--emerald) !important; color:var(--on-emerald) !important; }
.classroom-overview-page .app-panel.group { border-radius:18px !important; }
.classroom-overview-page .app-panel.group:hover { border-color:color-mix(in srgb,var(--lilac) 46%,var(--border)) !important; }
.classroom-overview-page .app-panel.group h2 { text-wrap:balance; }
.classroom-reviews-page .classroom-review-row { border-color:var(--border); }
.classroom-reviews-page .classroom-review-row:hover { background:var(--surface-sunken); }
.classroom-reviews-page .classroom-review-copy { min-width:0; }
.classroom-reviews-page .classroom-review-copy strong, .classroom-reviews-page .classroom-review-copy span { overflow-wrap:anywhere; }
.classroom-page-header { padding-bottom:18px; border-bottom:1px solid var(--border); }
.classroom-page-header h1, .classroom-page-header span { color:var(--ink); }
.classroom-page-header span { color:var(--muted); }

@media (max-width:767px) {
  .app-page { gap:20px; padding:20px 16px 36px; }
  .app-panel { border-radius:18px !important; }
  .app-page table { min-width:620px; }
  .classroom-library-metrics article { padding:15px; }
  .finance-page > header > div:last-child { width:100%; }
  .finance-page > header > div:last-child > * { max-width:100%; }
}

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


/* Login: a decisive entry screen with a conventional, accessible remembered-session control. */
.auth-intro { background:radial-gradient(circle at 82% 13%,rgb(104 225 166 / .24),transparent 24%),radial-gradient(circle at 18% 92%,rgb(120 174 255 / .18),transparent 30%),linear-gradient(136deg,#082f24 0%,#0c4935 52%,#136144 100%); }
.auth-intro-copy { margin-bottom:34px; }
.auth-intro-copy h1 { text-wrap:balance; text-shadow:0 2px 22px rgb(0 25 16 / .18); }
.auth-intro-highlights { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:610px; margin:0 0 auto; }
.auth-intro-highlights article { display:flex; min-width:0; align-items:flex-start; gap:9px; padding:12px; border:1px solid rgb(221 255 234 / .18); border-radius:15px; background:rgb(4 39 27 / .20); backdrop-filter:blur(8px); }
.auth-highlight-icon { display:grid; width:27px; height:27px; flex:0 0 auto; place-items:center; border-radius:9px; font-size:14px; font-weight:700; }.auth-highlight-icon.emerald { background:var(--emerald-soft); color:var(--emerald-text); }.auth-highlight-icon.lilac { background:var(--lilac-soft); color:var(--lilac-text); }.auth-highlight-icon.honey { background:var(--honey-soft); color:var(--honey-text); }
.auth-intro-highlights strong { display:block; overflow:hidden; color:var(--command-ink); font-size:12px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }.auth-intro-highlights small { display:block; margin-top:3px; color:rgb(232 251 239 / .68); font-size:10px; line-height:1.35; }
.auth-panel { position:relative; overflow:hidden; background:linear-gradient(145deg,var(--canvas) 0%,color-mix(in srgb,var(--emerald-soft) 22%,var(--canvas)) 100%); }.auth-panel::before { position:absolute; top:0; right:0; width:220px; height:220px; border-radius:50%; background:radial-gradient(circle,rgb(139 115 214 / .10),transparent 68%); content:''; pointer-events:none; }
.auth-panel-header { position:relative; }.auth-panel-header span { display:inline-flex; align-items:center; gap:7px; }.auth-panel-header span i { width:7px; height:7px; border-radius:50%; background:var(--emerald); box-shadow:0 0 0 4px var(--emerald-soft); }
.auth-card { position:relative; overflow:hidden; border-color:color-mix(in srgb,var(--emerald) 20%,var(--border)); box-shadow:0 18px 40px rgb(8 48 36 / .10),0 2px 6px rgb(8 48 36 / .05); }.auth-card::before { position:absolute; top:0; right:28px; left:28px; height:3px; border-radius:0 0 99px 99px; background:linear-gradient(90deg,var(--emerald),var(--sky),var(--lilac)); content:''; }
.auth-remember { min-height:38px; padding:7px 10px; border:1px solid transparent; border-radius:11px; color:var(--muted); cursor:pointer; transition:background-color var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease); }.auth-remember:hover { border-color:var(--border); background:var(--surface-sunken); }.auth-remember:has(.auth-remember-input:focus-visible) { border-color:var(--emerald); box-shadow:var(--focus-halo); }
.auth-remember-input { appearance:none; display:grid; width:18px; height:18px; flex:0 0 auto; margin:0; place-content:center; border:1.5px solid var(--border-strong); border-radius:6px; background:var(--surface); cursor:pointer; transition:background-color var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease),transform var(--motion-fast) var(--ease); }.auth-remember-input::before { width:9px; height:5px; border-bottom:2px solid var(--on-emerald); border-left:2px solid var(--on-emerald); content:''; opacity:0; transform:rotate(-45deg) translateY(-1px); }.auth-remember-input:checked { border-color:var(--emerald); background:var(--emerald); }.auth-remember-input:checked::before { opacity:1; }.auth-remember-input:active { transform:scale(.92); }.auth-remember span { color:var(--ink); font-size:13px; font-weight:550; }
@media (max-width:900px) { .auth-intro-highlights { grid-template-columns:1fr 1fr; margin-bottom:0; }.auth-intro-highlights article:last-child { display:none; } }
@media (max-width:480px) { .auth-intro-highlights { display:none; }.auth-remember { padding-inline:8px; } }

/* Keep app-level component display rules from exposing controls that are inactive. */
[hidden], .owner-header-actions > .hidden, .dashboard-empty-zone.hidden { display:none !important; }
@media (max-width:1023px) { .app-topbar { display:none !important; } }
@media (min-width:1024px) { .app-topbar { display:flex !important; } }

/* Mobile app shell: safe-area aware, touch-first, and intentionally separate from the desktop drawer. */
html { -webkit-tap-highlight-color:transparent; -webkit-text-size-adjust:100%; overscroll-behavior:none; }
html { height:100%; } body { min-height:100vh; min-height:100dvh; }
button, a, [role="button"] { touch-action:manipulation; }
input, textarea, select { font-size:16px; }
.zam-mobile-nav { display:none; }
.owner-mobile-dashboard { display:none; }
.classroom-mobile-teacher-hero, .classroom-mobile-student-hero, .classroom-mobile-teacher-actions { display:none; }
.classroom-mobile-management-hero { display:none; }
.student-mobile-progress { display:none; }
.admin-mobile-hero { display:none; }
@media (max-width:767px) {
  body { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
  .zam-mobile-nav { position:fixed; right:0; bottom:0; left:0; z-index:70; display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:4px; padding:8px 10px calc(8px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:color-mix(in srgb,var(--surface) 92%,transparent); box-shadow:0 -12px 30px rgb(8 48 36 / .10); backdrop-filter:blur(18px); }
  .zam-mobile-nav-item { display:flex; min-width:0; min-height:52px; flex-direction:column; align-items:center; justify-content:center; gap:4px; border-radius:14px; color:var(--muted); font-size:10px; font-weight:700; line-height:1; text-decoration:none; transition:color 120ms ease,background-color 120ms ease,transform 120ms ease; }
  .zam-mobile-nav-item:active { transform:scale(.96); }
  .zam-mobile-nav-item.is-active { background:var(--emerald-soft); color:var(--emerald-text); }
  .zam-mobile-nav-icon { display:grid; width:25px; height:25px; place-items:center; border:1px solid currentColor; border-radius:8px; font-size:16px; line-height:1; }
  .app-page { min-height:calc(100dvh - 64px); padding-bottom:20px; }
  .app-page table { min-width:0; }
  .app-page :where(h1,h2,h3,p,span,a,td,th) { overflow-wrap:anywhere; }
  .owner-dashboard-grid { display:none !important; }
  .owner-mobile-dashboard { display:grid; gap:14px; }
  .owner-page-header { margin-bottom:2px; }
  .owner-header-actions > :not(.app-primary-action) { display:none !important; }
  .owner-header-actions .app-primary-action { min-height:42px; padding-inline:14px; font-size:12px; }
  .owner-mobile-welcome { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:2px 2px 8px; }
  .owner-mobile-welcome h2 { margin:3px 0 0; color:var(--ink); font-size:22px; letter-spacing:-.035em; }
  .owner-mobile-status { display:inline-flex; align-items:center; gap:7px; padding:7px 9px; border:1px solid var(--border); border-radius:999px; color:var(--muted); font-size:10px; font-weight:700; white-space:nowrap; }
  .owner-mobile-status i { width:7px; height:7px; border-radius:50%; background:var(--emerald); box-shadow:0 0 0 3px var(--emerald-soft); }
  .owner-mobile-finance, .owner-mobile-section { padding:17px; border:1px solid var(--border); border-radius:20px; background:var(--surface); box-shadow:var(--shadow-card); }
  .owner-mobile-finance { border-top:3px solid var(--emerald); background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--emerald-soft) 35%,var(--surface))); }
  .owner-mobile-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
  .owner-mobile-card-heading p { margin:0; color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
  .owner-mobile-card-heading h2 { margin:4px 0 0; color:var(--ink); font-size:18px; letter-spacing:-.025em; }
  .owner-mobile-card-heading a { color:var(--emerald-text); font-size:11px; font-weight:750; text-decoration:none; white-space:nowrap; }
  .owner-mobile-count { display:grid; min-width:30px; height:30px; place-items:center; border-radius:10px; background:var(--honey-soft); color:var(--honey-text); font-size:12px; font-weight:800; }
  .owner-mobile-ledgers { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:15px; }
  .owner-mobile-ledgers article { min-width:0; padding:12px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
  .owner-mobile-ledgers span, .owner-mobile-ledgers small { display:block; color:var(--muted); font-size:10px; line-height:1.35; }
  .owner-mobile-ledgers strong { display:block; margin:7px 0 5px; overflow:hidden; color:var(--ink); font-size:16px; letter-spacing:-.03em; text-overflow:ellipsis; white-space:nowrap; }
  .owner-mobile-helper { margin:12px 0 0; color:var(--muted); font-size:10px; }
  .owner-mobile-action-list, .owner-mobile-upcoming { display:grid; gap:7px; margin-top:14px; }
  .owner-mobile-action-list > a, .owner-mobile-upcoming > a { display:flex; min-width:0; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--border); color:var(--ink); text-decoration:none; }
  .owner-mobile-action-list > a:first-child, .owner-mobile-upcoming > a:first-child { border-top:0; }
  .owner-mobile-action-list > a > span:nth-child(2), .owner-mobile-upcoming > a > span:nth-child(2) { min-width:0; flex:1; }
  .owner-mobile-action-list strong, .owner-mobile-upcoming strong { display:block; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
  .owner-mobile-action-list small, .owner-mobile-upcoming small { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
  .owner-mobile-action-list > a > b, .owner-mobile-upcoming > a > b { color:var(--muted); font-size:20px; font-weight:400; }
  .owner-mobile-action-icon { display:grid; width:28px; height:28px; flex:0 0 auto; place-items:center; border-radius:9px; font-size:13px; font-weight:800; }
  .owner-mobile-action-icon.is-amber { background:var(--honey-soft); color:var(--honey-text); }.owner-mobile-action-icon.is-purple { background:var(--lilac-soft); color:var(--lilac-text); }.owner-mobile-action-icon.is-blue { background:var(--sky-soft); color:var(--sky-text); }
  .owner-mobile-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
  .owner-mobile-stats article { padding:11px 9px; border:1px solid var(--border); border-radius:13px; background:var(--surface-sunken); }
  .owner-mobile-stats strong { display:block; color:var(--ink); font-size:20px; letter-spacing:-.04em; }.owner-mobile-stats span { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
  .owner-mobile-progress { display:flex; align-items:center; gap:9px; margin-top:13px; }.owner-mobile-progress > span { height:7px; flex:1; overflow:hidden; border-radius:99px; background:var(--surface-sunken); }.owner-mobile-progress b { display:block; height:100%; border-radius:inherit; background:var(--emerald); }.owner-mobile-progress small { color:var(--muted); font-size:10px; white-space:nowrap; }
  .owner-mobile-upcoming time { display:grid; width:35px; flex:0 0 auto; place-items:center; padding:5px 0; border-radius:9px; background:var(--emerald-soft); color:var(--emerald-text); }.owner-mobile-upcoming time b { font-size:14px; line-height:1; }.owner-mobile-upcoming time span { margin-top:3px; font-size:9px; font-weight:700; text-transform:uppercase; }
  .owner-mobile-empty { padding:14px 0 4px; color:var(--muted); }.owner-mobile-empty strong { display:block; color:var(--ink); font-size:12px; }.owner-mobile-empty span { display:block; margin-top:4px; font-size:10px; }
  .classroom-mobile-teacher-hero, .classroom-mobile-student-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; padding:19px; border:1px solid var(--border); border-radius:20px; background:linear-gradient(145deg,var(--emerald),color-mix(in srgb,var(--emerald) 66%,#071d15)); color:#fff; box-shadow:0 14px 30px -20px color-mix(in srgb,var(--emerald) 60%,transparent); }
  .classroom-mobile-teacher-hero p, .classroom-mobile-student-hero p { margin:0; color:#a8f0ce; font-size:10px; font-weight:750; letter-spacing:.12em; text-transform:uppercase; }.classroom-mobile-teacher-hero h2, .classroom-mobile-student-hero h2 { margin:6px 0 0; color:#fff; font-size:22px; letter-spacing:-.035em; }.classroom-mobile-teacher-hero span, .classroom-mobile-student-hero span { display:block; max-width:240px; margin-top:6px; color:#d0e9dd; font-size:11px; line-height:1.45; }.classroom-mobile-teacher-hero .app-primary-action, .classroom-mobile-student-hero .app-primary-action { flex:0 0 auto; border-color:#a8f0ce; background:#fff; color:var(--emerald-text); }
  .classroom-mobile-teacher-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }.classroom-mobile-teacher-actions a { display:flex; min-height:84px; flex-direction:column; justify-content:space-between; padding:12px; border:1px solid var(--border); border-radius:16px; background:var(--surface); color:var(--ink); text-decoration:none; }.classroom-mobile-teacher-actions strong { font-size:22px; letter-spacing:-.04em; }.classroom-mobile-teacher-actions span { color:var(--muted); font-size:10px; font-weight:650; }.classroom-mobile-teacher-actions b { align-self:flex-end; color:var(--emerald-text); font-size:18px; font-weight:400; }
  .classroom-mobile-management-hero { display:flex; min-width:0; align-items:flex-end; justify-content:space-between; gap:14px; padding:18px; border:1px solid color-mix(in srgb,var(--sky) 42%,var(--border)); border-radius:20px; background:linear-gradient(145deg,color-mix(in srgb,var(--sky-soft) 78%,var(--surface)),var(--surface)); box-shadow:var(--shadow-card); }
  .classroom-mobile-management-hero > div:first-child { min-width:0; }
  .classroom-mobile-management-hero p { margin:0; color:var(--sky-text); font-size:10px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
  .classroom-mobile-management-hero h2 { margin:5px 0 0; color:var(--ink); font-size:20px; letter-spacing:-.035em; }
  .classroom-mobile-management-hero span { display:block; max-width:245px; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.45; }
  .classroom-mobile-management-hero .app-primary-action { flex:0 0 auto; min-height:42px; }
  .classroom-mobile-management-hero-lilac { border-color:color-mix(in srgb,var(--lilac) 46%,var(--border)); background:linear-gradient(145deg,color-mix(in srgb,var(--lilac-soft) 80%,var(--surface)),var(--surface)); }
  .classroom-mobile-management-hero-lilac p { color:var(--lilac-text); }
  .classroom-progress-page > section.grid:first-of-type { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .classroom-progress-page > section.grid:first-of-type .app-metric { min-width:0; padding:14px; border-radius:16px; }
  .classroom-progress-page > section.grid:first-of-type .app-metric p:first-child { min-height:30px; font-size:11px; line-height:1.3; }
  .classroom-progress-page > section.grid:first-of-type .app-metric p:last-child { margin-top:7px; font-size:25px; }
  .classroom-progress-page .overflow-x-auto { -webkit-overflow-scrolling:touch; overflow-x:auto; scrollbar-width:thin; }
  .classroom-progress-page .overflow-x-auto table { min-width:620px; }
  .classroom-students-page form.app-panel { gap:10px; }
  .classroom-students-page form.app-panel label { min-width:0; }
  .classroom-students-page form.app-panel button { width:100%; justify-content:center; }
  .classroom-overview-page .classroom-library-metrics { display:none; }
  .classroom-overview-page > section#course-library { margin-top:2px; }
  .classroom-course-page > header { gap:14px; margin-top:14px; padding-bottom:18px; }
  .classroom-course-page > header h1 { font-size:26px; line-height:1.08; }
  .classroom-course-page > header .aspect-video { max-width:none; border-radius:16px; }
  .classroom-course-page > section[aria-label="Course lessons"] { margin-top:20px; }
  .classroom-course-page > section[aria-label="Course lessons"] > article { border-radius:18px; }
  .classroom-course-page video { display:block; width:100%; max-height:54svh; aspect-ratio:16/9; object-fit:contain; }
  .classroom-course-page .app-panel > div.grid { gap:16px; padding:16px; }
  .classroom-course-page .app-panel > div.grid > aside { padding:15px; border-radius:16px; }
  .classroom-course-page .app-panel input, .classroom-course-page .app-panel textarea, .classroom-course-page .app-panel select { min-height:44px; }
  .student-mobile-progress { display:flex; align-items:center; gap:14px; padding:15px; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-card); }
  .student-mobile-progress-ring { display:grid; width:78px; height:78px; flex:0 0 auto; place-items:center; border-radius:50%; background:conic-gradient(var(--emerald) var(--student-progress,0%),var(--surface-sunken) 0); position:relative; }
  .student-mobile-progress-ring::after { position:absolute; inset:7px; border-radius:50%; background:var(--surface); content:''; }
  .student-mobile-progress-ring strong { position:relative; z-index:1; color:var(--ink); font-size:20px; letter-spacing:-.05em; }.student-mobile-progress-ring small { font-size:11px; }
  .student-mobile-progress-copy { min-width:0; }.student-mobile-progress-copy p { margin:0; color:var(--emerald-text); font-size:10px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }.student-mobile-progress-copy h2 { margin:4px 0 0; overflow-wrap:anywhere; color:var(--ink); font-size:17px; letter-spacing:-.025em; }.student-mobile-progress-copy span { display:block; margin-top:4px; color:var(--muted); font-size:10px; }.student-mobile-progress-copy a { display:inline-flex; align-items:center; gap:4px; min-height:44px; margin-top:4px; color:var(--lilac-text); font-size:11px; font-weight:750; text-decoration:none; }
  .classroom-reviews-page .classroom-review-grid { gap:10px; }
  .classroom-reviews-page .classroom-review-count { min-height:112px; padding:15px; border-radius:18px; }
  .classroom-reviews-page .classroom-review-count strong { margin-top:8px; font-size:28px; }
  .classroom-reviews-page > form.app-panel { padding:14px; border-radius:18px; }
  .classroom-reviews-page > form.app-panel > div { width:100%; }
  .classroom-reviews-page > form.app-panel button { width:100%; }
  .classroom-review-list { border-radius:18px; }
  .classroom-review-list-heading { align-items:flex-start; flex-direction:column; padding:16px; gap:8px; }
  .classroom-review-list-heading h2 { font-size:17px; }
  .classroom-review-list-heading > span { font-size:10px; }
  .classroom-review-row { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; padding:14px 16px; }
  .classroom-review-row .classroom-review-avatar { grid-row:span 2; width:36px; height:36px; }
  .classroom-review-row .classroom-review-copy { align-self:center; }
  .classroom-review-row .role-status { grid-column:2; justify-self:start; min-height:26px; }
  .classroom-review-row .app-secondary-action { grid-column:1 / -1; width:100%; justify-content:center; min-height:42px; }
  .employees-page > header h1, .leave-page > header h1, .time-page > header h1 { font-size:27px; line-height:1.1; }
  .admin-mobile-hero { display:flex; min-width:0; align-items:flex-end; justify-content:space-between; gap:14px; padding:18px; border:1px solid color-mix(in srgb,var(--emerald) 42%,var(--border)); border-radius:20px; background:linear-gradient(145deg,color-mix(in srgb,var(--emerald-soft) 78%,var(--surface)),var(--surface)); box-shadow:var(--shadow-card); }
  .admin-mobile-hero > div:first-child { min-width:0; }
  .admin-mobile-hero p { margin:0; color:var(--emerald-text); font-size:10px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
  .admin-mobile-hero h2 { margin:5px 0 0; color:var(--ink); font-size:20px; letter-spacing:-.035em; }
  .admin-mobile-hero span { display:block; max-width:245px; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.45; }
  .admin-mobile-hero-stat { display:grid; min-width:72px; min-height:72px; flex:0 0 auto; place-content:center; border:1px solid var(--border); border-radius:16px; background:var(--surface); text-align:center; }
  .admin-mobile-hero-stat strong { color:var(--ink); font-size:25px; letter-spacing:-.05em; line-height:1; }
  .admin-mobile-hero-stat span { margin-top:5px; color:var(--muted); font-size:10px; font-weight:750; }
  .admin-mobile-hero-lilac { border-color:color-mix(in srgb,var(--lilac) 46%,var(--border)); background:linear-gradient(145deg,color-mix(in srgb,var(--lilac-soft) 80%,var(--surface)),var(--surface)); }
  .admin-mobile-hero-lilac p { color:var(--lilac-text); }
  .admin-mobile-hero-sky { border-color:color-mix(in srgb,var(--sky) 46%,var(--border)); background:linear-gradient(145deg,color-mix(in srgb,var(--sky-soft) 80%,var(--surface)),var(--surface)); }
  .admin-mobile-hero-sky p { color:var(--sky-text); }
  .admin-mobile-hero-amber { border-color:color-mix(in srgb,var(--honey) 46%,var(--border)); background:linear-gradient(145deg,color-mix(in srgb,var(--honey-soft) 82%,var(--surface)),var(--surface)); }
  .admin-mobile-hero-amber p { color:var(--honey-text); }
  .employees-page > header > a { width:100%; justify-content:center; }
  .employees-page > form { padding:13px; border-radius:18px; }
  .employees-page > form input, .employees-page > form button { width:100%; }
  .employees-page article.app-panel { border-radius:18px; padding:15px; }
  .leave-page > section.app-panel, .time-page section.app-panel { border-radius:18px; padding:15px; }
  .leave-page > section:last-of-type form, .leave-page > section:last-of-type form button, .time-page section form button { width:100%; }
  .leave-page > section:last-of-type .flex.gap-2 { flex-direction:column; }
}
@media (max-width:380px) {
  .classroom-mobile-management-hero { align-items:stretch; flex-direction:column; }
  .classroom-mobile-management-hero .app-primary-action { justify-content:center; width:100%; }
  .classroom-progress-page > section.grid:first-of-type { grid-template-columns:1fr; }
  .admin-mobile-hero { align-items:stretch; flex-direction:column; }
  .admin-mobile-hero-stat { width:100%; min-height:56px; }
  .classroom-mobile-teacher-hero, .classroom-mobile-student-hero { align-items:stretch; flex-direction:column; }
  .classroom-mobile-teacher-hero .app-primary-action, .classroom-mobile-student-hero .app-primary-action { justify-content:center; width:100%; }
  .classroom-mobile-teacher-actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .classroom-mobile-teacher-actions a { min-height:72px; padding:11px; }
  .owner-mobile-ledgers, .owner-mobile-stats { grid-template-columns:1fr; }
  .owner-mobile-welcome { align-items:flex-start; flex-direction:column; }
  .owner-mobile-status { align-self:flex-start; }
}
@media (hover:hover) and (pointer:fine) {
  .zam-mobile-nav-item:hover { background:var(--surface-sunken); color:var(--ink); }
}

.dark .zam-company-logo { filter: brightness(0) invert(1); }
.zam-file-input { display:block; width:100%; min-height:48px; padding:7px; border:1px solid var(--border-strong); border-radius:14px; background:var(--surface); color:var(--ink); font-size:14px; line-height:32px; }
.zam-file-input::file-selector-button { margin-right:10px; padding:8px 14px; border:0; border-radius:9px; background:var(--lilac-soft); color:var(--lilac-text); font:inherit; font-weight:600; cursor:pointer; }
.zam-file-input:focus-visible { outline:3px solid color-mix(in srgb, var(--brand) 28%, transparent); outline-offset:2px; }
/* Teacher roster cards must contain uploaded photos and avoid legacy pseudo-labels. */
.profile-avatar { display:inline-flex; width:2.5rem; height:2.5rem; }
.profile-avatar.size-12 { width:3rem; height:3rem; }
.profile-avatar.size-10 { width:2.5rem; height:2.5rem; }
.profile-avatar.size-9 { width:2.25rem; height:2.25rem; }
.profile-avatar.size-8 { width:2rem; height:2rem; }
.classroom-teachers-page > .classroom-teacher-grid > article { display:block; align-items:initial; justify-content:initial; border-left:0 !important; }
.classroom-teachers-page > .classroom-teacher-grid > article::after { content:none; }

/* Course workspace: keep management controls in a quiet rail and lessons in a
   single-open accordion so long courses remain scannable. */
.classroom-course-shell { display:grid; grid-template-columns:minmax(190px,220px) minmax(0,1fr); gap:24px; align-items:start; margin-top:24px; }
.classroom-course-sidebar { position:sticky; top:24px; display:flex; flex-direction:column; gap:20px; padding:18px; border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--surface-sunken); box-shadow:var(--shadow-card); }
.classroom-course-sidebar-head p { margin:0; color:var(--classroom-text); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.classroom-course-sidebar-head strong { display:block; margin-top:8px; color:var(--ink); font-size:16px; line-height:1.25; overflow-wrap:anywhere; }
.classroom-course-sidebar-head span { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.classroom-course-sidebar-cover { display:block; width:100%; aspect-ratio:16/9; border:1px solid var(--border); border-radius:12px; object-fit:cover; }
.classroom-course-sidebar-about { padding-top:14px; border-top:1px solid var(--border); }
.classroom-course-sidebar-about summary { cursor:pointer; color:var(--classroom-text); font-size:13px; font-weight:700; list-style:none; }
.classroom-course-sidebar-about summary::-webkit-details-marker { display:none; }
.classroom-course-sidebar-about summary::after { float:right; content:'+'; font-size:16px; font-weight:400; }
.classroom-course-sidebar-about[open] summary::after { content:'−'; }
.classroom-course-sidebar-about p { margin:10px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.classroom-course-sidebar-about-label { color:var(--classroom-text) !important; font-size:10px !important; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.classroom-course-sidebar-about ul { display:grid; gap:6px; margin:8px 0 0; padding:0; list-style:none; color:var(--muted); font-size:12px; line-height:1.4; }
.classroom-course-sidebar-about li { display:flex; gap:7px; }
.classroom-course-sidebar-about li span { color:var(--emerald-text); font-weight:700; }
.classroom-course-sidebar-nav { display:grid; gap:4px; }
.classroom-course-sidebar-nav a { display:flex; align-items:center; justify-content:space-between; min-height:40px; padding:0 11px; border-radius:10px; color:var(--muted); font-size:13px; font-weight:600; text-decoration:none; transition:background .16s ease,color .16s ease; }
.classroom-course-sidebar-nav a:hover, .classroom-course-sidebar-nav a:focus-visible { background:var(--surface); color:var(--classroom-text); outline:none; }
.classroom-course-sidebar-nav a span { color:var(--classroom-text); font-size:11px; }
.classroom-course-sidebar-foot { display:grid; gap:8px; padding-top:14px; border-top:1px solid var(--border); color:var(--muted); font-size:12px; }
.classroom-course-main { min-width:0; }
.classroom-lesson-accordion { margin-top:0; }
.classroom-lesson-accordion + .classroom-lesson-accordion { margin-top:12px; }
.classroom-lesson-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; list-style:none; }
.classroom-lesson-summary::-webkit-details-marker { display:none; }
.classroom-lesson-summary::after { content:'+'; display:grid; width:30px; height:30px; flex:0 0 auto; place-items:center; border:1px solid var(--border); border-radius:50%; color:var(--classroom-text); font-size:20px; font-weight:400; line-height:1; }
.classroom-lesson-accordion[open] .classroom-lesson-summary::after { content:'−'; background:var(--classroom-soft); }
.classroom-lesson-content { border-top:0; }
@media (max-width:900px) {
  .classroom-course-shell { grid-template-columns:1fr; }
  .classroom-course-sidebar { position:static; }
  .classroom-course-sidebar-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .classroom-course-sidebar-nav { grid-template-columns:1fr; }
  .classroom-lesson-summary { padding:16px !important; }
  .classroom-lesson-summary h2 { font-size:17px; }
}

/* Student learning view: video first, playlist second, with the management
   surface deliberately kept out of the watching experience. */
.classroom-learning-page { --classroom-accent:var(--lilac); --classroom-soft:var(--lilac-soft); --classroom-text:var(--lilac-text); max-width:1280px; }
.classroom-management-tabs { display:flex; flex-wrap:wrap; gap:7px; margin-top:20px; padding:7px; border:1px solid var(--border); border-radius:14px; background:var(--surface-sunken); }
.classroom-management-tabs button { min-height:38px; padding:0 13px; border:1px solid transparent; border-radius:10px; color:var(--muted); background:transparent; font-size:12px; font-weight:700; cursor:pointer; }
.classroom-management-tabs button:hover, .classroom-management-tabs button:focus-visible { color:var(--ink); background:var(--surface); outline:2px solid color-mix(in srgb,var(--brand),transparent 60%); outline-offset:1px; }
.classroom-management-tabs button.is-active { border-color:var(--brand); color:var(--brand-ink,var(--brand)); background:var(--surface); box-shadow:0 2px 8px rgb(16 34 27 / 8%); }
.classroom-learning-progress-label { color:var(--classroom-text) !important; font-size:10px !important; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.classroom-learning-status { margin:0; padding:13px 15px; border:1px solid color-mix(in srgb,var(--classroom-accent),transparent 68%); border-radius:12px; background:color-mix(in srgb,var(--classroom-soft),transparent 35%); color:var(--classroom-text); font-size:14px; line-height:1.5; }
.classroom-learning-status-warning { border-color:var(--honey); background:var(--honey-soft); color:var(--honey-text); }
.classroom-learning-inline-note { margin:10px 0 0; color:var(--muted); font-size:13px; }
.classroom-learning-feedback { margin-top:14px; padding:13px 15px; border-left:3px solid var(--classroom-accent); background:var(--surface-sunken); color:var(--classroom-text); font-size:13px; }
.classroom-learning-feedback p { margin:6px 0 0; line-height:1.5; }
.classroom-learning-history { margin-top:14px; border-top:1px solid var(--border); padding-top:12px; }
.classroom-learning-history summary { cursor:pointer; color:var(--classroom-text); font-size:13px; font-weight:700; }
.classroom-learning-history-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:9px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; color:var(--muted); font-size:12px; }
.classroom-learning-history-row a { color:var(--classroom-text); font-weight:700; }
.classroom-learning-breadcrumbs { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.classroom-learning-breadcrumbs a { color:var(--classroom-text); font-weight:650; text-decoration:none; }
.classroom-learning-breadcrumbs a:hover { text-decoration:underline; text-underline-offset:3px; }
.classroom-learning-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-top:20px; padding-bottom:22px; border-bottom:1px solid var(--border); }
.classroom-learning-header h1 { margin:6px 0 0; color:var(--ink); font-size:clamp(28px,3vw,42px); letter-spacing:-.045em; line-height:1.05; }
.classroom-learning-header > div:first-child > p:last-child { max-width:680px; margin:10px 0 0; color:var(--muted); font-size:14px; line-height:1.55; }
.classroom-learning-kicker { margin:0; color:var(--classroom-text); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.classroom-learning-progress { display:grid; min-width:156px; gap:5px; padding:15px 18px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface-sunken); box-shadow:var(--shadow-card); text-align:right; }
.classroom-learning-progress strong { color:var(--ink); font-size:15px; font-weight:600; }
.classroom-learning-progress span { color:var(--muted); font-size:12px; }
.classroom-learning-layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:20px; align-items:start; margin-top:22px; }
.classroom-learning-main { display:grid; gap:16px; min-width:0; }
.classroom-learning-player-panel { overflow:hidden; padding:0; }
.classroom-learning-player { aspect-ratio:16/9; min-height:320px; background:#101a17; }
.classroom-learning-player iframe, .classroom-learning-video { display:block; width:100%; height:100%; min-height:320px; border:0; background:#101a17; }
.classroom-learning-video { object-fit:contain; }
.classroom-learning-player-empty, .classroom-learning-external-video { display:grid; height:100%; min-height:320px; place-items:center; padding:30px; color:#fff; text-align:center; }
.classroom-learning-external-video { color:var(--emerald-soft); font-size:16px; font-weight:700; text-decoration:none; }
.classroom-learning-details { padding:22px 24px 25px; }
.classroom-learning-details-heading, .classroom-learning-section-heading, .classroom-learning-playlist-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.classroom-learning-details h2 { margin:5px 0 0; color:var(--ink); font-size:24px; letter-spacing:-.03em; }
.classroom-learning-meta { margin-top:10px; color:var(--muted); font-size:12px; }
.classroom-learning-description { max-width:720px; margin:14px 0 0; color:var(--classroom-text); font-size:14px; line-height:1.65; white-space:pre-line; }
.classroom-learning-resources, .classroom-learning-action { padding:24px 26px; }
.classroom-learning-section-heading h2 { margin:6px 0 0; color:var(--ink); font-size:19px; font-weight:600; letter-spacing:-.02em; }
.classroom-learning-section-note { color:var(--muted); font-size:12.5px; }
.classroom-learning-resource-list { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.classroom-learning-resource-list a, .classroom-learning-resource-list > span { display:inline-flex; min-height:44px; align-items:center; padding:0 16px; border:1px solid var(--border); border-radius:var(--radius-control); color:var(--classroom-text); background:var(--surface-sunken); font-size:13.5px; font-weight:600; text-decoration:none; transition:border-color .16s ease,background-color .16s ease,transform .16s ease; }
.classroom-learning-resource-list a:hover { border-color:var(--classroom-accent); background:var(--classroom-soft); transform:translateY(-1px); }
.classroom-learning-submission-form { display:grid; gap:14px; margin-top:16px; }
.classroom-learning-submission-form label { display:grid; gap:7px; color:var(--classroom-text); font-size:13.5px; font-weight:600; }
.classroom-learning-submission-form input, .classroom-learning-submission-form textarea { width:100%; border:1px solid var(--border-strong); border-radius:var(--radius-control); background:var(--surface); color:var(--ink); padding:11px 13px; font:inherit; font-size:14.5px; transition:border-color .16s ease,box-shadow .16s ease; }
.classroom-learning-submission-form input:focus, .classroom-learning-submission-form textarea:focus { outline:none; border-color:var(--emerald); box-shadow:var(--focus-halo); }
.classroom-learning-submission-form input { min-height:44px; }
.classroom-learning-watch-form { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:16px; }
.classroom-learning-watch-form p { margin:0; color:var(--muted); font-size:13.5px; line-height:1.5; }
.classroom-learning-playlist { position:sticky; top:20px; min-width:0; padding:20px; }
.classroom-learning-playlist-heading { align-items:center; padding-bottom:15px; border-bottom:1px solid var(--border); }
.classroom-learning-playlist-heading h2 { margin:5px 0 0; color:var(--ink); font-size:18px; letter-spacing:-.02em; }
.classroom-learning-playlist-heading h2 span { color:var(--muted); font-size:12px; font-weight:500; }
.classroom-learning-playlist-toggle { display:grid; width:32px; height:32px; place-items:center; border:1px solid var(--border); border-radius:50%; background:var(--surface); color:var(--classroom-text); font-size:20px; line-height:1; }
.classroom-learning-playlist-toggle:hover, .classroom-learning-playlist-toggle:focus-visible { border-color:var(--classroom-accent); background:var(--classroom-soft); outline:none; }
.classroom-learning-playlist-body { display:grid; gap:10px; margin-top:12px; max-height:calc(100vh - 180px); overflow:auto; }
.classroom-learning-playlist.is-collapsed { width:76px; padding:12px; }
.classroom-learning-playlist.is-collapsed .classroom-learning-playlist-heading { justify-content:center; padding-bottom:0; border-bottom:0; }
.classroom-learning-playlist.is-collapsed .classroom-learning-playlist-heading > div, .classroom-learning-playlist.is-collapsed .classroom-learning-playlist-body { display:none; }
.classroom-learning-module { border-bottom:1px solid var(--border); padding-bottom:8px; }
.classroom-learning-module summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; padding:7px 2px; color:var(--classroom-text); font-size:11px; font-weight:800; letter-spacing:.1em; list-style:none; text-transform:uppercase; }
.classroom-learning-module summary::-webkit-details-marker { display:none; }
.classroom-learning-module summary span { color:var(--muted); font-size:10px; letter-spacing:0; }
.classroom-learning-lesson-list { display:grid; gap:7px; margin-top:7px; }
.classroom-learning-lesson { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; padding:9px 10px; border:1px solid transparent; border-radius:var(--radius-control); background:transparent; color:var(--ink); text-align:left; transition:border-color .16s ease,background-color .16s ease,transform .16s ease; }
.classroom-learning-lesson:hover, .classroom-learning-lesson:focus-visible { border-color:var(--border); background:var(--surface-sunken); outline:none; transform:translateX(1px); }
.classroom-learning-lesson.is-selected { border-color:var(--classroom-accent); background:var(--classroom-soft); box-shadow:0 6px 16px -12px color-mix(in srgb,var(--classroom-accent) 60%,transparent); }
.classroom-learning-lesson.is-locked { cursor:not-allowed; opacity:.55; }
.classroom-learning-lesson-thumb { display:grid; width:52px; aspect-ratio:1/1; place-items:center; overflow:hidden; border-radius:var(--radius-tile); background:var(--surface-sunken); color:var(--classroom-text); font-size:14px; font-weight:700; }
.classroom-learning-lesson-thumb img { width:100%; height:100%; object-fit:cover; }
.classroom-learning-lesson-copy { min-width:0; }
.classroom-learning-lesson-copy strong { display:block; overflow:hidden; color:var(--ink); font-size:13.5px; font-weight:600; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.classroom-learning-lesson-copy small { display:block; margin-top:4px; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.classroom-learning-lesson-state { color:var(--classroom-text); font-size:14px; }
.classroom-learning-empty { display:grid; min-height:240px; margin-top:24px; place-content:center; gap:7px; text-align:center; }
.classroom-learning-empty strong { color:var(--ink); font-size:16px; }
.classroom-learning-empty span { color:var(--muted); font-size:13px; }
@media (max-width:1000px) { .classroom-learning-layout { grid-template-columns:minmax(0,1fr) 300px; } }
@media (max-width:760px) { .classroom-learning-header { align-items:flex-start; flex-direction:column; } .classroom-learning-progress { width:100%; text-align:left; } .classroom-learning-layout { grid-template-columns:1fr; } .classroom-learning-playlist { position:static; order:-1; } .classroom-learning-playlist-body { max-height:none; } .classroom-learning-playlist.is-collapsed { width:auto; } .classroom-learning-playlist.is-collapsed .classroom-learning-playlist-heading { justify-content:space-between; padding-bottom:0; } .classroom-learning-playlist.is-collapsed .classroom-learning-playlist-heading > div { display:block; } .classroom-learning-playlist.is-collapsed .classroom-learning-playlist-body { display:none; } }
@media (max-width:520px) { .classroom-learning-details, .classroom-learning-resources, .classroom-learning-action, .classroom-learning-playlist { padding:16px; } .classroom-learning-player, .classroom-learning-player iframe, .classroom-learning-video { min-height:220px; } .classroom-learning-details-heading { flex-direction:column; } .classroom-learning-watch-form { align-items:stretch; flex-direction:column; } .classroom-learning-watch-form .app-primary-action { width:100%; justify-content:center; } }

/* Visual finish pass: the course workspace is a product surface, not a form
   dump. Keep the navigation readable, the active panel obvious, and empty
   media states intentional. */
.classroom-course-shell { grid-template-columns:minmax(260px,280px) minmax(0,1fr); gap:32px; }
.classroom-course-shell--management { display:block; max-width:980px; margin-inline:auto; }
.classroom-course-shell--management .classroom-course-main { width:100%; }
.classroom-course-page > header, .classroom-course-page > .classroom-course-shell--management { max-width:980px; margin-inline:auto; }
.classroom-course-page .classroom-lesson-accordion:not([open]) > :not(summary) { display:none !important; }
.classroom-course-page .classroom-lesson-accordion[open] > .classroom-lesson-summary { border-bottom-color:var(--border-strong); }
.classroom-course-sidebar { top:20px; padding:20px; border-radius:18px; }
.classroom-course-sidebar-head strong { font-size:18px; letter-spacing:-.02em; }
.classroom-course-sidebar-about p { display:-webkit-box; max-height:8.4em; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:6; }
.classroom-course-sidebar-about ul { max-height:170px; overflow:auto; padding-right:4px; }
.classroom-management-tabs { position:sticky; top:12px; z-index:4; margin-top:0; border-color:color-mix(in srgb,var(--border) 76%,var(--brand)); box-shadow:0 8px 24px rgb(16 34 27 / 6%); }
.classroom-management-tabs button { min-height:42px; padding-inline:15px; }
[data-management-panel][hidden] { display:none !important; }
.classroom-course-main > [data-management-panel]:not([hidden]) { animation:classroom-panel-in .18s ease-out both; }
@keyframes classroom-panel-in { from { opacity:.45; transform:translateY(4px); } to { opacity:1; transform:none; } }
.classroom-learning-header { margin-top:14px; padding-bottom:18px; }
.classroom-learning-header > div:first-child > p:last-child { max-width:560px; display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.classroom-learning-progress-track { width:min(560px,100%); height:4px; margin-top:18px; overflow:hidden; border-radius:999px; background:color-mix(in srgb,var(--border) 70%,transparent); }
.classroom-learning-progress-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--emerald),color-mix(in srgb,var(--emerald) 55%,#fff)); }
.classroom-learning-layout { grid-template-columns:minmax(0,1fr) minmax(360px,390px); gap:24px; margin-top:18px; }
.classroom-learning-player { background:linear-gradient(135deg,color-mix(in srgb,var(--emerald) 30%,#000),color-mix(in srgb,var(--emerald) 22%,#000) 55%,#000); }
.classroom-learning-player-empty, .classroom-learning-external-video { min-height:390px; background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--emerald) 30%,transparent),transparent 42%),linear-gradient(135deg,color-mix(in srgb,var(--emerald) 30%,#000),color-mix(in srgb,var(--emerald) 22%,#000)); color:color-mix(in srgb,var(--emerald-soft) 60%,#fff); }
.classroom-learning-external-video { width:max-content; height:auto; min-height:0; margin:auto; padding:13px 18px; border:1px solid color-mix(in srgb,var(--emerald) 42%,transparent); border-radius:12px; background:var(--emerald); color:#fff; box-shadow:0 8px 20px rgb(0 0 0 / 20%); }
.classroom-learning-external-video:hover, .classroom-learning-external-video:focus-visible { background:color-mix(in srgb,var(--emerald) 82%,#000); color:#fff; outline:3px solid color-mix(in srgb,var(--emerald) 42%,transparent); outline-offset:3px; }
/* Was a hardcoded green-to-indigo (#6e61c9) gradient — brand-kit v4 §1 forbids
   purple/indigo as an action/identity colour here, so this is now emerald-only. */
.classroom-learning-lesson-thumb { background:linear-gradient(135deg,color-mix(in srgb,var(--emerald) 45%,#0b241d),var(--emerald)); color:#fff; }
.classroom-learning-lesson-state { font-size:14px; font-weight:700; }
.classroom-learning-state-icon { display:grid; width:22px; height:22px; place-items:center; border-radius:50%; color:var(--muted); font-size:18px; line-height:1; }
.classroom-learning-state-icon.is-complete { background:var(--emerald-soft); color:var(--emerald-text); font-size:13px; }
.classroom-learning-state-icon.is-locked { background:var(--surface-sunken); color:var(--muted); font-size:14px; }
@media (max-width:900px) { .classroom-course-shell { grid-template-columns:1fr; gap:20px; } .classroom-course-sidebar { position:static; } .classroom-management-tabs { position:static; overflow-x:auto; flex-wrap:nowrap; } }
@media (max-width:760px) { .classroom-learning-layout { grid-template-columns:1fr; } .classroom-learning-player-empty, .classroom-learning-external-video { min-height:240px; } }

/* Course workspace: consistent alignment and compact lesson controls. */
.classroom-course-page { max-width:1044px; margin-inline:auto; min-width:0; }
.classroom-course-page .classroom-lesson-summary { padding:16px 20px; flex-direction:row; align-items:center; gap:12px; }
.classroom-lesson-number { display:grid; flex:0 0 32px; place-items:center; margin-right:8px; border-radius:var(--radius-tile); background:var(--classroom-soft); color:var(--classroom-text); font-size:13px; font-weight:700; aspect-ratio:1/1; text-align:center; }
.classroom-lesson-title { flex:1; min-width:0; overflow-wrap:anywhere; font-size:16px; font-weight:650; color:var(--ink); }
.classroom-add-lesson > summary { min-height:44px; display:flex; align-items:center; color:var(--brand); }
.classroom-management-tabs { position:static; box-shadow:none; }
.classroom-management-tabs button { flex-shrink:0; min-height:44px; }
.classroom-learning-layout { grid-template-columns:minmax(0,1fr) minmax(280px,32%); }
.classroom-learning-page.playlist-collapsed .classroom-learning-layout { grid-template-columns:minmax(0,1fr) 76px; }
.classroom-learning-player { min-height:0; position:relative; }
.classroom-learning-player iframe, .classroom-learning-video { position:absolute; inset:0; min-height:0; }
.classroom-learning-player-empty { min-height:0; height:100%; }
.classroom-learning-external-video { position:absolute; inset:0; width:fit-content; height:fit-content; min-height:44px; max-width:90%; }
.classroom-learning-description { color:var(--ink); }
.classroom-learning-header > div:first-child { min-width:0; flex:1; }
.classroom-learning-breadcrumbs { flex-wrap:wrap; overflow-wrap:anywhere; }
.classroom-learning-details h2 { overflow-wrap:anywhere; }
@media (max-width:900px) {
 .classroom-learning-layout, .classroom-learning-page.playlist-collapsed .classroom-learning-layout { grid-template-columns:minmax(0,1fr); }
 .classroom-learning-playlist { position:static; order:-1; }
 .classroom-learning-playlist-body { max-height:320px; }
 .classroom-learning-playlist.is-collapsed { width:auto; }
 .classroom-learning-playlist.is-collapsed .classroom-learning-playlist-heading { justify-content:space-between; }
 .classroom-learning-playlist.is-collapsed .classroom-learning-playlist-heading > div { display:block; }
}
@media (max-width:520px) {
 .classroom-learning-header h1 { font-size:26px; line-height:1.2; }
 .classroom-learning-player, .classroom-learning-player iframe, .classroom-learning-video { min-height:0; }
 .classroom-learning-submission-form input, .classroom-learning-submission-form textarea { font-size:16px; min-width:0; }
 .classroom-learning-section-heading { flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) { .classroom-course-main > [data-management-panel]:not([hidden]) { animation:none; } }

/* Course composition: all content shares one full-width alignment axis. */
.app-page.classroom-course-page, .app-page.classroom-learning-page { display:block; width:100%; padding:24px; }
.classroom-course-page > header, .classroom-course-page > .classroom-course-shell--management { width:100%; max-width:none; margin-inline:0; }
.classroom-course-page > header { margin-top:20px; padding-bottom:24px; }
.classroom-course-shell--management { margin-top:24px; }
.classroom-course-page .app-panel, .classroom-learning-page .app-panel { border:1px solid var(--border); border-radius:12px; box-shadow:none; }
.classroom-course-page .app-panel::before, .classroom-learning-page .app-panel::before { display:none; }
.classroom-course-page .classroom-management-tabs { border:0; border-bottom:1px solid var(--border); border-radius:0; padding:0; gap:16px; background:transparent; margin-bottom:24px; }
.classroom-course-page .classroom-management-tabs button { border:0; border-radius:0; padding:12px 4px; border-bottom:2px solid transparent; box-shadow:none; font-size:14px; background:transparent; }
.classroom-course-page .classroom-management-tabs button.is-active { border-bottom-color:var(--emerald); color:var(--emerald-text); }
.classroom-course-page .classroom-lesson-summary { border:0; border-radius:0; background:transparent; }
.classroom-course-page .classroom-lesson-summary::before { display:none; }
.classroom-course-page .classroom-lesson-summary::after { border:0; background:transparent; }
.classroom-course-page .classroom-lesson-number { margin-right:12px !important; }
@media (max-width:767px) {
  .classroom-overview-page > section.grid { min-width:0; width:100%; }
  .classroom-overview-page > section.grid > * { min-width:0; max-width:100%; }
  .classroom-overview-page .app-panel { min-width:0; width:100%; max-width:100%; }
  .classroom-overview-page form { grid-template-columns:1fr !important; min-width:0; }
  .classroom-overview-page form button { width:100%; }
}
.classroom-course-page .classroom-add-lesson { border:0; background:transparent; padding:0; }
.classroom-course-page .classroom-add-lesson > summary { padding:0; border:0; border-radius:0; background:transparent; }
.classroom-course-page #course-lessons { margin-top:20px; }
.classroom-learning-page { --classroom-accent:var(--emerald); --classroom-soft:var(--emerald-soft); --classroom-text:var(--emerald-text); }
@media(max-width:600px) { .app-page.classroom-course-page, .app-page.classroom-learning-page { padding:16px 0; } .classroom-course-page .classroom-management-tabs { gap:12px; } }

/* Search is a single command surface: one boundary, one input rhythm, and a
   clear focus treatment instead of nested borders fighting each other. */
.search-page .search-command {
  padding:16px 20px !important;
  border:1px solid var(--border) !important;
  border-top:3px solid var(--page-accent,var(--emerald)) !important;
  border-radius:var(--radius-panel) !important;
  background:var(--surface) !important;
}
.search-page .search-command > div { align-items:stretch; }
.search-page .search-command input {
  min-height:48px !important;
  border-color:var(--border-strong) !important;
  border-radius:var(--radius-control) !important;
  background:var(--surface) !important;
}
.search-page .search-command input:focus { border-color:var(--emerald) !important; box-shadow:var(--focus-halo) !important; }
.search-page .search-result-row { min-height:72px; border-bottom:1px solid var(--border); }
.search-page .search-result-row:last-child { border-bottom:0; }
.search-page .search-result-row:focus-visible { position:relative; z-index:1; outline:3px solid color-mix(in srgb,var(--emerald) 34%,transparent); outline-offset:-3px; background:var(--emerald-soft); }
@media (max-width:767px) {
  .search-page .search-command { padding:14px !important; border-radius:20px !important; }
  .search-page .search-command button { width:100%; }
  .search-page .search-result-row { align-items:flex-start; padding:16px !important; }
}

/* Classroom video review — timeline feedback panel (teacher review desk and
   the student's own assignment view share this component). Emerald stays the
   only action colour; rose/honey/emerald tints carry note state only. */
.video-review { display:grid; gap:18px; align-items:start; }
@media (min-width:1100px) { .video-review { grid-template-columns:minmax(0,1.55fr) minmax(320px,.95fr); } }
.video-review-stage { min-width:0; }
.video-review-player { display:block; width:100%; max-height:62vh; border-radius:var(--radius-card); background:#05100b; aspect-ratio:16/9; object-fit:contain; }
.video-review-empty { display:grid; place-items:center; padding:36px 20px; border:1px dashed var(--border-strong); border-radius:var(--radius-card); background:var(--surface-sunken); color:var(--muted); font-size:13.5px; text-align:center; }
.video-review-empty-title { margin-bottom:4px; color:var(--ink); font-size:14.5px; font-weight:600; }
.video-review-transport { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.video-review-play { display:inline-flex; min-width:44px; min-height:44px; align-items:center; justify-content:center; border:0; border-radius:var(--radius-control); background:var(--emerald); color:var(--on-emerald); font-size:13px; }
.video-review-play:hover { background:var(--emerald-strong); }
.video-review-step { display:inline-flex; min-width:44px; min-height:44px; align-items:center; justify-content:center; padding:0 12px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface); color:var(--ink); font-size:13px; font-weight:600; }
.video-review-step:hover { border-color:var(--emerald); background:var(--emerald-soft); color:var(--emerald-text); }
.video-review-clock { margin-left:auto; color:var(--muted); font-family:var(--font-mono); font-size:13px; font-variant-numeric:tabular-nums; }
.video-review-timeline { position:relative; height:34px; margin-top:10px; border:1px solid var(--border); border-radius:999px; background:var(--surface-sunken); cursor:pointer; }
.video-review-progress { position:absolute; top:0; bottom:0; left:0; border-radius:999px; background:color-mix(in srgb,var(--emerald) 22%,transparent); pointer-events:none; }
.video-review-marker { position:absolute; top:50%; width:16px; height:16px; margin-left:-8px; transform:translateY(-50%); border:2px solid var(--surface); border-radius:50%; background:var(--honey); transition:transform var(--motion-fast) var(--ease); }
.video-review-marker:hover, .video-review-marker:focus-visible { transform:translateY(-50%) scale(1.35); }
.video-review-marker.is-resolved { background:var(--emerald); }
.video-review-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.video-review-notes { display:flex; min-width:0; flex-direction:column; gap:14px; padding:18px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.video-review-notes-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.video-review-notes-header h3 { margin-top:2px; font-size:17px; font-weight:600; }
.video-review-composer { display:grid; gap:10px; padding:14px; border:1px solid var(--border); border-radius:var(--radius-tile); background:var(--surface-sunken); }
.video-review-composer textarea { width:100%; border:1px solid var(--border-control); border-radius:var(--radius-tile); background:var(--surface); color:var(--ink); font-size:13.5px; line-height:1.5; resize:vertical; }
.video-review-pin { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.video-review-pin-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; background:var(--honey-soft); color:var(--honey-text); font-size:12.5px; font-weight:600; }
.video-review-pin-chip button { min-width:22px; min-height:22px; border:0; background:transparent; color:inherit; font-size:15px; line-height:1; }
.video-review-note-list { display:grid; gap:10px; max-height:520px; overflow-y:auto; }
.video-review-note { padding:12px 14px; border:1px solid var(--border); border-left:3px solid var(--honey); border-radius:var(--radius-tile); background:var(--surface); }
.video-review-note.is-resolved { border-left-color:var(--emerald); opacity:.72; }
.video-review-note-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.video-review-note-head time { margin-left:auto; color:var(--muted); font-size:12px; }
.video-review-note-author { color:var(--ink); font-size:13px; font-weight:600; }
.video-review-stamp { display:inline-flex; min-height:26px; align-items:center; padding:0 9px; border:1px solid var(--emerald); border-radius:999px; background:var(--emerald-soft); color:var(--emerald-text); font-family:var(--font-mono); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.video-review-stamp:hover { background:var(--emerald); color:var(--on-emerald); }
.video-review-stamp.is-static { border-color:var(--border); background:var(--surface-sunken); color:var(--muted); font-family:var(--font-sans); }
.video-review-note-body { margin-top:8px; color:var(--ink); font-size:13.5px; line-height:1.55; white-space:pre-line; }
.video-review-note-foot { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:10px; }
.video-review-note-empty { padding:18px; border:1px dashed var(--border-strong); border-radius:var(--radius-tile); color:var(--muted); font-size:13px; text-align:center; }
@media (max-width:767px) {
  .video-review-player { max-height:46vh; }
  .video-review-clock { width:100%; margin-left:0; }
  .video-review-note-list { max-height:none; }
}
.classroom-learning-assignment-link { display:inline-flex; margin-top:12px; }

/* Classroom course overview — hero, launch-readiness ring and course spine.
   Replaces a flat 7-card checklist: the ring shows progress at a glance, the
   list shows only what is still OUTSTANDING, and the spine maps the actual
   path a student walks. Forest focal panel follows the brand kit. */
.course-hero { position:relative; overflow:hidden; padding:26px 24px; border-bottom:1px solid var(--border); background:linear-gradient(140deg,#123f32 0%,#0d2f26 55%,#0a241d 100%); color:#eef7f2; }
.course-hero::before { content:''; position:absolute; inset:0; background-image:var(--course-cover,none); background-size:cover; background-position:center; opacity:.16; }
.course-hero::after { content:''; position:absolute; inset:auto -6rem -8rem auto; width:17rem; height:17rem; border-radius:50%; background:rgb(93 211 160 / .18); filter:blur(26px); }
.course-hero-body, .course-hero-metrics { position:relative; z-index:1; }
.course-hero-eyebrow { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0; color:#a9ccbd; font-size:11.5px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; }
.course-hero-state { padding:3px 10px; border:1px solid rgb(255 255 255 / .22); border-radius:999px; letter-spacing:.08em; }
.course-hero-state.is-live { border-color:transparent; background:var(--emerald); color:#06241a; }
.course-hero h2 { margin:12px 0 0; font-size:clamp(22px,3.2vw,30px); font-weight:600; letter-spacing:-.03em; line-height:1.14; }
.course-hero-meta { margin:8px 0 0; color:#a9ccbd; font-size:13.5px; }
.course-hero-metrics { display:grid; gap:10px; margin:22px 0 0; grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (min-width:860px) { .course-hero-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.course-hero-metrics > div { padding:12px 14px; border:1px solid rgb(255 255 255 / .14); border-radius:14px; background:rgb(255 255 255 / .07); }
.course-hero-metrics > div.needs-you { border-color:rgb(231 183 95 / .5); background:rgb(231 183 95 / .14); }
.course-hero-metrics dt { color:#a9ccbd; font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.course-hero-metrics dd { margin:4px 0 0; font-size:24px; font-weight:600; letter-spacing:-.02em; }

.course-readiness { display:grid; gap:22px; padding:24px; border-bottom:1px solid var(--border); }
@media (min-width:780px) { .course-readiness { grid-template-columns:auto minmax(0,1fr); align-items:center; } }
/* The ring held three children, one of them absolutely positioned. As a grid
   that left the percentage and its caption in two separate rows, each centred
   in its own half, so the number floated high and the caption sat on the ring.
   A single centred column keeps the pair as one optically centred block. */
.course-ring { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:150px; height:150px; margin-inline:auto; text-align:center; }
.course-ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.course-ring circle { fill:none; stroke-width:9; stroke-linecap:round; }
.course-ring-track { stroke:var(--surface-sunken); }
.course-ring-value { stroke:var(--emerald); transition:stroke-dashoffset .6s var(--ease); }
.course-ring strong { font-size:30px; font-weight:600; letter-spacing:-.03em; line-height:1; }
.course-ring span { margin-top:4px; color:var(--muted); font-size:12px; }
.course-readiness-copy .app-section-eyebrow { margin:0 0 8px; }
.course-readiness-copy h3 { margin:0; font-size:18px; font-weight:600; letter-spacing:-.02em; }
.course-todo { display:grid; gap:9px; margin:14px 0 0; padding:0; list-style:none; }
.course-todo li { padding:11px 14px; border:1px solid var(--border); border-left:3px solid var(--honey); border-radius:var(--radius-tile); background:var(--surface-sunken); }
.course-todo strong { display:block; font-size:14px; font-weight:600; }
.course-todo span { display:block; margin-top:3px; color:var(--muted); font-size:12.5px; line-height:1.5; }
.course-done-summary { margin:14px 0 0; color:var(--muted); font-size:12.5px; line-height:1.6; }
.course-done-summary span { color:var(--emerald-text); font-weight:700; }

.course-spine { padding:24px; border-bottom:1px solid var(--border); }
.course-spine-head h3 { margin:0; font-size:18px; font-weight:600; letter-spacing:-.02em; }
.course-spine-head p { margin:6px 0 0; max-width:62ch; color:var(--muted); font-size:13px; line-height:1.6; }
.course-spine-list { display:grid; gap:0; margin:18px 0 0; padding:0; list-style:none; }
.course-spine-step { position:relative; display:flex; align-items:center; gap:14px; padding:14px 0 14px 4px; }
.course-spine-step::before { content:''; position:absolute; top:40px; bottom:-14px; left:22px; width:2px; background:var(--border); }
.course-spine-step:last-child::before { display:none; }
.course-spine-dot { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border:1px solid var(--lilac); border-radius:12px; background:var(--lilac-soft); color:var(--lilac-text); font-family:var(--font-mono); font-size:12.5px; font-weight:600; }
.course-spine-copy { min-width:0; flex:1; }
.course-spine-copy strong { display:block; font-size:14.5px; font-weight:600; }
.course-spine-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.course-spine-chips b { padding:2px 9px; border-radius:999px; background:var(--surface-sunken); color:var(--muted); font-size:11.5px; font-weight:600; }
.course-spine-chips b.ok { background:var(--emerald-soft); color:var(--emerald-text); }
.course-spine-chips b.warn { background:var(--honey-soft); color:var(--honey-text); }
.course-spine-chips b.task { background:var(--lilac-soft); color:var(--lilac-text); }
.course-spine-score { flex:0 0 auto; color:var(--ink); font-size:17px; font-weight:600; text-align:right; }
.course-spine-score small { display:block; color:var(--muted); font-size:11px; font-weight:400; }
@media (max-width:620px) {
  .course-spine-step { align-items:flex-start; }
  .course-spine-score { font-size:15px; }
}

/* ---------------------------------------------------------------------------
   Contrast corrections
   The role hero is a dark focal panel in BOTH themes, but its eyebrow used the
   `--*-soft` tokens, which are light in the light theme and dark in the dark
   theme. In dark mode that put near-black text on a dark panel (measured 1.26:1
   against a 4.5:1 requirement) on every role dashboard. Tint from the hue
   instead so the result is light in both themes.
   --------------------------------------------------------------------------- */
.role-hero-teacher .role-hero-copy > p { color:color-mix(in srgb,var(--lilac) 26%,#fff); }
.role-hero-student .role-hero-copy > p { color:color-mix(in srgb,var(--emerald) 28%,#fff); }
.role-hero-employee .role-hero-copy > p { color:color-mix(in srgb,var(--sky) 28%,#fff); }
.role-hero-client .role-hero-copy > p { color:color-mix(in srgb,var(--emerald) 28%,#fff); }
.role-hero-admin .role-hero-copy > p { color:color-mix(in srgb,var(--honey) 32%,#fff); }

/* Sidebar navigation is primary wayfinding, but its labels sat on `--muted`
   (5.31:1 in light) which reads as washed out next to the content. Lift them
   most of the way to `--ink` in both themes; the active item keeps its own
   colour via [data-current]. */
/* Flux's own sidebar colours are set with !important, so the correction has to
   match that weight to take effect. Hover and the active item keep their
   existing treatment. */
[data-flux-sidebar-item]:not([data-current]) {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted)) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Course content (student learning view)
   Layout follows the edtech reference the owner picked: a narrow left rail
   holding "Course content" + progress + the module accordion, and a wide
   stage on the right with the video first and the lesson tabs under it.
   Brand kit still rules the palette — emerald is the only action colour, so
   the reference's violet accents become emerald here.
   ───────────────────────────────────────────────────────────────────────── */
.lms-page { max-width:1320px; }
.lms-grid { display:grid; grid-template-columns:minmax(300px,364px) minmax(0,1fr); gap:22px; align-items:start; margin-top:16px; }

.lms-rail { position:sticky; top:16px; padding:20px; border-radius:18px; }
.lms-rail-head { padding-bottom:16px; border-bottom:1px solid var(--border); }
.lms-rail-head h1 { margin:0; color:var(--ink); font-size:21px; font-weight:600; letter-spacing:-.025em; line-height:1.2; }
.lms-rail-head p { margin:7px 0 0; color:var(--muted); font-size:12.5px; line-height:1.55; }

.lms-progress-card { margin-top:16px; padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:var(--surface-sunken); }
.lms-progress-top { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.lms-progress-label { color:var(--muted); font-size:12.5px; font-weight:500; }
.lms-progress-top strong { color:var(--ink); font-size:12.5px; font-weight:600; text-align:right; }
.lms-progress-track { height:6px; margin-top:11px; overflow:hidden; border-radius:999px; background:color-mix(in srgb,var(--border-strong) 32%,transparent); }
.lms-progress-track span { display:block; height:100%; min-width:6px; border-radius:inherit; background:linear-gradient(90deg,var(--emerald),color-mix(in srgb,var(--emerald) 62%,#fff)); transition:width .3s ease; }
.lms-progress-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:9px; color:var(--muted); font-size:12px; }
.lms-progress-cheer { color:var(--emerald-text); font-weight:600; }

.lms-rail-tabs { display:flex; gap:22px; margin-top:16px; border-bottom:1px solid var(--border); }
.lms-rail-tabs button { position:relative; min-height:40px; padding:0 0 9px; border:0; background:none; color:var(--muted); font:inherit; font-size:13.5px; font-weight:500; cursor:pointer; }
.lms-rail-tabs button::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:2px; border-radius:2px; background:transparent; }
.lms-rail-tabs button:hover { color:var(--ink); }
.lms-rail-tabs button.is-active { color:var(--ink); font-weight:600; }
.lms-rail-tabs button.is-active::after { background:var(--emerald); }
.lms-rail-tabs button:focus-visible { outline:2px solid var(--emerald); outline-offset:3px; border-radius:4px; }

.lms-rail-body { margin-top:14px; max-height:calc(100vh - 330px); overflow-y:auto; overscroll-behavior:contain; padding-right:3px; }
.lms-rail-body::-webkit-scrollbar { width:6px; }
.lms-rail-body::-webkit-scrollbar-thumb { border-radius:999px; background:color-mix(in srgb,var(--border-strong) 36%,transparent); }

.lms-module { margin-bottom:10px; border:1px solid var(--border); border-radius:14px; background:var(--surface); overflow:hidden; }
.lms-module[open] { border-color:color-mix(in srgb,var(--emerald) 34%,var(--border)); }
.lms-page .lms-module > summary { display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; align-items:center; gap:10px; min-height:0; padding:13px 14px; color:var(--ink); cursor:pointer; list-style:none; }
.lms-page .lms-module > summary::after, .lms-page .lms-module[open] > summary::after { content:none; display:none; }
.lms-page .lms-module > summary::-webkit-details-marker { display:none; }
.lms-page .lms-module > summary:hover { background:var(--surface-sunken); }
.lms-page .lms-module > summary:focus-visible { outline:2px solid var(--emerald); outline-offset:-2px; }
.lms-module-chevron { display:grid; width:24px; height:24px; place-items:center; border:1px solid var(--border); border-radius:50%; color:var(--muted); transition:transform .18s ease,border-color .18s ease,color .18s ease; }
.lms-module-chevron svg { width:14px; height:14px; }
.lms-module[open] .lms-module-chevron { transform:rotate(180deg); border-color:var(--emerald); color:var(--emerald-text); }
.lms-module-index { color:var(--muted); font-size:13.5px; font-variant-numeric:tabular-nums; font-weight:600; }
.lms-module-title { min-width:0; overflow:hidden; color:var(--ink); font-size:13.5px; font-weight:600; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.lms-module-count { min-width:24px; padding:2px 7px; border-radius:999px; background:var(--surface-sunken); color:var(--muted); font-size:11.5px; font-weight:600; text-align:center; }
.lms-module-count.is-done { background:var(--emerald-soft); color:var(--emerald-text); }
.lms-module-list { padding:2px 8px 10px; border-top:1px solid var(--border); }

.lms-item { position:relative; display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:11px; width:100%; margin-top:4px; padding:9px 10px 9px 11px; border:0; border-radius:10px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; transition:background-color .16s ease; }
.lms-item::before { content:""; position:absolute; top:8px; bottom:8px; left:0; width:3px; border-radius:999px; background:transparent; }
.lms-item:hover:not(.is-locked) { background:var(--surface-sunken); }
.lms-item:focus-visible { outline:2px solid var(--emerald); outline-offset:-2px; }
.lms-item.is-selected { background:var(--emerald-soft); }
.lms-item.is-selected::before { background:var(--emerald); }
.lms-item.is-locked { cursor:not-allowed; opacity:.55; }
.lms-item-icon { display:grid; width:30px; height:30px; place-items:center; border:1px solid var(--border); border-radius:50%; background:var(--surface); color:var(--muted); }
.lms-item-icon svg { width:15px; height:15px; }
.lms-item.is-selected .lms-item-icon { border-color:var(--emerald); background:var(--surface); color:var(--emerald-text); }
.lms-item.is-done .lms-item-icon { border-color:color-mix(in srgb,var(--emerald) 44%,var(--border)); color:var(--emerald-text); }
.lms-item-copy { min-width:0; }
.lms-item-copy strong { display:-webkit-box; overflow:hidden; color:var(--ink); font-size:13px; font-weight:500; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.lms-item.is-selected .lms-item-copy strong { font-weight:600; }
.lms-item-copy small { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:11.5px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.lms-item-done { display:grid; width:19px; height:19px; place-items:center; border-radius:50%; background:var(--emerald-soft); color:var(--emerald-text); }
.lms-item-done svg { width:12px; height:12px; }

.lms-progress-list { display:grid; gap:2px; margin:0; padding:0; list-style:none; }
.lms-progress-list li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:11px 4px; border-bottom:1px solid var(--border); }
.lms-progress-list li:last-child { border-bottom:0; }
.lms-progress-step { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; font-weight:600; }
.lms-progress-name { min-width:0; color:var(--ink); font-size:13px; line-height:1.35; }
.lms-progress-name small { display:block; margin-top:3px; color:var(--muted); font-size:11.5px; }
.lms-state { padding:3px 9px; border-radius:999px; font-size:11px; font-weight:600; white-space:nowrap; }
.lms-state--done { background:var(--emerald-soft); color:var(--emerald-text); }
.lms-state--wait { background:var(--honey-soft); color:var(--honey-text); }
.lms-state--warn { background:var(--rose-soft); color:var(--rose-text); }
.lms-state--open { background:var(--surface-sunken); color:var(--ink); }
.lms-state--idle { background:var(--surface-sunken); color:var(--muted); }

.lms-about { display:grid; gap:0; margin:0; }
.lms-about > div { display:flex; align-items:baseline; justify-content:space-between; gap:14px; padding:10px 4px; border-bottom:1px solid var(--border); }
.lms-about dt { color:var(--muted); font-size:12.5px; }
.lms-about dd { margin:0; color:var(--ink); font-size:13px; font-weight:500; text-align:right; }
.lms-about-copy { margin:14px 4px 0; color:var(--muted); font-size:13px; line-height:1.6; }

.lms-main { display:grid; gap:14px; min-width:0; }
.lms-stage { overflow:hidden; padding:0; border-radius:18px; }
.lms-stage .classroom-learning-player { min-height:0; aspect-ratio:16/9; }
.lms-stage .classroom-learning-player iframe, .lms-stage .classroom-learning-video { min-height:0; height:100%; }
.lms-stage .classroom-learning-player-empty { min-height:0; height:100%; }
.lms-stage-caption { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:0 2px; }
.lms-eyebrow { margin:0; color:var(--emerald-text); font-size:10.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.lms-stage-caption h2 { margin:6px 0 0; color:var(--ink); font-size:23px; font-weight:600; letter-spacing:-.03em; line-height:1.2; }
.lms-stage-meta { color:var(--muted); font-size:12.5px; text-align:right; }

.lms-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:0 2px; }
.lms-tabs button { min-height:38px; padding:0 15px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--muted); font:inherit; font-size:13px; font-weight:500; cursor:pointer; transition:background-color .16s ease,color .16s ease,border-color .16s ease; }
.lms-tabs button:hover { border-color:var(--border-strong); color:var(--ink); }
.lms-tabs button.is-active { border-color:var(--emerald); background:var(--emerald); color:#fff; font-weight:600; }
.lms-tabs button:focus-visible { outline:2px solid var(--emerald); outline-offset:2px; }

.lms-panel { padding:22px 24px; border-radius:18px; }
.lms-panel[hidden] { display:none !important; }
.lms-panel-title { margin:0 0 14px; color:var(--ink); font-size:16px; font-weight:600; letter-spacing:-.015em; }
.lms-panel .classroom-learning-description { margin:0; }
.lms-panel .classroom-learning-resource-list { margin-top:0; }

@media (max-width:1060px) {
  .lms-grid { grid-template-columns:1fr; }
  .lms-rail { position:static; order:2; }
  .lms-rail-body { max-height:none; }
  .lms-main { order:1; }
}
@media (max-width:560px) {
  .lms-rail, .lms-panel { padding:16px; }
  .lms-rail-tabs { gap:16px; }
  .lms-stage-caption { align-items:flex-start; flex-direction:column; gap:8px; }
  .lms-stage-meta { text-align:left; }
  .lms-tabs { overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
  .lms-tabs button { white-space:nowrap; }
}
.lms-page .classroom-learning-breadcrumbs { flex-wrap:wrap; row-gap:2px; }
.lms-page .classroom-learning-breadcrumbs > span:last-child { min-width:0; overflow-wrap:anywhere; }
.lms-tabs { scrollbar-width:none; }
.lms-tabs::-webkit-scrollbar { display:none; }

/* Course cards sit in a grid, so their footers line up regardless of how long
   a title or description runs. The level eyebrow was lilac — brand kit v4 §1
   keeps purple off identity text, so it reads as neutral metadata instead. */
.classroom-overview-page .classroom-course-level { color:var(--muted); }
.classroom-library-empty { display:grid; gap:7px; padding:34px 28px; text-align:center; }
.classroom-library-empty strong { color:var(--ink); font-size:16px; font-weight:600; }
.classroom-library-empty span { margin-inline:auto; max-width:48ch; color:var(--muted); font-size:13.5px; line-height:1.6; }

/* Classroom identity accent: the learning page moved to emerald long ago, but
   the teacher course page and the progress page were still lilac, so the same
   module looked like two products and purple was doing identity work the brand
   kit reserves for emerald. One token swap fixes the eyebrow, the lesson number
   chips, the file-picker buttons and every accented link on those pages. */
.classroom-course-page { --classroom-accent:var(--emerald); --classroom-soft:var(--emerald-soft); --classroom-text:var(--emerald-text); }
.classroom-course-page [type="file"]::file-selector-button { background:var(--emerald-soft); color:var(--emerald-text); }
.classroom-course-page [type="file"]::file-selector-button:hover { background:var(--emerald); color:#fff; }
.classroom-progress-page { --page-accent:var(--emerald); --page-soft:var(--emerald-soft); --page-text:var(--emerald-text); }
.classroom-progress-page > header > p:first-child { color:var(--emerald-text) !important; }

/* Lesson rows carried a number and a title and nothing else, so a teacher had
   to open every step to see whether it had a video, an assignment or work
   waiting. The summary now states that up front. */
.classroom-course-page .classroom-lesson-summary { align-items:flex-start; }
.classroom-lesson-head { display:grid; flex:1; min-width:0; gap:7px; }
.classroom-lesson-head .classroom-lesson-title { flex:none; }
.classroom-lesson-chips { display:flex; flex-wrap:wrap; gap:6px; }
.classroom-lesson-chip { display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border:1px solid var(--border); border-radius:var(--radius-chip); background:var(--surface); color:var(--muted); font-size:11px; font-weight:600; white-space:nowrap; }
.classroom-lesson-chip--on { border-color:color-mix(in srgb,var(--emerald) 40%,var(--border)); background:var(--emerald-soft); color:var(--emerald-text); }
.classroom-lesson-chip--warn { border-color:color-mix(in srgb,var(--honey) 46%,var(--border)); background:var(--honey-soft); color:var(--honey-text); }
.classroom-lesson-chip--info { border-color:color-mix(in srgb,var(--sky) 42%,var(--border)); background:var(--sky-soft); color:var(--sky-text); }
.classroom-course-page .classroom-lesson-number { align-self:center; }
.classroom-course-page .classroom-lesson-summary::after { align-self:center; }

/* Native checkboxes, radios and range inputs were painting themselves in the
   OS blue. Brand kit v4 §1: emerald is the only action colour, so claim the
   control accent once rather than per page. */
input[type="checkbox"], input[type="radio"], input[type="range"], progress {
  accent-color: var(--emerald);
}

/* Upload progress panel (public/js/upload-progress.js): a circular gauge with
   the percentage inside it, beside the file name, live transfer speed and
   size. Spans whatever grid or flow the host form uses. */
.upload-progress { grid-column:1/-1; display:grid; gap:10px; width:100%; margin:4px 0 2px; padding:14px 16px; border:1px solid color-mix(in srgb,var(--emerald) 34%,var(--border)); border-radius:14px; background:var(--surface-sunken); }
.upload-progress-main { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; }
.upload-ring { position:relative; display:flex; width:64px; height:64px; flex:0 0 auto; align-items:center; justify-content:center; }
.upload-ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.upload-ring circle { fill:none; stroke-width:6; stroke-linecap:round; }
.upload-ring-track { stroke:color-mix(in srgb,var(--border-strong) 30%,transparent); }
.upload-ring-value { stroke:var(--emerald); transition:stroke-dashoffset .2s linear; }
.upload-ring strong { color:var(--ink); font-size:13.5px; font-variant-numeric:tabular-nums; font-weight:600; letter-spacing:-.02em; }
.upload-progress-copy { display:grid; gap:3px; min-width:0; }
.upload-progress-name { overflow:hidden; color:var(--ink); font-size:13.5px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.upload-progress-stats { color:var(--muted); font-size:12.5px; font-variant-numeric:tabular-nums; }
.upload-progress-state { color:var(--emerald-text); font-size:12px; font-weight:600; }
.upload-progress-cancel { min-height:32px; align-self:center; padding:0 12px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--muted); font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.upload-progress-cancel:hover { border-color:var(--border-strong); color:var(--ink); }
.upload-progress-cancel:focus-visible { outline:2px solid var(--emerald); outline-offset:2px; }
.upload-progress-error { margin:0; color:var(--rose-text); font-size:12.5px; line-height:1.5; }
/* Bytes are across but the server is still writing them: keep the ring alive
   so a long save does not read as a frozen page. */
.upload-progress.is-processing .upload-ring-value { animation:upload-ring-pulse 1.2s ease-in-out infinite; }
.upload-progress.is-failed { border-color:color-mix(in srgb,var(--rose) 50%,var(--border)); background:var(--rose-soft); }
.upload-progress.is-failed .upload-ring-value { stroke:var(--rose); animation:none; }
.upload-progress.is-failed .upload-progress-state { color:var(--rose-text); }
@keyframes upload-ring-pulse { 0%,100% { opacity:1; } 50% { opacity:.45; } }
@media (max-width:520px) {
  .upload-progress-main { grid-template-columns:auto minmax(0,1fr); }
  .upload-progress-cancel { grid-column:1/-1; justify-self:start; }
}
@media (prefers-reduced-motion: reduce) {
  .upload-ring-value { transition:none; }
  .upload-progress.is-processing .upload-ring-value { animation:none; }
}

/* File inputs, everywhere in the workspace.
   The browser lays the "Choose file" button out on the text baseline, so inside
   a 44–48px control it rode up against the top border instead of sitting in the
   middle. Making the input a flex row centres the button and the file name as a
   pair, at any control height. The button also picks up the brand action colour
   here — it was lilac, and brand kit v4 §1 keeps purple off action surfaces. */
input[type="file"] {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-height: 48px;
  padding-block: 7px !important;
}
input[type="file"]::file-selector-button {
  flex: 0 0 auto;
  min-height: 32px;
  margin: 0 2px 0 0;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--emerald-soft);
  color: var(--emerald-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
input[type="file"]::file-selector-button:hover {
  background: var(--emerald);
  color: #fff;
}
.zam-file-input { min-height: 48px; line-height: 1.4; }

/* An input with an icon layered over its left edge needs room for it. The
   shared `.app-page input:not(…)` padding rule outranks Tailwind's pl-* utility
   (four compound parts versus one class), so the icon was landing on top of the
   placeholder. Mark those inputs with data-leading-icon and reserve the gutter
   here, where the rule is specific enough to win. */
input[data-leading-icon],
.app-page input[data-leading-icon] { padding-left: 46px !important; }
@media (max-width: 480px) {
  .app-page input[data-leading-icon] { padding-left: 42px !important; }
}

/* The search box carried the panel accent stripe on top AND an emerald focus
   ring on the field, so a focused search read as two nested green outlines.
   The field's own ring is the signal; the stripe just competed with it. */
.search-page .search-command { border-top:1px solid var(--border) !important; }
.search-page .search-command:focus-within { border-color:color-mix(in srgb,var(--emerald) 34%,var(--border)) !important; }

/* The course hero is always a dark forest panel, in both themes. Its heading
   was inheriting the page's --ink, which is dark in light mode — so the course
   title disappeared into the panel. Pin the hero's text to its own palette,
   the same way the role heroes do. */
.course-hero h2,
.app-page .course-hero h2,
.classroom-course-page .course-hero h2 { color:#eef7f2 !important; }
.course-hero .course-hero-meta,
.app-page .course-hero .course-hero-meta { color:#a9ccbd !important; }
.course-hero .course-hero-metrics dd,
.app-page .course-hero .course-hero-metrics dd { color:#eef7f2 !important; }
.course-hero .course-hero-metrics dt,
.app-page .course-hero .course-hero-metrics dt { color:#a9ccbd !important; }
.course-hero .course-hero-eyebrow > span:first-child { color:#a9ccbd !important; }
.course-hero .course-hero-state { color:#eef7f2 !important; }
.course-hero .course-hero-state.is-live { color:#06241a !important; }

/* With a long launch checklist beside it, centring pushed the ring halfway down
   the panel, far from the heading it scores. Align it to the top instead. */
@media (min-width:780px) { .course-readiness { align-items:start; } }

/* Instant staging: the video is already on the server, waiting for the form
   to be saved. Read as settled, not in-flight. */
.upload-progress.is-done { border-color:color-mix(in srgb,var(--emerald) 44%,var(--border)); }
.upload-progress.is-done .upload-progress-state { color:var(--emerald-text); }
.upload-progress.is-done .upload-ring-value { animation:none; }

/* A text note shared as a lesson resource. */
.lms-resource-note { width:100%; padding:13px 15px; border:1px solid var(--border); border-radius:12px; background:var(--surface-sunken); }
.lms-resource-note strong { color:var(--ink); font-size:13.5px; font-weight:600; }
.lms-resource-note p { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.6; white-space:pre-line; }

/* Role dashboard widgets. A text-valued metric (a lesson title, a status)
   reads at body scale with a two-line clamp instead of number scale, and the
   student learning cards use the brand action colour - they were lilac. */
.role-metric strong.is-text { display:-webkit-box; overflow:hidden; font-size:16px; font-weight:600; letter-spacing:-.01em; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.learning-card-top span { color:var(--muted); }
.learning-card-top b { background:var(--emerald-soft); color:var(--emerald-text); }
.learning-progress i { background:var(--emerald); }
.learning-card > a { color:var(--emerald-text); }
.learning-card > a:hover { text-decoration:underline; text-underline-offset:3px; }

/* Paused upload: the connection dropped and the upload is waiting to resume
   from where it stopped. Calm amber, not an error. */
.upload-progress.is-waiting { border-color:color-mix(in srgb,var(--honey) 55%,var(--border)); }
.upload-progress.is-waiting .upload-progress-state { color:var(--honey-text); }
.upload-progress.is-waiting .upload-ring-value { stroke:var(--honey); animation:upload-ring-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .upload-progress.is-waiting .upload-ring-value { animation:none; } }

/* Course card titles clamp at three lines so one long title can't stretch a
   whole row of cards; the full title is in the title attribute. */
.classroom-card-title { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow-wrap:anywhere; }

/* Course management tabs scroll sideways on phones; the native scrollbar
   drew a grey bar under them. Keep the swipe, drop the bar. */
.classroom-management-tabs { scrollbar-width:none; }
.classroom-management-tabs::-webkit-scrollbar { display:none; }

/* Shared validation feedback (partials/form-errors). */
.app-form-errors { display:grid; gap:6px; margin:0 0 4px; padding:13px 16px; border:1px solid color-mix(in srgb,var(--rose) 45%,var(--border)); border-radius:14px; background:var(--rose-soft); color:var(--rose-text); font-size:13.5px; line-height:1.5; }
.app-form-errors strong { font-weight:600; }
.app-form-errors ul { margin:0; padding-left:18px; }
.app-form-errors li + li { margin-top:2px; }

/* Checkboxes and radios inside flex labels were stretching to fill the row
   (one sat 169px wide, floating mid-row on the Team filter). Give them a
   fixed box so the label text always sits right beside them. */
.app-page input[type="checkbox"], .app-page input[type="radio"] { flex:none; width:1.05rem; height:1.05rem; min-width:0; }

/* Grid cards must be allowed to shrink below their content's natural width,
   or one long job title pushes a card past the phone screen. */
.app-page .grid > .app-panel { min-width:0; }
.upload-progress-actions { display:flex; gap:6px; align-self:center; }
@media (max-width:520px) { .upload-progress-actions { grid-column:1/-1; } }

/* Classroom mobile hero: the white call-to-action must keep dark emerald text in both themes. */
.app-page section.classroom-mobile-teacher-hero a.app-primary-action, .app-page section.classroom-mobile-student-hero a.app-primary-action { color:#0c5a3c !important; -webkit-text-fill-color:#0c5a3c; }
.app-page section.classroom-mobile-teacher-hero a.app-primary-action span, .app-page section.classroom-mobile-student-hero a.app-primary-action span { display:inline; max-width:none; margin:0; color:inherit; font-size:inherit; }
.app-page section.classroom-mobile-teacher-hero a.app-primary-action:hover, .app-page section.classroom-mobile-student-hero a.app-primary-action:hover { background:#e9f8f0; color:#0c5a3c !important; }
.app-page section.classroom-mobile-teacher-hero, .app-page section.classroom-mobile-student-hero { background:linear-gradient(145deg,#1d7550,#0b3a28); }
/* Swipeable chip/tab rows: no grey scrollbar strip under the chips (tables keep theirs). */
.app-page nav.overflow-x-auto { scrollbar-width:none; }
.app-page nav.overflow-x-auto::-webkit-scrollbar { display:none; }
.media-missing { display:grid; min-height:180px; place-content:center; gap:6px; padding:24px; border:1px dashed var(--border-strong); border-radius:16px; background:var(--surface-sunken); color:var(--muted); text-align:center; font-size:13px; line-height:1.5; }
.media-missing strong { color:var(--ink); font-size:14px; font-weight:600; }
/* Fieldsets default to min-content width, which lets long option rows push forms past the screen edge. */
.app-page fieldset { min-width:0; }
/* Course content board: long lesson titles truncate inside the card instead of widening it. */
.classroom-step-list { grid-template-columns:minmax(0,1fr); }
.classroom-step-row { min-width:0; }
@media (max-width: 639px) {
  .classroom-course-board-top { flex-direction:column; gap:10px; }
  .classroom-course-board-top a { align-self:flex-start; }
}
/* File pickers never grow wider than the card they sit in. */
.app-page input[type="file"] { max-width:100%; min-width:0; }
.classroom-course-board-card .classroom-step-list { padding-bottom:16px; }
.app-page :is(form, label, div):has(> input[type="file"]) { max-width:100%; min-width:0; }
/* Status badges (used across Classroom, Access review and Deliveries). Token colours, so both themes work. */
.badge { display:inline-flex; align-items:center; min-height:24px; padding:0 10px; border-radius:999px; background:var(--surface-sunken); color:var(--muted); font-size:12px; font-weight:600; line-height:1; white-space:nowrap; }
.badge-success { background:var(--emerald-soft); color:var(--emerald-text); }
.badge-info { background:var(--sky-soft); color:var(--sky-text); }
.badge-warning { background:var(--honey-soft); color:var(--honey-text); }
.badge-danger { background:var(--rose-soft); color:var(--rose-text); }
/* Count/status badges keep their natural width when a header stacks on phones. */
@media (max-width: 639px) {
  .app-page .flex-col > :is(.badge, span.rounded-full) { align-self:flex-start; }
}
/* Course rules (workspace defaults page and the course Rules tab). */
.rules-groups { display:grid; gap:14px; }
@media (min-width: 900px) { .rules-groups { grid-template-columns:repeat(2, minmax(0,1fr)); } }
.rules-group { min-width:0; margin:0; padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }
.rules-group > legend { padding:0 6px; color:var(--ink); font-size:14px; font-weight:600; }
.rules-group--decision { border-color:color-mix(in srgb, var(--honey) 55%, var(--border)); background:color-mix(in srgb, var(--honey-soft) 45%, var(--surface)); }
.rules-help { margin:2px 0 10px; color:var(--muted); font-size:13px; line-height:1.5; }
.rules-option, .rules-check, .rules-field { display:flex; align-items:flex-start; gap:10px; min-height:44px; padding:8px 4px; border-radius:10px; cursor:pointer; }
.rules-option:hover, .rules-check:hover { background:var(--surface-sunken); }
.rules-option input, .rules-check input { flex:0 0 auto; width:18px; height:18px; margin-top:2px; accent-color:var(--emerald); }
.rules-option > span, .rules-check > span, .rules-field > span:first-child { display:grid; gap:2px; min-width:0; }
.rules-option strong, .rules-check strong, .rules-field strong { color:var(--ink); font-size:14px; font-weight:600; }
.rules-option small, .rules-check small, .rules-field small { color:var(--muted); font-size:12.5px; line-height:1.45; }
.rules-field { justify-content:space-between; cursor:default; }
.rules-percent { display:inline-flex; align-items:center; gap:6px; color:var(--muted); white-space:nowrap; }
.rules-percent input { width:84px; min-height:44px; border-radius:10px; }
.rules-course-picks { display:grid; gap:2px; margin:4px 0 6px 28px; padding:8px; border-radius:12px; background:var(--surface-sunken); }
.rules-lesson-row { display:grid; gap:10px; align-items:end; padding:12px 14px; }
@media (min-width: 900px) { .rules-lesson-row { grid-template-columns:minmax(0,1fr) 200px 160px auto; } }
.rules-inline { display:grid; gap:4px; font-size:12px; color:var(--muted); }
.rules-inline select { min-height:44px; border-radius:10px; font-size:14px; }
.rules-summary { display:grid; gap:10px; }
@media (min-width: 640px) { .rules-summary { grid-template-columns:repeat(2, minmax(0,1fr)); } }
.rules-summary > div { padding:12px; border:1px solid var(--border); border-radius:12px; }
.rules-summary dt { color:var(--muted); font-size:12px; }
.rules-summary dd { margin:2px 0 0; color:var(--ink); font-weight:600; }
/* Phone header: evenly spaced 44px actions, pinned with a soft translucent background like an app bar. */
@media (max-width: 1023px) {
  .zam-mobile-topbar { position:sticky; top:0; z-index:60; gap:10px; min-height:60px; padding-inline:16px !important; padding-top:env(safe-area-inset-top); background:color-mix(in srgb, var(--canvas) 86%, transparent); border-bottom:1px solid color-mix(in srgb, var(--border) 70%, transparent); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
  .zam-mobile-topbar > [data-flux-spacer] { margin:0; }
  .zam-mobile-brand { min-width:0; gap:10px; }
  .zam-mobile-brand > div:last-child:not(:first-child) { display:none; }
  .zam-mobile-brand > :first-child { width:38px !important; height:38px !important; border-radius:12px !important; overflow:hidden; background:linear-gradient(145deg, color-mix(in srgb, var(--emerald) 82%, #06261a), color-mix(in srgb, var(--emerald) 58%, #06261a)) !important; }
  .zam-mobile-topbar :is(.theme-switcher, .notification-bell) { width:44px !important; height:44px !important; border-radius:14px !important; }
  .zam-mobile-topbar ui-dropdown > button, .zam-mobile-topbar [data-flux-dropdown] > button { width:44px; height:44px; }
  .zam-mobile-topbar .notification-bell > span.absolute { top:-4px; right:-4px; min-width:18px; height:18px; line-height:14px; font-size:10px; font-weight:600; }
  .zam-mobile-topbar [data-flux-sidebar-toggle], .zam-mobile-topbar > button:first-child { width:44px; height:44px; }
  /* Open phone menu sits above the top bar, tab bar and chat button so nothing covers it. */
  [data-flux-sidebar][data-flux-sidebar-on-mobile] { padding-top:env(safe-area-inset-top); padding-bottom:calc(16px + env(safe-area-inset-bottom)); }
  [data-flux-sidebar-backdrop] { z-index:15 !important; }
  body:has([data-flux-sidebar-on-mobile]:not([data-flux-sidebar-collapsed-mobile])) :is(.zam-mobile-topbar, .zam-mobile-nav, .zam-connect-fab, .zam-connect-panel) { z-index:10 !important; }
}
/* Bottom tab bar: compact, line icons, a soft pill for the active tab. The
   app passes its gesture-bar height as --app-safe-bottom so the bar itself
   (not an empty strip below it) fills that space. */
@media (max-width: 767px) {
  body { padding-bottom:calc(64px + max(env(safe-area-inset-bottom), var(--app-safe-bottom, 0px))) !important; }
  .zam-mobile-nav { gap:2px !important; padding:6px 8px calc(6px + max(env(safe-area-inset-bottom), var(--app-safe-bottom, 0px))) !important; background:color-mix(in srgb, var(--surface) 94%, transparent) !important; box-shadow:0 -8px 24px -18px rgb(8 48 36 / .35) !important; }
  .zam-mobile-nav-item { min-height:50px !important; gap:3px !important; font-size:11px !important; font-weight:600 !important; letter-spacing:.01em; background:transparent !important; }
  .zam-mobile-nav-item .zam-mobile-nav-icon { width:44px !important; height:28px !important; padding:3px 0; border:0 !important; border-radius:999px !important; transition:background-color 160ms ease, color 160ms ease; }
  .zam-mobile-nav-item.is-active { color:var(--emerald-text) !important; }
  .zam-mobile-nav-item.is-active .zam-mobile-nav-icon { background:var(--emerald-soft); }
  .zam-mobile-nav-item:active .zam-mobile-nav-icon { background:var(--surface-sunken); }
}
@media (max-width: 767px) and (orientation: landscape) {
  .zam-mobile-nav-item { min-height:44px !important; flex-direction:row !important; gap:6px !important; }
}
/* ZAM Connect — group chat */
.connect-shell { position:relative; display:flex; flex-direction:column; width:100%; max-width:980px; height:calc(100dvh - 64px); margin:0 auto; background:var(--canvas); }
.connect-header { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border); background:var(--surface); }
.connect-title { flex:1; min-width:0; }
.connect-title h1 { margin:0; color:var(--ink); font-size:17px; font-weight:600; line-height:1.2; }
.connect-title p { margin:2px 0 0; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.connect-icon-button { display:inline-grid; place-items:center; flex:0 0 auto; width:44px; height:44px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--ink); cursor:pointer; }
.connect-icon-button svg { width:20px; height:20px; }
.connect-icon-button:hover { border-color:var(--emerald); color:var(--emerald-text); }
.connect-back { display:none; }
.connect-search { padding:10px 16px; border-bottom:1px solid var(--border); background:var(--surface); }
.connect-search input { width:100%; min-height:44px; border-radius:12px; }
.connect-search-results { display:grid; gap:4px; max-height:40vh; margin-top:8px; overflow:auto; }
.connect-search-hit { display:grid; gap:2px; padding:8px 10px; border-radius:10px; text-align:left; cursor:pointer; }
.connect-search-hit:hover { background:var(--surface-sunken); }
.connect-search-hit strong { color:var(--ink); font-size:12.5px; font-weight:600; }
.connect-search-hit span, .connect-search-note { color:var(--muted); font-size:13px; }
.connect-pinned { display:grid; gap:4px; padding:8px 16px; border-bottom:1px solid var(--border); background:color-mix(in srgb, var(--emerald-soft) 55%, var(--surface)); }
.connect-pin { display:flex; align-items:center; gap:8px; min-height:36px; text-align:left; cursor:pointer; }
.connect-pin-text { overflow:hidden; color:var(--ink); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.connect-flash { margin:8px 16px 0; padding:8px 12px; border-radius:10px; background:var(--emerald-soft); color:var(--emerald-text); font-size:13px; }
.connect-flash--error { background:var(--rose-soft); color:var(--rose-text); }
.connect-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:12px 16px 20px; scroll-behavior:auto; -webkit-overflow-scrolling:touch; }
.connect-older { display:block; margin:4px auto 12px; padding:6px 14px; border:1px solid var(--border); border-radius:999px; color:var(--muted); font-size:12.5px; }
.connect-list { display:grid; gap:2px; margin:0; padding:0; list-style:none; }
.connect-day { justify-self:center; margin:14px 0 6px; padding:3px 12px; border-radius:999px; background:var(--surface-sunken); color:var(--muted); font-size:12px; font-weight:600; }
.connect-unread { display:flex; align-items:center; gap:10px; margin:10px 0; color:var(--rose-text); font-size:12px; font-weight:600; }
.connect-unread::before, .connect-unread::after { content:""; flex:1; height:1px; background:color-mix(in srgb, var(--rose) 45%, transparent); }
.connect-message { display:flex; align-items:flex-end; gap:8px; max-width:100%; margin-top:10px; }
.connect-message.is-grouped { margin-top:2px; }
.connect-message.is-grouped .connect-avatar { visibility:hidden; }
.connect-message.is-grouped .connect-meta { display:none; }
.connect-avatar { flex:0 0 auto; width:34px; height:34px; border-radius:999px; object-fit:cover; }
.connect-avatar--initials { display:grid; place-items:center; background:var(--emerald-soft); color:var(--emerald-text); font-size:12px; font-weight:600; }
.connect-bubble { position:relative; min-width:0; max-width:min(560px, 82%); padding:8px 12px 6px; border:1px solid var(--border); border-radius:16px 16px 16px 6px; background:var(--surface); box-shadow:0 1px 2px rgb(8 48 36 / .05); }
.connect-message.is-mine { flex-direction:row-reverse; }
.connect-message.is-mine .connect-bubble { border-color:transparent; border-radius:16px 16px 6px 16px; background:var(--emerald); color:var(--on-emerald); }
.connect-message.is-mine .connect-meta strong, .connect-message.is-mine .connect-text, .connect-message.is-mine .connect-meta time, .connect-message.is-mine .connect-role { color:inherit; opacity:.92; }
.connect-message.is-announcement .connect-bubble { max-width:min(680px, 92%); border-color:color-mix(in srgb, var(--honey) 55%, var(--border)); background:color-mix(in srgb, var(--honey-soft) 60%, var(--surface)); color:var(--ink); }
.connect-message.is-highlight .connect-bubble { outline:2px solid var(--emerald); }
.connect-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; margin-bottom:2px; }
.connect-meta strong { color:var(--ink); font-size:13px; font-weight:600; }
.connect-role, .connect-meta time { color:var(--muted); font-size:11.5px; }
.connect-tag { padding:1px 8px; border-radius:999px; background:var(--honey-soft); color:var(--honey-text); font-size:11px; font-weight:600; }
.connect-tag--pin { background:var(--emerald-soft); color:var(--emerald-text); }
.connect-text { margin:0; color:var(--ink); font-size:14.5px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.connect-text--removed { color:var(--muted) !important; font-style:italic; }
.connect-edited { color:inherit; font-size:11.5px; opacity:.7; }
.connect-mention { padding:0 3px; border-radius:6px; background:color-mix(in srgb, var(--sky-soft) 80%, transparent); color:var(--sky-text); font-weight:600; }
.connect-message.is-mine .connect-mention { background:rgb(255 255 255 / .22); color:inherit; }
.connect-quote { display:grid; gap:1px; width:100%; margin:2px 0 6px; padding:6px 10px; border-left:3px solid var(--emerald); border-radius:8px; background:color-mix(in srgb, var(--surface-sunken) 85%, transparent); text-align:left; cursor:pointer; }
.connect-quote strong { color:var(--ink); font-size:12px; font-weight:600; }
.connect-quote span { overflow:hidden; color:var(--muted); font-size:12.5px; text-overflow:ellipsis; white-space:nowrap; }
.connect-attachments { display:grid; gap:6px; margin-top:6px; }
.connect-attachments img, .connect-attachments video { display:block; width:100%; max-width:360px; max-height:320px; border-radius:12px; object-fit:cover; background:var(--surface-sunken); }
.connect-file { display:inline-flex; gap:6px; align-items:center; min-height:40px; padding:0 12px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--ink); font-size:13px; text-decoration:none; }
.connect-reactions { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.connect-reaction { min-height:28px; padding:0 8px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--ink); font-size:12.5px; }
.connect-reaction.is-mine { border-color:var(--emerald); background:var(--emerald-soft); }
.connect-actions { display:flex; flex-wrap:wrap; gap:2px 10px; margin-top:4px; opacity:0; transition:opacity 120ms ease; }
.connect-message:hover .connect-actions, .connect-message:focus-within .connect-actions { opacity:1; }
@media (pointer: coarse) { .connect-actions { opacity:1; } }
.connect-action { min-height:28px; color:var(--muted); font-size:12px; font-weight:600; }
.connect-message.is-mine .connect-action { color:inherit; opacity:.85; }
.connect-action.is-danger { color:var(--rose-text); }
.connect-message.is-mine .connect-action.is-danger { color:inherit; }
.connect-picker { position:absolute; bottom:calc(100% + 6px); left:0; z-index:5; display:flex; gap:2px; padding:4px; border:1px solid var(--border); border-radius:999px; background:var(--surface); box-shadow:var(--shadow-menu); }
.connect-message.is-mine .connect-picker { right:0; left:auto; }
.connect-picker button { width:40px; height:40px; border-radius:999px; font-size:20px; }
.connect-picker button:hover { background:var(--surface-sunken); }
.connect-empty { display:grid; place-items:center; gap:6px; max-width:420px; margin:12vh auto 0; text-align:center; }
.connect-empty strong { color:var(--ink); font-weight:600; }
.connect-empty span { color:var(--muted); font-size:13.5px; }
.connect-jump { position:absolute; right:16px; bottom:118px; z-index:6; padding:8px 14px; border-radius:999px; background:var(--emerald); color:var(--on-emerald); font-size:13px; font-weight:600; box-shadow:var(--shadow-menu); }
.connect-composer { display:grid; gap:6px; padding:10px 12px calc(10px + max(env(safe-area-inset-bottom), var(--app-safe-bottom, 0px))); border-top:1px solid var(--border); background:var(--surface); }
.connect-composer-row { display:flex; align-items:flex-end; gap:8px; }
.connect-composer textarea { flex:1; min-width:0; min-height:44px; max-height:140px; padding:11px 14px; border:1px solid var(--border-strong); border-radius:22px; background:var(--canvas); color:var(--ink); font-size:16px; line-height:1.35; resize:none; }
.connect-send { display:grid; place-items:center; flex:0 0 auto; width:44px; height:44px; border-radius:999px; background:var(--emerald); color:var(--on-emerald); }
.connect-send svg { width:20px; height:20px; }
.connect-send:disabled { opacity:.5; }
.connect-attach { cursor:pointer; }
.connect-announce { display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--muted); font-size:12.5px; white-space:nowrap; }
.connect-announce input { accent-color:var(--emerald); }
.connect-reply-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 10px; border-left:3px solid var(--emerald); border-radius:8px; background:var(--surface-sunken); color:var(--ink); font-size:12.5px; }
.connect-reply-bar span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.connect-reply-bar button { min-width:32px; min-height:32px; color:var(--muted); }
.connect-files { display:flex; flex-wrap:wrap; gap:6px; }
.connect-chip { padding:4px 10px; border-radius:999px; background:var(--emerald-soft); color:var(--emerald-text); font-size:12px; }
.connect-hint { margin:0; color:var(--muted); font-size:11.5px; }
.connect-readonly { padding:14px 16px calc(14px + max(env(safe-area-inset-bottom), var(--app-safe-bottom, 0px))); border-top:1px solid var(--border); background:var(--surface-sunken); color:var(--muted); font-size:13px; text-align:center; }
.zam-mobile-nav-item { position:relative; }
.zam-mobile-nav-badge { position:absolute; top:2px; left:calc(50% + 6px); min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--rose); color:#fff; font-size:10px; font-weight:600; line-height:18px; text-align:center; }
@media (max-width: 1023px) {
  .connect-shell { height:calc(100dvh - 60px); }
  .connect-back { display:inline-grid; }
  .connect-hint { display:none; }
}
@media (max-width: 767px) {
  /* The chat is its own full screen on phones: no tab bar, composer pinned to the bottom. */
  body:has(.connect-shell) { padding-bottom:0 !important; }
  body:has(.connect-shell) .zam-mobile-nav { display:none !important; }
  .connect-shell { max-width:none; }
  .connect-scroll { padding-inline:10px; }
  .connect-bubble { max-width:86%; }
  .connect-jump { bottom:96px; }

}
/* The chat fills its area edge to edge (no page padding). */
*:has(> .connect-shell) { padding:0 !important; }
@media (max-width: 767px) {
  body:has(.connect-shell) .zam-mobile-topbar { display:none !important; }
  .connect-shell { height:100dvh; padding-top:env(safe-area-inset-top); }
}
/* ZAM Connect floating button + desktop panel */
.zam-connect-fab { position:fixed; right:24px; bottom:24px; z-index:80; display:grid; place-items:center; width:58px; height:58px; border-radius:20px; background:linear-gradient(145deg, color-mix(in srgb, var(--emerald) 82%, #06261a), color-mix(in srgb, var(--emerald) 58%, #06261a)); color:#fff; box-shadow:0 14px 30px -12px color-mix(in srgb, var(--emerald) 75%, transparent), 0 2px 6px rgb(8 48 36 / .18); transition:transform 160ms ease, box-shadow 160ms ease, border-radius 160ms ease; }
.zam-connect-fab svg { width:26px; height:26px; stroke:#fff; }
.zam-connect-fab:hover { transform:translateY(-2px); }
.zam-connect-fab:active { transform:scale(.95); }
.zam-connect-fab.is-open { border-radius:999px; }
.zam-connect-fab-badge { position:absolute; top:-6px; right:-6px; min-width:22px; height:22px; padding:0 6px; border:2px solid var(--surface); border-radius:999px; background:var(--rose); color:#fff; font-size:11px; font-weight:600; line-height:18px; text-align:center; }
.zam-connect-panel { position:fixed; right:24px; bottom:96px; z-index:79; width:min(420px, calc(100vw - 48px)); height:min(640px, calc(100dvh - 140px)); overflow:hidden; border:1px solid var(--border); border-radius:22px; background:var(--surface); box-shadow:0 30px 70px -24px rgb(8 48 36 / .45); animation:zam-connect-pop 180ms ease-out; }
.zam-connect-panel iframe { display:block; width:100%; height:100%; border:0; }
@keyframes zam-connect-pop { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .zam-connect-panel { animation:none; } }
@media (max-width: 767px) {
  .zam-connect-fab { right:16px; bottom:calc(76px + max(env(safe-area-inset-bottom), var(--app-safe-bottom, 0px))); width:54px; height:54px; border-radius:18px; }
  .zam-connect-panel { display:none !important; }
}
/* Inside the floating panel the chat fills the frame and has no page chrome. */
body.connect-embed { min-height:0; padding:0 !important; background:var(--canvas); }
body.connect-embed .connect-shell { height:100dvh; max-width:none; }
body.connect-embed .connect-hint { display:none; }
/* Gender choice on sign-up / Request Access */
.gender-field { min-width:0; margin:0; padding:0; border:0; }
.gender-field legend { margin-bottom:8px; color:var(--ink); font-size:14px; font-weight:500; }
.gender-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.gender-options label { display:flex; align-items:center; gap:10px; min-height:44px; padding:0 14px; border:1px solid var(--border-strong); border-radius:12px; background:var(--surface); color:var(--ink); cursor:pointer; }
.gender-options label:has(input:checked) { border-color:var(--emerald); background:var(--emerald-soft); color:var(--emerald-text); }
.gender-options input { width:18px; height:18px; accent-color:var(--emerald); }
.gender-error { margin:6px 0 0; color:var(--rose-text); font-size:13px; }
/* Video launch button: white label on emerald (beats generic link colour); progress line wraps instead of clipping. */
a.classroom-learning-external-video, a.classroom-learning-external-video:hover, a.classroom-learning-external-video:focus-visible { color:var(--on-emerald) !important; font-weight:600; }
.lms-progress-top { flex-wrap:wrap; gap:4px 12px; }
.lms-progress-top strong { min-width:0; overflow-wrap:anywhere; }
/* Lesson-path modules use the same soft card edge as every other surface; the open one gets only a faint emerald tint. */
.lms-page .lms-module { border-color:var(--border) !important; }
.lms-page .lms-module[open] { border-color:color-mix(in srgb,var(--emerald) 22%,var(--border)) !important; }
/* Review counters: one row of three calm cards; status shown by a small dot, the queue below stays the focus. */
.classroom-reviews-page .classroom-review-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.classroom-reviews-page .classroom-review-count, .classroom-reviews-page .classroom-review-count-lilac { border:1px solid var(--border); background:var(--surface); color:var(--ink); box-shadow:var(--shadow-card); }
.classroom-reviews-page .classroom-review-count span { display:inline-flex; align-items:center; gap:8px; color:var(--muted); }
.classroom-reviews-page .classroom-review-count span::before { width:8px; height:8px; border-radius:999px; background:var(--emerald); content:''; }
.classroom-reviews-page .classroom-review-count-lilac span::before { background:var(--honey); }
.classroom-reviews-page .classroom-review-count:last-child span::before { background:var(--muted); }
.classroom-reviews-page .classroom-review-count p { color:var(--muted); }
@media (max-width:640px) { .classroom-reviews-page .classroom-review-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; } .classroom-reviews-page .classroom-review-count { min-height:0; padding:12px; } .classroom-reviews-page .classroom-review-count p { display:none; } .classroom-reviews-page .classroom-review-count span { font-size:11px; } }
@media (max-width:640px) { .classroom-reviews-page > form.app-panel { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; } @media (max-width:420px) { .classroom-reviews-page > form.app-panel { grid-template-columns:1fr; gap:10px; } } .classroom-reviews-page > form.app-panel > :last-child { grid-column:1 / -1; } .classroom-reviews-page > form.app-panel select { min-height:44px; font-size:14px; } }
@media (max-width:640px) { .classroom-reviews-page > form.app-panel select { font-size:14px !important; padding-left:12px !important; padding-right:30px !important; text-overflow:ellipsis; } }
/* Student and teacher cards: wide enough for names, one emerald progress colour, percentage never wraps. */
.classroom-student-grid, .classroom-teacher-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)) !important; }
.classroom-student-percent { width:auto; min-width:52px; padding:0 10px; background:var(--emerald-soft); color:var(--emerald-text); white-space:nowrap; font-variant-numeric:tabular-nums; }
.classroom-student-progress > span { background:var(--emerald); }
.classroom-student-card, .classroom-teacher-card { border-left-width:1px !important; border-left-color:var(--border) !important; }
/* Progress summary: five counters in one row on wide screens, compact pairs on phones. */
.classroom-progress-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; }
@media (max-width:640px) { .classroom-progress-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .classroom-progress-metrics .app-metric { min-height:0; padding:14px; } .classroom-progress-metrics .app-metric p:last-child { margin-top:6px; font-size:24px; } .classroom-progress-metrics .app-metric:last-child:nth-child(odd) { grid-column:1 / -1; } }
/* Course content: every lesson row is a complete box; step numbers and arrows use the action colour. */
.classroom-course-board-card .classroom-step-row, .classroom-course-board-card .classroom-step-row:last-child { border:1px solid var(--border) !important; }
.classroom-course-board-card .classroom-step-row > span:first-child { background:var(--emerald-soft) !important; color:var(--emerald-text) !important; }
.classroom-course-board-card .classroom-step-row > :last-child:not(div) { color:var(--emerald-text) !important; }
.classroom-course-board-card .classroom-step-row:hover { border-color:color-mix(in srgb,var(--emerald) 40%,var(--border)) !important; }
/* "Add lesson" reads as an action, not another lesson: dashed edge, emerald label. */
details.classroom-add-lesson > summary { color:var(--emerald-text); font-weight:600; }
/* Finance and reports: no rotating decorative top edges; cards share one calm surface (colour is reserved for meaning). */
.finance-page .app-metric:nth-child(n):nth-of-type(n), .finance-page > .app-panel:nth-child(n):nth-of-type(n), .reports-page .app-panel:nth-child(n):nth-of-type(n) { border-top:1px solid var(--border) !important; }
/* Empty states inside panels keep breathing room (a generic panel rule was zeroing their padding). */
.app-panel .empty-state { padding:40px 20px !important; }
/* Admin counters: only the "needs attention" card keeps a coloured edge; the rest share the calm surface. */
.admin-access-page .app-metric:nth-child(n):nth-of-type(n), .admin-accounts-page .admin-account-metric:not(.admin-account-metric-alert):nth-child(n) { border-top:1px solid var(--border) !important; }
/* Bank & reserves */
.reserves-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
@media (min-width:1280px) { .reserves-totals { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:420px) { .reserves-totals { gap:10px; } .reserves-totals .app-metric { padding:14px; } .reserves-totals .app-metric p:nth-child(2) { font-size:18px; } }
.reserves-account { display:grid; gap:16px; padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.reserves-account-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.reserves-purpose { flex:0 0 auto; padding:4px 10px; border-radius:999px; background:var(--surface-sunken); color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; }
.reserves-purpose.is-reserve { background:var(--emerald-soft); color:var(--emerald-text); }
.reserves-purpose.is-savings { background:var(--sky-soft); color:var(--sky-text); }
.reserves-balance-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; align-items:end; }
.reserves-balance-form .reserves-note { grid-column:span 2; }
@media (max-width:640px) { .reserves-balance-form { grid-template-columns:1fr 1fr; } .reserves-balance-form .reserves-note, .reserves-balance-form > button { grid-column:1 / -1; } }
.reserves-history > summary { cursor:pointer; color:var(--emerald-text); font-size:14px; font-weight:600; }
/* Phone top bar: a soft narrow shadow instead of a hard line touching the icons. */
@media (max-width:1023px) { .zam-mobile-topbar { border-bottom:0 !important; box-shadow:0 6px 12px -10px rgb(16 34 27 / 28%); padding-bottom:4px; } }
:root[data-theme="dark"] .zam-mobile-topbar { box-shadow:0 6px 14px -10px rgb(0 0 0 / 70%); }
/* Office expenses */
.office-expense-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; align-items:end; }
.office-expense-form .office-expense-note { grid-column:span 2; }
@media (max-width:640px) { .office-expense-form { grid-template-columns:1fr 1fr; } .office-expense-form .office-expense-note, .office-expense-form > button { grid-column:1 / -1; } }
.office-expense-summary { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px; }
.office-expense-total { border-color:color-mix(in srgb,var(--emerald) 35%,var(--border)) !important; background:color-mix(in srgb,var(--emerald) 6%,var(--surface)) !important; }
.office-expense-person { border:1px solid var(--border); border-radius:14px; padding:0 16px; background:var(--surface); }
.office-expense-person > summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-height:52px; cursor:pointer; list-style:none; }
.office-expense-person > summary::-webkit-details-marker { display:none; }
.office-expense-person[open] > summary { border-bottom:1px solid var(--border); }
/* Owner dashboard: daily entry (record income, office expense) */
.owner-daily-entry { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:16px; margin:0 0 20px; }
.owner-daily-card { display:grid; gap:14px; padding:18px 20px; }
.owner-daily-card h2 { margin:0; color:var(--ink); font-size:16px; font-weight:600; }
.owner-daily-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.owner-daily-fields label { display:grid; gap:6px; min-width:0; }
.owner-daily-fields label > span { color:var(--muted); font-size:12px; font-weight:600; }
.owner-daily-fields em { font-style:normal; font-weight:400; }
.owner-daily-fields input, .owner-daily-fields select { min-height:44px; width:100%; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--ink); padding:0 12px; font-size:14px; }
.owner-daily-fields .owner-daily-wide { grid-column:1 / -1; }
.owner-daily-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.owner-daily-foot small, .owner-daily-foot a { color:var(--muted); font-size:13px; }
.owner-daily-foot a { color:var(--emerald-text); font-weight:600; text-decoration:none; }
@media (max-width:520px) { .owner-daily-fields { grid-template-columns:1fr 1fr; } .owner-daily-fields label:nth-child(3):not(.owner-daily-wide) { grid-column:1 / -1; } }
/* Team chat voice notes */
.connect-mic.is-recording { border-color:var(--rose); background:var(--rose-soft); color:var(--rose-text); }
.connect-recording { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:8px; padding:8px 12px; border:1px solid color-mix(in srgb,var(--rose) 40%,var(--border)); border-radius:14px; background:var(--rose-soft); color:var(--rose-text); font-size:13px; font-weight:600; }
.connect-recording[hidden] { display:none; }
.connect-rec-dot { width:10px; height:10px; border-radius:999px; background:var(--rose); animation:connect-rec-pulse 1s ease-in-out infinite; }
@keyframes connect-rec-pulse { 50% { opacity:.3; } }
@media (prefers-reduced-motion:reduce) { .connect-rec-dot { animation:none; } }
.connect-recording b { font-variant-numeric:tabular-nums; }
.connect-rec-cancel, .connect-rec-send { min-height:36px; margin-left:auto; padding:0 12px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--ink); font:inherit; cursor:pointer; }
.connect-rec-send { margin-left:0; border-color:transparent; background:var(--emerald); color:var(--on-emerald); }
.connect-voice { display:block; width:min(280px,100%); height:40px; }
/* No double-tap zoom on phones (the app felt like a zoomed desktop page); pinch-zoom still works. */
html, body { touch-action:manipulation; }
/* Lesson video watermark: the viewer's name and email drift across the video, so a screen recording names who made it. */
.classroom-watermarked { position:relative; overflow:hidden; border-radius:16px; }
.classroom-watermarked::after { content:attr(data-watermark); position:absolute; z-index:5; top:12%; left:8%; max-width:80%; overflow:hidden; color:rgb(255 255 255 / 0.42); font-size:clamp(11px,1.6vw,15px); font-weight:600; letter-spacing:.02em; text-overflow:ellipsis; text-shadow:0 1px 2px rgb(0 0 0 / 0.6); white-space:nowrap; pointer-events:none; user-select:none; animation:classroom-watermark-drift 28s steps(1,end) infinite; }
@keyframes classroom-watermark-drift { 0% { top:12%; left:8%; } 25% { top:70%; left:52%; } 50% { top:40%; left:18%; } 75% { top:82%; left:12%; } 100% { top:18%; left:58%; } }
.classroom-watermarked:fullscreen { display:grid; place-items:center; border-radius:0; background:#000; }
.classroom-watermarked:fullscreen video { width:100%; height:100%; max-height:100vh; object-fit:contain; border-radius:0; }
/* Learning page: video and lesson content on the LEFT, course modules on the RIGHT (stacked below on phones). */
@media (min-width:1024px) {
  .lms-grid { grid-template-columns:minmax(0,1fr) minmax(300px,360px); }
  .lms-grid > .lms-main { order:1; }
  .lms-grid > .lms-rail { order:2; max-height:calc(100vh - 32px); overflow-y:auto; }
}
/* Assignment status badges, the same everywhere: In Review = yellow, Approved = green, Submitted = light green. */
.lms-status-review, .classroom-status-review { background:var(--honey-soft) !important; color:var(--honey-text) !important; }
.lms-status-approved, .classroom-status-approved { background:var(--emerald-soft) !important; color:var(--emerald-text) !important; }
.lms-status-submitted, .classroom-status-submitted { background:color-mix(in srgb,var(--emerald-soft) 60%,var(--surface)) !important; color:var(--emerald-text) !important; }
.classroom-status-revise { background:var(--rose-soft) !important; color:var(--rose-text) !important; }
/* Student learning sidebar (profile card, Dashboard / Courses / Profile / Settings, help box) */
.zam-learner-card { display:grid; justify-items:center; gap:4px; margin:4px 4px 14px; padding:18px 14px 16px; border:1px solid color-mix(in srgb,var(--emerald) 18%,var(--border)); border-radius:16px; background:color-mix(in srgb,var(--emerald-soft) 45%,var(--surface)); text-align:center; }
.zam-learner-avatar { margin-bottom:6px; box-shadow:0 0 0 3px var(--surface); }
.zam-learner-name { margin:0; color:var(--ink); font-size:15px; font-weight:600; }
.zam-learner-role { margin:0 0 8px; color:var(--muted); font-size:12.5px; }
.zam-learner-edit { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 16px; border:1px solid color-mix(in srgb,var(--emerald) 55%,var(--border)); border-radius:10px; background:var(--surface); color:var(--emerald-text) !important; font-size:13px; font-weight:600; text-decoration:none; }
.zam-learner-edit:hover { background:var(--emerald-soft); }
.zam-learner-nav { display:grid; gap:2px; }
.zam-learner-help { margin:0 8px 12px; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.zam-learner-help-title { margin:0; color:var(--ink); font-size:13px; font-weight:600; }
.zam-learner-help-copy { margin:3px 0 10px; color:var(--muted); font-size:12px; }
/* Student "My Courses" dashboard */
.zam-learn-head h1 { margin:0; color:var(--ink); font-size:clamp(26px,3vw,32px); font-weight:600; letter-spacing:-.025em; }
.zam-learn-head p { margin:6px 0 0; color:var(--muted); font-size:14.5px; }
.zam-course-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr)); gap:20px; margin-top:24px; }
.zam-course-card { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:0 1px 2px rgb(16 34 27 / 4%); transition:transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease); }
.zam-course-card:not(.is-locked):hover { transform:translateY(-2px); box-shadow:var(--shadow-card); }
.zam-course-thumb { position:relative; aspect-ratio:16/10; overflow:hidden; background:color-mix(in srgb,var(--emerald-soft) 60%,var(--surface)); }
.zam-course-thumb img { width:100%; height:100%; object-fit:cover; }
.zam-course-thumb-fallback { display:grid; width:100%; height:100%; place-items:center; color:var(--emerald-text); font-size:44px; font-weight:600; }
.zam-course-card.is-locked .zam-course-thumb img, .zam-course-card.is-locked .zam-course-thumb-fallback { filter:grayscale(.65); opacity:.7; }
.zam-course-lock-chip { position:absolute; top:10px; right:10px; display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; background:var(--surface); color:var(--muted); font-size:12px; font-weight:600; box-shadow:0 2px 8px rgb(16 34 27 / 12%); }
.zam-course-lock-chip svg, .zam-course-learn svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.zam-course-body { display:flex; flex:1; flex-direction:column; padding:16px 18px 18px; }
.zam-course-body h2 { margin:0; color:var(--ink); font-size:17px; font-weight:600; line-height:1.3; }
.zam-course-desc { display:-webkit-box; margin:8px 0 14px; overflow:hidden; color:var(--muted); font-size:13.5px; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.zam-course-progress { height:7px; margin-top:auto; overflow:hidden; border-radius:999px; background:var(--surface-sunken); }
.zam-course-progress i { display:block; height:100%; min-width:0; border-radius:inherit; background:var(--emerald); }
.zam-course-percent { margin:8px 0 14px; color:var(--ink); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.zam-course-learn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; border-radius:12px; background:var(--emerald); color:var(--on-emerald) !important; font-size:15px; font-weight:600; text-decoration:none; }
.zam-course-learn:hover { background:color-mix(in srgb,var(--emerald) 86%,#000); }
.zam-course-learn.is-locked { background:var(--surface-sunken); color:var(--muted) !important; cursor:not-allowed; }
.zam-course-lock-note { margin:8px 0 0; color:var(--muted); font-size:12px; text-align:center; }
.zam-learn-empty { margin-top:24px; padding:40px 20px; border:1px dashed var(--border); border-radius:18px; text-align:center; }
.zam-learn-empty h2 { margin:0; color:var(--ink); font-size:17px; font-weight:600; }
.zam-learn-empty p { margin:6px 0 0; color:var(--muted); font-size:14px; }
/* Instructor dashboard */
.zam-instructor { display:grid; gap:18px; margin-bottom:24px; }
.zam-instructor-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
@media (max-width:1100px) { .zam-instructor-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.zam-stat { display:flex; align-items:center; gap:14px; padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--surface); color:inherit; text-decoration:none; }
a.zam-stat:hover { border-color:color-mix(in srgb,var(--emerald) 40%,var(--border)); }
.zam-stat.is-alert { border-color:color-mix(in srgb,var(--rose) 45%,var(--border)); }
.zam-stat p { display:flex; align-items:center; gap:6px; margin:0; color:var(--muted); font-size:12.5px; font-weight:600; }
.zam-stat strong { display:block; margin-top:2px; color:var(--ink); font-size:26px; font-weight:600; font-variant-numeric:tabular-nums; line-height:1.15; }
.zam-stat small { color:var(--muted); font-size:12px; }
.zam-stat-icon { display:grid; flex:0 0 auto; width:48px; height:48px; place-items:center; border-radius:14px; }
.zam-stat-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.zam-stat-icon.is-green { background:var(--emerald-soft); color:var(--emerald-text); }
.zam-stat-icon.is-sky { background:var(--sky-soft); color:var(--sky-text); }
.zam-stat-icon.is-rose { background:var(--rose-soft); color:var(--rose-text); }
.zam-dot { display:inline-block; width:8px; height:8px; margin-left:6px; border-radius:999px; background:var(--rose); vertical-align:middle; }
.zam-instructor-panel { padding:18px 18px 8px; }
.zam-instructor-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.zam-instructor-toolbar h3 { margin:0; color:var(--ink); font-size:17px; font-weight:600; }
.zam-instructor-filters { display:flex; flex-wrap:wrap; gap:8px; }
.zam-instructor-filters input, .zam-instructor-filters select { min-height:40px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--ink); padding:0 12px; font-size:13.5px; }
.zam-instructor-tabs { display:flex; flex-wrap:wrap; gap:4px 18px; margin-top:14px; border-bottom:1px solid var(--border); }
.zam-instructor-tabs a { position:relative; display:inline-flex; align-items:center; min-height:40px; color:var(--muted); font-size:13px; font-weight:600; text-decoration:none; }
.zam-instructor-tabs a.is-active { color:var(--emerald-text); }
.zam-instructor-tabs a.is-active::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:2px; border-radius:2px; background:var(--emerald); }
.zam-instructor-table { display:grid; overflow-x:auto; }
.zam-row { display:grid; grid-template-columns:minmax(200px,2.2fr) minmax(120px,1.4fr) minmax(110px,1fr) minmax(100px,1fr) minmax(130px,1.1fr) 70px 96px; align-items:center; gap:12px; min-width:900px; padding:12px 4px; border-bottom:1px solid var(--border); font-size:13px; }
.zam-row:last-child { border-bottom:0; }
.zam-row-head { color:var(--muted); font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.zam-row-student { display:flex; align-items:center; gap:10px; min-width:0; }
.zam-row-student > span { display:grid; min-width:0; }
.zam-row-student strong { overflow:hidden; color:var(--ink); font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.zam-row-student small, .zam-row-muted { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.zam-row-progress { display:block; height:6px; margin-bottom:4px; overflow:hidden; border-radius:999px; background:var(--surface-sunken); }
.zam-row-progress i { display:block; height:100%; border-radius:inherit; background:var(--emerald); }
.zam-status { display:inline-flex; padding:4px 10px; border-radius:999px; background:var(--surface-sunken); color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; }
.zam-row-action { min-height:36px !important; padding:0 14px !important; font-size:13px !important; }
.zam-instructor-filters select { max-width:220px; }
/* Lesson thumbnail preview (shows the saved cover, or the newly chosen image before saving) */
.zam-thumb-preview { display:block; width:min(260px,100%); margin:8px 0; overflow:hidden; border:1px solid var(--border); border-radius:12px; aspect-ratio:16/9; background:var(--surface-sunken); }
.zam-thumb-preview[hidden] { display:none; }
.zam-thumb-preview img { width:100%; height:100%; object-fit:cover; }
/* ===== Course video focus mode (student learning page only) =====
   The workspace sidebar, top bars and tab bar are hidden while a student watches a course,
   so the video gets the full width. Every other page keeps the normal layout. */
body:has(.lms-focus) [data-flux-sidebar],
body:has(.lms-focus) [data-flux-sidebar-backdrop],
body:has(.lms-focus) .app-topbar,
body:has(.lms-focus) .zam-mobile-topbar,
body:has(.lms-focus) .zam-mobile-nav { display:none !important; }
body:has(.lms-focus) [data-flux-main] { padding:20px clamp(16px,2.4vw,32px) 32px !important; }
body:has(.lms-focus) .lms-focus { max-width:none; }
.lms-focus-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:10px 14px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.lms-focus-back { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 14px; border:1px solid color-mix(in srgb,var(--emerald) 45%,var(--border)); border-radius:10px; color:var(--emerald-text) !important; font-size:14px; font-weight:600; text-decoration:none; }
.lms-focus-back:hover { background:var(--emerald-soft); }
.lms-focus-title { flex:1; min-width:0; overflow:hidden; color:var(--ink); font-size:16px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.lms-focus-progress { display:block; width:140px; height:7px; overflow:hidden; border-radius:999px; background:var(--surface-sunken); }
.lms-focus-progress i { display:block; height:100%; border-radius:inherit; background:var(--emerald); }
.lms-focus-percent { color:var(--emerald-text); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
@media (max-width:640px) { .lms-focus-progress { display:none; } .lms-focus-title { flex-basis:100%; order:3; font-size:15px; } }

/* Video ~72% on the left, Recent Videos + course content ~28% on the right. */
@media (min-width:1024px) {
  .lms-focus .lms-grid { grid-template-columns:minmax(0,72fr) minmax(300px,28fr); }
  .lms-focus .lms-grid > .lms-rail { max-height:calc(100vh - 110px); }
}
.lms-focus .classroom-learning-player { aspect-ratio:16/9; min-height:0; }

/* Recent Videos */
.lms-recent { padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--border); }
.lms-recent h2 { margin:0 0 12px; color:var(--ink); font-size:17px; font-weight:600; }
.lms-recent-empty { margin:0; color:var(--muted); font-size:13px; }
.lms-recent-list { display:grid; gap:12px; }
.lms-recent-card { display:grid; gap:8px; width:100%; padding:8px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:inherit; text-align:left; cursor:pointer; font:inherit; transition:border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease); }
.lms-recent-card:hover { border-color:color-mix(in srgb,var(--emerald) 40%,var(--border)); }
.lms-recent-card.is-selected { border-color:color-mix(in srgb,var(--emerald) 55%,var(--border)); background:color-mix(in srgb,var(--emerald-soft) 55%,var(--surface)); }
.lms-recent-card:focus-visible { outline:3px solid color-mix(in srgb,var(--emerald) 45%,transparent); outline-offset:2px; }
.lms-recent-thumb { position:relative; display:block; aspect-ratio:16/9; overflow:hidden; border-radius:10px; background:color-mix(in srgb,var(--emerald) 22%,#000); }
.lms-recent-thumb img { width:100%; height:100%; object-fit:cover; }
.lms-recent-thumb-fallback { display:grid; width:100%; height:100%; place-items:center; color:rgb(255 255 255 / .7); font-size:28px; }
.lms-recent-play { position:absolute; inset:0; display:grid; place-items:center; }
.lms-recent-play svg { width:40px; height:40px; padding:9px; border-radius:999px; background:rgb(255 255 255 / .92); fill:var(--emerald); box-shadow:0 4px 14px rgb(0 0 0 / .25); }
.lms-recent-badge { position:absolute; top:8px; left:8px; padding:3px 8px; border-radius:999px; background:var(--emerald-soft); color:var(--emerald-text); font-size:11px; font-weight:600; }
.lms-recent-copy { display:grid; gap:2px; padding:0 4px 2px; }
.lms-recent-copy strong { color:var(--ink); font-size:14px; font-weight:600; line-height:1.35; }
.lms-recent-copy small { color:var(--muted); font-size:12px; }

/* Instructor dashboard on phones: stats stack icon over text, filters full width, student rows become cards. */
@media (max-width:640px) {
  .zam-stat { flex-direction:column; align-items:flex-start; gap:10px; padding:14px; }
  .zam-stat-icon { width:40px; height:40px; border-radius:12px; }
  .zam-stat-icon svg { width:20px; height:20px; }
  .zam-stat p { font-size:12px; }
  .zam-stat strong { font-size:24px; }
  .zam-instructor-filters { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; }
  .zam-instructor-filters input { grid-column:1 / -1; width:100%; }
  .zam-instructor-filters select { width:100%; max-width:none; }
  .zam-instructor-table { overflow:visible; }
  .zam-row-head { display:none; }
  .zam-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; min-width:0; padding:14px 0; }
  .zam-row-student, .zam-row-course, .zam-row-cta { grid-column:1 / -1; }
  .zam-row [data-label]::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
  .zam-row-course { white-space:normal; }
  .zam-row-cta .zam-row-action { width:100%; justify-content:center; min-height:44px !important; }
}

/* View as another account (owners): banner shown while viewing, picker page, profile entry. */
.view-as-banner { display:flex; align-items:center; gap:12px; margin:0 auto 18px; max-width:72rem; padding:12px 14px; border:1px solid color-mix(in srgb,var(--honey) 45%,var(--border)); border-radius:16px; background:var(--honey-soft); color:var(--honey-text); }
.view-as-banner-icon { display:grid; flex:0 0 auto; width:36px; height:36px; place-items:center; border-radius:11px; background:color-mix(in srgb,var(--honey) 18%,transparent); }
.view-as-banner-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.view-as-banner p { flex:1; min-width:0; margin:0; font-size:13.5px; line-height:1.4; }
.view-as-banner strong { font-weight:600; }
.view-as-banner small { display:block; margin-top:2px; font-size:12.5px; opacity:.9; }
.view-as-banner-back { min-height:44px; padding:0 16px; border:1px solid color-mix(in srgb,var(--honey) 55%,var(--border)); border-radius:12px; background:var(--surface); color:var(--ink); font-size:13.5px; font-weight:600; white-space:nowrap; cursor:pointer; }
.view-as-banner-back:hover { border-color:var(--honey); }
.view-as-banner-back:focus-visible { outline:2px solid var(--emerald); outline-offset:2px; }
@media (max-width:640px) {
  .view-as-banner { flex-wrap:wrap; }
  .view-as-banner form { width:100%; }
  .view-as-banner-back { width:100%; }
}
.view-as { display:grid; gap:16px; }
.view-as-note { margin:0; color:var(--muted); font-size:13.5px; line-height:1.55; }
.view-as-search { display:flex; gap:8px; }
.view-as-search input { flex:1; min-width:0; min-height:44px; padding:0 12px; border:1px solid var(--border-control, var(--border)); border-radius:12px; background:var(--surface); color:var(--ink); font-size:14px; }
.view-as-roles { display:flex; flex-wrap:wrap; gap:8px; }
.view-as-roles a { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--muted); font-size:13px; font-weight:600; text-decoration:none; }
.view-as-roles a:hover { color:var(--ink); }
.view-as-roles a.is-active { border-color:transparent; background:var(--emerald-soft); color:var(--emerald-text); }
.view-as-list { display:grid; margin:0; padding:0; list-style:none; border:1px solid var(--border); border-radius:18px; background:var(--surface); }
.view-as-row { display:flex; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid var(--border); }
.view-as-row:last-child { border-bottom:0; }
.view-as-who { display:grid; flex:1; min-width:0; }
.view-as-who strong { overflow:hidden; color:var(--ink); font-size:14px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.view-as-who small { overflow:hidden; color:var(--muted); font-size:12.5px; text-overflow:ellipsis; white-space:nowrap; }
.view-as-who span { margin-top:2px; color:var(--emerald-text); font-size:12px; font-weight:600; }
.view-as-go { min-height:44px !important; white-space:nowrap; }
.view-as-empty { padding:28px 16px; border:1px dashed var(--border); border-radius:18px; color:var(--muted); font-size:13.5px; text-align:center; }
.view-as-empty p { margin:0; }
.view-as-empty .font-semibold { color:var(--ink); }
.view-as-entry { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-top:24px; }
.view-as-entry > div { flex:1 1 240px; }

/* ===== Learning page: Recent Videos is the single lesson list (v135) =====
   Player ~72% left, list ~28% right, no nested scrolling. Locked lessons stay visible: blurred thumbnail,
   lock and the reason, never playable. Below 1024px the list moves under the player as a grid. */
@media (min-width:1024px) {
  .lms-focus .lms-grid { grid-template-columns:minmax(0,72fr) minmax(280px,28fr); gap:24px; }
}
.lms-focus .lms-grid > .lms-rail { position:static; max-height:none; overflow:visible; padding:18px; }
.lms-focus .lms-recent { margin:0; padding:0; border:0; }
.lms-recent-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; }
.lms-recent-head h2 { margin:0; color:var(--ink); font-size:17px; font-weight:600; letter-spacing:-.015em; }
.lms-recent-head span { color:var(--muted); font-size:12.5px; font-weight:500; font-variant-numeric:tabular-nums; white-space:nowrap; }
.lms-recent-note { margin:0 0 14px; padding:10px 12px; border:1px solid color-mix(in srgb,var(--honey) 40%,var(--border)); border-radius:12px; background:var(--honey-soft); color:var(--honey-text); font-size:12.5px; line-height:1.45; }
.lms-recent-note[hidden] { display:none; }
.lms-focus .lms-recent-list { display:grid; grid-template-columns:1fr; gap:14px; }
@media (max-width:1023px) {
  .lms-focus .lms-recent-list { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
}
@media (max-width:479px) {
  .lms-focus .lms-recent-list { grid-template-columns:1fr; }
}
.lms-focus .lms-recent-card { display:flex; flex-direction:column; gap:10px; width:100%; margin:0; padding:10px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:inherit; text-align:left; cursor:pointer; font:inherit; transition:border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.lms-focus .lms-recent-card:hover:not(.is-locked) { border-color:color-mix(in srgb,var(--emerald) 45%,var(--border)); box-shadow:var(--shadow-card); }
.lms-focus .lms-recent-card:focus-visible { outline:2px solid var(--emerald); outline-offset:2px; }
.lms-focus .lms-recent-card.is-selected { border-color:var(--emerald); background:color-mix(in srgb,var(--emerald-soft) 60%,var(--surface)); }
.lms-focus .lms-recent-thumb { position:relative; display:block; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:10px; background:var(--forest); }
.lms-focus .lms-recent-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.lms-focus .lms-recent-thumb-fallback { display:block; width:100%; height:100%; background:linear-gradient(135deg,color-mix(in srgb,var(--emerald) 55%,var(--forest)),var(--forest)); }
.lms-focus .lms-recent-play { position:absolute; inset:0; display:grid; place-items:center; }
.lms-focus .lms-recent-play svg { width:40px; height:40px; padding:10px; border-radius:999px; background:var(--surface); fill:var(--emerald); box-shadow:var(--shadow-card); }
.lms-focus .lms-recent-play svg.is-reading { fill:none; stroke:var(--emerald); stroke-width:1.8; stroke-linejoin:round; }
.lms-focus .lms-recent-badge { position:absolute; top:8px; left:8px; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:600; line-height:1.4; }
.lms-recent-badge.is-done { background:var(--emerald-soft); color:var(--emerald-text); }
.lms-recent-badge.is-review { background:var(--honey-soft); color:var(--honey-text); }
.lms-recent-badge.is-revise { background:var(--rose-soft); color:var(--rose-text); }
.lms-recent-badge.is-locked { background:var(--surface); color:var(--ink); }
.lms-recent-now { position:absolute; bottom:8px; left:8px; display:none; padding:3px 9px; border-radius:999px; background:var(--emerald); color:var(--on-emerald); font-size:11px; font-weight:600; }
.lms-recent-card.is-selected .lms-recent-now { display:inline-block; }
.lms-focus .lms-recent-copy { display:grid; gap:3px; min-width:0; padding:0 2px 2px; }
.lms-focus .lms-recent-copy strong { display:-webkit-box; overflow:hidden; color:var(--ink); font-size:14px; font-weight:600; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.lms-focus .lms-recent-copy small { overflow:hidden; color:var(--muted); font-size:12px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.lms-focus .lms-recent-copy em { display:-webkit-box; overflow:hidden; color:var(--muted); font-size:12px; font-style:normal; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
/* Locked: blurred, muted thumbnail with a clear lock; text stays readable. */
.lms-focus .lms-recent-card.is-locked { cursor:not-allowed; background:var(--surface-sunken); }
.lms-recent-card.is-locked .lms-recent-thumb img, .lms-recent-card.is-locked .lms-recent-thumb-fallback { filter:blur(7px) saturate(.55); transform:scale(1.12); }
.lms-recent-card.is-locked .lms-recent-thumb::after { content:""; position:absolute; inset:0; background:color-mix(in srgb,var(--forest) 38%,transparent); }
.lms-recent-lock { position:absolute; inset:0; z-index:1; display:grid; place-items:center; }
.lms-recent-lock svg { width:42px; height:42px; padding:10px; border-radius:999px; background:var(--surface); fill:none; stroke:var(--ink); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; box-shadow:var(--shadow-card); }
.lms-recent-card.is-locked .lms-recent-badge { z-index:2; }
.lms-recent-card.is-locked .lms-recent-copy strong { color:var(--muted); }
/* Top bar: lesson count and the course's review state (from the old progress card). */
.lms-focus-count { color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.lms-focus-state { padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
.lms-focus-state.is-done { background:var(--emerald-soft); color:var(--emerald-text); }
.lms-focus-state.is-review { background:var(--honey-soft); color:var(--honey-text); }
.lms-focus-state.is-revise { background:var(--rose-soft); color:var(--rose-text); }
@media (max-width:640px) { .lms-focus-count { order:4; } .lms-focus-state { order:5; } }
/* Lesson tab: course facts (teacher, level, lessons) that used to sit in the old "About" panel. */
.lms-course-facts { display:flex; flex-wrap:wrap; gap:8px 24px; margin:18px 0 0; padding-top:16px; border-top:1px solid var(--border); }
.lms-course-facts div { display:grid; gap:2px; }
.lms-course-facts dt { color:var(--muted); font-size:12px; }
.lms-course-facts dd { margin:0; color:var(--ink); font-size:13.5px; font-weight:500; }
.lms-course-about { margin:12px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
@media (min-width:1024px) { .lms-focus .lms-main.is-sticky { position:sticky; top:20px; } }
@media (max-width:1023px) { .lms-focus-title { flex-basis:100%; order:3; } }
@media (min-width:641px) and (max-width:1023px) { .lms-focus-progress { width:96px; } }

/* ===== Salaries (Finance): Employee or Custom name, one record list ===== */
.salary-payee-type { display:inline-flex; gap:4px; margin:0 0 16px; padding:4px; border:1px solid var(--border); border-radius:14px; background:var(--surface-sunken); }
.salary-payee-type label { position:relative; display:block; cursor:pointer; }
.salary-payee-type input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.salary-payee-type span { display:flex; align-items:center; min-height:44px; padding:0 18px; border-radius:10px; color:var(--muted); font-size:14px; font-weight:600; }
.salary-payee-type input:checked + span { background:var(--surface); color:var(--emerald-text); box-shadow:var(--shadow-card); }
.salary-payee-type input:focus-visible + span { outline:2px solid var(--emerald); outline-offset:2px; }
.salary-form-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); align-items:end; gap:14px; }
/* The switch shows one field; the server also only reads the one that matches it. */
.salary-form:has(input[name="payee_type"][value="custom"]:checked) .salary-field-employee { display:none; }
.salary-form:has(input[name="payee_type"][value="employee"]:checked) .salary-field-custom { display:none; }
.salary-no-employees { margin:0; padding:10px 12px; border:1px solid color-mix(in srgb,var(--honey) 40%,var(--border)); border-radius:12px; background:var(--honey-soft); color:var(--honey-text); font-size:13px; line-height:1.45; }
.salary-save { min-height:44px; }
.salary-extras { margin-top:14px; }
.salary-extras > summary { display:inline-flex; align-items:center; min-height:44px; color:var(--emerald-text); font-size:13.5px; font-weight:600; cursor:pointer; }
.salary-extras-fields { display:grid; grid-template-columns:minmax(150px,1fr) minmax(0,3fr); gap:14px; margin-top:4px; }
.salary-records-top { padding:20px; }
.salary-records-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:14px; }
.salary-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.salary-filters input { min-height:44px; padding:0 12px; border:1px solid var(--border-control); border-radius:12px; background:var(--surface); color:var(--ink); font-size:14px; }
.salary-filters input[type="search"] { width:170px; }
.salary-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin-top:16px; }
.salary-total { display:grid; gap:4px; padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:var(--surface-sunken); }
.salary-total span { color:var(--muted); font-size:12.5px; font-weight:500; }
.salary-total strong { color:var(--ink); font-size:19px; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
.salary-total small { color:var(--muted); font-size:12px; }
.salary-table { width:100%; }
.salary-cell-name .status-chip { margin-left:6px; }
.salary-edit-form { display:grid; gap:8px; min-width:280px; margin-top:12px; }
.salary-edit-form label { display:grid; gap:4px; }
.salary-edit-form label > span { color:var(--muted); font-size:12px; font-weight:500; }
@media (max-width:640px) {
  .salary-payee-type { display:flex; }
  .salary-payee-type label { flex:1; }
  .salary-payee-type span { justify-content:center; padding:0 10px; }
  .salary-form-fields { grid-template-columns:1fr; }
  .salary-extras-fields { grid-template-columns:1fr; }
  .salary-records-top { padding:16px; }
  .salary-filters, .salary-filters label { width:100%; }
  .salary-filters input, .salary-filters input[type="search"] { width:100%; }
  /* Records become cards, so the amounts and Mark paid are visible without sideways scrolling. */
  .salary-table, .salary-table tbody { display:block; }
  .salary-table thead { display:none; }
  .salary-table .app-table-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; padding:14px 16px; }
  .salary-table .app-table-row > td { display:block; padding:0; text-align:left; }
  .salary-table .app-table-row > td[data-label]::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
  .salary-table .app-table-row > td.salary-cell-name, .salary-table .app-table-row > td.salary-cell-action { grid-column:1 / -1; padding:0 !important; }
  .salary-edit-form { min-width:0; }
  .salary-table .salary-empty-row, .salary-table .salary-empty-row > td { display:block; }
}

/* ===== Income & expenses: filters scope everything below them; charts use the theme's --chart-* tokens ===== */
.fin-fill-1 { background:var(--chart-1); } .fin-fill-2 { background:var(--chart-2); } .fin-fill-3 { background:var(--chart-3); } .fin-fill-4 { background:var(--chart-4); } .fin-fill-other { background:var(--chart-other); }
.fin-stroke-1 { stroke:var(--chart-1); } .fin-stroke-2 { stroke:var(--chart-2); } .fin-stroke-3 { stroke:var(--chart-3); } .fin-stroke-4 { stroke:var(--chart-4); } .fin-stroke-other { stroke:var(--chart-other); }
.fin-swatch { display:inline-block; flex:0 0 auto; width:10px; height:10px; border-radius:3px; }
.fin-filters { display:grid; gap:14px; padding:18px; }
.fin-tabs { display:flex; gap:4px; overflow-x:auto; padding-bottom:12px; border-bottom:1px solid var(--border); }
.fin-tabs a { display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:12px; color:var(--muted); font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; }
.fin-tabs a:hover { background:var(--surface-sunken); color:var(--ink); }
.fin-tabs a.is-active { background:var(--emerald-soft); color:var(--emerald-text); }
.fin-presets { display:flex; flex-wrap:wrap; gap:8px; }
.fin-presets a { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--muted); font-size:13px; font-weight:600; text-decoration:none; }
.fin-presets a:hover { border-color:var(--border-strong); color:var(--ink); }
.fin-presets a.is-active { border-color:var(--emerald); background:var(--emerald-soft); color:var(--emerald-text); }
.fin-filter-form { display:grid; grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); align-items:end; gap:12px; }
.fin-filter-form label > span { display:block; color:var(--muted); font-size:12.5px; font-weight:600; }
.fin-filter-search { grid-column:span 2; }
.fin-filter-actions { display:flex; flex-wrap:wrap; gap:8px; grid-column:span 2; }
.fin-filter-foot { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding-top:12px; border-top:1px solid var(--border); }
.fin-result { margin:0 6px 0 0; color:var(--muted); font-size:13.5px; }
.fin-result strong { color:var(--ink); font-weight:600; }
.fin-chip { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:0 10px; border-radius:999px; background:var(--emerald-soft); color:var(--emerald-text); font-size:12.5px; font-weight:600; text-decoration:none; }
.fin-chip:hover { box-shadow:inset 0 0 0 1px var(--emerald); }
.fin-customise { position:relative; margin-left:auto; }
.fin-customise > summary { display:inline-flex; align-items:center; min-height:44px; padding:0 4px; color:var(--emerald-text); font-size:13.5px; font-weight:600; cursor:pointer; }
.fin-customise-panel { position:absolute; z-index:15; right:0; display:grid; gap:8px; width:270px; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:var(--shadow-menu); }
.fin-customise-panel p { margin:0; color:var(--muted); font-size:12.5px; }
.fin-customise-panel label { display:flex; align-items:center; gap:8px; min-height:32px; color:var(--ink); font-size:13.5px; cursor:pointer; }
.fin-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; }
[data-fin-section][hidden] { display:none !important; }
.fin-chart-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:10px 16px; margin-bottom:16px; }
.fin-chart-head h2 { margin:0; color:var(--ink); font-size:18px; font-weight:600; }
.fin-chart-head p { margin:3px 0 0; color:var(--muted); font-size:13px; }
.fin-key { display:flex; gap:14px; color:var(--muted); font-size:12.5px; font-weight:600; }
.fin-key span { display:inline-flex; align-items:center; gap:6px; }
.fin-by { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:12.5px; font-weight:600; }
.fin-by select { min-height:40px; padding:0 30px 0 10px; border:1px solid var(--border-control); border-radius:10px; background-color:var(--surface); color:var(--ink); font-size:13.5px; }
.fin-trend-set { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:24px; }
.fin-trend figcaption, .fin-donut figcaption { margin-bottom:10px; color:var(--ink); font-size:13.5px; font-weight:600; }
.fin-trend { margin:0; min-width:0; }
.fin-trend-plot { position:relative; display:grid; grid-template-rows:200px auto; padding-left:44px; }
.fin-trend-grid { position:absolute; inset:0 0 auto 0; display:flex; flex-direction:column; justify-content:space-between; height:200px; pointer-events:none; }
.fin-trend-grid span { position:relative; display:block; height:0; border-top:1px solid var(--border); }
.fin-trend-grid b { position:absolute; top:-8px; left:0; color:var(--muted); font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.fin-trend-bars { position:relative; display:grid; align-items:end; gap:2px; height:200px; margin-left:0; }
.fin-trend-col { display:flex; align-items:flex-end; justify-content:center; gap:2px; height:100%; min-width:0; border-radius:4px; cursor:default; }
.fin-trend-col:hover, .fin-trend-col:focus-visible { background:color-mix(in srgb,var(--ink) 6%,transparent); }
.fin-trend-col:focus-visible { outline:2px solid var(--emerald); outline-offset:1px; }
.fin-bar { display:block; flex:1 1 0; max-width:18px; min-width:1px; border-radius:4px 4px 0 0; }
.fin-trend-labels { display:grid; gap:2px; margin-top:6px; color:var(--muted); font-size:11px; text-align:center; white-space:nowrap; }
.fin-trend-labels span { min-width:0; overflow:visible; }
.fin-table-view { margin-top:12px; }
.fin-table-view > summary { display:inline-flex; align-items:center; min-height:36px; color:var(--emerald-text); font-size:13px; font-weight:600; cursor:pointer; }
.fin-table-view table { width:100%; margin-top:6px; font-size:13px; }
.fin-table-view th { padding:6px 8px; color:var(--muted); font-size:11.5px; font-weight:600; text-align:left; text-transform:uppercase; letter-spacing:.04em; }
.fin-table-view td { padding:6px 8px; border-top:1px solid var(--border); color:var(--ink); font-variant-numeric:tabular-nums; }
.fin-pies { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr)); gap:18px; }
.fin-pies > section[hidden] + section { grid-column:1 / -1; }
.fin-donut { margin:0 0 18px; }
.fin-donut:last-child { margin-bottom:0; }
.fin-donut-body { display:flex; flex-wrap:wrap; align-items:center; gap:18px 22px; }
.fin-donut-ring { position:relative; flex:0 0 170px; width:170px; height:170px; }
.fin-donut-ring svg { display:block; width:100%; height:100%; }
.fin-slice { fill:none; stroke-width:24; cursor:default; transition:stroke-width .12s ease; }
.fin-slice:hover { stroke-width:28; }
.fin-donut-total { position:absolute; inset:0; display:grid; place-content:center; text-align:center; pointer-events:none; }
.fin-donut-total span { color:var(--muted); font-size:11.5px; }
.fin-donut-total strong { color:var(--ink); font-size:20px; font-weight:600; letter-spacing:-.01em; }
.fin-legend { flex:1 1 200px; display:grid; gap:2px; min-width:0; margin:0; padding:0; list-style:none; }
.fin-legend li { display:grid; grid-template-columns:auto minmax(0,1fr) auto 38px; align-items:center; gap:8px; min-height:32px; font-size:13px; }
.fin-legend a, .fin-legend li > span { overflow:hidden; color:var(--ink); text-overflow:ellipsis; white-space:nowrap; }
.fin-legend a { text-decoration:underline; text-decoration-color:var(--border-strong); text-underline-offset:3px; }
.fin-legend a:hover { color:var(--emerald-text); text-decoration-color:currentColor; }
.fin-legend strong { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.fin-legend small { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; text-align:right; }
.fin-chart-empty { margin:0; padding:26px 14px; border:1px dashed var(--border); border-radius:14px; color:var(--muted); font-size:13px; text-align:center; }
.fin-table-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; padding:16px 20px; }
.fin-table-head h2 { margin:0; color:var(--ink); font-size:18px; font-weight:600; }
.fin-table-head p { margin:2px 0 0; color:var(--muted); font-size:13px; }
.fin-table { width:100%; }
.fin-collapse { padding:0; }
.fin-collapse > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; padding:12px 20px; cursor:pointer; }
.fin-collapse > summary > span { display:grid; gap:2px; }
.fin-collapse > summary strong { color:var(--ink); font-size:16px; font-weight:600; }
.fin-collapse > summary small { color:var(--muted); font-size:12.5px; }
.fin-collapse-body { padding:4px 20px 20px; }
.fin-account-list { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 0; padding:0; list-style:none; }
.fin-account-list li { padding:3px 10px; border-radius:999px; background:var(--surface-sunken); color:var(--ink); font-size:12.5px; }
.fin-tip { position:fixed; z-index:60; display:grid; gap:3px; max-width:260px; padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:var(--surface-raised); color:var(--ink); box-shadow:var(--shadow-menu); font-size:12.5px; pointer-events:none; }
.fin-tip[hidden] { display:none; }
.fin-tip strong { font-weight:600; }
.fin-tip span { display:flex; align-items:center; gap:6px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:pre; }
@media (max-width:640px) {
  .fin-filters { padding:14px; }
  .fin-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fin-filter-search, .fin-filter-actions { grid-column:1 / -1; }
  .fin-filter-actions > * { flex:1; justify-content:center; }
  .fin-customise { margin-left:0; width:100%; }
  .fin-customise-panel { position:static; width:auto; margin-top:6px; }
  .fin-kpis { grid-template-columns:1fr; }
  .fin-trend-plot { grid-template-rows:170px auto; padding-left:36px; }
  .fin-trend-grid, .fin-trend-bars { height:170px; }
  .fin-donut-ring { margin:0 auto; }
  .fin-legend { flex-basis:100%; }
  /* Entries become cards, so amounts and actions are visible without sideways scrolling. */
  .fin-table, .fin-table tbody { display:block; }
  .fin-table thead { display:none; }
  .fin-table .app-table-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; padding:14px 16px; }
  .fin-table .app-table-row > td { display:block; padding:0 !important; text-align:left; white-space:normal; }
  .fin-table .app-table-row > td[data-label]::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
  .fin-cell-wide, .fin-cell-actions { grid-column:1 / -1; }
  .fin-cell-actions > div { flex-direction:row; flex-wrap:wrap; align-items:center; }
  .fin-table .fin-empty-row, .fin-table .fin-empty-row > td { display:block; }
}
/* Charts sit directly on their panel: the general figure and details styles add a grey box that lowers contrast. */
.finance-page .fin-trend, .finance-page .fin-donut { padding:0; border:0; border-radius:0; background:transparent !important; box-shadow:none; }
.finance-page .fin-table-view, .finance-page .fin-table-view[open] { padding:0; border:0; border-radius:0; background:transparent !important; box-shadow:none; }
.finance-page .fin-table-view > summary { padding:0; background:transparent; }
.finance-page .fin-customise, .finance-page .fin-customise[open] { padding:0; border:0; background:transparent !important; box-shadow:none; }
.finance-page .fin-customise > summary { padding:0 4px; border:0; background:transparent; }
.finance-page .fin-tabs a { min-height:44px; }

/* Subscriptions: a separate monthly record, left out of overall totals. */
.fin-note { margin:0; padding:12px 14px; border:1px solid color-mix(in srgb,var(--sky) 35%,var(--border)); border-radius:14px; background:var(--sky-soft); color:var(--ink); font-size:13.5px; line-height:1.5; }
.fin-note strong { font-weight:600; }
.fin-note a { color:var(--emerald-text); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.sub-record .fin-chart-head a { flex:0 0 auto; }
.sub-record-month { margin-top:10px; }
.sub-record-month > summary { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; min-height:52px; padding:8px 15px; }
.sub-record-month > summary strong { color:var(--ink); font-size:14.5px; font-weight:600; }
.sub-record-month > summary span { color:var(--muted); font-size:13px; font-weight:500; font-variant-numeric:tabular-nums; }
.sub-record-month ul { margin:0; padding:0 15px 8px; list-style:none; }
.sub-record-month li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 14px; padding:10px 0; border-top:1px solid var(--border); font-size:13.5px; }
.sub-record-month li strong { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.sub-record-name { display:grid; gap:1px; min-width:0; color:var(--ink); font-weight:500; }
.sub-record-name small { color:var(--muted); font-size:12px; font-weight:400; }
