/* Dazzle Agent website. Quiet on purpose: white (or warm black) space, one typeface, monochrome buttons, the product
   in the middle of the page. The logo's orange is for small accents only. */
:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --panel: #f6f6f4;
  --ink: #3a3a3d;
  --ink-strong: #111113;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: #e7e7e4;
  --canvas: #f3f3f1;
  --accent: #f15a24;
  --accent-hover: #d94a17;
  --accent-soft: #fdeee6;
  --tool-bg: #f2f2f0;
  --ok: #15803d;
  --warn: #b45309;
  --code-bg: #f0f0ee;
  --stage: radial-gradient(120% 90% at 15% 0%, #fde4d6 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #f3e9df 0%, transparent 60%), #f7f3ef;
  --shadow: 0 1px 2px rgba(17, 17, 19, .06), 0 30px 60px -30px rgba(17, 17, 19, .35);
  --radius: 12px;
  --max: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --cta-bg: #111113;
  --cta-border: transparent;
  --error: #dc2626;
  --m0: #f15a24; --m1: #2563eb; --m2: #0d9488; --m3: #9333ea;
  color-scheme: light;
}
/* Dark: the visitor chose it (header switch), or made no choice and the system is dark. */
:root[data-theme="dark"] {
    --bg: #0e0d0b;
    --surface: #161512;
    --panel: #1a1916;
    --ink: #d4d3cd;
    --ink-strong: #f5f4ef;
    --muted: #918f88;
    --faint: #64625c;
    --line: #27251f;
    --canvas: #12110e;
    --accent: #f36a35;
    --accent-hover: #f6844f;
    --accent-soft: #2e1a10;
    --tool-bg: #1f1e1a;
    --ok: #4ade80;
    --warn: #fbbf24;
    --code-bg: #1f1e1a;
    --stage: radial-gradient(120% 90% at 15% 0%, #3a2114 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #221d17 0%, transparent 60%), #15130f;
    --shadow: 0 0 0 1px #27251f, 0 30px 60px -30px rgba(0, 0, 0, .8);
    --cta-bg: #161512;
    --cta-border: #27251f;
    --error: #f87171;
    --m0: #f36a35; --m1: #60a5fa; --m2: #2dd4bf; --m3: #c084fc;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d0b;
    --surface: #161512;
    --panel: #1a1916;
    --ink: #d4d3cd;
    --ink-strong: #f5f4ef;
    --muted: #918f88;
    --faint: #64625c;
    --line: #27251f;
    --canvas: #12110e;
    --accent: #f36a35;
    --accent-hover: #f6844f;
    --accent-soft: #2e1a10;
    --tool-bg: #1f1e1a;
    --ok: #4ade80;
    --warn: #fbbf24;
    --code-bg: #1f1e1a;
    --stage: radial-gradient(120% 90% at 15% 0%, #3a2114 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #221d17 0%, transparent 60%), #15130f;
    --shadow: 0 0 0 1px #27251f, 0 30px 60px -30px rgba(0, 0, 0, .8);
    --cta-bg: #161512;
    --cta-border: #27251f;
    --error: #f87171;
    --m0: #f36a35; --m1: #60a5fa; --m2: #2dd4bf; --m3: #c084fc;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink-strong); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; }
h3 { font-size: 1.08rem; }
h1, h2, .statement { text-wrap: balance; }
/* "Bold claim. Quieter detail." in one heading, the second half in grey. */
.dim { color: var(--muted); }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--code-bg); border-radius: 6px; padding: .1em .4em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
/* Brand left, links in the middle, sign in / sign up right */
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; height: 60px; }
.site-header .header-cta { justify-self: end; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink-strong); font: 600 1.02rem/1 var(--font-display); letter-spacing: -.01em; }
/* The logo (icons/dazzle-bolt.svg): the white lightning bolt on the orange square, the same in light and dark. */
.brand-mark { display: block; width: 24px; height: 24px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-strong); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font: inherit; cursor: pointer; }
@media (max-width: 820px) {
  .site-header .wrap { display: flex; flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .menu-btn { display: block; }
  .nav, .header-cta .btn-ghost { display: none; }
  .site-header.open .nav { display: flex; flex-direction: column; gap: 4px; width: 100%; order: 3; padding: 8px 0 4px; }
  .site-header.open .nav a { padding: 8px 0; font-size: 1rem; }
  .header-cta { order: 2; }
}

/* Buttons: monochrome pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn-primary { background: var(--ink-strong); color: var(--bg); }
.btn-primary:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--ink-strong); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }
.text-link { color: var(--ink-strong); font-weight: 500; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { color: var(--accent); }
.btn-sm { padding: 7px 14px; font-size: .86rem; }
.btn svg { width: 18px; height: 18px; }
.btn .win { width: 14px; height: 14px; }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lede { margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.alt { background: transparent; }
.label { font-size: .82rem; color: var(--faint); }

/* Hero: the claim, two buttons, then the product */
.hero { padding: 104px 0 72px; }
.hero-copy { max-width: 760px; }
.hero .lede { font-size: 1.2rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 32px 0 0; }
.fineprint { font-size: .88rem; color: var(--muted); }
/* System line under the download button, in small monospace */
.meta-line { margin: 20px 0 0; font: .76rem/1.5 var(--mono); color: var(--faint); }
/* The product on a soft backdrop, full width under the claim (where a real recording goes later) */
.stage { margin-top: 72px; padding: clamp(14px, 5vw, 64px); border-radius: 22px; background: var(--stage); }
@media (max-width: 600px) { .stage { margin-top: 44px; border-radius: 14px; } }

/* App mockup (illustration, not a screenshot) */
.mock {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; font-size: 13px; line-height: 1.45;
}
.mock-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.mock-bar .brand-mark { width: 16px; height: 16px; }
.mock-bar b { color: var(--ink-strong); font-weight: 600; }
.mock-bar .dots { margin-left: auto; display: flex; gap: 14px; color: var(--faint); }
.mock-body { display: grid; grid-template-columns: 200px 1fr 330px; min-height: 420px; }
.mock-files { border-right: 1px solid var(--line); padding: 12px; background: var(--panel); }
.mock-files .label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 4px 0 8px; }
.mock-files ul { list-style: none; margin: 0; padding: 0; }
.mock-files li { display: flex; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-files li.sel { background: var(--accent-soft); }
.ft { flex: none; font: 600 9px/1 var(--mono); padding: 3px 4px; border-radius: 4px; background: var(--tool-bg); color: var(--muted); }
.ft.pdf { color: #b42318; } .ft.dez { color: var(--accent); } .ft.csv { color: var(--ok); }
.mock-canvas { background: var(--canvas); position: relative; display: flex; flex-direction: column; }
.mock-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.mock-tabs span { padding: 6px 12px; border-radius: 6px 6px 0 0; color: var(--muted); }
.mock-tabs span.on { background: var(--canvas); color: var(--ink-strong); box-shadow: inset 0 2px 0 var(--accent); }
.mock-canvas > svg, .ep-main > svg { flex: 1; width: 100%; height: 100%; min-height: 360px; color: var(--ink); }
.mock-chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px; gap: 10px; }
.msg-user { align-self: flex-end; background: var(--tool-bg); color: var(--ink-strong); padding: 8px 11px; border-radius: 12px 12px 3px 12px; max-width: 92%; }
.tool { font: 12px/1.4 var(--mono); color: var(--muted); background: transparent; border-radius: 6px; padding: 2px 0; display: flex; gap: 6px; }
.tool::before { content: "▸"; color: var(--faint); }
.msg-agent { color: var(--ink); }
.msg-agent ul { margin: 6px 0 0; padding-left: 18px; }
.flag { color: var(--warn); font-weight: 600; }
.mock-input { margin-top: auto; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--faint); display: flex; justify-content: space-between; }
.mock-caption { text-align: center; font-size: .82rem; color: var(--faint); margin-top: 12px; }
@media (max-width: 960px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-files, .mock-bar .dots, .mock-bar b + span { display: none; }
  .mock-chat { border-left: 0; border-top: 1px solid var(--line); }
  .mock-canvas > svg { min-height: 260px; }
}

