/* Layout: a working desk. A big headline beside an orbit of returning deposits,
   then the tools laid out as one ticket-stub panel with key-tag tabs, on a cool mineral ground. */
:root {
  --ground: #edf1ec;
  --ground-2: #e3e9e3;
  --panel: #fafcf9;
  --paper: #ffffff;
  --ink: #12241e;
  --ink-2: #4b5e56;
  --ink-3: #6f8279;
  --line: #d3dcd5;
  --line-2: #e4eae5;
  --pine: #0d6a55;
  --pine-hover: #0a5645;
  --on-pine: #ffffff;
  --pine-soft: #d7eae2;
  --brass: #a9741e;
  --brass-ink: #855a14;
  --brass-soft: #f2e4c6;
  --coin: #d9a748;
  --coin-hi: #f6dc9c;
  --coin-edge: #9c6a1c;
  --coin-ink: #3a2a0c;
  --good: #1d7a4c;
  --good-soft: #d9efe2;
  --warn: #9a5f08;
  --warn-soft: #f6e7cc;
  --bad: #a93a2d;
  --bad-soft: #f6dcd7;
  --glow-a: rgba(217, 167, 72, 0.22);
  --glow-b: rgba(13, 106, 85, 0.12);
  --shadow-c: 18 36 30;
  --backdrop: rgba(12, 24, 20, 0.45);
  --deep: #12241e;
  --on-deep: #edf1ec;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgb(var(--shadow-c) / 0.06), 0 10px 30px rgb(var(--shadow-c) / 0.08);
  --shadow-lift: 0 2px 4px rgb(var(--shadow-c) / 0.08), 0 18px 40px rgb(var(--shadow-c) / 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c1512;
    --ground-2: #101c18;
    --panel: #13211c;
    --paper: #182925;
    --ink: #e3ece7;
    --ink-2: #a2b5ac;
    --ink-3: #7d9188;
    --line: #2a3c34;
    --line-2: #1d2c26;
    --pine: #42c6a2;
    --pine-hover: #67d8b9;
    --on-pine: #06201a;
    --pine-soft: #173a31;
    --brass: #e2b45e;
    --brass-ink: #e8c27a;
    --brass-soft: #3a2f18;
    --coin: #d7a84f;
    --coin-hi: #f4d58e;
    --coin-edge: #8c611d;
    --coin-ink: #2c1f07;
    --good: #5bd08f;
    --good-soft: #163828;
    --warn: #edb04a;
    --warn-soft: #3a2c12;
    --bad: #f2806f;
    --bad-soft: #3d1d19;
    --glow-a: rgba(226, 180, 94, 0.13);
    --glow-b: rgba(66, 198, 162, 0.1);
    --shadow-c: 0 0 0;
    --backdrop: rgba(0, 0, 0, 0.6);
    --deep: #060c0a;
    --on-deep: #e3ece7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0c1512;
  --ground-2: #101c18;
  --panel: #13211c;
  --paper: #182925;
  --ink: #e3ece7;
  --ink-2: #a2b5ac;
  --ink-3: #7d9188;
  --line: #2a3c34;
  --line-2: #1d2c26;
  --pine: #42c6a2;
  --pine-hover: #67d8b9;
  --on-pine: #06201a;
  --pine-soft: #173a31;
  --brass: #e2b45e;
  --brass-ink: #e8c27a;
  --brass-soft: #3a2f18;
  --coin: #d7a84f;
  --coin-hi: #f4d58e;
  --coin-edge: #8c611d;
  --coin-ink: #2c1f07;
  --good: #5bd08f;
  --good-soft: #163828;
  --warn: #edb04a;
  --warn-soft: #3a2c12;
  --bad: #f2806f;
  --bad-soft: #3d1d19;
  --glow-a: rgba(226, 180, 94, 0.13);
  --glow-b: rgba(66, 198, 162, 0.1);
  --shadow-c: 0 0 0;
  --backdrop: rgba(0, 0, 0, 0.6);
  --deep: #060c0a;
  --on-deep: #e3ece7;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, canvas { max-width: 100%; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brass-soft); color: var(--ink); }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--pine); color: var(--on-pine); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.eyebrow {
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & fields ---------- */
.btn {
  --b: var(--pine);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.6em 1.15em;
  border: 1.5px solid var(--b); border-radius: 999px;
  background: var(--b); color: var(--on-pine);
  font-weight: 650; font-size: 0.98rem; line-height: 1.1; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn:hover { --b: var(--pine-hover); color: var(--on-pine); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); border-color: var(--ink-3); }
.btn-lg { min-height: 52px; padding: 0.8em 1.5em; font-size: 1.04rem; }
.btn-sm { min-height: 36px; padding: 0.45em 0.95em; font-size: 0.88rem; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-inline: 0.7em; }
.btn-quiet:hover { background: var(--line-2); color: var(--ink); border-color: transparent; }
.btn-danger { --b: var(--bad); color: var(--paper); }
.btn-danger:hover { --b: var(--bad); filter: brightness(1.08); color: var(--paper); }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--line); color: var(--ink);
  cursor: pointer; transition: background 0.18s, border-color 0.18s;
}
.icon-btn:hover { background: var(--panel); border-color: var(--ink-3); }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span, .field > label, .lbl { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.field small, .hint { font-size: 0.82rem; color: var(--ink-3); line-height: 1.45; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  width: 100%; min-height: 44px;
  padding: 0.55em 0.8em;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pine); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; }
