/* addDuo "Quiet" design system. Tokens and rules: docs/DESIGN.md */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fafaf9;
  --line: #e7e6e3;
  --line-strong: #d4d3cf;
  --ink: #111110;
  --ink-2: #52514e;
  --muted: #6b6a66;
  --on-ink: #ffffff;
  --accent: #256abf;
  --series-1: #2a78d6;
  --series-wash: rgba(42, 120, 214, 0.10);
  --good: #0f7a3d;  --good-bg: #eaf6ee;
  --warn: #8a5a00;  --warn-bg: #fdf4e3;
  --bad: #b42318;   --bad-bg: #fdecea;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Sinhala", "Noto Sans Tamil", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-xs: 12px; --t-sm: 13px; --t-base: 14px; --t-md: 16px; --t-lg: 20px; --t-xl: 24px; --t-2xl: 40px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r: 6px; --r-lg: 10px;
  --sidebar: 232px;
  --content: 1120px;
  --site: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f0e; --surface: #171716; --line: #2c2c2a; --line-strong: #3d3d3a;
    --ink: #f4f4f2; --ink-2: #c3c2b7; --muted: #9d9c95; --on-ink: #111110;
    --accent: #6da7ec; --series-1: #3987e5; --series-wash: rgba(57, 135, 229, 0.14);
    --good: #5cc58a; --good-bg: #13261b; --warn: #e5b55c; --warn-bg: #2a2112; --bad: #f08b81; --bad-bg: #2d1614;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0e; --surface: #171716; --line: #2c2c2a; --line-strong: #3d3d3a;
  --ink: #f4f4f2; --ink-2: #c3c2b7; --muted: #9d9c95; --on-ink: #111110;
  --accent: #6da7ec; --series-1: #3987e5; --series-wash: rgba(57, 135, 229, 0.14);
  --good: #5cc58a; --good-bg: #13261b; --warn: #e5b55c; --warn-bg: #2a2112; --bad: #f08b81; --bad-bg: #2d1614;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-base)/22px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: var(--t-xl); line-height: 32px; }
h2 { font-size: var(--t-lg); line-height: 28px; }
h3 { font-size: var(--t-base); line-height: 22px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: var(--t-sm); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -40px; background: var(--ink); color: var(--on-ink); padding: var(--s2) var(--s3); border-radius: var(--r); z-index: 10; }
.skip:focus { top: var(--s2); }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: var(--t-sm); line-height: 20px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.stack-sm > * + * { margin-top: var(--s2); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.form-row { align-items: end; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { a, .btn, .nav a { transition: background-color 120ms, color 120ms, border-color 120ms; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid transparent; font: 500 var(--t-base)/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 var(--s2); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: var(--bg); color: var(--bad); border-color: var(--line-strong); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-lg { height: 44px; padding: 0 var(--s5); font-size: var(--t-md); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.inline-form { display: inline; }

/* ---------- forms */
.form { max-width: 560px; }
.form-wide { max-width: 760px; }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field + .field, .field + fieldset, fieldset + .field, fieldset + fieldset { margin-top: var(--s5); }
.label { font-size: var(--t-sm); line-height: 20px; font-weight: 500; color: var(--ink); }
.hint { font-size: var(--t-sm); line-height: 20px; color: var(--muted); }
.error-text { font-size: var(--t-sm); line-height: 20px; color: var(--bad); font-weight: 500; }
.input, .select, .textarea { width: 100%; height: 40px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--ink); font: 400 var(--t-md)/24px var(--font); }
.textarea { height: auto; min-height: 120px; padding: var(--s2) var(--s3); font-family: var(--mono); font-size: var(--t-sm); line-height: 20px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.select[multiple] { height: auto; min-height: 120px; padding: var(--s1); background-image: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--bad); }
.input-short { max-width: 200px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="file"] { min-height: 40px; padding: 7px 0; font: 400 var(--t-base)/24px var(--font); color: var(--ink-2); max-width: 100%; }
input[type="file"]::file-selector-button { height: 36px; margin-right: var(--s3); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--ink); font: 500 var(--t-base)/1 var(--font); cursor: pointer; }
legend { padding: 0; margin-bottom: var(--s2); font-size: var(--t-sm); font-weight: 500; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s2) var(--s4); }
.check { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--t-base); line-height: 22px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.form-actions { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s6); flex-wrap: wrap; }
.form-section { padding-top: var(--s6); margin-top: var(--s6); border-top: 1px solid var(--line); }
.form-section > h2 { font-size: var(--t-md); margin-bottom: var(--s4); }

.error-summary { border: 1px solid var(--bad); border-left-width: 4px; border-radius: var(--r); padding: var(--s4) var(--s5); background: var(--bg); }
.error-summary h2 { font-size: var(--t-md); color: var(--ink); margin-bottom: var(--s2); }
.error-summary ul { margin: 0; padding-left: var(--s5); }
.error-summary a { color: var(--bad); font-weight: 500; }

/* ---------- surfaces */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--bg); min-width: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-title { font-size: var(--t-base); font-weight: 600; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.card-body { padding: var(--s5); }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

.flash { border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--r); padding: var(--s3) var(--s4); background: var(--bg); }
.flash-bad { border-left-color: var(--bad); }
.flash-warn { border-left-color: var(--warn); }
.notice { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); background: var(--surface); color: var(--ink-2); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r); font-size: var(--t-xs); line-height: 16px; font-weight: 500; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }

