/* GAXI dashboard styles. Light + dark via tokens; light is the default, dark applies only when the visitor picks it with the theme toggle. */
:root{
  color-scheme:light;
  --page:#f9f9f7; --surface:#fcfcfb; --ink:#0b0b0b; --ink2:#52514e; --muted:#6f6d68;
  --grid:#e1e0d9; --axis:#c3c2b7; --ring:rgba(11,11,11,.10); --wash:rgba(11,11,11,.04);
  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100; --s5:#e87ba4; --s6:#008300; --other:#a7a59c;
  --red:#e34948; --divmid:#f0efec; --land:#e7e6e0; --good:#006300; --warn:#8a5a00; --bad:#b32e2e; --accent:#2a78d6;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --page:#0d0d0d; --surface:#1a1a19; --ink:#fff; --ink2:#c3c2b7; --muted:#a09e96;
  --grid:#2c2c2a; --axis:#383835; --ring:rgba(255,255,255,.10); --wash:rgba(255,255,255,.05);
  --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500; --s5:#d55181; --s6:#008300; --other:#6b6a64;
  --red:#e66767; --divmid:#383835; --land:#2a2a28; --good:#0ca30c; --warn:#e0a020; --bad:#e66767; --accent:#3987e5;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font:15px/1.5 var(--font)}
a{color:var(--accent)}
button{font-family:inherit}
.wrap{max-width:1280px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:var(--surface);padding:8px 12px;z-index:100}
.skip:focus{left:8px;top:8px}
.spacer{flex:1}

/* ----- header ----- */
.stickyhead{background:var(--surface);border-bottom:1px solid var(--grid)}
html.desktop .stickyhead{position:sticky;top:0;z-index:40}
header.top{border-bottom:1px solid var(--grid)}
.topin{display:flex;align-items:center;gap:16px;min-height:54px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px}
.brand{display:flex;flex-direction:column;line-height:1.15}
.brand b{font-size:19px;letter-spacing:.02em}
.brand span{font-size:11.5px;color:var(--muted)}
.tabs.main{display:flex;gap:2px;overflow-x:auto;max-width:100%;scrollbar-width:none}
.tabs.main::-webkit-scrollbar{display:none}
.tab{all:unset;cursor:pointer;padding:7px 12px;border-radius:9px;font-size:14px;color:var(--ink2);font-weight:500;white-space:nowrap;box-sizing:border-box}
.tab:hover{background:var(--wash);color:var(--ink)}
.tab[aria-selected="true"]{background:var(--ink);color:var(--surface);font-weight:600}
.tab.ext{text-decoration:none}
.tab:focus-visible,.tbtn:focus-visible,.fbtn:focus-visible,.seg button:focus-visible,.segx:focus-visible,.chip:focus-visible,.sortb:focus-visible,.lab.link:focus-visible,.livebtn:focus-visible,.sel:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.status{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.livebtn{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--grid);border-radius:999px;font-size:12.5px;color:var(--ink2)}
.livebtn .pulse{width:8px;height:8px;border-radius:50%;background:var(--other)}
.livebtn.on .pulse{background:var(--s3);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(27,175,122,.5)}70%{box-shadow:0 0 0 7px rgba(27,175,122,0)}100%{box-shadow:0 0 0 0 rgba(27,175,122,0)}}
@media (prefers-reduced-motion:reduce){.livebtn.on .pulse{animation:none}*{transition:none !important}}
.tbtn{all:unset;cursor:pointer;padding:6px 11px;border:1px solid var(--grid);border-radius:9px;font-size:13px;color:var(--ink2);background:var(--surface);box-sizing:border-box;text-decoration:none;display:inline-block}
.tbtn:hover{background:var(--wash);color:var(--ink)}
.tbtn.small{padding:4px 9px;font-size:12.5px}
.tbtn.primary{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.tbtn[disabled]{opacity:.45;cursor:default}
.tbtn[aria-pressed="true"]{background:var(--wash);color:var(--ink)}

/* ----- filter bar ----- */
.fbar{padding:8px 0 10px}
.fin{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
.fgroup{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.seg{display:inline-flex;border:1px solid var(--grid);border-radius:10px;overflow:hidden;background:var(--surface)}
.seg button{all:unset;cursor:pointer;padding:6px 11px;font-size:13px;color:var(--ink2);border-right:1px solid var(--grid);box-sizing:border-box}
.seg button:last-child{border-right:0}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--surface);font-weight:600}
.seg button:hover:not([aria-pressed="true"]){background:var(--wash)}
.segx{all:unset;cursor:pointer;padding:6px 11px;font-size:13px;color:var(--ink2);border:1px solid var(--grid);border-radius:10px;box-sizing:border-box}
.segx.on{background:var(--ink);color:var(--surface)}
.segx:hover:not(.on){background:var(--wash)}
.rangetxt{font-size:12.5px;color:var(--muted)}
.fbtn{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--grid);border-radius:10px;font-size:13px;color:var(--ink2);background:var(--surface);box-sizing:border-box}
.fbtn:hover{background:var(--wash)}
.fbtn.on{border-color:var(--s1);color:var(--ink)}
.fbtn .fn{background:var(--s1);color:#fff;border-radius:999px;font-size:11px;min-width:18px;height:18px;line-height:18px;text-align:center;padding:0 5px}
.fbtn .car{font-size:10px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:3px 6px 3px 10px;border-radius:999px;background:var(--wash);border:1px solid var(--grid);font-size:12.5px;color:var(--ink);box-sizing:border-box}
.chip .ck{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.chip i{font-style:normal;width:18px;height:18px;line-height:17px;text-align:center;border-radius:50%;color:var(--muted)}
.chip:hover i{background:var(--grid);color:var(--ink)}
.tz{min-width:52px;text-align:center}

/* ----- popovers ----- */
.pop{position:absolute;z-index:60;background:var(--surface);color:var(--ink);border:1px solid var(--grid);border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.18);width:min(92vw,340px);padding:10px}
.pop.narrow{width:min(92vw,300px)}
.phead{font-weight:600;font-size:13.5px;margin:2px 4px 8px}
.phead small{font-weight:400;color:var(--muted)}
.msearch,.pop input[type=datetime-local],.sel{width:100%;padding:7px 9px;border:1px solid var(--grid);border-radius:8px;background:var(--page);color:var(--ink);font:inherit;font-size:13.5px}
.sel{width:auto;padding:4px 8px;font-size:12.5px}
.mlist{max-height:300px;overflow:auto;margin:8px 0;display:flex;flex-direction:column}
.mopt{display:flex;align-items:center;gap:8px;padding:6px 6px;border-radius:7px;cursor:pointer;font-size:13.5px}
.mopt:hover{background:var(--wash)}
.mopt input{accent-color:var(--s1)}
.mtxt{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mn{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.mfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:var(--muted)}
.cust label{display:block;font-size:12.5px;color:var(--muted);margin-bottom:8px}
.cust label input{margin-top:3px}
.qrow{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}
.hint{font-size:12.5px;color:var(--muted);margin:6px 0}
.hint.err{color:var(--bad)}
.hint.good{color:var(--good)}

/* ----- layout ----- */
main{padding:18px 0 40px}
#app.loading{opacity:.55;transition:opacity .15s}
.skeleton{padding:60px 0;text-align:center;color:var(--muted)}
.banner{border:1px solid var(--ring);background:var(--surface);border-left:4px solid var(--s4);border-radius:10px;padding:11px 14px;margin-bottom:16px;color:var(--ink2);font-size:14px}
.banner.err{border-left-color:var(--bad)}
.banner b{color:var(--ink)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px}
.tile{background:var(--surface);border:1px solid var(--ring);border-radius:12px;padding:13px 15px;min-width:0}
.tile .l{font-size:12.5px;color:var(--muted)}
.tile .v{font-size:26px;font-weight:650;letter-spacing:-.01em;margin-top:2px;overflow-wrap:anywhere}
.tile .s{font-size:12px;color:var(--muted);margin-top:1px}
.hl{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-bottom:16px}
.hlc{background:var(--surface);border:1px solid var(--ring);border-radius:12px;padding:13px 15px}
.hlc .l{font-size:12.5px;color:var(--muted)}
.hlc .hv{font-size:17px;font-weight:600;margin-top:3px;display:flex;align-items:center;flex-wrap:wrap}
.hlc .s{font-size:12.5px;color:var(--muted);margin-top:2px}
section.card{background:var(--surface);border:1px solid var(--ring);border-radius:14px;padding:16px 18px;margin-bottom:16px;min-width:0}
.chead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.card h2{font-size:17px;margin:0 0 2px;letter-spacing:-.005em}
.card .sub{color:var(--muted);font-size:13.5px;margin:0 0 6px;max-width:88ch}
.cactions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.cbody{min-width:0}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--ink2);margin:6px 0 10px;align-items:center}
.lg{display:inline-flex;align-items:center;gap:6px}
.lg.muted{color:var(--muted)}
.sw{display:inline-block;width:10px;height:10px;border-radius:3px}
.sw.dot{border-radius:50%;background:var(--s1)}
.sw.hollow{background:transparent;border:2px dashed var(--s1)}
.tabs2{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0 8px}
.tabs2 .tab{border:1px solid transparent;padding:5px 11px;font-size:13px}
.tabs2 .tab[aria-selected="true"]{background:var(--wash);color:var(--ink);border-color:var(--grid)}
.tabs2 .tab:hover{background:var(--wash)}
.empty{color:var(--muted);padding:22px 4px;font-size:14px}
.empty.small{padding:8px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.mini-card{border:1px solid var(--grid);border-radius:12px;padding:10px 12px}
.mch{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:4px;flex-wrap:wrap}
.mch small{color:var(--muted);font-size:12px}
.btnrow{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.apiurl{background:var(--wash);padding:4px 8px;border-radius:6px;font-size:12px;overflow-wrap:anywhere}
.info{display:inline-block;width:15px;height:15px;border-radius:50%;border:1px solid var(--axis);color:var(--muted);font-size:10px;line-height:13px;text-align:center;margin-left:4px;cursor:help;font-style:italic}

/* ----- tables ----- */
.tablewrap{overflow:auto;max-width:100%}
table{border-collapse:collapse;width:100%;font-size:13.5px;font-variant-numeric:tabular-nums}
th,td{padding:8px 9px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--grid)}
th{font-weight:600;color:var(--ink2);font-size:12.5px;background:var(--surface);line-height:1.25;vertical-align:bottom;white-space:normal}
th.l,td.l{text-align:left}
td.na{color:var(--muted)}
.sticky{position:sticky;left:0;background:var(--surface);z-index:1}
.score table{min-width:860px}
.score th.l{min-width:270px}
.sortb{all:unset;cursor:pointer;display:inline-flex;gap:3px;align-items:baseline;color:inherit;font-weight:600;font-size:12.5px;text-align:inherit}
.sortb:hover{color:var(--ink)}
.sortb .arrow{font-size:9px;color:var(--muted);min-width:9px}
.vendor{color:var(--muted)}
.lab{font:inherit;color:var(--ink2)}
.lab.link,.colhead.link{all:unset;cursor:pointer;color:var(--ink);font-size:13.5px;box-sizing:border-box}
.lab.link:hover,.colhead.link:hover{color:var(--accent);text-decoration:underline}
.mname{display:inline}
.badge{display:inline-block;margin-left:7px;padding:0 6px;border-radius:999px;font-size:11px;line-height:18px;border:1px solid var(--grid);color:var(--muted);white-space:nowrap}
.badge.low{color:var(--warn);border-color:var(--warn)}
.badge.insufficient{color:var(--bad);border-color:var(--bad)}
.mini{display:inline-block;vertical-align:middle;width:38px;height:8px;background:var(--wash);border-radius:4px;margin-right:7px;overflow:hidden}
.mini i{display:block;height:100%;background:var(--s1);border-radius:0 4px 4px 0}

/* ----- bar lists ----- */
.rows{display:flex;flex-direction:column}
.rows .row{display:grid;grid-template-columns:minmax(110px,230px) 1fr;gap:12px;align-items:center;padding:3px 0;min-height:28px}
.rows.stack .row{grid-template-columns:minmax(110px,230px) 1fr auto}
.rows.compact .row{grid-template-columns:minmax(80px,130px) 1fr;min-height:24px}
.row .lab{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
.row .lab small{color:var(--muted);margin-left:5px;font-size:11.5px}
.bar{position:relative;display:flex;align-items:center;gap:8px;min-height:20px}
.bar i{display:block;height:16px;min-width:3px;border-radius:0 4px 4px 0;flex:0 0 auto}
.bar i:focus-visible,.stk i:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.bar span{font-size:12.5px;color:var(--ink2);font-variant-numeric:tabular-nums}
.bar .ref{position:absolute;top:-3px;bottom:-3px;width:0;border-left:1px dashed var(--axis)}
.bar.none span{color:var(--muted)}
.stk{display:flex;gap:2px;height:18px;width:100%}
.stk i{display:block;height:100%;border-radius:4px;min-width:2px}
.rt{font-size:12.5px;color:var(--ink2);font-variant-numeric:tabular-nums;white-space:nowrap}

/* ----- range chart ----- */
.range .row{grid-template-columns:minmax(110px,230px) 1fr}
.raxis{position:relative;height:16px}
.raxis span{position:absolute;transform:translateX(-50%);font-size:11px;color:var(--muted);white-space:nowrap}
.rtrack{position:relative;height:24px}
.rtrack .gl{position:absolute;top:0;bottom:0;width:0;border-left:1px solid var(--grid)}
.whisk{position:absolute;top:10px;height:4px;background:var(--s1);opacity:.35;border-radius:2px}
.whisk.low{opacity:.2}
.p95{position:absolute;top:6px;height:12px;width:2px;margin-left:-1px;background:var(--ink2);border-radius:1px}
.med{position:absolute;top:5px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--s1);box-shadow:0 0 0 2px var(--surface);cursor:pointer}
.med:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ----- svg charts ----- */
.resp{width:100%;min-height:40px}
svg{display:block;max-width:100%}
.gl{stroke:var(--grid);stroke-width:1}
.axis{stroke:var(--axis);stroke-width:1}
.ax{fill:var(--muted);font:11.5px var(--font)}
.axt{fill:var(--ink2);font:12px var(--font)}
.hintt{fill:var(--muted);font:italic 11.5px var(--font)}
.plab{fill:var(--ink);font:11.5px var(--font);paint-order:stroke;stroke:var(--surface);stroke-width:3px;pointer-events:none}
.pt{fill:var(--s1);fill-opacity:.82;stroke:var(--surface);stroke-width:2px;cursor:pointer}
.pt.low{fill:var(--s1);fill-opacity:.12;stroke:var(--s1);stroke-width:2px;stroke-dasharray:4 2}
.pt:hover,.pt:focus-visible{stroke:var(--ink);stroke-width:2.5px;outline:none;fill-opacity:1}
.ln{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.dot{stroke-width:2}
.cross{stroke:var(--axis);stroke-width:1}
.brushsel{fill:var(--s1);opacity:.14}
.spark{display:block}
.map{width:100%;height:auto;max-height:560px}
.ctry{fill:var(--land);stroke:var(--surface);stroke-width:.6}
.ctry.has{fill:var(--axis);cursor:pointer;stroke-width:.8}
.ctry.has:hover,.ctry.has:focus-visible{stroke:var(--ink);stroke-width:1.6;outline:none}
.ctry.active,.mpt.active{stroke:var(--ink);stroke-width:2}
.mpt{fill:var(--grid);stroke:var(--surface);stroke-width:1.5;cursor:pointer}
.mpt:hover,.mpt:focus-visible{stroke:var(--ink);outline:none}
.grad{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:2px 0 8px;flex-wrap:wrap}
.gbar{width:160px;height:10px;border-radius:5px;background:linear-gradient(90deg,color-mix(in srgb,var(--s1) 10%,var(--surface)),var(--s1))}
.gbar.div{background:linear-gradient(90deg,var(--s1),var(--divmid),var(--red))}
.gmid{order:0}

/* ----- heat tables ----- */
.heatwrap{padding-bottom:4px}
table.heat{width:100%;min-width:0;border-collapse:separate;border-spacing:0}
table.heat th,table.heat td{border-bottom:0}
table.heat th.l{min-width:150px;font-weight:500;padding:4px 10px 4px 0;font-size:13px}
table.heat th.hc{padding:0 2px;vertical-align:bottom;height:130px}
.rot{writing-mode:vertical-rl;transform:rotate(180deg);height:124px;white-space:nowrap;text-align:left;font-size:12px;font-weight:500;color:var(--ink2)}
.colhead.link{font-size:12px;color:var(--ink2)}
td.hm{text-align:center;min-width:50px;height:30px;font-size:12px;padding:0 5px;border:2px solid var(--surface);border-radius:6px;white-space:nowrap}
td.hm.none{background:transparent}
td.hm.low{opacity:.55}
td.hm:focus-visible{outline:2px solid var(--accent)}
table.heat th.l .lab.link{font-size:13px}

/* ----- tooltip ----- */
.tip{position:fixed;z-index:80;pointer-events:none;max-width:300px;background:var(--ink);color:var(--surface);padding:8px 11px;border-radius:9px;font-size:12.5px;line-height:1.45;box-shadow:0 6px 24px rgba(0,0,0,.28);opacity:0;transition:opacity .08s}
.tip .tt{font-weight:600;margin-bottom:3px;overflow-wrap:anywhere}
.tip .tr{display:flex;justify-content:space-between;gap:16px}
.tip .tr b{font-weight:600;font-variant-numeric:tabular-nums}

/* ----- drawer ----- */
.drawer{position:fixed;top:0;right:0;height:100%;width:min(540px,100vw);background:var(--surface);border-left:1px solid var(--grid);box-shadow:-12px 0 40px rgba(0,0,0,.18);transform:translateX(105%);transition:transform .2s ease;z-index:70;overflow:auto;visibility:hidden}
.drawer.open{transform:none;visibility:visible}
.dhead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:16px 18px 10px;position:sticky;top:0;background:var(--surface);border-bottom:1px solid var(--grid);z-index:2}
.dhead h2{margin:0;font-size:20px}
.dv{font-size:12.5px;color:var(--muted)}
.dbody{padding:12px 18px 40px}
.dbody h3{font-size:14px;margin:20px 0 6px}
.mtiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mt{border:1px solid var(--grid);border-radius:10px;padding:8px 10px;min-width:0}
.mt .l{font-size:11.5px;color:var(--muted)}
.mt .v{font-size:19px;font-weight:650;overflow-wrap:anywhere}
.mt .s{font-size:11.5px;color:var(--muted)}
.sparks{display:flex;gap:24px;flex-wrap:wrap}
.sparks small{display:block;color:var(--muted);font-size:12px}
.dfoot{margin-top:22px}
html.phone .mtiles{grid-template-columns:repeat(2,1fr)}

/* ----- footer ----- */
footer{border-top:1px solid var(--grid);color:var(--muted);font-size:13px;padding:18px 0 40px}
footer .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ----- responsive ----- */
html.phone .wrap{padding:0 14px}
html.phone .tabs.main{order:5;width:100%}
html.phone .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.phone .hl{grid-template-columns:1fr}
html.phone .topin{gap:8px}
html.phone .status .upd{display:none}
html.phone .tile .v{font-size:22px}
html.phone .rows .row,html.phone .rows.stack .row{grid-template-columns:96px 1fr}
html.phone .rows.stack .row .rt{grid-column:2}
html.phone .range .row{grid-template-columns:96px 1fr}
html.phone .rangetxt{width:100%}
html.phone section.card{padding:13px 12px}
html.phone .score th.l{min-width:170px}


/* ----- methodology / long-form ----- */
nav.main a{padding:6px 12px;border-radius:8px;text-decoration:none;color:var(--ink2);font-weight:500}
nav.main a[aria-current="page"]{background:var(--wash);color:var(--ink)}
nav.main a:hover{background:var(--wash)}
.doc{max-width:860px}
.doc h1{font-size:30px;letter-spacing:-.01em;margin:8px 0 4px}
.doc h2{font-size:21px;margin:36px 0 6px;padding-top:6px;border-top:1px solid var(--grid)}
.doc h3{font-size:16px;margin:22px 0 4px}
.doc p,.doc li{color:var(--ink2)}
.doc code{background:var(--wash);padding:1px 5px;border-radius:5px;font-size:.92em}
.doc .lede{font-size:17px;color:var(--ink2)}
.doc table th,.doc table td{white-space:normal;vertical-align:top;text-align:left}
.doc .note{border-left:4px solid var(--s1);background:var(--wash);padding:10px 14px;border-radius:0 8px 8px 0;margin:14px 0}
.doc .warn{border-left-color:var(--s4)}
.flow{width:100%;height:auto;margin:10px 0}
.flow text{fill:var(--ink);font:12.5px var(--font)}
.flow .m{fill:var(--muted);font-size:11px}
.flow .box{fill:var(--surface);stroke:var(--axis);stroke-width:1.2}
.flow .ln{stroke:var(--axis);stroke-width:1.5;fill:none}
.flow .dash{stroke-dasharray:4 4}
.flow .a1{stroke:var(--s1)} .flow .a2{stroke:var(--s2)}

/* diverging bar list (centre = typical) */
.dlist .row{grid-template-columns:minmax(110px,230px) 1fr minmax(120px,auto)}
.dtrack{position:relative;height:22px}
.dtrack .mid{position:absolute;left:50%;top:0;bottom:0;border-left:1px solid var(--axis)}
.dtrack i{position:absolute;top:3px;height:16px;border-radius:4px;min-width:3px}
.dtrack i:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.dend{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);margin:0 0 4px;padding-left:242px;padding-right:132px}
html.phone .dlist .row{grid-template-columns:96px 1fr}html.phone .dlist .row .rt{grid-column:2}html.phone .dend{padding-left:108px;padding-right:0}
.sel-static{display:none}

