/* ============================================================
   Konform — Documentation design system
   Modern dev-docs. Neutral warm base + restrained gold accent.
   ============================================================ */

:root {
  /* Light theme (default) */
  --bg: #f4f5f7;
  --bg-grid: #e9ebef;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --surface-3: #e5e8ec;
  --border: #e2e5ea;
  --border-strong: #cdd2d8;
  --text: #1b1e23;
  --text-muted: #5b6068;
  --text-faint: #8b919b;
  --accent: #0d9488;
  --accent-strong: #0b7d72;
  --accent-soft: #d6f1ec;
  --accent-ring: rgba(13, 148, 136, 0.28);
  --danger: #c0392b;
  --success: #1f9d6b;
  --info: #2f6bb0;
  --shadow-sm: 0 1px 2px rgba(20, 23, 30, 0.06), 0 1px 1px rgba(20, 23, 30, 0.04);
  --shadow-md: 0 4px 14px rgba(20, 23, 30, 0.09), 0 1px 3px rgba(20, 23, 30, 0.06);
  --shadow-lg: 0 18px 50px rgba(20, 23, 30, 0.16), 0 4px 12px rgba(20, 23, 30, 0.10);

  /* Code panel — dark in both themes for that engine-console feel */
  --code-bg: #16161a;
  --code-bg-2: #1d1d22;
  --code-border: #2a2a31;
  --code-text: #d6d6dc;
  --code-line: #3a3a44;
  --code-gutter: #54545f;

  /* Prism tokens */
  --tok-comment: #6b6b78;
  --tok-keyword: #e2a35f;
  --tok-type: #79d6c2;
  --tok-string: #9ece6a;
  --tok-number: #c9a4ff;
  --tok-func: #82aaff;
  --tok-punct: #9aa0ab;
  --tok-op: #c7ccd6;
  --tok-attr: #e2a35f;

  --maxw: 1440px;
  --sidebar-w: 280px;
  --toc-w: 232px;
  --nav-h: 60px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0b0d10;
  --bg-grid: #12151a;
  --surface: #121519;
  --surface-2: #181c21;
  --surface-3: #1f242b;
  --border: #252a31;
  --border-strong: #343b44;
  --text: #eef0f2;
  --text-muted: #9aa1ab;
  --text-faint: #6b727c;
  --accent: #2dd4a6;
  --accent-strong: #54e0bb;
  --accent-soft: #10271f;
  --accent-ring: rgba(45, 212, 166, 0.30);
  --danger: #e0795f;
  --success: #4bd0a0;
  --info: #6fa8e6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection { background: var(--accent-ring); }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-faint); background-clip: padding-box; }

/* ====================== App scaffold ====================== */
#root { min-height: 100vh; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ====================== Top nav ====================== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.brand-text .sub { color: var(--text-faint); font-weight: 500; }

.nav-spacer { flex: 1; }

.nav-search {
  display: flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 11px 0 12px;
  min-width: 240px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-faint);
  font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s;
}
.nav-search:hover { border-color: var(--border-strong); }
.nav-search .ns-kbd-main { margin-left: auto; }
.kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-muted); line-height: 1;
}

.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-link {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  padding: 7px 10px; border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); }

.nav-burger { display: none; }

/* ====================== Docs layout ====================== */
.docs-layout {
  flex: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  align-items: start;
}

/* ---- Sidebar ---- */
.sidebar {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 24px 14px 60px 22px;
  border-right: 1px solid var(--border);
}
.side-group { margin-bottom: 22px; }
.side-group-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint);
  padding: 6px 8px; border-radius: var(--r-sm);
  transition: color 0.15s;
}
.side-group-head:hover { color: var(--text-muted); }
.side-group-head .chev { margin-left: auto; transition: transform 0.2s; opacity: 0.7; }
.side-group-head.collapsed .chev { transform: rotate(-90deg); }
.side-group-head .grp-icon { color: var(--text-faint); display: grid; place-items: center; }
.side-group-head .grp-icon svg { width: 15px; height: 15px; }

