/* MedComply design system
   Style: Accessible & Ethical + Swiss minimal (healthcare / compliance).
   Palette: medical teal + health green on slate; 4.5:1+ text contrast in both themes.
   Type: Plus Jakarta Sans. Chart hue validated with the dataviz palette checker:
   #0891B2 on light, #0EA5C6 on dark. */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #0e7490;
  --brand-hover: #155e75;
  --brand-ink: #ffffff;
  --brand-soft: #ecfeff;
  --brand-soft-ink: #0e7490;
  --accent: #047857;
  --chart: #0891b2;
  --critical: #b91c1c;
  --critical-soft: #fef2f2;
  --major: #b45309;
  --major-soft: #fffbeb;
  --minor: #6d28d9;
  --minor-soft: #f5f3ff;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --focus: #0e7490;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
  --sidebar-w: 248px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b1120; --surface: #111a2e; --surface-2: #17223a; --surface-3: #22304d;
    --text: #e8eef7; --text-2: #cbd5e1; --muted: #9aa8bd; --border: #1f2b44; --border-strong: #2c3b5b;
    --brand: #22c3dd; --brand-hover: #67e0f0; --brand-ink: #04232b; --brand-soft: #0d2a36; --brand-soft-ink: #67e0f0;
    --accent: #34d399; --chart: #0ea5c6;
    --critical: #f87171; --critical-soft: #3a1720; --major: #fbbf24; --major-soft: #33270f; --minor: #b4a1ff; --minor-soft: #241f45;
    --ok: #34d399; --ok-soft: #0f2e25; --focus: #67e0f0;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255, 255, 255, 0.03); --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b1120; --surface: #111a2e; --surface-2: #17223a; --surface-3: #22304d;
  --text: #e8eef7; --text-2: #cbd5e1; --muted: #9aa8bd; --border: #1f2b44; --border-strong: #2c3b5b;
  --brand: #22c3dd; --brand-hover: #67e0f0; --brand-ink: #04232b; --brand-soft: #0d2a36; --brand-soft-ink: #67e0f0;
  --accent: #34d399; --chart: #0ea5c6;
  --critical: #f87171; --critical-soft: #3a1720; --major: #fbbf24; --major-soft: #33270f; --minor: #b4a1ff; --minor-soft: #241f45;
  --ok: #34d399; --ok-soft: #0f2e25; --focus: #67e0f0;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255, 255, 255, 0.03); --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: 1.6rem; margin: 0 0 6px; font-weight: 700; }
