:root {
  --bg: #070d18; --surface: #101827; --surface-2: #172235; --border: #27344a;
  --text: #e5e7eb; --muted: #94a3b8; --primary: #0ea5e9; --up: #22c55e;
  --warning: #f59e0b; --down: #ef4444; --unknown: #64748b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: #7dd3fc; text-decoration: none; }
.topbar { min-height: 68px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: rgba(16,24,39,.97); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.top-left, nav, .user-menu, .actions { display: flex; align-items: center; gap: 14px; }
.brand { color: white; font-weight: 800; font-size: 18px; margin-right: 12px; }
nav { flex-wrap: wrap; } nav a { color: var(--muted); font-weight: 650; font-size: 14px; } nav a:hover { color: white; }
.user-menu { color: var(--muted); font-size: 13px; } .customer-picker select { min-width: 180px; padding: 8px 10px; }
.container { width: min(1500px, calc(100% - 36px)); margin: 26px auto 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; }
h1, h2 { margin: 0; } h1 { font-size: 28px; } h2 { font-size: 18px; } .muted { color: var(--muted); }
.cards { display: grid; gap: 14px; margin-bottom: 22px; } .cards.five { grid-template-columns: repeat(5, 1fr); }
.card, .panel, .auth-card, .chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.metric { padding: 20px; display: flex; flex-direction: column; } .metric strong { font-size: 34px; } .metric span { color: var(--muted); margin-top: 4px; }
.metric.up { border-left: 4px solid var(--up); } .metric.warning { border-left: 4px solid var(--warning); } .metric.down, .metric.incident { border-left: 4px solid var(--down); } .metric.unknown { border-left: 4px solid var(--unknown); }
.panel { padding: 20px; margin-bottom: 22px; } .panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } .charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chart-card { padding: 15px; min-width: 0; } .chart-heading { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 10px; } .chart-heading strong { color: white; }
.line-chart { width: 100%; height: 180px; overflow: visible; background: #0b1322; border-radius: 8px; }
.grid-line { stroke: #263247; stroke-width: .4; vector-effect: non-scaling-stroke; }
.chart-series { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.series-0 { stroke: #38bdf8; } .series-1 { stroke: #4ade80; } .series-2 { stroke: #fbbf24; } .series-3 { stroke: #f472b6; } .series-4 { stroke: #a78bfa; }
.series-bg-0 { background: #38bdf8; } .series-bg-1 { background: #4ade80; } .series-bg-2 { background: #fbbf24; } .series-bg-3 { background: #f472b6; } .series-bg-4 { background: #a78bfa; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: var(--muted); font-size: 12px; }.legend span { display: inline-flex; align-items: center; gap: 5px; }.dot { width: 8px; height: 8px; border-radius: 50%; }
.table-wrap { overflow-x: auto; margin-top: 14px; } table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; } th { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; } td { font-size: 13px; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; font-size: 10px; font-weight: 800; }.badge.up { background: rgba(34,197,94,.15); color: #86efac; }.badge.warning { background: rgba(245,158,11,.15); color: #fcd34d; }.badge.down { background: rgba(239,68,68,.15); color: #fca5a5; }.badge.unknown { background: rgba(100,116,139,.2); color: #cbd5e1; }
button, .sso-button { border: 0; border-radius: 8px; background: #0284c7; color: white; padding: 10px 15px; cursor: pointer; font-weight: 700; display: inline-flex; justify-content: center; } button:hover, .sso-button:hover { filter: brightness(1.12); } button.secondary { background: #334155; } button.danger { background: #b91c1c; } button.small { padding: 7px 10px; font-size: 11px; } .link-button { background: transparent; padding: 0; color: #7dd3fc; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }.stack { display: grid; gap: 13px; }.compact-form { margin-top: 15px; }
label { color: var(--muted); font-size: 12px; font-weight: 700; display: grid; gap: 6px; } input, select, textarea { width: 100%; padding: 10px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); outline: none; } textarea { min-height: 70px; resize: vertical; } input:focus, select:focus, textarea:focus { border-color: var(--primary); }
.checkbox { display: flex; align-items: center; margin-top: 22px; }.checkbox input, .checkbox-inline input { width: auto; }.checkbox-inline { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }.form-actions { display: flex; align-items: end; }.customer-checks { display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.inline-form { display: flex; align-items: center; gap: 6px; min-width: 240px; }.tiny { width: 75px; padding: 7px; }.alert { padding: 12px 14px; border-radius: 10px; margin: 14px 0; }.alert.warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); }.alert.down { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); }
.auth-card { width: min(460px, 100%); margin: 9vh auto; padding: 28px; }.separator { display: flex; align-items: center; color: var(--muted); gap: 12px; margin: 18px 0; }.separator:before, .separator:after { content: ""; flex: 1; border-top: 1px solid var(--border); }.sso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.sso-button { background: #334155; }
.empty { text-align: center; color: var(--muted); padding: 28px; }.empty.compact { padding: 18px; }.oncall-item { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 12px; border-bottom: 1px solid var(--border); }.oncall-item small { grid-column: 1 / -1; color: var(--muted); }.user-panel { border-left: 3px solid #0ea5e9; } code { white-space: pre-wrap; color: #cbd5e1; }
@media (max-width: 1100px) { .cards.five { grid-template-columns: repeat(2, 1fr); } .form-grid { grid-template-columns: 1fr 1fr; } .topbar { align-items: flex-start; }.top-left { flex-wrap: wrap; }.split-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .container { width: min(100% - 22px, 1500px); }.topbar { padding: 12px; flex-direction: column; gap: 12px; }.top-left, .user-menu { flex-wrap: wrap; }.cards.five, .form-grid, .charts-grid, .sso-grid { grid-template-columns: 1fr; }.page-heading { align-items: flex-start; flex-direction: column; } }

/* v2.0.4 UI refinements */
.small-text { font-size: 11px; line-height: 1.45; }
.compact-panel { padding-top: 16px; padding-bottom: 16px; }
.slim-panel { padding: 6px 18px; }
.no-margin { margin-top: 0; }
.row-disabled { opacity: .62; }
.action-wrap { flex-wrap: wrap; gap: 6px; }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.button-link { border: 0; border-radius: 8px; background: #0284c7; color: white; padding: 10px 15px; cursor: pointer; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; }
.button-link.secondary { background: #334155; }
.button-link.small { padding: 7px 10px; font-size: 11px; }
.warning-button { background: #a16207; }
.success-button { background: #15803d; }
.type-chip, .role-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 7px; background: #1e293b; color: #cbd5e1; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.role-admin { background: rgba(239,68,68,.14); color: #fca5a5; }
.role-support { background: rgba(14,165,233,.14); color: #7dd3fc; }
.role-viewer { background: rgba(100,116,139,.18); color: #cbd5e1; }
.user-list-table td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.right-cell { text-align: right; width: 1%; white-space: nowrap; }
.form-card-narrow { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.toggle-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #111c2d; }
.toggle-row input { width: auto; margin-top: 3px; }
.toggle-row span { display: grid; gap: 2px; color: var(--text); }
.toggle-row small, .field-hint { color: var(--muted); font-weight: 500; font-size: 11px; }
.inline-toggle { margin-top: 0; min-height: 63px; align-content: center; }
.compact-checks { max-height: 180px; overflow: auto; }
.ops-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.ops-help-card { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #0e1727; }
.ops-help-card strong { display: block; margin-bottom: 6px; }
.ops-help-card p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.ops-help-card span { font-size: 11px; color: #7dd3fc; font-weight: 700; }
.slim-form { min-width: 150px; }
@media (max-width: 900px) { .ops-help-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } .form-footer { justify-content: stretch; } .form-footer > * { flex: 1; } }