.side-items { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; overflow: hidden; }
.side-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6.5px 10px 6.5px 31px;
  font-size: 13.7px; color: var(--text-muted); font-weight: 450;
  border-radius: var(--r-sm); position: relative;
  transition: color 0.13s, background 0.13s;
}
.side-link:hover { color: var(--text); background: var(--surface-2); }
.side-link.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.side-link .sl-text, .hi-list .sl-text { flex: 1; min-width: 0; }
.side-link.active::before {
  content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.side-link .sl-twist {
  flex-shrink: 0; display: grid; place-items: center; margin: -4px -4px -4px 2px;
  padding: 4px; background: none; border: 0; cursor: pointer; color: var(--text-faint);
  border-radius: var(--r-sm);
}
.side-link .sl-twist:hover { color: var(--text); background: var(--surface-3); }
.side-link .sl-twist svg { transition: transform 0.18s; }
.side-link .sl-twist:not(.open) svg { transform: rotate(-90deg); }
.side-link .badge {
  margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 1.5px 5px; border-radius: 20px;
  background: var(--surface-3); color: var(--text-faint);
}
.side-link .badge.draft { background: var(--accent-soft); color: var(--accent-strong); }

/* ---- Main content ---- */
.content-wrap { min-width: 0; padding: 40px 56px 120px; }
.content { max-width: 760px; margin: 0 auto; }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text-muted); }
.breadcrumb .sep { opacity: 0.5; }

.page-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 9px; }
.page-title { font-family: var(--font-display); font-size: 40px; line-height: 1.08; font-weight: 600; letter-spacing: -0.022em; margin: 0 0 14px; }
.page-lede { font-size: 18.5px; line-height: 1.55; color: var(--text-muted); margin: 0 0 18px; text-wrap: pretty; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.meta-row .chip { white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--text-muted);
  padding: 4px 10px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.chip svg { width: 13px; height: 13px; opacity: 0.8; }
.chip.mono { font-family: var(--font-mono); font-size: 11.5px; }

/* prose */
.prose { font-size: 15.7px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -0.015em;
  margin: 2.2em 0 0.1em; padding-top: 0.3em; scroll-margin-top: 84px; line-height: 1.2;
}
.prose h3 {
  font-size: 18.5px; font-weight: 650; letter-spacing: -0.01em;
  margin: 1.9em 0 0.1em; scroll-margin-top: 84px;
}
.prose h2 .anchor, .prose h3 .anchor {
  opacity: 0; margin-left: 8px; color: var(--text-faint); font-weight: 400;
  transition: opacity 0.15s;
}
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p { color: var(--text); text-wrap: pretty; }
.prose a.link { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--accent-ring); transition: border-color 0.15s; }
.prose a.link:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; margin-top: 0.7em; }
.prose li { margin: 0.4em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--text-faint); }
.prose strong { font-weight: 650; }
.prose code.inline {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--surface-3); color: var(--accent-strong);
  padding: 0.12em 0.4em; border-radius: 5px; border: 1px solid var(--border);
  font-weight: 500;
}
[data-theme="dark"] .prose code.inline { color: var(--accent); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }

/* Code block */
.codeblock { margin: 1.3em 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--code-border); background: var(--code-bg); box-shadow: var(--shadow-md); }
.code-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 15px; background: var(--code-bg-2); border-bottom: 1px solid var(--code-border); }
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dots { display: flex; gap: 6px; }
.code-file { font-family: var(--font-mono); font-size: 12px; color: #b6b6c0; margin-left: 4px; }
.code-lang { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6c6c78; }
.copy-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; color: #9b9ba6;
  padding: 5px 9px; border-radius: 7px; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.06); color: #e3e3e9; border-color: var(--code-border); }
.copy-btn.copied { color: var(--tok-string); }
.copy-btn svg { width: 13px; height: 13px; }
.code-scroll { overflow-x: auto; }
.code-body { margin: 0; padding: 15px 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--code-text); }
.code-body code { font-family: inherit; }
.code-line { display: block; padding: 0 18px 0 0; position: relative; }
.code-line .ln { display: inline-block; width: 44px; text-align: right; padding-right: 16px; color: var(--code-gutter); user-select: none; font-variant-numeric: tabular-nums; }
.code-line.hl { background: rgba(227, 178, 97, 0.09); box-shadow: inset 2px 0 0 var(--accent); }