h2 { font-size: 1.1rem; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 0.98rem; margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
a { color: var(--brand); }
img { max-width: 100%; }
.hidden { display: none !important; }
.mt { margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s, color 0.18s, transform 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.subtle { background: transparent; color: var(--text-2); }
.btn.subtle:hover { background: var(--surface-2); }
.btn.danger { background: var(--critical); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--critical); border-color: currentColor; }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: 13.5px; }
.btn.lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
label.check input { width: 18px; height: 18px; accent-color: var(--brand); }
input, select, textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; width: 100%; min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
input:disabled { background: var(--surface-2); color: var(--muted); }
.help { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 680px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

/* ---------- Cards & common blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; overflow-x: auto; }
.result .card + .card, .stack > * + * { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.summary { color: var(--muted); margin: 6px 0 0; }
.hint { font-size: 13.5px; color: var(--brand-soft-ink); background: var(--brand-soft); padding: 8px 12px; border-radius: 8px; }
.notice { background: var(--brand-soft); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.error { background: var(--critical-soft); color: var(--critical); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.mode-note { font-size: 13px; color: var(--major); margin-top: 6px; }
.flag { color: var(--major); font-size: 12.5px; margin-top: 4px; }
ul.clean, ol.clean { margin: 6px 0 0; padding-left: 20px; }
ul.clean li, ol.clean li { margin: 4px 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
details > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; margin-right: 2px; }
details[open] > summary::before { transform: rotate(45deg); }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.critical, .pill.remove { background: var(--critical-soft); color: var(--critical); }
.pill.major, .pill.edit { background: var(--major-soft); color: var(--major); }
.pill.minor { background: var(--minor-soft); color: var(--minor); }
.pill.keep, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.neutral { background: var(--surface-2); color: var(--muted); }
.pill.brand { background: var(--brand-soft); color: var(--brand-soft-ink); }
.counts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.clause { font-size: 11.5px; font-weight: 700; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; cursor: help; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 5px 12px; border-radius: 999px; font-size: 14px; }
.status.approved { background: var(--ok-soft); color: var(--ok); }
.status.changes_required { background: var(--major-soft); color: var(--major); }
.status.rejected { background: var(--critical-soft); color: var(--critical); }

.verdict { display: flex; gap: 20px; align-items: center; }
@media (max-width: 520px) { .verdict { flex-direction: column; align-items: flex-start; } }
.ring { --p: 0; --c: var(--ok); width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring > div { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring b { font-size: 1.75rem; line-height: 1; }
.ring small { color: var(--muted); font-size: 11px; }
.ring.sm { width: 64px; height: 64px; }
.ring.sm > div { width: 50px; height: 50px; }
.ring.sm b { font-size: 1.05rem; }

.finding { border-left: 4px solid var(--border-strong); padding: 12px 14px; border-radius: 10px; background: var(--surface-2); margin-top: 10px; }
.finding.critical { border-left-color: var(--critical); }
.finding.major { border-left-color: var(--major); }
.finding.minor { border-left-color: var(--minor); }
.finding-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.finding-head b { flex: 1 1 200px; }
.finding .ev { font-size: 13.5px; margin: 6px 0 4px; color: var(--muted); }
.finding .ev q { color: var(--text); font-style: italic; }
.finding .why { font-size: 14px; margin: 4px 0; color: var(--text-2); }
.finding .fix { font-size: 14px; margin: 6px 0 0; }
.finding .fix::before { content: 'Fix: '; font-weight: 700; color: var(--ok); }
.rewrite { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: 14.5px; margin: 8px 0 0; }

.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.tally div { background: var(--surface-2); border-radius: 10px; padding: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.tally b { display: block; font-size: 1.5rem; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress span { display: block; height: 100%; background: var(--brand); transition: width 0.4s var(--ease); }

/* ---------- Skeletons, empty states, toast, loader ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; min-height: 16px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty .icon { width: 36px; height: 36px; color: var(--brand); opacity: 0.8; margin-bottom: 6px; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.result.empty { min-height: 320px; display: grid; place-items: center; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: transparent; }
.placeholder { text-align: center; color: var(--muted); }
.placeholder .icon { width: 40px; height: 40px; opacity: 0.6; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); background: var(--text); color: var(--bg); animation: toast-in 0.25s var(--ease); }
.toast.err { background: var(--critical); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.loader { position: fixed; inset: 0; background: rgba(8, 15, 30, 0.55); backdrop-filter: blur(2px); display: grid; place-content: center; justify-items: center; color: #fff; z-index: 90; gap: 12px; text-align: center; padding: 16px; }
.spinner { width: 44px; height: 44px; border: 4px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.net-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 85; background: var(--major); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 8px; }
.banner { background: var(--major-soft); color: var(--major); text-align: center; padding: 8px 16px; font-size: 14px; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; background: rgba(8, 15, 30, 0.55); z-index: 70; display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); padding: 26px; animation: pop 0.2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal-card.wide { max-width: 780px; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal-card h2 { margin: 0 0 4px; padding-right: 32px; font-size: 1.3rem; }
.modal-sub { color: var(--muted); margin: 0 0 6px; }
#authForm .m-login, #authForm .m-signup, #authForm .m-forgot, #authForm .m-reset { display: none; }
#authForm[data-mode='login'] .m-login, #authForm[data-mode='signup'] .m-signup, #authForm[data-mode='forgot'] .m-forgot, #authForm[data-mode='reset'] .m-reset { display: flex; }
#authForm p.m-login, #authForm p.m-signup, #authForm p.m-forgot, #authForm p.m-reset { display: none; }
#authForm[data-mode='login'] p.m-login, #authForm[data-mode='signup'] p.m-signup, #authForm[data-mode='forgot'] p.m-forgot, #authForm[data-mode='reset'] p.m-reset { display: block; }
.paywall .price { margin: 8px 0 4px; }

/* ---------- Landing page ---------- */
.lp-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-nav-inner, .lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.lp-links { display: flex; align-items: center; gap: 4px; }
.lp-links a { white-space: nowrap; }
.lp-links a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.lp-links a:not(.btn):hover { background: var(--surface-2); }
@media (max-width: 760px) { .lp-links .hide-sm { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand strong { font-size: 17px; letter-spacing: -0.01em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); flex: none; }
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; padding-bottom: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand-soft-ink); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { color: var(--ok); width: 16px; height: 16px; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-post { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--border); margin-top: 8px; }
.mock-post .thumbph { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-3)); }
.mock-post small { color: var(--muted); display: block; }
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .ficon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-soft-ink); margin-bottom: 14px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .risk-grid { grid-template-columns: 1fr 1fr; } }
.risk { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.risk b { display: block; font-size: 0.95rem; }
.risk span { font-size: 13.5px; color: var(--muted); }
.risk.serious { border-color: color-mix(in srgb, var(--critical) 40%, var(--border)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px 22px 22px 70px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.step p { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }
.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 16px 18px; margin-bottom: 10px; }
.faq details p { color: var(--text-2); margin: 10px 0 0; }
.cta-band { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; border-radius: 20px; padding: 40px; text-align: center; }
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }
.cta-band .btn { background: #fff; color: #0e7490; }
.lp-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 13px; }
.lp-footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }
.sidebar .brand { padding: 4px 8px 16px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background 0.15s, color 0.15s; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current='page'] { background: var(--brand-soft); color: var(--brand-soft-ink); }
.nav-item .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); }
.plan-card { margin-top: auto; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); font-size: 13px; }
.plan-card b { font-size: 14px; display: block; margin-bottom: 4px; }
.plan-card .meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 8px 0 4px; }
.plan-card .meter span { display: block; height: 100%; background: var(--brand); }
.plan-card .btn { margin-top: 10px; width: 100%; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid transparent; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; width: 100%; }
.user-chip:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-soft-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-chip span { min-width: 0; }
.user-chip b, .user-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip small { color: var(--muted); font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .page-title { font-weight: 700; font-size: 1.05rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }
.content { padding: 28px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin: 0; max-width: 720px; }
.panel { display: none; }
.panel.active { display: block; animation: fade 0.2s ease; }
.scrim { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform 0.25s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8, 15, 30, 0.45); }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 16px 40px; }
}

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm); min-height: 132px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-top .icon { color: var(--brand); }
.kpi-value { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-value small { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.kpi-foot { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.kpi-foot a { font-weight: 600; text-decoration: none; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-grid > *, .stack > * { min-width: 0; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 900px) { .quick { grid-template-columns: 1fr 1fr; } }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color 0.15s, transform 0.15s; min-height: 64px; }
.quick a:hover { border-color: var(--brand); transform: translateY(-1px); }
.quick .qicon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-soft-ink); flex: none; }
.quick small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.setup-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--major) 35%, var(--border)); background: var(--major-soft); margin-bottom: 16px; }
.setup-banner p { margin: 0; color: var(--text); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover .lr-title { color: var(--brand); }
.lr-date { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--surface-2); padding: 5px 0; line-height: 1.1; }
.lr-date b { display: block; font-size: 1.05rem; }
.lr-date small { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lr-main { flex: 1; min-width: 0; }
.lr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.lr-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-chip { font-weight: 700; font-size: 13px; min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 8px; }
.score-chip.approved { background: var(--ok-soft); color: var(--ok); }
.score-chip.changes_required { background: var(--major-soft); color: var(--major); }
.score-chip.rejected { background: var(--critical-soft); color: var(--critical); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .bar { fill: var(--chart); }
.chart .bar:hover, .chart .bar.active { fill: color-mix(in srgb, var(--chart) 75%, var(--text)); }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: var(--text); color: var(--bg); font-size: 12.5px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-lg); z-index: 5; }
.tip b { font-size: 13.5px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 10px; align-items: center; margin-top: 10px; font-size: 13.5px; }
.hbar .lbl { grid-column: 1 / -1; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--chart); }
.hbar .val { font-weight: 700; text-align: right; color: var(--text); }
.status-strip { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin: 10px 0 8px; }
.status-strip span { display: block; height: 100%; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.st-idea { background: var(--border-strong); }
.st-planned { background: var(--minor); }
.st-draft { background: var(--major); }
.st-ready { background: var(--brand); }
.st-posted { background: var(--ok); }

/* ---------- Content check / scan / planner pieces ---------- */
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 22px 16px; text-align: center; background: var(--surface-2); transition: border-color 0.15s, background 0.15s; }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone p { margin: 0 0 2px; }
.dropzone small { color: var(--muted); }
.dropzone.small { padding: 12px; }
.dz-icon { color: var(--brand); margin-bottom: 6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: center; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer; line-height: 1; }
.thumb .tag { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 10px; padding: 1px 3px; }
.posts-head { display: flex; justify-content: space-between; align-items: center; }
.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: start; }
.post-item .pick { width: 76px; height: 76px; border-radius: 10px; border: 1.5px dashed var(--border-strong); display: grid; place-items: center; cursor: pointer; font-size: 11px; color: var(--muted); overflow: hidden; background: var(--surface-2); font-weight: 500; }
.post-item .pick img { width: 100%; height: 100%; object-fit: cover; }
.post-item textarea { min-height: 76px; }
.post-item .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; width: 36px; height: 36px; border-radius: 8px; }
.post-item .rm:hover { background: var(--surface-2); }
.manual { margin-top: 28px; }
.manual > summary { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.scan-card { margin-bottom: 18px; }
.scan-row { display: flex; gap: 10px; }
.scan-row input { flex: 1; }
@media (max-width: 640px) { .scan-row { flex-direction: column; } }
.prof-head { display: flex; gap: 14px; align-items: center; }
.prof-head img, .avatar-ph { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.prof-head .meta { color: var(--muted); font-size: 13.5px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.filters button { font: inherit; font-size: 13.5px; font-weight: 600; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; }
.filters button.active { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.pcard { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.pcard .media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .media .badge { position: absolute; top: 10px; left: 10px; }
.pcard .media .type { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pcard .cap { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pcard a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.issue-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; flex-wrap: wrap; }
.issue-row:last-child { border-bottom: 0; }
.issue-row b { flex: 1 1 200px; font-weight: 600; }
.upsell { margin-top: 14px; padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.post-row { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.post-row .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-row .top b { flex: 1; }

.offer { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin: 18px 0; }
@media (max-width: 800px) { .offer { grid-template-columns: 1fr; } }
.offer-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.offer-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.offer-card h3 { font-size: 1.1rem; }
.offer-card ul { flex: 1; list-style: none; padding: 0; margin: 4px 0; }
.offer-card li { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 14.5px; color: var(--text-2); }
.offer-card li .icon { color: var(--ok); margin-top: 2px; width: 17px; height: 17px; }
.price { font-size: 2.1rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.ribbon { position: absolute; top: -12px; right: 18px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .tiers { grid-template-columns: 1fr; } }
.tier-opt { flex-direction: row; align-items: flex-start; gap: 10px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-weight: 500; cursor: pointer; }
.tier-opt input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--brand); flex: none; }
.tier-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.tier-opt small { color: var(--muted); }

.pillars { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pillar .bar { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.pillar .bar span { display: block; height: 100%; background: var(--chart); border-radius: 99px; }
.pillar small { color: var(--muted); }
.week { margin-top: 16px; }
.week h3 { font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.cal-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); font-size: 14px; }
.cal-item .date { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cal-item .topic { font-weight: 700; margin: 6px 0 4px; }
.cal-item .hook { font-style: italic; color: var(--muted); font-size: 13px; }
.cal-item details { margin-top: 8px; font-size: 13.5px; }
.script { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-top: 12px; }
.script pre { white-space: pre-wrap; font-family: inherit; background: var(--surface-2); padding: 14px; border-radius: 10px; font-size: 14px; }

/* ---------- Calendar ---------- */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav h2 { margin: 0; min-width: 190px; text-align: center; font-size: 1.25rem; }
.cal-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); gap: 1px; }
.cal-dow { background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px; text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-day { background: var(--surface); min-height: 116px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.other { background: var(--surface-2); }
.cal-day.other .cal-num { opacity: 0.55; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-day.today .cal-num span { background: var(--brand); color: var(--brand-ink); border-radius: 99px; padding: 0 7px; }
.cal-num { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.cal-add { border: 0; background: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; opacity: 0; }
.cal-add:hover { background: var(--surface-2); color: var(--brand); }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--border-strong); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip:hover { filter: brightness(0.97); }
.cal-chip.static { display: inline-flex; align-items: center; width: auto; cursor: default; }
.cal-chip.planned { border-left-color: var(--minor); background: var(--minor-soft); }
.cal-chip.draft { border-left-color: var(--major); background: var(--major-soft); }
.cal-chip.ready { border-left-color: var(--brand); background: var(--brand-soft); }
.cal-chip.posted { border-left-color: var(--ok); background: var(--ok-soft); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.dot.approved { background: var(--ok); }
.dot.changes_required { background: var(--major); }
.dot.rejected { background: var(--critical); }
.cal-feed { margin-top: 18px; }
@media (max-width: 700px) {
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-chip:not(.static) { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .cal-add { opacity: 1; width: 22px; height: 22px; }
  .cal-nav h2 { min-width: 0; font-size: 1.05rem; }
  .cal-dow { font-size: 10.5px; padding: 6px 2px; }
}

/* ---------- Tables, usage, guidelines ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tabs-inline { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs-inline button { font: inherit; font-weight: 600; font-size: 14.5px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 44px; }
.tabs-inline button[aria-selected='true'] { color: var(--brand); border-bottom-color: var(--brand); }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.usage-grid > div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.usage-grid b { display: block; font-size: 1.25rem; }
.usage-grid span { font-size: 12.5px; color: var(--muted); }
.usage-grid.admin > div { background: var(--surface); border: 1px solid var(--border); }
.search { max-width: 460px; margin-bottom: 16px; }
.rule-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 14px; }
.rule { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.rule h3 { font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.rule p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.penalties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.penalties div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--muted); }
.penalties b { display: block; color: var(--text); }
.disclaimer { color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 16px; }
.connectors { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .lp-nav, .actions, .filters, .upsell, .manual, .page-head .actions, .net-banner, .toast, button { display: none !important; }
  .app { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; border-color: #ddd; }
  body { background: #fff; color: #000; }
  details { display: block; }
  details > * { display: block !important; }
}

/* ---------- Splash (shown until the first route renders) ---------- */
.splash { position: fixed; inset: 0; z-index: 95; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.splash .logo { width: 52px; height: 52px; border-radius: 14px; }
.splash-bar { width: 140px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.splash-bar span { display: block; width: 40%; height: 100%; background: var(--brand); border-radius: 99px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
