:root { --bg: #e8e8e3; --surface: #dcdcd6; --panel: #f5f5f1; --ink: #181715; --muted: #5c5b56; --rule: #c9c9c1; --accent: #bfb21a; --neg: #9c3320; --pos: #2c6638; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 "Instrument Sans", system-ui, sans-serif; font-stretch: 96%; }
.mono { font-family: "DM Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; font-variant-numeric: tabular-nums; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; padding: 0.6rem 1rem; border-radius: 8px; white-space: nowrap; }
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1rem 3rem; align-items: end; padding: 2rem 0 1.75rem; }
h1 { font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 12em; }
.intro p { margin: 0; color: var(--muted); max-width: 62ch; }
.intro p b { color: var(--ink); font-weight: 500; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--rule); }
.tabs button { font: inherit; font-weight: 500; background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.7rem 0.9rem; margin-bottom: -1px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.ask { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 2rem; padding: 1.5rem 0 3rem; align-items: start; }
.qs h3 { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin: 1.1rem 0 0.3rem; }
.qs h3:first-child { margin-top: 0; }
.qs button { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.9375rem; line-height: 1.3; background: none; border: 0; border-left: 3px solid transparent; padding: 0.45rem 0.7rem; color: var(--ink); cursor: pointer; border-radius: 0 6px 6px 0; }
.qs button:hover { background: var(--surface); }
.qs button[aria-current="true"] { background: var(--panel); border-left-color: var(--accent); font-weight: 500; }
.qsel { display: none; }
select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 0.55rem 0.7rem; max-width: 100%; }
.sheet { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 1.5rem; min-width: 0; }
.sheet h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.9rem; }
.pick { margin: 0 0 1rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; font-size: 0.9375rem; }
.ans { font-size: 1.0625rem; line-height: 1.5; margin: 0 0 1.25rem; max-width: 70ch; }
.ans b { font-weight: 600; background: linear-gradient(transparent 62%, rgba(191, 178, 26, 0.45) 62%); }
.tbl { overflow-x: auto; margin: 0 -0.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.8125rem; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; position: relative; }
.res td:first-child { min-width: 9.5rem; }
.r { text-align: right; white-space: nowrap; }
.neg { color: var(--neg); } .pos { color: var(--pos); }
.bar { display: block; height: 3px; background: var(--accent); margin: 3px 0 0 auto; border-radius: 2px; }
.open { font: inherit; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.open::after { content: " +"; color: var(--muted); }
.open[aria-expanded="true"]::after { content: " \2212"; }
.detail > td { background: var(--bg); padding: 0.5rem 0.75rem 0.9rem; }
.recs { font-size: 0.8438rem; }
.recs td, .recs th { padding: 0.3rem 0.5rem; }
.recs-more, .hint { color: var(--muted); font-size: 0.8438rem; margin: 0.6rem 0 0; }
.how { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.how h3 { font-size: 0.875rem; font-weight: 500; margin: 0 0 0.25rem; }
.how p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }
.src { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.src li { display: flex; gap: 0.5rem; align-items: baseline; background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 0.25rem 0.55rem; font-size: 0.8438rem; }
.src b { font-weight: 500; }
.report { padding: 1.5rem 0 3rem; display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.report label { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.3rem; }
.report .side p { color: var(--muted); font-size: 0.9375rem; margin: 1rem 0 0; }
.mail-head { margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
.mail-head b { color: var(--ink); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1.25rem 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-l { font-size: 0.8125rem; color: var(--muted); }
.stat-v { font-size: 1.875rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-s { font-size: 0.875rem; color: var(--muted); }
.stat-s.neg { color: var(--neg); } .stat-s.pos { color: var(--pos); }
.call { margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--ink); color: var(--bg); border-radius: 10px; }
.call h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; font-weight: 500; }
.call p { margin: 0; opacity: 0.86; max-width: 70ch; }
.close { background: var(--surface); padding: 2.5rem 0; }
.close .wrap { display: flex; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.close h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 0.4rem; }
.close p { margin: 0; color: var(--muted); max-width: 60ch; }
.foot { padding-block: 1.25rem 2rem; color: var(--muted); font-size: 0.8438rem; }
@media (max-width: 899px) {
  .intro { grid-template-columns: 1fr; padding-top: 1rem; }
  .ask, .report { grid-template-columns: 1fr; gap: 1rem; }
  .qs { display: none; } .qsel { display: block; width: 100%; }
  .sheet { padding: 1rem; } .sheet h2 { font-size: 1.1875rem; }
  .stat-v { font-size: 1.625rem; }
}
