/* Терминал упаковки — Apple Human Interface Guidelines, светлая тема.
   Цвета — системные (systemBlue/Green/Orange/Red, systemGroupedBackground, label/secondaryLabel, separator),
   текстовые стили — шкала HIG (Large Title 34, Title 1 28, Title 3 20, Headline/Body 17, Subheadline 15,
   Footnote 13), цели касания от 44 pt, списки — inset grouped, навигационная панель с «назад» слева.
   Адаптивно (Р19): телефон/ТСД — одна колонка; планшет и терминал 10" — скан слева, позиции справа. */
:root{
  --bg:#f2f2f7;--card:#fff;--label:#000;--label2:rgba(60,60,67,.6);--label3:rgba(60,60,67,.3);
  --sep:rgba(60,60,67,.29);--fill:rgba(118,118,128,.12);--fill2:rgba(118,118,128,.24);--nav:rgba(249,249,249,.94);
  --blue:#007aff;--green:#34c759;--orange:#ff9500;--red:#ff3b30;--r:10px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--label);font-size:17px;line-height:22px;letter-spacing:-.022em;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Noto Sans SC","Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;transition:background-color .15s}
button{font:inherit;letter-spacing:inherit;color:inherit;cursor:pointer}
svg.i{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* навигационная панель */
.navbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:1fr minmax(0,auto) 1fr;align-items:center;
  min-height:44px;padding:env(safe-area-inset-top) 8px 0;background:var(--nav);border-bottom:.5px solid var(--sep);
  backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px)}
.nb-side{display:flex;align-items:center;gap:4px;min-width:0}
.nb-end{justify-content:flex-end}
.nb-title{min-width:0;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
.nb-btn{white-space:nowrap;display:inline-flex;align-items:center;gap:2px;min-height:44px;min-width:44px;padding:0 8px;border:0;
  background:none;color:var(--blue)}
.nb-btn:active{opacity:.4}
/* сегментированный контрол */
.seg{display:inline-flex;padding:2px;border-radius:9px;background:var(--fill)}
.seg button{white-space:nowrap;min-height:28px;min-width:44px;padding:0 10px;border:0;border-radius:7px;background:none;font-size:13px;
  font-weight:500;color:var(--label)}
.seg button.on{background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04);font-weight:600}

/* экраны и текстовые стили */
.screen{max-width:700px;margin:0 auto;padding:0 16px 32px}
.large{font-size:34px;line-height:41px;font-weight:700;letter-spacing:.011em;margin:12px 4px 12px}
.sec-h{font-size:13px;line-height:18px;font-weight:400;text-transform:uppercase;color:var(--label2);margin:24px 16px 7px}
.foot{font-size:13px;line-height:18px;color:var(--label2);margin:7px 16px 0}
.sub{font-size:15px;line-height:20px;color:var(--label2)}
.mono{font-family:ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:0}

/* inset grouped */
.group{background:var(--card);border-radius:var(--r);overflow:hidden}
.group.gap{margin-top:20px}
.field{display:block;width:100%;min-height:44px;padding:11px 16px;border:0;outline:0;background:none;font:inherit;
  letter-spacing:inherit;color:var(--label)}
.field::placeholder{color:var(--label3)}
.field.big{font-size:20px;min-height:56px}
.group:focus-within{box-shadow:0 0 0 2px var(--blue)}
.list>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;
  padding:11px 16px;border:0;background:none;text-align:left;position:relative}
