:root{--bg:#121212;--surface:#1d1d1f;--surface-2:#2a2a2c;--surface-3:#343437;--line:#333335;--line-strong:#4a4a4c;--ink:#f2f0ea;--ink-2:#c9cdd2;--muted:#9298a0;--accent:#e8e8e8;--accent-ink:#121212;--gold:#e0a93b;--ok:#3fd1ae;--ok-bg:#0f2a2e;--ok-line:#1c6b5a;--info:#7fb5ff;--info-bg:#15263c;--warn:#f2c56b;--warn-bg:#2e2510;--bad:#ff9a91;--bad-bg:#2a1716;--series:#3987e5;--head:"IBM Plex Sans",Inter,system-ui,sans-serif;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--bar-h:58px;--tab-h:64px;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overscroll-behavior-y:none}a{color:var(--accent)}h1{font-size:23px;margin:0;line-height:1.15}h1,h2{font-family:var(--head);font-weight:700}h2{font-size:18px;margin:0 0 12px}h3{font-size:16px;margin:0 0 8px}.eyebrow,h3{font-weight:700}.eyebrow{font-size:11px;letter-spacing:.09em;text-transform:uppercase}.eyebrow,.muted{color:var(--muted)}.muted{font-size:14px}.app{min-height:100svh;display:flex;flex-direction:column}.appbar{position:-webkit-sticky;position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;height:calc(var(--bar-h) + var(--safe-top));padding:var(--safe-top) 14px 0;background:rgba(18,18,18,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.appbar img.logo{height:34px;width:auto;display:block;flex:none}.appbar .title{flex:1 1;min-width:0;display:flex;flex-direction:column;line-height:1.1}.appbar .title b{font-family:var(--head);font-size:16px;font-weight:700}.appbar .title b,.appbar .title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appbar .title span{font-size:12px;color:var(--muted)}.appbar .iconbtn{flex:none;width:42px;height:42px;border-radius:12px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.screen{flex:1 1;width:100%;max-width:760px;margin:0 auto;padding:16px 14px calc(var(--tab-h) + var(--safe-bottom) + 20px)}.screen.wide{max-width:1100px}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;height:calc(var(--tab-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:rgba(22,22,22,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line)}.tabbar a{flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);text-decoration:none;font-size:11px;font-weight:600;min-width:0}.tabbar a svg{width:23px;height:23px}.tabbar a.on{color:var(--ink)}.tabbar a.on svg{color:var(--gold)}.head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}.head>div:first-child{min-width:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:14px}.stack>*+*{margin-top:12px}.row{display:flex;gap:10px}.row>*{flex:1 1;min-width:0}label{display:block;font-size:13px;font-weight:600;color:var(--ink-2);margin:14px 0 7px}label:first-child{margin-top:0}input,select,textarea{width:100%;height:54px;padding:0 15px;font:inherit;font-size:17px;border-radius:13px;border:1px solid var(--line-strong);background-color:var(--bg);color:var(--ink);-webkit-appearance:none;-moz-appearance:none;appearance:none}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%239298a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;padding-right:46px}select::-ms-expand{display:none}textarea{height:auto;min-height:84px;padding:12px 15px;font-size:16px}input::placeholder,textarea::placeholder{color:#70757c}input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:56px;padding:12px 18px;font:inherit;font-weight:700;font-size:18px;text-decoration:none;cursor:pointer;border:1px solid var(--accent);border-radius:14px;background:var(--accent);color:var(--accent-ink)}.btn svg{width:20px;height:20px}.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line-strong)}.btn.go{background:var(--ok);color:#06231c;border-color:var(--ok)}.btn.gold{background:var(--gold);color:#241a06;border-color:var(--gold)}.btn.sm{min-height:44px;width:auto;font-size:15px;padding:9px 16px;border-radius:12px}.btn.block{width:100%}.btn:disabled,.btn[aria-disabled=true]{opacity:.45}.btnrow{display:flex;gap:10px}.btnrow>.btn{width:auto;flex:1 1}.note{padding:12px 14px;border-radius:12px;font-size:14px;margin:12px 0 0;border:1px solid transparent}.note.ok{background:var(--ok-bg);color:var(--ok);border-color:var(--ok-line)}.note.info{background:var(--info-bg);color:var(--info)}.note.warn{background:var(--warn-bg);color:var(--warn)}.note.bad{background:var(--bad-bg);color:var(--bad)}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.pill.ok{background:var(--ok-bg);color:var(--ok)}.pill.info{background:var(--info-bg);color:var(--info)}.pill.warn{background:var(--warn-bg);color:var(--warn)}.pill.bad{background:var(--bad-bg);color:var(--bad)}.pill.idle{background:var(--surface-2);color:var(--ink-2)}.name{font-family:var(--head);line-height:1.15}.bigid,.name{font-size:27px;font-weight:700}.bigid{height:66px;text-align:center;letter-spacing:.02em}.stepper{display:flex;align-items:stretch;gap:12px}.stepper button{flex:none;width:66px;height:66px;font-size:32px;font-weight:700;border-radius:16px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink);cursor:pointer}.stepper input{height:66px;font-family:var(--head);font-size:30px;font-weight:700}.qrwrap,.stepper input{text-align:center}.qrwrap img{width:100%;max-width:360px;height:auto;background:#fff;border-radius:18px;padding:10px}.horse-sec{margin-bottom:16px}.horse-sec .eyebrow{margin-bottom:8px;display:block}.tiles{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;aspect-ratio:3/4;border-radius:14px;cursor:pointer;overflow:hidden;text-align:center;padding:10px;border:1.5px dashed var(--line-strong);background:var(--surface);color:var(--muted)}.tile.done{border-style:solid;border-color:var(--ok-line);color:var(--ok)}.tile.busy{border-style:solid}.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.tile .cap{font-size:13px;font-weight:700}.tile .sub{font-size:12px;color:var(--muted)}.tile svg{width:30px;height:30px}.tile .overlay{left:0;right:0;bottom:0;padding:6px 8px;font-size:12px;font-weight:700;background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;justify-content:space-between}.tile .check,.tile .overlay{position:absolute;display:flex;align-items:center}.tile .check{top:6px;right:6px;width:26px;height:26px;border-radius:50%;background:var(--ok);color:#06231c;justify-content:center}.tile-label{font-size:13px;font-weight:600;color:var(--ink-2);margin-top:6px;text-align:center}.tile.err{border-color:var(--bad);color:var(--bad)}.hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.spin{width:26px;height:26px;border:3px solid var(--line-strong);border-top-color:var(--gold);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.segmented{display:flex;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:5px;margin-bottom:14px}.segmented button{flex:1 1;min-height:42px;border:0;border-radius:9px;background:transparent;color:var(--ink-2);font:inherit;font-weight:700;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}.segmented button.on{background:var(--surface-3);color:var(--ink)}.segmented .count{font-size:12px;background:var(--surface-2);color:var(--ink-2);border-radius:999px;padding:1px 7px}.segmented button.on .count{background:var(--gold);color:#241a06}.qrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin-bottom:10px;cursor:pointer;color:var(--ink)}.qrow:active{background:var(--surface-2)}.qrow .main{flex:1 1;min-width:0}.qrow .nm{font-weight:700;font-size:17px}.qrow .nm,.qrow .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qrow .sub{font-size:13px;color:var(--muted)}.qrow .chev{color:var(--muted);flex:none}.stats{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;gap:10px;margin-bottom:14px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px}.stat .v{font-family:var(--head);font-size:28px;font-weight:700;line-height:1;margin:5px 0 3px}.stat .l{font-size:12px;color:var(--muted)}.lotcard{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px}.lotcard .top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}.lotcard .cap{font-family:var(--head);font-size:15px;font-weight:700}.meter{height:12px;border-radius:999px;background:var(--surface-3);overflow:hidden;display:flex}.meter .fill-ok{background:var(--ok)}.meter .fill-warn{background:var(--gold)}.lotgrid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:8px 14px;gap:8px 14px;margin-top:12px}.lotgrid div{display:flex;align-items:baseline;justify-content:space-between;font-size:14px;border-bottom:1px solid var(--line);padding-bottom:6px}.lotgrid b{font-family:var(--head);font-size:17px}.sheet{position:fixed;inset:0;z-index:50;background:var(--bg);display:flex;flex-direction:column}.sheet .sheethead{display:flex;align-items:center;gap:10px;padding:calc(var(--safe-top) + 10px) 14px 10px;border-bottom:1px solid var(--line);background:var(--surface)}.sheet .sheethead .t{flex:1 1;min-width:0}.sheet .sheethead .t b{font-family:var(--head);font-size:18px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet .sheethead .t span{font-size:13px;color:var(--muted)}.sheet .sheetbody{flex:1 1;overflow-y:auto;padding:14px 14px calc(var(--safe-bottom) + 20px)}.sheet .sheetbody,.table-scroll{-webkit-overflow-scrolling:touch}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px;min-width:620px}td,th{text-align:left;padding:11px 8px;border-top:1px solid var(--line);vertical-align:middle;white-space:nowrap}th{border-top:0;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}td.strong,th{font-weight:700}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}.toolbar>*{flex:1 1 140px;height:48px;font-size:15px}.vchart-readout{font-size:13px;color:var(--ink-2);min-height:19px;margin-bottom:6px}.vchart-plot{display:flex;align-items:flex-end;gap:3px;border-bottom:1px solid var(--line-strong)}.vcol{flex:1 1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.vcol-value{font-size:11px;font-weight:700;margin-bottom:4px}.vcol-bar{width:100%;max-width:40px;background:var(--series);border-radius:4px 4px 0 0}.vchart-axis{display:flex;gap:3px;margin-top:6px}.vtick{flex:1 1;min-width:0;text-align:center;font-size:11px;color:var(--muted)}.done-screen{text-align:center;padding:30px 16px}.done-screen .tick{width:76px;height:76px;margin:0 auto 18px;border-radius:50%;background:var(--ok-bg);border:2px solid var(--ok-line);color:var(--ok);display:flex;align-items:center;justify-content:center}@media (min-width:560px){.stats{grid-template-columns:repeat(4,1fr)}}