:root{--green:#036234;--green-dark:#024a27;--green-soft:#e6f2eb;--orange:#fd6a02;--orange-text:#c24e00;--orange-soft:#fff1e6;--on-orange:#14201a;--bg:#f6f7f5;--surface:#fff;--border:#e3e6e1;--text:#14201a;--muted:#5f6b64;--danger:#c62828;--radius:12px;--shadow:0 1px 2px #14201a0f, 0 4px 14px #14201a0d;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.45}*{box-sizing:border-box}body{background:var(--bg);margin:0}h1,h2,h3,h4,p{margin:0}h1{font-size:1.7rem;font-weight:800}h2{font-size:1.1rem;font-weight:800}h3{font-size:1.05rem;font-weight:800}h4{font-size:.95rem;font-weight:700}a{color:var(--green);font-weight:600}hr{border:0;border-top:1px solid var(--border);width:100%;margin:20px 0}img{max-width:100%}.muted{color:var(--muted)}.small{font-size:.85rem}.danger{color:var(--danger)!important}.center{justify-content:center;padding:28px;display:flex}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.stack{flex-direction:column;gap:14px;display:flex}.row-gap{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.row-between{justify-content:space-between;align-items:center;gap:12px;display:flex}:focus-visible{outline:3px solid var(--orange);outline-offset:2px;border-radius:6px}.btn{font:inherit;cursor:pointer;border:1.5px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 18px;font-weight:700;display:inline-flex}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover:not(:disabled){background:var(--green-dark)}.btn-secondary{color:var(--green);border-color:var(--green);background:#fff}.btn-secondary:hover:not(:disabled){background:var(--green-soft)}.btn-accent{background:var(--orange);color:var(--on-orange)}.btn-ghost{color:var(--green);background:0 0}.btn-ghost:hover:not(:disabled){background:var(--green-soft)}.btn-danger{color:var(--danger);border-color:var(--danger);background:#fff}.btn-danger:hover:not(:disabled){background:#fdecec}.btn-sm{border-radius:8px;min-height:34px;padding:6px 12px;font-size:.9rem}.btn-block{width:100%;margin-top:10px}.link{font:inherit;color:var(--green);cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;text-decoration:underline}.icon-btn{cursor:pointer;color:var(--muted);background:0 0;border:0;border-radius:8px;padding:4px 8px;font-size:1.5rem;line-height:1}.icon-btn:hover{background:var(--bg)}input,select,textarea{font:inherit;color:inherit;border:1.5px solid var(--border);background:#fff;border-radius:10px;width:100%;min-height:42px;padding:10px 12px}input:disabled,select:disabled,textarea:disabled{background:var(--bg);color:var(--muted)}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--green)}input.num{text-align:center;width:64px}input.price-input{width:130px}input[type=time]{width:auto}textarea{resize:vertical}.field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.field label{font-weight:700}.hint{color:var(--muted);font-size:.85rem}.error-text{color:var(--danger);font-size:.9rem}.check-row{cursor:pointer;align-items:center;gap:8px;display:inline-flex}.inline-form{align-items:center;gap:8px;display:flex}.inline-form.wrap{flex-wrap:wrap}.inline-form input{flex:160px}.inline-form select{flex:0 220px}.toggle{cursor:pointer;background:#c9cfca;border:0;border-radius:999px;flex:none;width:48px;height:28px;padding:0;transition:background .15s;position:relative}.toggle-on{background:var(--green)}.toggle:disabled{opacity:.6;cursor:progress}.toggle-knob{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.toggle-on .toggle-knob{transform:translate(20px)}.switch-row{cursor:pointer;align-items:center;gap:10px;font-weight:600;display:inline-flex}.switch-row.compact{font-weight:500}.badge{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-size:.8rem;font-weight:800;display:inline-flex}.badge .dot{background:currentColor;border-radius:50%;width:8px;height:8px}.badge-open{background:var(--green-soft);color:var(--green)}.badge-warn{background:var(--orange-soft);color:var(--orange-text)}.chip{background:var(--green-soft);color:var(--green);border-radius:999px;padding:2px 10px;font-size:.78rem;font-weight:700}.chip-warn{background:var(--orange-soft);color:var(--orange-text)}.stars{vertical-align:middle;gap:1px;display:inline-flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;padding:18px}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px;display:flex}.page-actions{flex-wrap:wrap;gap:10px;display:flex}.empty{text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius);flex-direction:column;align-items:center;gap:10px;max-width:640px;margin:20px auto;padding:40px 20px;display:flex}.empty p{color:var(--muted);max-width:480px}.spinner{border:4px solid var(--green-soft);border-top-color:var(--green);border-radius:50%;width:36px;height:36px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.notice{background:var(--orange-soft);color:var(--orange-text);border-radius:10px;margin-bottom:14px;padding:10px 14px;font-weight:600}.shell{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--border);background:#fff;flex-direction:column;gap:18px;height:100vh;padding:20px 16px;display:flex;position:sticky;top:0}.brand{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.brand .wordmark{width:auto;height:22px}.brand-tag{width:100%;color:var(--orange-text);letter-spacing:.06em;text-transform:uppercase;font-size:.75rem;font-weight:800}.restaurant-switch{background:var(--green-soft);border-radius:10px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.restaurant-switch select{background:0 0;border:0;min-height:0;padding:0;font-weight:800}.role{text-transform:capitalize;color:var(--green);font-size:.75rem;font-weight:700}nav{flex-direction:column;gap:4px;display:flex}.nav-link{color:var(--text);border-radius:10px;padding:10px 12px;font-weight:600;text-decoration:none}.nav-link:hover{background:var(--bg)}.nav-link.active{background:var(--green);color:#fff}.sidebar-foot{flex-direction:column;align-items:flex-start;gap:6px;margin-top:auto;display:flex}.main{min-width:0}.content{max-width:1040px;padding:24px}.presence{z-index:5;border-bottom:1px solid var(--border);background:#fff;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:12px 24px;display:flex;position:sticky;top:0}.presence-live{border-bottom:3px solid var(--green)}.presence-main{align-items:center;gap:14px;display:flex}.presence-controls{flex-wrap:wrap;gap:22px;display:flex}.stats{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;display:grid}.stat{flex-direction:column;gap:4px;display:flex}.stat-value{font-size:2.2rem;font-weight:800;line-height:1.1}.progress{background:var(--border);border-radius:999px;height:8px;margin-bottom:12px;overflow:hidden}.progress>div{background:var(--orange);height:100%}.checklist{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.checklist li{align-items:flex-start;gap:12px;display:flex}.check{border:2px solid var(--border);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:24px;height:24px;font-size:.8rem;display:inline-flex}.checklist .done .check{background:var(--green);border-color:var(--green)}.plain-list{margin:0;padding:0;list-style:none}.plain-list li{border-top:1px solid var(--border);flex-direction:column;gap:4px;padding:12px 0;display:flex}.plain-list li:first-child{border-top:0;padding-top:0}.dishes{margin:0;padding:0;list-style:none}.dishes li{border-top:1px solid var(--border);grid-template-columns:1fr auto auto auto;align-items:center;gap:16px;padding:12px 0;display:grid}.dishes li:first-child{border-top:0}.dishes .sold-out .dish-main strong,.dishes .sold-out .price{color:var(--muted);text-decoration:line-through}.price{color:var(--orange-text);white-space:nowrap;font-weight:800}.grid-2{grid-template-columns:2fr 1fr;gap:12px;display:grid}.group{border:1px solid var(--border);background:#fcfdfc;border-radius:12px;flex-direction:column;gap:10px;padding:14px;display:flex}.group-head{align-items:center;gap:8px;display:flex}.group-head input{font-weight:700}.group-rules{color:var(--muted);flex-wrap:wrap;gap:20px;display:flex}.options{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.options li{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.options li>input:first-child{flex:160px}.options .sold-out input{color:var(--muted)}.add-group{border:1px dashed var(--border);border-radius:12px;flex-direction:column;gap:8px;margin-top:14px;padding:14px;display:flex}.danger-zone{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.summary{flex-wrap:wrap;align-items:center;gap:32px;display:flex}.summary-score{flex-direction:column;align-items:center;gap:2px;display:flex}.bars{flex-direction:column;flex:260px;gap:6px;display:flex}.bar-row{grid-template-columns:34px 1fr 28px;align-items:center;gap:8px;display:grid}.bar{background:var(--border);border-radius:999px;height:8px;overflow:hidden}.bar>div{background:var(--orange);height:100%}.reviews{margin:0;padding:0;list-style:none}.review{flex-direction:column;gap:10px;display:flex}.avatar{background:var(--green-soft);width:38px;height:38px;color:var(--green);border-radius:50%;justify-content:center;align-items:center;font-weight:800;display:inline-flex}.reply{background:var(--bg);border-radius:10px;flex-direction:column;align-items:flex-start;gap:4px;margin-left:48px;padding:12px;display:flex}.reply-form{flex-direction:column;gap:8px;margin-left:48px;display:flex}.week{margin:0;padding:0;list-style:none}.week li{border-top:1px solid var(--border);grid-template-columns:160px 1fr;align-items:start;gap:12px;padding:12px 0;display:grid}.week li:first-child{border-top:0}.day-windows{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.window{align-items:center;gap:8px;display:flex}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:16px;display:flex}.modal-actions.left{justify-content:flex-start}.modal-backdrop{z-index:50;background:#14201a8c;justify-content:center;align-items:flex-start;padding:4vh 12px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:#fff;border-radius:16px;width:100%;max-width:520px;box-shadow:0 20px 60px #00000059}.modal-wide{max-width:760px}.modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.modal-body{padding:20px}.toasts{z-index:100;flex-direction:column;gap:8px;max-width:min(92vw,380px);display:flex;position:fixed;bottom:16px;right:16px}.toast{color:#fff;box-shadow:var(--shadow);border-radius:10px;padding:12px 16px;font-weight:600}.toast-success{background:var(--green)}.toast-error{background:var(--danger)}.login{background:linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{border-top:6px solid var(--orange);background:#fff;border-radius:20px;flex-direction:column;gap:8px;width:100%;max-width:420px;padding:32px 28px;display:flex;box-shadow:0 20px 60px #0000004d}.login-logo{align-self:center;margin-bottom:8px}.login-card h1{text-align:center}.login-card>p{text-align:center;margin-bottom:14px}.code-input{letter-spacing:.5em;text-align:center;font-size:1.8rem;font-weight:800}.dev-note{background:var(--orange-soft);color:var(--orange-text);border-radius:10px;margin-bottom:8px;padding:8px 12px;font-size:.9rem}@media (width<=860px){.shell{grid-template-columns:minmax(0,1fr)}.main,.content,.sidebar{min-width:0}nav{max-width:100%}.sidebar{flex-flow:wrap;align-items:center;gap:10px;height:auto;padding:12px 16px;position:static}.restaurant-switch{flex:100%;order:3}nav{flex-direction:row;flex:100%;order:4;padding-bottom:2px;overflow-x:auto}.nav-link{white-space:nowrap}.sidebar-foot{flex-direction:row;align-items:center;margin:0 0 0 auto}.sidebar-foot .muted{display:none}.presence{padding:12px 16px;position:static}.content{padding:16px}.dishes li{grid-template-columns:auto minmax(0,1fr) auto;gap:10px 12px}.dishes li .dish-main{grid-column:1/-1;min-width:0}.presence-controls{gap:14px}.presence-main{min-width:0}.page-actions{width:100%}.options li>input:first-child{flex-basis:100%}.modal-body{padding:16px}.grid-2,.week li{grid-template-columns:1fr}.reply,.reply-form{margin-left:0}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}.toggle,.toggle-knob{transition:none}}.wallet-hero{background:linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);color:#fff;border:0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.wallet-hero .muted{color:#ffffffc7}.wallet-hero .stat-value{color:#fff}.wallet-cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:16px;display:grid}.wallet-card{text-align:left;font:inherit;color:inherit;cursor:pointer;background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:4px;margin:0;padding:16px;display:flex}.wallet-card:hover{border-color:var(--green)}.wallet-card[aria-pressed=true]{border-color:var(--green);background:var(--green-soft)}.wallet-card .amount{font-size:1.7rem;font-weight:800}.flow{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;font-size:.9rem;display:flex}.flow span.step{background:var(--green-soft);color:var(--green);border-radius:999px;padding:3px 12px;font-weight:700}.tabs{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.tab{font:inherit;border:1.5px solid var(--border);cursor:pointer;background:#fff;border-radius:999px;padding:6px 14px;font-weight:700}.tab[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}table.tx{border-collapse:collapse;width:100%}table.tx th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-bottom:1px solid var(--border);padding:8px 10px;font-size:.8rem}table.tx td{border-bottom:1px solid var(--border);vertical-align:top;padding:12px 10px}table.tx td.num,table.tx th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.in{color:var(--green);font-weight:800}.out{color:var(--orange-text);font-weight:800}@media (width<=860px){table.tx thead{display:none}table.tx,table.tx tbody,table.tx tr,table.tx td{width:100%;display:block}table.tx tr{border-bottom:1px solid var(--border);padding:10px 0}table.tx td{border:0;padding:2px 0}table.tx td.num{text-align:left}}.wallet-hero .btn:disabled{opacity:1;color:#ffffffd9;background:#ffffff29;border-color:#ffffff59}.terms-box{border:1px solid var(--border);background:var(--bg);text-align:left;border-radius:12px;max-height:300px;margin:10px 0;padding:12px 14px;overflow-y:auto}.terms-box:focus-visible{outline:2px solid var(--green)}.terms-box h3{margin:12px 0 4px;font-size:.95rem}.terms-box h3:first-child{margin-top:0}.terms-box p{margin:0 0 8px;font-size:.9rem;line-height:1.5}.terms-end{text-align:center;color:var(--muted);margin-top:10px;font-weight:700}.terms-hint{text-align:center;margin:0 0 8px;font-size:.85rem}