.stat { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); min-width: 0; }
.stat-label { font-size: var(--t-sm); line-height: 20px; color: var(--muted); }
.stat-value { font-size: var(--t-xl); line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: var(--s1); white-space: nowrap; }
@media (max-width: 600px) { .stat { padding: var(--s3) var(--s4); } .stat-value { font-size: var(--t-lg); line-height: 28px; } }
.stat-sub { font-size: var(--t-sm); line-height: 20px; color: var(--muted); margin-top: 2px; }

.codeblock { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.codeblock pre { margin: 0; padding: var(--s4); padding-right: 76px; overflow-x: auto; line-height: 20px; white-space: pre; color: var(--ink); }
.codeblock .copy { position: absolute; top: var(--s2); right: var(--s2); height: 28px; font-size: var(--t-sm); }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s2) var(--s4); margin: 0; }
.kv dt { color: var(--muted); font-size: var(--t-sm); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: var(--s2); } }

/* ---------- tables */
.table-wrap { overflow-x: auto; position: relative; } /* contains visually-hidden labels */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.table th { text-align: left; font-size: var(--t-xs); line-height: 16px; font-weight: 500; color: var(--muted); background: var(--surface); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.num, .table td.num { text-align: right; }
.table tfoot td { font-weight: 600; background: var(--surface); border-top: 1px solid var(--line); }
.table .actions { text-align: right; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.empty { padding: var(--s7) var(--s5); text-align: center; color: var(--ink-2); }
.empty p + .btn, .empty p + form { margin-top: var(--s4); }

/* ---------- tabs */
.tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: var(--s2) 0 10px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- console shell */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); background: var(--surface); padding: var(--s5) var(--s3); display: flex; flex-direction: column; gap: var(--s5); position: sticky; top: 0; height: 100vh; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); font-weight: 600; font-size: var(--t-md); padding: 0 var(--s2); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: var(--t-xs); color: var(--muted); padding: var(--s3) var(--s2) var(--s1); }
.nav a { display: flex; align-items: center; height: 36px; padding: 0 var(--s2); border-radius: var(--r); color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bg); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.nav .count { margin-left: auto; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: var(--s3) var(--s2) 0; font-size: var(--t-sm); }
.sidebar-foot .signout { margin: var(--s2) 0 0 calc(-1 * var(--s2)); }
.sidebar-foot .who { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: var(--s6); min-width: 0; }
.main-inner { max-width: var(--content); margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: var(--s1); }
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s2); }
.crumbs a { color: var(--muted); }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar > * { min-width: 0; }
  .sidebar-foot .signout { margin: 0; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: var(--s3) var(--s4); gap: var(--s3); border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
  .nav-label { display: none; }
  .nav a { white-space: nowrap; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: var(--s3); align-items: center; }
  .sidebar-foot .who { display: none; }
  .main { padding: var(--s5) var(--s4); }
}

