:root{color-scheme:dark;--bg:#081319;--panel:#10242e;--text:#f7fbff;--muted:#aec1cb;--mint:#63efd0;--yellow:#ffe169;--line:#38656d;--vh:100dvh;font:16px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--text);background:linear-gradient(#071319,#02090d 63%,#05070b);min-height:100vh}[hidden]{display:none!important}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}input,select{background:#091820;border:1px solid #4d7884;border-radius:12px;padding:10px 12px;width:100%;min-width:0}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:3px}.shell{max-width:680px;margin:auto}.bar{position:sticky;z-index:2;top:0;display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 16px;background:#081319;border-bottom:1px solid #16262c}.bar h1{flex:1;margin:0;font-size:20px;line-height:1.15;font-weight:850;min-width:0}.logo{width:38px;height:38px;border-radius:10px}.icon{width:42px;height:42px;flex-shrink:0;border-radius:50%;border:1px solid #415171;background:#24304b;color:white;font-size:25px;line-height:1}.gear{background:#0b4a39;color:#b8ffe9;border-color:#1e6e5e}main{padding:16px 18px 34px}.status,.branch,.subpanel,.rowbtn{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #34646e;border-radius:18px;background:linear-gradient(130deg,#102b34,#111d2b);color:white;padding:13px 15px}.status{border-color:#34646e;margin-bottom:16px}.battery{margin-left:auto;color:var(--mint);font-weight:750}.muted,small{color:var(--muted)}small{display:block;font-size:.92rem}.branch{min-height:106px;margin-bottom:12px}.branch strong{font-size:1.15rem;display:block;margin-bottom:4px}.branch img{width:68px;height:68px;border-radius:14px;object-fit:contain}.glyph,.check{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:15px;background:#0a2c31;border:1px solid var(--mint);color:var(--mint);font-size:24px}.center{margin:clamp(20px,12dvh,100px) auto 24px;text-align:center;max-width:475px}.center img{width:180px;height:180px;border-radius:28px;object-fit:contain}.center h2{margin:8px 0}.center p{color:var(--muted);margin:8px 0 18px}.stack{display:grid;gap:12px}.stack h2{margin:0}.rowbtn{margin-bottom:8px;display:grid;gap:5px}.rowbtn .stock-line{display:flex;justify-content:space-between;gap:8px}.pill,.secondary,.primary{min-height:44px;border-radius:22px;border:1px solid #679292;background:transparent;padding:9px 16px;font-weight:750;text-align:center}.primary{background:#42e7a5;border-color:#42e7a5;color:#082719}.secondary:hover,.branch:hover,.rowbtn:hover{border-color:var(--mint)}.neon{background:#0c2434;border:1px solid #71f6e1;box-shadow:0 0 23px #27e5c92f;color:#e3fff8}.inline{display:flex;gap:10px;align-items:center}.inline>*{min-width:0}.inline .grow{flex:1}.spaces{justify-content:space-between}.pad{padding:10px 0}.banner{padding:10px 13px;border:1px solid #5e5433;color:#ffefb0;border-radius:12px;background:#352d1a}.fold{display:grid;gap:10px}.screenVideo{width:100%;height:min(45vh,340px);object-fit:cover;border-radius:20px;background:#10181a;border:1px solid #38585d}.overlay{position:fixed;inset:0 auto auto 0;width:100%;height:var(--vh);top:var(--vt,0px);z-index:5;display:grid;place-items:center;background:#000a;padding:14px;overscroll-behavior:contain}.overlay.preview{z-index:6}.dialog{width:min(100%,415px);max-height:100%;overflow:auto;overscroll-behavior:contain;background:linear-gradient(155deg,#102a37,#112331 57%,#0a1a22);box-shadow:0 18px 66px #000b;border:1px solid #4aa48d;border-radius:23px;padding:15px 16px}.settings{width:min(100%,465px)}.dialog-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.dialog-head h2{flex:1;margin:0;font-size:21px}.product-head{display:grid;grid-template-columns:36px 1fr 58px;gap:10px;align-items:center;margin-bottom:6px}.check{width:36px;height:36px;border-radius:13px}.product-head strong{font-size:14px;display:block;line-height:1.18}.badge{background:#c33239;border-radius:8px;padding:3px 7px;font-size:13px;color:white;font-weight:850;white-space:nowrap}.thumb{width:58px;height:42px;border-radius:8px;border:1px solid #63efd0a0;background:#0005;padding:4px;display:grid;place-items:center}.thumb canvas,.paper canvas{display:block;max-width:100%;max-height:100%;object-fit:contain}.thumb canvas{max-height:32px}.info{display:flex;justify-content:space-between;gap:8px;padding:5px 3px;border-bottom:1px solid #589d8933;font-size:.94rem}.info strong{text-align:right;overflow-wrap:anywhere}.mint{color:var(--mint)}.yellow{color:var(--yellow)}.old{background:#ffe16814;border:1px solid #ffe168a0;border-radius:13px;padding:5px 7px;margin-top:8px}.old input{width:115px;padding:5px 10px}.qty{display:grid;grid-template-columns:70px 1fr 70px;gap:10px;margin:6px 0 10px}.qty input{text-align:center}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.section{border:1px solid #37988985;border-radius:15px;background:#20384b55;padding:12px;margin-bottom:10px}.section label:not(.toggle){display:block;font-size:.9rem;color:var(--muted);margin-bottom:6px}.toggle{display:flex;gap:10px;align-items:center;justify-content:space-between;font-weight:750}.toggle input{height:21px;width:21px;accent-color:#42e7a5}.paper{min-height:150px;display:grid;place-items:center;background:#071317;border-radius:14px;padding:16px}.paper canvas{width:100%;max-height:55dvh}.dialog .message{color:#ffe28c;min-height:0;margin:6px 0}.dialog .message:empty{display:none}#toast{position:fixed;z-index:20;bottom:max(15px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 28px));background:#18352f;border:1px solid #52a591;border-radius:15px;color:white;padding:12px 15px}.footer{margin-top:20px;font-size:13px;color:var(--muted)}@media(max-width:370px){main{padding:12px}.dialog{padding:12px}.bar h1{font-size:17px}.branch{min-height:90px}}
