:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1120;
  color: #e5e7eb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #0b1120; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #0b1120; }
.login-panel { width: min(100%, 430px); padding: 38px; border: 1px solid #26334d; border-radius: 14px; background: #111a2c; box-shadow: 0 24px 70px #02061799; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #a5b4fc; background: #312e81; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.login-panel .brand-mark { margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: #818cf8; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: #f8fafc; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.02em; }
h2 { margin-bottom: 6px; color: #f8fafc; font-size: 18px; }
.muted { color: #8d9ab1; line-height: 1.6; }
.login-form { display: grid; gap: 16px; margin-top: 30px; }
label { display: grid; gap: 8px; color: #cbd5e1; font-size: 13px; font-weight: 650; }
input { width: 100%; border: 1px solid #35445f; border-radius: 8px; padding: 11px 12px; outline: none; color: #f8fafc; background: #0c1424; }
input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px #6366f133; }
.primary-button, .secondary-button, .icon-button, .search-form button, .pagination button { border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; color: #e5e7eb; background: #1e293b; }
.primary-button { margin-top: 6px; color: white; background: #4f46e5; font-weight: 700; }
.primary-button:hover { background: #6366f1; }
.secondary-button:hover, .icon-button:hover, .pagination button:hover:not(:disabled) { border-color: #4b5d7c; background: #25334b; }
.login-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #26334d; color: #71809a; font-size: 11px; }
code, .mono { font-family: "SFMono-Regular", Consolas, monospace; }
.alert { margin-top: 18px; padding: 11px 12px; border-radius: 8px; font-size: 13px; }
.alert-error { color: #fecaca; border: 1px solid #7f1d1d; background: #450a0a66; }
.denial-panel { text-align: center; }
.denial-panel .secondary-button { margin-top: 18px; }
.denial-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 24px; border-radius: 50%; color: #fbbf24; background: #78350f66; font-size: 22px; font-weight: 800; }
.app-shell { min-height: 100vh; display: flex; background: #0b1120; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: 238px; padding: 26px 16px; border-right: 1px solid #202c43; background: #0e1728; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; }
.brand strong, .brand span { display: block; }
.brand strong { color: #f8fafc; font-size: 15px; }
.brand span { margin-top: 3px; color: #7f8da5; font-size: 11px; }
.side-caption { padding: 0 12px 10px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item, .tab { border: 0; color: #8f9db5; background: transparent; text-align: left; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; font-size: 13px; }
.nav-item:hover, .nav-item.active { color: #eef2ff; background: #1e2a43; }
.nav-item.active { box-shadow: inset 2px 0 #818cf8; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #52627d; }
.nav-item.active .nav-dot { background: #818cf8; box-shadow: 0 0 8px #818cf8; }
.sidebar-bottom { margin-top: auto; padding: 14px 12px; border-top: 1px solid #202c43; color: #7f8da5; font-size: 11px; line-height: 1.8; }
.sidebar-bottom code { color: #52627d; font-size: 10px; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d39999; }
.content { width: calc(100% - 238px); min-height: 100vh; margin-left: 238px; padding: 30px clamp(20px, 4vw, 56px); }
.topbar, .overview-head, .panel-head, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar { padding-bottom: 34px; }
.topbar h1 { margin-bottom: 0; font-size: 28px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.operator-chip { display: flex; align-items: center; gap: 6px; color: #cbd5e1; font-size: 12px; }
.operator-chip b { margin-left: 5px; padding: 4px 7px; border-radius: 5px; color: #c4b5fd; background: #312e8155; font-size: 10px; font-weight: 700; }
.icon-button { width: 38px; height: 38px; padding: 0; font-size: 19px; }
.overview-head { align-items: end; padding: 24px 0; border-top: 1px solid #202c43; }
.overview-head time { color: #71809a; font-size: 11px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric { min-height: 126px; padding: 18px; border: 1px solid #26334d; border-radius: 10px; background: #111a2c; }
.metric p { margin-bottom: 13px; color: #8d9ab1; font-size: 12px; }
.metric strong { display: block; color: #f8fafc; font-size: 26px; letter-spacing: -.02em; }
.metric span { display: block; margin-top: 10px; color: #71809a; font-size: 11px; }
.metric.tone-indigo { border-top: 2px solid #818cf8; }
.metric.tone-green { border-top: 2px solid #34d399; }
.metric.tone-purple { border-top: 2px solid #c084fc; }
.metric.tone-amber { border-top: 2px solid #fbbf24; }
.data-panel { overflow: hidden; border: 1px solid #26334d; border-radius: 10px; background: #111a2c; }
.panel-head { align-items: end; padding: 21px 22px 16px; }
.panel-head h2 { margin-bottom: 4px; }
.panel-head p { margin-bottom: 0; font-size: 12px; }
.search-form { display: flex; width: min(100%, 280px); gap: 7px; }
.search-form input { padding: 9px 10px; font-size: 12px; }
.search-form button { padding: 9px 11px; color: #c7d2fe; background: #312e81; font-size: 12px; }
.tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid #26334d; }
.tab { padding: 11px 10px; font-size: 12px; }
.tab.active { color: #c7d2fe; border-bottom: 2px solid #818cf8; }
.table-wrap { overflow-x: auto; min-height: 260px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { padding: 12px 22px; color: #64748b; background: #0e1728; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
td { padding: 15px 22px; border-top: 1px solid #202c43; color: #cbd5e1; font-size: 12px; }
td strong, td small { display: block; }
td strong { color: #e5e7eb; font-weight: 650; }
td small { margin-top: 4px; color: #71809a; font-size: 10px; }
td.positive { color: #34d399; }
.status { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-good { color: #6ee7b7; background: #064e3b66; }
.status-bad { color: #fca5a5; background: #7f1d1d66; }
.status-pending { color: #fcd34d; background: #78350f66; }
.empty { height: 220px; color: #71809a; text-align: center; }
.pagination { padding: 14px 22px; border-top: 1px solid #26334d; color: #71809a; font-size: 11px; }
.pagination div { display: flex; align-items: center; gap: 8px; }
.pagination button { padding: 7px 10px; font-size: 11px; }
.loading-page { min-height: 100vh; display: grid; place-content: center; gap: 14px; color: #8d9ab1; text-align: center; }
.spinner { width: 28px; height: 28px; margin: 0 auto; border: 3px solid #334155; border-top-color: #818cf8; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .sidebar { width: 190px; } .content { width: calc(100% - 190px); margin-left: 190px; padding: 24px 18px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .operator-chip { display: none; } }
@media (max-width: 620px) { .app-shell { display: block; } .sidebar { position: static; width: 100%; padding: 14px; border-right: 0; border-bottom: 1px solid #202c43; } .brand { padding-bottom: 16px; } .side-caption, .sidebar-bottom { display: none; } .sidebar nav { grid-template-columns: repeat(3, 1fr); } .nav-item { justify-content: center; padding: 9px 4px; font-size: 11px; } .content { width: 100%; margin-left: 0; padding: 20px 14px; } .topbar { align-items: start; padding-bottom: 22px; } .top-actions { flex-wrap: wrap; justify-content: end; } .overview-head, .panel-head { align-items: start; flex-direction: column; } .metrics { gap: 8px; } .metric { padding: 13px; } .metric strong { font-size: 20px; } .login-panel { padding: 28px 22px; } }
