/* ============================================================
   SimpliTrain for Coaching — "Coach Theme"
   Shared stylesheet for Public, Admin (Coach Console) and Learner
   ============================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  --c-brand:        #0369a1;   /* ocean blue */
  --c-brand-dark:   #075985;
  --c-brand-light:  #e0f2fe;
  --c-brand-soft:   #f0f9ff;
  --c-accent:       #f59e0b;   /* amber — gamification / CTA */
  --c-accent-dark:  #b45309;
  --c-accent-light: #fef3c7;

  --c-navy:         #0f172a;
  --c-navy-2:       #1e293b;
  --c-navy-3:       #334155;

  --c-page:         #ffffff;   /* page background */
  --c-bg:           #eef2f7;   /* tinted surfaces on white */
  --c-card:         #ffffff;
  --c-border:       #94a3b8;   /* dark grey borders */
  --c-border-strong:#64748b;
  --c-hover:        #f3f6fa;
  --c-th-bg:        #475569;   /* table header · white text 7.5:1 */

  --c-text:         #0f172a;
  --c-text-2:       #334155;   /* 10.4:1 on white */
  --c-text-3:       #475569;   /* 7.5:1 on white */
  --c-text-inv:     #ffffff;

  --c-success:      #047857;  --c-success-bg: #ecfdf5;   /* 4.9:1 */
  --c-warning:      #b45309;  --c-warning-bg: #fffbeb;   /* 5.0:1 */
  --c-danger:       #b91c1c;  --c-danger-bg:  #fef2f2;   /* 5.9:1 */
  --c-info:         #2563eb;  --c-info-bg:    #eff6ff;
  --c-purple:       #7c3aed;  --c-purple-bg:  #f5f3ff;
  --c-teal:         #0f766e;  --c-teal-bg:    #f0fdfa;   /* 5.0:1 */

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 9999px;

  --sh-sm: 0 1px 3px rgba(15,23,42,.08);
  --sh-md: 0 4px 12px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  --sh-lg: 0 14px 34px rgba(15,23,42,.12);

  --sidebar-w: 248px;
  --topbar-h: 60px;
  --learner-nav-h: 64px;
  --t: 150ms ease;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── 2. Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--c-text); background: var(--c-page); min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -48px; background: var(--c-navy); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); z-index: 999; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico--sm { width: 14px; height: 14px; }
.ico--lg { width: 24px; height: 24px; }

