/* ═══════════════════════════════════════════════════════════════
   Sabal FCLE Exam Prep — Template A shell (navy/gold light SaaS)
   Loaded AFTER fcle.css / inline styles so shell overrides win.
   Desktop-first: fixed sidebar + sticky top bar; mobile drawer.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --a-navy-50:  #EEF3F8;
  --a-navy-100: #DCE6F0;
  --a-navy-300: #8FB0CF;
  --a-navy-500: #2E5A8F;
  --a-navy-600: #1B3A5C;   /* primary */
  --a-navy-700: #142C47;
  --a-navy-800: #0F2136;
  --a-gold-300: #FCD34D;
  --a-gold-400: #FBBF24;
  --a-gold-500: #D97706;
  --a-gold-600: #B45309;
  --a-gray-50:  #F9FAFB;
  --a-gray-100: #F3F4F6;
  --a-gray-200: #E5E7EB;
  --a-gray-300: #D1D5DB;
  --a-gray-400: #9CA3AF;
  --a-gray-500: #6B7280;
  --a-gray-600: #4B5563;
  --a-gray-700: #374151;
  --a-gray-800: #1F2937;
  --a-gray-900: #111827;
  --a-green-500: #10B981;
  --a-green-600: #059669;
  --a-red-500: #EF4444;
  --a-amber-500: #F59E0B;
  --a-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --a-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --a-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --a-radius: 12px;

  /* Legacy semantic vars remapped to A palette — templates use var(--correct),
     var(--wrong), var(--warning), var(--font-heading) inline; legacy.css defines
     them as forest/burgundy/brown/serif. Redeclaring here (app.css loads AFTER
     legacy.css) makes every inline var() resolve to Template A colors/fonts. */
  --correct:     var(--a-green-600);   /* was #1B4332 forest  */
  --wrong:       var(--a-red-500);     /* was #6B2737 burgundy */
  --warning:     var(--a-amber-500);   /* was #7F4F24 brown    */
  --font-heading: var(--a-font);       /* was Libre Baskerville */
  --navy:        var(--a-navy-600);    /* was #1B3A5C (identical) */
  --border:      var(--a-gray-200);    /* was #e0ddd8 warm border */
  --card:        #ffffff;              /* was #ffffff (identical) */
  --text-muted:  var(--a-gray-500);    /* was #5a5a5a */
  --bg:          var(--a-gray-100);    /* was #FAFAF7 cream */
}

/* ——— Global overrides (A look everywhere) ——— */
body.a-shell { background: var(--a-gray-100); }
.a-shell h1, .a-shell h2, .a-shell h3,
.a-shell .topbar-brand, .a-shell .brand-name,
.a-shell .countdown-days {
  font-family: var(--a-font) !important;
  letter-spacing: -0.02em;
}
.a-shell a { color: var(--a-navy-600); }
.a-shell .app-body { max-width: 1200px; }

/* ——— Shell layout ——— */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 252px; flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--a-gray-200);
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 0; height: 100vh; transform: none; }
}
.sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(15,23,42,.4); }
@media (min-width: 1024px) { .sidebar.open { box-shadow: none; } }

.sidebar-overlay { display: none; }
@media (max-width: 1023.98px) {
  .sidebar.open + .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,.4); }
}

/* Brand */
.sidebar-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--a-gray-100);
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--a-navy-600); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-mark .gold-dot {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--a-gold-400);
  border: 2px solid #fff;
}
.brand-name { font-size: 15px; font-weight: 800; color: var(--a-gray-900); line-height: 1.2; }
.brand-sub { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--a-gray-400); font-weight: 600; }
.sabal-brand-logo { width: 168px; height: auto; display: block; }
.sabal-auth-logo { width: 210px; height: auto; display: block; margin: 0 auto; }

