:root{--bg:#0f1419;--card:#182029;--line:#2a3542;--fg:#e8edf2;--mut:#8a98a8;--ov:#2ecc71;--un:#ff6b6b;--hl:#f5c542}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;padding:env(safe-area-inset-top) 10px 30px}
header{padding-top:8px}
h1{font-size:20px;margin:0}
.title{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#updated{color:var(--mut);font-size:12px}
.warn{font-size:12px;color:#d9c48a;background:#2a2516;border:1px solid #4a3f1f;border-radius:8px;padding:6px 8px;margin:6px 0}
.tabs{display:flex;gap:6px;margin:6px 0}
.tabs button{flex:1;padding:8px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--fg);font-weight:600}
.tabs button.on{background:#25425f;border-color:#3d6a96}
.filters{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.filters select,.filters input[type=search],.filters input[type=number],.filters button{font-size:15px;padding:7px 8px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--fg);flex:1 1 140px;min-width:0}
.filters button{background:#25425f;font-weight:600}
.chk{font-size:12px;color:var(--mut);display:flex;align-items:center;gap:4px;flex:1 1 140px}
.chk input[type=number]{width:56px;flex:0 0 56px;padding:5px}
.muted{color:var(--mut)}.small{font-size:12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px;margin:8px 0}
.card.lop{border-color:var(--hl);box-shadow:0 0 0 1px var(--hl) inset}
.top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.pl{font-weight:700;font-size:16px}
.sub{color:var(--mut);font-size:12px}
.lineBox{text-align:right;white-space:nowrap}
.lineBox input{width:68px;font-size:16px;font-weight:700;text-align:center;border-radius:6px;border:1px solid var(--line);background:#0c1116;color:var(--fg);padding:3px}
.prices{display:flex;gap:6px;margin:8px 0 4px;flex-wrap:wrap}
.price{flex:1 1 120px;background:#0f161d;border-radius:8px;padding:5px 7px;font-size:13px}
.price b{font-size:15px}
.ov{color:var(--ov)}.un{color:var(--un)}
.hits{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:6px}
.hit{background:#0f161d;border-radius:8px;padding:4px 2px;text-align:center;font-size:11px;color:var(--mut);cursor:pointer;position:relative}
.hit .v{display:block;font-size:14px;font-weight:700;color:var(--fg)}
.hit .f{display:block;font-size:11px}
.hit.small-n::after{content:"small";position:absolute;top:-6px;right:-2px;background:#6b4e00;color:#ffd666;font-size:9px;border-radius:4px;padding:0 3px}
.hit.vs{outline:1px solid #3d6a96}
.hit.o-strong .v{color:var(--ov)}.hit.u-strong .v{color:var(--un)}
.spark{margin-top:6px;display:block;width:100%;height:auto;overflow:visible}
details{margin-top:6px;font-size:13px}
summary{color:#9fc3e8;cursor:pointer}
table{width:100%;border-collapse:collapse;font-size:12px;margin-top:4px}
td,th{padding:3px 4px;border-bottom:1px solid var(--line);text-align:left}
.badge{display:inline-block;font-size:10px;padding:1px 5px;border-radius:5px;background:#33414f;color:#cfe;margin-left:4px}
.badge.lop{background:#5a4a12;color:#ffe08a}
#m-results{flex:1 1 100%}
#m-results div{padding:6px 8px;border-bottom:1px solid var(--line);cursor:pointer}
footer{margin-top:20px}

.ustrip{margin-top:6px;background:#0f161d;border-radius:8px;padding:5px 6px}
.uh{font-size:11px;color:var(--mut);margin-bottom:3px}
.ugrid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.ugrid4{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:4px;margin-top:3px}
.u{text-align:center;font-size:11px;color:var(--mut)}
.u b{display:block;font-size:14px;color:var(--fg)}
.u i{display:block;font-style:normal;font-size:10px}
.u.lab{text-align:left;align-self:center;font-size:11px;color:#cfd8e3}

.pill{display:inline-block;font-size:10px;font-weight:700;padding:1px 6px;border-radius:9px;margin-left:5px;vertical-align:2px;letter-spacing:.2px}
.pill.out{background:#7a1f24;color:#ffd0d0}.pill.dbt{background:#8a3b14;color:#ffd9bf}.pill.q{background:#6b5a0f;color:#ffeaa0}
.pill.prb{background:#1f5a39;color:#c9f5da}.pill.dtd{background:#5c4a12;color:#ffe08a}
.injnote{font-size:11px;color:#e9d6a0;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.tags .badge{margin-left:0;font-size:11px;padding:2px 6px}
.badge.bump.up{background:#173f2a;color:#9ff0c2}.badge.bump.dn{background:#4a1d22;color:#ffb3b3}.badge.mate{background:#2c3440;color:#b8c4d0}
.badge i.sm{font-style:normal;background:#6b4e00;color:#ffd666;border-radius:3px;padding:0 3px;font-size:9px}
.mv{font-size:11px;padding:2px 6px;border-radius:5px;background:#222c37;color:#cfd8e3;white-space:nowrap}
.mv i{font-style:normal;color:var(--mut)}
.mv.upm{color:#9ff0c2}.mv.dnm{color:#ffb3b3}.mv.big{outline:1px solid var(--hl);background:#3a3312;color:#ffe08a}
details.more summary{font-size:12px}
table.spl td:not(:first-child),table.spl th:not(:first-child),table.wo td:not(:first-child),table.wo th:not(:first-child){text-align:center}
table.spl tr.tn td{background:#24364a;font-weight:600}
td.smalln{opacity:.55}