/* ----- Insights ----- */
.ins-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
li.ins{display:grid;grid-template-columns:14px 1fr;gap:12px;align-items:start}
.ins-dot{width:10px;height:10px;border-radius:50%;margin-top:7px;background:var(--muted)}
li.ins.good .ins-dot{background:var(--s3)}
li.ins.warn .ins-dot{background:var(--s4)}
li.ins.bad .ins-dot{background:var(--red)}
li.ins.note .ins-dot{background:var(--s1)}
.ins-h{font-size:12.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600}
li.ins p,.ins-p{margin:2px 0 0;font-size:16px;line-height:1.55;color:var(--ink)}
li.ins b,.ins-p b{font-weight:650}
li.ins .lab.link,.ins-p .lab.link{font-size:inherit;font-weight:650}
.ins-go{all:unset;cursor:pointer;color:var(--accent);font-size:13.5px;white-space:nowrap;box-sizing:border-box}
.ins-go:hover{text-decoration:underline}
.ins-go:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ins-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-bottom:0}
.ins-grid .card{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.ins-grid .ins-p{font-size:15px}
.vd{display:inline-block;padding:1px 9px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid currentColor;white-space:nowrap}
.vd.strong{color:var(--good)}.vd.mixed{color:var(--warn)}.vd.weak{color:var(--bad)}.vd.early,.vd.few,.vd.ns{color:var(--muted)}
table.ins th.r,table.ins td.r{text-align:right}
table.ins td.why{color:var(--ink2);min-width:240px}
table.ins tr.v-early,table.ins tr.v-few{color:var(--muted)}
.cwrap{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.cbar{width:64px;height:6px;border-radius:3px;background:var(--grid);overflow:hidden;flex:none}
.cbar i{display:block;height:100%;background:var(--s1);border-radius:3px}
.foot-note{color:var(--muted);font-size:13px;margin:14px 2px 0}
html.phone li.ins p{font-size:15px}html.phone .cbar{width:40px}
table.ins th,table.ins td{text-align:left}
table.ins th.r,table.ins td.r{text-align:right}
table.ins td.why{white-space:normal}
table.ins{min-width:760px}

/* ----- layout picker (footer, More sheet) ----- */
.lpick{display:inline-flex;border:1px solid var(--grid);border-radius:9px;overflow:hidden;vertical-align:middle}
.lpick button{all:unset;cursor:pointer;padding:5px 12px;font-size:13px;color:var(--ink2);box-sizing:border-box}
.lpick button+button{border-left:1px solid var(--grid)}
.lpick button[aria-pressed="true"]{background:var(--ink);color:var(--surface);font-weight:600}
.lpick button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.lplab{font-size:12.5px;color:var(--muted);margin-right:8px}
#layoutpick{display:flex;align-items:center}
footer .wrap{align-items:center}

/* ----- Ask ----- */
.chat{display:flex;flex-direction:column;gap:12px}
.chatlog{display:flex;flex-direction:column;gap:10px;min-height:120px;max-height:none}
.msg{display:flex}
.msg.u{justify-content:flex-end}
.bub{max-width:min(760px,92%);border-radius:14px;padding:10px 13px;font-size:15px;line-height:1.5;min-width:0}
.msg.u .bub{background:var(--ink);color:var(--surface);border-bottom-right-radius:4px}
.msg.a .bub{background:var(--wash);border:1px solid var(--grid);border-bottom-left-radius:4px;width:min(760px,100%)}
.ans-p{margin:0 0 6px;color:var(--ink)}
.ans-p b{font-weight:650}
.ans-p .lab.link{font-size:inherit;font-weight:650}
.ans-note{margin:0 0 8px;font-size:13.5px;color:var(--warn)}
.msg.a .tablewrap{margin:6px 0 4px;background:var(--surface);border-radius:8px;border:1px solid var(--grid)}
.msg.a table{font-size:13px}
.ans-foot{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:12px;color:var(--muted);align-items:center}
.sugwrap{display:flex;gap:10px;align-items:flex-start}
.sugl{font-size:12.5px;color:var(--muted);padding-top:6px}
.chips2{display:flex;flex-wrap:wrap;gap:6px}
.sug{all:unset;cursor:pointer;padding:5px 11px;border-radius:999px;border:1px solid var(--grid);background:var(--surface);font-size:13px;color:var(--ink2);box-sizing:border-box}
.sugmore{margin-top:10px;display:grid;gap:12px}
.sugrp{display:flex;gap:10px;align-items:flex-start}
.sugrp .sugl{min-width:104px}
html.phone .sugrp{flex-direction:column;gap:4px}
.sug:hover{border-color:var(--accent);color:var(--ink)}
.sug:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.askbar{display:flex;gap:8px;position:sticky;bottom:0;background:var(--surface);padding:8px 0 2px}
.askin{flex:1;min-width:0;font:inherit;font-size:16px;padding:10px 12px;border-radius:10px;border:1px solid var(--axis);background:var(--page);color:var(--ink)}
.askin:focus{outline:2px solid var(--accent);outline-offset:1px}
.askgo{all:unset;cursor:pointer;padding:10px 18px;border-radius:10px;background:var(--ink);color:var(--surface);font-weight:600;font-size:15px;box-sizing:border-box}
.askgo:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.msg{animation:msgin .18s ease-out}@keyframes msgin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}}

