@import "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap";:root{--font:"Atkinson Hyperlegible", system-ui, sans-serif;--bg:#f4f6f3;--surface:#fff;--text:#17201b;--muted:#5a6660;--line:#dde3de;--line-strong:#c9d1cc;--accent:#1f4d3a;--accent-contrast:#fff;--accent-soft:#dceee3;--warn-bg:#fff1d6;--warn-text:#7a4a00;--danger-bg:#fbe3e0;--danger-text:#8a1f17;--ok-bg:#dceee3;--ok-text:#1f4d3a;--exp-red:#c62828;--exp-yellow:#e0a800;--exp-green:#2e8b57;--radius:14px;--radius-small:10px;--radius-pill:999px;--gap:14px;--page-pad:20px;--nav-height:72px;--tap:48px}@media (prefers-color-scheme:dark){:root{--bg:#101512;--surface:#19201c;--text:#e8ece9;--muted:#9aa5a0;--line:#2b332e;--line-strong:#3a443e;--accent:#6fbf97;--accent-contrast:#0c1410;--accent-soft:#223329;--warn-bg:#3a2d10;--warn-text:#f0c36d;--danger-bg:#3d1a17;--danger-text:#f2a39b;--ok-bg:#223329;--ok-text:#8fd2b0;--exp-red:#ef6b62;--exp-yellow:#f0c040;--exp-green:#5fc08c}}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font:16px/1.4 var(--font);margin:0}button,input,select{font:inherit;color:inherit}.shell{background:var(--bg);flex-direction:column;max-width:560px;min-height:100%;margin:0 auto;display:flex}.page{padding:24px var(--page-pad) calc(var(--nav-height) + 96px);gap:var(--gap);flex-direction:column;flex:1;display:flex}.page-title{margin:0;font-size:1.65rem;line-height:1.2}.page-sub{color:var(--muted);font-size:.9rem}.row{justify-content:space-between;align-items:center;gap:10px;display:flex}.stack{flex-direction:column;gap:10px;display:flex}.muted{color:var(--muted);font-size:.85rem}.section-label{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin-top:6px;font-size:.8rem;font-weight:700}.back{color:var(--accent);cursor:pointer;min-height:var(--tap);background:0 0;border:0;align-items:center;gap:6px;padding:8px 0;font-weight:700;display:inline-flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px}.card.pad-lg{padding:16px}.card-title{align-items:center;gap:8px;margin-bottom:8px;font-size:1.05rem;font-weight:700;display:flex}.item-card{text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:10px;width:100%;display:flex}.item-name{font-size:1.05rem;font-weight:700}.item-right{text-align:right;flex-direction:column;flex-shrink:0;align-items:flex-end;gap:4px;display:flex}.divider{background:var(--line);height:1px;margin:8px 0}.badge{white-space:nowrap;border-radius:8px;padding:2px 8px;font-size:.75rem;font-weight:700;display:inline-block}.badge.warn{background:var(--warn-bg);color:var(--warn-text)}.badge.danger{background:var(--danger-bg);color:var(--danger-text)}.badge.ok{background:var(--ok-bg);color:var(--ok-text)}.chips{gap:8px;padding-bottom:4px;display:flex;overflow-x:auto}.chip{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-pill);cursor:pointer;flex-shrink:0;min-height:44px;padding:10px 16px}.chip.active{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent);font-weight:700}.btn{min-height:var(--tap);border-radius:var(--radius-small);border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;padding:0 18px;font-weight:700}.btn.primary{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}.btn.small{min-height:40px;padding:0 12px;font-size:.9rem}.btn.block{width:100%}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:.85rem;font-weight:700}.input{border:1px solid var(--line-strong);background:var(--surface);border-radius:12px;width:100%;min-height:52px;padding:0 14px}.input:focus-visible,.btn:focus-visible,.chip:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.fab{right:max(20px,50% - 260px);bottom:calc(var(--nav-height) + 20px);background:var(--accent);height:56px;color:var(--accent-contrast);cursor:pointer;border:0;border-radius:28px;align-items:center;gap:8px;padding:0 22px;font-weight:700;display:flex;position:fixed;box-shadow:0 4px 14px #00000040}.nav{height:var(--nav-height);background:var(--surface);border-top:1px solid var(--line);justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.nav-inner{width:100%;max-width:560px;display:flex}.nav button{cursor:pointer;color:var(--muted);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:4px;font-size:.8rem;display:flex}.nav button.active{color:var(--accent);font-weight:700}.sync-chip{border-radius:var(--radius-pill);background:var(--ok-bg);color:var(--ok-text);align-items:center;gap:6px;padding:6px 12px;font-size:.8rem;font-weight:700;display:inline-flex}.sync-chip.off{background:var(--warn-bg);color:var(--warn-text)}.dot{background:currentColor;border-radius:50%;width:8px;height:8px}.bar{background:var(--line);border-radius:99px;height:8px}.bar>div{background:var(--accent);border-radius:99px;height:8px}.sheet-backdrop{z-index:10;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:560px;padding:12px var(--page-pad) 28px;gap:var(--gap);border-radius:22px 22px 0 0;flex-direction:column;max-height:92vh;display:flex;overflow-y:auto}.sheet-grip{background:var(--line-strong);border-radius:99px;align-self:center;width:44px;height:5px}.sheet h2{margin:0;font-size:1.25rem}.stepper{align-items:center;gap:12px;display:flex}.stepper button{border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;border-radius:12px;width:52px;height:52px;font-size:1.6rem}.stepper input{text-align:center;border:2px solid var(--accent);background:var(--surface);border-radius:12px;flex:1;width:100%;min-height:52px;font-size:1.3rem;font-weight:700}.info{background:var(--accent-soft);color:var(--accent);border-radius:12px;padding:12px 14px;font-size:.9rem}.error{background:var(--danger-bg);color:var(--danger-text);border-radius:12px;padding:10px 14px;font-size:.9rem}.tree{margin:0;padding:0;list-style:none}.tree .tree{border-left:2px solid var(--line);margin-left:9px;padding-left:14px}.tree-row{align-items:center;gap:8px;min-height:48px;display:flex}.tree-toggle{cursor:pointer;width:32px;height:40px;color:var(--muted);background:0 0;border:0}.tree-name{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;padding:8px 0;font-size:1rem;font-weight:700}.tree-row.selected{background:var(--accent-soft);border-radius:10px}.tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.tile{text-align:left;cursor:pointer;flex-direction:column;gap:10px;display:flex}.tile-icon{background:var(--accent-soft);width:44px;height:44px;color:var(--accent);border-radius:12px;justify-content:center;align-items:center;display:flex}.list-row{align-items:center;gap:12px;min-height:54px;display:flex}.login{flex-direction:column;justify-content:center;gap:24px;max-width:420px;min-height:100%;margin:0 auto;padding:0 28px;display:flex}.logo{background:var(--accent);width:72px;height:72px;color:var(--accent-contrast);border-radius:18px;justify-content:center;align-items:center;display:flex}.item-tile{justify-content:flex-start;width:100%}.photo-tile{gap:0;padding:0;overflow:hidden}.tile-photo{aspect-ratio:1;background:var(--accent-soft);width:100%;color:var(--accent);flex-shrink:0;display:block;position:relative;overflow:hidden}.tile-photo-icon{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.tile-badges.overlay{min-height:0;position:absolute;top:6px;left:6px;right:6px}.tile-info{flex-direction:column;gap:1px;padding:6px 10px 8px;display:flex}.tile-title{-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;font-size:.85rem;font-weight:600;line-height:1.25;display:-webkit-box;overflow:hidden}.tile-qty-s{font-size:.85rem;font-weight:700}.tile-tiny{color:var(--muted);font-size:.72rem;line-height:1.25}.item-tile .item-name{word-break:break-word}.tile-qty{margin:2px 0;font-size:1.35rem;font-weight:700;line-height:1.2}.tile-badges{flex-wrap:wrap;gap:6px;min-height:22px;display:flex}.badge.soon{background:var(--line);color:var(--muted);align-self:flex-start}.placeholder{border-style:dashed;flex-direction:column;gap:4px;display:flex}.placeholder.accent{background:var(--accent);color:var(--accent-contrast);border-style:solid;border-color:var(--accent)}.placeholder.accent .muted{color:inherit;opacity:.85}.placeholder.accent .badge.soon{color:inherit;background:#ffffff38}.card.selected{border-color:var(--accent);border-width:2px}.home-block{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;height:190px;display:flex;overflow:hidden}.home-block.disabled{color:var(--muted);border-style:dashed}.home-main{text-align:left;width:100%;color:inherit;background:0 0;border:0;flex:2;align-items:center;gap:12px;padding:0 18px;font-size:1.2rem;font-weight:700;display:flex}button.home-main{cursor:pointer;color:var(--text)}.home-strip{border-top:1px solid var(--line);flex:1;align-items:center;min-width:0;padding:0 10px;display:flex}.home-strip .strip{width:100%;padding:0}.home-strip .strip-empty{padding:0}.strip{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;gap:8px;padding-bottom:6px;display:flex;overflow-x:auto}.strip-empty{padding:2px 4px 6px}.sub-tiles{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;gap:6px;width:100%;height:100%;padding:6px 0;display:flex;overflow-x:auto}.sub-tile{scroll-snap-align:start;background:var(--surface-2,var(--line)) no-repeat right center / cover;color:#fff;text-shadow:0 1px 4px #000c;text-align:left;cursor:pointer;border:0;border-radius:10px;flex:0 0 calc(33.3333% - 4px);align-items:flex-end;padding:4px 8px;font-size:.78rem;font-weight:700;line-height:1.15;display:flex;overflow:hidden}.sub-tiles.many .sub-tile{flex-basis:calc(29.4118% - 5.29412px)}.item-note{white-space:pre-line;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-style:italic;display:-webkit-box;overflow:hidden}.sub-tile.plain{background:var(--accent);color:var(--accent-contrast);text-shadow:none;align-items:center}.sub-tile:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.alert-tile{scroll-snap-align:start;text-align:left;min-width:140px;max-width:210px;color:var(--text);border:1px solid var(--line);border-left:6px solid var(--warn-text);background:var(--surface);cursor:pointer;border-radius:12px;flex-direction:column;flex:none;gap:0;padding:4px 10px;display:flex}.alert-tile.danger{border-left-color:var(--danger-text)}.alert-title{text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:700;overflow:hidden}.alert-sub{color:var(--muted);font-size:.75rem}.chapter{overflow-wrap:anywhere;line-height:1.6}.chapter h2{margin:1.4em 0 .4em;font-size:1.25em}.chapter h3{margin:1.2em 0 .3em;font-size:1.1em}.chapter p,.chapter ul,.chapter ol{margin:.6em 0}.chapter ul,.chapter ol{padding-left:1.3em}.chapter table{border-collapse:collapse;width:100%;font-size:.9em;display:block;overflow-x:auto}.chapter th,.chapter td{border:1px solid var(--line);text-align:left;vertical-align:top;padding:6px 8px}.chapter th{background:var(--surface)}.chapter img{border-radius:8px;max-width:100%;height:auto}.chapter .video-card{border:1px solid var(--line);background:var(--surface);border-radius:10px;margin:1em 0;padding:10px 12px}.chapter .video-label{margin-bottom:2px;font-weight:600}.chapter .video-stage{margin:8px 0}.chapter .video-stage iframe{aspect-ratio:16/9;border:0;border-radius:8px;width:100%}.chapter .video-card .row{margin:6px 0}@media print{.chapter .video-card{break-inside:avoid}.chapter .video-card .row,.chapter .video-card .video-stage{display:none}}.chapter span[style*=red]{color:var(--danger-text)!important}.home-main.with-img{color:#fff;text-shadow:0 1px 6px #000000a6;background-position:100%;background-repeat:no-repeat;background-size:cover}.home-main.with-img .muted{color:#ffffffd9}.home-block.disabled .home-main.with-img{color:#fff}.home-block.disabled .home-main.with-img .badge{text-shadow:none}.home-blocks{flex-direction:column;gap:10px;display:flex}.split{gap:var(--gap);flex-direction:column;display:flex}@media (width>=900px){.shell,.nav-inner{max-width:1180px}.page{--page-pad:32px}.fab{right:max(24px,50% - 566px)}.home-blocks{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;display:grid}.home-blocks.hub-blocks{grid-template-columns:repeat(2,minmax(0,1fr))}.home-block{height:230px}.home-main{font-size:1.35rem}.tile-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.chapter{max-width:780px}.sheet{border-radius:22px;max-width:640px}.sheet-backdrop{align-items:center}.split{grid-template-columns:minmax(320px,420px) minmax(0,1fr);align-items:start;gap:20px;display:grid}.split .fab{left:max(32px,50% - 308px);right:auto}.card .stack.actions{flex-flow:wrap;justify-content:flex-end}.split-detail{max-height:calc(100vh - var(--nav-height) - 32px);position:sticky;top:12px;overflow-y:auto}.split-detail>*{flex-shrink:0}}@media (width>=1400px){.shell,.nav-inner{max-width:1400px}.fab{right:max(24px,50% - 676px)}.split .fab{left:max(32px,50% - 418px);right:auto}.tile-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}.btn.danger{background:var(--danger-bg);color:var(--danger-text);border-color:var(--danger-text)}.btn:disabled{opacity:.5;cursor:not-allowed}.compact-list{flex-direction:column;gap:4px;display:flex}.compact-row{text-align:left;cursor:pointer;background:var(--surface);border:2px solid var(--line);width:100%;min-height:40px;color:inherit;font:inherit;border-radius:12px;align-items:center;gap:10px;padding:4px 10px;display:flex}.compact-row.exp-red{border-color:var(--exp-red)}.compact-row.exp-yellow{border-color:var(--exp-yellow)}.compact-row.exp-green{border-color:var(--exp-green)}.compact-thumb{background:var(--accent-soft);width:28px;height:28px;color:var(--accent);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}.compact-thumb img{border-radius:8px!important}.compact-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.compact-qty{flex-shrink:0;font-weight:700}.fold-head{cursor:pointer;width:100%;color:inherit;font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:4px 0;display:flex}.fold-head .fold-count{color:var(--muted);margin-left:auto;font-weight:400}.cal-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.cal-head{text-align:center;color:var(--muted);font-size:.75rem}.cal-day{border:1px solid var(--line);background:var(--surface);min-height:46px;color:inherit;font:inherit;cursor:pointer;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:2px;display:flex}.cal-day.out{opacity:.35}.cal-day.today{border-color:var(--accent);font-weight:700}.cal-day.sel{background:var(--accent);color:var(--accent-contrast)}.cal-dots{gap:3px;min-height:8px;display:flex}.cal-dot{background:var(--accent);border-radius:50%;width:7px;height:7px}.cal-dot.exp{background:var(--danger-text)}.back{z-index:6;background:var(--bg);align-self:flex-start;position:sticky;top:0}ul.tree{margin:0;padding:0;list-style:none}.tree-row{text-align:left;cursor:pointer;width:100%;min-height:44px;color:inherit;font:inherit;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding-right:6px;display:flex}.tree-row:hover{background:var(--bg)}.tree-chev{flex:none;width:16px;display:inline-flex}.tree-label{overflow-wrap:anywhere;flex:1;min-width:0}.tree-lock{opacity:.55;flex:none;display:inline-flex}.tree-lock.locked{opacity:1;color:var(--warn-text)}
