/* ============================================================
   THE BLUEPRINT — operational design system (LIGHT, single theme)
   One stylesheet. Gold = signal, not decoration. Flat, dense, neutral.
   Legacy token names are remapped to light values so existing markup
   (inline var(--white)/var(--glass)/var(--navy-mid) etc.) resolves light.
   ============================================================ */

:root {
  --bg:#F6F7F9; --surface:#FFFFFF; --surface-2:#FBFBFC; --surface-hover:#F2F3F6;
  --border:#E7E9ED; --border-strong:#D7DAE0;
  --ink:#16181D; --ink-2:#565C68; --ink-3:#8A909C;
  --gold:#C9A84C; --gold-ink:#8A6D1F; --gold-soft:#F6EFD8; --gold-line:#E7D9A8;
  --green:#1F8A5B; --green-bg:#E7F4EE; --red:#C0392B; --red-bg:#FBEBE9;
  --amber:#B7791F; --amber-bg:#FBF1DD; --blue:#2C6FCF; --blue-bg:#E9F0FB;
  --btn-ink:#1B1E24; --btn-ink-hover:#2C313A;
  --r:8px; --r-sm:6px; --r-xs:4px; --r-pill:999px;
  --shadow-sm:0 1px 2px rgba(16,18,23,.06);
  --shadow-pop:0 1px 2px rgba(16,18,23,.06), 0 8px 24px rgba(16,18,23,.10);
  --sidebar-w:248px; --topbar-h:52px;
  --font:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:ui-monospace,'SF Mono','JetBrains Mono',Menlo,monospace;
  --focus:0 0 0 3px rgba(138,109,31,.18);
  /* legacy token remap → light */
  --navy:#FFFFFF; --navy-mid:#FFFFFF; --navy-light:#F2F3F6; --navy-surface:#FFFFFF;
  --white:#16181D; --white-dim:#565C68; --glass:#FBFBFC; --glass-border:#E7E9ED;
  --gold-text:#8A6D1F; --gold-light:#B8941F; --gold-dim:#F6EFD8; --gold-border:#E7D9A8;
  --text:#16181D; --text-2:#565C68; --text-3:#8A909C; --radius:8px; --radius-sm:6px;
  --danger:#C0392B; --success:#1F8A5B;
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; }
body { font-family:var(--font); background:var(--bg); color:var(--ink); font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
body::after { display:none !important; content:none !important; }
::selection { background:var(--gold-soft); }
*::-webkit-scrollbar { width:10px; height:10px; }
*::-webkit-scrollbar-thumb { background:#D6D9DF; border-radius:8px; border:2px solid transparent; background-clip:padding-box; }
*::-webkit-scrollbar-thumb:hover { background:#C2C6CE; background-clip:padding-box; border:2px solid transparent; }
*::-webkit-scrollbar-track { background:transparent; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.t-page{font-size:20px;font-weight:600;letter-spacing:-.01em;line-height:1.2}
.t-section{font-size:15px;font-weight:600;letter-spacing:-.005em}
.t-sm{font-size:13px}.t-xs{font-size:12px}
.t-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.muted{color:var(--ink-2)}.muted-2{color:var(--ink-3)}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.row{display:flex;align-items:center}.col{display:flex;flex-direction:column}
.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}.gap16{gap:16px}
.wrap{flex-wrap:wrap}.spread{justify-content:space-between}.center{align-items:center}.mta{margin-left:auto}

/* ── AUTH (#auth-screen, .ap-*) ── */
#auth-screen { position:fixed; inset:0; z-index:100; display:none; background:var(--bg); }
.ap-wrap { display:grid; grid-template-columns:1.05fr 0.95fr; width:100%; min-height:100vh; }
.ap-brand { position:relative; padding:56px 64px; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; background:var(--btn-ink); color:#fff; }
.ap-brand-glow, .ap-brand::before { display:none; }
.ap-brand-top { position:relative; z-index:2; display:flex; align-items:center; }
.ap-brand-top img { height:64px; width:auto; }
.ap-brand-mid { position:relative; z-index:2; max-width:440px; }
.ap-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-bottom:20px; }
.ap-eyebrow::before { content:''; width:28px; height:1px; background:var(--gold); opacity:.7; }
.ap-headline { font-size:40px; font-weight:700; line-height:1.08; letter-spacing:-.02em; margin-bottom:18px; }
.ap-headline em { font-style:normal; color:var(--gold); }
.ap-brand-sub { font-size:15px; line-height:1.6; color:rgba(255,255,255,.72); max-width:400px; }
.ap-points { position:relative; z-index:2; display:flex; flex-direction:column; gap:16px; }
.ap-point { display:flex; align-items:center; gap:14px; }
.ap-point-ico { width:38px; height:38px; flex-shrink:0; border-radius:9px; background:rgba(201,168,76,.14); border:1px solid rgba(201,168,76,.3); display:flex; align-items:center; justify-content:center; color:var(--gold); }
.ap-point-ico svg { width:18px; height:18px; }
.ap-point-txt b { display:block; font-size:14px; font-weight:600; color:#fff; margin-bottom:1px; }
.ap-point-txt span { font-size:12.5px; color:rgba(255,255,255,.6); }
.ap-form-panel { display:flex; align-items:flex-start; justify-content:center; padding:0 56px; background:var(--surface); overflow-y:auto; }
.ap-form-inner { width:100%; max-width:380px; padding:72px 0 48px; animation:fadeUp .5s cubic-bezier(.16,1,.3,1); }
.ap-mobile-logo { display:none; }
.ap-tabs { display:flex; margin-bottom:24px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r); padding:4px; }
.ap-tab { flex:1; padding:9px 0; text-align:center; font-size:13.5px; font-weight:600; color:var(--ink-2); background:none; border:none; border-radius:var(--r-sm); cursor:pointer; transition:all .15s; font-family:var(--font); }
.ap-tab.active { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
.ap-head { margin-bottom:24px; }
.ap-title { font-size:26px; font-weight:700; line-height:1.15; letter-spacing:-.01em; margin-bottom:6px; }
.ap-title em { font-style:normal; color:var(--gold-ink); }
.ap-sub { font-size:14px; color:var(--ink-2); }
.ap-field { margin-bottom:16px; }
.ap-field label { display:block; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); margin-bottom:7px; }
.ap-field input { width:100%; padding:11px 13px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--r-sm); color:var(--ink); font-family:var(--font); font-size:14px; outline:none; transition:border-color .15s, box-shadow .15s; }
.ap-field input::placeholder { color:var(--ink-3); }
.ap-field input:focus { border-color:var(--gold-ink); box-shadow:var(--focus); }
.ap-btn { width:100%; padding:13px; border:none; border-radius:var(--r-sm); background:var(--btn-ink); color:#fff; font-family:var(--font); font-size:14px; font-weight:600; letter-spacing:.01em; cursor:pointer; transition:background .15s; margin-top:6px; }
.ap-btn:hover { background:var(--btn-ink-hover); }
.ap-btn:disabled { opacity:.6; cursor:not-allowed; }
.ap-secure { margin-top:30px; padding-top:18px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:center; gap:7px; font-size:11.5px; color:var(--ink-3); }
.ap-secure svg { width:13px; height:13px; }
.auth-msg { border-radius:var(--r-sm); padding:10px 13px; font-size:13px; text-align:center; margin-bottom:14px; display:none; }
.auth-msg.error { background:var(--red-bg); border:1px solid #F2C9C4; color:var(--red); }
.auth-msg.success { background:var(--green-bg); border:1px solid #BFE3D1; color:var(--green); }
.pending-notice { background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r); padding:18px; text-align:center; margin-top:16px; display:none; }
.pending-notice h3 { font-size:15px; font-weight:600; color:var(--gold-ink); margin-bottom:6px; }
.pending-notice p { font-size:13px; color:var(--ink-2); line-height:1.5; }
.spinner { display:inline-block; width:16px; height:16px; border:2px solid var(--border-strong); border-top-color:var(--gold-ink); border-radius:50%; animation:spin .6s linear infinite; }
@media (max-width:880px) {
  .ap-wrap { grid-template-columns:1fr; } .ap-brand { display:none; }
  .ap-form-panel { padding:40px 24px; }
  .ap-mobile-logo { display:flex; align-items:center; justify-content:center; margin-bottom:28px; }
  .ap-mobile-logo img { height:44px; }
}

/* ── PAYWALL ── */
#paywall-screen { background:var(--bg) !important; }
.paywall-glow { display:none; }
.paywall-wrap { position:relative; z-index:2; max-width:1080px; margin:0 auto; padding:28px 32px; display:flex; flex-direction:column; justify-content:center; min-height:100vh; box-sizing:border-box; }
.paywall-logo { height:48px; width:auto; margin-bottom:22px; }
.paywall-split { display:grid; grid-template-columns:1fr 1fr; gap:48px; width:100%; align-items:center; }
.paywall-left { display:flex; flex-direction:column; align-items:flex-start; }
.paywall-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-ink); margin-bottom:14px; }
.paywall-title { font-size:36px; font-weight:700; line-height:1.08; letter-spacing:-.02em; text-align:left; margin-bottom:14px; }
.paywall-title em { font-style:normal; color:var(--gold-ink); }
.paywall-sub { font-size:15px; line-height:1.6; color:var(--ink-2); text-align:left; max-width:440px; margin-bottom:20px; }
.paywall-sub strong { color:var(--ink); font-weight:600; }
.paywall-list { list-style:none; margin:0 0 24px; padding:0; max-width:440px; display:flex; flex-direction:column; gap:10px; }
.paywall-list li { display:flex; align-items:flex-start; gap:11px; font-size:14px; line-height:1.5; color:var(--ink-2); }
.paywall-list li strong { color:var(--ink); font-weight:600; }
.paywall-check { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; margin-top:1px; border-radius:50%; background:var(--green-bg); color:var(--green); font-size:11px; font-weight:700; }
.paywall-right { width:100%; min-height:0; display:flex; }
.paywall-card { width:100%; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:8px; max-height:calc(100vh - 72px); overflow-y:auto; box-shadow:var(--shadow-sm); }
#paywall-checkout-mount { width:100%; }
#paywall-checkout-mount iframe { width:100% !important; height:760px !important; border:none !important; border-radius:var(--r-sm); display:block; }
.paywall-foot { font-size:12.5px; color:var(--ink-3); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.paywall-foot a { color:var(--gold-ink); text-decoration:none; font-weight:600; cursor:pointer; }
.paywall-foot a:hover { text-decoration:underline; }
.paywall-sep { opacity:.4; }
@media (max-width:880px) {
  .paywall-wrap { min-height:100vh; padding:40px 24px; }
  .paywall-split { grid-template-columns:1fr; gap:32px; }
  .paywall-left { align-items:center; } .paywall-title, .paywall-sub { text-align:center; }
  .paywall-card { max-height:none; }
}

/* ── APP SHELL ── */
#app { display:none; min-height:100vh; }
.sidebar { position:fixed; top:0; left:0; bottom:0; width:var(--sidebar-w); background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; z-index:50; overflow-y:auto; }
.sidebar-logo { height:var(--topbar-h); padding:0 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; flex-shrink:0; }
.sidebar-logo img { height:22px; width:auto; }
.sidebar-user { padding:8px; border-bottom:1px solid var(--border); position:relative; flex-shrink:0; }
.sidebar-user-trigger { display:flex; align-items:center; gap:9px; width:100%; background:none; border:none; padding:7px 8px; border-radius:var(--r-sm); cursor:pointer; font-family:var(--font); text-align:left; }
.sidebar-user-trigger:hover { background:var(--surface-hover); }
.sidebar-user-gear { color:var(--ink-3); flex-shrink:0; margin-left:auto; transition:color .15s; }
.sidebar-user-trigger:hover .sidebar-user-gear { color:var(--ink-2); }
.sidebar-user-name { font-size:13px; font-weight:600; color:var(--ink); line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-user-badge { display:inline-flex; align-items:center; gap:6px; margin-top:2px; }
.sidebar-user-badge span { font-size:11px; font-weight:500; color:var(--ink-3); }
.sidebar-user-dot { width:6px; height:6px; background:var(--green); border-radius:50%; flex-shrink:0; }
.user-menu { position:absolute; left:8px; right:8px; top:calc(100% + 2px); background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:5px; z-index:60; box-shadow:var(--shadow-pop); display:none; }
.sidebar-user.open .user-menu { display:block; animation:fadeUp .15s ease; }
.user-menu-item { display:flex; align-items:center; gap:9px; width:100%; padding:8px 9px; border-radius:var(--r-sm); background:none; border:none; cursor:pointer; font-family:var(--font); font-size:13px; font-weight:500; color:var(--ink); text-align:left; }
.user-menu-item:hover { background:var(--surface-hover); }
.user-menu-item svg { width:15px; height:15px; flex-shrink:0; color:var(--ink-3); }
.user-menu-item.signout { color:var(--red); } .user-menu-item.signout svg { color:var(--red); }
.user-menu-item.signout:hover { background:var(--red-bg); }
.user-menu-divider { height:1px; background:var(--border); margin:5px 0; }
.sidebar-nav { padding:8px; flex:1; min-height:0; }
.nav-section-label { padding:12px 8px 5px; font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); }
.sidebar-nav > .nav-section-label:first-child { padding-top:4px; }
.nav-item { display:flex; align-items:center; gap:9px; padding:6px 8px; border-radius:var(--r-sm); cursor:pointer; font-size:13.5px; font-weight:500; color:var(--ink-2); transition:background .12s, color .12s; user-select:none; position:relative; }
.nav-item:hover { color:var(--ink); background:var(--surface-hover); }
.nav-item svg { width:16px; height:16px; flex-shrink:0; color:var(--ink-3); }
.nav-item:hover svg { color:var(--ink-2); }
.nav-item.active { color:var(--ink); background:var(--gold-soft); font-weight:600; }
.nav-item.active svg { color:var(--gold-ink); }
.nav-item.active::before { content:''; position:absolute; left:-8px; top:50%; transform:translateY(-50%); width:3px; height:17px; border-radius:0 3px 3px 0; background:var(--gold-ink); }
.nav-badge { margin-left:auto; font-size:10px; font-weight:700; background:var(--gold); color:var(--btn-ink); padding:1px 7px; border-radius:var(--r-pill); }
.nav-group-header { display:flex; align-items:center; gap:9px; padding:6px 8px; border-radius:var(--r-sm); cursor:pointer; font-size:13.5px; font-weight:500; color:var(--ink-2); transition:all .12s; user-select:none; }
.nav-group-header:hover { color:var(--ink); background:var(--surface-hover); }
.nav-group-header svg.nav-group-icon { width:16px; height:16px; flex-shrink:0; color:var(--ink-3); }
.nav-group-chevron { margin-left:auto; font-size:15px; line-height:1; color:var(--ink-3); transition:transform .2s; }
.nav-group-header.open .nav-group-chevron { transform:rotate(90deg); }
.nav-group-body { display:none; margin:1px 0 1px 15px; padding-left:9px; border-left:1px solid var(--border); }
.nav-group-body.open { display:block; }
.nav-module-header { display:flex; align-items:center; gap:6px; padding:5px 8px; border-radius:var(--r-sm); cursor:pointer; font-size:12px; font-weight:600; color:var(--ink-2); transition:all .12s; user-select:none; }
.nav-module-header:hover { color:var(--ink); background:var(--surface-hover); }
.nav-module-header.open { color:var(--ink); }
.nav-module-chevron { margin-left:auto; font-size:14px; line-height:1; color:var(--ink-3); transition:transform .2s; }
.nav-module-header.open .nav-module-chevron { transform:rotate(90deg); }
.nav-group-body .nav-module-header { padding-left:8px; }
.nav-group-body .nav-lesson { padding-left:10px; }
.nav-lessons { display:none; } .nav-lessons.open { display:block; }
.nav-lesson { display:flex; align-items:flex-start; gap:8px; padding:5px 8px; border-radius:var(--r-sm); cursor:pointer; font-size:12.5px; color:var(--ink-2); transition:all .12s; line-height:1.35; }
.nav-lesson:hover { color:var(--ink); background:var(--surface-hover); }
.nav-lesson.active { color:var(--ink); font-weight:600; }
.lesson-dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; margin-top:2px; border:1.5px solid var(--border-strong); }
.nav-lesson.completed .lesson-dot { background:var(--green); border-color:var(--green); }
.nav-lesson.active .lesson-dot { border-color:var(--gold-ink); border-width:2px; }
.nav-lesson.in-progress .lesson-dot { border-color:var(--gold-ink); }
.nav-lesson.locked { opacity:.4; cursor:not-allowed; }
.main { margin-left:var(--sidebar-w); min-height:100vh; background:var(--bg); padding:28px 36px 72px; }
.page { display:none; max-width:1080px; }
.page.active { display:block; animation:fadeUp .25s ease; }
.page-title { font-size:20px; font-weight:600; letter-spacing:-.01em; line-height:1.2; margin-bottom:3px; }
.page-title em { font-style:normal; color:var(--gold-ink); }
.page-sub { font-size:13px; color:var(--ink-2); margin-bottom:22px; max-width:640px; }

/* ── Buttons / cards / pills ── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:34px; padding:0 14px; border-radius:var(--r-sm); cursor:pointer; font-size:13px; font-weight:600; line-height:1; font-family:var(--font); border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); transition:background .12s, border-color .12s, box-shadow .12s; white-space:nowrap; }
.btn:hover { background:var(--surface-hover); }
.btn:focus-visible { outline:none; box-shadow:var(--focus); }
.btn.primary { background:var(--btn-ink); border-color:var(--btn-ink); color:#fff; }
.btn.primary:hover { background:var(--btn-ink-hover); }
.btn.gold-outline { background:var(--gold-soft); border-color:var(--gold-line); color:var(--gold-ink); }
.btn.gold-outline:hover { background:#F2E8C8; }
.btn.done { background:var(--green-bg); border-color:#BFE3D1; color:var(--green); }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:20px; }
.card-gold { border-color:var(--gold-line); }
.gold-top::before { display:none; }
.pill { display:inline-flex; align-items:center; gap:5px; height:22px; padding:0 9px; border-radius:var(--r-pill); font-size:11.5px; font-weight:600; white-space:nowrap; }
.pill .pdot { width:6px; height:6px; border-radius:50%; }
.pill.green { background:var(--green-bg); color:var(--green); } .pill.green .pdot { background:var(--green); }
.pill.amber { background:var(--amber-bg); color:var(--amber); } .pill.amber .pdot { background:var(--amber); }
.pill.red { background:var(--red-bg); color:var(--red); } .pill.red .pdot { background:var(--red); }

/* ── DASHBOARD ── */
.db-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.db-title { font-size:20px; font-weight:600; letter-spacing:-.01em; color:var(--ink); }
.db-subtle { font-size:13px; color:var(--ink-2); margin-top:2px; }
.db-subtle #dash-name { font-weight:600; color:var(--ink); }
.db-resume { display:flex; align-items:center; gap:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:16px 18px; margin-bottom:16px; cursor:pointer; transition:border-color .12s, background .12s; }
.db-resume:hover { border-color:var(--border-strong); background:var(--surface-2); }
.db-resume::before { content:''; width:56px; height:56px; border-radius:var(--r-sm); flex-shrink:0; align-self:center; background:var(--btn-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='%23C9A84C'%3E%3Cpolygon points='6 4 20 12 6 20 6 4'/%3E%3C/svg%3E") center/22px no-repeat; }
.db-resume-eyebrow { font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--gold-ink); margin-bottom:4px; }
.db-resume-title { font-size:16px; font-weight:600; letter-spacing:-.01em; color:var(--ink); line-height:1.25; }
.db-resume-sub { font-size:12.5px; color:var(--ink-3); margin-top:3px; }
.db-resume-left { flex:1; min-width:0; }
.db-btn-primary { flex-shrink:0; height:34px; padding:0 16px; background:var(--btn-ink); color:#fff; border:none; border-radius:var(--r-sm); font-family:var(--font); font-size:13px; font-weight:600; cursor:pointer; transition:background .12s; }
.db-btn-primary:hover { background:var(--btn-ink-hover); }
.db-progress-row { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:14px 16px; margin-bottom:16px; }
.db-progress-meta { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:9px; }
.db-progress-label { font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
.db-progress-nums { font-size:13px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.db-progress-nums #stat-progress { font-weight:600; color:var(--ink); }
.db-progress-track { height:6px; background:var(--border); border-radius:3px; overflow:hidden; }
.db-progress-fill { height:100%; background:var(--gold); border-radius:3px; transition:width .5s ease; }
.db-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); margin-bottom:24px; overflow:hidden; }
.db-panel-head { display:flex; align-items:center; gap:10px; padding:13px 16px; cursor:pointer; user-select:none; }
.db-panel-head:hover { background:var(--surface-2); }
.db-panel-head-left { display:flex; align-items:center; gap:9px; }
.db-panel-title { font-size:14px; font-weight:600; color:var(--ink); }
.db-count-pill { font-size:11.5px; font-weight:600; color:var(--gold-ink); background:var(--gold-soft); border-radius:var(--r-pill); padding:2px 9px; font-variant-numeric:tabular-nums; }
.db-panel.all-done .db-count-pill, .onboard-card.all-done .db-count-pill { background:var(--green-bg); color:var(--green); }
.onboard-chevron { color:var(--ink-3); transition:transform .25s ease; margin-left:auto; flex-shrink:0; }
.db-panel-body { border-top:1px solid var(--border); overflow:hidden; transition:max-height .3s ease, opacity .25s ease; max-height:1000px; opacity:1; }
#onboard-card.collapsed .db-panel-body { max-height:0; opacity:0; border-top-color:transparent; }
#onboard-card.collapsed .onboard-chevron { transform:rotate(-90deg); }
.db-checklist { list-style:none; }
.db-check-item { display:flex; align-items:flex-start; gap:11px; padding:11px 16px; border-bottom:1px solid var(--border); }
.db-check-item:last-child { border-bottom:none; }
.db-check-main { flex:1; min-width:0; }
.db-check-link { flex-shrink:0; font-size:12px; font-weight:600; color:var(--gold-ink); cursor:pointer; text-decoration:none; white-space:nowrap; padding:5px 11px; border:1px solid var(--gold-line); border-radius:999px; background:var(--gold-soft); transition:background .12s, border-color .12s; }
.db-check-link:hover { background:#F2E8C8; border-color:var(--gold-ink); }
.check-box { width:18px; height:18px; border-radius:5px; flex-shrink:0; border:1.5px solid var(--border-strong); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .15s; margin-top:1px; position:relative; }
.check-box.done { background:var(--green); border-color:var(--green); }
.check-box.done::after { content:'✓'; font-size:11px; color:#fff; font-weight:700; }
.check-label { font-size:13px; font-weight:600; color:var(--ink); margin-bottom:1px; }
.check-label.done { text-decoration:line-through; color:var(--ink-3); }
.check-desc { font-size:12px; color:var(--ink-3); line-height:1.45; }
.db-section-label { font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); margin-bottom:9px; }
.db-list { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; }
.db-list-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 16px; cursor:pointer; transition:background .1s; border-top:1px solid var(--border); }
.db-list-row:first-child { border-top:none; }
.db-list-row:hover { background:var(--surface-2); }
.db-list-title { font-size:13.5px; font-weight:600; color:var(--ink); }
.db-list-sub { font-size:12px; color:var(--ink-3); margin-top:1px; }
.db-list-link { flex-shrink:0; font-size:12px; font-weight:600; color:var(--gold-ink); white-space:nowrap; padding:5px 11px; border:1px solid var(--gold-line); border-radius:999px; background:var(--gold-soft); transition:background .12s, border-color .12s; }
.db-list-row:hover .db-list-link { background:#F2E8C8; border-color:var(--gold-ink); }
.onboard-card { background:var(--surface); border:1px solid var(--gold-line); border-radius:var(--r); padding:20px; margin-bottom:24px; }
.onboard-card::before { display:none; }
.onboard-progress-ring .ring-bg { stroke:var(--border); }
.onboard-progress-ring .ring-fill { stroke:var(--gold); stroke-linecap:round; transition:stroke-dashoffset .6s ease; }
.onboard-card.all-done .onboard-progress-ring .ring-fill { stroke:var(--green); }
.onboard-meta-title { font-size:16px; font-weight:600; }
.onboard-meta-sub { font-size:12px; color:var(--ink-3); margin-top:1px; }
.access-gate { display:flex; align-items:center; gap:14px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:14px 16px; margin-bottom:16px; }
.access-gate-info { flex:1; min-width:220px; }
.access-gate-info h4 { font-size:13px; font-weight:600; color:var(--ink); margin-bottom:3px; }
.access-gate-info p { font-size:12px; color:var(--ink-3); line-height:1.5; }

/* Announcement body clamp */
.ann-body.clamped { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ann-readmore { font-size:12px; font-weight:600; color:var(--gold-ink); cursor:pointer; margin-top:8px; }
.ann-readmore:hover { text-decoration:underline; }

/* ── Resource viewer (branded PDF.js) ── */
.rv-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 18px; background:var(--surface); border-bottom:1px solid var(--border); flex-shrink:0; }
.rv-title { font-size:14px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rv-tools { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.rv-tool { height:30px; min-width:30px; padding:0 9px; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); border-radius:var(--r-sm); font-family:var(--font); font-size:14px; font-weight:600; cursor:pointer; transition:background .12s; display:inline-flex; align-items:center; justify-content:center; }
.rv-tool:hover { background:var(--surface-2); }
.rv-tool.rv-download { font-size:12px; font-weight:600; color:var(--gold-ink); border-color:var(--gold-line); background:var(--gold-soft); }
.rv-tool.rv-download:hover { background:#F2E8C8; }
.rv-zoom, .rv-page { font-size:12px; color:var(--ink-2); font-weight:500; white-space:nowrap; }
.rv-divider { width:1px; height:18px; background:var(--border); }
.rv-secure { font-size:11px; color:var(--ink-3); white-space:nowrap; flex-shrink:0; }
.rv-body { flex:1; min-height:0; display:flex; overflow:hidden; }
.rv-pdf-scroll { flex:1; overflow-y:auto; padding:24px; display:flex; flex-direction:column; align-items:center; gap:18px; background:var(--bg); }
.rv-page-canvas { box-shadow:var(--shadow-pop); border-radius:4px; max-width:100%; background:#fff; margin:0 auto; }
.rv-loading { margin:auto; display:flex; flex-direction:column; align-items:center; gap:14px; font-size:13px; color:var(--ink-3); text-align:center; }
@media (max-width:640px){ .rv-secure { display:none; } .rv-tools { gap:6px; } }
.wc-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.wc-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:24px 22px; display:flex; flex-direction:column; }
.wc-icon { width:46px; height:46px; border-radius:var(--r-sm); background:var(--gold-soft); border:1px solid var(--gold-line); color:var(--gold-ink); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.wc-soon { display:inline-block; align-self:flex-start; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-ink); background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:999px; padding:3px 10px; margin-bottom:10px; }
.wc-title { font-size:17px; font-weight:600; letter-spacing:-.01em; color:var(--ink); margin-bottom:7px; }
.wc-desc { font-size:13px; color:var(--ink-2); line-height:1.6; flex:1; margin-bottom:18px; }
.wc-btn { align-self:flex-start; height:36px; padding:0 16px; background:var(--btn-ink); color:#fff; border:none; border-radius:var(--r-sm); font-family:var(--font); font-size:12.5px; font-weight:600; cursor:pointer; transition:background .12s; }
.wc-btn:hover { background:var(--btn-ink-hover); }
.wc-btn.done { background:var(--gold-soft); color:var(--gold-ink); border:1px solid var(--gold-line); cursor:default; }
.db-greeting { font-size:24px; font-weight:600; letter-spacing:-.02em; line-height:1.15; color:var(--ink); }
.db-greeting #dash-name { color:var(--gold-ink); }
.db-day { font-size:13px; color:var(--ink-3); white-space:nowrap; }
.db-head { align-items:center; }

.db-banner { display:flex; align-items:center; gap:13px; background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r); padding:13px 16px; margin-bottom:16px; cursor:pointer; transition:background .12s; }
.db-banner:hover { background:#F2E8C8; }
.db-banner-icon { width:34px; height:34px; flex-shrink:0; border-radius:var(--r-sm); background:#fff; border:1px solid var(--gold-line); display:flex; align-items:center; justify-content:center; color:var(--gold-ink); }
.db-banner-text { flex:1; min-width:0; line-height:1.35; }
.db-banner-text strong { display:block; font-size:13.5px; font-weight:600; color:var(--ink); }
.db-banner-text span { font-size:12px; color:var(--gold-ink); }
.db-banner-cta { flex-shrink:0; font-size:12.5px; font-weight:600; color:var(--gold-ink); white-space:nowrap; }

/* Resume hero — the one thing that should pull the eye */
.db-hero { display:flex; align-items:center; gap:18px; background:var(--btn-ink); border-radius:var(--r); padding:20px 22px; margin-bottom:24px; cursor:pointer; position:relative; overflow:hidden; transition:transform .12s, box-shadow .12s; box-shadow:var(--shadow-sm); }
.db-hero:hover { transform:translateY(-1px); box-shadow:var(--shadow-pop); }
.db-hero::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg, transparent 60%, rgba(201,168,76,.10)); pointer-events:none; }
.db-hero-play { width:54px; height:54px; flex-shrink:0; border-radius:50%; background:var(--gold); color:var(--btn-ink); display:flex; align-items:center; justify-content:center; position:relative; z-index:1; box-shadow:0 4px 14px rgba(201,168,76,.4); }
.db-hero-play svg { margin-left:3px; }
.db-hero-main { flex:1; min-width:0; position:relative; z-index:1; }
.db-hero-tag { font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); margin-bottom:4px; }
.db-hero-title { font-size:18px; font-weight:600; letter-spacing:-.01em; color:#fff; line-height:1.2; }
.db-hero-sub { font-size:12.5px; color:rgba(255,255,255,.6); margin-top:3px; }
.db-hero-cta { flex-shrink:0; position:relative; z-index:1; height:38px; padding:0 18px; background:var(--gold); color:var(--btn-ink); border:none; border-radius:var(--r-sm); font-family:var(--font); font-size:13px; font-weight:700; cursor:pointer; transition:background .12s; }
.db-hero-cta:hover { background:var(--gold-light); }
@media (max-width:640px){ .db-hero { flex-wrap:wrap; } .db-hero-cta { width:100%; } }

/* Your Path roadmap */
.roadmap { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:20px 22px; margin-bottom:24px; }
.roadmap-track { display:flex; align-items:flex-start; justify-content:space-between; gap:6px; position:relative; }
.roadmap-track::before { content:''; position:absolute; top:13px; left:8%; right:8%; height:2px; background:var(--border); z-index:0; }
.roadmap-stage { display:flex; flex-direction:column; align-items:center; gap:8px; flex:1; min-width:0; position:relative; z-index:1; text-align:center; }
.roadmap-node { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; background:var(--surface); border:2px solid var(--border-strong); color:var(--ink-3); flex-shrink:0; }
.roadmap-stage.done .roadmap-node { background:var(--green); border-color:var(--green); color:#fff; }
.roadmap-stage.current .roadmap-node { background:var(--gold-soft); border-color:var(--gold-ink); color:var(--gold-ink); box-shadow:0 0 0 4px rgba(138,109,31,.12); }
.roadmap-label { font-size:11.5px; font-weight:500; color:var(--ink-3); line-height:1.25; }
.roadmap-stage.done .roadmap-label { color:var(--ink-2); }
.roadmap-stage.current .roadmap-label { color:var(--ink); font-weight:600; }
.roadmap-progress { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
@media (max-width:560px){ .roadmap-label { font-size:10px; } }

/* Checklist urgency */
.db-panel-subbar { height:3px; background:var(--border); }
.db-panel-subbar-fill { height:100%; background:var(--gold); transition:width .5s ease; }
.db-check-item.next { background:var(--gold-soft); }
.db-check-item.next .check-label { color:var(--gold-ink); }
.db-panel.all-done .db-panel-subbar-fill { background:var(--green); }

/* ── LESSON ── */
.lesson-breadcrumb { font-size:12.5px; color:var(--ink-3); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.lesson-breadcrumb span { color:var(--gold-ink); font-weight:600; }
.lesson-title-h { font-size:24px; font-weight:600; letter-spacing:-.01em; margin-bottom:18px; }
.video-wrap { position:relative; width:100%; padding-bottom:56.25%; background:#0E1014; border-radius:var(--r); overflow:hidden; margin-bottom:18px; border:1px solid var(--border); }
.video-wrap iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }
.lesson-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:18px; border-top:1px solid var(--border); }
.notes-section { margin-top:24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:18px; }
.notes-title { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); margin-bottom:10px; }
.notes-textarea { width:100%; min-height:90px; padding:11px 13px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--r-sm); color:var(--ink); font-family:var(--font); font-size:14px; resize:vertical; outline:none; transition:border-color .15s, box-shadow .15s; line-height:1.6; }
.notes-textarea:focus { border-color:var(--gold-ink); box-shadow:var(--focus); }
.notes-textarea::placeholder { color:var(--ink-3); }
.notes-save-btn { margin-top:10px; padding:9px 16px; background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r-sm); color:var(--gold-ink); font-size:12.5px; font-weight:600; cursor:pointer; transition:background .15s; font-family:var(--font); }
.notes-save-btn:hover { background:#F2E8C8; }
.notes-saved-msg { font-size:12px; color:var(--green); margin-left:10px; display:none; font-weight:600; }
.module-locked-banner { background:var(--red-bg); border:1px solid #F2C9C4; border-radius:var(--r); padding:14px 18px; margin-bottom:20px; font-size:13px; color:var(--red); display:none; }

/* ── RESOURCES / LIBRARY ── */
.resources-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:14px; }
.res-tile { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:16px; cursor:pointer; transition:border-color .15s, background .15s; text-align:left; color:var(--ink); font-family:var(--font); display:flex; flex-direction:column; gap:10px; width:100%; }
.res-tile:hover { border-color:var(--border-strong); background:var(--surface-2); }
.res-tile-top { display:flex; align-items:center; gap:12px; }
.res-tile-icon { width:40px; height:40px; flex-shrink:0; background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center; font-size:17px; color:var(--gold-ink); }
.res-tile-title { font-size:13.5px; font-weight:600; line-height:1.3; color:var(--ink); }
.res-tile-desc { font-size:12px; color:var(--ink-3); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.res-tile-foot { display:flex; align-items:center; justify-content:space-between; margin-top:auto; }
.res-tile-badge { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-ink); background:var(--gold-soft); border:1px solid var(--gold-line); padding:3px 8px; border-radius:var(--r-xs); }
.res-tile-open { font-size:12px; color:var(--gold-ink); font-weight:600; }
.res-section-label { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.res-section-label::after { content:''; flex:1; height:1px; background:var(--border); }
.resource-embed iframe { width:100%; height:680px; border:none; display:block; }

/* ── CALLS / CALENDAR ── */
.meet-banner { background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r); padding:18px 22px; margin-bottom:24px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.meet-banner-info h3 { font-size:15px; font-weight:600; margin-bottom:3px; color:var(--ink); }
.meet-banner-info p { font-size:13px; color:var(--ink-2); }
.meet-btn { display:inline-flex; align-items:center; gap:8px; padding:11px 20px; background:var(--btn-ink); color:#fff; border-radius:var(--r-sm); font-size:13px; font-weight:600; text-decoration:none; transition:background .15s; white-space:nowrap; }
.meet-btn:hover { background:var(--btn-ink-hover); }
.meet-btn-live { background:#1F9D57; }
.meet-btn-live:hover { background:#1A8A4C; }
.meet-btn-replay { background:var(--surface-2); color:var(--ink); border:1px solid var(--border-strong); }
.meet-btn-replay:hover { background:var(--surface); }
.cal-status { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; margin:2px 0 10px; }
.cal-status.live { color:#1F9D57; }
.cal-status.soon { color:var(--gold-ink); }
.cal-status.ended { color:var(--ink-3); font-weight:500; }
.cal-live-dot { width:8px; height:8px; border-radius:50%; background:#1F9D57; animation:calpulse 1.6s ease-in-out infinite; }
.cal-cell.cal-live { box-shadow:inset 0 0 0 2px #1F9D57 !important; }
.cal-cell.cal-live span { color:#1F9D57; font-weight:700; }
@keyframes calpulse { 0%,100%{ box-shadow:0 0 0 0 rgba(31,157,87,.5);} 50%{ box-shadow:0 0 0 5px rgba(31,157,87,0);} }
.cal-layout { display:grid; grid-template-columns:1fr 340px; gap:18px; align-items:start; }
.cal-card { padding:18px 20px; }
.cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.cal-title { font-size:18px; font-weight:600; letter-spacing:-.01em; color:var(--ink); }
.cal-nav-btn { width:32px; height:32px; display:flex; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--r-sm); color:var(--ink-2); cursor:pointer; transition:all .12s; }
.cal-nav-btn:hover { color:var(--ink); border-color:var(--gold-ink); background:var(--surface-hover); }
.cal-weekdays { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin-bottom:8px; }
.cal-weekdays span { text-align:center; font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }
.cal-cell { min-height:60px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:8px 0; border:1px solid transparent; border-radius:var(--r-sm); font-size:14px; color:var(--ink-2); position:relative; transition:all .12s; font-variant-numeric:tabular-nums; }
.cal-cell.cal-empty { border:none; }
.cal-cell.cal-event { cursor:pointer; background:var(--surface-2); border-color:var(--border); color:var(--ink); font-weight:600; }
.cal-cell.cal-event:hover { border-color:var(--gold-ink); background:var(--gold-soft); }
.cal-cell.cal-today { box-shadow:inset 0 0 0 1.5px var(--gold-ink); color:var(--gold-ink); }
.cal-cell.cal-selected { background:var(--gold-soft); border-color:var(--gold-ink); color:var(--ink); font-weight:700; box-shadow:inset 0 0 0 1.5px var(--gold-ink); }
.cal-cell.cal-past { opacity:.45; }
.cal-dots { display:flex; gap:4px; height:7px; align-items:center; }
.cal-dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.cal-dot-monday { background:var(--gold); } .cal-dot-onboarding { background:var(--blue); } .cal-dot-sunday { background:var(--green); }
.cal-legend { display:flex; gap:16px; margin-top:16px; padding-top:14px; border-top:1px solid var(--border); flex-wrap:wrap; }
.cal-legend-item { display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--ink-2); }
.cal-detail { padding:20px; min-height:200px; }
.cal-detail-date { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-ink); margin-bottom:6px; }
.cal-detail-title { font-size:18px; font-weight:600; letter-spacing:-.01em; color:var(--ink); margin-bottom:4px; }
.cal-detail-meta { font-size:13px; color:var(--ink-2); line-height:1.6; margin-bottom:18px; }
.cal-detail-dial { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-sm); padding:12px 14px; font-size:12px; color:var(--ink-2); line-height:1.7; margin-top:14px; }
.cal-detail-dial strong { color:var(--ink); }
.cal-event-row { display:flex; flex-direction:column; gap:14px; }
@media (max-width:900px) { .cal-layout { grid-template-columns:1fr; } }
.onb-wrap { max-width:680px; }
.onb-section-label { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); margin:0 0 12px; }
.onb-list { display:flex; flex-direction:column; }
.onb-row { display:flex; align-items:center; gap:16px; padding:14px 4px; border-bottom:1px solid var(--border); }
.onb-row:last-child { border-bottom:none; }
.onb-date { text-align:center; min-width:46px; }
.onb-date-day { font-size:20px; font-weight:700; line-height:1; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.onb-row.onb-next .onb-date-day { color:var(--gold-ink); }
.onb-date-mon { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); margin-top:2px; }
.onb-info { flex:1; }
.onb-info-day { font-size:14px; font-weight:600; color:var(--ink); }
.onb-info-time { font-size:12px; color:var(--ink-3); margin-top:1px; }
.onb-next-tag { display:inline-block; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-ink); background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r-xs); padding:2px 7px; margin-left:8px; vertical-align:middle; }
.onb-join { font-size:12px !important; padding:9px 16px !important; text-decoration:none; }
.onb-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; padding-top:20px; border-top:1px solid var(--border); flex-wrap:wrap; }
.onb-footer-note { font-size:12px; color:var(--ink-3); line-height:1.5; flex:1; min-width:200px; }
.onb-footer-actions { display:flex; gap:10px; flex-wrap:wrap; }
.onb-dial { font-size:12px; color:var(--ink-3); margin-top:14px; }
.onb-dial strong { color:var(--ink); }

/* ── COMMUNITY / CHAT ── */
.chat-msg { display:flex; gap:10px; align-items:flex-start; padding:3px 8px; border-radius:var(--r-sm); transition:background .1s; }
.chat-msg:hover { background:var(--surface-2); }
.chat-msg.grouped { margin-top:-4px; }
.chat-avatar { width:36px; height:36px; border-radius:var(--r-sm); flex-shrink:0; background:var(--gold-soft); border:1px solid var(--gold-line); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:var(--gold-ink); overflow:hidden; }
.chat-avatar img { width:100%; height:100%; object-fit:cover; }
.chat-avatar.spacer { background:none; border:none; }
.chat-body { flex:1; min-width:0; }
.chat-header-row { display:flex; align-items:baseline; gap:8px; margin-bottom:1px; }
.chat-name { font-weight:700; color:var(--ink); font-size:13px; }
.chat-name.admin { color:var(--gold-ink); }
.chat-time { font-size:10px; color:var(--ink-3); }
.chat-text { font-size:13px; line-height:1.5; color:var(--ink); word-break:break-word; white-space:pre-wrap; }
.chat-msg.admin-msg .chat-text { color:var(--ink); }
.chat-delete-btn { background:none; border:none; color:var(--ink-3); cursor:pointer; font-size:11px; padding:0 4px; opacity:0; transition:opacity .15s; flex-shrink:0; align-self:center; }
.chat-msg:hover .chat-delete-btn { opacity:.7; }
.chat-delete-btn:hover { opacity:1 !important; color:var(--red); }
.check-action { display:inline-flex; align-items:center; gap:5px; padding:7px 13px; background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r-sm); font-size:12px; font-weight:600; color:var(--gold-ink); text-decoration:none; cursor:pointer; transition:background .15s; }
.check-action:hover { background:#F2E8C8; }

/* ── PROFILE ── */
.sidebar-avatar { width:28px; height:28px; border-radius:50%; background:var(--gold-soft); border:1px solid var(--gold-line); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:var(--gold-ink); overflow:hidden; flex-shrink:0; }
.sidebar-avatar img { width:100%; height:100%; object-fit:cover; }

/* ── ADMIN ── */
.admin-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 11px; background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r-pill); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--gold-ink); margin-bottom:22px; }
#page-admin .auth-tab { flex:initial; padding:8px 14px !important; font-size:13px; font-weight:500; color:var(--ink-2); background:none; border:none; border-radius:var(--r-sm); cursor:pointer; transition:all .12s; }
#page-admin .auth-tab:hover { color:var(--ink); }
#page-admin .auth-tab.active { background:var(--surface); color:var(--ink); font-weight:600; box-shadow:var(--shadow-sm); }
.students-table { width:100%; border-collapse:collapse; font-size:13px; }
.students-table th { text-align:left; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3); padding:9px 14px; border-bottom:1px solid var(--border); white-space:nowrap; }
.students-table td { padding:11px 14px; border-bottom:1px solid var(--border); font-size:13px; vertical-align:middle; color:var(--ink); }
.students-table tr:last-child td { border-bottom:none; }
.students-table tr:hover td { background:var(--surface-2); }
.students-table th .sort-ind { font-size:10px; color:var(--gold-ink); margin-left:2px; }
.students-table th:hover { color:var(--ink); }
.status-pill { display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:var(--r-pill); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.status-pill.active { background:var(--green-bg); color:var(--green); }
.status-pill.pending { background:var(--gold-soft); color:var(--gold-ink); }
.status-pill.denied { background:var(--red-bg); color:var(--red); }
.admin-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:nowrap; }
.action-btn { padding:6px 11px; border-radius:var(--r-sm); font-size:11px; font-weight:600; cursor:pointer; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-2); font-family:var(--font); transition:all .12s; white-space:nowrap; flex-shrink:0; }
.action-btn:hover { background:var(--surface-hover); color:var(--ink); }
.action-btn.approve { background:var(--green-bg); border-color:#BFE3D1; color:var(--green); }
.action-btn.approve:hover { background:#D8EEE3; }
.action-btn.deny { background:var(--red-bg); border-color:#F2C9C4; color:var(--red); }
.action-btn.deny:hover { background:#F7DAD6; }
.action-btn.delete { background:var(--surface); color:var(--ink-2); }
.empty-state { text-align:center; padding:44px; color:var(--ink-3); font-size:14px; }
.ov-kpi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:16px; }
.ov-kpi { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:16px 18px; }
.ov-kpi-label { font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3); margin-bottom:8px; }
.ov-kpi-value { font-size:28px; font-weight:600; letter-spacing:-.02em; color:var(--ink); line-height:1; font-variant-numeric:tabular-nums; }
.ov-kpi-sub { font-size:11.5px; color:var(--ink-3); margin-top:7px; }
.ov-cols { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.ov-card-title { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); margin-bottom:16px; }
.ov-bars { display:flex; flex-direction:column; gap:12px; }
.ov-bar-row { display:flex; flex-direction:column; gap:6px; }
.ov-bar-top { display:flex; justify-content:space-between; align-items:baseline; font-size:13px; }
.ov-bar-label { color:var(--ink); font-weight:500; text-transform:capitalize; }
.ov-bar-val { color:var(--ink-3); font-size:12px; font-variant-numeric:tabular-nums; }
.ov-bar-track { height:7px; background:var(--border); border-radius:4px; overflow:hidden; }
.ov-bar-fill { height:100%; border-radius:4px; background:var(--gold); transition:width .6s ease; }
.ov-bar-fill.green { background:var(--green); } .ov-bar-fill.red { background:var(--red); } .ov-bar-fill.dim { background:var(--ink-3); }
.ov-spark { display:flex; align-items:flex-end; gap:8px; height:120px; padding-top:8px; }
.ov-spark-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.ov-spark-bar { width:100%; max-width:38px; background:var(--border-strong); border-radius:4px 4px 0 0; min-height:2px; transition:height .6s ease; }
.ov-spark-col:last-child .ov-spark-bar { background:var(--gold); }
.ov-spark-val { font-size:12px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
.ov-spark-label { font-size:10px; color:var(--ink-3); }
.ov-soon { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ov-soon-item { padding:12px 14px; border:1px solid var(--border); border-radius:var(--r-sm); background:var(--surface-2); }
.ov-soon-item span { display:block; font-size:13px; font-weight:600; color:var(--ink-2); margin-bottom:3px; }
.ov-soon-item small { font-size:11px; color:var(--ink-3); }
@media (max-width:760px) { .ov-kpi-grid { grid-template-columns:repeat(2,1fr); } .ov-cols { grid-template-columns:1fr; } .ov-soon { grid-template-columns:1fr; } }
.approval-label { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-2); display:block; margin-bottom:6px; }
.approval-input { width:100%; padding:10px 12px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--r-sm); color:var(--ink); font-family:var(--font); font-size:13px; outline:none; box-sizing:border-box; }
.approval-input:focus { border-color:var(--gold-ink); box-shadow:var(--focus); }
.recordings-empty { text-align:center; padding:44px; color:var(--ink-3); font-size:14px; }
.recordings-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:16px; }
.rec-tile { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; cursor:pointer; transition:border-color .15s, background .15s; text-align:left; color:var(--ink); font-family:var(--font); padding:0; display:flex; flex-direction:column; }
.rec-tile-body { padding:13px 15px 15px; flex:1; }
.rec-tile:hover { border-color:var(--border-strong); background:var(--surface-2); }
.rec-thumb { position:relative; aspect-ratio:16/9; background:var(--btn-ink); display:flex; align-items:center; justify-content:center; border-bottom:1px solid var(--border); }
.rec-thumb::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(201,168,76,.04) 14px, rgba(201,168,76,.04) 28px); }
.rec-thumb .rec-play { position:relative; width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.95); display:flex; align-items:center; justify-content:center; transition:transform .18s; box-shadow:0 6px 20px rgba(0,0,0,.35); }
.rec-tile:hover .rec-play { transform:scale(1.08); }
.rec-thumb .rec-play svg { width:18px; height:18px; fill:var(--btn-ink); margin-left:2px; }
.rec-summary-tag { position:absolute; top:8px; right:8px; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gold); background:rgba(16,18,23,.8); border:1px solid var(--gold-line); padding:3px 7px; border-radius:var(--r-xs); }
.rec-tile-title { font-size:13.5px; font-weight:600; line-height:1.35; margin-bottom:4px; color:var(--ink); }
.rec-tile-date { font-size:11.5px; color:var(--ink-3); }
.rec-admin-row { display:flex; align-items:center; gap:12px; padding:12px 10px; border:1px solid var(--border); border-radius:var(--r-sm); margin-bottom:8px; background:var(--surface); transition:border-color .15s, opacity .15s, background .15s; }
.rec-admin-row.dragging { opacity:.4; border-color:var(--gold-ink); }
.rec-admin-row.drag-over { border-color:var(--gold-ink); background:var(--gold-soft); }
.rec-drag-handle { cursor:grab; color:var(--ink-3); flex-shrink:0; display:flex; align-items:center; padding:2px; touch-action:none; }
.rec-drag-handle:hover { color:var(--gold-ink); }
.rec-admin-row .rec-admin-info { flex:1; min-width:0; }
.rec-admin-row .rec-admin-actions { display:flex; gap:8px; flex-shrink:0; }
.rec-order-hint { font-size:11px; color:var(--ink-3); margin-bottom:12px; }
.rec-modal-overlay { display:none; position:fixed; inset:0; z-index:330; background:rgba(16,18,23,.5); align-items:center; justify-content:center; padding:24px; }
.rec-modal-overlay.open { display:flex; }
.rec-modal { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); width:100%; max-width:1080px; max-height:88vh; overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow-pop); }
.rec-modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.rec-modal-title { font-size:16px; font-weight:600; margin-bottom:2px; color:var(--ink); }
.rec-modal-date { font-size:12px; color:var(--ink-3); }
.rec-modal-close { background:var(--surface); border:1px solid var(--border-strong); color:var(--ink-2); width:32px; height:32px; border-radius:var(--r-sm); cursor:pointer; font-size:18px; line-height:1; flex-shrink:0; transition:all .12s; }
.rec-modal-close:hover { color:var(--ink); background:var(--surface-hover); }
.rec-modal-body { display:grid; grid-template-columns:1.55fr 1fr; gap:20px; padding:20px; overflow-y:auto; align-items:start; }
.rec-modal-body.no-summary { grid-template-columns:1fr; }
.recording-video { min-width:0; }
.recording-summary { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-sm); padding:16px 18px; max-height:62vh; overflow-y:auto; }
.recording-summary-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-ink); margin-bottom:12px; }
.summary-h { font-size:13px; font-weight:700; color:var(--ink); margin:16px 0 6px; }
.summary-h:first-child { margin-top:0; }
.summary-ul { list-style:none; margin:0 0 4px; padding:0; }
.summary-li { position:relative; padding-left:16px; font-size:12.5px; line-height:1.6; color:var(--ink-2); margin-bottom:5px; }
.summary-li::before { content:'•'; position:absolute; left:2px; color:var(--gold-ink); }
.summary-li.lvl2 { padding-left:30px; } .summary-li.lvl2::before { left:16px; content:'◦'; }
.summary-li.num::before { content:none; } .summary-li.num { padding-left:24px; }
.summary-li.num .num-marker { position:absolute; left:2px; color:var(--gold-ink); font-weight:700; }
.summary-li strong, .summary-p strong { color:var(--ink); font-weight:600; }
.summary-p { font-size:12.5px; line-height:1.6; color:var(--ink-2); margin-bottom:8px; }
.summary-li a, .summary-p a { color:var(--gold-ink); }
@media (max-width:760px) { .rec-modal-body { grid-template-columns:1fr; } .recording-summary { max-height:none; } }
#student-detail-overlay, #ticket-viewer-overlay, #resource-viewer-overlay { background:var(--bg) !important; }
.lesson-mini-dot { width:10px; height:10px; border-radius:50%; background:var(--border); border:1px solid var(--border-strong); }
.lesson-mini-dot.done { background:var(--green); border-color:var(--green); }
.notif-banner { background:var(--gold-soft); border:1px solid var(--gold-line); border-radius:var(--r-sm); padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; font-size:13px; color:var(--ink); }
.notif-banner-btn { padding:7px 14px; background:var(--btn-ink); color:#fff; border:none; border-radius:var(--r-sm); font-size:12px; font-weight:600; cursor:pointer; font-family:var(--font); }
.mode-toggle { display:none; }

/* ── Inline-styled inputs from original dark markup ──
   The original markup hardcoded background:rgba(255,255,255,0.04) on inputs/
   textareas/selects, which is invisible on a light surface. Re-assert a real
   field surface + border so every form control reads correctly. */
#app input[type="text"], #app input[type="email"], #app input[type="tel"],
#app input[type="number"], #app input[type="date"], #app input[type="password"],
#app input[type="search"], #app textarea, #app select,
#approval-modal input, #approval-modal textarea, #approval-modal select,
#payment-modal input, #payment-modal textarea,
#ticket-viewer-overlay textarea {
  background: var(--surface) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--ink) !important;
}
#app input::placeholder, #app textarea::placeholder { color: var(--ink-3) !important; }
#app input:focus, #app textarea:focus, #app select:focus,
#approval-modal input:focus, #approval-modal textarea:focus, #approval-modal select:focus,
#payment-modal input:focus, #payment-modal textarea:focus {
  border-color: var(--gold-ink) !important; box-shadow: var(--focus) !important; outline: none;
}
/* Admin tab segmented bar wrapper (inline rgba-white bg) */
#page-admin > div[style*="rgba(255,255,255"] { background: var(--surface-2) !important; border: 1px solid var(--border) !important; }
/* Modal panels carried inline var(--navy-mid) → now white; ensure border reads */
#approval-modal > div, #payment-modal > div { box-shadow: var(--shadow-pop); }
/* Dashed dropzone used var(--gold-border) inline — fine; ensure text legible */
#res-dropzone { background: var(--surface-2) !important; }

