/* SVL Meet design tokens + base components. Agent B may extend; keep these class names. */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --surface-2: #f0eee8; --line: #e3e0d8;
  --fg: #1b1a17; --muted: #6b6860; --brand: #2b2a66; --brand-2: #4a48b8; --accent: #f29b2e; --accent-fg: #1b1a17; --on-brand: #ffffff;
  --ok: #1f8a4c; --warn: #b7791f; --danger: #c0392b; --info: #2271b1;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,20,40,.06), 0 8px 24px -12px rgba(20,20,40,.18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121217; --surface: #1b1b23; --surface-2: #23232e; --line: #2e2e3a;
    --fg: #ececf1; --muted: #a2a1ad; --brand: #9a98ff; --brand-2: #b8b6ff; --accent: #f6ad4c; --accent-fg: #121217; --on-brand: #15152b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121217; --surface: #1b1b23; --surface-2: #23232e; --line: #2e2e3a;
  --fg: #ececf1; --muted: #a2a1ad; --brand: #9a98ff; --brand-2: #b8b6ff; --accent: #f6ad4c; --accent-fg: #121217; --on-brand: #15152b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; } h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; } .muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.container { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; transition: .15s; }
.btn:hover { border-color: var(--brand-2); text-decoration: none; } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-danger { color: var(--danger); } .btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; } .btn-lg { padding: 13px 22px; font-size: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; } .form-row label { font-weight: 600; font-size: 13px; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand-2); }
.help { font-size: 12px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; } .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } .table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); } .badge-warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge-danger { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); } .badge-info { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.badge-live { background: var(--danger); color: #fff; animation: pulse 1.6s infinite; } @keyframes pulse { 50% { opacity: .6; } }
.stat { display: flex; flex-direction: column; gap: 2px; } .stat b { font-size: 26px; font-variant-numeric: tabular-nums; } .stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.code { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .08em; font-weight: 700; color: var(--brand); }
.pin { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .25em; font-weight: 700; }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--brand); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 30px; height: 30px; flex: none; }
/* wordmark: heavy "SVL" in brand navy, "Meet" in the signature green, tight and on one baseline */
.brand-word { display: inline-flex; align-items: baseline; gap: 5px; font-size: 19px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand-word b { font-weight: 900; color: var(--brand); }
.brand-word i { font-style: normal; font-weight: 500; color: var(--brand-2); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; } .nav a { padding: 7px 11px; border-radius: 8px; color: var(--fg); font-weight: 600; font-size: 14px; white-space: nowrap; } .nav a:hover { background: var(--surface-2); text-decoration: none; } .nav a.active { background: var(--brand); color: #fff; }
.toast-host { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; } .toast.ok { background: var(--ok); color: #fff; } .toast.err { background: var(--danger); color: #fff; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; padding: 22px; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.hidden { display: none !important; }
@media (max-width: 640px) { h1 { font-size: 1.6rem; } .card { padding: 16px; } .topbar .wrap { gap: 10px; } }

/* ---------- Agent B additions (pages, forms, landing). Existing classes above are untouched. ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }
.btn-ghost { background: transparent; border-color: transparent; } .btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-block { width: 100%; justify-content: center; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--line) var(--line) var(--brand-2) var(--brand-2); animation: spin .7s linear infinite; }
.btn-primary.busy::after { border-color: rgba(255,255,255,.35) rgba(255,255,255,.35) #fff #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.narrow { max-width: 480px; margin: 0 auto; padding: 32px 16px 56px; }
.narrow-md { max-width: 680px; margin: 0 auto; padding: 32px 16px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px; }
.page-head h1 { margin: 0; font-size: 1.6rem; } .page-head p { margin: 4px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.form-row.check { flex-direction: row; align-items: center; gap: 10px; } .form-row.check input { width: auto; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); padding: 0; }
textarea { min-height: 90px; resize: vertical; }
.err { color: var(--danger); font-size: 13px; font-weight: 600; }
.note { background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.note-info { background: color-mix(in srgb, var(--info) 10%, transparent); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.note-danger { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
/* chips (multi-select toggles) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .12s; }
.chip:hover { border-color: var(--brand-2); } .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* OTP boxes */
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 100%; max-width: 56px; height: 56px; padding: 0; text-align: center; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; border-radius: 10px; }
/* copy box: code/pin + button */
.copybox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.copybox .code, .copybox .pin { word-break: break-all; }
.pin-reveal { text-align: center; padding: 20px; border: 2px dashed var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pin-reveal .pin { font-size: 2.4rem; display: block; margin: 6px 0 10px; }
pre.handover { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; }
/* key-value list */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; } .kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* dashboard tiles / skeleton */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; min-height: 1em; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 6%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading { color: var(--muted); padding: 24px; text-align: center; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 6px; animation: pulse 1.6s infinite; vertical-align: middle; }
/* classroom cards */
.class-card { display: flex; flex-direction: column; gap: 10px; }
.class-card .title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.class-card .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.class-card .foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
/* schedule editor rows */
.sched-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
/* week grid */
.week { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); font-size: 12px; }
.week .wh { padding: 8px 4px; text-align: center; font-weight: 700; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface-2); }
.week .wh small { display: block; color: var(--muted); font-weight: 500; } .week .wh.today { color: var(--brand); }
.week .wt { padding: 2px 6px; color: var(--muted); text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.week .wc { position: relative; border-left: 1px solid var(--line); border-top: 1px solid var(--line); min-height: 44px; }
.week .wc.today { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.week .ev { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: 3px 6px; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border-left: 3px solid var(--brand); color: var(--fg); overflow: hidden; line-height: 1.25; cursor: pointer; z-index: 1; }
.week .ev.meeting { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-left-color: var(--accent); }
.week .ev.past { opacity: .55; } .week .ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week .ev:hover, .week .ev:focus-visible { z-index: 2; box-shadow: var(--shadow); }
.day-list .day { margin-bottom: 18px; } .day-list .day h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.day-list .item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; border-left: 4px solid var(--brand); }
.day-list .item.meeting { border-left-color: var(--accent); } .day-list .item .time { font-family: var(--mono); font-size: 13px; min-width: 96px; }
@media (max-width: 760px) { .week { display: none; } }
@media (min-width: 761px) { .day-list { display: none; } }
/* filters / toolbars */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; } .toolbar input, .toolbar select { width: auto; min-width: 160px; }
.table td .actions { gap: 4px; } .table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:hover td { background: color-mix(in srgb, var(--fg) 3%, transparent); }
/* settings console */
.setting { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.setting:last-child { border-bottom: 0; } .setting .lbl b { display: block; } .setting .val { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.setting .val input { flex: 1 1 220px; } .setting .current { font-family: var(--mono); font-size: 13px; }
@media (max-width: 640px) { .setting { grid-template-columns: 1fr; } }
details.group { margin-bottom: 14px; } details.group > summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 10px; } details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: "▸"; color: var(--muted); transition: .15s; } details.group[open] > summary::before { transform: rotate(90deg); }
/* public topbar + landing */
.topbar.public .wrap { justify-content: space-between; }
.hero { padding: 56px 0 32px; } .hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; max-width: 14ch; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 32px 0 16px; } }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-fg); background: var(--accent); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.section { padding: 40px 0; } .section h2 { font-size: 1.6rem; margin-bottom: 20px; }
.feature { display: flex; flex-direction: column; gap: 8px; } .feature .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-size: 20px; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .step { counter-increment: step; position: relative; padding-left: 52px; } .steps .step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; color: var(--muted); font-size: 13px; } .footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
/* misc */
.center { text-align: center; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-sm { margin-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.list-plain { list-style: none; margin: 0; padding: 0; } .list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); } .list-plain li:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-weight: 700; flex: none; }
.modal h2 { margin-bottom: 14px; } .modal .modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal-back[hidden] { display: none; }
.big-404 { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.04em; }
.nav-toggle { display: none; }
@media (max-width: 640px) { .topbar .nav { gap: 2px; } .topbar .nav a { padding: 6px 8px; font-size: 13px; } .topbar .wrap > .row .small { display: none; } }
.brand { white-space: nowrap; }
@media (max-width: 480px) { .topbar.public .btn-ghost { display: none; } .topbar.public .wrap { gap: 8px; } }
.toolbar input[type="checkbox"] { min-width: 0; width: 16px; }
/* dark: brand is a light lavender, so filled brand surfaces need dark text */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.btn-primary, .nav a.active, .chip[aria-pressed="true"], .avatar, .steps .step::before) { color: #121217; } }
:root[data-theme="dark"] :is(.btn-primary, .nav a.active, .chip[aria-pressed="true"], .avatar, .steps .step::before) { color: #121217; }
/* pricing link in the public topbar: plain like a ghost button, but kept on phones */
.topbar.public .nav-plain { background: transparent; border-color: transparent; } .topbar.public .nav-plain:hover, .topbar.public .nav-plain.active { background: var(--surface-2); border-color: transparent; }
@media (max-width: 380px) { .topbar.public .nav-plain { padding-inline: 6px; } }