.word { font: 750 1.18rem/1 var(--font-display); letter-spacing: -0.02em; }
.word b { color: var(--brass); font-weight: 750; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--line-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.theme-ico-dark { display: none; }
:root[data-theme="dark"] .theme-ico-dark { display: block; }
:root[data-theme="dark"] .theme-ico-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ico-dark { display: block; }
  :root:not([data-theme="light"]) .theme-ico-light { display: none; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    background: var(--ground); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 12px 14px; font-size: 1.02rem; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .top-actions .btn-sm { display: none; }
  .word { font-size: 1.06rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(48% 62% at 76% 44%, var(--glow-a), transparent 72%),
    radial-gradient(40% 50% at 12% 10%, var(--glow-b), transparent 70%),
    var(--ground);
  overflow: hidden;
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 32px;
  padding-block: clamp(36px, 6vw, 84px) clamp(40px, 6vw, 80px);
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6rem);
  font-weight: 800; line-height: 0.92; letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}
.hero h1 span { display: inline-block; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero h1 span:nth-child(2) { animation-delay: 0.08s; }
.hero h1 span:nth-child(3) { animation-delay: 0.16s; }
.hero h1 .home { color: var(--brass); position: relative; }
.hero h1 .home::after {
  content: ""; position: absolute; left: 0.04em; right: 0.32em; bottom: 0.02em; height: 0.09em;
  background: var(--brass); border-radius: 99px; opacity: 0.35;
  transform-origin: left; animation: draw 1s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise { from { transform: translateY(0.3em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.assure { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure .ico { color: var(--pine); }
.hero-art { margin: 0; position: relative; min-width: 0; display: grid; gap: 14px; justify-items: center; }
#orbit { width: 100%; max-width: 620px; aspect-ratio: 1 / 0.72; display: block; }
.legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  font: 500 0.74rem/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--ink-2);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i {
  width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--coin-hi), var(--coin) 70%);
  box-shadow: inset 0 0 0 1.5px var(--coin-edge); color: var(--coin-ink);
}
.legend i svg { width: 11px; height: 11px; stroke-width: 2.4; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 8px; }
  #orbit { max-width: 440px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-alt { background: var(--ground-2); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(2.05rem, 4.4vw, 3.3rem); font-weight: 760; letter-spacing: -0.03em; font-variation-settings: "opsz" 72; }
.sec-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }

/* ---------- Finder (Step 1): kinds of deposit on the left, the chosen one and its toolkit path on the right ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ftypes { display: grid; gap: 8px; }
.ftype {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  text-align: left; cursor: pointer; padding: 14px 16px;
  background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 16px 16px 16px 6px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ftype:hover { border-color: var(--ink-3); transform: translateX(3px); }
.ftype:hover .ft-ico { transform: rotate(-8deg) scale(1.05); }
.ftype[aria-selected="true"] { background: var(--brass-soft); border-color: var(--brass); box-shadow: var(--shadow); transform: none; }
.ft-text { display: grid; gap: 2px; min-width: 0; }
.ft-name { font: 700 1.02rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.ft-alt { font-size: 0.84rem; color: var(--ink-2); line-height: 1.35; }
.ft-count { font: 600 0.72rem/1 var(--font-mono); padding: 5px 8px; border-radius: 99px; background: var(--pine); color: var(--on-pine); }
.ft-ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--coin-hi), var(--coin) 72%);
  box-shadow: inset 0 0 0 2px var(--coin-edge), 0 2px 0 rgb(var(--shadow-c) / 0.12);
  color: var(--coin-ink); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ft-ico svg { width: 22px; height: 22px; stroke-width: 2; }
.fdetail {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; min-width: 0;
}
.fd-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 2px dashed var(--line); }
.fd-head .ft-ico { width: 56px; height: 56px; }
.fd-head .ft-ico svg { width: 28px; height: 28px; }
.fd-head h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 740; letter-spacing: -0.02em; }
.fd-head p { color: var(--ink-2); margin-top: 2px; }
.fd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 22px 26px 24px; }
.fd-facts { margin: 0; display: grid; gap: 14px; align-content: start; }
.fd-facts dt, .fd-path h4 { font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.fd-path h4 { color: var(--brass-ink); margin-bottom: 8px; }
.fd-facts dd { margin: 3px 0 0; font-size: 0.97rem; }
.fd-facts ul { margin: 2px 0 0; padding-left: 1.1em; display: grid; gap: 2px; }
.g-note { font-size: 0.88rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.path li { position: relative; }
.path li + li::before { content: ""; position: absolute; left: 28px; top: -8px; height: 14px; border-left: 2px dashed var(--line); }
.path-step {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  text-align: left; padding: 9px 12px; border-radius: 12px; border: 1.5px solid transparent;
  background: transparent; color: var(--ink); cursor: pointer; transition: background 0.18s, border-color 0.18s;
}
.path-step:hover { background: var(--paper); border-color: var(--line); }
.path-step > .ico { color: var(--ink-3); transition: transform 0.2s, color 0.2s; }
.path-step:hover > .ico { transform: translateX(3px); color: var(--pine); }
.pnum {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 0.85rem/1 var(--font-mono); background: var(--paper); border: 1.5px solid var(--pine); color: var(--pine);
}
.ptext { display: grid; gap: 1px; min-width: 0; }
.ptext strong { font-size: 0.98rem; }
.ptext small { font-size: 0.85rem; color: var(--ink-2); }
.fd-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 26px 22px; background: var(--pine-soft); }
.fd-cta p { color: var(--ink); max-width: 34em; font-size: 0.95rem; }
@media (max-width: 960px) {
  .finder { grid-template-columns: 1fr; }
  .ftypes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ftype { grid-template-columns: auto minmax(0, 1fr); padding: 12px; gap: 10px; }
  .ftype .ft-ico { width: 34px; height: 34px; }
  .ftype .ft-ico svg { width: 18px; height: 18px; }
  .ft-alt { display: none; }
  .ft-name { font-size: 0.92rem; }
  .ft-count { position: absolute; top: 6px; right: 6px; }
  .fd-head, .fd-body, .fd-cta { padding-inline: 18px; }
}

/* ---------- Toolkit shell ---------- */
.tool-shell {
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.tabs {
  display: flex; gap: 8px; padding: 16px 18px 18px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 2px dashed var(--line); position: relative;
}
.tabs::-webkit-scrollbar { display: none; }
.tool-shell::before, .tool-shell::after {
  content: ""; position: absolute; top: calc(var(--tabs-h, 74px) - 11px); width: 22px; height: 22px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--line); z-index: 1;
}
.tool-shell::before { left: -12px; clip-path: inset(0 0 0 50%); }
.tool-shell::after { right: -12px; clip-path: inset(0 50% 0 0); }
.section-alt .tool-shell::before, .section-alt .tool-shell::after { background: var(--ground-2); }
.tab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 0.5em 1.05em 0.5em 0.8em;
  border-radius: 999px 12px 12px 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink-2); font-weight: 650; font-size: 0.94rem; cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tab::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.6; flex: none; }
.tab:hover { color: var(--ink); border-color: var(--ink-3); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.tab[aria-selected="true"]::before { background: var(--brass); border-color: var(--brass); opacity: 1; }
.tab .count { font: 600 0.72rem/1 var(--font-mono); background: var(--brass-soft); color: var(--brass-ink); border-radius: 99px; padding: 3px 7px; }
.tab[aria-selected="true"] .count { background: var(--brass); color: var(--coin-ink); }
.panel { padding: clamp(18px, 3vw, 32px); }
.panel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.panel-head h3 { font-size: 1.6rem; font-weight: 720; letter-spacing: -0.02em; }
.panel-head p { color: var(--ink-2); max-width: 46em; margin-top: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-note { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: var(--ink-2); margin-top: 14px; }
.privacy-note .ico { color: var(--pine); }

/* Tracker */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); margin-bottom: 18px; overflow: hidden; }
.metric { padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.m-label { font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.metric strong { font: 720 1.55rem/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric .m-sub { font-size: 0.84rem; color: var(--ink-2); }
.metric select { min-height: 38px; padding: 0.35em 0.6em; }
.metric.pulse strong { animation: pulse 0.9s ease; }
@keyframes pulse { 30% { color: var(--brass); transform: scale(1.06); } }
.metric strong { transform-origin: left center; }
@media (max-width: 760px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.dep-list { display: grid; gap: 12px; }
.dep {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: start;
  padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  border-left: 4px solid var(--tone, var(--line));
  transition: box-shadow 0.2s;
}
.dep:hover { box-shadow: var(--shadow); }
.dep[data-tone="good"] { --tone: var(--good); }
.dep[data-tone="warn"] { --tone: var(--warn); }
.dep[data-tone="bad"] { --tone: var(--bad); }
.dep[data-tone="brass"] { --tone: var(--brass); }
.dep .ft-ico { width: 44px; height: 44px; }
.dep-main { display: grid; gap: 6px; min-width: 0; }
.dep-main h4 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.dep-holder { color: var(--ink-2); font-size: 0.94rem; overflow-wrap: anywhere; }
.dep-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.dep-amount { text-align: right; display: grid; gap: 2px; }
.dep-amount strong { font: 720 1.35rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.dep-amount small { font-size: 0.82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dep-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.dep-log { grid-column: 2 / -1; }
.dep-log summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.dep-log summary::-webkit-details-marker { display: none; }
.dep-log summary .ico { transition: transform 0.2s; }
.dep-log[open] summary .ico { transform: rotate(90deg); }
.log-list { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.log-list li { position: relative; font-size: 0.94rem; display: grid; gap: 2px; }
.log-list li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }
.log-list time { font: 500 0.76rem/1.3 var(--font-mono); color: var(--ink-3); letter-spacing: 0.04em; }
.log-list .log-x { justify-self: start; font-size: 0.8rem; color: var(--ink-3); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.log-form { display: grid; grid-template-columns: 150px 140px minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; align-items: end; }
@media (max-width: 760px) {
  .dep { grid-template-columns: auto minmax(0, 1fr); }
  .dep-amount { grid-column: 2; text-align: left; }
  .dep-actions, .dep-log { grid-column: 1 / -1; }
  .log-form { grid-template-columns: 1fr 1fr; }
  .log-form .lf-note { grid-column: 1 / -1; }
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px; font-size: 0.8rem; font-weight: 650; line-height: 1.5;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill[data-tone="good"] { background: var(--good-soft); color: var(--good); }
.pill[data-tone="warn"] { background: var(--warn-soft); color: var(--warn); }
.pill[data-tone="bad"] { background: var(--bad-soft); color: var(--bad); }
.pill[data-tone="brass"] { background: var(--brass-soft); color: var(--brass-ink); }
.when { font-size: 0.86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.when[data-tone="warn"] { color: var(--warn); font-weight: 600; }
.when[data-tone="bad"] { color: var(--bad); font-weight: 600; }
.when[data-tone="good"] { color: var(--good); }
.tag-example { font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; border: 1.5px dashed var(--brass); color: var(--brass-ink); }
.empty {
  display: grid; justify-items: center; text-align: center; gap: 12px;
  padding: clamp(30px, 5vw, 54px) 18px; border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--paper);
}
.empty h4 { font-size: 1.35rem; font-weight: 720; }
.empty p { color: var(--ink-2); max-width: 30em; }
.empty .row-actions { justify-content: center; margin-top: 6px; }
.coin-stack { width: 120px; height: 84px; }
.fly-coin {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--coin-hi), var(--coin) 70%);
  box-shadow: inset 0 0 0 1.5px var(--coin-edge);
}

/* Checklist */
.cl-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.rooms { display: grid; gap: 6px; position: sticky; top: 92px; }
.room-btn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  text-align: left; padding: 10px 12px; border-radius: 10px; border: 1.5px solid transparent;
  background: transparent; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
}
.room-btn:hover { background: var(--line-2); color: var(--ink); }
.room-btn[aria-current="true"] { background: var(--paper); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.room-btn .rp { font: 500 0.74rem/1 var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.room-btn .rbar { grid-column: 1 / -1; height: 3px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.room-btn .rbar i { display: block; height: 100%; background: var(--pine); border-radius: 9px; transition: width 0.3s; }
.add-room { display: flex; gap: 6px; margin-top: 8px; }
.add-room select { min-height: 38px; padding: 0.3em 0.5em; font-size: 0.9rem; }
.cl-items { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.cl-head, .cl-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px; }
.cl-head { background: var(--line-2); font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cl-row + .cl-row { border-top: 1px solid var(--line-2); }
.cl-row.changed { background: linear-gradient(90deg, var(--brass-soft), transparent 60%); }
.cl-name { font-weight: 600; font-size: 0.97rem; display: grid; gap: 6px; min-width: 0; }
.cl-name input[type="text"] { min-height: 36px; font-size: 0.88rem; font-weight: 400; padding: 0.35em 0.6em; }
.cl-flag { font: 600 0.7rem/1 var(--font-mono); color: var(--brass-ink); letter-spacing: 0.08em; text-transform: uppercase; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-label { display: none; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); width: 100%; margin-bottom: 2px; }
.seg button {
  min-height: 32px; padding: 0.25em 0.65em; border-radius: 99px; font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
}
.seg button:hover { border-color: var(--ink-3); color: var(--ink); }
.seg button[aria-checked="true"][data-v="good"] { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.seg button[aria-checked="true"][data-v="fair"] { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.seg button[aria-checked="true"][data-v="damaged"] { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.seg button[aria-checked="true"][data-v="na"] { background: var(--line-2); border-color: var(--ink-3); color: var(--ink); }
.cl-photo { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.cl-photo input { accent-color: var(--pine); }
.cl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.progress { flex: 1 1 260px; display: grid; gap: 6px; }
.progress .bar { height: 8px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pine), var(--brass)); border-radius: 9px; transition: width 0.4s; }
.tips { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tip { padding: 16px; border-radius: var(--r-md); background: var(--pine-soft); display: grid; gap: 6px; align-content: start; }
.tip strong { font-family: var(--font-display); font-size: 1.02rem; }
.tip p { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .cl-layout { grid-template-columns: 1fr; }
  .rooms { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .room-btn { flex: none; min-width: 150px; }
  .add-room { flex: none; margin: 0; align-items: center; }
  .tips { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cl-head { display: none; }
  .cl-row { grid-template-columns: 1fr 1fr; }
  .cl-name { grid-column: 1 / -1; }
  .seg-label { display: block; }
}

/* Letter */
.letter-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 26px; align-items: start; }
.letter-form { display: grid; gap: 16px; }
.letter-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.letter-form legend { font: 500 0.74rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 4px; padding: 0; }
.tone-toggle { display: inline-flex; justify-self: start; padding: 4px; border-radius: 99px; background: var(--line-2); gap: 4px; }
.tone-toggle button { border: 0; background: transparent; padding: 0.4em 1em; border-radius: 99px; font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--ink-2); min-height: 36px; }
.tone-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.sheet-wrap { position: sticky; top: 92px; display: grid; gap: 12px; }
.sheet {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(22px, 3.4vw, 44px); box-shadow: var(--shadow-lift);
  font-size: 0.97rem; line-height: 1.65; min-height: 420px; position: relative;
  max-height: 72vh; overflow: auto;
}
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: repeating-linear-gradient(90deg, var(--pine) 0 18px, var(--brass) 18px 36px); opacity: 0.8; border-radius: 4px 4px 0 0; }
.sheet p + p, .sheet .lp + .lp { margin-top: 0.9em; }
.sheet .ph { color: var(--ink-3); background: var(--line-2); border-radius: 4px; padding: 0 4px; }
.sheet ul { margin: 0.5em 0 0; padding-left: 1.2em; }
.disclaimer { font-size: 0.86rem; color: var(--ink-2); padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); }
@media (max-width: 960px) {
  .letter-layout { grid-template-columns: 1fr; }
  .sheet-wrap { position: static; }
  .sheet { max-height: none; }
}

/* Deductions */
.ded-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 24px; align-items: start; }
.ded-rows { display: grid; gap: 8px; margin-top: 14px; }
.ded-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 120px 150px auto auto; gap: 8px; align-items: center; }
.ded-row .stance { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; }
.ded-row .stance button { border: 0; background: transparent; padding: 0.45em 0.8em; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 38px; }
.ded-row .stance button[aria-pressed="true"][data-s="agree"] { background: var(--line-2); color: var(--ink); }
.ded-row .stance button[aria-pressed="true"][data-s="question"] { background: var(--warn-soft); color: var(--warn); }
.ded-head { display: grid; grid-template-columns: minmax(0, 1.6fr) 120px 150px auto auto; gap: 8px; font: 500 0.7rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) {
  .ded-head { display: none; }
  .ded-row { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
  .ded-row .d-desc { grid-column: 1 / -1; }
}
.ded-sum { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 14px; position: sticky; top: 92px; }
.ded-sum dl { margin: 0; display: grid; gap: 8px; }
.ded-sum .line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.ded-sum dt { color: var(--ink-2); }
.ded-sum dd { margin: 0; font-weight: 650; }
.ded-sum .total { border-top: 1.5px solid var(--ink); padding-top: 10px; font-size: 1.1rem; }
.ded-sum .total dd { font-family: var(--font-display); font-size: 1.4rem; }
.split { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.split i { display: block; height: 100%; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.split .s-back { background: var(--good); }
.split .s-agree { background: var(--ink-3); }
.split .s-q { background: var(--warn); }
.split-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--ink-2); }
.split-key span { display: inline-flex; align-items: center; gap: 6px; }
.split-key span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.wear { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wear > div { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
.wear h4 { font-size: 1.05rem; margin-bottom: 8px; }
.wear ul { margin: 0; padding-left: 1.1em; font-size: 0.94rem; color: var(--ink-2); display: grid; gap: 4px; }
.wear-note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .ded-layout { grid-template-columns: 1fr; }
  .ded-sum { position: static; }
  .wear { grid-template-columns: 1fr; }
}

/* Summary */
.sum-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 24px; align-items: start; }
.sum-sheet h4 { font-size: 1.4rem; margin-bottom: 4px; }
.sum-sheet h5 { font: 500 0.74rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-ink); margin: 1.4em 0 0.5em; }
.sum-sheet table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.sum-sheet th, .sum-sheet td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.sum-sheet th { width: 42%; color: var(--ink-2); font-weight: 500; padding-right: 12px; }
.sum-side { display: grid; gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 12px; }
.card h4 { font-size: 1.08rem; }
.evid { display: grid; gap: 8px; }
@media (max-width: 900px) { .sum-layout { grid-template-columns: 1fr; } }

/* ---------- Helpers ---------- */
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.who span { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); font-size: 0.92rem; font-weight: 550; background: var(--panel); }
.help-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.hcard { grid-column: span 6; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.hcard h3 { font-size: 1.4rem; font-weight: 720; letter-spacing: -0.02em; }
.hcard > p { color: var(--ink-2); }
.hcard.wide { grid-column: span 12; }
.link-builder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.qr-box { width: 188px; display: grid; gap: 8px; justify-items: center; }
.qr { width: 188px; height: 188px; padding: 10px; border-radius: 12px; background: #ffffff; border: 1px solid var(--line); display: grid; place-items: center; }
.qr img, .qr canvas { width: 168px; height: 168px; display: block; }
.copy-row { display: flex; gap: 8px; align-items: flex-start; }
.copy-row input, .copy-row textarea { font-family: var(--font-mono); font-size: 0.86rem; }
.pledge { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pledge li { display: flex; gap: 10px; align-items: flex-start; }
.pledge li .ico { color: var(--pine); margin-top: 3px; }
.dark-card { background: var(--deep); color: var(--on-deep); border-color: var(--line); }
.dark-card h3 { color: var(--on-deep); }
.dark-card > p, .dark-card .muted { color: color-mix(in srgb, var(--on-deep) 72%, transparent); }
.dark-card .pledge li .ico { color: var(--brass); }
.dark-card .btn-ghost { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); }
.dark-card .btn-ghost:hover { background: color-mix(in srgb, var(--on-deep) 10%, transparent); color: var(--on-deep); }
.handouts { display: grid; gap: 10px; }
.handout { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
.handout div { display: grid; gap: 2px; min-width: 0; }
.handout strong { font-size: 1rem; }
.handout span { font-size: 0.86rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .hcard, .hcard.wide { grid-column: span 12; }
  .link-builder { grid-template-columns: 1fr; }
  .qr-box { justify-self: start; }
}
@media (max-width: 480px) { .handout { flex-direction: column; align-items: flex-start; } }

/* ---------- Resources ---------- */
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.region { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.region h3 { font-size: 1.3rem; font-weight: 720; display: flex; align-items: baseline; gap: 10px; }
.region h3 small { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.res { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.res li { padding: 12px 0; border-top: 1px solid var(--line-2); display: grid; gap: 3px; }
.res a { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.res a:hover { text-decoration: underline; }
.res span { font-size: 0.93rem; color: var(--ink-2); }
.res .host { font: 500 0.74rem/1.3 var(--font-mono); color: var(--ink-3); }
.fact { padding: 14px 16px; border-radius: var(--r-md); background: var(--pine-soft); font-size: 0.94rem; }
.fact cite { display: block; font-style: normal; font-size: 0.8rem; color: var(--ink-2); margin-top: 6px; }
.region.everywhere { grid-column: 1 / -1; background: transparent; border-style: dashed; }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 680 1.16rem/1.3 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform 0.25s, background 0.2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--brass-soft); border-color: var(--brass); }
.faq .ans { padding: 0 4px 22px; color: var(--ink-2); max-width: 46em; display: grid; gap: 10px; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: color-mix(in srgb, var(--on-deep) 76%, transparent); padding-block: 56px 40px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; }
.foot .word { color: var(--on-deep); }
.foot h4 { color: var(--on-deep); font: 500 0.74rem/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.foot p { font-size: 0.92rem; line-height: 1.6; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.foot a { color: var(--on-deep); text-decoration: none; }
.foot a:hover { color: var(--brass); text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 18%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
@media (max-width: 980px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- Dialog & toast ---------- */
dialog {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow-lift);
}
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
dialog[open] { animation: dlg 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes dlg { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
.dlg-form { display: grid; gap: 0; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px dashed var(--line); }
.dlg-head h3 { font-size: 1.35rem; font-weight: 720; }
.dlg-body { padding: 18px 22px; display: grid; gap: 14px; overflow: auto; }
.dlg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line-2); }
.dlg-foot .row-actions { margin-left: auto; }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 18px; border-radius: 99px; background: var(--deep); color: var(--on-deep); border: 1px solid var(--line);
  box-shadow: var(--shadow-lift); font-size: 0.95rem;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.toast button { background: transparent; color: var(--brass); border: 0; font-weight: 700; cursor: pointer; padding: 4px 8px; }

/* ---------- Early-version banner ---------- */
.devbar { background: var(--brass-soft); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); font-size: 0.88rem; line-height: 1.45; }
.devbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-block: 9px; }
.dev-tag { font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--brass); color: var(--coin-ink); flex: none; }
.dev-text { flex: 1 1 360px; min-width: 0; }
.dev-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dev-links a { color: var(--brass-ink); font-weight: 650; }

/* ---------- Tracker: next step on each card ---------- */
.dep-path { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dep-path .m-label { margin-right: 4px; }
.path-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0.35em 0.85em;
  border-radius: 99px; border: 1.5px dashed var(--line); background: transparent; color: var(--ink-2);
  font-weight: 600; font-size: 0.86rem; cursor: pointer; transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.path-chip:hover { border-style: solid; border-color: var(--ink-3); color: var(--ink); }
.path-chip.is-next { background: var(--pine); border: 1.5px solid var(--pine); color: var(--on-pine); }
.path-chip.is-next:hover { background: var(--pine-hover); border-color: var(--pine-hover); color: var(--on-pine); }
.dep.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 20%, 45% { box-shadow: 0 0 0 4px var(--brass), var(--shadow-lift); } }
@media (max-width: 760px) { .dep-path { grid-column: 1 / -1; } }

/* ---------- Partners ---------- */
.contact-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cc-copy { display: grid; gap: 12px; min-width: 0; }
.dark-card .who { margin: 4px 0 0; }
.dark-card .who span { background: transparent; color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 28%, transparent); }
.cc-mail {
  display: grid; gap: 10px; justify-items: start; min-width: 0; padding: 20px; border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--on-deep) 18%, transparent); background: color-mix(in srgb, var(--on-deep) 6%, transparent);
}
.cc-mail .m-label { color: color-mix(in srgb, var(--on-deep) 65%, transparent); }
.cc-mail .mail { font: 650 clamp(1rem, 2.1vw, 1.22rem)/1.3 var(--font-display); color: var(--coin-hi); overflow-wrap: anywhere; }
.cc-mail .mail:hover { color: var(--on-deep); }
.cc-mail .small { color: color-mix(in srgb, var(--on-deep) 70%, transparent); }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Disclaimer ---------- */
.legal { margin: 0; max-width: 1000px; display: grid; border-top: 1.5px solid var(--ink); }
.legal > div { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 6px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal dt { font: 700 1.02rem/1.35 var(--font-display); }
.legal dd { margin: 0; color: var(--ink-2); font-size: 0.97rem; max-width: 64ch; }
@media (max-width: 700px) { .legal > div { grid-template-columns: 1fr; } }

#print-root { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  body { background: #ffffff; color: #111111; font-size: 11pt; }
  #print-root { font-family: var(--font-body); color: #111111; }
  #print-root h1 { font-size: 18pt; margin: 0 0 4pt; color: #111111; }
  #print-root h2 { font-size: 12pt; margin: 14pt 0 6pt; color: #111111; }
  #print-root .p-meta { font-size: 9pt; color: #555555; margin-bottom: 12pt; }
  #print-root p { margin: 0 0 8pt; }
  #print-root table { width: 100%; border-collapse: collapse; margin-bottom: 10pt; font-size: 9.5pt; page-break-inside: auto; }
  #print-root th, #print-root td { border: 0.6pt solid #999999; padding: 4pt 6pt; text-align: left; vertical-align: top; }
  #print-root th { background: #eeeeee; }
  #print-root tr { page-break-inside: avoid; }
  #print-root .box { display: inline-block; width: 9pt; height: 9pt; border: 0.8pt solid #333333; margin-right: 4pt; vertical-align: -1pt; }
  #print-root .p-foot { margin-top: 16pt; font-size: 8.5pt; color: #555555; border-top: 0.6pt solid #999999; padding-top: 6pt; }
  #print-root .letter .lp { font-size: 11pt; line-height: 1.5; margin-bottom: 9pt; }
  #print-root .letter ul { margin: 4pt 0; }
  @page { margin: 16mm; }
}