/* Prism token colors */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: var(--tok-comment); font-style: italic; }
.token.punctuation { color: var(--tok-punct); }
.token.keyword, .token.boolean, .token.this { color: var(--tok-keyword); }
.token.class-name, .token.type-keyword, .token.namespace { color: var(--tok-type); }
.token.string, .token.char, .token.attr-value { color: var(--tok-string); }
.token.number { color: var(--tok-number); }
.token.function { color: var(--tok-func); }
.token.operator { color: var(--tok-op); }
.token.attr-name, .token.property, .token.constant { color: var(--tok-attr); }
.token.preprocessor { color: var(--tok-comment); }

/* Callouts */
.callout { display: flex; gap: 13px; padding: 15px 17px; border-radius: var(--r-md); margin: 1.3em 0; border: 1px solid var(--border); background: var(--surface-2); font-size: 14.5px; line-height: 1.6; }
.callout .co-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; }
.callout .co-icon svg { width: 18px; height: 18px; }
.callout .co-body { min-width: 0; }
.callout .co-title { font-weight: 650; margin-bottom: 2px; }
.callout .co-body > p { margin: 0; }
.callout.note { border-color: color-mix(in srgb, var(--info) 30%, var(--border)); background: color-mix(in srgb, var(--info) 7%, var(--surface-2)); }
.callout.note .co-icon { color: var(--info); }
.callout.tip { border-color: color-mix(in srgb, var(--success) 30%, var(--border)); background: color-mix(in srgb, var(--success) 7%, var(--surface-2)); }
.callout.tip .co-icon { color: var(--success); }
.callout.warn { border-color: color-mix(in srgb, var(--danger) 32%, var(--border)); background: color-mix(in srgb, var(--danger) 7%, var(--surface-2)); }
.callout.warn .co-icon { color: var(--danger); }
.callout.gold { border-color: var(--accent-ring); background: var(--accent-soft); }
.callout.gold .co-icon { color: var(--accent); }

/* Tabs */
.tabs { margin: 1.3em 0; }
.tab-row { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tab-btn {
  font-size: 13.5px; font-weight: 550; color: var(--text-muted);
  padding: 9px 14px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  position: relative; transition: color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.tab-panel { padding-top: 6px; }

/* Steps */
.prose ol.steps, .steps { margin: 1.4em 0; padding-left: 0; list-style: none; counter-reset: step; }
.prose ol.steps > li.step, .step { position: relative; margin: 0; padding: 0 0 26px 46px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  background: var(--surface); color: var(--accent);
  border: 1.5px solid var(--accent-ring); z-index: 1;
}
.step::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1.5px; background: var(--border); }
.step:last-child { padding-bottom: 4px; }
.step:last-child::after { display: none; }
.step-title { font-weight: 650; font-size: 16px; margin-bottom: 3px; padding-top: 4px; }
.step-body { color: var(--text-muted); font-size: 14.7px; }
.step-body > *:first-child { margin-top: 0.5em; }

/* Field / property table */
.proptable { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 1.3em 0; font-size: 14px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.proptable th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 700; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.proptable td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.proptable tr:last-child td { border-bottom: none; }
.proptable td.name { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-strong); white-space: normal; overflow-wrap: anywhere; }
[data-theme="dark"] .proptable td.name { color: var(--accent); }
.proptable td.type { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); white-space: normal; overflow-wrap: anywhere; }
.proptable td.desc { color: var(--text-muted); }

