  /* Дизайн v2 (26.09.2026): тёплая «рисовая бумага», лосось как акцент, цвет у каждой зоны.
     Анимации — короткие ease-out (150–250 мс), только transform/opacity; ввод цифр без анимаций. */
  :root { --bg:#f6f1ea; --card:#fffdf9; --ink:#221c17; --muted:#7a6f66; --line:#eadfd3;
          --accent:#f0643c; --accent-press:#d9532e; --warn:#b42318; --warnbg:#fde4df; --okbg:#e3f4ea;
          --ease-out:cubic-bezier(.23,1,.32,1); --ease-drawer:cubic-bezier(.32,.72,0,1); }
  * { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  body { margin:0; font-family:'Onest', Arial, sans-serif; background:var(--bg); color:var(--ink); font-size:20px; }
  button { font-family:inherit; }

  header { position:sticky; top:0; z-index:5; background:var(--bg); /* без backdrop-filter: размытие пересчитывалось на каждый кадр прокрутки */
           display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding:12px 18px; }
  header h1 { font-size:26px; font-weight:800; margin:0 8px 0 0; letter-spacing:-.02em; }
  .tabs { display:inline-flex; flex-wrap:wrap; background:#ece3d8; border-radius:14px; padding:4px; }
  .tab { border:0; background:transparent; border-radius:10px; padding:10px 22px; font-size:19px; font-weight:600; color:var(--muted); cursor:pointer; white-space:nowrap;
         transition:background-color .2s var(--ease-out), color .2s var(--ease-out); }
  .tab.active { background:var(--card); color:var(--ink); box-shadow:0 1px 3px rgba(60,40,20,.12); }
  a.tab { text-decoration:none; display:inline-flex; align-items:center; }
  .grow { flex:1; }
  .progress { color:var(--muted); font-size:17px; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .pbar { position:absolute; left:0; right:0; bottom:0; height:4px; background:#ece3d8; }
  .pbar i { display:block; height:100%; width:100%; background:var(--accent); transform-origin:left; transform:scaleX(0);
            transition:transform .3s var(--ease-out); }

  main { padding:14px 16px 120px; max-width:820px; margin:0 auto; }
  .note { color:var(--muted); font-size:17px; margin:4px 4px 14px; }
  .banner { background:#fff1c9; border-radius:14px; padding:12px 16px; margin-bottom:14px; font-weight:600; }

  .zone { background:var(--card); border-radius:18px; margin-bottom:18px; box-shadow:0 1px 2px rgba(60,40,20,.06), 0 0 0 1px var(--line);
          --zc:var(--accent); --zbg:#fde6dc; }
  .zone h2 { font-size:21px; font-weight:700; margin:0; padding:14px 18px; background:var(--zbg); border-radius:18px 18px 0 0;
             position:sticky; top:70px; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .zn { display:flex; align-items:center; gap:10px; }
  .dot { width:14px; height:14px; border-radius:50%; background:var(--zc); flex:none; }
  .zcount { font-size:17px; font-weight:700; color:var(--zc); background:var(--card); border-radius:999px; padding:4px 12px;
            font-variant-numeric:tabular-nums; white-space:nowrap; transition:transform .2s var(--ease-out); }
  .zone.done .zcount { background:var(--zc); color:#fff; }
  .rows { display:block; }
  .row { display:flex; align-items:center; gap:14px; padding:10px 18px; border-top:1px solid var(--line); cursor:pointer; }
  .row .nm { flex:1; font-size:22px; font-weight:500; line-height:1.25; }
  .row .hint { display:block; font-size:16px; font-weight:500; color:var(--muted); margin-top:2px; }
  .row input { width:140px; font-family:inherit; font-size:30px; font-weight:600; font-variant-numeric:tabular-nums; padding:10px 14px;
               border:2px solid var(--line); border-radius:14px; text-align:right; background:#fff; color:var(--ink);
               caret-color:transparent; cursor:pointer; outline:none;
               transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
  .row.filled input { background:var(--zbg); border-color:transparent; }
  .row input.active { border-color:var(--accent); background:#fff; box-shadow:0 0 0 5px rgba(240,100,60,.18); }

  .bar { position:fixed; left:0; right:0; bottom:0; z-index:6; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
         display:flex; gap:12px; justify-content:flex-end; background:linear-gradient(to top, var(--bg) 70%, rgba(246,241,234,0)); }
  .btn { font-size:20px; font-weight:600; padding:16px 24px; border-radius:16px; border:0; background:var(--card); color:var(--ink);
         box-shadow:0 0 0 1px var(--line), 0 1px 2px rgba(60,40,20,.06); cursor:pointer; transition:transform .12s var(--ease-out); }
  .btn:active, .tab:active, .seg button:active { transform:scale(.97); }
  .btn.primary { background:var(--accent); color:#fff; font-weight:700; box-shadow:0 4px 14px rgba(240,100,60,.35); }
  .btn.primary:active { background:var(--accent-press); }
  .btn:disabled { opacity:.5; }
  .seg { display:inline-flex; background:#ece3d8; border-radius:14px; padding:4px; margin-bottom:12px; }
  .seg button { font-size:19px; font-weight:600; padding:10px 20px; border:0; border-radius:10px; background:transparent; color:var(--muted); cursor:pointer;
                transition:background-color .2s var(--ease-out), color .2s var(--ease-out), transform .12s var(--ease-out); }
  .seg button.active { background:var(--card); color:var(--ink); box-shadow:0 1px 3px rgba(60,40,20,.12); }

  /* Своя клавиатура: выезжает снизу (drawer-кривая), кнопки без анимаций, кроме нажатия */
  #pad { position:fixed; left:0; right:0; bottom:0; z-index:8; background:#efe6db; border-radius:22px 22px 0 0;
         box-shadow:0 -8px 30px rgba(60,40,20,.14); padding:10px 16px calc(14px + env(safe-area-inset-bottom));
         transform:translateY(105%); transition:transform .3s var(--ease-drawer); }
  #pad.open { transform:translateY(0); }
  #pad .grip { width:48px; height:5px; border-radius:3px; background:#d5c8b9; margin:0 auto 10px; }
  #pad .keys { max-width:560px; margin:0 auto; display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
  #pad button { font-size:32px; font-weight:600; height:68px; border-radius:14px; border:0; background:var(--card); color:var(--ink);
                box-shadow:0 1px 0 rgba(60,40,20,.12); touch-action:manipulation; user-select:none; -webkit-user-select:none; cursor:pointer;
                transition:transform .1s var(--ease-out); }
  #pad button:active { transform:scale(.95); background:#f3ece4; }
  #pad .fn { background:#e2d7ca; font-size:26px; }
  #pad .hide { font-size:19px; font-weight:700; color:var(--muted); }
  #pad .enter { grid-row:span 2; background:var(--accent); color:#fff; font-size:24px; font-weight:700; }
  #pad .enter:active { background:var(--accent-press); }
  body.padopen main { padding-bottom:400px; }

  #overlay, #modal { position:fixed; inset:0; background:rgba(34,28,23,.4); display:none; align-items:center; justify-content:center; z-index:20; }
  #overlay[style*="flex"], #modal[style*="flex"] { animation:fade .2s var(--ease-out); }
  #overlay .spin { background:var(--card); padding:20px 28px; border-radius:18px; font-size:20px; font-weight:600; display:flex; gap:14px; align-items:center; }
  #overlay .spin::before { content:''; width:22px; height:22px; border-radius:50%; border:3px solid #f3d3c7; border-top-color:var(--accent);
                           animation:spin .8s linear infinite; }
  .dlg { background:var(--card); border-radius:22px; width:min(640px, 94vw); max-height:88vh; overflow:auto; padding:22px 24px;
         box-shadow:0 20px 60px rgba(34,28,23,.25); animation:pop .22s var(--ease-out); }
  .dlg h3 { margin:0 0 12px; font-size:24px; font-weight:800; }
  .dlg table { border-collapse:collapse; width:100%; font-size:20px; }
  .dlg td { padding:10px 6px; border-bottom:1px solid var(--line); }
  .dlg td.q { text-align:right; font-size:22px; font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .warnbox { background:var(--warnbg); color:#6b1414; padding:12px 14px; border-radius:12px; margin-bottom:12px; }
  .okbox { background:var(--okbg); color:#0f4d22; padding:12px 14px; border-radius:12px; margin-bottom:12px; white-space:pre-wrap; }
  .dlg .actions { display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
  /* Окно проверки: плашки поставщиков и правка заявки (19.10.2026) */
  .pcard { border:2px solid var(--line); border-radius:16px; padding:12px 14px; margin:0 0 10px; cursor:pointer; }
  .pcard:active { transform:scale(.99); }
  .pcard.bad { background:var(--warnbg); border-color:#f3c2b8; }
  .pcard.good { background:var(--okbg); border-color:#b9e0c8; }
  .pcard .pname { font-weight:800; font-size:21px; display:flex; justify-content:space-between; }
  .pcard .pname span { color:var(--muted); }
  .pcard .pline { font-size:18px; margin-top:4px; }
  .dlg table.ed td { padding:8px 4px; }
  .dlg table.ed tr.zero td { color:var(--muted); }
  .dlg table.ed td.pm { white-space:nowrap; width:1%; }
  .dlg table.ed td.pm button { font-family:inherit; font-size:24px; font-weight:700; width:52px; height:48px; margin-left:6px; border:0; border-radius:12px; background:#ece3d8; color:var(--ink); }
  .dlg table.ed td.pm button:active { background:#dfd3c4; }

  /* Инвента: крутилка тары как будильник iPhone — scroll-snap + наклон цифр по мере удаления от центра */
  .seg .ok { color:#2f9e6a; }
  .invfile { color:var(--muted); font-size:17px; margin:0 4px 12px; }
  /* 05.10.2026: крутилка облегчена для планшета — без 3D, масок и смешивания слоёв (раньше браузер держал
     отдельный слой на каждую цифру каждой крутилки, страница тормозила). Затухание — одной накладкой. */
  .wbox { position:relative; flex:none; display:flex; flex-direction:column; align-items:center; gap:2px; }
  .wbox::before { content:''; position:absolute; left:0; right:0; bottom:0; height:108px; border-radius:14px; background:#fff; box-shadow:0 0 0 2px var(--line); }
  .wbox::after { content:''; position:absolute; left:0; right:0; bottom:0; height:108px; border-radius:14px; pointer-events:none; z-index:3;
                 background:linear-gradient(#fff 4%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 66%, #fff 96%); }
  .wcap { font-size:13px; font-weight:600; color:var(--muted); text-transform:lowercase; }
  .wheel { position:relative; z-index:2; width:78px; height:108px; overflow-y:scroll; scroll-snap-type:y mandatory; overscroll-behavior:contain;
           scrollbar-width:none; border-radius:14px; touch-action:pan-y; }
  .wheel::-webkit-scrollbar { display:none; }
  .wheel .wl { padding:36px 0; }
  .wheel .wi { height:36px; line-height:36px; text-align:center; scroll-snap-align:center; font-size:26px; font-weight:700;
               font-variant-numeric:tabular-nums; color:var(--ink); }
  .wband { position:absolute; left:4px; right:4px; bottom:36px; height:36px; border-radius:10px; background:var(--zbg);
           pointer-events:none; z-index:1; }

  /* Овощи: окно «Купить овощи» — компактные строки и кнопки магазинов */
  .vgh { font-size:14px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; margin:12px 0 2px; color:var(--muted); }
  .dlg table.vl { font-size:17px; }
  .dlg table.vl td { padding:4px 4px; }
  .dlg table.vl td.q { font-size:18px; }
  .dlg td.sh { white-space:nowrap; text-align:right; width:1%; }
  .shop { font-family:inherit; font-size:13px; font-weight:700; padding:7px 8px; margin-left:4px; border-radius:8px; border:1.5px solid var(--sc);
          background:#fff; color:var(--sc); cursor:pointer; transition:transform .1s var(--ease-out); }
  .shop:active { transform:scale(.95); }
  .shop.on { background:var(--sc); color:#fff; }

  @keyframes fade { from { opacity:0; } }
  @keyframes flashrow { from { background-color:#ffe2a8; } }
  .row.flash { animation:flashrow 1.2s var(--ease-out); }
  @keyframes pop { from { opacity:0; transform:scale(.96) translateY(8px); } }
  @keyframes spin { to { transform:rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before { animation:none !important; transition:none !important; }
  }

  /* ---- kitchen.rollingrolls.ru: оболочка кухни (вход, выбор точки, настройки) ---- */
  [hidden] { display:none !important; }
  .klogin { max-width:420px; margin:12vh auto 0; background:var(--card); border-radius:22px; padding:26px 28px; box-shadow:0 0 0 1px var(--line), 0 8px 30px rgba(60,40,20,.08);
            display:flex; flex-direction:column; gap:14px; }
  .klogin h1 { margin:0 0 4px; font-size:28px; font-weight:800; }
  .klogin label { display:flex; flex-direction:column; gap:6px; font-size:17px; color:var(--muted); font-weight:600; }
  .klogin input { font:inherit; font-size:22px; color:var(--ink); padding:12px 14px; border-radius:14px; border:2px solid var(--line); background:#fff; }
  .klogin input:focus { outline:0; border-color:var(--accent); }
  .lerr { margin:0; color:var(--warn); font-size:17px; font-weight:600; }
  .kpick { position:relative; font:inherit; font-size:18px; font-weight:600; color:var(--ink); background:var(--card); border:0; border-radius:12px;
           padding:10px 40px 10px 16px; box-shadow:0 0 0 1px var(--line); cursor:pointer; max-width:340px; flex-shrink:0; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .kpick::after { content:''; position:absolute; right:16px; top:50%; width:8px; height:8px; margin-top:-7px; border:solid var(--muted); border-width:0 2px 2px 0; transform:rotate(45deg); }
  .kpick.kout { padding-right:16px; }
  .kpick.kout::after { display:none; }
  .kpw { font-family:ui-monospace, Menlo, Consolas, monospace; font-size:26px; font-weight:700; letter-spacing:.04em; padding:14px 18px; background:#fff;
         border-radius:14px; box-shadow:0 0 0 2px var(--accent); user-select:all; }
  .kpick.wide { width:100%; max-width:none; }
  .kpop { position:fixed; z-index:30; background:var(--card); border-radius:16px; box-shadow:0 0 0 1px var(--line), 0 12px 40px rgba(60,40,20,.18);
          padding:6px; max-height:60vh; overflow:auto; min-width:220px; }
  .kpop button { display:block; width:100%; text-align:left; font:inherit; font-size:19px; font-weight:500; color:var(--ink); background:transparent; border:0;
                 border-radius:10px; padding:12px 14px; cursor:pointer; }
  .kpop button:hover { background:#f6efe6; }
  .kpop button.on { background:var(--okbg); font-weight:700; }
  .kpop button.none { color:var(--muted); }
  .kset { padding-bottom:40px; }
  .kset .zone { padding:0 0 6px; }
  .kset .zone h2 { background:#efe6db; }
  .kset .kline { display:flex; align-items:center; gap:14px; padding:12px 18px; border-top:1px solid var(--line); font-size:19px; }
  .kset .kline .nm { flex:1; font-weight:600; }
  .kset .kline .kpick { min-width:280px; }
  .kset .kst { padding:10px 18px; font-size:17px; color:var(--muted); border-top:1px solid var(--line); white-space:pre-wrap; }
  .kset .kst.err { color:var(--warn); background:var(--warnbg); }
  .kset .kst.ok { color:#1f6f43; }
  .kset .kacts { display:flex; gap:10px; padding:12px 18px; border-top:1px solid var(--line); }
  .kset .kline .kacts { padding:0; border:0; }
  .kset .btn { padding:12px 20px; font-size:18px; box-shadow:0 0 0 1px var(--line); }
  .kset .btn.primary { box-shadow:0 4px 14px rgba(240,100,60,.25); }
  .kday { padding:10px 18px; border-top:1px solid var(--line); font-size:18px; }
  .kday b { font-weight:700; }
  .kday .same { color:#1f6f43; font-weight:700; }
  .kday .diff { color:var(--warn); font-weight:700; }
  .kday table { border-collapse:collapse; margin-top:6px; font-size:17px; }
  .kday td { padding:4px 14px 4px 0; border-bottom:1px solid var(--line); }
  .kday td.q { text-align:right; font-variant-numeric:tabular-nums; font-weight:600; }
  .test-note { background:#fdf1cc; color:#6b4e00; border-radius:14px; padding:12px 16px; margin:0 0 14px; font-size:17px; font-weight:600; }
  .kpre { white-space:pre-wrap; }
  .dlg .actions.kleft { justify-content:flex-start; margin:0 0 10px; }
  .kask { font-size:19px; color:var(--ink); }
  .kset .kst.warn { color:#6b4e00; background:#fdf1cc; }
  .rbcal { padding:12px 18px; border-top:1px solid var(--line); }
  .rbhead { display:flex; align-items:center; gap:12px; margin-bottom:10px; font-size:19px; }
  .rbhead b { min-width:180px; text-align:center; }
  .rbhead .btn { padding:6px 16px; }
  .rbleg { margin-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:15px; color:var(--muted); }
  .rbleg i { width:14px; height:14px; border-radius:4px; margin-left:14px; } .rbleg i:first-child { margin-left:0; }
  .rbgrid { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; }
  .rbgrid .wd { text-align:center; font-size:15px; color:var(--muted); }
  .rbd { height:58px; border-radius:12px; border:0; font:inherit; font-size:18px; font-weight:700; display:flex; flex-direction:column;
    align-items:center; justify-content:center; box-shadow:0 0 0 1px var(--line); background:var(--card); color:inherit; }
  .rbd small { font-size:13px; font-weight:600; }
  .rbd.none { color:#c9bcae; font-weight:500; box-shadow:none; }
  button.rbd { cursor:pointer; }
  .rbd.good, .rbleg .good { background:#dcf3e4; } .rbd.edge, .rbleg .edge { background:#fdf1cc; }
  .rbd.bad, .rbleg .bad { background:var(--warnbg); } .rbd.nogas, .rbleg .nogas { background:#eceae7; }
  .rbd.on { box-shadow:0 0 0 3px var(--zc, #f0643c); }
  .rbt tr:first-child td { color:var(--muted); font-weight:600; }
  .rbt tr.m-diff td, .rbt tr.m-missing td { color:var(--warn); } .rbt tr.m-edge td { color:#6b4e00; }
  .rbeng { font-size:19px; font-weight:700; }
  .rbchk { padding:8px 18px 10px; border-top:1px solid var(--line); font-size:17px; display:grid; grid-template-columns:1fr 1fr; gap:4px 24px; }
  .rbchk .ok b { color:#1f6f43; } .rbchk .no { color:var(--muted); } .rbchk .no b { color:var(--warn); } .rbchk i { color:var(--muted); font-style:normal; }

  /* Инвента: отделы, отметка «сохранён», список незаполненных */
  .seg .ok { color:#2f9e6a; }
  .invfile { color:var(--muted); font-size:17px; margin:0 4px 12px; }
  .invlist { display:flex; flex-direction:column; gap:6px; }
  .invgo { display:flex; justify-content:space-between; gap:12px; font-family:inherit; font-size:19px; text-align:left; padding:12px 14px;
           border:0; border-radius:12px; background:#f3ece4; color:var(--ink); cursor:pointer; }
  .invgo:active { transform:scale(.99); }
  #progress { cursor:pointer; }
