:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #fffdf8;
  --ink: #181815;
  --muted: #68675f;
  --line: #d9d4c8;
  --accent: #20251d;
  --accent-ink: #fffdf8;
  --warn: #8a3b21;
  --good: #1f5c3a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.hero { max-width: 980px; margin: 0 auto; padding: 48px 20px 20px; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 5rem); line-height: .95; letter-spacing: -.055em; margin: 8px 0 16px; }
.hero p { max-width: 680px; font-size: 1.05rem; }
.eyebrow { font-weight: 800; letter-spacing: .12em; font-size: .75rem !important; }
.privacy { color: var(--muted); font-size: .9rem !important; }
.shell { max-width: 980px; margin: 0 auto; padding: 16px 20px 64px; display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgb(27 25 18 / 5%); }
.step { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
h2, h3 { margin: 0; }
h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1rem; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.compact { margin-top: 12px; }
label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: white; color: var(--ink); font: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible, #decision:focus-visible { outline: 3px solid #7c8172; outline-offset: 3px; }
button, .file-button { border: 0; border-radius: 999px; padding: 12px 17px; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
button:disabled, input:disabled { cursor: not-allowed; }
.primary { background: var(--accent); color: var(--accent-ink); width: 100%; font-size: 1.05rem; }
.secondary, .file-button { background: #ece8dd; color: var(--ink); margin-top: 12px; }
.channel-list { display: grid; gap: 8px; }
.channel { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.channel-unavailable { background: #f5f1e8; border-style: dashed; }
.channel input { width: auto; margin-top: 4px; }
.channel strong, .channel small { display: block; }
.channel small { color: var(--muted); margin-top: 3px; }
.channel a { position: relative; z-index: 1; }
.fee-warning { color: var(--warn) !important; font-weight: 700; }
.badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #ece8dd; font-size: .7rem; margin-left: 6px; }
.badge.stale { background: #f7ded5; color: var(--warn); }
.muted { color: var(--muted); font-size: .86rem; line-height: 1.7; }
details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; font-weight: 800; }
.error { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f7ded5; color: var(--warn); font-weight: 700; }
.winner { margin-top: 16px; border-radius: 18px; padding: 20px; background: #20251d; color: white; display: grid; gap: 4px; }
.winner strong { font-size: 1.7rem; }
.winner span { opacity: .9; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:nth-child(2), td:nth-child(2) { text-align: left; }
th { color: var(--muted); font-size: .76rem; }
.loss { color: var(--warn); font-weight: 800; }
.good { color: var(--good); font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .secondary, .actions .file-button { margin-top: 0; }
#shareOutput { margin-top: 12px; min-height: 130px; }
.consent-panel h2 { margin-bottom: 10px; }
footer { max-width: 980px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: .8rem; }
footer nav { margin-bottom: 8px; }
.legal-copy { max-width: 760px; margin: 0 auto; padding: 30px 20px 72px; line-height: 1.8; }
.legal-copy h1 { font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -.04em; }
.legal-copy h2 { margin-top: 34px; }
.legal-copy li + li { margin-top: 8px; }
@media (max-width: 640px) {
  .hero { padding-top: 30px; }
  .grid.two { grid-template-columns: 1fr; }
  .panel { border-radius: 16px; padding: 17px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