/* Image / inspector placeholder */
.placeholder {
  margin: 1.3em 0; border-radius: var(--r-md); border: 1px solid var(--border);
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--text-faint) 8%, transparent) 11px 12px);
  min-height: 200px; display: grid; place-items: center; gap: 8px; text-align: center; padding: 30px;
}
.placeholder .ph-label { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.placeholder .ph-icon { color: var(--text-faint); opacity: 0.6; }
.placeholder .ph-icon svg { width: 30px; height: 30px; }
.placeholder .ph-cap { font-size: 12.5px; color: var(--text-faint); }

/* Uploaded image figure */
.doc-figure { margin: 1.4em 0; text-align: center; }
.doc-figure img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.doc-figure figcaption { margin-top: 9px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* Video / iframe embed */
.embed { margin: 1.4em 0; }
.embed-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--r-md); overflow: hidden; background: #000; border: 1px solid var(--border); }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-cap { margin-top: 9px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* Stub / draft notice */
.stub-banner { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); border: 1px dashed var(--border-strong); background: var(--surface-2); margin: 0 0 30px; }
.stub-banner .sb-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.stub-banner h4 { margin: 0 0 3px; font-size: 14.5px; }
.stub-banner p { margin: 0; font-size: 13.7px; color: var(--text-muted); }

/* Page nav (prev/next) */
.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--border); }
.page-nav a { display: flex; flex-direction: column; gap: 3px; padding: 15px 18px; border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color 0.15s, background 0.15s; }
.page-nav a:hover { border-color: var(--accent-ring); background: var(--surface-2); }
.page-nav a.next { text-align: right; align-items: flex-end; }
.page-nav .pn-label { font-size: 12px; color: var(--text-faint); }
.page-nav .pn-title { font-size: 15px; font-weight: 600; color: var(--text); }

/* ---- TOC ---- */
.toc { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 40px 22px 60px 14px; }
.toc-head { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.toc-list { display: flex; flex-direction: column; gap: 1px; border-left: 1.5px solid var(--border); }
.toc-link { font-size: 13px; color: var(--text-muted); padding: 5px 0 5px 14px; margin-left: -1.5px; border-left: 1.5px solid transparent; transition: color 0.13s, border-color 0.13s; line-height: 1.4; }
.toc-link.sub { padding-left: 26px; font-size: 12.5px; }
.toc-link:hover { color: var(--text); }
.toc-link.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.toc-foot a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.toc-foot a:hover { color: var(--accent); }
.toc-foot a svg { width: 14px; height: 14px; }

/* ====================== Search palette ====================== */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 14, 11, 0.42); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; animation: fade 0.12s ease; }
[data-theme="dark"] .search-overlay { background: rgba(0,0,0,0.6); }
@keyframes fade { from { opacity: 0; } }
.search-modal { width: min(620px, 92vw); max-height: 64vh; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; animation: pop 0.14s cubic-bezier(0.2,0.8,0.3,1); }
@keyframes pop { from { transform: scale(0.97) translateY(-6px); opacity: 0; } }
.search-input-row { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.search-input-row svg { width: 19px; height: 19px; color: var(--text-faint); flex-shrink: 0; }
.search-input { flex: 1; border: none; background: none; outline: none; font-family: inherit; font-size: 17px; color: var(--text); }
.search-input::placeholder { color: var(--text-faint); }
.search-results { overflow-y: auto; padding: 8px; }
.search-empty { padding: 38px 20px; text-align: center; color: var(--text-faint); font-size: 14px; }
.search-group-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); padding: 10px 12px 5px; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); cursor: pointer; }
.search-item.active { background: var(--accent-soft); }
.search-item .si-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); flex-shrink: 0; }
.search-item.active .si-icon { background: var(--surface); border-color: var(--accent-ring); color: var(--accent); }
.search-item .si-icon svg { width: 15px; height: 15px; }
.search-item .si-main { min-width: 0; flex: 1; }
.search-item .si-title { font-size: 14.5px; font-weight: 550; color: var(--text); }
.search-item .si-title em { font-style: normal; color: var(--accent); font-weight: 700; }
.search-item .si-crumb { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item .si-snip { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item .si-snip em { font-style: normal; background: var(--accent-soft); color: var(--accent-strong); border-radius: 3px; padding: 0 2px; }
.search-foot { display: flex; align-items: center; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-faint); }
.search-foot .sf-key { display: flex; align-items: center; gap: 5px; }

/* ====================== Landing ====================== */
.landing { width: 100%; }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 78%); opacity: 0.9; }
.hero-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 760px; height: 420px; background: radial-gradient(ellipse at center, var(--accent-ring), transparent 70%); opacity: 0.5; pointer-events: none; }
.hero-inner { position: relative; max-width: 980px; margin: 0 auto; padding: 92px 24px 76px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--text-muted); padding: 6px 13px 6px 8px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.hero-badge .hb-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 8px; border-radius: 20px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 82px); line-height: 0.98; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 22px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: var(--r-md); transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-primary { color: #06231b; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-faint); }
.hero-meta { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.hero-meta .hm { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .hm-num { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: var(--text); }
.hero-meta .hm-label { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em; }

.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 40px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.1; }
.section-desc { font-size: 17px; color: var(--text-muted); text-wrap: pretty; }

.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.sys-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; position: relative; overflow: hidden; }
.sys-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-ring); }
.sys-card .sc-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 4px; }
[data-theme="dark"] .sys-card .sc-icon { color: var(--accent); }
.sys-card .sc-icon svg { width: 21px; height: 21px; }
.sys-card h3 { font-size: 16.5px; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.sys-card p { font-size: 13.8px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.sys-card .sc-arrow { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity 0.16s, transform 0.16s; }
.sys-card:hover .sc-arrow { opacity: 1; transform: translateX(0); }
.sys-card .sc-num { position: absolute; top: 16px; right: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); opacity: 0.6; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--maxw); margin: 0 auto; padding: 0 40px 72px; }
.feat { padding: 24px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.feat .ft-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--accent); margin-bottom: 13px; }
.feat .ft-icon svg { width: 18px; height: 18px; }
.feat h4 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.feat p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.landing-foot { border-top: 1px solid var(--border); background: var(--surface-2); }
.landing-foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.landing-foot .lf-brand { display: flex; align-items: center; gap: 11px; }
.landing-foot .lf-note { font-size: 13px; color: var(--text-faint); max-width: 440px; line-height: 1.5; }
.landing-foot .lf-version { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.01em; }
.landing-foot .lf-ver-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* hero code preview */
.hero-preview { max-width: 880px; margin: 56px auto 0; }