/* One statement, then three short points */
.statement { font: 600 clamp(1.6rem, 3.1vw, 2.5rem)/1.22 var(--font-display); letter-spacing: -.025em; color: var(--ink-strong); max-width: 940px; margin: 0 0 72px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.points p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.55; }
.points b { color: var(--ink-strong); font-weight: 600; }
@media (max-width: 820px) { .points { grid-template-columns: 1fr; gap: 28px; } }

/* Cards (pricing, firms, download) */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .modes { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.alt .card { background: var(--surface); }
.card .tag { display: block; font-size: .84rem; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.card p { color: var(--muted); }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li { position: relative; padding: 5px 0 5px 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .72em; width: 10px; height: 5px;
  border-left: 1.5px solid var(--ink-strong); border-bottom: 1.5px solid var(--ink-strong); transform: rotate(-45deg);
}

/* Use cases: pill tabs over one panel */
.cases { display: grid; gap: 20px; }
.case-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px) { .case-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } }
.case-tab {
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font: 500 .92rem/1.2 var(--font); color: var(--muted); cursor: pointer; white-space: nowrap;
}
.case-tab:hover { color: var(--ink-strong); border-color: var(--faint); }
.case-tab[aria-selected="true"] { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--bg); }
.case-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 40px); min-width: 0; }
.case-panel[hidden] { display: none; }
.case-panel > p { color: var(--muted); max-width: 780px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
.case-grid h4 { margin: 0 0 10px; font-size: .82rem; font-weight: 500; color: var(--faint); }
.prompt { font-family: var(--mono); font-size: .88rem; background: var(--tool-bg); color: var(--ink-strong); border-radius: 10px; padding: 14px 16px; margin: 0; }
.out { list-style: none; margin: 0; padding: 0; }
.out li { font-size: .95rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.out li:first-child { padding-top: 0; }
.out li:last-child { border-bottom: 0; }
.out code { font-size: .82em; }

/* Three columns of short points (firms, download) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; gap: 28px; } }
.grid3 .card { background: none; border: 0; border-radius: 0; padding: 0; }
.grid3 .card h3 { margin-bottom: .35em; }
.grid3 .card p { margin: 0; font-size: .96rem; }
.conf { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { font: 500 .78rem/1 var(--mono); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.pill.c { color: var(--ok); } .pill.e { color: var(--ink); } .pill.r { color: var(--warn); }

/* Agent roster */
.roster { width: 100%; border-collapse: collapse; font-size: .97rem; border-top: 1px solid var(--line); }
.roster th, .roster td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.roster thead { display: none; }
.roster td:first-child { color: var(--ink-strong); font-weight: 500; white-space: nowrap; width: 24%; }
.roster td:nth-child(2) { color: var(--muted); }
.roster td:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.roster tr.soon td:first-child { color: var(--muted); }
@media (max-width: 600px) { .roster td:first-child { white-space: normal; width: auto; } .roster td:nth-child(2) { display: none; } }
.status { font: 500 .84rem/1 var(--font); white-space: nowrap; }
.status.live { color: var(--ink-strong); }
.status.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 2px; }
.status.soon { color: var(--faint); }

/* Split / prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .82rem; color: var(--faint); font-weight: 500; }
.table td:first-child { color: var(--ink-strong); font-weight: 500; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.table-wrap .table tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 500; color: var(--ink-strong); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 32px; }

/* Closing call to action: centered, quiet */
.cta-band { text-align: center; padding: 136px 0; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4em; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }

/* Download page */
.dl { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.dl .card h2 { font-size: 1.5rem; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.req { list-style: none; padding: 0; margin: 0; }
.req li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.req li:last-child { border-bottom: 0; }
.req b { color: var(--muted); font-weight: 500; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 26px 52px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); font: 500 .85rem/1 var(--font); color: var(--ink-strong);
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin-bottom: .4em; }
.note { border-left: 3px solid var(--warn); background: var(--surface); border-radius: 0 10px 10px 0; padding: 14px 18px; color: var(--ink); font-size: .95rem; }
.note b { color: var(--ink-strong); }

/* Contact */
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-strong); }
.contact-form input, .contact-form textarea, .contact-form select {
  font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: .9rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; color: var(--ink-strong); font-size: .85rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink-strong); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }
