:root {
  color-scheme: light;
  --paper:#f0f4f5; --surface:#fff; --ink:#132630; --muted:#4e6370; --line:#dbe4e8;
  --teal:#136555;
  --amber:#775021; --amber-bg:#fff8ec; --amber-line:#eedabc;
  --rise:#9a3529; --rise-bg:#fff0eb; --fall:#176353; --fall-bg:#e9f5ee;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); line-height:1.5; }
p,h1,h2,h3,dl,dd { margin:0; }
[hidden] { display:none!important; }
.shell { width:min(100%,1160px); margin:auto; padding:clamp(14px,4vw,44px); }
.page-header {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:6px 14px; padding:5px 0 6px;
}
.page-title { display:flex; align-items:center; gap:10px; }
.page-title h1 { font-size:clamp(1.55rem,3.5vw,2rem); line-height:1.1; font-weight:750; letter-spacing:-.04em; }
.page-icon {
  display:grid; place-items:center; width:35px; height:35px;
  border:1px solid #cce1d7; border-radius:10px; background:#e4f2ec; color:var(--teal);
}
.page-icon svg { width:21px; height:21px; }
.tag { padding:4px 9px; border:1px solid var(--line); border-radius:99px; color:var(--muted); background:var(--surface); font-size:.75rem; font-weight:650; }
.controls,.cards article,.table-section,details,.state { background:var(--surface); border:1px solid var(--line); border-radius:16px; }
.controls { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; margin:10px 0 14px; padding:14px clamp(14px,2.5vw,22px); }
.eyebrow { color:var(--teal); font-size:.72rem; font-weight:750; letter-spacing:.105em; text-transform:uppercase; }
.controls strong { display:block; margin-top:2px; }
.muted,small { color:var(--muted); }
.controls .muted { font-size:.86rem; }
.service-filter { display:grid; gap:4px; width:min(100%,220px); }
.service-filter label { display:block; }
#service {
  width:100%; min-height:44px; padding:8px 12px; border:1px solid #71958b;
  border-radius:10px; color:var(--ink); background:#f6fbf9; font:inherit;
  font-size:.9rem; font-weight:650; cursor:pointer;
}
#service:hover { background:#eaf5f1; border-color:var(--teal); }
@supports (appearance: base-select) and selector(::picker(select)) {
  #service, #service::picker(select) { appearance:base-select; }
  #service { justify-content:space-between; gap:12px; }
  #service::picker-icon { color:var(--teal); font-size:.85rem; }
  #service:open { border-color:var(--teal); background:#eef8f4; }
  #service::picker(select) {
    margin-top:6px; padding:5px; max-block-size:min(55dvh,26rem);
    border:1px solid #bfd3ca; border-radius:12px; background:var(--surface);
    box-shadow:0 10px 28px #13263026; color:var(--ink);
  }
  #service option {
    min-height:40px; padding:7px 10px; gap:9px; border-radius:7px;
    font-size:.88rem; font-weight:550;
  }
  #service option:first-child { margin-bottom:4px; border-bottom:1px solid var(--line); font-weight:750; }
  #service option:hover, #service option:focus-visible { background:#eef5f3; color:var(--ink); }
  #service option:checked { color:#0c594a; background:#e4f3eb; font-weight:750; }
  #service option::checkmark { order:1; margin-inline-start:auto; color:#0c594a; }
}
@media (forced-colors: active) {
  #service, #service::picker(select) { appearance:auto; }
}
:where(select,summary,.scroll):focus-visible { outline:3px solid #177860; outline-offset:3px; }
.state { padding:20px; }
.callout { display:grid; grid-template-columns:minmax(0,1fr) minmax(270px, .68fr); align-items:center; gap:18px; padding:clamp(16px,2.5vw,24px); border:1px solid var(--amber-line); border-left:4px solid #aa6e2d; border-radius:16px; background:var(--amber-bg); }
.callout[data-level="quiet"] { border-color:var(--line); border-left-color:#547b73; background:#f7fbf9; grid-template-columns:1fr; }
.callout .eyebrow { color:var(--amber); }
.callout[data-level="quiet"] .eyebrow { color:var(--teal); }
.callout h2 { margin:5px 0 4px; font-size:clamp(1.25rem,3vw,1.75rem); line-height:1.18; letter-spacing:-.035em; overflow-wrap:anywhere; }
.callout-copy > p:last-child { color:#455a62; }
.comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; padding:1px; border:1px solid var(--amber-line); border-radius:12px; overflow:hidden; background:var(--amber-line); }
.comparison > div { padding:10px 12px; background:#fffdf9; }
.comparison dt { font-size:.78rem; color:var(--muted); font-weight:650; }
.comparison dd[id$="-rate"] { font-size:clamp(1.3rem,2.7vw,1.9rem); font-weight:750; letter-spacing:-.045em; }
.comparison > div:last-child dd[id$="-rate"] { color:var(--rise); }
.comparison .muted { font-size:.8rem; }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.cards article { padding:clamp(14px,2.5vw,22px); }
.cards h3 { color:var(--muted); font-size:.87rem; font-weight:650; }
.cards strong { display:block; margin:3px 0; font-size:clamp(1.6rem,4vw,2.6rem); line-height:1.15; letter-spacing:-.05em; }
.cards small { font-size:.81rem; }
.section-heading { padding:18px clamp(14px,2.5vw,22px); display:flex; justify-content:space-between; align-items:start; gap:10px; flex-wrap:wrap; }
.section-heading h2 { font-size:1.25rem; letter-spacing:-.02em; }
.section-heading .muted { font-size:.86rem; margin-top:3px; }
.count { border-radius:20px; padding:4px 9px; font-size:.76rem; background:#edf4f3; color:#2b5951; font-weight:650; }
.scroll { max-width:100%; overflow:auto; border-radius:0 0 16px 16px; }
table { border-collapse:collapse; width:100%; min-width:500px; text-align:right; }
th,td { padding:9px clamp(10px,2vw,22px); border-top:1px solid var(--line); white-space:nowrap; }
th:first-child { text-align:left; }
thead th { background:#f6f8f9; color:var(--muted); font-size:.78rem; }
tbody th,td { font-size:.9rem; }
tbody tr[data-focus] { background:#fffaf2; }
.row-flag { display:inline-block; margin-left:8px; color:var(--amber); font-size:.72rem; }
.change { display:inline-block; border-radius:7px; padding:3px 7px; font-weight:700; }
.change.rise { color:var(--rise); background:var(--rise-bg); }
.change.fall { color:var(--fall); background:var(--fall-bg); }
details { margin-top:14px; padding:0 clamp(14px,2.5vw,22px); }
summary { padding:13px 0; cursor:pointer; font-weight:700; }
summary span { margin-left:6px; font-size:.78rem; color:var(--muted); font-weight:550; }
details p { font-size:.87rem; line-height:1.55; padding-bottom:12px; }
.sr { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
@media(max-width:680px) {
  .callout { grid-template-columns:1fr; }
  .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cards article:last-child { grid-column:1/-1; }
}
@media(max-width:375px) {
  .service-filter { width:100%; }
}

.comparison .comparison-range { margin-top:5px; color:var(--muted); font-size:.75rem; line-height:1.4; }
.comparison-range time { white-space:nowrap; }

.data-intro { padding-bottom:8px; }
.data-checks { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:8px 28px; padding:0 0 0 1.35rem; margin:0 0 14px; }
.data-checks li { --note-ink:#215d4b; --note-bg:#ecf6f1; padding:9px 11px; border-radius:9px; background:var(--note-bg); font-size:.86rem; }
.data-checks li[data-tone="skipped"] { --note-ink:#805020; --note-bg:#fff5e5; }
.data-checks li[data-tone="kept"] { --note-ink:#24577c; --note-bg:#edf5fa; }
.data-checks li::marker { color:var(--note-ink); font-weight:750; }
@media (min-width: 800px) {
  .data-checks:has(> li:nth-child(4):last-child) {
    grid-template-columns:repeat(4,minmax(0,1fr));
    column-gap:22px;
  }
  .data-checks:has(> li:nth-child(5)) {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
.data-checks strong { display:block; color:var(--note-ink); }
.data-checks span { display:block; color:var(--ink); margin-top:3px; }
.rate-example { border-top:1px solid var(--line); padding-top:11px; color:var(--muted); }
.rate-example strong { color:var(--ink); }

.trend { margin:14px 0 0; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.trend:not([hidden]) + .table-section { margin-top:14px; }
.trend .section-heading { padding-bottom:10px; }
.trend-chart { display:grid; grid-template-columns:auto repeat(2,minmax(0,1fr)); gap:6px 10px; padding:0 clamp(12px,2.5vw,22px) 12px; }
.trend-axis { height:90px; display:flex; flex-direction:column; justify-content:space-between; text-align:right; font-size:.71rem; color:var(--muted); }
.trend-period ol {
  display:grid; grid-template-columns:repeat(var(--day-count,7),minmax(0,1fr));
  gap:clamp(2px,1vw,9px); margin:0; padding:0;
  background:linear-gradient(var(--line),var(--line)) top/100% 1px no-repeat,
             linear-gradient(var(--line),var(--line)) 0 89px/100% 1px no-repeat;
}
.trend-period li { position:relative; min-width:0; list-style:none; border-radius:5px; }
.trend-period li:hover, .trend-period li:focus { background:#edf5f3; }
.trend-period li:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.trend-plot { display:flex; position:relative; align-items:flex-end; justify-content:center; height:90px; }
.trend-day { display:flex; flex-direction:column; align-items:center; color:var(--muted); font-size:.68rem; line-height:1.25; margin-top:4px; }
.trend-day strong { color:var(--ink); }
.trend-tooltip {
  position:absolute; z-index:2; top:4px; left:50%; transform:translateX(-50%);
  padding:3px 6px; border-radius:5px; color:#fff; background:#132630;
  white-space:nowrap; font-size:.73rem; font-weight:700; opacity:0; pointer-events:none;
}
.trend-period li:hover .trend-tooltip, .trend-period li:focus .trend-tooltip { opacity:1; }
.trend-period li:first-child .trend-tooltip { left:0; transform:none; }
.trend-period li:last-child .trend-tooltip { left:auto; right:0; transform:none; }
@media(max-width:480px) {
  .trend-chart[data-view="week"] { grid-template-columns:auto minmax(0,1fr); row-gap:12px; }
  .trend-chart[data-view="week"] .trend-latest { grid-column:2; }
}
.trend-bar { display:block; height:max(1px,var(--height,0%)); width:100%; max-width:32px; background:#718997; border-radius:4px 4px 0 0; }
.trend-latest .trend-bar { background:var(--teal); }
.trend-period li[data-missing] .trend-bar { height:5px; border-top:1px dashed var(--muted); background:transparent; border-radius:0; }
.trend-period p,.trend-note { color:var(--muted); font-size:.74rem; margin-top:4px; }
.trend-note { padding:0 clamp(12px,2.5vw,22px) 10px; }

.trend-switch { display:inline-flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:10px; background:#f3f7f6; }
.trend-switch button { min-height:38px; padding:4px 9px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--muted); font:inherit; font-size:.8rem; font-weight:650; cursor:pointer; }
.trend-switch button[aria-pressed="true"] { background:var(--surface); border-color:#c5dbd2; color:var(--teal); }
.trend-switch button:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.trend-nav { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 clamp(14px,2.5vw,22px) 12px; font-size:.78rem; color:var(--muted); }
.trend-nav button { min-height:34px; padding:3px 9px; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--teal); font:inherit; font-weight:650; cursor:pointer; }
.trend-nav button:disabled { color:var(--muted); opacity:.55; cursor:default; }
.trend-nav button:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.trend-scroll { overflow-x:auto; }
.trend-chart[data-view="latest"] { grid-template-columns:auto minmax(0,1fr); }
.trend-switch { max-width:100%; flex-wrap:wrap; }
.trend-chart[data-view="month"] { min-width:790px; grid-template-columns:auto minmax(0,16fr) repeat(2,minmax(0,7fr)); gap:6px 8px; }
.trend-chart[data-view="month"] ol { gap:4px; }
.trend-earlier .trend-bar { background:#a7b6bd; }
.trend-earlier p { padding-left:0; }
