:root{--bg:#000;--fg:#fff;--sec:rgba(235,235,245,.6);--ter:rgba(235,235,245,.3);--sep:rgba(84,84,88,.55);--c1:#1c1c1e;--c2:#2c2c2e;
--g:#00d35a;--r:#ff453a;--o:#ff9f0a;--cy:#64d2ff;--b:#0a84ff;--y:#ffd60a;--pk:#ff6b9a;
--disp:"SF Pro Display",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;--text:"SF Pro Text",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
--mono:"SF Mono",ui-monospace,Menlo,monospace;--cw:calc(100vw - 32px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.3 var(--text);font-variant-numeric:tabular-nums}
body{padding:env(safe-area-inset-top) env(safe-area-inset-right) calc(84px + env(safe-area-inset-bottom)) env(safe-area-inset-left)}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit}
.sec{color:var(--sec)}.ter{color:var(--ter)}.g{color:var(--g)}.r{color:var(--r)}.num{font-variant-numeric:tabular-nums}
#nav{display:flex;align-items:center;gap:8px;padding:6px 16px;min-height:56px;position:sticky;top:0;z-index:5;background:rgba(0,0,0,.72);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--c2);font-weight:600}.brand{font-weight:600;font-size:17px;min-height:44px}
.navr{margin-left:auto;display:flex}.icon{width:44px;height:44px;display:grid;place-items:center;position:relative}
.icon svg,#tabs svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#belldot{position:absolute;top:10px;right:10px;width:9px;height:9px;border-radius:50%;background:var(--g)}
#search{padding:0 16px 8px}#search input,.field{width:100%;min-height:44px;border-radius:12px;border:0;background:var(--c1);color:var(--fg);padding:0 14px;font:16px var(--text)}
#err{margin:0 16px 8px;padding:12px 14px;border-radius:12px;background:var(--c1);color:var(--r);font-size:14px}
main{padding:0 16px}section+section{margin-top:28px}h2{font:600 22px var(--disp);margin:0 0 12px}h3{font:600 17px var(--text);margin:0}
.hrow{display:flex;justify-content:space-between;align-items:baseline;margin:28px 0 10px}.hrow a,.link{color:var(--b);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.bal{display:flex;align-items:center;gap:10px;margin-top:8px}.big{font:700 66px/1 var(--disp);letter-spacing:-1px}
.pill{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:13px;font:600 13px var(--text)}
.paper{background:var(--o);color:#000}.mult{background:var(--g);color:#000}.tp{font:500 13px var(--mono);height:24px;border-radius:8px;background:var(--c2)}
.today{margin:8px 0 4px;font-size:17px;display:flex;gap:10px;align-items:center}
.od{display:inline-flex;overflow:hidden;height:1em;line-height:1}.od .d{display:inline-block;height:1em;overflow:hidden}.od .s{display:flex;flex-direction:column;transition:transform 600ms ease-out}
.od .s span{height:1em;display:block}
canvas{display:block;width:100%}#hchart{height:220px;margin-top:12px}
.ranges{display:flex;justify-content:space-between;margin-top:8px}.ranges button{min-width:44px;min-height:44px;border-radius:22px;font-weight:600;font-size:14px;color:var(--sec)}
.ranges button.on{background:var(--c2);color:var(--fg)}
.car{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px;scrollbar-width:none}.car::-webkit-scrollbar{display:none}
.acard{flex:0 0 var(--cw);width:var(--cw);aspect-ratio:504/470;border-radius:calc(var(--cw) * 42 / 504);background:var(--c1);scroll-snap-align:center;padding:20px;display:flex;flex-direction:column;overflow:hidden}
.acard .top{display:flex;justify-content:space-between;align-items:center}.acard .nm{font-weight:600;font-size:17px}.acard .ct{font:700 34px/1.1 var(--disp);margin-top:10px}
.acard .body{flex:1;margin-top:10px;overflow:hidden;font-size:14px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:6px}
.feed div{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:.5px solid var(--sep)}.feed .k{color:var(--ter)}.feed .k b{text-decoration:line-through;text-decoration-color:var(--r);font-weight:500}
.strips{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:6px 0 10px}.strips i{height:28px;border-radius:7px;background:var(--c2);display:block;transition:background 150ms}
.strips i.ok{background:var(--g)}.strips i.no{background:var(--r)}.strips i.run{background:var(--cy);opacity:.6}
.bar{height:8px;border-radius:4px;background:var(--c2);overflow:hidden;margin:10px 0}.bar i{display:block;height:100%;background:var(--g);width:0;transition:width 300ms}
.bar.ind i{width:35%;animation:ind 1.2s ease-in-out infinite}@keyframes ind{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
.pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.row{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 0;border-bottom:.5px solid var(--sep);width:100%;text-align:left}
.row .t{flex:1;min-width:0}.row .t div:first-child{font-weight:600}.row .t div+div{color:var(--sec);font-size:14px}.row .v{text-align:right;font-weight:600}
.empty{color:var(--sec);text-align:center;padding:36px 0}
.card{background:var(--c1);border-radius:16px;padding:16px;margin-bottom:12px}.card2{background:var(--c2);border-radius:12px;padding:12px}
.full{margin-bottom:16px}.full .acard{width:100%;flex:none}
.sw{position:relative;width:51px;height:31px;border-radius:16px;background:var(--c2);transition:background 200ms;flex:none}.sw::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;transition:transform 200ms}
.sw.on{background:var(--g)}.sw.on::after{transform:translateX(20px)}.sw[disabled]{opacity:.4}.swwrap{min-width:51px;min-height:44px;display:flex;align-items:center}
.dec{font-size:14px}.dec .row{min-height:44px}
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;border-radius:27px;font-weight:600;font-size:17px;text-decoration:none;background:var(--g);color:#000;margin:16px 0}
.btn.sell{background:var(--r);color:#fff}.btn.alt{background:var(--c2);color:var(--fg)}
.discs{position:relative;width:180px;margin:16px auto 8px}.disc{height:22px;border-radius:50%;background:var(--c2);margin-top:-6px;position:relative;display:grid;place-items:center;font-size:12px;font-weight:700;transition:background 150ms}
.disc.ok{background:var(--g);color:#000}.disc.no{background:var(--r)}
.beam{position:absolute;left:-14px;right:-14px;height:4px;border-radius:2px;background:var(--cy);top:0;transition:top 350ms linear;opacity:0}
.lrow{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:.5px solid var(--sep);min-height:44px}.lrow span:last-child{text-align:right}
.res{font:600 20px var(--disp);margin:16px 0 4px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats div{background:var(--c1);border-radius:14px;padding:12px}.stats b{display:block;font-size:17px;margin-top:4px}
#cchart{height:260px}.chip{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 10px;border-radius:13px;background:var(--c2);font-weight:600;font-size:13px}
.seg{display:flex;background:var(--c1);border-radius:12px;padding:3px}.seg button{flex:1;min-height:44px;border-radius:10px;font-weight:600}.seg button.on{background:var(--c2)}
.set{padding:10px 0;border-bottom:.5px solid var(--sep)}.set .lab{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:15px}
.set input[type=range]{width:100%;height:44px;accent-color:var(--g)}.set input.n{width:110px;min-height:44px;border-radius:10px;border:0;background:var(--c2);color:var(--fg);padding:0 10px;text-align:right;font:16px var(--text);font-variant-numeric:tabular-nums}
.set select{min-height:44px;border-radius:10px;border:0;background:var(--c2);color:var(--fg);padding:0 10px;font:16px var(--text)}
.msg{font-size:14px;color:var(--sec);min-height:20px}.msg.e{color:var(--r)}
#tabs{position:fixed;left:0;right:0;bottom:0;display:flex;padding:6px 8px env(safe-area-inset-bottom);background:rgba(18,18,18,.72);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:.5px solid var(--sep);z-index:6}
#tabs button{flex:1;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--ter)}#tabs button.on{color:var(--fg)}
#sheet{position:fixed;inset:0;background:#000;z-index:7;overflow:auto;padding:env(safe-area-inset-top) 16px calc(24px + env(safe-area-inset-bottom))}
.back{min-height:44px;min-width:44px;color:var(--b);font-size:17px}
.sk{background:#1c1c1e;border-radius:12px;animation:pulse 1.2s ease-in-out infinite alternate}@keyframes pulse{from{opacity:.5}to{opacity:1}}
#locked{padding:40px 24px}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.row{text-decoration:none;color:inherit}