/* ── 3. Admin shell (Coach Console) ────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--c-navy); color: #cbd5e1; display: flex; flex-direction: column; position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40; transition: transform var(--t); }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar__logo { width: 36px; height: 36px; border-radius: var(--r-md); background: linear-gradient(135deg, #075985, var(--c-brand)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.sidebar__brand-name { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
.sidebar__brand-sub { font-size: 11px; color: #94a3b8; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.sidebar__label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; padding: 14px 10px 6px; }
.sidebar__link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-md); color: #cbd5e1; font-weight: 500; font-size: 13.5px; transition: background var(--t), color var(--t); }
.sidebar__link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidebar__link.is-active { background: var(--c-brand); color: #fff; }
.sidebar__link .ico { opacity: .85; }
.sidebar__count { margin-inline-start: auto; background: var(--c-accent); color: var(--c-navy); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--r-full); }
.sidebar__foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.sidebar__foot-name { color: #fff; font-size: 13px; font-weight: 600; }
.sidebar__foot-role { font-size: 11px; color: #94a3b8; }

.main { flex: 1; margin-inline-start: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); background: var(--c-card); border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.topbar__burger { display: none; width: 40px; height: 40px; border-radius: var(--r-md); align-items: center; justify-content: center; color: var(--c-text-2); }
.topbar__burger:hover { background: var(--c-hover); }
.topbar__title { font-size: 16px; font-weight: 700; }
.topbar__crumb { color: var(--c-text-3); font-weight: 500; }
.topbar__crumb::after { content: '/'; margin: 0 8px; color: var(--c-border-strong); }
.topbar__spacer { flex: 1; }
.topbar__search { display: flex; align-items: center; gap: 8px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-full); padding: 0 14px; height: 38px; width: min(320px, 100%); color: var(--c-text-3); }
.topbar__search input { border: 0; background: transparent; flex: 1; outline: none; min-width: 0; }
.topbar__icon-btn { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; color: var(--c-text-2); position: relative; }
.topbar__icon-btn:hover { background: var(--c-hover); }
.topbar__dot { position: absolute; top: 9px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-danger); border: 2px solid #fff; }
.topbar__tenant { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--c-text-3); background: var(--c-brand-soft); border: 1px solid var(--c-brand-light); border-radius: var(--r-full); padding: 5px 12px; }
.topbar__tenant b { color: var(--c-brand); }

.page { padding: 28px 32px 48px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; }
.page-head p { color: var(--c-text-3); margin-top: 4px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 35; }
body.nav-open .backdrop { display: block; }

/* ── 4. Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-md); font-weight: 600; font-size: 13.5px; border: 1px solid transparent; transition: background var(--t), border-color var(--t), transform var(--t); white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); }
.btn--accent { background: var(--c-accent); color: var(--c-navy); }
.btn--accent:hover { background: #fbbf24; }
.btn--secondary { background: var(--c-card); color: var(--c-text); border-color: var(--c-border-strong); }
.btn--secondary:hover { background: var(--c-hover); }
.btn--ghost { color: var(--c-text-2); }
.btn--ghost:hover { background: var(--c-hover); }
.btn--danger { background: var(--c-danger-bg); color: var(--c-danger); border-color: #fecaca; }
.btn--success { background: var(--c-success); color: #fff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: var(--r-lg); }
.btn--block { width: 100%; }
.btn--icon { width: 34px; height: 34px; padding: 0; border-radius: var(--r-sm); color: var(--c-text-3); }
.btn--icon:hover { background: var(--c-hover); color: var(--c-text); }

/* ── 5. Cards, grids, stats ────────────────────────────────── */
.card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--c-border); flex-wrap: wrap; }
.card__title { font-size: 15px; font-weight: 700; }
.card__sub { font-size: 12.5px; color: var(--c-text-3); margin-top: 2px; }
.card__body { padding: 20px; }
.card__body--flush { padding: 0; }
.card__foot { padding: 12px 20px; border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-text-3); }
.card--accent { border-inline-start: 4px solid var(--c-brand); }
.card--warn { border-inline-start: 4px solid var(--c-warning); }
.card--danger { border-inline-start: 4px solid var(--c-danger); }
.card--success { border-inline-start: 4px solid var(--c-success); }
.card--pad { padding: 20px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--main { grid-template-columns: minmax(0,1fr) 340px; }
.grid--main-wide { grid-template-columns: minmax(0,1fr) 400px; }
.grid--side-first { grid-template-columns: 300px minmax(0,1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--sm { gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.muted { color: var(--c-text-3); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.ms-16 { margin-inline-start: 16px; }
.row--center { justify-content: center; }
.gap-20 { gap: 20px; }

.stat { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--sh-sm); }
.stat__icon { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; }
.stat__icon--brand { background: var(--c-brand-light); color: var(--c-brand); }
.stat__icon--success { background: var(--c-success-bg); color: var(--c-success); }
.stat__icon--warning { background: var(--c-warning-bg); color: var(--c-warning); }
.stat__icon--danger { background: var(--c-danger-bg); color: var(--c-danger); }
.stat__icon--purple { background: var(--c-purple-bg); color: var(--c-purple); }
.stat__icon--accent { background: var(--c-accent-light); color: var(--c-accent-dark); }
.stat__label { font-size: 12.5px; color: var(--c-text-3); font-weight: 500; }
.stat__value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; }
.stat__delta { font-size: 12px; margin-top: 6px; font-weight: 600; }
.stat__delta--up { color: var(--c-success); }
.stat__delta--down { color: var(--c-danger); }
.stat__delta--flat { color: var(--c-text-3); font-weight: 500; }

/* ── 6. Badges / pills / avatars ───────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--nodot::before { display: none; }
.badge--success { background: var(--c-success-bg); color: var(--c-success); }
.badge--warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge--danger  { background: var(--c-danger-bg);  color: var(--c-danger); }
.badge--info    { background: var(--c-info-bg);    color: var(--c-info); }
.badge--brand   { background: var(--c-brand-light);color: var(--c-brand); }
.badge--purple  { background: var(--c-purple-bg);  color: var(--c-purple); }
.badge--teal    { background: var(--c-teal-bg);    color: var(--c-teal); }
.badge--neutral { background: #f1f5f9; color: var(--c-text-2); }
.badge--accent  { background: var(--c-accent-light); color: var(--c-accent-dark); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; background: var(--c-bg); border: 1px solid var(--c-border); color: var(--c-text-2); }
.chip--brand { background: var(--c-brand-soft); border-color: var(--c-brand-light); color: var(--c-brand); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0; background: var(--c-navy-3); }
.avatar--sm { width: 26px; height: 26px; font-size: 10px; }
.avatar--lg { width: 48px; height: 48px; font-size: 16px; }
.avatar--xl { width: 72px; height: 72px; font-size: 24px; }
.avatar--a { background: #0369a1; } .avatar--b { background: #7c3aed; } .avatar--c { background: #0f766e; } .avatar--d { background: #b45309; } .avatar--e { background: #be185d; } .avatar--f { background: #334155; } .avatar--g { background: #4d7c0f; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid #fff; margin-inline-start: -8px; }
.avatar-stack .avatar:first-child { margin-inline-start: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person__name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__meta { font-size: 12px; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 7. Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table th { text-align: start; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--c-th-bg); padding: 11px 16px; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--c-border); vertical-align: middle; font-size: 13.5px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--c-hover); }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table .actions { text-align: end; white-space: nowrap; }
.table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--c-brand); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--c-border); }
.toolbar__search { display: flex; align-items: center; gap: 8px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); height: 36px; padding: 0 12px; color: var(--c-text-3); flex: 1; min-width: 180px; max-width: 320px; }
.toolbar__search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; }
.filter-tabs { display: flex; gap: 4px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 3px; flex-wrap: wrap; }
.filter-tabs button { padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--c-text-2); }
.filter-tabs button.is-active { background: var(--c-card); color: var(--c-brand); box-shadow: var(--sh-sm); border: 1px solid var(--c-border); }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { width: 30px; height: 30px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--c-text-2); }
.pager button.is-active { background: var(--c-brand); color: #fff; }
.pager button:hover:not(.is-active) { background: var(--c-hover); }

/* ── 8. Progress, meters ───────────────────────────────────── */
.progress { height: 8px; background: #e2e8f0; border-radius: var(--r-full); overflow: hidden; }
.progress__bar { height: 100%; background: var(--c-brand); border-radius: var(--r-full); }
.progress__bar--success { background: var(--c-success); }
.progress__bar--warning { background: var(--c-warning); }
.progress__bar--danger { background: var(--c-danger); }
.progress__bar--accent { background: var(--c-accent); }
.progress--lg { height: 12px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress { flex: 1; }
.progress-row span { font-size: 12.5px; font-weight: 600; min-width: 36px; text-align: end; font-variant-numeric: tabular-nums; }
.ring { --p: 0; --c: var(--c-brand); width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e2e8f0 0); display: grid; place-items: center; flex-shrink: 0; }
.ring::after { content: attr(data-label); width: 50px; height: 50px; border-radius: 50%; background: var(--c-card); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ring--lg { width: 96px; height: 96px; } .ring--lg::after { width: 76px; height: 76px; font-size: 18px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars__bar { width: 100%; background: var(--c-brand); border-radius: 4px 4px 0 0; min-height: 4px; }
.bars__bar--muted { background: #7c8ba1; }
.bars__bar--accent { background: var(--c-accent); }
.bars__lbl { font-size: 11px; color: var(--c-text-3); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--c-text-2); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; background: var(--dot, var(--c-brand)); vertical-align: -1px; }

/* ── 9. Forms ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field__label { font-size: 13px; font-weight: 600; color: var(--c-text); }
.field .hint { font-size: 12px; color: var(--c-text-3); }
.input, .select, .textarea { width: 100%; height: 40px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); padding: 0 12px; background: var(--c-card); transition: border-color var(--t), box-shadow var(--t); }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(3,105,161,.15); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-inline-end: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--c-brand); }
.switch { position: relative; width: 40px; height: 22px; background: #cbd5e1; border-radius: var(--r-full); flex-shrink: 0; transition: background var(--t); }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t); }
.switch.is-on { background: var(--c-success); }
.switch.is-on::after { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row__title { font-weight: 600; font-size: 13.5px; }
.switch-row__desc { font-size: 12.5px; color: var(--c-text-3); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.radio-card { border: 2px solid var(--c-border); border-radius: var(--r-lg); padding: 14px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: border-color var(--t), background var(--t); }
.radio-card:hover { border-color: var(--c-border-strong); }
.radio-card.is-selected { border-color: var(--c-brand); background: var(--c-brand-soft); }
.radio-card input { margin-top: 3px; accent-color: var(--c-brand); }
.radio-card b { display: block; font-size: 13.5px; }
.radio-card span { font-size: 12.5px; color: var(--c-text-3); }
.upload { border: 2px dashed var(--c-border-strong); border-radius: var(--r-lg); padding: 24px; text-align: center; color: var(--c-text-3); font-size: 13px; background: var(--c-hover); }
.upload b { color: var(--c-brand); }

/* ── 10. Tabs ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); overflow-x: auto; overflow-y: hidden; margin-bottom: 20px; scrollbar-width: thin; }
.tabs button, .tabs a { padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--c-text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs button:hover, .tabs a:hover { color: var(--c-text); text-decoration: none; }
.tabs .is-active { color: var(--c-brand); border-bottom-color: var(--c-brand); }
.tabs .cnt { background: var(--c-bg); border-radius: var(--r-full); padding: 0 7px; font-size: 11px; color: var(--c-text); }
.pane { display: none; }
.pane.is-active { display: block; }

/* ── 11. Lists, timelines, misc ────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--c-border); }
.list__item:last-child { border-bottom: 0; }
.list__item:hover { background: var(--c-hover); }
.list__main { flex: 1; min-width: 0; }
.list__title { font-weight: 600; font-size: 13.5px; }
.list__meta { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.timeline { position: relative; padding-inline-start: 22px; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border); }
.timeline__item { position: relative; padding-bottom: 16px; }
.timeline__item::before { content: ''; position: absolute; inset-inline-start: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-card); border: 3px solid var(--c-brand); }
.timeline__item--warn::before { border-color: var(--c-warning); }
.timeline__item--danger::before { border-color: var(--c-danger); }
.timeline__item--ok::before { border-color: var(--c-success); }
.timeline__title { font-weight: 600; font-size: 13.5px; }
.timeline__meta { font-size: 12px; color: var(--c-text-3); }
.empty { text-align: center; padding: 40px 20px; color: var(--c-text-3); }
.empty__icon { width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--c-bg); display: grid; place-items: center; margin: 0 auto 12px; color: var(--c-text-3); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-size: 13px; align-items: flex-start; }
.callout--info { background: var(--c-info-bg); color: #1e40af; }
.callout--warn { background: var(--c-warning-bg); color: #92400e; }
.callout--danger { background: var(--c-danger-bg); color: #991b1b; }
.callout--success { background: var(--c-success-bg); color: #065f46; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--c-text-3); font-weight: 500; }
.kv dd { font-weight: 500; }
.steps { display: flex; gap: 0; counter-reset: s; }
.steps__item { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--c-text-3); position: relative; }
.steps__item::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c-border-strong); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; background: var(--c-card); }
.steps__item.is-done::before { background: var(--c-success); border-color: var(--c-success); color: #fff; content: '✓'; }
.steps__item.is-active { color: var(--c-brand); }
.steps__item.is-active::before { border-color: var(--c-brand); color: var(--c-brand); }
.steps__item:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--c-border); margin: 0 12px; }
.kbd { font-family: ui-monospace, monospace; font-size: 11.5px; background: var(--c-bg); border: 1px solid var(--c-border-strong); border-radius: 4px; padding: 1px 6px; }
.rule-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--c-border); }
.rule-row:last-child { border-bottom: 0; }
.rule-row__icon { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; }
.rule-row__title { font-weight: 700; font-size: 14px; }
.rule-row__desc { font-size: 13px; color: var(--c-text-2); margin-top: 2px; }
.rule-row__desc b { color: var(--c-brand); background: var(--c-brand-light); padding: 0 6px; border-radius: 4px; }
.modal-static { max-width: 560px; margin: 0 auto; }

/* Module / content type icons */
.type-ico { width: 34px; height: 34px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; }
.type-ico--video { background: var(--c-brand-light); color: var(--c-brand); }
.type-ico--live { background: var(--c-purple-bg); color: var(--c-purple); }
.type-ico--class { background: var(--c-teal-bg); color: var(--c-teal); }
.type-ico--quiz { background: var(--c-accent-light); color: var(--c-accent-dark); }
.type-ico--doc { background: #f1f5f9; color: var(--c-text-2); }
.type-ico--assign { background: var(--c-danger-bg); color: var(--c-danger); }

/* Session cards */
.session { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--c-border); }
.session:last-child { border-bottom: 0; }
.session__date { width: 52px; text-align: center; background: var(--c-bg); border-radius: var(--r-md); padding: 6px 0; flex-shrink: 0; }
.session__date b { display: block; font-size: 18px; line-height: 1.1; }
.session__date span { font-size: 11px; text-transform: uppercase; color: var(--c-text-3); font-weight: 600; }
.session__title { font-weight: 600; font-size: 14px; }
.session__meta { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Leaderboard */
.lb-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--c-border); }
.lb-row:last-child { border-bottom: 0; }
.lb-row--me { background: var(--c-brand-soft); }
.lb-rank { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--c-bg); color: var(--c-text-2); }
.lb-rank--1 { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #78350f; }
.lb-rank--2 { background: linear-gradient(135deg,#64748b,#334155); color: #fff; }
.lb-rank--3 { background: linear-gradient(135deg,#b45309,#78350f); color: #fff; }
.lb-pts { font-weight: 800; font-size: 15px; color: var(--c-accent-dark); font-variant-numeric: tabular-nums; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; padding: 24px 20px 0; border-bottom: 1px solid var(--c-divider, #cbd5e1); margin-bottom: 4px; }
.podium__slot { text-align: center; }
.podium__base { background: var(--c-bg); border-radius: var(--r-md) var(--r-md) 0 0; padding: 14px 8px 16px; margin-top: 10px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; box-sizing: border-box; }
.podium__slot:nth-child(2) .podium__base { min-height: 136px; background: var(--c-accent-light); }
.podium__slot:nth-child(1) .podium__base { min-height: 116px; }
.podium__slot:nth-child(3) .podium__base { min-height: 104px; }
.badge-tile { text-align: center; padding: 14px 8px; border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.badge-tile__ico { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; font-size: 22px; background: var(--c-accent-light); }
.badge-tile--locked { opacity: .45; filter: grayscale(1); }
.badge-tile b { display: block; font-size: 12.5px; }
.badge-tile span { font-size: 11px; color: var(--c-text-3); }

/* Forum */
.post { padding: 18px 20px; border-bottom: 1px solid var(--c-border); }
.post:last-child { border-bottom: 0; }
.post__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post__body { font-size: 14px; color: var(--c-text); line-height: 1.6; }
.post__body p + p { margin-top: 8px; }
.post__media { margin-top: 12px; border-radius: var(--r-md); height: 160px; background: linear-gradient(135deg,#334155,#475569); display: grid; place-items: center; color: #cbd5e1; font-size: 13px; }
.post__actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.post__actions button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--c-text-3); }
.post__actions button:hover { background: var(--c-hover); color: var(--c-text); }
.post__actions button.is-on { color: var(--c-brand); }
.post--pinned { background: var(--c-brand-soft); }
.reply { display: flex; gap: 10px; padding: 12px 0 0 44px; }
.reply__bubble { background: var(--c-bg); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; flex: 1; }
.reply__bubble b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.composer { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.composer .textarea { min-height: 64px; }
.channel { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); font-weight: 500; color: var(--c-text-2); }
.channel:hover { background: var(--c-hover); text-decoration: none; }
.channel.is-active { background: var(--c-brand-light); color: var(--c-brand); font-weight: 600; }
.channel__cnt { margin-inline-start: auto; font-size: 11.5px; background: var(--c-bg); padding: 1px 7px; border-radius: var(--r-full); color: var(--c-text-3); }

/* Learner status pill (filtering) */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; }
.status-pill--active { background: var(--c-success-bg); color: var(--c-success); }
.status-pill--risk { background: var(--c-warning-bg); color: var(--c-warning); }
.status-pill--nonfit { background: var(--c-danger-bg); color: var(--c-danger); }
.status-pill--dropped { background: #f1f5f9; color: var(--c-text-3); }
.status-pill--pending { background: var(--c-info-bg); color: var(--c-info); }

/* ── 12. Learner shell ─────────────────────────────────────── */
.lshell { min-height: 100vh; display: flex; flex-direction: column; background: var(--c-page); }
.lnav { height: var(--learner-nav-h); background: var(--c-card); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 30; }
.lnav__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 22px; }
.lnav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--c-text); }
.lnav__brand:hover { text-decoration: none; }
.lnav__links { display: flex; gap: 4px; margin-inline-start: 12px; }
.lnav__links a { padding: 8px 12px; border-radius: var(--r-md); font-weight: 600; font-size: 13.5px; color: var(--c-text-2); display: inline-flex; align-items: center; gap: 7px; }
.lnav__links a:hover { background: var(--c-hover); text-decoration: none; color: var(--c-text); }
.lnav__links a.is-active { background: var(--c-brand-light); color: var(--c-brand); }
.lnav__spacer { flex: 1; }
.lnav__pts { display: inline-flex; align-items: center; gap: 6px; background: var(--c-accent-light); color: var(--c-accent-dark); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: var(--r-full); }
.lpage { max-width: 1180px; margin: 0 auto; padding: 28px 24px 100px; width: 100%; }
.lhero { background: linear-gradient(135deg, var(--c-navy) 0%, #0c4a6e 60%, var(--c-brand) 100%); color: #fff; border-radius: var(--r-xl); padding: 28px 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.lhero h1 { font-size: 24px; color: #fff; }
.lhero p { color: #bae6fd; margin-top: 4px; }
.lhero__main { flex: 1; min-width: 240px; }
.lhero__stats { display: flex; gap: 22px; flex-wrap: wrap; }
.lhero__stat b { display: block; font-size: 22px; font-weight: 800; }
.lhero__stat span { font-size: 12px; color: #bae6fd; }
.lhero .ring::after { background: transparent; color: #fff; }
.lhero .ring { background: conic-gradient(var(--c-accent) calc(var(--p) * 1%), rgba(255,255,255,.2) 0); }
.ltabbar { display: none; position: fixed; bottom: 0; inset-inline: 0; height: 64px; background: var(--c-card); border-top: 1px solid var(--c-border); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.ltabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--c-text-3); }
.ltabbar a.is-active { color: var(--c-brand); }
.ltabbar a:hover { text-decoration: none; }
.module { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--c-border); color: inherit; }
.module:last-child { border-bottom: 0; }
.module:hover { background: var(--c-hover); text-decoration: none; color: inherit; }
.module__main { flex: 1; min-width: 0; }
.module__title { font-weight: 600; font-size: 14px; }
.module__meta { font-size: 12.5px; color: var(--c-text-3); margin-top: 2px; }
.module--locked { opacity: .55; }
.module__state { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--c-border-strong); color: var(--c-text-3); font-size: 12px; }
.module__state--done { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.module__state--now { border-color: var(--c-brand); color: var(--c-brand); }
.week { padding: 12px 20px; background: var(--c-hover); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-3); border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; }
.player { background: var(--c-navy); border-radius: var(--r-lg); aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.player__play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; }
.player__bar { position: absolute; bottom: 0; inset-inline: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,.6)); display: flex; align-items: center; gap: 10px; font-size: 12px; }
.player__bar .progress { flex: 1; height: 5px; background: rgba(255,255,255,.3); }
.qcard { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 18px 20px; }
.qcard__q { font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.qopt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.qopt:hover { border-color: var(--c-border-strong); background: var(--c-hover); }
.qopt.is-selected { border-color: var(--c-brand); background: var(--c-brand-soft); }
.qopt input { accent-color: var(--c-brand); width: 16px; height: 16px; }
.qnum { display: flex; flex-wrap: wrap; gap: 6px; }
.qnum button { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--c-border-strong); font-size: 12.5px; font-weight: 600; }
.qnum button.is-done { background: var(--c-success-bg); border-color: var(--c-success); color: var(--c-success); }
.qnum button.is-current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.qnum button.is-flag { background: var(--c-warning-bg); border-color: var(--c-warning); color: var(--c-warning); }

/* ── 13. Public / landing ──────────────────────────────────── */
.pub { background: #fff; color: var(--c-text); }
.pub-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); }
.pub-nav__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 18px; }
.pub-nav__links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.pub-nav__links a { padding: 8px 12px; border-radius: var(--r-md); font-weight: 600; font-size: 13.5px; color: var(--c-text-2); }
.pub-nav__links a:hover { background: var(--c-hover); text-decoration: none; color: var(--c-text); }
.pub-nav__links a.btn { color: #fff; }
.pub-section { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.pub-section--tight { padding-block: 48px; }
.pub-section h2 { font-size: 30px; margin-bottom: 8px; }
.pub-section__lead { color: var(--c-text-3); font-size: 16px; max-width: 640px; }
.pub-hero { background: radial-gradient(1200px 500px at 70% -10%, #bae6fd 0%, transparent 60%), linear-gradient(180deg, #f0f9ff, #fff); }
.pub-hero__inner { max-width: 1180px; margin: 0 auto; padding: 72px 24px 64px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.pub-hero h1 { font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -.03em; line-height: 1.08; }
.pub-hero h1 em { font-style: normal; color: var(--c-brand); }
.pub-hero p { font-size: 17px; color: var(--c-text-2); margin: 18px 0 26px; max-width: 520px; }
.pub-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pub-hero__proof { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.pub-hero__proof b { display: block; font-size: 22px; }
.pub-hero__proof span { font-size: 12.5px; color: var(--c-text-3); }
.pub-hero__visual { position: relative; }
.pub-hero__photo { aspect-ratio: 4/4.4; border-radius: var(--r-xl); background: linear-gradient(160deg, #1e293b, #075985 70%, #0369a1); box-shadow: var(--sh-lg); display: grid; place-items: end start; padding: 22px; color: #fff; }
.pub-hero__photo b { font-size: 18px; }
.pub-hero__photo span { font-size: 13px; color: #bae6fd; }
.pub-hero__float { position: absolute; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.pub-hero__float--a { top: 22px; inset-inline-end: -18px; }
.pub-hero__float--b { bottom: 40px; inset-inline-start: -28px; }
.pub-hero__float b { display: block; font-size: 14px; }
.pub-hero__float span { font-size: 12px; color: var(--c-text-3); }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 36px; }
.feat__item { border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: 24px; }
.feat__ico { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-brand-light); color: var(--c-brand); display: grid; place-items: center; margin-bottom: 14px; }
.feat__item h3 { font-size: 16px; margin-bottom: 6px; }
.feat__item p { color: var(--c-text-3); font-size: 13.5px; }
.prog { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 36px; }
.prog__card { border: 1px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; background: #fff; box-shadow: var(--sh-sm); transition: transform var(--t), box-shadow var(--t); }
.prog__card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.prog__thumb { height: 150px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.prog__thumb--a { background: linear-gradient(135deg,#075985,#0369a1); }
.prog__thumb--b { background: linear-gradient(135deg,#5b21b6,#7c3aed); }
.prog__thumb--c { background: linear-gradient(135deg,#115e59,#0f766e); }
.prog__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prog__body h3 { font-size: 16px; }
.prog__body p { font-size: 13.5px; color: var(--c-text-3); flex: 1; }
.prog__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.prog__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.prog__price { font-weight: 800; font-size: 16px; }
.about { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.about__photo { aspect-ratio: 1; border-radius: var(--r-xl); background: linear-gradient(135deg,#334155,#075985); display: grid; place-items: center; color: #fff; font-size: 64px; font-weight: 800; }
.about h2 { font-size: 30px; }
.about p { color: var(--c-text-2); font-size: 15px; margin-top: 12px; line-height: 1.7; }
.about__creds { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.testi { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 36px; }
.testi__card { background: var(--c-bg); border-radius: var(--r-xl); padding: 24px; }
.testi__stars { color: var(--c-accent-dark); letter-spacing: 2px; margin-bottom: 10px; }
.testi__card p { font-size: 14px; line-height: 1.65; color: var(--c-text-2); }
.testi__who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.cta-band { background: var(--c-navy); color: #fff; }
.cta-band .pub-section { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 56px; }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: #94a3b8; margin-top: 6px; }
.pub-foot { border-top: 1px solid var(--c-border); }
.pub-foot .pub-section { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; font-size: 13px; color: var(--c-text-3); }
.pub-foot a { color: var(--c-text-2); margin-inline-start: 16px; }

/* Auth / register */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__side { background: linear-gradient(160deg, var(--c-navy), #0c4a6e 60%, var(--c-brand)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__side h2 { color: #fff; font-size: 30px; line-height: 1.2; }
.auth__side p { color: #bae6fd; margin-top: 12px; max-width: 420px; font-size: 15px; }
.auth__quote { background: rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 20px; font-size: 14px; line-height: 1.6; }
.auth__quote b { display: block; margin-top: 10px; font-size: 13px; color: #bae6fd; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth__box { width: 100%; max-width: 460px; }
.auth__box h1 { font-size: 26px; margin-bottom: 6px; }
.auth__box > p { color: var(--c-text-3); margin-bottom: 24px; }
.auth__box--wide { max-width: 620px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--c-text-3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }

/* Landing-page builder preview */
.builder { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 20px; }
.preview { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.preview__chrome { background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 8px 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-text-3); }
.preview__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.preview__url { flex: 1; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-full); padding: 3px 12px; text-align: center; }
.preview__body { padding: 24px; }
.preview__hero { border-radius: var(--r-lg); padding: 32px 28px; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.preview__hero h3 { font-size: 22px; }
.preview__hero p { color: var(--c-text-2); margin: 8px 0 14px; font-size: 13px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c-border-strong); cursor: pointer; }
.swatch.is-on { box-shadow: 0 0 0 2px var(--c-brand); }
.section-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: 8px; font-size: 13.5px; font-weight: 500; background: #fff; }
.section-toggle .switch { margin-inline-start: auto; }
.section-toggle .drag { color: var(--c-border-strong); cursor: grab; }

/* Email preview */
.email { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: #fff; max-width: 620px; }
.email__hdr { background: var(--c-navy); color: #fff; padding: 18px 22px; }
.email__hdr b { font-size: 16px; }
.email__hdr span { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.email__body { padding: 22px; font-size: 13.5px; line-height: 1.6; }
.email__body h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-3); }
.email__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 10px 0; }
.email__stat { background: var(--c-bg); border-radius: var(--r-md); padding: 10px; text-align: center; }
.email__stat b { display: block; font-size: 20px; }
.email__stat span { font-size: 11.5px; color: var(--c-text-3); }

/* Mockup index */
.idx { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.idx h1 { font-size: 30px; }
.idx__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.idx__col h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.idx__col a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: 6px; font-weight: 500; color: var(--c-text); }
.idx__col a:hover { border-color: var(--c-brand); text-decoration: none; color: var(--c-brand); }
.idx__col a span { font-size: 11.5px; color: var(--c-text-3); }

/* ── 14. Responsive ────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--main, .grid--main-wide, .grid--side-first { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  .main { margin-inline-start: 0; }
  .topbar { padding: 0 16px; }
  .topbar__burger { display: inline-flex; }
  .topbar__search { display: none; }
  .topbar__tenant { display: none; }
  .page { padding: 20px 16px 40px; }
  .pub-hero__inner { grid-template-columns: 1fr; padding-block: 48px; }
  .pub-hero__visual { max-width: 420px; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 260px; }
}
@media (max-width: 860px) {
  .grid--3, .feat, .prog, .testi { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .lnav__links { display: none; }
  .ltabbar { display: flex; }
  .lpage { padding: 16px 16px 90px; }
  .lhero { padding: 20px; border-radius: var(--r-lg); }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .steps__item span { display: none; }
  .pub-nav__links a:not(.btn) { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .rule-row { grid-template-columns: auto 1fr; }
  .rule-row > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 20px; }
  .email__stats { grid-template-columns: 1fr; }
  .idx__grid { grid-template-columns: 1fr; }
  .pub-hero__float--a, .pub-hero__float--b { display: none; }
  .table td, .table th { padding-inline: 12px; font-size: 13px; }
  .lb-row { padding-inline: 14px; }
}

/* ── 15. Modifier utilities (replace inline styles) ────────── */
.input--xs { width: 72px; }
.input--sm, .select--sm { height: 32px; }
.input--grow { flex: 1; }
.select--auto { width: auto; }
.select--grow { flex: 1; }
.select--score { width: 90px; }
.progress--fixed { width: 120px; flex-shrink: 0; }
.mx-auto { margin-inline: auto; }
.lb-rank--podium { margin: 0 auto 4px; }
.switch-row--card { padding-inline: 20px; }
.grid--tight { gap: 8px; }
.gap-14 { gap: 14px; }
.sidebar__label--light { color: var(--c-text-3); }
.card__body--tight { padding: 10px; }
.card--muted { background: var(--c-hover); }
.h-sm { font-size: 18px; }
.h-md { font-size: 20px; }
.h-lg { font-size: 22px; }
.type-ico--scorm { background: var(--c-brand-light); color: var(--c-brand); }
.upload--tight { padding: 18px; }
.upload--card { min-height: 220px; display: grid; place-items: center; }
.composer--bare { padding-inline: 0; border: 0; }
.reply--root { padding-inline-start: 0; }
.tabs--card { margin: 0; padding: 0 20px; }
.list-disc { list-style: disc; padding-inline-start: 18px; }
.list-decimal { list-style: decimal; padding-inline-start: 20px; }
.legend--col { flex-direction: column; gap: 6px; }
.txt-warning { color: var(--c-warning); }
.txt-danger { color: var(--c-danger); }
.module--current { background: var(--c-brand-soft); }
.prog__thumb--draft { background: linear-gradient(135deg,#475569,#64748b); }
.lhero--risk { background: linear-gradient(135deg,#1c1917,#78350f 70%,#b45309); }
.row--top { align-items: flex-start; }

/* ── 16. Small-screen refinements ──────────────────────────── */
.lnav__brand span, .lnav__pts { white-space: nowrap; }
@media (max-width: 600px) {
  .lnav__inner { padding: 0 14px; gap: 10px; }
  .lnav__brand span { display: none; }
  .lnav__pts { padding: 6px 10px; }
  .lhero .btn, .page-head .btn, .callout .btn { white-space: normal; height: auto; min-height: 40px; padding-block: 8px; text-align: center; }
  .lhero .row > .btn { flex: 1 1 100%; }
  .pub-hero__cta .btn { flex: 1 1 100%; }
  .page-head__actions { width: 100%; }
  .page-head__actions .btn { flex: 1 1 auto; }
  .toolbar { padding: 12px 14px; }
  .toolbar__search { max-width: none; }
  .card__head, .card__body { padding-inline: 16px; }
  .session { padding-inline: 14px; }
  .module { padding-inline: 14px; }
  .steps__item:not(:last-child)::after { margin: 0 6px; }
}

/* ── 17. Reports module (coach copy of SimpliTrain reports design) ── */
.fav-bar { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 20px; box-shadow: var(--sh-sm); }
.fav-bar__hdr { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.fav-bar__hdr .ico { color: var(--c-accent); fill: var(--c-accent); }
.fav-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; align-items: center; }
.fav-empty { font-size: 13px; color: var(--c-text-3); font-style: italic; }
.fav-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; border: 1.5px solid var(--chip, var(--c-brand)); color: var(--chip, var(--c-brand)); background: #fff; }
.fav-chip:hover { text-decoration: none; background: var(--c-hover); }
.fav-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chip, var(--c-brand)); }
.fav-chip__x { color: inherit; opacity: .55; padding: 2px 6px; border-radius: 50%; font-size: 14px; line-height: 1; }
.fav-chip__x:hover { opacity: 1; background: var(--c-hover); }

.domain-rail { display: flex; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); margin-bottom: 22px; }
.domain-seg { flex: 1; position: relative; padding: 20px 16px 18px; cursor: pointer; border-inline-end: 1px solid var(--c-border); transition: background var(--t); min-width: 0; text-align: start; }
.domain-seg:last-child { border-inline-end: 0; }
.domain-seg::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--seg, #ccc); transition: height var(--t); }
.domain-seg:hover { background: var(--seg-tint, var(--c-hover)); }
.domain-seg.is-active { background: var(--seg-tint, var(--c-brand-soft)); }
.domain-seg.is-active::before { height: 5px; }
.seg-icon { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--seg-tint2, var(--c-brand-light)); color: var(--seg, var(--c-brand)); margin-bottom: 11px; transition: background var(--t); }
.domain-seg.is-active .seg-icon { background: var(--seg); color: #fff; }
.seg-name { font-size: 14px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; line-height: 1.3; }
.domain-seg.is-active .seg-name { color: var(--seg); }
.seg-desc { font-size: 12px; color: var(--c-text-2); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.seg-count { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 11px; font-weight: 700; background: var(--c-bg); color: var(--c-text-3); padding: 2px 8px; border-radius: var(--r-full); }

.cat-section { display: none; }
.cat-section.is-active { display: block; }
.cat-body { display: flex; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); min-height: 360px; }
.cat-subnav { width: 210px; flex-shrink: 0; border-inline-end: 1px solid var(--c-border); padding: 8px 0; background: var(--c-hover); }
.cat-subnav__hdr { padding: 8px 16px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-3); }
.cat-subnav__item { width: 100%; padding: 9px 16px; font-size: 13px; color: var(--c-text-2); cursor: pointer; border-inline-start: 3px solid transparent; display: flex; align-items: center; gap: 8px; text-align: start; transition: background var(--t), color var(--t); }
.cat-subnav__item:hover { background: var(--c-bg); color: var(--c-text); }
.cat-subnav__item.is-active { font-weight: 600; border-inline-start-color: var(--seg, var(--c-brand)); background: var(--seg-tint2, var(--c-brand-light)); color: var(--seg, var(--c-brand)); }
.cat-subnav__cnt { margin-inline-start: auto; font-size: 11px; color: var(--c-text-3); }
.cat-subnav__item.is-active .cat-subnav__cnt { color: inherit; }
.cat-body .rep-grid { flex: 1; padding: 20px 24px; align-content: start; }

.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rep-card { background: var(--c-page); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color var(--t), box-shadow .2s, transform .2s; color: inherit; position: relative; box-shadow: var(--sh-sm); }
.rep-card:hover { border-color: var(--c-brand); box-shadow: 0 12px 28px rgba(3,105,161,.18), 0 4px 10px rgba(15,40,82,.08); transform: translateY(-3px); text-decoration: none; }
.rep-card:hover .rep-card__title { color: var(--c-brand); }
.rep-card__head { display: flex; align-items: flex-start; gap: 10px; }
.rep-card__icon { width: 36px; height: 36px; border-radius: 8px; background: var(--seg-tint2, var(--c-brand-light)); color: var(--seg, var(--c-brand)); display: grid; place-items: center; flex-shrink: 0; }
.rep-card__title-wrap { flex: 1; min-width: 0; padding-inline-end: 40px; }
.rep-card__title { font-size: 15px; font-weight: 600; color: var(--c-text); line-height: 1.3; margin-bottom: 2px; }
.rep-card__type { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-3); }
.rep-card__desc { font-size: 13px; color: var(--c-text-2); line-height: 1.45; }
.rep-card__meta { font-size: 11.5px; color: var(--c-text-3); margin-top: auto; }
.rep-card__meta b { color: var(--c-text); font-weight: 600; }
.rep-card__id { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--c-text-3); }
.rep-badge { position: absolute; top: 12px; inset-inline-end: 44px; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-full); }
.rep-badge--live { background: var(--c-accent-light); color: var(--c-accent-dark); }
.rep-badge--new { background: var(--c-success-bg); color: var(--c-success); }
.rep-fav { position: absolute; top: 10px; inset-inline-end: 10px; width: 26px; height: 26px; border-radius: 6px; color: #64748b; display: grid; place-items: center; z-index: 2; transition: background var(--t), color var(--t), transform var(--t); }
.rep-fav:hover { background: var(--c-accent-light); color: var(--c-accent); transform: scale(1.1); }
.rep-fav.is-on { color: var(--c-accent); }
.rep-fav.is-on .ico { fill: var(--c-accent); }
.rep-card.is-hidden { display: none; }
.rep-empty { grid-column: 1 / -1; }

/* report pages: rail + main */
.rep-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.rail { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 14px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.rail__head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-3); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.rail__group { border-top: 1px solid var(--c-border); padding: 10px 0; }
.rail__group-h { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; cursor: pointer; }
.rail__opt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; color: var(--c-text-2); }
.rail__opt input { accent-color: var(--c-brand); }
.ts { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ts__num { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ts__title { font-size: 20px; font-weight: 700; }
.ts__sub { font-size: 12.5px; color: var(--c-text-3); }
.info-strip { display: flex; gap: 10px; font-size: 13px; color: var(--c-text-2); padding: 10px 14px; background: var(--c-brand-soft); border: 1px solid var(--c-brand-light); border-radius: var(--r-md); margin-bottom: 18px; }
.kpis { display: flex; flex-wrap: wrap; gap: 20px 40px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); margin-bottom: 20px; }
.kpi__val { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi__lbl { font-size: 12px; color: var(--c-text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi__sub { font-size: 12px; color: var(--c-text-2); margin-top: 3px; }
.chart-section { margin-bottom: 20px; }
.chart-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.chart-section__title { font-size: 15px; font-weight: 700; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--c-text-2); margin-top: 8px; }
.chart-legend__sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.data-hdr { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--c-text-3); margin: 6px 0 8px; }
.dt th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--c-th-bg); padding: 9px 12px; border-bottom: 1px solid var(--c-border); text-align: start; white-space: nowrap; }
.dt td { padding: 9px 12px; border-bottom: 1px solid var(--c-border); font-size: 13px; }
.dt tbody tr:hover { background: var(--c-hover); }
.dt .num { text-align: end; font-variant-numeric: tabular-nums; }
.foot-info { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--c-text-3); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--c-border); }

/* dashboard tiles */
.tile-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 16px 18px; grid-column: span 4; min-width: 0; box-shadow: var(--sh-sm); }
.tile--w3 { grid-column: span 3; } .tile--w4 { grid-column: span 4; } .tile--w6 { grid-column: span 6; } .tile--w8 { grid-column: span 8; } .tile--w12 { grid-column: span 12; }
.tile__title { font-size: 13.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile__desc { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.tile__body { margin-top: 12px; }
.tile__big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tile__drill { font-size: 12px; color: var(--c-brand); font-weight: 600; }
.crs-hdr { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 18px 22px; margin-bottom: 14px; display: flex; gap: 16px; align-items: flex-start; }
.crs-hdr__icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--c-brand-light); color: var(--c-brand); display: grid; place-items: center; flex-shrink: 0; }
.crs-hdr__title { font-size: 20px; font-weight: 700; }
.crs-hdr__desc { font-size: 13px; color: var(--c-text-2); margin-top: 3px; }

/* list view */
.fu-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.fu-filter-row__lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-3); }
.fu-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--c-brand-light); color: var(--c-brand); border-radius: var(--r-full); padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.fu-chip button { color: inherit; opacity: .6; }
.col-panel { position: fixed; top: 0; inset-inline-end: 0; height: 100vh; width: min(340px, 100%); background: var(--c-card); border-inline-start: 1px solid var(--c-border); box-shadow: var(--sh-lg); z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s; }
.col-panel.is-open { transform: none; }
.col-panel__hdr { padding: 16px 18px; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.col-panel__body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.col-panel__ftr { padding: 12px 18px; border-top: 1px solid var(--c-border); display: flex; justify-content: flex-end; gap: 8px; }
.col-panel .check { padding: 6px 0; }

@media (max-width: 1024px) {
  .rep-layout { grid-template-columns: 1fr; }
  .rail { position: static; }
  .tile, .tile--w3, .tile--w4, .tile--w6, .tile--w8 { grid-column: span 6; }
}
@media (max-width: 860px) {
  .domain-rail { flex-wrap: wrap; }
  .domain-seg { flex: 1 1 50%; border-bottom: 1px solid var(--c-border); }
  .cat-body { flex-direction: column; }
  .cat-subnav { width: 100%; display: flex; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--c-border); padding: 6px; gap: 4px; }
  .cat-subnav__hdr { display: none; }
  .cat-subnav__item { width: auto; white-space: nowrap; border-inline-start: 0; border-radius: var(--r-sm); padding: 7px 12px; }
  .cat-subnav__item.is-active { border-inline-start: 0; }
  .cat-body .rep-grid { padding: 14px; }
  .tile, .tile--w3, .tile--w4, .tile--w6, .tile--w8 { grid-column: span 12; }
}
@media (max-width: 480px) { .domain-seg { flex-basis: 100%; } .seg-desc { display: none; } }

.txt-success { color: var(--c-success); }
.card__foot--flush { padding-inline: 0; }
.data-hdr--card { padding: 12px 20px 0; }

/* ── 18. Create / Edit forms ───────────────────────────────── */
.form-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.form-layout--2 { grid-template-columns: 220px minmax(0, 1fr); }
.form-nav { position: sticky; top: calc(var(--topbar-h) + 16px); background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 8px; }
.form-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; color: var(--c-text-2); }
.form-nav a:hover { background: var(--c-hover); text-decoration: none; color: var(--c-text); }
.form-nav a.is-active { background: var(--c-brand-light); color: var(--c-brand); font-weight: 600; }
.form-nav__n { width: 20px; height: 20px; border-radius: 50%; background: var(--c-bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.form-nav a.is-active .form-nav__n { background: var(--c-brand); color: #fff; }
.form-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
.form-section { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.form-section .card__head { align-items: flex-start; }
.form-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-top: 1px solid var(--c-border); margin: 24px -32px -48px; padding: 12px 32px; display: flex; align-items: center; gap: 10px; z-index: 20; }
.form-bar__status { font-size: 12.5px; color: var(--c-text-3); }
.req { color: var(--c-danger); }
.field-row { display: flex; gap: 12px; align-items: center; }
.field-row .input, .field-row .select { flex: 1; }
.input-group { display: flex; }
.input-group .input { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group__addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--c-border-strong); border-inline-start: 0; background: var(--c-hover); border-start-end-radius: var(--r-md); border-end-end-radius: var(--r-md); font-size: 13px; color: var(--c-text-3); white-space: nowrap; }
.thumb-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-pick span { width: 64px; height: 44px; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; }
.thumb-pick span.is-on { border-color: var(--c-brand); box-shadow: 0 0 0 2px #fff inset; }

/* question / step builders */
.q-item { border: 1px solid var(--c-border); border-radius: var(--r-lg); margin-bottom: 12px; background: var(--c-card); }
.q-item__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--c-hover); border-bottom: 1px solid var(--c-border); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.q-item__num { width: 26px; height: 26px; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.q-item__body { padding: 16px; }
.q-item--collapsed .q-item__body { display: none; }
.q-item--collapsed .q-item__head { border-bottom: 0; border-radius: var(--r-lg); }
.q-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.q-opt input[type=radio], .q-opt input[type=checkbox] { accent-color: var(--c-success); width: 16px; height: 16px; }
.q-opt .input { flex: 1; height: 36px; }
.q-opt--correct .input { border-color: var(--c-success); background: var(--c-success-bg); }
.step-line { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; }
.step-line__n { width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent-light); color: var(--c-accent-dark); font-weight: 800; display: grid; place-items: center; position: relative; }
.step-line__n::after { content: ''; position: absolute; top: 36px; bottom: -28px; left: 17px; width: 2px; background: var(--c-border); }
.step-line:last-child .step-line__n::after { display: none; }
.rubric-row { display: grid; grid-template-columns: minmax(0,1fr) 90px 34px; gap: 10px; align-items: center; margin-bottom: 8px; }
.cond-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 100px 90px 34px; gap: 10px; align-items: center; margin-bottom: 8px; }
.action-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--c-border); }
.action-row:last-child { border-bottom: 0; }
.preview-phone { border: 1px solid var(--c-border); border-radius: 24px; padding: 14px; background: var(--c-bg); max-width: 300px; }
.preview-phone__bubble { background: #dcf8c6; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }

@media (max-width: 1200px) { .form-layout { grid-template-columns: 200px minmax(0,1fr); } .form-side { grid-column: 2; position: static; } }
@media (max-width: 860px) { .form-layout, .form-layout--2 { grid-template-columns: 1fr; } .form-nav { position: static; display: flex; overflow-x: auto; gap: 4px; } .form-nav a { white-space: nowrap; } .form-side { grid-column: 1; } .form-bar { margin: 20px -16px -40px; padding: 10px 16px; flex-wrap: wrap; } .cond-row { grid-template-columns: 1fr 1fr; } .rubric-row { grid-template-columns: 1fr 70px 34px; } }

.session--bare { padding: 0; border: 0; }
.badge-tile__ico--lg { width: 72px; height: 72px; font-size: 34px; margin: 0 auto 10px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-text-2); margin-bottom: 12px; }
.back-link:hover { color: var(--c-brand); text-decoration: none; }
.drill-crumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-text-3); flex-wrap: wrap; }
.drill-crumb a { color: var(--c-text-2); font-weight: 600; }
.drill-crumb b { color: var(--c-text); }

.ico--flip { transform: rotate(180deg); }
.kpis--card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 16px; }

/* ── 19. White page adjustments ───────────────────────────── */
.page, .lpage { background: var(--c-page); }
.topbar, .lnav { box-shadow: 0 1px 0 var(--c-border); }
.chip { background: var(--c-page); }
.card { box-shadow: var(--sh-sm); }
.testi__card, .stat__icon, .session__date, .podium__base, .lb-rank, .empty__icon, .filter-tabs, .toolbar__search, .topbar__search, .upload, .reply__bubble, .preview__chrome, .form-nav__n { background: var(--c-bg); }
.week, .cat-subnav, .q-item__head, .card--muted, .col-panel .check:hover { background: var(--c-hover); }
.table th, .dt th { background: var(--c-th-bg); color: #fff; }
.table th a, .dt th a { color: #fff; }
.table th input[type=checkbox] { accent-color: #fff; }

/* ── 20. Dark borders: keep inner row dividers softer ──────── */
:root { --c-divider: #cbd5e1; }
.table td, .dt td, .list__item, .switch-row, .post, .session, .module, .lb-row, .rule-row, .action-row, .card__foot, .card__head, .composer, .week, .fu-filter-row, .toolbar, .kpis, .foot-info, .rail__group, .divider::before, .divider::after, .sidebar__brand, .sidebar__foot { border-color: var(--c-divider); }
.progress, .ring { --track: #cbd5e1; }