/* Nav */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px 12px; }
.nav-group { margin-bottom: 20px; }
.nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--a-gray-400); padding: 0 10px; margin-bottom: 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--a-gray-600); font-size: 13.5px; font-weight: 500;
  text-decoration: none; margin-bottom: 1px;
  transition: background .12s, color .12s;
}
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--a-gray-400); }
.nav-link:hover { background: var(--a-gray-50); color: var(--a-gray-900); text-decoration: none; }
.nav-link.active { background: var(--a-navy-600); color: #fff; }
.nav-link.active svg { color: #fff; }
.nav-link .nav-pct { margin-left: auto; font-size: 12px; font-weight: 700; }
.nav-link .nav-pct.ok { color: var(--a-green-500); }
.nav-link .nav-pct.mid { color: var(--a-navy-500); }
.nav-link .nav-pct.warn { color: var(--a-gold-600); }
.nav-badge {
  margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--a-gold-400); color: #fff;
}

/* Sidebar footer: plan + user */
.sidebar-foot { padding: 14px; border-top: 1px solid var(--a-gray-100); }
.plan-card {
  background: var(--a-navy-600); border-radius: var(--a-radius);
  padding: 13px 14px; color: #fff;
}
.plan-card .plan-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.plan-card .plan-title svg { width: 14px; height: 14px; color: var(--a-gold-400); }
.plan-card .plan-status {
  margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .06em;
  color: #A7F3D0; background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3); padding: 1px 7px; border-radius: 999px;
}
.plan-card p { color: rgba(255,255,255,.75); font-size: 11.5px; line-height: 1.45; margin-top: 6px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; }
.side-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--a-gray-200); color: var(--a-navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.side-user .who { font-size: 13px; font-weight: 600; color: var(--a-gray-800); line-height: 1.2; }
.side-user .email { font-size: 11px; color: var(--a-gray-400); }

/* ——— Main column ——— */
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--a-gray-200);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.topbar .menu-btn { display: none; }
@media (max-width: 1023.98px) { .topbar .menu-btn { display: inline-flex; } }
.menu-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--a-gray-200);
  background: #fff; color: var(--a-gray-600); align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.crumb { font-size: 13px; color: var(--a-gray-500); }
.crumb b { color: var(--a-gray-800); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.exam-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--a-navy-600); color: #fff;
  border-radius: 999px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 600;
}
.exam-pill svg { width: 14px; height: 14px; color: var(--a-gold-400); }
.exam-pill .sep { color: rgba(255,255,255,.55); font-weight: 400; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--a-gray-200);
  background: #fff; color: var(--a-gray-500); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn svg { width: 16px; height: 16px; }

/* ——— Page furniture (Template A dashboard) ——— */
.a-page { padding: 28px 28px 56px; }
.a-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.a-heading h1 { font-size: 26px; font-weight: 800; color: var(--a-gray-900); }
.a-heading .lede { color: var(--a-gray-500); font-size: 13.5px; margin-top: 3px; }
.a-actions { display: flex; gap: 10px; }

