/* SOTTOZERO Parts Inventory. Layout follows the HUB app page style v1 (Health and Safety 2.0).
   Colours, type and radii come only from brand-tokens.css. */

*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--sz-font-body);background:var(--sz-bg);color:var(--sz-ink);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;font-size:inherit}
input,select,textarea{font-family:inherit;color:inherit}
h1,h2,h3{font-family:var(--sz-font-display);font-weight:800;letter-spacing:-.01em;text-wrap:balance}
:focus-visible{outline:2px solid var(--sz-primary);outline-offset:2px}
a{color:var(--sz-primary)}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--sz-muted)}
.small{font-size:13px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.between{justify-content:space-between}
.grow{flex:1;min-width:0}

/* gate */
#gate{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center}
#gate .gcard{max-width:420px;display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--sz-muted)}
#gate .gcard img{height:18px}
#gate .gcard h1{font-size:22px;color:var(--sz-ink)}
body:not(.ready) .app{display:none}
body.ready #gate{display:none}

/* top bar */
.topbar{position:sticky;top:0;z-index:40;background:var(--sz-white);border-bottom:1px solid var(--sz-line);box-shadow:var(--sz-shadow-xs);padding:calc(10px + env(safe-area-inset-top,0px)) 16px 0}
.topbar-in{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:12px;padding-bottom:10px}
.topbar .back{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--sz-muted);margin-left:-6px;flex:none}
.topbar .back:hover{background:var(--sz-line-2);color:var(--sz-ink)}
.topbar .back svg{width:20px;height:20px}
.topbar .home{display:flex;align-items:center;text-decoration:none}
.topbar .home img{height:16px;width:auto}
.topbar .mod{font:800 10px/1 var(--sz-font-body);letter-spacing:.12em;text-transform:uppercase;color:#fff;background:var(--sz-primary);border-radius:6px;padding:5px 7px;white-space:nowrap}
.topbar .who{margin-left:auto;font-size:12.5px;color:var(--sz-muted);text-align:right;line-height:1.3;min-width:0}
.topbar .who b{color:var(--sz-ink-2);font-weight:600;display:block}
.topbar .who small{display:block;font-size:9px;color:var(--sz-muted-2)}

/* tabs: underline on desktop, bottom bar on phone */
.tabs{position:relative;max-width:1180px;margin:0 auto;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px 12px;font-weight:600;font-size:14px;color:var(--sz-muted);border-bottom:3px solid transparent;white-space:nowrap;min-height:44px}
.tabs button svg{width:18px;height:18px;flex:none}
.tabs button .s{display:none}
.tabs button[aria-selected="true"]{color:var(--sz-primary)}
.tabs:not(.inked) button[aria-selected="true"]{border-bottom-color:var(--sz-primary)}
.tabs button.scan .dot2{display:inline-grid;place-items:center}
.tabs button.scan .dot2 svg{width:18px;height:18px}
.tabs button.desk{display:inline-flex}
.tabs .ink{position:absolute;left:0;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--sz-primary);width:0;pointer-events:none}

main{max-width:1180px;margin:0 auto;padding:20px 16px calc(96px + env(safe-area-inset-bottom,0px))}
.view{display:flex;flex-direction:column;gap:18px}

/* surfaces */
.card{background:var(--sz-white);border:1px solid var(--sz-line);border-radius:var(--sz-radius);box-shadow:var(--sz-shadow-xs)}
.pad{padding:18px}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sz-muted)}
.shead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:6px}
.shead h2{font-size:18px}
.shead span,.shead a{font-size:13px;color:var(--sz-muted)}
.shead a{color:var(--sz-primary);font-weight:600;text-decoration:none;cursor:pointer}
.vhead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.vhead h1{font-size:clamp(22px,3vw,28px);letter-spacing:-.02em}
.vhead p{color:var(--sz-muted);max-width:64ch;margin-top:4px}
.crumb{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--sz-muted);text-decoration:none;cursor:pointer;min-height:32px}
.crumb svg{width:16px;height:16px}
.crumb:hover{color:var(--sz-primary)}
.banner{border-radius:var(--sz-radius-sm);padding:10px 14px;font-size:13px;font-weight:500;background:var(--sz-warn-soft);color:var(--sz-warn)}
.banner.info{background:var(--sz-primary-soft);color:var(--sz-primary)}
.banner.good{background:var(--sz-good-soft);color:var(--sz-good)}

