*,*:before,*:after{box-sizing:border-box}.hide-scrollbar::-webkit-scrollbar{display:none}.hide-scrollbar{scrollbar-width:none;-ms-overflow-style:none}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f8fafc;--brand: #0f5bff;--brand-light: #eff6ff;--brand-mid: #bfdbfe;--surface: #ffffff;--surface-2: #f8fafc;--surface-3: #f1f5f9;--border: #e2e8f0;--text-primary: #111827;--text-secondary: #4b5563;--text-muted: #9ca3af;--danger: #dc2626;--danger-bg: #fef2f2;--danger-border: #fecaca;--shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);--shadow-md: 0 4px 16px rgba(0,0,0,.08);--shadow-lg: 0 8px 32px rgba(0,0,0,.12)}body{margin:0;-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}button{font:inherit}.workspace{display:flex;height:100vh;overflow:hidden;background:var(--surface-2)}.workspace-main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.workspace-body{flex:1;overflow-y:auto;padding:28px}.sidebar{background:#0f172a;color:#e2e8f0;display:flex;flex-direction:column;overflow:hidden}.brand-mark{font-weight:800;color:#fff;padding:18px 16px 14px;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar nav{flex:1;padding:10px 8px;display:flex;flex-direction:column}.side-link{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:8px;font-size:13px;font-weight:500;color:#94a3b8;text-decoration:none;transition:background .12s,color .12s}.side-link:hover{background:#ffffff14;color:#e2e8f0}.side-link.active{background:var(--brand);color:#fff;font-weight:600}.topbar{height:60px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:12px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:grid;place-items:center;padding:20px;z-index:200}.drawer{width:min(500px,95vw);height:100vh;background:#fff;display:flex;flex-direction:column;overflow:hidden}.drawer-body{flex:1;overflow-y:auto;padding:20px;min-height:0}.drawer-footer{flex-shrink:0;border-top:2px solid var(--border);padding:16px 20px;background:#fff;display:flex;gap:10px;box-shadow:0 -4px 16px #0f172a0f}.stack{display:flex;flex-direction:column;gap:20px}.row{display:flex;gap:12px;align-items:center}.row.end{justify-content:flex-end}.grid{display:grid;gap:14px}.grid.two{grid-template-columns:repeat(2,1fr)}.grid.three{grid-template-columns:repeat(3,1fr)}.grid.four{grid-template-columns:repeat(4,1fr)}@media (max-width: 1000px){.grid.four{grid-template-columns:repeat(2,1fr)}}@media (max-width: 640px){.grid.four,.grid.three,.grid.two{grid-template-columns:1fr}}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;box-shadow:var(--shadow-sm)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.card-head h3{font-size:14px;font-weight:700;color:var(--text-primary);margin:0}.kpi-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 20px;box-shadow:var(--shadow-sm)}.kpi-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:6px}.kpi-card h2{font-size:28px;font-weight:800;margin:0;font-variant-numeric:tabular-nums;line-height:1.1}.module-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.module-header-text h2{font-size:22px;font-weight:800;color:var(--text-primary);margin:0 0 4px}.module-header-text p{font-size:13px;color:var(--text-muted);margin:0}.module-actions{display:flex;gap:8px;flex-shrink:0;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 18px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer;border:none;font-family:inherit;white-space:nowrap;transition:all .12s;text-decoration:none;line-height:1}.btn.primary{background:var(--brand);color:#fff}.btn.primary:hover{background:#0c4ee0}.btn.ghost{background:none;border:1px solid var(--border);color:var(--text-secondary)}.btn.ghost:hover{background:var(--surface-2)}.btn.secondary{background:var(--surface-2);border:1px solid var(--border);color:var(--text-secondary)}.btn.secondary:hover{background:var(--surface-3)}.btn.danger{background:var(--danger-bg);border:1px solid var(--danger-border);color:var(--danger)}.btn.sm{padding:5px 12px;font-size:12px;border-radius:7px}.btn:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:12px;font-weight:600;color:var(--text-secondary)}input,select,textarea{padding:9px 12px;border:1px solid var(--border);border-radius:8px;font-size:13px;color:var(--text-primary);background:var(--surface);font-family:inherit;outline:none;width:100%;transition:border-color .12s}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #0f5bff14}input::placeholder,textarea::placeholder{color:var(--text-muted)}.filter-bar{display:flex;gap:6px;flex-wrap:wrap}.filter-chip{padding:6px 14px;border-radius:99px;font-size:13px;font-weight:500;cursor:pointer;background:var(--surface);border:1px solid var(--border);color:var(--text-secondary);transition:all .12s;font-family:inherit;white-space:nowrap}.filter-chip:hover{background:var(--surface-2)}.filter-chip.active{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:600}.badge,.status-badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--brand-light);color:var(--brand)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{padding:10px 14px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);background:var(--surface-2);border-bottom:1px solid var(--border);white-space:nowrap}td{padding:11px 14px;border-bottom:1px solid var(--surface-3);vertical-align:middle;color:var(--text-primary)}tr:last-child td{border-bottom:none}.modal{width:min(640px,95vw);background:#fff;padding:20px;border-radius:20px}.empty-state{background:var(--surface-2);border-radius:16px;padding:16px}.select-card{text-align:left;background:#fff;border:1px solid var(--border);padding:20px;border-radius:18px;cursor:pointer}.select-card.selected{border-color:var(--brand);background:var(--brand-light)}.tag-wrap{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.chip{border:1px solid var(--border);background:#fff;border-radius:999px;padding:10px 14px}.chip.selected{border-color:var(--brand);background:var(--brand-light)}.onboarding-page{min-height:100vh;background:linear-gradient(135deg,#eff6ff,#f5f7fa,#eef2ff);display:grid;place-items:center;padding:24px}.onboarding-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:28px 32px;width:min(900px,100%);box-shadow:0 8px 40px #0f172a1a}.auth-page{min-height:100vh;background:#f0f4f8;display:flex;align-items:center;justify-content:center;padding:24px 16px}.auth-card{background:#fff;border-radius:16px;box-shadow:0 4px 24px #00000014;padding:40px 40px 32px;width:100%;max-width:440px;border:1px solid #e5e7eb}.auth-card-wide{max-width:560px}.auth-logo{display:flex;align-items:center;gap:10px;margin-bottom:28px}.auth-logo-mark{width:36px;height:36px;border-radius:8px;background:#2563eb;color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;letter-spacing:-.5px}.auth-logo-text{font-size:15px;font-weight:600;color:#111827}.auth-title{font-size:26px;font-weight:700;color:#111827;margin:0 0 6px;letter-spacing:-.5px}.auth-subtitle{font-size:14px;color:#6b7280;margin:0 0 24px;line-height:1.5}.auth-error{display:flex;align-items:flex-start;gap:8px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:12px 14px;margin-bottom:20px;font-size:13px;color:#dc2626;line-height:1.4}.auth-error svg{flex-shrink:0;margin-top:1px}.auth-success-icon{font-size:40px;margin-bottom:16px;text-align:center}.form-field{margin-bottom:16px}.form-label{display:block;font-size:13px;font-weight:500;color:#374151;margin-bottom:6px}.form-label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.form-label-row .form-label{margin-bottom:0}.form-required{color:#dc2626}.form-input{width:100%;height:42px;padding:0 12px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:14px;color:#111827;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s;box-sizing:border-box;font-family:inherit}.form-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.form-input::placeholder{color:#9ca3af}.form-input:disabled{background:#f9fafb;color:#9ca3af;cursor:not-allowed}.form-input-error{border-color:#dc2626!important}.form-field-error{font-size:12px;color:#dc2626;margin:4px 0 0}.form-input-icon-wrap{position:relative}.form-input-icon-wrap .form-input{padding-right:42px}.form-input-icon-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#9ca3af;display:flex;align-items:center;padding:4px;border-radius:4px}.form-input-icon-btn:hover{color:#6b7280}.form-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;cursor:pointer}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pwd-strength{display:flex;align-items:center;gap:8px;margin-top:8px}.pwd-strength-bar{display:flex;gap:4px;flex:1}.pwd-strength-segment{height:4px;flex:1;border-radius:2px;background:#e5e7eb;transition:background-color .2s}.pwd-strength-label{font-size:12px;font-weight:500;min-width:44px;text-align:right}.btn-primary{background:#2563eb;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;border:none;font-family:inherit;transition:background .15s,box-shadow .15s;white-space:nowrap;width:auto}.btn-primary:hover:not(:disabled){background:#1d4ed8;box-shadow:0 2px 8px #2563eb4d}.btn-primary:disabled{opacity:.55;cursor:not-allowed}.btn-secondary{background:#f3f4f6;color:#374151;border:1.5px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit;transition:background .15s;white-space:nowrap;width:auto}.btn-secondary:hover:not(:disabled){background:#e9eaec}.btn-secondary:disabled{opacity:.55;cursor:not-allowed}.btn-full{width:100%;margin-top:4px}.btn-loading{display:flex;align-items:center;gap:8px}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0 14px;font-size:12px;color:#9ca3af}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:#e5e7eb}.demo-accounts{display:flex;flex-direction:column;gap:8px}.demo-btn{font-size:13px;height:38px}.auth-link{color:#2563eb;text-decoration:none;font-weight:500}.auth-link:hover{text-decoration:underline}.auth-link-small{color:#2563eb;text-decoration:none;font-size:12px}.auth-link-small:hover{text-decoration:underline}.auth-footer-text{font-size:13px;color:#6b7280;text-align:center;margin:20px 0 0}.auth-terms{font-size:12px;color:#9ca3af;margin:12px 0 16px;line-height:1.5}@media (max-width: 480px){.auth-card{padding:28px 20px 24px}.form-row{grid-template-columns:1fr}.auth-title{font-size:22px}}