.btn-a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; border-radius: 9px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.btn-a:hover { text-decoration: none; }
.btn-a-primary { background: var(--a-navy-600); color: #fff; }
.btn-a-primary:hover { background: var(--a-navy-700); }
.btn-a-ghost { background: #fff; color: var(--a-gray-700); border-color: var(--a-gray-200); }
.btn-a-ghost:hover { border-color: var(--a-gray-300); }
.btn-a-gold { background: var(--a-gold-500); color: #fff; }
.btn-a-gold:hover { background: var(--a-gold-600); }
.btn-a-block { width: 100%; justify-content: center; }

.a-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .a-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .a-cards { grid-template-columns: 1fr; } }
.a-card {
  background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius);
  box-shadow: var(--a-shadow-sm); padding: 18px;
}
.a-card .ic-row { display: flex; align-items: center; justify-content: space-between; }
.a-chip-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.a-chip-icon svg { width: 17px; height: 17px; }
.ic-navy { background: var(--a-navy-50); color: var(--a-navy-600); }
.ic-gold { background: #FEF3C7; color: var(--a-gold-600); }
.ic-green { background: #D1FAE5; color: var(--a-green-600); }
.ic-red { background: #FEE2E2; color: var(--a-red-500); }
.a-tag { font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.a-tag.green { background: #D1FAE5; color: var(--a-green-600); }
.a-tag.gold { background: #FEF3C7; color: var(--a-gold-600); }
.a-card .c-label { margin-top: 14px; font-size: 12px; color: var(--a-gray-500); font-weight: 500; }
.a-card .c-value { font-size: 24px; font-weight: 800; color: var(--a-gray-900); letter-spacing: -.01em; margin-top: 1px; }
.a-card .c-value small { font-size: 13px; font-weight: 600; color: var(--a-gray-400); }
.a-card .c-sub { font-size: 12px; color: var(--a-gray-400); margin-top: 4px; }
.a-card .c-sub .up { color: var(--a-green-600); font-weight: 600; }
.a-track { height: 6px; border-radius: 999px; background: var(--a-gray-100); margin-top: 12px; overflow: hidden; }
.a-track i { display: block; height: 100%; border-radius: 999px; background: var(--a-navy-500); }

.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.a-col2 { grid-column: span 2; }
@media (max-width: 1000px) { .a-grid2, .a-grid4 { grid-template-columns: 1fr; } .a-col2 { grid-column: span 1; } }

.a-panel { background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius); box-shadow: var(--a-shadow-sm); }
.a-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--a-gray-100); }
.a-panel-head h2 { font-size: 15px !important; font-weight: 700; color: var(--a-gray-800); margin: 0; }
.a-panel-head .hint { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--a-gray-400); }
.a-panel-head a.link { font-size: 12.5px; font-weight: 600; color: var(--a-navy-600); }
.a-panel-head a.link:hover { text-decoration: underline; }

/* subject rows */
.a-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--a-gray-100); }
.a-row:last-child { border-bottom: none; }
.a-row .r-name { font-weight: 600; font-size: 14px; color: var(--a-gray-800); width: 210px; flex-shrink: 0; display: flex; align-items: center; gap: 9px; }
.a-row .r-name .dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.a-row .r-track { flex: 1; height: 6px; border-radius: 999px; background: var(--a-gray-100); overflow: hidden; }
.a-row .r-track i { display: block; height: 100%; border-radius: 999px; }
.a-row .r-pct { width: 48px; text-align: right; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.a-row .r-delta { width: 60px; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* weak list */
.a-weak { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--a-gray-100); }
.a-weak:last-child { border-bottom: none; }
.a-weak .idx { font-size: 11px; font-weight: 700; color: var(--a-gray-400); width: 18px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.a-weak .w-body { flex: 1; min-width: 0; }
.a-weak .w-body .t { font-size: 13.5px; font-weight: 600; color: var(--a-gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-weak .w-body .m { font-size: 11.5px; color: var(--a-gray-400); margin-top: 1px; }
.a-weak .w-body .m b { font-weight: 700; }
.a-weak a { font-size: 12.5px; font-weight: 600; color: var(--a-navy-600); white-space: nowrap; }
.a-weak a:hover { text-decoration: underline; }

/* simple bar chart */
.a-bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; padding: 16px 18px 4px; }
.a-bars .b { flex: 1; border-radius: 2px 2px 0 0; background: var(--a-gray-200); }
.a-bars .b.hot { background: var(--a-gold-500); }
.a-bars .b.on { background: var(--a-navy-300); }
.a-xlab { display: flex; justify-content: space-between; padding: 6px 18px 14px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--a-gray-400); }
.a-note { padding: 0 18px 16px; font-size: 12px; color: var(--a-gray-500); }
.a-note b { color: var(--a-green-600); }

/* readiness ring (reuse inline classes but widen) */
.a-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 2px; }
.a-ring-wrap .ring-cap { font-size: 12px; color: var(--a-gray-500); }

/* big CTA band */
.a-cta { border-radius: var(--a-radius); padding: 20px 22px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(100deg, var(--a-navy-600), var(--a-navy-800)); color: #fff; }
.a-cta .cta-title { font-size: 16px; font-weight: 800; }
.a-cta .cta-sub { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }
.a-cta .btn-a-gold { background: var(--a-gold-400); color: var(--a-navy-800); }
.a-cta .btn-a-gold:hover { background: var(--a-gold-300); }

/* tables (recent sessions in A) */
.a-table { width: 100%; border-collapse: collapse; }
.a-table th { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a-gray-400); text-align: left; padding: 10px 18px; border-bottom: 1px solid var(--a-gray-200); }
.a-table td { padding: 12px 18px; border-bottom: 1px solid var(--a-gray-100); font-size: 13.5px; vertical-align: middle; }
.a-table tr:last-child td { border-bottom: none; }
.a-table .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.verdict-a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12.5px; }
.verdict-a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.verdict-a.ok { color: var(--a-green-600); } .verdict-a.ok::before { background: var(--a-green-500); }
.verdict-a.warn { color: var(--a-gold-600); } .verdict-a.warn::before { background: var(--a-amber-500); }
.verdict-a.fail { color: var(--a-red-500); } .verdict-a.fail::before { background: var(--a-red-500); }
.a-subj-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--a-navy-50); color: var(--a-navy-600); }

