:root{--background: #f9fafb;--foreground: #111827;--muted-bg: #f3f4f6;--muted-foreground: #6b7280;--card: #ffffff;--border: #e5e7eb;--primary: #6366f1;--primary-600: #4f46e5;--primary-50: #eef2ff;--destructive: #ef4444;--success: #10b981;--warning: #f59e0b;--info: #3b82f6;--sidebar: #ffffff;--sidebar-foreground: #374151;--sidebar-accent: #f3f4f6;--shadow-card: 0 1px 3px 0 rgb(0 0 0 / .05), 0 1px 2px -1px rgb(0 0 0 / .05);--shadow-dropdown: 0 8px 24px -6px rgb(0 0 0 / .14), 0 2px 6px -2px rgb(0 0 0 / .06);--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--sidebar-w: 252px;--sans: "Geist", "Inter", system-ui, sans-serif;--paper: var(--background);--ink: var(--foreground);--muted: var(--muted-foreground);--line: var(--border);--navy: var(--primary);--red: var(--destructive);--serif: var(--sans);--good: #059669;--good-bg: #ecfdf5;--warn: #b45309;--warn-bg: #fffbeb;--bad-bg: #fef2f2;color-scheme:light}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:var(--background);color:var(--foreground);font-family:var(--sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}img{max-width:100%}h1,h2,h3,p{margin:0}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}input[type=checkbox],input[type=radio]{accent-color:var(--primary)}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--muted-foreground)}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.skip{position:absolute;left:1rem;top:-4rem;background:#fff;padding:.5rem .8rem;z-index:80;border-radius:var(--radius-md)}.skip:focus{top:.5rem}.shell{min-height:100vh;background:var(--background)}.backdrop{position:fixed;inset:0;z-index:30;border:0;background:#0006;cursor:pointer}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);background:var(--sidebar);color:var(--sidebar-foreground);border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:40}.brand-bar{display:flex;align-items:center;min-height:68px;padding:.85rem 1rem;border-bottom:1px solid var(--border);flex-shrink:0}.brand{display:flex;align-items:center;text-decoration:none;color:inherit}.brand:hover{text-decoration:none}.logo{display:block;width:100%;max-width:196px;height:auto}.nav{flex:1;overflow:auto;padding:1rem .75rem 1.25rem;display:flex;flex-direction:column;gap:1.5rem}.nav-label{margin:0 .75rem .4rem;color:var(--muted-foreground);font-size:.6875rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.nav a{color:var(--sidebar-foreground);text-decoration:none;padding:7px .75rem;border-radius:var(--radius-md);display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:13px;font-weight:500;transition:background-color .15s ease,color .15s ease}.nav a:hover{background:var(--sidebar-accent);color:var(--foreground);text-decoration:none}.nav a.active{background:#6366f114;color:var(--primary)}.count{background:#6366f11a;color:var(--primary);border-radius:var(--radius-md);min-width:1.25rem;text-align:center;font-size:.6875rem;font-weight:600;padding:.05rem .35rem}.side-foot{margin-top:auto;padding:.85rem 1rem 1rem;border-top:1px solid var(--border);color:var(--muted-foreground);font-size:.75rem}.side-foot strong{color:var(--foreground);display:block;font-weight:600;font-size:.8125rem}.main{margin-left:var(--sidebar-w);min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;gap:.75rem;align-items:center;height:68px;padding:0 1.25rem;background:#fffffff2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid rgb(229 231 235 / .8)}.top-tools,.userbox{display:flex;align-items:center;gap:.5rem;min-width:0}.icon-btn.menu-btn{display:none}select.switcher,.topbar select{background:var(--background);border:1px solid rgb(229 231 235 / .8);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:.45rem .75rem;max-width:240px;height:36px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid rgb(229 231 235 / .8);background:var(--background);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:0;cursor:pointer;position:relative;color:var(--muted-foreground)}.icon-btn:hover{border-color:#6366f14d;background:#6366f10d;color:var(--primary)}.icon-btn svg{width:16px;height:16px}.dot{position:absolute;top:7px;right:7px;width:8px;height:8px;background:var(--destructive);border:2px solid white;border-radius:50%}.user-chip{display:flex;align-items:center;gap:.5rem;height:36px;padding:0 .65rem 0 .25rem;border:1px solid rgb(229 231 235 / .8);border-radius:var(--radius-xl);background:var(--background);box-shadow:var(--shadow-card)}.avatar{width:28px;height:28px;border-radius:var(--radius-lg);display:grid;place-items:center;background:linear-gradient(135deg,#6366f1,#14b8a6);color:#fff;font-size:.6875rem;font-weight:700}.user-name{display:block;font-weight:600;font-size:.75rem;line-height:1}.user-role{display:block;margin-top:.15rem;color:var(--muted-foreground);font-size:.6875rem;line-height:1}.popover{position:absolute;right:1.25rem;top:60px;width:min(380px,calc(100vw - 2rem));background:var(--card);border:1px solid var(--border);border-radius:var(--radius-xl);box-shadow:var(--shadow-dropdown);padding:.85rem 1rem;z-index:30}.popover h2{font-size:.875rem;font-weight:600;margin-bottom:.35rem}.notice{padding:.55rem 0;border-top:1px solid var(--border);display:grid;gap:.1rem}.notice strong{display:block}.notice time{color:var(--muted-foreground);font-size:.75rem}.page{padding:1.25rem 1.5rem 3rem}.page-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:.85rem}.kicker{color:var(--muted-foreground);letter-spacing:.14em;text-transform:uppercase;font-size:.6875rem;font-weight:600}.page-head h1,.login-card h2{font-weight:600;font-size:1.25rem;letter-spacing:-.02em;line-height:1.25;margin:.15rem 0 0}.lede,.updated,.muted{color:var(--muted-foreground)}.lede{margin-top:.15rem;font-size:.875rem}.updated{margin:-.35rem 0 .9rem;font-size:.75rem}.page-actions,.row-actions,.filters,.tabs{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin-bottom:.75rem}.stat,.card,.unit,.dock-panel,.modal{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-xl);box-shadow:var(--shadow-card)}.stat{display:flex;flex-direction:column;min-height:118px;padding:1rem 1.05rem;text-decoration:none;color:inherit;transition:border-color .15s ease,box-shadow .15s ease}.stat:hover{border-color:#6366f159;text-decoration:none}.stat em,.eyebrow{font-style:normal;color:var(--muted-foreground);font-size:.75rem;font-weight:500}.stat b,.figure{font-weight:600;font-size:1.5rem;letter-spacing:-.03em;line-height:1.2;margin:.35rem 0 .15rem;font-variant-numeric:tabular-nums}.stat span{color:var(--muted-foreground);font-size:.75rem}.card{padding:1.15rem 1.2rem 1.2rem}.card+.card,.stack>*+*{margin-top:.75rem}.card h2,.modal h2{font-size:.875rem;font-weight:600;letter-spacing:-.01em}.split{display:grid;grid-template-columns:1.4fr .8fr;gap:.75rem}.split.even{grid-template-columns:1fr 1fr}.chart{height:280px;margin-top:.75rem}.table-wrap{overflow-x:auto;margin-top:.65rem}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--border);vertical-align:top}th{font-size:.6875rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-foreground);font-weight:600;white-space:nowrap}td.num,th.num{text-align:right}tbody tr{transition:background-color .15s ease}tbody tr:hover td{background:#f9fafb}tbody tr:last-child td{border-bottom:0}tr.hot td{background:#fef2f2}tr.good td{background:#ecfdf5}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:.1rem .55rem;font-size:.75rem;font-weight:500;background:#6366f11a;color:var(--primary);white-space:nowrap}.b-good{background:#10b9811a;color:#059669}.b-warn{background:#f59e0b1f;color:#b45309}.b-bad{background:#ef44441a;color:#dc2626}.b-info{background:#3b82f61a;color:#2563eb}.b-neutral{background:var(--muted-bg);color:var(--foreground)}.btn,.tab{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border-radius:var(--radius-lg);border:1px solid var(--border);background:transparent;padding:.4rem .9rem;min-height:36px;text-decoration:none;cursor:pointer;font-weight:500;font-size:.875rem;color:var(--foreground);white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.btn:hover,.tab:hover{background:var(--muted-bg);text-decoration:none}.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-primary:hover{background:var(--primary-600);border-color:var(--primary-600);color:#fff}.btn-red{background:var(--destructive);color:#fff;border-color:var(--destructive)}.btn-red:hover{background:#dc2626;color:#fff}.btn-ghost{background:transparent;border-color:transparent;color:var(--primary)}.btn-ghost:hover{background:var(--primary-50)}.btn[disabled]{opacity:.5;cursor:not-allowed}.btn-small{min-height:32px;padding:.2rem .7rem;font-size:.75rem}.tab.on{background:var(--primary);color:#fff;border-color:var(--primary)}.field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.75rem}.field span,.field>label{font-weight:500;font-size:.8125rem}input,select,textarea{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:.5rem .7rem;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6366f126}textarea{min-height:110px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.check{display:flex;gap:.5rem;align-items:center;font-weight:500}.check input{width:auto}.banner{border:1px solid var(--border);background:#fff;border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:.75rem .95rem;margin-bottom:.75rem;border-left:3px solid var(--primary)}.banner-bad{border-left-color:var(--destructive);background:#fef2f2}.banner-warn{border-left-color:var(--warning);background:#fffbeb}.banner-good{border-left-color:var(--success);background:#ecfdf5}.feed{list-style:none;padding:0;margin:.5rem 0 0}.feed li{padding:.55rem 0;border-top:1px solid var(--border)}.feed time{display:block;color:var(--muted-foreground);font-size:.75rem}.units{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem;margin-top:.75rem}.unit{padding:.85rem;min-height:132px}.unit.vacant{background:#fff7ed;border-color:#fed7aa}.unit strong{font-size:1.05rem;font-weight:600;display:block}.modal-back{position:fixed;inset:0;background:#0f172a73;display:grid;place-items:center;z-index:50;padding:1rem}.modal{width:min(720px,100%);max-height:min(86vh,860px);overflow:auto;padding:1.15rem 1.2rem 1.25rem;box-shadow:0 24px 48px -12px #00000040}.modal header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:.6rem}.letter{white-space:pre-wrap}.login{min-height:100vh;display:flex;justify-content:center;padding:2rem 1rem;background:var(--background)}.login-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:0;align-items:stretch}.login-intro{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1rem;padding:3rem 3.5rem;background:var(--card);border-right:1px solid var(--border)}.login-intro .logo{max-width:280px}.login-intro h1{max-width:28rem;font-size:clamp(1.6rem,2.4vw,2.1rem);font-weight:600;letter-spacing:-.03em;line-height:1.2}.login-intro p{max-width:32rem;color:var(--muted-foreground);font-size:1rem;line-height:1.6}.login-panel{display:flex;align-items:center;justify-content:center;padding:2rem 1.5rem}.login-card{width:min(420px,100%);background:var(--card);border:1px solid var(--border);border-radius:var(--radius-xl);box-shadow:var(--shadow-dropdown);padding:1.5rem 1.4rem 1.25rem}.login-card h2{font-size:1.5rem;font-weight:600;letter-spacing:-.02em}.login-card .kicker,.login-card h2,.login-card .lede{text-align:center}.login-card>.btn-primary,.login-card form>.btn-primary{width:100%}.field .password-field{position:relative;display:block;font-size:inherit;font-weight:400}.password-field input{padding-right:4.25rem}.password-toggle{position:absolute;top:50%;right:.35rem;transform:translateY(-50%);border:0;background:transparent;color:var(--primary);font-size:.75rem;font-weight:600;cursor:pointer;padding:.25rem .45rem}.spinner{width:14px;height:14px;border:2px solid rgb(255 255 255 / .45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}.btn[aria-busy=true]{opacity:1}@keyframes spin{to{transform:rotate(360deg)}}.access-link{text-align:center;padding-top:1rem;margin:0}.error{color:var(--destructive);font-weight:600;font-size:.875rem}.dock{position:fixed;right:1.1rem;bottom:1.1rem;z-index:35}.dock-panel{width:min(380px,calc(100vw - 1.5rem));height:520px;display:flex;flex-direction:column;margin-bottom:.5rem;box-shadow:var(--shadow-dropdown);overflow:hidden}.dock-head,.chat-log,.dock-form{padding:.7rem .85rem}.dock-head{border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:.5rem}.chat-log{flex:1;overflow:auto;display:flex;flex-direction:column;gap:.45rem;background:var(--background)}.bubble{max-width:90%;padding:.45rem .65rem;border-radius:12px;background:#fff;border:1px solid var(--border)}.bubble.user{align-self:flex-end;background:var(--primary);color:#fff;border-color:var(--primary)}.bubble.staff{border-color:#c7d2fe}.bubble small{display:block;opacity:.75}.dock-form{border-top:1px solid var(--border);display:grid;gap:.4rem;background:#fff}.launcher{box-shadow:var(--shadow-dropdown)}.timeline{list-style:none;margin:.4rem 0 0;padding:0}.timeline li{padding:.45rem 0 .45rem .8rem;border-left:2px solid var(--border)}.bar{height:8px;background:var(--muted-bg);border-radius:99px;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,#6366f1,#8b5cf6)}@media(max-width:980px){.stats,.split,.split.even,.form-grid,.login-split{grid-template-columns:1fr}.login-intro{border-right:0;border-bottom:1px solid var(--border);padding:2rem 1.25rem 1.5rem}.login-panel{padding:1.5rem 1rem 2rem}}@media(max-width:860px){.backdrop{display:block}.sidebar{transform:translate(-105%);transition:transform .2s ease}.sidebar.open{transform:none}.main{margin-left:0}.icon-btn.menu-btn{display:inline-flex}.page{padding:1rem .9rem 5rem}.page-head{flex-direction:column;align-items:flex-start}.top-tools .muted,.user-role,.user-name{display:none}.user-chip{padding-right:.25rem}}@media(min-width:861px){.backdrop{display:none}}@media(prefers-reduced-motion:reduce){.sidebar,.nav a,.btn,.stat{transition:none}}@media print{.sidebar,.topbar,.dock,.no-print,.backdrop{display:none!important}.main{margin:0}body{background:#fff}}
