:root{--primary:#4f46e5;--primary-600:#4338ca;--secondary:#6366f1;--ink:#1a2230;--muted:#5b6675;--bg:#f5f6fb;--surface:#fff;--line:#e4e6f0;--line-strong:#cbd0e0;--green:#167a4a;--green-bg:#e7f6ee;--amber:#b7791f;--amber-bg:#fbf2e2;--red:#c0392b;--red-bg:#fdecea;--indigo-bg:#eef0fd;--radius:12px;--shadow:0 1px 2px #4f46e50f, 0 4px 16px #4f46e50d;--font-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono:ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace}*{box-sizing:border-box}html{font-size:16px}body{font-family:var(--font-body);color:var(--ink);background:var(--bg);letter-spacing:-.01em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;margin:0;line-height:1.55}h1,h2,h3{color:var(--primary);margin:0 0 .4em;line-height:1.2}h1{font-size:1.5rem}h2{font-size:1.15rem}a{color:var(--secondary);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer;font-family:inherit;font-size:1rem}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.25rem;display:flex}.subtle{color:var(--muted);font-size:.9rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:1.25rem;padding:1.25rem}.card-head{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.card-head h2{margin:0}.btn{border:1px solid var(--primary);background:var(--primary);color:#fff;border-radius:10px;justify-content:center;align-items:center;gap:.45rem;padding:.55rem 1rem;font-size:.92rem;font-weight:600;display:inline-flex}.btn:hover{background:var(--primary-600)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.secondary{background:var(--surface);color:var(--primary)}.btn.secondary:hover{background:var(--indigo-bg)}.btn.ghost{border-color:var(--line-strong);color:var(--muted);background:0 0}.btn.danger{background:var(--surface);border-color:var(--red);color:var(--red)}.btn.sm{border-radius:8px;padding:.3rem .6rem;font-size:.82rem}.field{flex-direction:column;gap:.3rem;margin-bottom:.9rem;display:flex}.field label{color:var(--muted);font-size:.82rem;font-weight:600}.field input,.field select,.field textarea{font:inherit;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);border-radius:8px;padding:.5rem .65rem}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--secondary);outline:2px solid #bcd4ec}.field .hint{color:var(--muted);font-size:.78rem}.row{flex-wrap:wrap;gap:1rem;display:flex}.row>.field{flex:1;min-width:160px}.checkbox{flex-direction:row;align-items:center;gap:.5rem}.checkbox input{width:18px;height:18px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--line);padding:.55rem .7rem}th{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:.76rem;font-weight:700}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;font-family:var(--mono)}tbody tr:hover{background:#fafcfe}tfoot td{border-top:2px solid var(--line-strong);font-weight:700}.code{font-family:var(--mono);color:var(--muted);font-size:.85rem}.pill{text-transform:uppercase;letter-spacing:.03em;border-radius:999px;padding:.1rem .5rem;font-size:.74rem;font-weight:700;display:inline-block}.pill.neutral,.pill.draft,.pill.not_started,.pill.pending{color:var(--muted);background:#eef1f5}.pill.info,.pill.in_progress,.pill.submitted,.pill.requested{background:var(--indigo-bg);color:var(--primary)}.pill.ok,.pill.done,.pill.approved,.pill.paid,.pill.active,.pill.open,.pill.posted{background:var(--green-bg);color:var(--green)}.pill.warn,.pill.on_hold,.pill.blocked,.pill.sent_back,.pill.pending_payment,.pill.issued,.pill.partially_paid{background:var(--amber-bg);color:var(--amber)}.pill.bad,.pill.rejected,.pill.cancelled,.pill.closed,.pill.void{background:var(--red-bg);color:var(--red)}.inactive{opacity:.5}.warn-banner{background:var(--amber-bg);color:#7a5a13;border:1px solid #ecd9b3;border-radius:8px;margin-bottom:1.25rem;padding:.7rem .9rem;font-size:.9rem}.subpanel{border:1px solid var(--line);background:#fafbff;border-radius:10px;margin-top:.75rem;padding:.9rem 1rem}.progress{background:var(--line);border-radius:999px;height:8px;margin:.3rem 0;overflow:hidden}.progress>span{background:var(--green);height:100%;display:block}.list-item{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 0;display:flex}.list-item:last-child{border-bottom:none}.list-item .meta{color:var(--muted);font-size:.85rem}.stack{flex-direction:column;gap:.35rem;display:flex}.rowflex{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.note-box{background:var(--amber-bg);color:#7a5a13;border:1px solid #ecd9b3;border-radius:8px;margin-top:.4rem;padding:.5rem .7rem;font-size:.85rem}.mini-status{font:inherit;border:1px solid var(--line-strong);background:var(--surface);color:inherit;border-radius:7px;padding:.25rem .4rem;font-size:.82rem}.link-btn{color:var(--secondary);background:0 0;border:none;padding:0;font-size:.85rem}.link-btn:hover{text-decoration:underline}.error-banner{background:var(--red-bg);color:var(--red);border:1px solid #f5c6c0;border-radius:8px;margin-bottom:1rem;padding:.6rem .85rem;font-size:.9rem}.ok-banner{background:var(--green-bg);color:var(--green);border:1px solid #bfe6d0;border-radius:8px;margin-bottom:1rem;padding:.6rem .85rem;font-size:.9rem}.stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem 1.1rem}.stat .label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:700}.stat .value{color:var(--primary);font-variant-numeric:tabular-nums;margin-top:.2rem;font-size:1.6rem;font-weight:700}.signin{background:linear-gradient(160deg,#eef0fd,#f5f6fb);place-items:center;min-height:100vh;padding:1.5rem;display:grid}.signin-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-align:center;border-radius:16px;width:100%;max-width:380px;padding:2.25rem}.signin-mark{background:var(--primary);color:#fff;border-radius:15px;justify-content:center;align-items:center;width:60px;height:60px;margin-bottom:1rem;display:inline-flex}.signin-card h1{margin-bottom:.35rem}.signin-card p{color:var(--muted);margin:0 0 1.5rem}.spinner{border:3px solid var(--line);border-top-color:var(--primary);border-radius:50%;width:28px;height:28px;margin:3rem auto;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;color:var(--muted);padding:2.5rem 1rem}.toolbar{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1rem;display:flex}.toolbar .grow{flex:1}.actions{gap:.4rem;display:flex}:root{--brand-primary:#4f46e5;--brand-primary-600:#4338ca;--brand-primary-ink:#fff;--brand-accent:#6366f1;--brand-sidebar:#1e2140;--brand-sidebar-ink:#eef0fb;--brand-sidebar-muted:#a9adcf;--brand-sidebar-active:#ffffff1a;--brand-sidebar-active-ink:#fff;--bg:#f5f6fb;--surface:#fff;--surface-2:#fafbff;--ink:#1a2230;--muted:#5b6675;--line:#e4e6f0;--line-strong:#cbd0e0;--focus-ring:#bcd4ec;--success:#167a4a;--success-bg:#e7f6ee;--warn:#b7791f;--warn-bg:#fbf2e2;--danger:#c0392b;--danger-bg:#fdecea;--info:var(--brand-primary);--info-bg:#eef0fd;--sp-1:.25rem;--sp-2:.5rem;--sp-3:.75rem;--sp-4:1rem;--sp-5:1.25rem;--sp-6:1.5rem;--sp-8:2rem;--r-sm:8px;--r-md:12px;--r-lg:16px;--r-pill:999px;--shadow-sm:0 1px 2px #1018280f;--shadow-md:0 1px 2px #1018280f, 0 4px 16px #1018280f;--shadow-lg:0 12px 32px #10182824;--fs-display:2rem;--fs-h1:1.5rem;--fs-h2:1.15rem;--fs-h3:1rem;--fs-body:.95rem;--fs-sm:.85rem;--fs-xs:.76rem;--font-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono:ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;--series-1:var(--brand-primary);--series-2:var(--brand-accent);--series-3:#167a4a;--series-4:#b7791f;--series-5:#c0392b;--series-6:#64748b}[data-preset=legal]{--brand-primary:#0c2f5c;--brand-primary-600:#0a2749;--brand-primary-ink:#fff;--brand-accent:#c79a3a;--brand-sidebar:#0c2f5c;--brand-sidebar-ink:#eaf0f8;--brand-sidebar-muted:#9db3d0;--brand-sidebar-active:#c79a3a29;--brand-sidebar-active-ink:#fff;--info:#0c2f5c;--info-bg:#e9eff7;--series-1:#0c2f5c;--series-2:#c79a3a}:root{--primary:var(--brand-primary);--primary-600:var(--brand-primary-600);--secondary:var(--brand-accent);--green:var(--success);--green-bg:var(--success-bg);--amber:var(--warn);--amber-bg:var(--warn-bg);--red:var(--danger);--red-bg:var(--danger-bg);--indigo-bg:var(--info-bg);--radius:var(--r-md);--shadow:var(--shadow-md)}.launcher.svelte-19i7zm8{z-index:50;background:var(--brand-primary);color:#fff;cursor:pointer;width:52px;height:52px;box-shadow:var(--shadow-lg);border:none;border-radius:999px;place-items:center;transition:transform .15s,filter .15s;display:grid;position:fixed;bottom:1.4rem;right:1.4rem}.launcher.svelte-19i7zm8:hover{filter:brightness(1.05);transform:translateY(-2px)}.launcher.hidden.svelte-19i7zm8{display:none}.panel.svelte-19i7zm8{z-index:51;background:var(--surface);border:1px solid var(--border,#00000014);width:min(380px,100vw - 2rem);height:min(560px,100vh - 2rem);box-shadow:var(--shadow-lg);border-radius:16px;flex-direction:column;display:flex;position:fixed;bottom:1.4rem;right:1.4rem;overflow:hidden}.head.svelte-19i7zm8{background:var(--brand-sidebar);color:var(--brand-sidebar-ink);justify-content:space-between;align-items:center;gap:.6rem;padding:.85rem .95rem;display:flex}.who.svelte-19i7zm8{align-items:center;gap:.6rem;display:flex}.spark.svelte-19i7zm8{background:var(--brand-accent);color:#fff;border-radius:9px;flex:none;place-items:center;width:32px;height:32px;display:grid}.title.svelte-19i7zm8{font-size:.95rem;font-weight:650;line-height:1.1}.sub.svelte-19i7zm8{color:var(--brand-sidebar-muted);margin-top:2px;font-size:.72rem}.close.svelte-19i7zm8{color:var(--brand-sidebar-ink);cursor:pointer;opacity:.8;background:0 0;border:none;padding:0 .2rem;font-size:1.5rem;line-height:1}.close.svelte-19i7zm8:hover{opacity:1}.body.svelte-19i7zm8{background:var(--bg);flex-direction:column;flex:auto;gap:.6rem;min-height:0;padding:.9rem;display:flex;overflow-y:auto}.intro.svelte-19i7zm8{color:var(--muted);font-size:.85rem}.intro.svelte-19i7zm8 p:where(.svelte-19i7zm8){margin:0 0 .6rem}.chips.svelte-19i7zm8{flex-direction:column;gap:.4rem;display:flex}.chip.svelte-19i7zm8{text-align:left;background:var(--surface);border:1px solid var(--border,#0000001a);color:var(--ink);cursor:pointer;border-radius:10px;padding:.5rem .7rem;font-size:.82rem}.chip.svelte-19i7zm8:hover{border-color:var(--brand-accent);color:var(--brand-primary)}.row.svelte-19i7zm8{display:flex}.row.user.svelte-19i7zm8{justify-content:flex-end}.bubble.svelte-19i7zm8{white-space:pre-wrap;word-break:break-word;border-radius:12px;max-width:82%;padding:.55rem .75rem;font-size:.86rem;line-height:1.4}.row.assistant.svelte-19i7zm8 .bubble:where(.svelte-19i7zm8){background:var(--surface);border:1px solid var(--border,#00000014);color:var(--ink);border-bottom-left-radius:4px}.row.user.svelte-19i7zm8 .bubble:where(.svelte-19i7zm8){background:var(--brand-primary);color:#fff;border-bottom-right-radius:4px}.typing.svelte-19i7zm8{gap:4px;display:inline-flex}.typing.svelte-19i7zm8 span:where(.svelte-19i7zm8){background:var(--muted);border-radius:999px;width:6px;height:6px;animation:1.2s ease-in-out infinite svelte-19i7zm8-blink}.typing.svelte-19i7zm8 span:where(.svelte-19i7zm8):nth-child(2){animation-delay:.2s}.typing.svelte-19i7zm8 span:where(.svelte-19i7zm8):nth-child(3){animation-delay:.4s}@keyframes svelte-19i7zm8-blink{0%,80%,to{opacity:.3}40%{opacity:1}}.composer.svelte-19i7zm8{border-top:1px solid var(--border,#00000014);background:var(--surface);align-items:flex-end;gap:.5rem;padding:.65rem;display:flex}.composer.svelte-19i7zm8 textarea:where(.svelte-19i7zm8){resize:none;border:1px solid var(--border,#00000024);max-height:120px;font:inherit;color:var(--ink);background:var(--bg);border-radius:10px;flex:auto;padding:.5rem .65rem;font-size:.86rem}.composer.svelte-19i7zm8 textarea:where(.svelte-19i7zm8):focus{outline:2px solid var(--brand-accent);outline-offset:-1px}.send.svelte-19i7zm8{background:var(--brand-primary);color:#fff;cursor:pointer;border:none;border-radius:10px;flex:none;place-items:center;width:38px;height:38px;display:grid}.send.svelte-19i7zm8:disabled{opacity:.45;cursor:default}@media (prefers-reduced-motion:reduce){.launcher.svelte-19i7zm8,.typing.svelte-19i7zm8 span:where(.svelte-19i7zm8){transition:none;animation:none}}.layout.svelte-12qhfyh{background:var(--bg);grid-template-columns:248px 1fr;min-height:100vh;display:grid}.content.svelte-12qhfyh{flex-direction:column;min-width:0;display:flex}.main.svelte-12qhfyh{flex:1;width:100%;max-width:1480px;padding:1.6rem 2rem 4rem}.sidebar.svelte-12qhfyh{background:var(--brand-sidebar);height:100vh;color:var(--brand-sidebar-ink);flex-direction:column;align-self:start;gap:.5rem;padding:1.1rem .85rem .85rem;display:flex;position:sticky;top:0}.brand.svelte-12qhfyh{color:var(--brand-sidebar-ink);align-items:center;gap:.6rem;padding:.35rem .5rem .9rem;text-decoration:none;display:flex}.brand-mark.svelte-12qhfyh{background:var(--brand-accent);color:#1a2230;border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.brand-text.svelte-12qhfyh{flex-direction:column;min-width:0;line-height:1.1;display:flex}.brand-name.svelte-12qhfyh{white-space:nowrap;text-overflow:ellipsis;font-size:1.02rem;font-weight:700;overflow:hidden}.brand-tag.svelte-12qhfyh{letter-spacing:.22em;color:var(--brand-accent);font-size:.66rem;font-weight:700}.nav.svelte-12qhfyh{flex-flow:column;flex:auto;align-items:stretch;gap:2px;min-height:0;margin-top:.4rem;margin-left:0;display:flex;overflow-y:auto}.navitem.svelte-12qhfyh{border-radius:var(--r-sm);color:var(--brand-sidebar-muted);align-items:center;gap:.7rem;padding:.6rem .7rem;font-size:.92rem;font-weight:500;text-decoration:none;display:flex}.navitem.svelte-12qhfyh:hover{background:var(--brand-sidebar-active);color:var(--brand-sidebar-active-ink)}.navitem.active.svelte-12qhfyh{background:var(--brand-sidebar-active);color:var(--brand-sidebar-active-ink);font-weight:600}.navlabel.svelte-12qhfyh{flex:1}.userbar.svelte-12qhfyh{flex-direction:column;gap:.5rem;margin-top:auto;padding-top:.6rem;display:flex}.org-switch.svelte-12qhfyh{font:inherit;border-radius:var(--r-sm);color:var(--brand-sidebar-ink);background:#ffffff0f;border:1px solid #ffffff24;padding:.4rem .5rem;font-size:.82rem}.usercard.svelte-12qhfyh{border-radius:var(--r-md);background:#ffffff0f;align-items:center;gap:.55rem;padding:.5rem;display:flex}.uinfo.svelte-12qhfyh{flex-direction:column;flex:1;min-width:0;line-height:1.2;display:flex}.uinfo.svelte-12qhfyh strong:where(.svelte-12qhfyh){white-space:nowrap;text-overflow:ellipsis;font-size:.88rem;overflow:hidden}.uinfo.svelte-12qhfyh span:where(.svelte-12qhfyh){color:var(--brand-sidebar-muted);font-size:.74rem}.iconbtn.svelte-12qhfyh{border-radius:var(--r-sm);width:30px;height:30px;color:var(--brand-sidebar-muted);cursor:pointer;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.iconbtn.svelte-12qhfyh:hover{color:var(--brand-sidebar-ink);background:#ffffff1a}.mobar.svelte-12qhfyh{background:var(--brand-sidebar);color:var(--brand-sidebar-ink);z-index:30;align-items:center;gap:.6rem;padding:.6rem 1rem;display:none;position:sticky;top:0}.mobar-brand.svelte-12qhfyh{font-weight:700}.mobar-brand.svelte-12qhfyh em:where(.svelte-12qhfyh){color:var(--brand-accent);letter-spacing:.18em;font-size:.7rem;font-style:normal}.hamburger.svelte-12qhfyh{color:inherit;cursor:pointer;background:0 0;border:none;padding:.2rem;display:inline-flex}.scrim.svelte-12qhfyh{display:none}.boot.svelte-12qhfyh{background:var(--bg);place-items:center;min-height:100vh;display:grid}.spinner.svelte-12qhfyh{border:3px solid var(--line);border-top-color:var(--brand-primary);border-radius:50%;width:30px;height:30px;animation:.7s linear infinite svelte-12qhfyh-spin}@keyframes svelte-12qhfyh-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner.svelte-12qhfyh{animation:none}}.signin.svelte-12qhfyh{background:linear-gradient(160deg, var(--info-bg), var(--bg));place-items:center;min-height:100vh;padding:1.5rem;display:grid}.signin-card.svelte-12qhfyh{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);text-align:center;width:100%;max-width:380px;padding:2.25rem}.signin-mark.svelte-12qhfyh{background:var(--brand-primary);width:60px;height:60px;color:var(--brand-primary-ink);border-radius:15px;justify-content:center;align-items:center;margin-bottom:1rem;display:inline-flex}.signin-card.svelte-12qhfyh h1:where(.svelte-12qhfyh){color:var(--ink);margin:0 0 .35rem}.signin-card.svelte-12qhfyh p:where(.svelte-12qhfyh){color:var(--muted);margin:0 0 1.5rem}.signin-btn.svelte-12qhfyh{border-radius:var(--r-sm);background:var(--brand-primary);width:100%;color:var(--brand-primary-ink);cursor:pointer;border:none;padding:.7rem 1rem;font-size:.95rem;font-weight:600}.signin-btn.svelte-12qhfyh:hover{background:var(--brand-primary-600)}.signin-btn.svelte-12qhfyh:disabled{opacity:.6;cursor:not-allowed}.noaccess.svelte-12qhfyh{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);text-align:center;max-width:480px;margin:2rem auto;padding:3rem 1.5rem}.noaccess.svelte-12qhfyh h2:where(.svelte-12qhfyh){color:var(--ink)}.noaccess.svelte-12qhfyh p:where(.svelte-12qhfyh){color:var(--muted);max-width:420px;margin:.5rem auto 0}.noaccess.svelte-12qhfyh .signin-mark:where(.svelte-12qhfyh){margin:0 auto 1rem}@media (width<=860px){.layout.svelte-12qhfyh{grid-template-columns:1fr}.mobar.svelte-12qhfyh{display:flex}.sidebar.svelte-12qhfyh{z-index:40;width:248px;transition:transform .2s;position:fixed;transform:translate(-100%)}.sidebar.open.svelte-12qhfyh{transform:translate(0)}.scrim.svelte-12qhfyh{z-index:35;background:#10182873;border:none;display:block;position:fixed;inset:0}.main.svelte-12qhfyh{padding:1.1rem 1.1rem 3rem}}@media (prefers-reduced-motion:reduce){.sidebar.svelte-12qhfyh{transition:none}}