.list>button+button::before{content:"";position:absolute;top:0;left:16px;right:0;border-top:.5px solid var(--sep)}
.list>button:active{background:#d1d1d6}
.list .t{display:block}
.list small{display:block;font-size:15px;line-height:20px;color:var(--label2);margin-top:1px}
.chev{width:17px;height:17px;color:var(--label3);stroke-width:2.5}

/* кнопки */
.filled{display:block;width:100%;min-height:50px;margin:20px 0 0;border:0;border-radius:12px;background:var(--blue);
  color:#fff;font-weight:600}
.filled:active,.tinted:active{opacity:.7}
.tinted{min-height:50px;padding:6px 8px;border:0;border-radius:12px;background:rgba(0,122,255,.15);color:var(--blue);
  font-weight:600;font-size:17px}
.tinted:disabled{background:var(--fill);color:var(--label3);cursor:default}
.btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}

/* экран укладки */
.msg{display:flex;align-items:center;gap:10px;margin:16px 0 12px;padding:14px 16px;border-radius:var(--r);
  min-height:60px;background:var(--card);font-size:20px;line-height:25px;font-weight:600}
.msg svg.i{width:28px;height:28px}
.msg.ok{background:var(--green);color:#fff}
.msg.warn{background:var(--orange);color:#fff}
.msg.err{background:var(--red);color:#fff}
.pack{padding:12px 16px;margin-bottom:12px;text-align:center}
.count{font-size:64px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.pack .foot{margin:2px 0 0}
#lines>div{display:flex;justify-content:space-between;gap:12px;min-height:44px;padding:11px 16px;position:relative}
#lines>div+div::before{content:"";position:absolute;top:0;left:16px;right:0;border-top:.5px solid var(--sep)}
#lines b{font-weight:400;color:var(--label2);font-variant-numeric:tabular-nums;white-space:nowrap}
body.flash-err{background:var(--red)}
.miss{margin-top:12px;max-height:50vh;overflow:auto}
.miss>div,.miss>button{display:flex;gap:12px;padding:11px 16px;position:relative;font-size:15px}
.miss>button{width:100%;min-height:44px;border:0;background:none;text-align:left}
.miss>button:active{background:#d1d1d6}
.miss>*+*::before{content:"";position:absolute;top:0;left:16px;right:0;border-top:.5px solid var(--sep)}
.miss b{min-width:4.5em;font-weight:400;color:var(--label2)}
.miss .art{font-weight:600;font-size:13px;text-transform:uppercase;color:var(--label2)}
.work{display:block}

@media (min-width:768px){
  .screen{max-width:1280px;padding:0 24px 32px}
  #s-enroll,#s-login{max-width:620px}
  .work{display:grid;grid-template-columns:minmax(0,3fr) minmax(300px,2fr);gap:24px;align-items:start}
  .work-side{padding-top:4px}
  .count{font-size:96px}
  .msg{font-size:22px;line-height:28px;min-height:76px}
  .btns{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:768px) and (max-height:520px){.count{font-size:64px}.msg{min-height:56px}}
@media (min-width:1200px){.count{font-size:120px}}
#modes{display:flex}
#modes button{flex:1;min-height:36px;font-size:15px}
.field.hint{color:var(--label3)}
/* лист нормы: колёса чисел со снапом, как в будильнике */
.sheet-bg{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.3)}
.sheet-bg[hidden]{display:none}
.sheet{width:100%;max-width:560px;background:var(--bg,#f2f2f7);border-radius:14px 14px 0 0;padding:8px 16px 20px}
.sheet-bar{display:flex;align-items:center;justify-content:space-between;min-height:44px}
.nb-btn.strong{font-weight:600}
.wheels{display:flex;gap:16px;margin:8px 0}
.wheel-col{flex:1;text-align:center}
.wheel-h{font-size:13px;color:var(--label2);margin-bottom:6px}
.wheel{position:relative;height:220px;overflow-y:auto;scroll-snap-type:y mandatory;background:var(--card);border-radius:12px;
  scrollbar-width:none;outline:0;
  background-image:linear-gradient(var(--fill),var(--fill));background-size:100% 44px;background-position:0 88px;background-repeat:no-repeat;background-attachment:local}
.wheel::-webkit-scrollbar{display:none}
.wheel div{height:44px;line-height:44px;scroll-snap-align:center;font-size:22px;color:var(--label3)}
.wheel div.on{color:var(--label);font-weight:600}
.wheel .pad{scroll-snap-align:none}
#lines button{display:flex;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:11px 16px;border:0;background:none;text-align:left;font:inherit;position:relative}
#lines button:active{background:#d1d1d6}
#lines button small{display:block;color:var(--label2);font-size:13px}
#lines button small.need{color:#c93400}