.legal p { margin: 0 0 .5em; }

/* Pricing */
.pricing-hero { padding-bottom: 72px; }
.center-text { text-align: center; margin-top: 18px; }
.billing { display: flex; width: max-content; margin: 0 auto 36px; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.billing button, .seg button {
  font: 600 .9rem/1 var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
}
.billing button[aria-checked="true"], .seg button[aria-checked="true"] { background: var(--ink-strong); color: var(--bg); }
.save { font-size: .78rem; color: var(--accent); margin-left: 4px; }
.billing button[aria-checked="true"] .save { color: inherit; opacity: .8; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; }
.plan.popular { border-color: var(--ink-strong); }
.plan h2 { font-size: 1.2rem; margin: 0 0 4px; }
.badge { position: absolute; top: -11px; left: 20px; background: var(--ink-strong); color: var(--bg); font: 500 .74rem/1 var(--font); padding: 5px 10px; border-radius: 999px; }
.plan-for { color: var(--muted); font-size: .92rem; min-height: 2.8em; margin-bottom: 14px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.amount { font: 600 2.5rem/1 var(--font-display); color: var(--ink-strong); letter-spacing: -.03em; }
.per { color: var(--muted); font-size: .9rem; }
.billed { color: var(--faint); font-size: .84rem; margin: 6px 0 18px; min-height: 1.3em; }
.plan .btn { width: 100%; }
.credits { margin: 20px 0 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-strong); }
.credits span { display: block; color: var(--muted); font-size: .84rem; }
.plan .ticks { font-size: .93rem; }

.planner { max-width: 920px; margin: 0 auto; padding: 28px; }
.planner-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { padding: 8px 14px; font-size: .86rem; }
.budget { margin: 0; color: var(--muted); }
.budget b { color: var(--ink-strong); font-size: 1.2rem; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chip { font: 500 .88rem/1 var(--font); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.chip:hover { border-color: var(--faint); }
.chip.on { border-color: var(--ink-strong); color: var(--bg); background: var(--ink-strong); }
.mixbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--tool-bg); margin-bottom: 22px; gap: 2px; }
.mixbar span { transition: width .15s; }
.m0 { --c: var(--m0); } .m1 { --c: var(--m1); } .m2 { --c: var(--m2); } .m3 { --c: var(--m3); }
.mixbar span, .dot { background: var(--c); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.mix-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 92px; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mix-row label { font-weight: 600; color: var(--ink-strong); font-size: .96rem; }
.mix-row small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 18px; }
.mix-row input[type=range] { width: 100%; accent-color: var(--accent); }
.mix-row output { text-align: right; }
.mix-row output b { display: block; font: 650 1.4rem/1 var(--font-display); color: var(--ink-strong); }
.mix-row output span { color: var(--faint); font-size: .82rem; }
@media (max-width: 640px) {
  .mix-row { grid-template-columns: 1fr 70px; }
  .mix-row input[type=range] { grid-column: 1 / -1; grid-row: 2; }
}

/* Header: sign in link */
.link-sm { color: var(--muted); text-decoration: none; font-size: .95rem; margin-right: 6px; }
.link-sm:hover { color: var(--ink-strong); }
@media (max-width: 820px) { .header-cta .link-sm { display: none; } }
:root[data-signed-in] .header-cta:not(.ready) > a { visibility: hidden; }   /* account-pages.js shows Dashboard / Download */

/* The hero demo: the app at work, full width on the stage */
.hero-split h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 860px; }
.demo { margin: 0; }
.demo .mock-body { grid-template-columns: minmax(0, 1fr) 340px; height: 540px; }   /* fixed: the page never shifts as the chat fills */
.demo .mock-chat { min-height: 0; }
@media (max-width: 960px) {
  .demo .mock-body { grid-template-columns: 1fr; grid-template-rows: 400px 430px; height: auto; }
}

