:root{color-scheme:light;--bg: #ffffff;--card: #ffffff;--text: #1c1917;--muted: #57534e;--border: #e7e5e4;--input-border: #78716c;--brand: #fedf03;--brand-hover: #e6c800;--on-brand: #1c1917;--focus: #1c1917;--danger: #b42318;--danger-bg: #fef3f2;--ring: rgba(254, 223, 3, .55)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-text-size-adjust:100%}.auth{min-height:100%;display:grid;grid-template-columns:1fr}.auth-panel{display:none}.auth-main{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px 20px}.auth-card{width:100%;max-width:400px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:32px 24px;box-shadow:0 8px 30px #1c19170f}.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.02em}.brand .logo{width:40px;height:40px;flex:none;border-radius:22%}.auth-card .brand{margin-bottom:24px}.auth-card h1{margin:0 0 4px;font-size:1.5rem;line-height:1.25}.auth-sub{margin:0 0 24px;color:var(--muted)}.field{margin-bottom:16px}.field label{display:block;margin-bottom:6px;font-size:.9rem;font-weight:600}.input-wrap{position:relative}.input{width:100%;min-height:48px;padding:12px 14px;font:inherit;font-size:16px;color:var(--text);background:var(--card);border:1px solid var(--input-border);border-radius:10px;touch-action:manipulation;transition:border-color .15s,box-shadow .15s}.input::placeholder{color:var(--input-border);opacity:1}.input:hover{border-color:var(--text)}.input:focus-visible{outline:none;border-color:var(--focus);box-shadow:0 0 0 4px var(--ring)}.input[aria-invalid=true]{border-color:var(--danger)}.input.has-toggle{padding-right:52px}.toggle{position:absolute;top:0;right:0;width:48px;height:48px;display:grid;place-items:center;background:none;border:0;border-radius:10px;color:var(--muted);cursor:pointer}.toggle:hover{color:var(--text)}.toggle:focus-visible{outline:none;box-shadow:0 0 0 4px var(--ring)}.toggle svg{width:22px;height:22px}.hint{margin:6px 0 0;font-size:.85rem;color:var(--muted)}.field-error{margin:6px 0 0;font-size:.85rem;color:var(--danger)}.alert{display:flex;gap:10px;align-items:flex-start;margin-bottom:16px;padding:12px 14px;font-size:.92rem;color:var(--danger);background:var(--danger-bg);border:1px solid var(--danger);border-radius:10px}.alert svg{width:20px;height:20px;flex:none;margin-top:1px}.btn{width:100%;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;font:inherit;font-size:16px;font-weight:600;color:var(--on-brand);background:var(--brand);border:0;border-radius:10px;cursor:pointer;touch-action:manipulation;transition:background .15s,transform .05s}.btn:hover:not(:disabled){background:var(--brand-hover)}.btn:active:not(:disabled){transform:translateY(1px)}.btn:focus-visible{outline:none;box-shadow:0 0 0 4px var(--ring)}.btn:disabled{opacity:.75;cursor:progress}.spinner{width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-foot{margin:20px 0 0;text-align:center;font-size:.88rem;color:var(--muted)}.legal{margin-top:20px;font-size:.78rem;color:var(--muted)}@media(min-width:960px){.auth{grid-template-columns:1.1fr 1fr}.auth-panel{display:flex;flex-direction:column;justify-content:space-between;padding:48px;color:var(--text);background:linear-gradient(150deg,#fffdea,#fff27a)}.auth-panel .brand{font-size:1.25rem}.auth-panel h2{margin:0 0 12px;font-size:2rem;line-height:1.2;max-width:16ch}.auth-panel p{margin:0;max-width:40ch;color:var(--muted)}.auth-points{margin:32px 0 0;padding:0;list-style:none;display:grid;gap:12px}.auth-points li{display:flex;gap:10px;align-items:center}.auth-points svg{width:20px;height:20px;flex:none;color:#a16207}.auth-card{padding:40px;box-shadow:none}.auth-card .brand{display:none}}@media(max-width:480px){.auth-main{justify-content:flex-start;padding-top:8vh}.auth-card{border:0;box-shadow:none;background:transparent;padding:8px 4px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation-duration:1.5s!important}}.success{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fff;animation:fade-in .2s ease-out}.success-anim{width:min(320px,80vw);aspect-ratio:6 / 5}.success p{margin:0;font-size:1.1rem;font-weight:600}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:16px;background:#1c191773;animation:fade-in .15s ease-out}.modal{width:100%;max-width:380px;max-height:100%;overflow-y:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px #00000040;animation:pop .18s ease-out}.modal h2{margin:0 0 4px;font-size:1.25rem}.check{display:flex;align-items:center;gap:10px;margin:0 0 16px;min-height:44px;font-size:.92rem;cursor:pointer}.check input{width:20px;height:20px;accent-color:#1c1917}.cancel{display:block;margin:8px auto 0}@keyframes pop{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}.subform{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}.subform h3{margin:0 0 12px;font-size:1rem}.avatar{flex:none;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:var(--on-brand);font-weight:700}:root{--app-bg: #fafaf9;--shadow: 0 1px 2px rgba(28, 25, 23, .05)}.shell{min-height:100%;display:grid;grid-template-rows:auto 1fr;background:var(--app-bg);padding-bottom:calc(68px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:20;height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;background:#fff;border-bottom:1px solid var(--border)}.brand{white-space:nowrap}.who{display:flex;align-items:center;gap:12px}.who-text{display:none;text-align:right;line-height:1.25}.who-text small{display:block;color:var(--muted);font-size:.78rem}.avatar-btn{padding:0;border:0;background:none;cursor:pointer;border-radius:50%}.btn-out{display:none;align-items:center;gap:8px;min-height:40px;padding:8px 14px;font:inherit;font-size:.9rem;font-weight:600;color:var(--text);background:#fff;border:1px solid var(--input-border);border-radius:10px;cursor:pointer}.btn-out:hover{background:#f5f5f4}.btn-out.wide{display:flex;justify-content:center;width:100%;min-height:48px;margin-top:12px}.avatar{flex:none;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:var(--on-brand);font-weight:700;width:40px;height:40px}.avatar.square{border-radius:12px;background:#fff8c4;color:#854d0e}.sidebar{display:none}.shell-main{padding:20px 16px 32px;width:100%;max-width:920px;margin:0 auto;min-width:0}.pill{display:grid;place-items:center;width:44px;height:30px;border-radius:99px;transition:background .15s}.tabbar{position:fixed;z-index:30;left:0;right:0;bottom:0;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#fff;border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:60px;padding:8px 2px 6px;font:inherit;font-size:.72rem;font-weight:600;color:var(--muted);text-decoration:none;background:none;border:0;cursor:pointer}.tabbar .active{color:var(--text)}.tabbar a span:last-child,.tabbar button span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tabbar .active .pill,.sheet-link.active .pill{background:var(--brand)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#1c191773;display:flex;align-items:flex-end;animation:fade-in .15s ease-out}.sheet{width:100%;max-height:88%;overflow-y:auto;background:#fff;border-radius:20px 20px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));animation:pop .2s ease-out}.sheet-user{display:flex;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--border);margin-bottom:8px}.sheet-link{display:flex;align-items:center;gap:12px;min-height:48px;padding:4px;color:var(--text);font-weight:600;text-decoration:none;border-radius:10px}.sheet-link .pill{width:40px;height:32px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 16px;flex-wrap:wrap;margin-bottom:20px}.page-title{margin:0;font-size:1.6rem;line-height:1.2}.page-sub{margin:4px 0 0;color:var(--muted)}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px;margin-bottom:16px;box-shadow:var(--shadow)}.card h2{margin:0 0 12px;font-size:1.05rem}.card.narrow{max-width:460px}.btn.auto{width:auto;min-height:44px;padding:10px 16px;font-size:.95rem}.btn.outline{background:#fff;color:var(--text);border:1px solid var(--input-border)}.btn.outline:hover:not(:disabled){background:#f5f5f4}.chip-btn{min-height:40px;padding:8px 12px;font:inherit;font-size:.85rem;font-weight:600;color:var(--text);background:#fff;border:1px solid var(--border);border-radius:8px;cursor:pointer}.chip-btn:hover{background:#f5f5f4;border-color:var(--input-border)}.icon-btn{display:grid;place-items:center;width:40px;height:40px;color:var(--muted);background:none;border:0;border-radius:10px;cursor:pointer}.icon-btn:hover{background:#f5f5f4;color:var(--text)}.chip-btn:focus-visible,.icon-btn:focus-visible,.btn-out:focus-visible,.tabbar a:focus-visible,.tabbar button:focus-visible,.sidebar a:focus-visible,.sheet-link:focus-visible,.avatar-btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}.kpi{display:grid;gap:4px;padding:16px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.kpi-ico{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;margin-bottom:6px}.kpi-ico.amber{background:#fef3c7;color:#92400e}.kpi-ico.blue{background:#dbeafe;color:#1e40af}.kpi-ico.green{background:#dcfce7;color:#166534}.kpi-ico.red{background:#fee2e2;color:#991b1b}.kpi-val{font-size:1.8rem;font-weight:700;line-height:1}.empty{display:grid;justify-items:center;gap:6px;padding:28px 12px;text-align:center}.empty h2{margin:8px 0 0;font-size:1.05rem}.empty p{margin:0;max-width:38ch}.empty-ico{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#fff8c4;color:#854d0e}.splash{min-height:100%;display:grid;place-content:center;justify-items:center;gap:18px}.splash .logo{width:56px;height:56px}.splash .spinner{width:24px;height:24px;color:var(--muted)}.profile{display:flex;gap:16px;align-items:center}.profile h2{margin:0}.profile p{margin:2px 0 8px}.notice{margin-bottom:16px;padding:16px;border:1px solid #ca8a04;background:#fffbe0;border-radius:12px}.notice p{margin:0 0 8px}.notice-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.secret{display:inline-block;padding:6px 10px;font-size:1.1rem;letter-spacing:.04em;background:#fff;border:1px dashed var(--input-border);border-radius:8px;-webkit-user-select:all;user-select:all}.muted{color:var(--muted)}.list{list-style:none;margin:0;padding:0}.list li{display:flex;justify-content:space-between;align-items:center;gap:10px 12px;padding:14px 0;border-top:1px solid var(--border);flex-wrap:wrap}.list li:first-child{border-top:0;padding-top:4px}.list li.off strong{color:var(--muted);text-decoration:line-through}.person{display:flex;gap:12px;align-items:center;min-width:0}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.badge{display:inline-block;margin:4px 6px 0 0;padding:2px 10px;font-size:.75rem;font-weight:600;background:#f5f5f4;border:1px solid var(--border);border-radius:99px}.badge.warn{background:#fef3c7;border-color:#fde68a;color:#92400e}.badge.off{background:#e7e5e4;color:var(--muted)}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}.card-head h2{margin:0}.input.compact{width:auto;max-width:100%;min-height:44px;padding:8px 12px}select.input{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.modal-head h2{margin:0}@media(min-width:960px){.shell{grid-template-columns:248px 1fr;padding-bottom:0}.topbar{grid-column:1 / -1;padding:0 24px}.who-text,.btn-out{display:flex}.who-text{display:block}.avatar-btn{display:none}.sidebar{display:flex;flex-direction:column;gap:2px;position:sticky;top:60px;align-self:start;height:calc(100vh - 60px);padding:16px 12px;background:#fff;border-right:1px solid var(--border);overflow-y:auto}.sidebar a{display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 10px;color:var(--text);font-weight:600;text-decoration:none;border-radius:10px}.sidebar a .pill{width:28px;height:28px;border-radius:8px;color:var(--muted)}.sidebar a:hover{background:#f5f5f4}.sidebar a.active{background:#fff8c4;box-shadow:inset 3px 0 0 var(--brand)}.sidebar a.active .pill{background:var(--brand);color:var(--on-brand)}.tabbar{display:none}.shell-main{margin:0;max-width:960px;padding:32px}.kpis{grid-template-columns:repeat(4,1fr)}.sheet-backdrop{align-items:center;justify-content:center}.sheet{max-width:380px;border-radius:16px}}.avatar-btn{display:grid;place-items:center;width:44px;height:44px}.offline{margin-bottom:16px;padding:12px 14px;font-size:.92rem;font-weight:600;background:#fef3c7;border:1px solid #fde68a;border-radius:10px;color:#78350f}.skeleton{height:18px;margin:14px 0;border-radius:8px;background:linear-gradient(90deg,#f0efed 25%,#e7e5e4 37%,#f0efed 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}.skeleton.short{width:60%}@keyframes shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.btn.danger{background:#b42318;color:#fff}.btn.danger:hover:not(:disabled){background:#912018}.dlg-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}.small{font-size:.8rem}.badge.ok{background:#dcfce7;border-color:#bbf7d0;color:#166534}.tabs{display:flex;gap:6px;margin-bottom:16px;overflow-x:auto;scrollbar-width:none}.tab{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 14px;font:inherit;font-size:.9rem;font-weight:600;color:var(--muted);background:var(--card);border:1px solid var(--border);border-radius:99px;cursor:pointer}.tab.active{color:var(--on-brand);background:var(--brand);border-color:var(--brand)}.tab:focus-visible{outline:none;box-shadow:0 0 0 4px var(--ring)}.count{min-width:20px;padding:0 6px;font-size:.75rem;line-height:20px;text-align:center;color:#fff;background:var(--danger);border-radius:99px}.delivery-row{flex:1 1 280px;display:flex;gap:12px;align-items:flex-start;color:inherit;text-decoration:none}.delivery-row:hover strong{text-decoration:underline}.timeline{list-style:none;margin:0;padding:0}.timeline li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--border)}.timeline li:first-child{border-top:0}.timeline svg{flex:none;margin-top:3px;color:var(--muted)}.task-card{display:block;color:inherit;text-decoration:none}.task-card p{margin:6px 0 0}.task-card:hover{border-color:var(--text)}.stepper{display:flex;gap:4px;margin:0 0 16px;padding:0;list-style:none;counter-reset:step}.stepper li{flex:1;padding:8px 4px 0;font-size:.8rem;font-weight:600;text-align:center;color:var(--muted);border-top:4px solid var(--border);counter-increment:step}.stepper li:before{content:counter(step) ". "}.stepper li.done{color:var(--text);border-color:#16a34a}.stepper li.current{color:var(--text);border-color:var(--brand)}.input.code{font-size:1.4rem;font-weight:700;letter-spacing:.2em;text-align:center;text-transform:uppercase}textarea.input{min-height:96px;resize:vertical}