/* buttons */
.btn{border:1px solid var(--sz-line);background:var(--sz-white);border-radius:var(--sz-radius-sm);padding:10px 14px;font-weight:600;font-size:14px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--sz-ink-2);transition:background var(--sz-dur-fast,150ms),border-color var(--sz-dur-fast,150ms)}
.btn:hover{border-color:var(--sz-muted-2)}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--sz-primary);border-color:var(--sz-primary);color:#fff}
.btn-primary:hover{background:var(--sz-primary-dark);border-color:var(--sz-primary-dark)}
.btn.danger{color:var(--sz-bad)}
.btn.danger.armed{background:var(--sz-bad);border-color:var(--sz-bad);color:#fff}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.sm{min-height:36px;padding:6px 10px;font-size:13px}
.btn svg{width:18px;height:18px;flex:none}
.btn.sm svg{width:16px;height:16px}
.btn.block{width:100%}
.linkbtn{color:var(--sz-primary);font-weight:600;font-size:13px;cursor:pointer;min-height:32px;display:inline-flex;align-items:center;gap:6px}

/* pills and tags */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;border-radius:999px;padding:4px 10px;white-space:nowrap}
.pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.pill.good{background:var(--sz-good-soft);color:var(--sz-good)}
.pill.warn{background:var(--sz-warn-soft);color:var(--sz-warn)}
.pill.bad{background:var(--sz-bad-soft);color:var(--sz-bad)}
.pill.info{background:var(--sz-primary-soft);color:var(--sz-primary)}
.pill.plain{background:var(--sz-line-2);color:var(--sz-muted)}
.code{display:inline-grid;place-items:center;min-width:40px;height:28px;padding:0 8px;border-radius:8px;background:var(--sz-primary-soft);color:var(--sz-primary);font:800 13px/1 var(--sz-font-display);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.code.big{min-width:64px;height:44px;font-size:20px;border-radius:12px}
.code.plain{background:var(--sz-line-2);color:var(--sz-muted)}

/* hero */
.hero{position:relative;overflow:hidden;border-radius:20px;background:linear-gradient(135deg,#1E274F 0%,#283267 46%,#0A4FD1 130%);color:#fff;padding:26px 26px 22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;box-shadow:0 18px 40px rgba(30,39,79,.18)}
.hero::before{content:"";position:absolute;right:-90px;top:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(92,169,255,.35),transparent 65%);pointer-events:none}
.hero>*{position:relative}
.hero .eyebrow{color:rgba(255,255,255,.7);display:flex;align-items:center;gap:8px}
.hero .eyebrow svg{width:16px;height:16px;color:var(--sz-ice)}
.hero h1{font-size:clamp(24px,3.4vw,34px);line-height:1.12;margin:8px 0 6px;letter-spacing:-.02em}
.hero p.l{color:rgba(255,255,255,.82);max-width:56ch;font-size:15px}
.hero .acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.hero .btn{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff}
.hero .btn:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.5)}
.hero .btn.go{background:#fff;color:var(--sz-primary);border-color:#fff;font-weight:700}
.hero .btn.go:hover{background:var(--sz-primary-soft)}
.ringbox{position:relative;width:148px;height:148px;flex:none}
.ringbox svg{width:100%;height:100%;transform:rotate(-90deg)}
.ringbox .c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ringbox .c b{font:800 34px/1 var(--sz-font-display);font-variant-numeric:tabular-nums}
.ringbox .c small{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;opacity:.75;margin-top:4px;max-width:96px;line-height:1.25}

/* search */
.search{position:relative;display:flex;gap:8px;align-items:center}
.search input{flex:1;min-width:0;height:52px;border:1px solid var(--sz-line);background:var(--sz-white);border-radius:14px;padding:0 16px 0 46px;font-size:16px;box-shadow:var(--sz-shadow-xs)}
.search input:focus{outline:none;border-color:var(--sz-primary);box-shadow:0 0 0 4px var(--sz-primary-soft)}
.search .lens{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--sz-muted);pointer-events:none}
.search .cam{width:52px;height:52px;border-radius:14px;background:var(--sz-primary);color:#fff;display:grid;place-items:center;flex:none}
.search .cam svg{width:22px;height:22px}
.hero .search input{border-color:transparent;box-shadow:none}
.hero .search .cam{background:#fff;color:var(--sz-primary)}

/* kpis */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.kpi{position:relative;padding:16px 18px;text-align:left;width:100%}
.kpi b{display:block;font:800 30px/1.1 var(--sz-font-display);margin-top:4px;font-variant-numeric:tabular-nums}
.kpi small{color:var(--sz-muted)}
.kpi .eyebrow{padding-right:40px;display:block}
.kpi .ic{position:absolute;right:14px;top:14px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--sz-primary-soft);color:var(--sz-primary)}
.kpi .ic svg{width:18px;height:18px}
.kpi .ic.g{background:var(--sz-good-soft);color:var(--sz-good)}
.kpi .ic.w{background:var(--sz-warn-soft);color:var(--sz-warn)}
button.kpi:hover{border-color:#D9DCE6}

/* lists of rows, never sideways tables */
.list{display:flex;flex-direction:column}
.item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--sz-line);text-align:left;width:100%;min-height:60px;text-decoration:none;color:inherit}
.item:last-child{border-bottom:0}
button.item:hover,a.item:hover{background:var(--sz-line-2)}
.item .ic{width:40px;height:40px;border-radius:10px;background:var(--sz-primary-soft);color:var(--sz-primary);display:grid;place-items:center;flex:none;overflow:hidden}
.item .ic svg{width:20px;height:20px}
.item .ic img{width:100%;height:100%;object-fit:cover}
.item .ic.w{background:var(--sz-warn-soft);color:var(--sz-warn)}
.item .ic.g{background:var(--sz-good-soft);color:var(--sz-good)}
.item .t{flex:1;min-width:0}
.item .t b{display:block;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .t span{display:block;font-size:12.5px;color:var(--sz-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none;text-align:right}
.item .r b{font:800 18px/1 var(--sz-font-display);font-variant-numeric:tabular-nums}
.item .r small{font-size:11px;color:var(--sz-muted)}
.item .chev{width:18px;height:18px;color:var(--sz-muted-2);flex:none}
.empty{padding:32px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.empty .ei{width:56px;height:56px;border-radius:14px;background:var(--sz-line-2);color:var(--sz-muted);display:grid;place-items:center}
.empty .ei svg{width:26px;height:26px}
.empty h3{font-size:17px}
.empty p{color:var(--sz-muted);font-size:14px;max-width:44ch}

/* chips */
.chips{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px;margin:-2px}
.chips::-webkit-scrollbar{display:none}
.chips.wrap{flex-wrap:wrap;overflow:visible}
.chip{flex:none;border:1px solid var(--sz-line);background:var(--sz-white);border-radius:999px;padding:7px 14px;font-weight:600;font-size:13px;min-height:38px;display:inline-flex;align-items:center;gap:6px;color:var(--sz-ink-2)}
.chip[aria-pressed="true"]{border-color:var(--sz-primary);background:var(--sz-primary-soft);color:var(--sz-primary)}
.chip .n{font-size:11px;color:var(--sz-muted);font-variant-numeric:tabular-nums}
.chip[aria-pressed="true"] .n{color:var(--sz-primary)}

/* cards grid (shops, types) */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.tile{display:flex;flex-direction:column;gap:10px;text-align:left;background:var(--sz-white);border:1px solid var(--sz-line);border-radius:16px;padding:16px;box-shadow:var(--sz-shadow-xs);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;width:100%;color:inherit;text-decoration:none}
.tile:hover{transform:translateY(-2px);box-shadow:var(--sz-shadow);border-color:#D9DCE6}
.tile:active{transform:scale(.99)}
.tile .top{display:flex;align-items:center;gap:12px}
.tile .top .ic{width:40px;height:40px;border-radius:12px;background:var(--sz-primary-soft);color:var(--sz-primary);display:grid;place-items:center;flex:none}
.tile .top .ic svg{width:20px;height:20px}
.tile .top b{font:800 17px/1.2 var(--sz-font-display)}
.tile .top span{display:block;font-size:12.5px;color:var(--sz-muted)}
.tile .meta{display:flex;gap:6px;flex-wrap:wrap}
.tile.navy{background:linear-gradient(135deg,var(--sz-navy),#3A4683);color:#fff;border-color:transparent}
.tile.navy .top .ic{background:rgba(255,255,255,.12);color:#fff}
.tile.navy .top span{color:rgba(255,255,255,.75)}

/* detail */
.dgrid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}
.facts{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:14px}
.facts dt{color:var(--sz-muted)}
.facts dd{font-weight:600;word-break:break-word}
.photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:var(--sz-line-2);display:block}
.where{display:flex;flex-direction:column;gap:8px}
.spot{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--sz-line);border-radius:12px;text-align:left;width:100%;min-height:56px}
.spot:hover{border-color:var(--sz-primary)}
.spot .t{flex:1;min-width:0}
.spot .t b{display:block;font-size:14px}
.spot .t span{font-size:12px;color:var(--sz-muted)}
.spot .q{font:800 20px/1 var(--sz-font-display);font-variant-numeric:tabular-nums}
.spot .q small{display:block;font:600 10px/1.2 var(--sz-font-body);color:var(--sz-muted);text-align:right;text-transform:uppercase;letter-spacing:.06em}

/* segmented action switcher */
.seg{display:inline-flex;border:1px solid var(--sz-line);border-radius:12px;overflow:hidden;background:var(--sz-white);width:100%}
.seg button{flex:1;padding:10px 12px;font-size:14px;font-weight:600;min-height:44px;color:var(--sz-muted)}
.seg button+button{border-left:1px solid var(--sz-line)}
.seg button[aria-pressed="true"]{background:var(--sz-primary-soft);color:var(--sz-primary)}

/* forms */
.sec{padding:20px;display:flex;flex-direction:column;gap:14px}
.sec h3{font-size:16px;display:flex;gap:10px;align-items:center}
.sec h3 .ix{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--sz-primary-soft);color:var(--sz-primary);font-size:12px}
.sec .intro{margin-top:-6px;color:var(--sz-muted);font-size:13px}
.fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.fld label{font-weight:600;font-size:13px;color:var(--sz-ink-2)}
.fld .opt{font-weight:400;color:var(--sz-muted)}
.fld .hint{font-size:12px;color:var(--sz-muted)}
.fld input[type=text],.fld input[type=number],.fld input[type=search],.fld textarea,.fld select{border:1px solid var(--sz-line);background:var(--sz-bg);border-radius:var(--sz-radius-sm);padding:10px 12px;width:100%;font-size:16px;min-height:44px}
.fld textarea{min-height:76px;resize:vertical}
.fld input:focus,.fld textarea:focus,.fld select:focus{outline:none;border-color:var(--sz-primary);background:var(--sz-white);box-shadow:0 0 0 4px var(--sz-primary-soft)}
.fld.err input,.fld.err select{border-color:var(--sz-bad)}
.fld .msg{font-size:12px;color:var(--sz-bad)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.savebar{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:5;display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding:12px 16px;background:var(--sz-white);border:1px solid var(--sz-line);border-radius:var(--sz-radius);box-shadow:0 -8px 24px rgba(15,18,28,.06)}
.savebar .grow{font-size:13px;color:var(--sz-muted)}
.stepper{display:inline-flex;align-items:center;border:1px solid var(--sz-line);border-radius:12px;overflow:hidden;background:var(--sz-white);flex:none}
.stepper button{width:44px;height:44px;display:grid;place-items:center;color:var(--sz-primary);font-size:22px;font-weight:700}
.stepper button:active{background:var(--sz-primary-soft)}
.stepper input{width:64px;height:44px;border:0;border-left:1px solid var(--sz-line);border-right:1px solid var(--sz-line);text-align:center;font:800 18px/1 var(--sz-font-display);font-variant-numeric:tabular-nums;background:transparent;-moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.stepper input:focus{outline:none;background:var(--sz-primary-soft)}
.photopick{display:flex;gap:12px;align-items:center}
.photopick .pv{width:96px;height:72px;border-radius:10px;background:var(--sz-line-2);object-fit:cover;flex:none;display:grid;place-items:center;color:var(--sz-muted-2)}
.photopick .pv svg{width:24px;height:24px}
.photopick input{display:none}

/* map */
.mapwrap{position:relative;border-radius:16px;overflow:hidden;background:var(--sz-line-2);border:1px solid var(--sz-line);touch-action:manipulation}
.mapwrap img{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.mapwrap.placing{cursor:crosshair;outline:3px solid var(--sz-primary);outline-offset:-3px}
.pin{position:absolute;transform:translate(-50%,-50%);min-width:38px;height:38px;padding:0 8px;border-radius:12px;background:var(--sz-primary);color:#fff;font:800 16px/1 var(--sz-font-display);display:grid;place-items:center;box-shadow:0 6px 16px rgba(10,79,209,.35);border:2px solid #fff;z-index:2}
.pin.dim{background:var(--sz-navy);opacity:.82;box-shadow:0 3px 10px rgba(30,39,79,.3)}
.pin.hit{background:var(--sz-primary);opacity:1;z-index:3}
.pin.hit::after{content:"";position:absolute;inset:-8px;border-radius:16px;border:3px solid var(--sz-primary);opacity:.45}
.pin.drag{cursor:grab;touch-action:none}
.nomap{aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:24px;color:var(--sz-muted)}
.shelves{display:flex;flex-direction:column;gap:10px}
.shelf{border:1px solid var(--sz-line);border-radius:12px;overflow:hidden}
.shelf>.hd{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--sz-line-2)}
.shelf>.hd b{font-size:14px}
.shelf>.hd .cnt{margin-left:auto;font-size:12px;color:var(--sz-muted)}
.shelf.hit{border-color:var(--sz-primary);box-shadow:0 0 0 3px var(--sz-primary-soft)}
.shelf.hit>.hd{background:var(--sz-primary-soft)}
.shelf .item{min-height:52px;padding:10px 12px}

/* scan */
.scanbox{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:28px 20px}
.scanbox .big{width:84px;height:84px;border-radius:24px;background:var(--sz-primary-soft);color:var(--sz-primary);display:grid;place-items:center}
.scanbox .big svg{width:40px;height:40px}
.scanbox input{display:none}
.shot{width:100%;max-height:260px;object-fit:contain;border-radius:12px;background:var(--sz-line-2)}
.progress{height:6px;background:var(--sz-line-2);border-radius:3px;overflow:hidden;width:100%}
.progress i{display:block;height:100%;width:0;background:var(--sz-primary);transition:width .2s ease}

/* stock take */
.tline{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--sz-line)}
.tline:last-child{border-bottom:0}
.tline .t{flex:1;min-width:0}
.tline .t b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tline .t span{font-size:12px;color:var(--sz-muted)}
.tline.done .t b::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--sz-good);margin-left:8px;vertical-align:middle}
.tline .diff{font-size:12px;font-weight:700;min-width:44px;text-align:right;font-variant-numeric:tabular-nums}
.tline .diff.up{color:var(--sz-good)}
.tline .diff.down{color:var(--sz-warn)}
.bar{height:6px;background:var(--sz-line-2);border-radius:3px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--sz-primary)}
.bar.good i{background:var(--sz-good)}

/* activity */
.act .ic.in{background:var(--sz-good-soft);color:var(--sz-good)}
.act .ic.out{background:var(--sz-warn-soft);color:var(--sz-warn)}

/* toast */
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--sz-ink);color:#fff;padding:10px 16px;border-radius:var(--sz-radius-sm);font-weight:600;z-index:90;box-shadow:var(--sz-shadow);max-width:calc(100% - 32px);text-align:center;font-size:14px}
.toast.bad{background:var(--sz-bad)}

@media (max-width:900px){
  .dgrid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .topbar{padding-bottom:10px}
  .topbar-in{padding-bottom:0}
  .topbar .who small,.topbar .who span{display:none}
  .topbar .who{max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tabs{position:fixed;left:0;right:0;bottom:0;z-index:60;max-width:none;background:rgba(255,255,255,.96);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);border-top:1px solid var(--sz-line);box-shadow:0 -6px 24px rgba(15,18,28,.06);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(5,1fr);gap:2px;overflow:visible}
  .tabs .ink{display:none}
  .tabs button.desk{display:none}
  .tabs button{flex-direction:column;gap:3px;padding:6px 2px;font-size:10.5px;min-height:52px;border:0!important;border-radius:12px;color:var(--sz-muted)}
  .tabs button svg{width:22px;height:22px}
  .tabs button .l{display:none}
  .tabs button .s{display:block}
  .tabs button[aria-selected="true"]{color:var(--sz-primary);background:var(--sz-primary-soft)}
  .tabs button.scan .dot2{width:44px;height:44px;margin-top:-22px;border-radius:50%;background:var(--sz-primary);color:#fff;display:grid;place-items:center;box-shadow:0 8px 18px rgba(10,79,209,.35);border:3px solid #fff}
  .tabs button.scan .dot2 svg{width:22px;height:22px}
  .tabs button.scan[aria-selected="true"]{background:none;color:var(--sz-primary)}
  main{padding:16px 12px calc(110px + env(safe-area-inset-bottom,0px))}
  .savebar{bottom:calc(84px + env(safe-area-inset-bottom,0px));padding:10px 12px;flex-direction:column-reverse;align-items:stretch}
  .savebar .btn{width:100%}
  .toast{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .hero{grid-template-columns:1fr;padding:22px 18px 18px;border-radius:18px}
  .hero .ringwrap{position:absolute;right:14px;top:16px}
  .ringbox{width:84px;height:84px}
  .ringbox .c b{font-size:20px}
  .ringbox .c small{display:none}
  .hero h1{padding-right:92px}
  .hero .acts .btn{flex:1;padding:10px;white-space:nowrap}
  .two,.three{grid-template-columns:1fr}
  .kpi b{font-size:26px}
  .vhead>.btn{width:100%}
  .item{padding:12px 14px}
  .pad,.sec{padding:16px}
  .tline .stepper button{width:40px}
  .tline .stepper input{width:52px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.stepper button svg{width:18px;height:18px}
/* grid children never grow past the screen */
.hero>*,.dgrid>*,.two>*,.three>*,.grid>*,.kpis>*{min-width:0}
.fld .stepper{align-self:flex-start}
@media (max-width:900px){.dgrid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero p.l{padding-right:84px}
  .two,.three{grid-template-columns:minmax(0,1fr)}
}
.fld .stepper input[type=number]{width:64px;min-height:44px;padding:0;border:0;border-left:1px solid var(--sz-line);border-right:1px solid var(--sz-line);border-radius:0;background:transparent;font:800 18px/1 var(--sz-font-display)}
.fld .stepper input[type=number]:focus{box-shadow:none;background:var(--sz-primary-soft)}
@media (max-width:640px){.savebar .grow{display:none}}