/* simplified hero + home index */
.hero-simple .hero-inner { padding: 96px 24px 74px; }

/* Konform-style hero: a dark near-black panel with a teal glow, shown on the
   home page in both light and dark themes (mirrors the app's sign-in hero). */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.55; }
.hero-simple:not(.has-banner) { background: radial-gradient(125% 120% at 50% -15%, #16241f 0%, #0d1114 48%, #0a0c0f 100%); border-bottom: 1px solid #1d2226; }
.hero-simple:not(.has-banner) .hero-grid-bg { background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px); opacity: 1; }
.hero-simple:not(.has-banner) .hero-glow { background: radial-gradient(ellipse at center, rgba(45,212,166,0.20), transparent 70%); opacity: 0.8; }
.hero-simple:not(.has-banner) h1 { color: #fff; }
.hero-simple:not(.has-banner) h1 .accent { color: #2dd4a6; }
.hero-simple:not(.has-banner) .hero-sub { color: rgba(255,255,255,0.70); }
.hero-simple:not(.has-banner) .hero-eyebrow { color: rgba(255,255,255,0.52); }
.home-index-section { padding-top: 12px; padding-bottom: 64px; }
.home-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px 30px; max-width: 1000px; margin: 0 auto; }
.hi-group-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.hi-group-head .hi-icon { color: var(--accent); display: grid; place-items: center; }
.hi-group-head .hi-icon svg { width: 17px; height: 17px; }
.hi-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.hi-list a { display: flex; align-items: center; gap: 8px; padding: 6.5px 9px; margin: 0 -9px; border-radius: 7px; font-size: 14.5px; color: var(--text-muted); transition: color 0.13s, background 0.13s; }
.hi-list a:hover { color: var(--accent); background: var(--surface-2); }
.hi-list .hi-li-ic { color: var(--text-faint); display: grid; place-items: center; flex-shrink: 0; }
.hi-list .hi-li-ic svg { width: 15px; height: 15px; }
.hi-list a:hover .hi-li-ic { color: var(--accent); }
.hi-draft { margin-left: auto; flex-shrink: 0; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1.5px 6px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-strong); }

/* ====================== Responsive ====================== */
.scrim { display: none; }

@media (max-width: 1180px) {
  :root { --toc-w: 0px; }
  .docs-layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
  .content-wrap { padding: 36px 40px 110px; }
}
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .nav-burger { display: grid; }
  .sidebar {
    position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: 300px; max-width: 86vw;
    background: var(--surface); z-index: 60; transform: translateX(-100%); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    height: calc(100vh - var(--nav-h));
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .scrim.show { display: block; position: fixed; inset: var(--nav-h) 0 0; background: rgba(0,0,0,0.4); z-index: 55; }
  .content-wrap { padding: 28px 22px 100px; }
  .nav-search { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .nav-search .ns-text, .nav-search .kbd { display: none; }
  .nav-search svg { margin: 0; }
  .hero-inner { padding: 64px 20px 54px; }
  .section, .feature-row { padding-left: 22px; padding-right: 22px; }
  .feature-row { grid-template-columns: 1fr; }
  .page-nav { grid-template-columns: 1fr; }
  .nav-links-inline { display: none; }
}
@media (max-width: 520px) {
  .hero-meta { gap: 18px; }
  .content-wrap { padding: 24px 16px 90px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.06ms !important; scroll-behavior: auto !important; }
}

/* ====================== Devlog ====================== */
/* ---- Feed ---- */
.devlog-feed-wrap { flex: 1; width: 100%; }
.devlog-feed { max-width: 880px; margin: 0 auto; padding: 56px 28px 120px; }
.df-head { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.df-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 10px; }
.df-head h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); line-height: 1.04; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 14px; }
.df-sub { font-size: 18px; line-height: 1.55; color: var(--text-muted); margin: 0; max-width: 60ch; text-wrap: pretty; }
.df-sub a.link { color: var(--accent); border-bottom: 1px solid var(--accent-ring); }