/* ----- FAQ (methodology) ----- */
.faq details{border-bottom:1px solid var(--grid);padding:2px 0}
.faq summary{cursor:pointer;padding:10px 0;font-weight:600;color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--muted);font-weight:400;font-size:20px;line-height:1}
.faq details[open] summary::after{content:"\2212"}
.faq details>div{padding:0 0 12px;color:var(--ink2)}
.faq details:target{background:var(--wash);border-radius:8px;padding-left:10px;padding-right:10px}
.faqsearch{width:100%;font:inherit;padding:9px 12px;border-radius:10px;border:1px solid var(--axis);background:var(--page);color:var(--ink);margin:6px 0 10px}

/* ----- phone layout ----- */
#bnav,.msheet,.ftoggle{display:none}
html.phone body{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
@media (min-width:701px){html.phone body{max-width:460px;margin:0 auto;box-shadow:0 0 0 1px var(--grid);min-height:100vh;background:var(--page)}}
html.phone .stickyhead{position:static}
html.phone .tabs.main{display:none}
html.phone .brand span{display:none}
html.phone header.top{border-bottom:0}
html.phone .topin{min-height:46px;flex-wrap:nowrap}
html.phone #theme{display:none}
html.phone .status{display:flex;align-items:center;gap:6px}
html.phone #bnav{display:flex;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:460px;z-index:60;background:var(--surface);border-top:1px solid var(--grid);padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px))}
html.phone #bnav button{all:unset;flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 2px;border-radius:10px;cursor:pointer;color:var(--muted);font-size:11.5px;font-weight:500;min-height:48px;justify-content:center;box-sizing:border-box}
html.phone #bnav button i{font-style:normal;font-size:18px;line-height:20px}
html.phone #bnav button[aria-current="page"]{color:var(--ink);background:var(--wash);font-weight:650}
html.phone #bnav button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
html.phone .msheet{display:block;position:fixed;inset:0;z-index:70;visibility:hidden}
html.phone .msheet.open{visibility:visible}
html.phone .msback{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:opacity .18s}
html.phone .msheet.open .msback{opacity:1}
html.phone .mspanel{position:absolute;left:50%;transform:translate(-50%,100%);bottom:0;width:100%;max-width:460px;background:var(--surface);border-radius:18px 18px 0 0;padding:16px 16px calc(78px + env(safe-area-inset-bottom,0px));transition:transform .2s ease-out;border-top:1px solid var(--grid)}
html.phone .msheet.open .mspanel{transform:translate(-50%,0)}
html.phone .msgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html.phone .msitem{all:unset;cursor:pointer;padding:13px 14px;border:1px solid var(--grid);border-radius:12px;font-size:15px;color:var(--ink);box-sizing:border-box;text-align:center;text-decoration:none;display:block}
html.phone .msitem[aria-current="page"]{background:var(--ink);color:var(--surface);font-weight:600}
html.phone .lslot{margin-top:14px;display:flex;align-items:center}
html.phone .msrow{margin-top:12px}
@media (prefers-reduced-motion:reduce){html.phone .mspanel,html.phone .msback{transition:none}}
/* collapsible filters */
html.phone .ftoggle{display:flex;align-items:center;gap:8px;width:100%;padding:11px 14px;background:var(--surface);border:0;border-top:1px solid var(--grid);border-bottom:1px solid var(--grid);font:inherit;font-size:14px;color:var(--ink);cursor:pointer;text-align:left;box-sizing:border-box}
html.phone .ftl{font-weight:650}
html.phone .ftr{color:var(--muted);flex:1;font-size:13px}
html.phone .ftc{color:var(--muted);transition:transform .15s}
html.phone #fbar.open .ftc{transform:rotate(180deg)}
html.phone #fbar:not(.open) .wrap{display:none}
html.phone #fbar{padding:0}
html.phone #fbar.open .wrap{padding-top:10px;padding-bottom:10px}
html.phone .fin{gap:8px}
/* touch targets */
html.phone .tbtn,html.phone .seg button,html.phone .segx,html.phone .fbtn,html.phone .livebtn,html.phone .sug,html.phone .lpick button{min-height:38px}
html.phone .seg button{padding-left:12px;padding-right:12px}
html.phone .sug{padding:8px 12px}
html.phone .foot,html.phone footer .wrap{flex-direction:column;align-items:flex-start}
/* Ask on phone: keep the input above the bottom bar */
html.phone .askbar{bottom:calc(60px + env(safe-area-inset-bottom,0px));z-index:5;box-shadow:0 -8px 8px -8px var(--surface)}
html.phone .bub{max-width:96%;font-size:15px}
html.phone .msg.a .bub{width:100%}
html.phone .sugwrap{flex-direction:column;gap:4px}
/* verdict table -> cards */
html.phone table.ins{min-width:0;display:block}
html.phone table.ins thead{display:none}
html.phone table.ins tbody{display:block}
html.phone table.ins tr{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px 8px;padding:11px 0;border-bottom:1px solid var(--grid)}
html.phone table.ins th[scope="row"]{grid-column:1 / 3;border:0;padding:0;display:flex;align-items:center;flex-wrap:wrap}
html.phone table.ins td{border:0;padding:0;text-align:left;white-space:normal}
html.phone table.ins td.c-v{grid-column:3;text-align:right}
html.phone table.ins td[data-l]::before{content:attr(data-l);display:block;font-size:11px;color:var(--muted)}
html.phone table.ins td.c-c .cwrap{justify-content:flex-start}
html.phone table.ins td.why{grid-column:1 / -1;min-width:0;font-size:13px}
html.phone table.ins td.why::before{display:none}
html.phone .ins-grid{grid-template-columns:1fr}
@media (max-width:700px){body.docpage .wrap{padding:0 14px}body.docpage .topin{gap:8px}body.docpage .doc h1{font-size:25px}}
@media (max-width:1420px){html.desktop .status .upd{display:none}}
html.phone .livebtn{padding:4px 10px;min-height:34px}

.flab{font-size:12px;color:var(--ink2);margin-right:6px;align-self:center}
