:root,[data-theme=light]{--bg: #f4f6f8;--bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(16, 185, 129, .06), transparent 60%);--surface: #ffffff;--surface-2: #f1f4f6;--surface-3: #e9edf0;--border: #e6e9ee;--border-strong: #d4d9e0;--text: #0f172a;--text-strong: #0b1220;--muted: #64748b;--faint: #94a3b8;--accent: #059669;--accent-2: #10b981;--accent-grad: linear-gradient(135deg, #10b981, #059669);--accent-soft: rgba(16, 185, 129, .12);--accent-ring: rgba(16, 185, 129, .35);--on-accent: #ffffff;--green: #059669;--green-soft: rgba(16, 185, 129, .12);--red: #dc2626;--red-soft: rgba(220, 38, 38, .1);--amber: #d97706;--amber-soft: rgba(217, 119, 6, .12);--blue: #2563eb;--blue-soft: rgba(37, 99, 235, .1);--gray-soft: rgba(100, 116, 139, .12);--shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);--shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);--shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .22);--radius: 12px;--radius-sm: 9px}[data-theme=dark]{--bg: #0b0d12;--bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(16, 185, 129, .08), transparent 60%);--surface: #14171f;--surface-2: #1b1f29;--surface-3: #222632;--border: #262b36;--border-strong: #333a47;--text: #eceef3;--text-strong: #f7f9fc;--muted: #8b93a7;--faint: #5c6577;--accent: #34d399;--accent-2: #10b981;--accent-grad: linear-gradient(135deg, #34d399, #10b981);--accent-soft: rgba(52, 211, 153, .14);--accent-ring: rgba(52, 211, 153, .4);--on-accent: #04130d;--green: #34d399;--green-soft: rgba(52, 211, 153, .14);--red: #f87171;--red-soft: rgba(248, 113, 113, .14);--amber: #fbbf24;--amber-soft: rgba(251, 191, 36, .14);--blue: #60a5fa;--blue-soft: rgba(96, 165, 250, .14);--gray-soft: rgba(154, 163, 178, .14);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 6px 18px rgba(0, 0, 0, .4);--shadow-lg: 0 28px 56px -12px rgba(0, 0, 0, .6);--radius: 12px;--radius-sm: 9px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"cv05","ss01"}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{margin:0 0 12px;color:var(--text-strong);font-weight:650;letter-spacing:-.015em}h1{font-size:23px}h2{font-size:16px;font-weight:640}code,.mono{font-family:SF Mono,ui-monospace,JetBrains Mono,Menlo,Consolas,monospace;font-size:12.5px}::selection{background:var(--accent-soft)}*{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:99px;border:3px solid var(--bg)}.app{display:flex;min-height:100vh}.sidebar{width:248px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);padding:16px 14px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:8px 8px 18px}.brand .logo{width:34px;height:34px;border-radius:10px;background:var(--accent-grad);display:grid;place-items:center;color:#fff;box-shadow:0 4px 12px var(--accent-soft)}.brand .logo svg{width:19px;height:19px}.brand b{font-size:16.5px;font-weight:680;letter-spacing:-.02em;color:var(--text-strong)}.nav{display:flex;flex-direction:column;gap:2px}.nav a{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:9px;color:var(--muted);font-weight:530;font-size:13.5px;transition:background .14s,color .14s}.nav a:hover{background:var(--surface-2);color:var(--text);text-decoration:none}.nav a.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav a.active .nav-ico{color:var(--accent)}.nav-ico{display:grid;place-items:center;width:18px;height:18px;color:var(--faint);transition:color .14s}.nav-ico svg{width:17px;height:17px}.sidebar .spacer{flex:1}.sidebar-footer{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--border)}.footer-row{display:flex;align-items:center;gap:8px}.tenant-box{font-size:11.5px;color:var(--faint);line-height:1.5;padding:0 4px}.theme-toggle{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;flex-shrink:0;background:var(--surface-2);border:1px solid var(--border);border-radius:9px;color:var(--muted);cursor:pointer;transition:all .14s;box-shadow:none}.theme-toggle:hover{color:var(--text);border-color:var(--border-strong)}.theme-toggle svg{width:17px;height:17px}.main{flex:1;min-width:0;padding:30px 38px;max-width:1220px;background-image:var(--bg-grad)}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.page-head .sub{color:var(--muted);font-size:13.5px;margin-top:2px;max-width:70ch}.grid{display:grid;gap:16px}.grid.cols-2{grid-template-columns:1fr 1fr}.grid.cols-3{grid-template-columns:repeat(3,1fr)}.grid.cols-4{grid-template-columns:repeat(4,1fr)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}a.card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}a.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--border-strong);text-decoration:none}.stat{position:relative;overflow:hidden}.stat .stat-ico{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--accent);background:var(--accent-soft)}.stat .stat-ico svg{width:18px;height:18px}.stat .n{font-size:32px;font-weight:720;letter-spacing:-.03em;color:var(--text-strong);font-variant-numeric:tabular-nums}.stat .l{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:580;margin-top:2px}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 16px;vertical-align:middle}thead th{background:var(--surface-2);color:var(--muted);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border)}tbody td{border-top:1px solid var(--border)}tbody tr:first-child td{border-top:none}tbody tr{transition:background .12s}tbody tr:hover td{background:var(--surface-2)}.card table th,.modal table th{background:transparent;text-transform:uppercase}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:1.4}.badge:before{content:"";width:6px;height:6px;border-radius:99px;background:currentColor;opacity:.9}.badge.green{background:var(--green-soft);color:var(--green)}.badge.red{background:var(--red-soft);color:var(--red)}.badge.amber{background:var(--amber-soft);color:var(--amber)}.badge.blue{background:var(--blue-soft);color:var(--blue)}.badge.gray{background:var(--gray-soft);color:var(--muted)}.tag{display:inline-block;background:var(--surface-2);border:1px solid var(--border);border-radius:7px;padding:2px 8px;margin:2px 4px 2px 0;font-size:11.5px;color:var(--muted);font-weight:500}label{display:block;font-size:12.5px;color:var(--muted);margin:12px 0 5px;font-weight:540}input,select,textarea{width:100%;background:var(--surface);border:1px solid var(--border-strong);color:var(--text);border-radius:var(--radius-sm);padding:10px 12px;font:inherit;transition:border-color .14s,box-shadow .14s}input::placeholder,textarea::placeholder{color:var(--faint)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}textarea{min-height:68px;resize:vertical}.row{display:flex;gap:12px}.row>*{flex:1}input[type=checkbox]{width:auto;accent-color:var(--accent-2)}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--accent-grad);color:var(--on-accent);border:1px solid transparent;border-radius:var(--radius-sm);padding:10px 16px;font:inherit;font-weight:600;cursor:pointer;transition:filter .14s,transform .05s,box-shadow .14s;box-shadow:var(--shadow-sm);white-space:nowrap}button svg{width:15px;height:15px}button:hover{filter:brightness(1.05);box-shadow:var(--shadow-md)}button:active{transform:translateY(.5px)}button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--accent-ring)}button:disabled{opacity:.5;cursor:not-allowed;filter:none;box-shadow:none}button.ghost{background:var(--surface);color:var(--text);border-color:var(--border-strong);box-shadow:none}button.ghost:hover{background:var(--surface-2);border-color:var(--border-strong);filter:none}button.danger{background:var(--red);color:#fff}button.sm{padding:6px 12px;font-size:12.5px}.muted{color:var(--muted)}.right{text-align:right}.flex{display:flex;align-items:center;gap:10px}.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:14px}.notice{padding:12px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);font-size:13.5px}.notice.warn{border-color:var(--amber);background:var(--amber-soft);color:var(--amber)}.notice.ok{border-color:transparent;background:var(--green-soft);color:var(--green)}.notice.err{border-color:transparent;background:var(--red-soft);color:var(--red)}.keybox{font-family:SF Mono,ui-monospace,Menlo,monospace;font-size:12.5px;background:var(--bg);border:1px dashed var(--accent);color:var(--text);padding:11px 13px;border-radius:var(--radius-sm);word-break:break-all}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#080b1280;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;z-index:50;padding:24px}.modal{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;width:540px;max-width:100%;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-lg)}.modal h2{letter-spacing:-.02em}.login-wrap{display:grid;place-items:center;min-height:100vh;padding:24px;background-image:var(--bg-grad)}.login-card{width:420px;max-width:100%;box-shadow:var(--shadow-lg);padding:30px}.login-card .brand{justify-content:center;padding-bottom:8px}