.df-list { display: flex; flex-direction: column; gap: 20px; }

.devlog-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.devlog-card:hover { border-color: var(--accent-ring); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dc-thumb { width: 220px; height: 140px; }
.dc-body { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 4px 6px 4px 0; align-self: center; }
.dc-meta { display: flex; align-items: center; gap: 10px; }
.dc-date { font-size: 12.5px; font-weight: 600; color: var(--text-faint); letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.dc-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; margin: 0; color: var(--text); }
.devlog-card:hover .dc-title { color: var(--accent); }
.dc-lede { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin: 0; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-readmore { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; align-self: flex-start; }
.dc-readmore svg { width: 15px; height: 15px; transition: transform 0.16s; }
.devlog-card:hover .dc-readmore svg { transform: translateX(3px); }

.df-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 70px 24px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-muted); }
.df-empty svg { width: 30px; height: 30px; opacity: 0.6; }
.df-empty a.link { color: var(--accent); border-bottom: 1px solid var(--accent-ring); }

/* ---- Cover (shared by feed thumb + article + preview) ---- */
.dv-cover { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.dv-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dv-cover-fallback { display: grid; place-items: center; position: relative;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(150deg, var(--surface-3), var(--surface-2)); }
.dv-cover-fallback::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.35; }
.dv-cover-glyph { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg, var(--accent), var(--accent-strong)); box-shadow: var(--shadow-md); }
.dv-cover-glyph svg { width: 24px; height: 24px; }

/* ---- Tags ---- */
.dv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--text-muted);
  padding: 3px 9px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); }
.dv-tag.draft { color: var(--accent-strong); background: var(--accent-soft); border-color: transparent; text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em; }

/* ---- Left panel (entries by month) ---- */
.devlog-sidebar { padding-top: 22px; }
.dsb-allbtn { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 18px;
  padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--surface);
  transition: border-color 0.15s, color 0.15s, background 0.15s; }
.dsb-allbtn:hover { color: var(--accent); border-color: var(--accent-ring); background: var(--surface-2); }
.dsb-month { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint); padding: 6px 8px; margin-bottom: 2px; }
.dsb-link { padding-left: 10px; align-items: flex-start; gap: 10px; }
.dsb-link .dsb-day { flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--text-faint); padding-top: 2px; min-width: 42px; }
.dsb-link.active .dsb-day { color: var(--accent); }
.dsb-link .sl-text { line-height: 1.35; white-space: normal; }
.dsb-link.active::before { display: none; }

