:root { color-scheme: dark; font-family: ui-sans-serif, system-ui, sans-serif; background: #0a0a0a; color: #e8edf5; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #0a0a0a; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #0d0f13; border-right: 1px solid #242830; padding: 24px 14px; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 10px 26px; font-size: 18px; font-weight: 750; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; background: #0ea5e9; color: #06131b; border-radius: 8px; font-weight: 900; }
.nav-group { color: #76808f; font-size: 10px; font-weight: 700; letter-spacing: 0; margin: 19px 10px 8px; }
.nav { display: grid; gap: 3px; }
.nav button { text-align: left; color: #abb4c1; background: transparent; border: 0; border-radius: 7px; padding: 9px 10px; font-size: 14px; }
.nav button:hover, .nav button.active { color: #f5f9ff; background: #1b222c; }
.main { padding: 30px; max-width: 1600px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 28px; }
h1 { margin: 0; font-size: 26px; letter-spacing: 0; } .sub { color: #8490a0; font-size: 14px; margin-top: 6px; }
.userbox { display: flex; align-items: center; gap: 12px; color: #b8c2cf; font-size: 13px; }.ghost, .primary { border-radius: 7px; padding: 8px 11px; border: 1px solid #343b47; background: #171b22; color: #dce5ef; }.primary { background: #0b668d; border-color: #1299ce; color: white; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.card { background: #11151b; border: 1px solid #262c35; border-radius: 8px; padding: 17px; min-height: 110px; }.card h2 { margin: 0 0 12px; font-size: 14px; font-weight: 650; }.metric { color: #f2f6fb; font-weight: 700; font-size: 24px; }.muted { color: #8893a3; font-size: 12px; margin-top: 7px; }.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #9aa8b8; }.dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }.dot.ok { background: #34d399; }.dot.fail { background: #f87171; }
.panel { margin-top: 14px; background: #11151b; border: 1px solid #262c35; border-radius: 8px; overflow: hidden; }.panel-header { display:flex; align-items:center; justify-content:space-between; padding: 16px 17px; border-bottom:1px solid #262c35; }.panel h2 { margin:0; font-size:15px; }table { width: 100%; border-collapse: collapse; font-size: 13px; }th { color:#8592a1; background:#0d1015; font-size:11px; font-weight:650; text-align:left; }th,td { padding: 12px 16px; border-bottom: 1px solid #202630; }tr:last-child td { border:0; }.role { padding: 3px 7px; border-radius: 5px; background: #193447; color:#7dd3fc; font-size:11px; }.notice { border: 1px dashed #344252; border-radius: 8px; padding: 30px; color:#9aa8b8; background:#0e131a; }
.login { min-height:100vh; display:grid; place-items:center; padding:20px; }.login-card { width:min(390px,100%); padding:30px; border:1px solid #29313d; border-radius:10px; background:#11151b; }.login-card h1 { margin:15px 0 8px; }.login-card label { display:grid; gap:7px; margin-top:17px; color:#aeb9c6; font-size:13px; }.login-card input { border:1px solid #313946; border-radius:7px; background:#0b0f14; color:#edf3fa; padding:11px; }.login-card .primary { width:100%; margin-top:22px; }.error { min-height:18px; color:#fca5a5; font-size:12px; margin-top:12px; }
@media (max-width: 940px) { .shell { grid-template-columns: 1fr; }.sidebar { border-right:0; border-bottom:1px solid #242830; padding:14px; }.nav-group { display:none; }.nav { grid-template-columns: repeat(3,minmax(0,1fr)); }.main { padding:18px; }.grid { grid-template-columns:repeat(2,minmax(0,1fr)); } } @media (max-width:560px) { .grid,.grid.wide { grid-template-columns:1fr; }.topbar { align-items:flex-start; flex-direction:column; }.nav { overflow-x:auto; display:flex; }.nav button { white-space:nowrap; } table { min-width:650px; }.panel { overflow-x:auto; } }
.filters { display:flex; gap:8px; padding:12px 16px; border-bottom:1px solid #262c35; flex-wrap:wrap; }.filters input,.filters select,.modal input,.modal select { background:#0b0f14; color:#edf3fa; border:1px solid #313946; border-radius:6px; padding:8px; }.filters input { min-width:240px; }.small { font-size:12px; padding:5px 8px; }.link { color:#7dd3fc; border:0; background:transparent; padding:0; text-align:left; }.link:hover { color:#bae6fd; text-decoration:underline; }.pager { display:flex; gap:12px; align-items:center; justify-content:flex-end; padding:12px 16px; color:#8d99a9; font-size:12px; }.pager button:disabled { opacity:.35; cursor:not-allowed; }.modal-backdrop { position:fixed; inset:0; z-index:20; background:rgba(0,0,0,.72); display:grid; place-items:center; padding:18px; }.modal { width:min(580px,100%); max-height:calc(100vh - 36px); overflow:auto; border:1px solid #384352; border-radius:8px; background:#11151b; padding:18px; }.modal header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }.modal h2 { margin:0; font-size:17px; }.modal label { display:grid; gap:6px; color:#aeb9c6; font-size:12px; margin:10px 0; }.modal fieldset { border:1px solid #2d3642; border-radius:6px; margin:14px 0; padding:4px 12px 10px; }.modal legend { color:#9faebe; padding:0 5px; font-size:12px; }.modal-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:18px; }.danger { border:1px solid #b84444; background:#7f1d1d; color:#fff; border-radius:7px; padding:8px 11px; }.detail-grid { align-items:start; }.detail-grid .card { min-height:0; } dl { display:grid; grid-template-columns:120px 1fr; gap:8px; margin:0; font-size:13px; } dt { color:#8793a3; } dd { margin:0; overflow-wrap:anywhere; }.mono { font-family:ui-monospace,SFMono-Regular,monospace; font-size:11px; }
.monitor-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; color:#8d99a9; font-size:12px; margin-bottom:12px; }.resource-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }.monitor-charts { gap:14px; }.chart-panel { min-width:0; }.chart-panel .panel-header { gap:10px; flex-wrap:wrap; }.range-buttons { display:flex; gap:5px; flex-wrap:wrap; }.range-button { padding:5px 8px; font-size:11px; }.range-active { border-color:#1299ce; color:#7dd3fc; background:#123044; }.resource-chart { min-height:205px; padding:8px 12px 12px; }.resource-chart svg { display:block; width:100%; height:auto; min-height:190px; overflow:visible; }.resource-chart svg text { fill:#8793a3; font-size:11px; }.chart-gridline { fill:none; stroke:#28313c; stroke-width:1; stroke-dasharray:3 4; }.chart-line { fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; transition:d .35s ease; }.chart-empty { display:grid; min-height:190px; place-items:center; color:#8793a3; }.monitor-meta #source-status { color:#b8c2cf; }
.chart-plot { width:100%; }.chart-times { display:flex; justify-content:space-between; gap:8px; color:#8793a3; font-size:10px; margin:0 2px; }
@media (max-width: 940px) { .resource-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .resource-cards,.monitor-charts { grid-template-columns:1fr; }.monitor-meta { align-items:flex-start; }.resource-chart { min-height:160px; }.resource-chart svg { min-height:150px; }.range-buttons { width:100%; }.range-button { flex:1; } }

/* Compact navigation and responsive infrastructure dashboard. */
.shell { grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { padding: 20px 12px; }
.brand { padding-bottom: 18px; }
.nav-group { color: #aab7c8; font-size: 11px; font-weight: 750; letter-spacing: .045em; margin: 20px 10px 7px; padding-top: 11px; border-top: 1px solid #252c36; }
.nav-group:first-of-type { border-top: 0; padding-top: 0; }
.nav { gap: 2px; }
.nav button { min-height: 36px; padding: 8px 10px; color: #c1cad6; }
.nav button.active { box-shadow: inset 2px 0 #22b8f0; }
.main { min-width: 0; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 320px); gap: 16px; align-items: start; }
.dashboard-main { min-width: 0; }
.event-rail { position: sticky; top: 14px; min-width: 0; margin-top: 0; max-height: calc(100vh - 28px); display: flex; flex-direction: column; }
.event-rail .panel-header { flex: 0 0 auto; }
.event-list { min-height: 100px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.event-rail-footer { border-top: 1px solid #252c36; padding: 10px 14px; color: #8793a3; font-size: 11px; }
.event-item { border-bottom: 1px solid #242a33; padding: 11px 13px; }
.event-item summary { display: grid; grid-template-columns: 9px 1fr; gap: 4px 8px; cursor: pointer; list-style: none; }
.event-item summary::-webkit-details-marker { display: none; }
.event-item time { color: #9aa7b6; font-size: 10px; grid-column: 2; }
.event-item strong { color: #e4eaf2; font-size: 12px; line-height: 1.4; grid-column: 2; overflow-wrap: anywhere; }
.event-item summary > .muted { grid-column: 2; margin-top: 0; font-size: 10px; }
.event-dot { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #60a5fa; grid-column: 1; grid-row: 1 / span 3; }
.event-warning .event-dot { background: #f59e0b; }
.event-critical .event-dot { background: #f87171; }
.event-details { margin: 10px 0 0 17px; padding: 10px; background: #0b0e12; border-radius: 6px; overflow-wrap: anywhere; }
.event-details dl { grid-template-columns: minmax(82px, 1fr) 1fr; font-size: 10px; }
.event-details dd { text-align: right; }
.dashboard-service-panel { padding: 0; }
.dashboard-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-service-grid article { min-width: 0; padding: 14px 16px; }
.dashboard-service-grid article + article { border-left: 1px solid #262c35; }
.dashboard-service-grid h2 { margin: 0 0 8px; font-size: 13px; }
.dashboard-service-grid small { display: block; margin-top: 6px; color: #8995a4; font-size: 10px; line-height: 1.45; }
.dashboard-disk-panel .panel-header { padding-top: 12px; padding-bottom: 12px; }
.dashboard-disk-panel .link { font-size: 12px; }
.disk-summary { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; padding: 12px 16px; font-size: 13px; }
.disk-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.disk-category-grid .card { min-width: 0; }
.disk-metric { font-size: 20px; overflow-wrap: anywhere; }
.disk-total-panel { padding-bottom: 14px; }
.disk-total { padding: 16px; color: #f2f6fb; font-size: 27px; font-weight: 750; }
.page-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.tab-active { color: #7dd3fc; border-color: #1299ce; background: #123044; }
.events-page .event-list-full { max-height: none; }
.events-page .event-item { padding: 14px 17px; }
.event-filters { border: 1px solid #262c35; border-radius: 8px; background: #11151b; }
.panel-footer { display: flex; justify-content: center; padding: 12px; border-top: 1px solid #262c35; }
@media (max-width: 1180px) {
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .event-rail { position: static; max-height: 360px; }
  .event-list { max-height: 280px; }
}
@media (max-width: 940px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 12px 14px; }
  .nav-group { display: block; margin: 10px 5px 4px; padding-top: 8px; }
  .nav { display: flex; flex-wrap: wrap; overflow: visible; }
  .nav button { white-space: nowrap; }
  .main { padding: 18px; }
}
@media (max-width: 650px) {
  .dashboard-service-grid { grid-template-columns: 1fr; }
  .dashboard-service-grid article + article { border-left: 0; border-top: 1px solid #262c35; }
  .disk-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-filters input { min-width: 0; width: 100%; }
  .event-filters select, .event-filters button { flex: 1 1 auto; min-width: 0; }
  .page-tabs { flex-wrap: wrap; }
  .main { padding: 14px 12px; }
  .dashboard-layout, .dashboard-main, .panel { min-width: 0; max-width: 100%; }
}
@media (max-width: 420px) {
  .disk-category-grid { grid-template-columns: 1fr; }
  .userbox { max-width: 100%; flex-wrap: wrap; }
  h1 { font-size: 23px; }
}
.server-selector { display:flex; align-items:center; gap:8px; color:#b8c2cf; font-size:12px; }
.server-selector select { min-width:220px; max-width:min(360px, 60vw); }
.hidden { display:none !important; }