/* ---------- marketing site */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); height: 64px; }
.site-nav { display: flex; gap: var(--s5); margin-left: var(--s4); }
.site-nav a { color: var(--ink-2); font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-head .cta { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.wrap { max-width: var(--site); margin: 0 auto; padding: 0 var(--s5); }
.site-main { font-size: var(--t-md); line-height: 26px; }
.hero { padding-top: var(--s9); padding-bottom: var(--s8); }
.hero h1 { font-size: var(--t-2xl); line-height: 48px; max-width: 760px; letter-spacing: -0.02em; }
.hero p { color: var(--ink-2); max-width: 620px; margin-top: var(--s4); font-size: 18px; line-height: 28px; }
.hero .row { margin-top: var(--s6); }
.section { padding: var(--s8) 0; border-top: 1px solid var(--line); }
.section h2 { margin-bottom: var(--s2); }
.section .lede { color: var(--ink-2); max-width: 640px; margin-bottom: var(--s6); }
.feature h3 { font-size: var(--t-md); margin-bottom: var(--s1); }
.feature p { color: var(--ink-2); font-size: var(--t-base); line-height: 22px; }
.plan { display: flex; flex-direction: column; }
.plan > :last-child { margin-top: auto; padding-top: var(--s4); }
.footnote { margin-top: var(--s6); }
.price { font-size: var(--t-xl); font-weight: 600; margin: var(--s2) 0; font-variant-numeric: tabular-nums; }
.list { margin: 0; padding-left: var(--s5); color: var(--ink-2); }
.list li + li { margin-top: var(--s1); }
.prose { max-width: 720px; }
.prose h2 { margin: var(--s6) 0 var(--s2); font-size: var(--t-lg); }
.prose h3 { margin: var(--s5) 0 var(--s1); font-size: var(--t-md); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s3); color: var(--ink-2); }
.prose .codeblock { margin: var(--s3) 0 var(--s4); }
.site-foot { border-top: 1px solid var(--line); padding: var(--s6) 0; color: var(--muted); font-size: var(--t-sm); }
.site-foot .wrap { display: flex; gap: var(--s5); flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.auth { max-width: 400px; margin: var(--s8) auto; padding: 0 var(--s4); }
.auth h1 { margin-bottom: var(--s1); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .hero { padding-top: var(--s8); padding-bottom: var(--s7); }
  .hero h1 { font-size: 30px; line-height: 38px; }
  .wrap { padding: 0 var(--s4); }
}

/* ---------- marketing imagery (DESIGN.md: Imagery) */
.shot-fig { margin: 0; }
.shot-fig figcaption { font-size: var(--t-xs); line-height: 16px; color: var(--muted); margin-top: var(--s2); }
.shot { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.shot-bar { height: 36px; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4); border-bottom: 1px solid var(--line); }
.shot-dots { display: flex; gap: 6px; flex: none; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-url { margin: 0 auto; max-width: 60%; padding: 3px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--muted); font: 400 var(--t-xs)/16px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { display: block; width: 100%; height: auto; }
.hero-shot { margin-top: var(--s8); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.fact-value { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fact-label { color: var(--ink-2); font-size: var(--t-base); line-height: 22px; margin-top: var(--s1); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.flow-step { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5) var(--s5); background: var(--bg); }
.flow-step + .flow-step::before { content: "→"; position: absolute; left: calc(-1 * var(--s6) / 2); top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: var(--t-md); }
.flow-k { font: 500 var(--t-xs)/16px var(--mono); color: var(--accent); }
.flow-step h3 { font-size: var(--t-md); margin: var(--s2) 0 var(--s1); }
.flow-step p { color: var(--ink-2); font-size: var(--t-base); line-height: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-rev > .shot-fig { order: -1; }
.split .list { margin-top: var(--s4); }
.split .row { margin-top: var(--s5); }
.cta-band { text-align: center; }
.cta-band .lede { margin-left: auto; margin-right: auto; }
.cta-band .row { justify-content: center; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .flow-step + .flow-step::before { content: "↓"; left: 50%; top: calc(-1 * var(--s5) / 2); }
  .split, .split-rev { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .split-rev > .shot-fig { order: 0; }
  .hero-shot { margin-top: var(--s7); }
}

/* ---------- chart (dataviz: single series, 2px line, 10% wash, hairline grid, hover layer) */
.chart { position: relative; margin: 0; overflow-x: auto; }
@media (max-width: 600px) { .chart svg { min-width: 560px; } }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .area { fill: var(--series-wash); }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .dot { fill: var(--series-1); stroke: var(--bg); stroke-width: 2; }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart-tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s1) var(--s2); font-size: var(--t-sm); line-height: 18px; white-space: nowrap; transform: translate(-50%, -110%); }
.chart-tip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip[hidden] { display: none; }

/* ---------- ad slot preview (docs / test page) */
.slot-demo { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: var(--s3); display: inline-block; }
.spacer-tall { height: 120vh; display: flex; align-items: flex-end; padding-bottom: var(--s4); color: var(--muted); }
.preview-frame { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: block; max-width: 100%; }

/* ---------- consent banner (addDuo site: essential cookies only) */
.consent { position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); max-width: 560px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--s4); z-index: 20; font-size: var(--t-sm); line-height: 20px; }
.consent[hidden] { display: none; }
.consent .row { margin-top: var(--s3); }