.agent-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.agent-head b { color: var(--ink-strong); font-weight: 600; }
.conn { display: flex; align-items: center; gap: 6px; }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.log { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; flex: 1; overflow: hidden; }
.attach { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
/* The Dazzle bolt, as in the app: steady beside a finished step, flashing while a step runs or the agent thinks. */
.demo .tool::before, .think::before, .working::before {
  content: ""; flex: none; width: 8px; height: 12px; margin-top: 2px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9 5 14 22'%3E%3Cpath d='M18.5 5 9 18h6l-1.5 9L23 14h-6l1.5-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9 5 14 22'%3E%3Cpath d='M18.5 5 9 18h6l-1.5 9L23 14h-6l1.5-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.demo .tool.running { color: var(--ink-strong); }
.demo .tool.running::before, .think.running::before, .working::before { animation: flash .55s linear infinite alternate; }
@keyframes flash { to { opacity: .2; } }
.think, .working { display: flex; align-items: center; gap: 7px; font-size: 12px; font-style: italic; color: var(--muted); }
.think::before, .working::before { margin-top: 0; }
.think { animation: rise .3s ease-out; }
.working { padding: 0 2px; }
.working[hidden] { display: none; }
.demo .pending { display: none; }
.demo svg [data-at], .demo svg [data-gone] { transition: opacity .45s; }
.demo svg .pending { display: inline; opacity: 0; transition: none; }   /* hide at once on restart; only appearing fades */
.demo .msg-user, .demo .tool, .demo .msg-agent { animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.mock-input .typed:empty::before { content: "Ask Dazzle Agent…"; color: var(--faint); }
.demo.typing .mock-input { border-color: var(--accent); color: var(--ink-strong); }
.demo.typing .typed::after { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--ink-strong); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; }
.mock-input { align-items: center; }
.empty-canvas { fill: var(--faint); font-size: 13px; }

/* Account pages */
.preview-banner { background: var(--warn); color: #111; text-align: center; font-size: .88rem; font-weight: 600; padding: 8px 16px; }
.auth { padding: 56px 0 88px; }
.auth-card { max-width: 480px; margin: 0 auto; padding: 32px; }
.auth-card.wide { max-width: 760px; }
.auth-card h1, .auth-card .step-title { font-size: 1.9rem; }
.auth-card .lede { font-size: 1rem; }
.btn-ms { width: 100%; margin-top: 6px; }
.btn-ms svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .85rem; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint { font-weight: 400; color: var(--faint); font-size: .8rem; }
.form-error { color: var(--error); font-size: .9rem; margin: 0; }
.btn:disabled { opacity: .6; cursor: progress; }
.auth-steps { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: st; font-size: .88rem; color: var(--faint); }
.auth-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; }
.auth-steps li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; font-size: .8rem; }
.auth-steps li + li::after { order: -1; content: ""; width: 28px; height: 1px; background: var(--line); }
.auth-steps li.on { color: var(--ink-strong); }
.auth-steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.auth-steps li.done::before { content: "✓"; color: var(--ok); }
.plan-pick { display: grid; gap: 12px; margin: 8px 0 20px; }
.pick { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; background: var(--bg); }
.pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.pick input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.pick-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; }
.pick-body b { color: var(--ink-strong); font-size: 1.02rem; }
.pick-price { font-weight: 700; color: var(--ink-strong); text-align: right; }
.pick-price small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.pick-body > small { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.badge-inline { font: 700 .66rem/1 var(--font); font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 7px; margin-left: 6px; vertical-align: 2px; }
.seats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.seats[hidden] { display: none; }
.seats label { font-weight: 600; color: var(--ink-strong); }
.seats input { width: 90px; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.total { margin: 0 0 0 auto; color: var(--muted); }
.total b { color: var(--ink-strong); font-size: 1.15rem; }
#plan-form > .btn { width: 100%; margin-bottom: 12px; }
.notice { border-left: 3px solid var(--ok); background: var(--surface); border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 20px; }
.seg-opt { display: inline-flex; align-items: center; gap: 4px; font: 600 .86rem/1 var(--font); color: var(--muted); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--ink-strong); color: var(--bg); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-opt:has(input:checked) .save { color: inherit; opacity: .8; }
.soon-row { margin-top: 10px; }
.soon-chip { width: auto; padding: 0 8px; color: var(--muted); font-size: .7rem; letter-spacing: .02em; }
.soon-tag { font-size: .8rem; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* Hero scenes */
.demo .off { display: none !important; }
.hero-demo { min-width: 0; }
.msg-agent ol { margin: 6px 0 0; padding-left: 20px; }
.doc-view { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 12px; padding: 22px; }
.doc-view .page {
  aspect-ratio: .78; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px;
  display: flex; flex-direction: column; gap: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-size: 11px;
}
.doc-view .page b { color: var(--ink-strong); font-size: 11.5px; }
.doc-view .page span { color: var(--muted); }
.doc-view .page i { display: block; height: 5px; border-radius: 3px; background: var(--tool-bg); }
.doc-view .page i:nth-child(odd) { width: 70%; }
.doc-view .page.body { border-color: var(--accent); }
.doc-view .merged { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 8px; background: var(--accent-soft); color: var(--ink-strong); font-weight: 600; }
.demo .page, .demo .merged { animation: rise .35s ease-out; }
@media (max-width: 960px) { .doc-view { grid-template-columns: repeat(3, 1fr); padding: 12px; gap: 8px; } .doc-view .page { aspect-ratio: auto; min-height: 70px; } }

/* EasyPower 26 in the hero, drawn after its own window (ribbon, document tabs, equipment palette, white one-line,
   status bar). It is a light program, so it stays light in either site theme. When the agent switches to Short
   Circuit focus, the .ep-sc pieces appear and the .ep-home siblings after them hide. */
.ep {
  flex: 1; min-height: 0; display: flex; flex-direction: column; background: #bbcee6; color: #1e2b3c; color-scheme: light;
  font: 11px/1.2 "Segoe UI", system-ui, sans-serif; --ep-text: #22229a; --accent: #f15a24; --ok: #15803d; --faint: #9aa3ad;
}
.ep .ep-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ep-sc:not(.pending):not(.off) ~ .ep-home { display: none; }
.ep-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 3px 6px 0; white-space: nowrap; overflow: hidden; }
.ep-tabs span { padding: 4px 12px 3px; letter-spacing: .02em; color: #2d3e55; }
.ep-tabs .ep-file { background: linear-gradient(#3a77c9, #2d66bb); color: #fff; padding: 4px 18px 3px; margin-right: 4px; }
.ep-tabs .on { background: #f5faff; box-shadow: inset 1px 1px 0 #a9bfdc, inset -1px 0 0 #a9bfdc; color: #1e2b3c; }
.ep-ribbon {
  display: flex; height: 76px; flex: none; background: linear-gradient(#f5f9fd, #dce9f6 70%, #d8e5f3);
  border-top: 1px solid #a9bfdc; border-bottom: 1px solid #a9bfdc; overflow: hidden; white-space: nowrap;
}
.ep-group { display: flex; flex-direction: column; padding: 4px 4px 0; border-right: 1px solid #c3d2e5; }
.ep-group > div { display: flex; gap: 1px; flex: 1; }
.ep-group small { text-align: center; font-size: 10.5px; color: #5c6b80; padding: 1px 0 3px; }
.ep-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; padding: 2px 1px; border-radius: 2px;
  text-align: center; white-space: normal; font-size: 10.5px; line-height: 1.1; color: #1e2b3c;
}
.ep-btn svg { width: 24px; height: 24px; flex: none; }
.ep-analysis .db, .ep-sc:not(.pending):not(.off) ~ .ep-analysis .sc { background: linear-gradient(#ffeaa0, #ffd86a); box-shadow: inset 0 0 0 1px #e6b546; }
.ep-sc:not(.pending):not(.off) ~ .ep-analysis .db { background: none; box-shadow: none; }
.ep-doctabs { display: flex; gap: 2px; padding: 3px 6px 0; border-bottom: 1px solid #93acd0; white-space: nowrap; overflow: hidden; }
.ep-doctabs > span { padding: 3px 8px; }
.ep-doctabs > span.on { background: #fff; font-weight: 600; }
.ep-doctabs i { font-style: normal; font-weight: 400; margin-left: 9px; color: #5c6b80; }
.ep-main { flex: 1; min-height: 0; display: flex; background: #fff; }
.ep-main > svg { min-width: 0; min-height: 0; color: #3a3a3a; }
.ep-palette { flex: none; width: 92px; display: flex; flex-direction: column; gap: 5px; padding: 4px; background: #d5e1f2; border-right: 1px solid #93acd0; }
.ep-palette b { font-weight: 400; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-palette small { font-weight: 600; font-size: 10px; padding: 1px 3px; white-space: nowrap; background: #eef5fd; border: 1px solid #b4c7e0; }
.ep-palette svg { width: 100%; height: auto; padding: 0 6px; }
.ep-status { display: flex; align-items: center; height: 22px; flex: none; padding: 0 8px; background: #c1d0e3; border-top: 1px solid #a9bfdc; white-space: nowrap; overflow: hidden; }
.ep-status > span { display: flex; }
.ep-status > span > span + span { margin-left: 8px; padding-left: 8px; border-left: 1px solid #8fa6c5; }
.ep-status .ep-zoom { margin-left: auto; padding-left: 8px; }
.ep .empty-canvas { fill: #9aa3ad; }
@media (max-width: 600px) { .ep-palette { display: none; } }

/* Theme switch (header) */
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--ink-strong); border-color: var(--faint); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* Dashboard (signed in) */
.wrap.wide { max-width: 1320px; }
.app-header .wrap { justify-content: space-between; }
.app-links { display: flex; align-items: center; gap: 22px; }
.app-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.app-links a:hover { color: var(--ink-strong); }
.app-links a.on { color: var(--accent); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash { min-height: calc(100vh - 65px); }
.dash-loading { padding: 64px 24px; text-align: center; }
.dash-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; min-height: calc(100vh - 65px); }
.dash-grid[hidden] { display: none; }
.dash-side { border-right: 1px solid var(--line); padding: 40px 28px; background: var(--surface); }
.dash-side h1 { font-size: 1.9rem; margin-bottom: 6px; }
.dash-who { font-size: .9rem; color: var(--muted); margin-bottom: 28px; word-break: break-all; }
.dash-who b { color: var(--ink-strong); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a, .dash-nav button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font: 500 .97rem/1.2 var(--font); background: none; border: 0; cursor: pointer; text-align: left;
}
.dash-nav a:hover, .dash-nav button:hover { background: var(--tool-bg); }
.dash-nav a.on { color: var(--accent); background: var(--accent-soft); }
.dash-nav svg { width: 20px; height: 20px; flex: none; }
.dash-nav hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.dash-main { padding: 40px 40px 80px; min-width: 0; }
.view-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
.view-head .view-title { margin: 0; }
.view-title { font-size: 2rem; margin-bottom: 24px; }
.view-sub { font-size: 1rem; font-weight: 500; color: var(--muted); margin: 0 0 12px; }
.view .billing { margin: 0; }
.muted-label { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.muted-label b { color: var(--ink-strong); font-size: 1.15rem; margin-left: 6px; }
.current { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-color: var(--accent); margin-bottom: 28px; }
.current-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.current-icon svg { width: 22px; height: 22px; }
.plans-dash { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans-dash .plan h3 { font-size: 1.25rem; margin: 0 0 4px; }
.plans-dash .plan .btn { margin-bottom: 18px; }
@media (max-width: 1280px) { .plans-dash { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .plans-dash { grid-template-columns: 1fr; } }
.rows { padding: 4px 24px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rows > .row:last-of-type { border-bottom: 0; }
.row > div:first-child { display: grid; gap: 2px; }
.row b { color: var(--ink-strong); font-weight: 600; }
.row span { color: var(--muted); font-size: .9rem; }
.row-control { display: flex; gap: 8px; align-items: center; }
.row-control.stack { flex-wrap: wrap; justify-content: flex-end; }
.row-control input, .invite input {
  font: 400 .97rem/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 280px; max-width: 100%;
}
.row-control.stack input { width: 200px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.codes { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.codes p { color: var(--muted); font-size: .9rem; }
.codes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, max-content); gap: 8px 24px; font: 600 .95rem/1.4 var(--mono); color: var(--ink-strong); }
@media (max-width: 600px) { .codes ul { grid-template-columns: repeat(2, max-content); } }
.form-status { color: var(--ok); font-size: .9rem; margin: 12px 0 0; }
.usage-limit { padding: 26px 28px; margin-bottom: 18px; }
.usage-limit h3 { margin-bottom: 8px; }
.big { margin: 0 0 12px; color: var(--muted); }
.big b { font: 650 2rem/1 var(--font-display); color: var(--ink-strong); margin-right: 6px; }
.meter { height: 8px; border-radius: 999px; background: var(--tool-bg); overflow: hidden; margin-bottom: 14px; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { padding: 18px 20px; display: grid; gap: 6px; }
.tile span { color: var(--muted); font-size: .88rem; }
.tile b { font: 650 1.8rem/1 var(--font-display); color: var(--ink-strong); }
.chart-card { padding: 24px 28px; }
.chart-card h3 { margin-bottom: 2px; }
.chart { position: relative; margin-top: 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font: 11px var(--font); }
.chart .bar { fill: var(--accent); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--tool-bg); opacity: .5; }
.chart .tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink-strong); color: var(--bg); border-radius: 8px; padding: 6px 10px; font-size: .82rem; pointer-events: none; white-space: nowrap; }
.chart .tip span { display: block; opacity: .75; font-size: .76rem; }
.chart-empty { position: absolute; inset: 0 0 24px 34px; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: .92rem; pointer-events: none; }
.sub-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 28px; }
.sub-card b { font-size: 1.15rem; color: var(--ink-strong); }
.empty { display: grid; place-items: center; gap: 6px; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--ink); margin-bottom: 6px; }
.empty b { color: var(--ink-strong); font-size: 1.1rem; }
#invoices .table td:first-child { font-weight: 400; color: var(--ink); }
.invite { display: flex; gap: 8px; padding: 20px 24px 8px; flex-wrap: wrap; }
.invite input { flex: 1; width: auto; min-width: 200px; }
#invite-error { padding: 0 24px; }
.members { list-style: none; margin: 0; padding: 8px 24px 16px; }
.members li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.members li:last-child { border-bottom: 0; }
.members li span { flex: 1; color: var(--ink-strong); word-break: break-all; }
.members li i { font-style: normal; color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 16px 12px; }
  .dash-side h1 { font-size: 1.4rem; }
  .dash-who { margin-bottom: 12px; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .dash-nav hr { display: none; }
  .dash-nav a, .dash-nav button { white-space: nowrap; padding: 8px 10px; }
  .dash-main { padding: 24px 16px 60px; }
  .app-links { gap: 14px; }
  .row-control input, .row-control.stack input { width: 100%; }
  .row-control { width: 100%; }
}
.dash .view { padding: 0; }
.rows > .row:last-child, .rows > .row:has(+ [hidden]:last-child) { border-bottom: 0; }
.chart-empty span { background: var(--surface); padding: 4px 12px; border-radius: 6px; }
.dash-side { min-width: 0; }   /* lets the phone menu scroll sideways instead of widening the page */
@media (max-width: 900px) { .dash-grid { min-height: 0; align-content: start; } }
#invoices { overflow-x: auto; }   /* the table scrolls inside its card on phones */
