:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f1f5f9;line-height:1.4;font-weight:400}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:linear-gradient(180deg,#f8fafc,#eef2f7)}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #dbe3ee;padding:22px 18px;display:flex;flex-direction:column;gap:18px}.brand-lockup{display:flex;align-items:center;gap:16px}.brand-lockup.compact{padding:8px 8px 20px;border-bottom:1px solid #e2e8f0}.brand-logo{width:48px;height:48px;object-fit:contain}.brand-logo.large{width:90px;height:90px}.brand-name,.login-card h1{margin:0;font-size:28px;font-weight:700}.brand-sub,.eyebrow{color:#64748b;font-size:13px}.nav{display:grid;gap:8px}.nav-item{border:1px solid transparent;background:transparent;color:#334155;padding:12px 14px;border-radius:16px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:.2s ease}.nav-item:hover{background:#f8fafc;border-color:#e2e8f0}.nav-item.active{background:#1d4ed8;color:#fff}.sidebar-footer{margin-top:auto;display:grid;gap:12px}.tenant-card,.user-chip{border:1px solid #dbe3ee;border-radius:16px;padding:12px 14px;background:#f8fafc}.tenant-title,.topbar-label{color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.tenant-value,.topbar-title{font-weight:600;margin-top:4px}.content{padding:22px}.topbar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px;background:#ffffffbf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid #dbe3ee;border-radius:24px;padding:18px 20px}.topbar-tools{display:flex;align-items:center;gap:12px}.search-box{min-width:320px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dbe3ee;border-radius:16px;padding:0 14px}.search-box input{border:0;outline:none;height:42px;width:100%;background:transparent}.page{display:grid;gap:18px}.section-header{display:flex;justify-content:space-between;align-items:end;gap:12px}.section-header h2{margin:0 0 4px;font-size:28px}.section-header p{margin:0;color:#64748b}.header-actions{display:flex;gap:10px}.card{background:#fff;border:1px solid #dbe3ee;border-radius:24px;padding:18px;box-shadow:0 10px 35px #0f172a0a}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.card-head h3{margin:0;font-size:18px}.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.kpi-card{padding:14px 16px}.kpi-label{color:#64748b;font-size:14px}.kpi-value{font-size:32px;font-weight:700;margin-top:6px}.kpi-value.critical{color:#dc2626}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:18px}.data-table{width:100%;border-collapse:collapse;min-width:800px}.data-table th{text-align:left;padding:12px 14px;font-size:12px;color:#64748b;background:#f8fafc;text-transform:uppercase;letter-spacing:.04em}.data-table td{padding:13px 14px;border-top:1px solid #eef2f7;color:#334155;vertical-align:top}.row-actions{display:flex;gap:8px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:600;border:1px solid #cbd5e1;background:#f8fafc;color:#475569}.pill.blue{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.pill.red{border-color:#fecaca;background:#fef2f2;color:#dc2626}.pill.gray{border-color:#e2e8f0;background:#f8fafc;color:#475569}.primary-btn,.ghost-btn{border-radius:16px;height:42px;padding:0 16px;cursor:pointer;border:1px solid transparent}.primary-btn{background:#1d4ed8;color:#fff}.primary-btn:hover{background:#1e40af}.primary-btn.danger{background:#dc2626}.ghost-btn{background:#fff;border-color:#dbe3ee;color:#334155}.ghost-btn:hover{background:#f8fafc}.ghost-btn.small{height:34px;border-radius:12px;padding:0 12px}.ghost-btn.small.danger{color:#dc2626}.ghost-btn.full,.primary-btn.full{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px}.form-grid{display:grid;gap:14px}.field{display:grid;gap:7px}.field span{font-size:13px;color:#475569;font-weight:600}.field input,.field select,.field textarea{border:1px solid #dbe3ee;border-radius:14px;padding:11px 13px;background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f61f}.check-grid{display:grid;gap:10px;color:#475569}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a4d;display:flex;justify-content:flex-end;z-index:40}.drawer{width:min(520px,100%);height:100%;background:#fff;padding:22px;box-shadow:-16px 0 50px #0f172a1f;overflow:auto}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.drawer-head h3{margin:0}.drawer-body{display:grid;gap:18px}.dialog{width:min(420px,calc(100% - 32px));margin:auto;background:#fff;border-radius:24px;border:1px solid #dbe3ee;padding:22px}.dialog h3{margin-top:0}.dialog p{color:#64748b}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.tree{display:grid;gap:8px;color:#334155}.tree-indent{margin-left:18px;color:#475569}.tree-indent-2{margin-left:36px;color:#64748b}.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top right,rgba(59,130,246,.16),transparent 25%),linear-gradient(180deg,#f8fafc,#eef2f7)}.login-card{width:min(760px,100%);background:#ffffffe6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid #dbe3ee;border-radius:32px;padding:28px;box-shadow:0 24px 80px #0f172a14}.login-card p{color:#64748b}.helper-text{color:#64748b;font-size:13px}.toast-stack{position:fixed;top:18px;right:18px;display:grid;gap:10px;z-index:60}.toast{border-radius:16px;padding:12px 14px;background:#fff;border:1px solid #dbe3ee;box-shadow:0 10px 30px #0f172a14}.toast.success{border-color:#bfdbfe}.toast.info{border-color:#e2e8f0}.loading-screen{display:grid;place-items:center;min-height:50vh;color:#64748b}@media (max-width: 1180px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid #dbe3ee}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.two{grid-template-columns:1fr}}@media (max-width: 760px){.content{padding:14px}.topbar,.section-header{flex-direction:column;align-items:stretch}.search-box{min-width:0;width:100%}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
