:root{--bg:#f6f5f2;--surface:#fff;--surface-2:#faf9f6;--line:#e6e3dc;--text:#1d1b18;--muted:#6c675e;--accent:#c8102e;--accent-ink:#fff;--accent-soft:#fbe9ec;--mark:#f2c230;--mark-ink:#1d1b18;--ok:#1f7a4d;--ok-soft:#e5f3eb;--warn:#8a5a00;--warn-soft:#fbf1d9;--off:#6c675e;--off-soft:#efede8;--focus:#c8102e55;--shadow:0 1px 2px #0000000a, 0 4px 16px #0000000d;--radius:10px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#121212;--surface:#1b1a19;--surface-2:#222120;--line:#2f2d2b;--text:#f1eee8;--muted:#a39d93;--accent:#ff4d5e;--accent-ink:#1b0b0d;--accent-soft:#3a1a1e;--mark:#f2c230;--ok:#6cd39c;--ok-soft:#173326;--warn:#f2c230;--warn-soft:#362c12;--off:#a39d93;--off-soft:#2a2826;--focus:#ff4d5e66;--shadow:0 1px 2px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1,h2{letter-spacing:-.01em;margin:0}h1{font-size:1.6rem}h2{font-size:1.25rem}.muted{color:var(--muted)}.small{font-size:.85rem}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.loading{color:var(--muted);padding:48px}button{font:inherit;cursor:pointer;border:1px solid #0000;border-radius:8px;padding:8px 16px;transition:background .12s,border-color .12s}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:1px}button.primary{background:var(--accent);color:var(--accent-ink);font-weight:600}button.primary:hover:not(:disabled){filter:brightness(.94)}button.ghost{background:var(--surface);color:var(--text);border-color:var(--line)}button.ghost:hover:not(:disabled){background:var(--surface-2)}button.danger{color:var(--accent);border-color:var(--accent-soft);background:0 0}button.danger:hover:not(:disabled){background:var(--accent-soft)}button.small{padding:4px 12px;font-size:.875rem}button.wide{width:100%;margin-top:8px;padding:11px 16px}input[type=email],input[type=password],input[type=search],input[type=text]{font:inherit;border:1px solid var(--line);background:var(--surface);width:100%;color:var(--text);border-radius:8px;padding:10px 12px}label{font-size:.9rem;font-weight:600}.error{color:var(--accent);background:var(--accent-soft);border-radius:8px;margin:12px 0;padding:10px 14px}.notice{color:var(--ok);background:var(--ok-soft);border-radius:8px;margin:12px 0;padding:10px 14px}.signin-page{place-items:center;min-height:100vh;padding:24px;display:grid}.signin-card{background:var(--surface);border:1px solid var(--line);width:min(400px,100%);box-shadow:var(--shadow);border-radius:16px;padding:36px 32px}.signin-card h1{margin-top:16px;font-size:1.4rem}.signin-card form{gap:6px;margin-top:20px;display:grid}.signin-card label{margin-top:8px}.setup-steps{gap:14px;margin:16px 0 0;padding-left:20px;display:grid}.setup-steps li{gap:8px;display:grid}.qr{border:1px solid var(--line);background:#fff;border-radius:8px;justify-self:start;padding:10px}.setup-key{letter-spacing:.06em;background:var(--surface-2);border:1px solid var(--line);word-break:break-all;-webkit-user-select:all;user-select:all;border-radius:8px;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1rem}.code-input{letter-spacing:.3em;text-align:center;font-size:1.4rem}.small-print{margin:14px 0 0;font-size:.85rem}.brand-mark{background:var(--mark);width:44px;height:44px;color:var(--mark-ink);letter-spacing:.02em;border-radius:12px;place-items:center;font-weight:800;display:inline-grid}.brand-mark.small{border-radius:9px;width:34px;height:34px;font-size:.85rem}.shell{grid-template-columns:248px 1fr;min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;height:100vh;padding:20px 14px;display:flex;position:sticky;top:0}.sidebar-brand{align-items:center;gap:10px;padding:4px 8px 24px;display:flex}.sidebar-brand strong{line-height:1.2;display:block}.sidebar-sub{color:var(--muted);font-size:.8rem;display:block}.sidebar nav{gap:2px;display:grid}.nav-item{text-align:left;color:var(--text);background:0 0;border-radius:8px;padding:9px 12px}.nav-item:hover{background:var(--surface-2)}.nav-item.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 3px 0 0 var(--accent);font-weight:600}.sidebar-foot{border-top:1px solid var(--line);gap:8px;margin-top:auto;padding:14px 8px 0;display:grid}.who{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;overflow:hidden}.content{min-width:0;padding:36px 44px 64px}.page{max-width:1180px}.page.narrow{max-width:820px}.page-head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.page-head p{margin:4px 0 0}.page-actions{align-items:center;gap:8px;display:flex}.search{width:240px!important}.empty{border:1px dashed var(--line);border-radius:var(--radius);text-align:center;color:var(--muted);background:var(--surface);padding:40px}.card,.table-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.table-card{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--line);vertical-align:middle;padding:13px 16px}th{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--surface-2);font-size:.78rem;font-weight:600}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:var(--surface-2)}td.strong{font-weight:600}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}td.actions{text-align:right;white-space:nowrap}td.actions button+button{margin-left:6px}.parts-count{font-variant-numeric:tabular-nums;font-weight:600}.pill{background:var(--off-soft);color:var(--off);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:600;display:inline-block}.pill[class*=status-]{text-transform:capitalize}.pill.mode-functions,.pill.status-pending{background:var(--warn-soft);color:var(--warn)}.pill.mode-deliveries,.pill.mode-both,.pill.status-accepted{background:var(--ok-soft);color:var(--ok)}.pill.status-revoked{background:var(--accent-soft);color:var(--accent)}.segmented{border:1px solid var(--line);background:var(--surface);border-radius:8px;display:inline-flex;overflow:hidden}.segmented button{color:var(--muted);background:0 0;border-radius:0;padding:7px 14px}.segmented button[aria-pressed=true]{background:var(--text);color:var(--surface)}.form-card{gap:22px;padding:28px;display:grid}.field{gap:6px;display:grid}.field-group{border:0;margin:0;padding:0}.field-group legend{margin-bottom:10px;padding:0;font-weight:700}.field-group>p{margin:-6px 0 10px}.mode-grid{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.mode-card{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:10px;gap:2px;padding:12px 14px;font-weight:400;display:grid;position:relative}.mode-card input{opacity:0;pointer-events:none;position:absolute}.mode-card.chosen{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}.mode-card:focus-within{outline:3px solid var(--focus)}.mode-title{font-weight:600}.mode-hint,.switch-hint{color:var(--muted);font-size:.82rem;font-weight:400}.switch-grid{grid-template-columns:repeat(2,1fr);gap:8px 16px;display:grid}.switch-row{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.switch-text{display:grid}.switch-title{font-weight:600}input.switch{appearance:none;background:var(--line);cursor:pointer;border-radius:999px;flex:none;width:40px;height:22px;margin:0;transition:background .15s;position:relative}input.switch:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #00000040}input.switch:checked{background:var(--ok)}input.switch:checked:after{transform:translate(18px)}.form-foot{border-top:1px solid var(--line);justify-content:flex-end;padding-top:18px;display:flex}.scrim{z-index:10;background:#00000052;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{background:var(--bg);flex-direction:column;width:min(640px,100%);height:100%;display:flex;box-shadow:-8px 0 32px #0000002e}.drawer-head{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:flex-start;padding:24px 28px 16px;display:flex}.eyebrow{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 2px;font-size:.78rem}.drawer-body{flex:1;align-content:start;gap:22px;padding:24px 28px;display:grid;overflow-y:auto}.drawer .mode-grid{grid-template-columns:repeat(2,1fr)}.drawer .switch-grid{grid-template-columns:1fr}.drawer-foot{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;padding-top:18px;display:flex}@media (width<=900px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.content{padding:24px 16px}.mode-grid,.switch-grid{grid-template-columns:1fr}.page-head{flex-direction:column;align-items:stretch}}