/* ---- Article ---- */
.devlog-article .da-cover { width: 100%; height: clamp(220px, 34vw, 360px); margin-bottom: 30px; border-radius: var(--r-lg); }

@media (max-width: 720px) {
  .devlog-card { grid-template-columns: 1fr; gap: 14px; }
  .dc-thumb { width: 100%; height: 180px; }
  .devlog-feed { padding: 40px 20px 100px; }
}

/* ============================================================
   Report-an-issue widget (visitor side)
   ============================================================ */
.report-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px 8px 11px; border-radius: 30px;
  background: var(--surface); color: var(--text-faint);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 500; cursor: pointer;
  opacity: 0.4; transition: opacity 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.report-fab:hover { opacity: 1; color: var(--accent); border-color: var(--accent-ring); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.report-fab svg { width: 15px; height: 15px; }
@media (max-width: 720px) {
  .report-fab { right: 14px; bottom: 14px; padding: 9px; }
  .report-fab span { display: none; }
}

.report-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,0.42); display: flex; align-items: center; justify-content: center; padding: 22px; animation: fade 0.14s ease; }
[data-theme="dark"] .report-overlay { background: rgba(0,0,0,0.6); }
.report-modal { position: relative; width: min(460px, 94vw); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px 24px 20px; animation: pop 0.16s ease; }
.report-x { position: absolute; top: 14px; right: 14px; display: flex; padding: 5px; border-radius: var(--r-sm); color: var(--text-faint); cursor: pointer; background: none; border: none; }
.report-x:hover { color: var(--text); background: var(--surface-2); }
.report-x svg { width: 18px; height: 18px; }
.report-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 5px; }
.report-sub { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0 0 18px; }
.report-field { margin-bottom: 15px; }
.report-field > label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.report-types { display: flex; flex-wrap: wrap; gap: 7px; }
.report-type { padding: 6px 12px; border-radius: 30px; font-size: 13px; font-weight: 500; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: all 0.13s; }
.report-type:hover { border-color: var(--accent-ring); color: var(--text); }
.report-type.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.report-ta { width: 100%; resize: vertical; min-height: 92px; font-family: var(--font-sans); font-size: 14px; line-height: 1.5; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--text); box-sizing: border-box; }
.report-ta:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.report-err { font-size: 13px; color: var(--danger); margin: 0 0 12px; }
.report-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.report-cancel { padding: 9px 16px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 500; color: var(--text-muted); background: transparent; border: 1px solid var(--border-strong); cursor: pointer; }
.report-cancel:hover { background: var(--surface-2); color: var(--text); }
.report-submit { padding: 9px 18px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 600; color: #fff; background: var(--accent); border: none; cursor: pointer; }
[data-theme="dark"] .report-submit { color: #1a1306; }
.report-submit:hover { background: var(--accent-strong); }
.report-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.report-done { text-align: center; padding: 14px 6px 6px; }
.report-done-mark { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--success) 16%, var(--surface-2)); color: var(--success); margin-bottom: 14px; }
.report-done-mark svg { width: 24px; height: 24px; }
.report-done h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.report-done p { font-size: 14px; color: var(--text-muted); margin: 0 0 20px; }

/* ============================================================
   Home header banner
   ============================================================ */
.hero.has-banner { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-banner { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; z-index: 0; }
.hero-banner-veil { position: absolute; inset: 0; background: #0a0a0c; z-index: 1; }
.hero-banner-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 38%, #000 122%); z-index: 1; }
.hero.has-banner .hero-inner { position: relative; z-index: 2; padding-top: 32px; padding-bottom: 32px; }
.hero.has-banner h1 { color: #fff; }
.hero.has-banner .hero-sub { color: rgba(255, 255, 255, 0.86); }
.hero.has-banner .hero-badge { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hero.has-banner .hero-badge .hb-tag { background: rgba(255, 255, 255, 0.92); color: #1a1306; }
