:root{--bg:#f6f7f9;--surface:#fff;--surface-2:#f1f3f6;--border:#e2e6eb;--text:#17202a;--text-muted:#5b6673;--accent:#1f4e79;--accent-strong:#163a5b;--accent-soft:#e7eef6;--focus:#2f7bd1;--tone-neutral-bg:#eef1f4;--tone-neutral-fg:#3e4a57;--tone-info-bg:#e6f0fb;--tone-info-fg:#1c5591;--tone-success-bg:#e5f5ec;--tone-success-fg:#1f6b40;--tone-warning-bg:#fdf3e1;--tone-warning-fg:#8a5a00;--tone-danger-bg:#fdeaea;--tone-danger-fg:#a12a2a;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--text-xs:.75rem;--text-sm:.875rem;--text-md:1rem;--text-lg:1.125rem;--text-xl:1.375rem;--text-2xl:1.75rem;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--leading:1.5;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-full:999px;--shadow-sm:0 1px 2px #1018280f;--shadow-md:0 4px 12px #10182814;--shadow-lg:0 12px 32px #10182829;--control-h:38px;--sidebar-w:240px;--sidebar-w-compact:72px;--header-h:60px;--content-max:1280px}@media (prefers-color-scheme:dark){:root{--bg:#0f141a;--surface:#161d25;--surface-2:#1c2530;--border:#2a3542;--text:#e8edf2;--text-muted:#9aa7b4;--accent:#7fb2e5;--accent-strong:#a7cbef;--accent-soft:#1d2b3a;--focus:#7fb2e5;--tone-neutral-bg:#232d38;--tone-neutral-fg:#c3ccd5;--tone-info-bg:#16304b;--tone-info-fg:#9cc8f2;--tone-success-bg:#143826;--tone-success-fg:#8fd8ae;--tone-warning-bg:#3a2d10;--tone-warning-fg:#f0c674;--tone-danger-bg:#3d1a1a;--tone-danger-fg:#f3a1a1;--shadow-sm:none;--shadow-md:0 4px 12px #0006;--shadow-lg:0 12px 32px #00000080}}*,:before,:after{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:var(--text-md);line-height:var(--leading);-webkit-font-smoothing:antialiased;overflow-x:hidden}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{line-height:1.25;font-weight:var(--weight-semibold);margin:0}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.muted{color:var(--text-muted)}.stack{gap:var(--space-4);flex-direction:column;display:flex}.row{align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}.grid{gap:var(--space-4);display:grid}.grid-kpi{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.grid-2{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))}.shell{grid-template-columns:var(--sidebar-w) minmax(0, 1fr);min-height:100vh;display:grid;overflow-x:clip}.shell-sidebar{background:var(--surface);border-right:1px solid var(--border);height:100vh;padding:var(--space-4) var(--space-3);gap:var(--space-4);flex-direction:column;display:flex;position:sticky;top:0;overflow-y:auto}.shell-brand{align-items:center;gap:var(--space-2);padding:0 var(--space-2);font-weight:var(--weight-semibold);letter-spacing:.04em;color:var(--accent-strong);display:flex}.shell-brand-mark{border-radius:var(--radius-sm);background:var(--accent);color:#fff;width:32px;height:32px;font-size:var(--text-sm);place-items:center;display:inline-grid}.nav-group{flex-direction:column;gap:2px;display:flex}.nav-group-label{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);padding:var(--space-1) var(--space-2)}.nav-link{align-items:center;gap:var(--space-3);padding:var(--space-2);border-radius:var(--radius-sm);color:var(--text);font-size:var(--text-sm);display:flex}.nav-link:hover{background:var(--surface-2);text-decoration:none}.nav-link[aria-current=page]{background:var(--accent-soft);color:var(--accent-strong);font-weight:var(--weight-medium)}.nav-short{border-radius:var(--radius-sm);background:var(--surface-2);width:24px;height:24px;font-size:var(--text-xs);flex:none;place-items:center;display:inline-grid}.shell-main{flex-direction:column;min-width:0;display:flex}.shell-header{z-index:20;height:var(--header-h);align-items:center;gap:var(--space-3);padding:0 var(--space-5);background:color-mix(in srgb, var(--surface) 92%, transparent);border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;position:sticky;top:0}.shell-header-spacer{flex:1}.shell-header .shell-menu-btn{display:none}.shell-content{width:100%;max-width:var(--content-max);padding:var(--space-5);gap:var(--space-5);flex-direction:column;margin:0 auto;display:flex}.shell-backdrop{display:none}@media (max-width:1024px){.shell{grid-template-columns:var(--sidebar-w-compact) minmax(0, 1fr)}.shell-sidebar .nav-label,.shell-sidebar .nav-group-label,.shell-brand-name{display:none}.shell-sidebar .nav-link{justify-content:center}}@media (max-width:720px){.shell{grid-template-columns:minmax(0,1fr)}.shell-sidebar{width:min(80vw, var(--sidebar-w));z-index:40;box-shadow:var(--shadow-lg);transition:transform .2s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.shell[data-nav-open=true] .shell-sidebar{transform:none}.shell[data-nav-open=true] .shell-backdrop{z-index:30;background:#00000059;border:0;display:block;position:fixed;inset:0}.shell-sidebar .nav-label,.shell-sidebar .nav-group-label,.shell-brand-name{display:initial}.shell-sidebar .nav-link{justify-content:flex-start}.shell-header .shell-menu-btn{display:inline-flex}.shell-header,.shell-content{padding-left:var(--space-4);padding-right:var(--space-4)}}.page-header{justify-content:space-between;align-items:flex-end;gap:var(--space-3);flex-wrap:wrap;display:flex}.page-title{font-size:var(--text-2xl)}.page-subtitle{margin:var(--space-1) 0 0;color:var(--text-muted);font-size:var(--text-sm)}.section-title{font-size:var(--text-lg)}.ui-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);min-width:0}.ui-card-header{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border);display:flex}.ui-card-body{padding:var(--space-4) var(--space-5)}.ui-card-body--flush{padding:0}.ui-button{justify-content:center;align-items:center;gap:var(--space-2);height:var(--control-h);padding:0 var(--space-4);border-radius:var(--radius-sm);font:inherit;font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;white-space:nowrap;border:1px solid #0000;display:inline-flex}.ui-button:disabled{opacity:.55;cursor:not-allowed}.ui-button--primary{background:var(--accent);color:#fff}.ui-button--primary:hover:not(:disabled){background:var(--accent-strong)}.ui-button--secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.ui-button--secondary:hover:not(:disabled){background:var(--surface-2)}.ui-button--ghost{color:var(--text);background:0 0}.ui-button--ghost:hover:not(:disabled){background:var(--surface-2)}.ui-button--danger{background:var(--tone-danger-fg);color:#fff}.ui-button--sm{height:30px;padding:0 var(--space-3);font-size:var(--text-xs)}.ui-field{gap:var(--space-1);font-size:var(--text-sm);flex-direction:column;min-width:0;display:flex}.ui-field-label{font-weight:var(--weight-medium)}.ui-field-hint{color:var(--text-muted);font-size:var(--text-xs)}.ui-field-error{color:var(--tone-danger-fg);font-size:var(--text-xs)}.ui-input,.ui-select{height:var(--control-h);width:100%;padding:0 var(--space-3);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;font-size:var(--text-sm)}.ui-input[aria-invalid=true]{border-color:var(--tone-danger-fg)}.ui-search{min-width:min(100%,260px);position:relative}.ui-search .ui-input{padding-left:32px}.ui-search-icon{color:var(--text-muted);font-size:var(--text-sm);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.ui-badge{align-items:center;gap:var(--space-1);padding:2px var(--space-2);border-radius:var(--radius-full);font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap;display:inline-flex}.ui-badge--neutral{background:var(--tone-neutral-bg);color:var(--tone-neutral-fg)}.ui-badge--info{background:var(--tone-info-bg);color:var(--tone-info-fg)}.ui-badge--success{background:var(--tone-success-bg);color:var(--tone-success-fg)}.ui-badge--warning{background:var(--tone-warning-bg);color:var(--tone-warning-fg)}.ui-badge--danger{background:var(--tone-danger-bg);color:var(--tone-danger-fg)}.ui-badge-dot{background:currentColor;border-radius:50%;width:6px;height:6px}.ui-table-wrap{-webkit-overflow-scrolling:touch;width:100%;overflow-x:auto}.ui-table{border-collapse:collapse;width:100%;font-size:var(--text-sm)}.ui-table th{text-align:left;font-weight:var(--weight-medium);color:var(--text-muted);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em;padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);white-space:nowrap}.ui-table td{padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);vertical-align:top}.ui-table tr:last-child td{border-bottom:0}.ui-table td.ui-col-text{min-width:280px}.ui-table tbody tr:hover{background:var(--surface-2)}.ui-state{justify-content:center;align-items:center;gap:var(--space-2);text-align:center;padding:var(--space-7) var(--space-4);color:var(--text-muted);flex-direction:column;display:flex}.ui-state-icon{background:var(--surface-2);width:44px;height:44px;font-size:var(--text-lg);color:var(--text-muted);border-radius:50%;place-items:center;display:inline-grid}.ui-state-title{color:var(--text);font-weight:var(--weight-semibold);font-size:var(--text-md)}.ui-state--error .ui-state-icon{background:var(--tone-danger-bg);color:var(--tone-danger-fg)}.ui-state--permission .ui-state-icon,.ui-state--config .ui-state-icon{background:var(--tone-warning-bg);color:var(--tone-warning-fg)}.ui-state--compact{padding:var(--space-5) var(--space-3)}.ui-skeleton{border-radius:var(--radius-sm);background:linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2));background-size:200% 100%;height:14px;animation:1.2s linear infinite ui-shimmer}@keyframes ui-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.ui-skeleton{animation:none}}.ui-kpi{padding:var(--space-4);gap:var(--space-1);flex-direction:column;display:flex}.ui-kpi-label{font-size:var(--text-xs);color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.ui-kpi-value{font-size:var(--text-2xl);font-weight:var(--weight-semibold);color:var(--accent-strong)}.ui-pagination{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border);font-size:var(--text-sm);flex-wrap:wrap;display:flex}.ui-tabs{gap:var(--space-1);border-bottom:1px solid var(--border);display:flex;overflow-x:auto}.ui-tab{padding:var(--space-2) var(--space-3);font:inherit;font-size:var(--text-sm);color:var(--text-muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000}.ui-tab[aria-selected=true]{color:var(--accent-strong);border-bottom-color:var(--accent);font-weight:var(--weight-medium)}.ui-tab-panel{padding-top:var(--space-4)}.ui-dropdown{display:inline-block;position:relative}.ui-dropdown-menu{z-index:50;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);min-width:200px;box-shadow:var(--shadow-md);padding:var(--space-1);position:absolute;top:calc(100% + 4px);right:0}.ui-dropdown-item{text-align:left;width:100%;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);font:inherit;font-size:var(--text-sm);color:var(--text);cursor:pointer;background:0 0;border:0;display:block}.ui-dropdown-item:hover{background:var(--surface-2)}.ui-modal{border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);background:var(--surface);width:min(520px,100vw - 32px);color:var(--text);border:0;padding:0}.ui-modal::backdrop{background:#0a0f1473}.ui-modal-header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border);font-weight:var(--weight-semibold)}.ui-modal-body{padding:var(--space-4) var(--space-5)}.ui-modal-footer{padding:var(--space-3) var(--space-5);border-top:1px solid var(--border);justify-content:flex-end;gap:var(--space-2);flex-wrap:wrap;display:flex}.ui-toasts{right:var(--space-4);bottom:var(--space-4);z-index:60;gap:var(--space-2);flex-direction:column;width:min(360px,100vw - 32px);display:flex;position:fixed}.ui-toast{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:var(--space-3) var(--space-4);font-size:var(--text-sm);gap:var(--space-3);border-left-width:4px;align-items:flex-start;display:flex}.ui-toast--success{border-left-color:var(--tone-success-fg)}.ui-toast--error{border-left-color:var(--tone-danger-fg)}.ui-toast--info{border-left-color:var(--tone-info-fg)}.ui-dl{gap:var(--space-2) var(--space-4);font-size:var(--text-sm);grid-template-columns:minmax(120px,200px) minmax(0,1fr);margin:0;display:grid}.ui-dl dt{color:var(--text-muted)}.ui-dl dd{overflow-wrap:anywhere;margin:0}@media (max-width:520px){.ui-dl{grid-template-columns:minmax(0,1fr)}.ui-dl dd{margin-bottom:var(--space-2)}}.ui-notice{border:1px dashed var(--border);border-radius:var(--radius-md);padding:var(--space-3) var(--space-4);font-size:var(--text-sm);color:var(--text-muted);background:var(--surface-2)}.ui-list{margin:0;padding:0;list-style:none}.ui-list li{padding:var(--space-3) var(--space-5);border-bottom:1px solid var(--border);justify-content:space-between;gap:var(--space-3);font-size:var(--text-sm);flex-wrap:wrap;display:flex}.ui-list li:last-child{border-bottom:0}@media (max-width:720px){.ui-table{min-width:640px}.ui-table td:first-child{min-width:170px}}@media (max-width:520px){.shell-user-name{display:none}}