.a-foot { margin-top: 18px; border-top: 1px solid var(--a-gray-200); padding-top: 14px; display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--a-gray-400); font-weight: 600; }

/* Auth pages: center a narrow column */
body.auth-page .app-body { max-width: 460px; }

/* ── Standalone (no app shell) surfaces ──
   Auth pages + assessment flow pages (question/answer/results screens)
   render WITHOUT sidebar/topbar. Content centers in a narrow column. */
body.standalone { background: var(--a-gray-100); }
body.standalone .app-body {
  max-width: 720px; margin: 0 auto;
  padding: 40px 20px 60px;
}
body.standalone.auth-standalone .app-body {
  max-width: 440px; padding-top: 60px;
}
body.standalone .standalone-wrap { min-height: 100vh; }
body.standalone .flash-messages { max-width: 720px !important; margin: 12px auto 0; }
body.standalone .auth-card { margin-top: 8px; }
body.standalone .auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 0 4px;
}
/* Standalone pages should not offer the sidebar toggle */
body.standalone .menu-btn, body.standalone .sidebar-overlay { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   Template A — component skin (legacy classes → A language)
   Loaded last: overrides editorial component styles app-wide.
   ═══════════════════════════════════════════════════════════════ */

/* Wrappers + type */
.container { max-width: 1000px; }
.section-title {
  font-size: 15px !important; font-weight: 700; color: var(--a-gray-800);
  margin: 22px 0 12px; letter-spacing: -0.01em;
}
.subtitle { color: var(--a-gray-500); }
.card {
  background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius);
  box-shadow: var(--a-shadow-sm); padding: 18px;
}

/* Buttons */
.btn, .btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  font-family: var(--a-font); line-height: 1.2; cursor: pointer; border: 1px solid transparent;
  transition: background .12s, color .12s, border-color .12s; text-decoration: none;
}
.btn:hover, .btn-lg:hover { text-decoration: none; filter: none; }
.btn-primary, .submit-btn {
  background: var(--a-navy-600); color: #fff;
}
.btn-primary:hover, .submit-btn:hover { background: var(--a-navy-700); color: #fff; }
.btn-secondary, .btn-ghost {
  background: #fff; color: var(--a-gray-700); border-color: var(--a-gray-200);
}
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--a-gray-300); color: var(--a-gray-900); }
.btn-full { width: 100%; }
.btn:disabled, .btn-lg:disabled { opacity: .55; cursor: not-allowed; }

/* Forms */
.form-group label { font-weight: 600; color: var(--a-gray-700); font-size: 13px; margin-bottom: 5px; display: inline-block; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: 10px 13px; font-size: 14px; font-family: var(--a-font);
  color: var(--a-gray-800); background: #fff;
  border: 1px solid var(--a-gray-300); border-radius: 9px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--a-navy-500); box-shadow: 0 0 0 3px rgba(27, 58, 92, .12); }

/* Links + muted text */
.text-muted { color: var(--a-gray-500) !important; }
.text-correct { color: var(--a-green-600) !important; }
.text-wrong { color: var(--a-red-500) !important; }
.text-warning { color: var(--a-gold-600) !important; }
.link { color: var(--a-navy-600); font-weight: 600; }

/* Auth */
.auth-card {
  background: #fff; border: 1px solid var(--a-gray-200); border-radius: 14px;
  box-shadow: var(--a-shadow); padding: 30px 28px; margin-top: 30px;
}
.auth-card h1, .auth-card h2 { font-size: 22px; font-weight: 800; color: var(--a-gray-900); }
.auth-link { color: var(--a-navy-600); font-weight: 600; }

/* Quiz flow */
.progress-bar-track {
  height: 8px; border-radius: 999px; background: var(--a-gray-100); overflow: hidden;
}
.progress-bar-track > div, .progress-bar-track i, .progress-fill { background: var(--a-navy-500) !important; border-radius: 999px; height: 100%; }
.choice-letter {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; background: var(--a-gray-100); color: var(--a-gray-600);
}
.breakdown-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.breakdown-reason { background: var(--a-gray-50); border-left: 3px solid var(--a-gray-200); border-radius: 0 8px 8px 0; padding: 10px 12px; font-size: 13px; color: var(--a-gray-600); }
.breakdown-reason.correct { border-color: var(--a-green-500); }
.breakdown-reason.wrong { border-color: var(--a-red-500); }
.domain-chip, .suggestion-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--a-navy-50); color: var(--a-navy-600); border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; font-weight: 600;
}