/* ── MOBILE ── */
.hamburger { display:none; position:fixed; top:10px; left:12px; z-index:60; width:40px; height:40px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-sm); align-items:center; justify-content:center; cursor:pointer; flex-direction:column; gap:4px; padding:11px; }
.hamburger span { display:block; width:18px; height:2px; background:var(--ink); border-radius:2px; }
.sidebar-overlay { display:none; }
.mobile-bottom-nav { display:none; position:fixed; bottom:0; left:0; right:0; background:var(--surface); border-top:1px solid var(--border); z-index:55; padding:8px 0 max(8px, env(safe-area-inset-bottom)); }
.mobile-bottom-nav-inner { display:flex; justify-content:space-around; align-items:center; }
.mobile-nav-btn { display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 8px; cursor:pointer; color:var(--ink-3); font-size:10px; font-weight:600; letter-spacing:.02em; transition:color .15s; background:none; border:none; font-family:var(--font); min-width:48px; }
.mobile-nav-btn svg { width:20px; height:20px; }
.mobile-nav-btn.active { color:var(--gold-ink); }
@media (max-width:900px) {
  .sidebar { transform:translateX(-100%); transition:transform .25s ease; box-shadow:none; width:280px; }
  .sidebar.open { transform:translateX(0); box-shadow:var(--shadow-pop); }
  .sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(16,18,23,.4); z-index:49; }
  .sidebar-overlay.open { display:block; }
  .main { margin-left:0; padding:64px 16px 90px; }
  .hamburger { display:flex; }
  .mobile-bottom-nav { display:block; }
  .page-title { font-size:22px; }
  .meet-banner { flex-direction:column; align-items:flex-start; }
  .resource-embed iframe { height:500px; }
  .db-head { gap:4px; }
}
