/* Layout: one centered column of sections; tables scroll sideways on phones. */
/* Diva palette: blush ground, plum ink, hot-pink accent, rose-gold trim. Up = teal, down = coral. */
:root {
  --bg: #fff4f8; --panel: #ffffff; --fg: #3a1238; --muted: #7d5a78; --line: #f3d3e2;
  --ok: #0c8a79; --bad: #d9364f; --warn: #b86a00; --accent: #d6338a; --grid: #fbe6ef;
  --gold: #c98a3c; --hero-a: #ffd1e3; --hero-b: #f7c6dc; --hero-c: #f3d9c4;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b0d1c; --panel: #26132a; --fg: #fbe9f3; --muted: #c9a6c1; --line: #3f2242; --ok: #3fd0b8; --bad: #ff6f86; --warn: #f0b155; --accent: #ff6fb5; --grid: #33193a; --gold: #e8b86a; --hero-a: #4a1747; --hero-b: #3a1238; --hero-c: #4a2a2a; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); }
.wrap { max-width: 1200px; margin: 0 auto; padding-block: 24px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 32px; }
h1 { font: 700 34px/1.1 var(--display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font: 700 22px/1.25 var(--display); color: var(--fg); margin: 0; text-wrap: balance; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
a { color: var(--accent); }
.lede { margin: 8px 0 0; color: var(--muted); max-width: 72ch; }
.note { color: var(--muted); font-size: 13px; margin: 0; max-width: 78ch; }
.topnav { display: flex; gap: 16px; font-size: 14px; }
.sec { display: grid; gap: 12px; min-width: 0; }
.sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 0 rgb(214 51 138 / .06), 0 6px 20px rgb(214 51 138 / .06); padding: 16px; min-width: 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: right; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.l, td.l { text-align: left; }
td.wrap { white-space: normal; min-width: 26rem; max-width: 34rem; text-align: left; }
.pos, .sup { color: var(--ok); } .neg, .res { color: var(--bad); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid currentColor; }
.pill.bull { color: var(--ok); } .pill.bear { color: var(--bad); } .pill.neut { color: var(--muted); }
.pill.high { color: var(--bad); } .pill.med { color: var(--warn); } .pill.info { color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: inherit; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chart { position: relative; min-height: 220px; }
.chart.tall { min-height: 300px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 16px rgb(0 0 0 / .12); border-radius: 8px; padding: 6px 8px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; z-index: 2; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; }
.tile .lab { color: var(--muted); font-size: 13px; }
.tile .val { font: 700 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li.empty { display: block; color: var(--muted); }
.list .when .pill { justify-self: start; }
.list .when { font-size: 12px; color: var(--muted); display: grid; gap: 4px; align-content: start; font-variant-numeric: tabular-nums; }
.list .what { display: grid; gap: 4px; min-width: 0; }
.list .what p { margin: 0; color: var(--muted); font-size: 13px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: grid; grid-template-columns: 4px 1fr; gap: 12px; }
.feed .bar { border-radius: 2px; background: var(--muted); }
.feed .bar.bad { background: var(--bad); } .feed .bar.warn { background: var(--warn); } .feed .bar.ok { background: var(--ok); }
.feed p, .review p { margin: 0; max-width: 78ch; white-space: pre-line; }
.review { display: grid; gap: 16px; }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
form.grid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
form.grid .wide { grid-column: 1 / -1; }
input, select { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.btn { font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.btn[disabled] { opacity: .5; cursor: default; }
.msg { margin: 0; font-size: 13px; } .msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); }
.skeleton { color: transparent; background: var(--grid); border-radius: 4px; }
@media (max-width: 560px) { .list li { grid-template-columns: 1fr; gap: 4px; } h1 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Hero: diva portrait beside the page title, on a blush-to-rose-gold band. */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 24px; border-radius: 20px;
  background: linear-gradient(120deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c)); border: 1px solid var(--line); }
.hero img { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: 0 8px 24px rgb(58 18 56 / .18); background: var(--panel); max-width: 100%; }
.hero .eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero .lede { color: var(--fg); opacity: .8; }
.hero.small img { width: 88px; height: 88px; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px 16px; } .hero img { width: 112px; height: 112px; } }