/* Results */
.results-score { color: var(--a-navy-700); font-size: 4rem; font-weight: 800; }
.results-summary, .results-detail-row { border: 1px solid var(--a-gray-200); border-radius: var(--a-radius); background: #fff; box-shadow: var(--a-shadow-sm); }
.results-detail-label { color: var(--a-gray-500); font-size: 12px; font-weight: 600; }
.results-detail-value { color: var(--a-gray-800); font-weight: 700; font-size: 16px; }
.mistake-card, .mistake-question { background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius); box-shadow: var(--a-shadow-sm); }
.mistake-answers { border-top: 1px solid var(--a-gray-100); }

/* Stats */
.stat-card {
  background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius);
  box-shadow: var(--a-shadow-sm); padding: 16px 18px;
}
.stat-value { font-size: 24px; font-weight: 800; color: var(--a-gray-900); }
.stat-label { color: var(--a-gray-500); font-size: 12px; }

/* Settings */
.settings-section { background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius); box-shadow: var(--a-shadow-sm); padding: 20px; margin-bottom: 18px; }
.settings-section-title { font-size: 15px; font-weight: 700; color: var(--a-gray-800); }
.settings-row { border-top: 1px solid var(--a-gray-100); padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.settings-label { font-weight: 600; color: var(--a-gray-700); font-size: 13.5px; }
.settings-value { color: var(--a-gray-500); font-size: 13.5px; }

/* Tutor */
.tutor-tab { border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; color: var(--a-gray-600); }
.tutor-tab.active { background: var(--a-navy-50); color: var(--a-navy-700); }
.tab-content { background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius); box-shadow: var(--a-shadow-sm); padding: 18px; }
.confidence-dot { border-color: var(--a-gray-300); }

/* Misc chips/cards on diagnostic & stimulus pages */
.pa-card, .stimulus-card { background: #fff; border: 1px solid var(--a-gray-200); border-radius: var(--a-radius); box-shadow: var(--a-shadow-sm); padding: 18px; }
.pa-empty, .pa-note { color: var(--a-gray-500); }

/* ── ID/specificity cleanups (beat legacy.css) ─────────────────── */
#submit-btn, .submit-btn:disabled, #submit-btn:disabled {
  background: var(--a-navy-600) !important; color: #fff !important; opacity: .55; cursor: not-allowed;
}
#submit-btn:not(:disabled) { opacity: 1; }

/* ── Pricing page: 3-tier cards (Step 2) ────────────────────────── */
.pricing-page { max-width: 980px; }
.pricing-page .pricing-header { margin-bottom: 2rem; }
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px; align-items: stretch; margin-bottom: 1.5rem;
}
.tier-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--a-gray-200);
  border-radius: var(--a-radius); padding: 22px 22px 20px;
  box-shadow: var(--a-shadow-sm);
}
.tier-card.is-featured { border: 2px solid var(--a-navy-600); box-shadow: var(--a-shadow); }
.tier-name { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--a-gray-500); }
.tier-price { font-size: 34px; font-weight: 800; color: var(--a-navy-700); margin: 4px 0 2px; line-height: 1.1; }
.tier-period { color: var(--a-gray-400); font-size: 13px; margin-bottom: 16px; min-height: 18px; }
.tier-features { flex: 1; margin: 0 0 20px; padding-left: 18px; color: var(--a-gray-600); font-size: 14px; line-height: 1.6; }
.tier-features li { margin-bottom: 4px; }
.tier-cta {
  display: block; width: 100%; text-align: center; box-sizing: border-box;
  padding: 11px 14px; border-radius: 10px; text-decoration: none;
  font-size: 14.5px; font-weight: 700; border: 1px solid var(--a-gray-200);
  background: var(--a-gray-100); color: var(--a-gray-500);
  cursor: not-allowed; opacity: .85;
}
.tier-cta--go { background: var(--a-navy-600); border-color: var(--a-navy-600); color: #fff; cursor: pointer; opacity: 1; }
.tier-cta--go:hover { background: var(--a-navy-700); color: #fff; text-decoration: none; }
.tier-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--a-gold-400); color: var(--a-navy-800);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.tier-current {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  background: var(--a-green-600); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
}
.current-plan-badge { border-color: #2d6a4f33; }
