/* XIONIA station scores r1 (livetest tab). Scoped to .stsc. Theme follows the SITE switch (body.xionia-dark / body.light,
   the bulb button), not the OS preference: the rest of the page ignores prefers-color-scheme, so we do too (r1g). */
.stsc{--stsc-bg:#fff;--stsc-fg:#10273a;--stsc-muted:#4d6274;--stsc-line:#d3dfe8;--stsc-soft:#eef4f9;--stsc-acc:#0a6aa1;--stsc-win:#dcf2e4;--stsc-winfg:#0d5a2b;
  --stsc-bad:#fbe6e6;--stsc-badfg:#8a1f1f;--stsc-bar:#3d9ad1;--stsc-warn:#8a5a00;
  color:var(--stsc-fg);background:var(--stsc-bg);border:1px solid var(--stsc-line);border-radius:14px;padding:16px;margin:20px 0;max-width:100%;box-sizing:border-box}
body.xionia-dark .stsc,html[data-theme="dark"] .stsc{--stsc-bg:#142d40;--stsc-fg:#edf7ff;--stsc-muted:#a9c0d2;--stsc-line:#2b4a62;--stsc-soft:#0f2638;
  --stsc-acc:#7cc8f2;--stsc-win:#17442e;--stsc-winfg:#a6ecc0;--stsc-bad:#4a1f22;--stsc-badfg:#f6b8b8;--stsc-bar:#4f9bcc;--stsc-warn:#f0c36c}
.stsc *{box-sizing:border-box}
.stsc-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--stsc-line);margin:0 0 14px;padding:0}
.stsc-tabs button{font:inherit;font-weight:600;border:0;background:none;color:var(--stsc-muted);padding:10px 14px;border-bottom:3px solid transparent;cursor:pointer;min-height:44px}
.stsc-tabs button[aria-selected="true"]{color:var(--stsc-fg);border-bottom-color:var(--stsc-acc)}
.stsc-tabs button:focus-visible,.stsc-link:focus-visible,.stsc select:focus-visible,.stsc input:focus-visible{outline:2px solid var(--stsc-acc);outline-offset:2px}
.stsc-controls{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 14px}
.stsc-field{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--stsc-muted);min-width:0;flex:1 1 170px}
.stsc-field select,.stsc-field input{font:inherit;font-size:1rem;color:var(--stsc-fg);background:var(--stsc-soft);border:1px solid var(--stsc-line);border-radius:8px;padding:8px 10px;min-height:44px;width:100%}
.stsc-search{max-width:360px;margin:6px 0 10px}
.stsc-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.95rem;margin-bottom:4px;color:var(--stsc-muted)}
.stsc-link{font:inherit;color:var(--stsc-acc);background:none;border:0;padding:4px 0;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px;min-height:32px}
.stsc-h2{font-size:1.25rem;margin:10px 0 8px}
.stsc-h3{font-size:1.02rem;margin:16px 0 8px}
.stsc-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.stsc-table{border-collapse:collapse;width:100%;font-size:.92rem;font-variant-numeric:tabular-nums}
.stsc-cap{caption-side:top;text-align:left;color:var(--stsc-muted);font-size:.85rem;padding:0 0 6px}
.stsc-table th,.stsc-table td{padding:8px 10px;border-bottom:1px solid var(--stsc-line);text-align:left;vertical-align:top;white-space:nowrap}
.stsc-table thead th{background:var(--stsc-soft);font-weight:600;font-size:.82rem;color:var(--stsc-muted)}
.stsc-table tbody th{font-weight:600}
.stsc-table small{display:block;color:var(--stsc-muted);font-weight:400;font-size:.78rem}
.stsc-children tbody th{white-space:normal;min-width:150px}
.stsc-win{background:var(--stsc-win);color:var(--stsc-winfg)}
.stsc-good td:last-child{color:var(--stsc-winfg);font-weight:600}
.stsc-bad td:last-child{color:var(--stsc-badfg)}
.stsc-star{font-size:1.05rem}
.stsc-bar{display:inline-block;width:56px;height:8px;margin-right:8px;border-radius:4px;background:linear-gradient(90deg,var(--stsc-bar) var(--w),transparent var(--w));border:1px solid var(--stsc-line);vertical-align:middle}
.stsc-warn{color:var(--stsc-warn);font-size:.78rem}
.stsc-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 10px;padding:0}
.stsc-chips li{display:flex;gap:8px;align-items:center;background:var(--stsc-soft);border:1px solid var(--stsc-line);border-radius:999px;padding:4px 12px;font-size:.88rem}
.stsc-chips b{color:var(--stsc-acc)}
.stsc-card{border:1px solid var(--stsc-line);border-radius:12px;padding:12px 14px;margin:12px 0;background:var(--stsc-soft)}
.stsc-card .stsc-table thead th{background:var(--stsc-bg)}
.stsc-score{font-size:1.05rem}
.stsc-meta,.stsc-foot,.stsc-muted{color:var(--stsc-muted);font-size:.85rem}
.stsc-empty{padding:12px;border:1px dashed var(--stsc-line);border-radius:8px;color:var(--stsc-muted)}
/* the site styles headings/cells globally: pin our colours with higher specificity (dark mode legibility) */
.stsc h2,.stsc h3,.stsc th,.stsc td,.stsc p,.stsc li,.stsc caption,.stsc label{color:var(--stsc-fg)}
.stsc .stsc-meta,.stsc .stsc-foot,.stsc .stsc-muted,.stsc .stsc-table thead th,.stsc .stsc-table small,.stsc .stsc-cap,.stsc .stsc-field span,.stsc .stsc-crumbs{color:var(--stsc-muted)}
.stsc .stsc-win th,.stsc .stsc-win td{color:var(--stsc-winfg)}
.stsc .stsc-good td:last-child{color:var(--stsc-winfg)}
.stsc .stsc-bad td:last-child{color:var(--stsc-badfg)}
.stsc .stsc-warn{color:var(--stsc-warn)}
.stsc .stsc-sortbtn{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;color:inherit;font:inherit;min-height:32px}
.stsc .stsc-sortbtn::after{content:"↕";opacity:.45;font-size:.8em}
.stsc .stsc-sortbtn[data-dir="asc"]::after{content:"▲";opacity:1;color:var(--stsc-acc)}
.stsc .stsc-sortbtn[data-dir="desc"]::after{content:"▼";opacity:1;color:var(--stsc-acc)}
.stsc .stsc-sortbtn:focus-visible{outline:2px solid var(--stsc-acc);outline-offset:2px;border-radius:3px}
.stsc .stsc-table tbody th{background:var(--stsc-bg);color:var(--stsc-fg)}
.stsc .stsc-table tbody tr.stsc-win th{background:var(--stsc-win);color:var(--stsc-winfg)}
.stsc .stsc-mx tbody th{min-width:170px;max-width:240px;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:manual}
.stsc .stsc-mx td{text-align:right}
.stsc .stsc-mx td:nth-child(2){text-align:left}
.stsc .stsc-mx td.stsc-best{background:var(--stsc-win);color:var(--stsc-winfg);font-weight:700}
.stsc .stsc-rowname{display:inline-flex;align-items:center;gap:6px}
.stsc .stsc-flag{width:16px;height:12px;flex:0 0 16px;vertical-align:-2px}
.stsc .stsc-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;font-size:.9rem;color:var(--stsc-muted)}
.stsc .stsc-pages button{font:inherit;font-weight:600;color:var(--stsc-acc);background:var(--stsc-soft);border:1px solid var(--stsc-line);border-radius:8px;padding:6px 12px;min-height:40px;cursor:pointer}
.stsc .stsc-pages button[disabled]{opacity:.4;cursor:default}
.stsc .stsc-pages button:focus-visible{outline:2px solid var(--stsc-acc);outline-offset:2px}
.stsc .stsc-ci{display:inline;margin-left:6px;color:var(--stsc-muted);font-size:.78rem}
.stsc .stsc-chips b,.stsc .stsc-link{color:var(--stsc-acc)}
.stsc .stsc-link{background:none;border:0;box-shadow:none;border-radius:0;display:inline;width:auto;margin:0}
.stsc .stsc-crumbs{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;text-align:left}
.stsc .stsc-crumbs>*{flex:0 0 auto}
@media (max-width:560px){.stsc{padding:12px;border-radius:10px}.stsc-table th,.stsc-table td{padding:7px 8px}.stsc-bar{display:none}.stsc-tabs button{flex:1 1 auto}}
/* r1g: station counts of the scope + CSV download */
.stsc .stsc-stats{margin:.4rem 0 .8rem;padding:.45rem .7rem;border:1px solid var(--stsc-line);border-radius:8px;background:var(--stsc-soft);color:var(--stsc-fg);font-size:.9rem;line-height:1.5}
.stsc .stsc-stats b{color:var(--stsc-fg);font-variant-numeric:tabular-nums}
.stsc .stsc-csvwrap{position:relative}
.stsc .stsc-csv{display:inline-block;margin:.35rem 0 .2rem;padding:.3rem .7rem;border:1px solid var(--stsc-line);border-radius:6px;background:var(--stsc-bg);color:var(--stsc-acc);font:inherit;font-size:.82rem;cursor:pointer}
.stsc .stsc-csv:hover,.stsc .stsc-csv:focus-visible{border-color:var(--stsc-acc)}
/* r1h: MAE by lead chart */
.stsc .stsc-lc{margin:.6rem 0 1rem;padding:.5rem .6rem;border:1px solid var(--stsc-line);border-radius:10px;background:var(--stsc-bg)}
.stsc .stsc-lc svg{display:block;width:100%;height:auto}
.stsc .stsc-lc-grid{stroke:var(--stsc-line);stroke-width:1}
.stsc .stsc-lc-ax{fill:var(--stsc-muted);font-size:12px}
.stsc .stsc-lc-legend{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;margin:.3rem 0 0;padding:0;font-size:.82rem}
.stsc .stsc-lc-legend li{display:flex;align-items:center;gap:6px;color:var(--stsc-fg)}
.stsc .stsc-lc-key{display:inline-block;width:14px;height:4px;border-radius:2px}
.stsc .stsc-lc{max-width:780px}
body.xionia-dark .stsc .stsc-lc polyline,body.xionia-dark .stsc .stsc-lc-key,html[data-theme="dark"] .stsc .stsc-lc polyline,html[data-theme="dark"] .stsc .stsc-lc-key{filter:brightness(1.45) saturate(1.1)}
/* r1l: phones. The site's table-scroll rule pins the 1st column at 124px; in the ranking that column is only "#", so
   narrow it and pin the model name next to it; captions wrap at the screen width instead of the table width. */
@media (max-width:700px){
html body .stsc .stsc-scroll .stsc-cap>span{position:sticky;left:0;display:block;max-width:calc(100vw - 56px)}
html body .stsc .stsc-scroll table[data-stsc-sort=rank] tr>:is(th,td):first-child{width:38px!important;min-width:38px!important;max-width:38px!important;padding:7px 4px!important;text-align:center}
html body .stsc .stsc-scroll table[data-stsc-sort=rank] tbody tr>td:first-child{background:var(--stsc-bg)}
html body .stsc .stsc-scroll table[data-stsc-sort=rank] tbody tr.stsc-win>td:first-child{background:var(--stsc-win)}
html body .stsc .stsc-scroll table[data-stsc-sort=rank] tr>:is(th,td):nth-child(2){position:sticky;left:38px;z-index:2;box-shadow:1px 0 0 var(--stsc-line)}}
