:root {
  --bg: #070b12;
  --surface: #0c1220;
  --surface-2: #111a2b;
  --surface-3: #162236;
  --line: rgba(148,163,184,.16);
  --line-strong: rgba(148,163,184,.28);
  --text: #eef5ff;
  --muted: #9aacc1;
  --teal: #5eead4;
  --cyan: #38bdf8;
  --indigo: #818cf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0,0,0,.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 75% -10%, rgba(56,189,248,.08), transparent 32rem),
  radial-gradient(circle at 10% 100%, rgba(129,140,248,.07), transparent 36rem), var(--bg); }
button, input, select { font: inherit; }
button, .button-link { cursor: pointer; }
a { color: inherit; }
code { font-family: "SFMono-Regular", Consolas, monospace; color: #c5f7ef; }
[hidden] { display: none !important; }

/* Login */
.login-body { display: grid; place-items: center; padding: 32px; overflow-x: hidden; }
.login-body::before { content: ""; position: fixed; width: 620px; height: 620px; border: 1px solid rgba(94,234,212,.08); border-radius: 50%; left: -240px; top: -220px; box-shadow: 0 0 0 80px rgba(94,234,212,.02),0 0 0 160px rgba(94,234,212,.015); pointer-events: none; }
.login-shell { width: min(1050px,100%); display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); border-radius: 28px; background: rgba(9,14,24,.86); backdrop-filter: blur(18px); box-shadow: var(--shadow); overflow: hidden; }
.login-story { position: relative; padding: 72px 64px; min-height: 650px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); background: linear-gradient(145deg,rgba(94,234,212,.06),transparent 45%), radial-gradient(circle at 90% 10%,rgba(129,140,248,.13),transparent 20rem); }
.login-story::after { content:""; position:absolute; inset:24px; border:1px solid rgba(255,255,255,.035); border-radius:20px; pointer-events:none; }
.brand-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg,rgba(94,234,212,.2),rgba(129,140,248,.18)); border: 1px solid rgba(94,234,212,.3); box-shadow: inset 0 1px rgba(255,255,255,.14),0 16px 40px rgba(56,189,248,.1); margin-bottom: 34px; }
.brand-mark span { font: 700 36px/1 Georgia,serif; background: linear-gradient(135deg,var(--teal),var(--indigo)); -webkit-background-clip: text; color: transparent; }
.brand-mark.small { width: 40px; height: 40px; border-radius: 12px; margin: 0; flex: none; }
.brand-mark.small span { font-size: 23px; }
.eyebrow { margin: 0 0 9px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-story h1 { margin: 0; font-size: clamp(44px,6vw,68px); line-height: .98; letter-spacing: -.055em; }
.login-story h1 span { color: #8090a6; }
.login-copy { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.75; margin: 28px 0 42px; }
.login-features { display: flex; gap: 38px; }
.login-features div { display: flex; flex-direction: column; }
.login-features b { font-size: 24px; }
.login-features span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.privacy-note { margin-top: 58px; color: #b5c3d6; font-size: 12px; display: flex; align-items: center; gap: 9px; }
.pulse-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(52,211,153,.11); display: inline-block; animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }
.login-card { padding: 72px 52px; display: flex; flex-direction: column; justify-content: center; gap: 38px; }
.login-card h2 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 8px; }
.login-card form { display: grid; gap: 20px; }
.login-foot { color: #5f7189; font-size: 11px; text-align: center; margin: 0; }

/* Forms and buttons */
label { display: grid; gap: 8px; color: #b8c5d6; font-size: 12px; font-weight: 700; }
label small, legend small { color: var(--muted); font-weight: 500; }
input, select { width: 100%; color: var(--text); background: rgba(6,10,18,.72); border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px; outline: none; transition: border .18s,box-shadow .18s,background .18s; }
input:focus, select:focus { border-color: rgba(94,234,212,.65); box-shadow: 0 0 0 3px rgba(94,234,212,.1); background: rgba(8,14,24,.92); }
select { min-width: 130px; }
button, .button-link { border: 0; border-radius: 10px; padding: 10px 14px; color: var(--text); font-weight: 750; font-size: 12px; transition: transform .14s,filter .14s,border .14s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
button:hover:not(:disabled), .button-link:hover { filter: brightness(1.12); transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: wait; }
.primary { background: linear-gradient(135deg,#38c9b3,#4f9ed8); color: #04110f; box-shadow: 0 8px 24px rgba(56,189,248,.13); }
.secondary { background: var(--surface-2); border: 1px solid var(--line-strong); }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.danger { color: #fecdd3; border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); }
.link-button { background: transparent; color: var(--teal); padding: 6px; }
.icon-button { width: 37px; height: 37px; padding: 0; background: var(--surface-2); border: 1px solid var(--line); }
.wide { width: 100%; }
.form-error { margin: 0; color: #fecdd3; background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.25); border-radius: 9px; padding: 10px 12px; font-size: 12px; }

/* Shell */
.app-shell { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 15px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(8,12,20,.88); backdrop-filter: blur(18px); z-index: 20; }
.sidebar-close,.sidebar-backdrop { display:none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 2px 7px 26px; }
.brand > span:last-child { display: flex; flex-direction: column; font-size: 15px; letter-spacing: .03em; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: .25em; margin-top: 2px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button { justify-content: flex-start; background: transparent; color: #8191a7; padding: 11px 13px; border: 1px solid transparent; }
.sidebar nav button span { width: 20px; text-align: center; font-size: 15px; }
.sidebar nav button:hover { background: rgba(255,255,255,.035); color: #c9d7e9; transform: none; }
.sidebar nav button.active { color: var(--text); background: linear-gradient(90deg,rgba(94,234,212,.1),rgba(56,189,248,.04)); border-color: rgba(94,234,212,.16); box-shadow: inset 2px 0 var(--teal); }
.sidebar-foot { margin-top: auto; padding: 16px 7px 2px; border-top: 1px solid var(--line); }
.live-chip { color: var(--green); font-size: 9px; letter-spacing: .18em; display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.live-chip .pulse-dot { width: 6px; height: 6px; }
.side-user { display: grid; margin-bottom: 14px; }
.side-user b { font-size: 12px; }
.side-user span { font-size: 10px; color: var(--muted); margin-top: 3px; }
.main { min-width: 0; padding: 0 30px 50px; }
.topbar { min-height: 100px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.topbar h1 { font-size: 24px; margin: 0; letter-spacing: -.03em; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
#menu-toggle { display: none; }
.view { display: none; animation: appear .2s ease; }
.view.active { display: block; }
@keyframes appear { from { opacity: .2; transform: translateY(4px); } }
.muted { color: var(--muted); }
.compact { font-size: 11px; }

/* Overview */
.fleet-banner { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border-radius: 15px; border: 1px solid rgba(52,211,153,.2); background: linear-gradient(90deg,rgba(52,211,153,.08),rgba(52,211,153,.02)); margin-bottom: 18px; }
.fleet-banner .status-orb { width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 20px rgba(52,211,153,.55); }
.fleet-banner div { display: flex; flex-direction: column; }
.fleet-banner b { font-size: 13px; }
.fleet-banner span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.fleet-banner .fleet-meta { display:flex; flex-direction:row; flex-wrap:wrap; gap:2px 10px; }
.fleet-banner .fleet-meta i { font-style:normal; white-space:nowrap; }
.fleet-banner .fleet-meta i:not(:last-child)::after { content:" ·"; color:#607188; }
.fleet-banner.degraded { border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.06); }
.fleet-banner.degraded .status-orb { background: var(--amber); box-shadow: 0 0 20px rgba(251,191,36,.45); }
.fleet-banner.down { border-color: rgba(251,113,133,.28); background: rgba(251,113,133,.07); }
.fleet-banner.down .status-orb { background: var(--red); box-shadow: 0 0 20px rgba(251,113,133,.45); }
.fleet-banner.loading .status-orb { background: var(--muted); }
.metric-grid { display: grid; gap: 12px; margin-bottom: 18px; }
.metric-grid.six { grid-template-columns: repeat(6,minmax(0,1fr)); }
.metric { padding: 18px; min-height: 116px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(155deg,rgba(17,26,43,.85),rgba(10,16,27,.8)); position: relative; overflow: hidden; }
.metric::after { content:""; position:absolute; width:55px; height:55px; border-radius:50%; right:-20px; top:-20px; background:var(--teal); opacity:.035; }
.metric span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.metric b { display: block; font-size: 25px; margin: 12px 0 5px; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric small { color: #8da0b8; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 14px; align-items:start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg,rgba(15,23,38,.9),rgba(9,14,24,.86)); padding: 20px; box-shadow: 0 12px 40px rgba(0,0,0,.08); min-width: 0; }
.panel.span-2 { grid-column: span 2; }
.panel-head { min-height: 43px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-head h2 { font-size: 15px; margin: 0; }
.panel-head input { width: 220px; }
.chart { min-height: 230px; position: relative; overflow: hidden; }
.chart.tall { min-height: 330px; }
.chart svg { width: 100%; height: 100%; min-height: inherit; display: block; }
.chart .gridline { stroke: rgba(148,163,184,.11); stroke-width: 1; }
.chart .axis-label { fill:#73849a; font-size:9px; }
.chart .chart-warning { fill:#fbbf24; font-size:11px; font-weight:700; letter-spacing:.02em; }
.chart .line-input { fill:none; stroke:var(--teal); stroke-width:2.2; vector-effect:non-scaling-stroke; }
.chart .line-output { fill:none; stroke:var(--indigo); stroke-width:2.2; vector-effect:non-scaling-stroke; }
.chart .area-input { fill:url(#inputGradient); opacity:.18; }
.chart .area-output { fill:url(#outputGradient); opacity:.12; }
.chart-legend { position:absolute; right:8px; top:4px; display:flex; gap:15px; font-size:9px; color:var(--muted); }
.chart-legend i { width:8px; height:8px; display:inline-block; border-radius:2px; margin-right:5px; }
.empty { min-height: inherit; display:grid; place-items:center; color:#526177; font-size:12px; border:1px dashed rgba(148,163,184,.1); border-radius:12px; }
.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; align-items: center; }
.bar-row .label { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#b9c7d8; font-size:11px; }
.bar-row b { font-size:11px; }
.bar-track { grid-column:1/-1; height:4px; background:#1b2738; border-radius:99px; overflow:hidden; }
.bar-track i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,var(--teal),var(--indigo)); }
.host-list,.service-list { display:grid; gap:9px; }
.mini-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid rgba(148,163,184,.08); }
.mini-row:last-child { border-bottom:0; }
.mini-row div { min-width:0; display:grid; }
.mini-row b { font-size:11px; overflow:hidden; text-overflow:ellipsis; }
.mini-row span { color:var(--muted); font-size:9px; margin-top:2px; }
.mini-row strong { margin-left:auto; font-size:10px; }

/* Tables, services, cards */
.section-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.section-intro h2 { margin:0 0 6px; font-size:22px; letter-spacing:-.035em; }
.section-intro p { margin:0; color:var(--muted); font-size:12px; }
.legend { display:flex; gap:15px; color:var(--muted); font-size:9px; }
.legend span { display:flex; align-items:center; gap:6px; }
.dot { width:7px; height:7px; border-radius:50%; display:inline-block; background:var(--muted); }
.dot.up,.status-pill.up::before { background:var(--green); }
.dot.degraded,.status-pill.degraded::before { background:var(--amber); }
.dot.down,.status-pill.down::before { background:var(--red); }
.dot.unknown,.status-pill.unknown::before,.status-pill.stale::before { background:#64748b; }
.host-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin-bottom:18px; }
.host-card { padding:18px; border-radius:16px; border:1px solid var(--line); background:var(--surface); }
.host-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.host-card-head h3 { margin:0; font-size:14px; }
.host-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.host-stats div { display:grid; gap:4px; }
.host-stats span { color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.1em; }
.host-stats b { font-size:13px; }
.gpu-list { margin-top:14px; display:grid; gap:8px; }
.host-warning { margin:12px 0 0; padding:9px 11px; border:1px solid rgba(251,191,36,.3); border-radius:9px; background:rgba(251,191,36,.08); color:#fcd34d; font-size:10px; line-height:1.5; }
.gpu-row { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:8px; align-items:center; padding:8px 9px; border-radius:8px; background:rgba(255,255,255,.025); font-size:10px; }
.gpu-row .gpu-bar { height:3px; background:#1e293b; border-radius:9px; overflow:hidden; }
.gpu-row .gpu-bar i { display:block; height:100%; background:var(--teal); }
.table-panel { padding:0; overflow:hidden; margin-bottom:14px; }
.table-panel .panel-head { padding:20px 20px 0; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th { color:#8292a8; font-size:9px; letter-spacing:.1em; text-transform:uppercase; text-align:left; padding:12px 16px; background:rgba(5,9,16,.45); border-top:1px solid var(--line); border-bottom:1px solid var(--line); white-space:nowrap; }
td { padding:13px 16px; border-bottom:1px solid rgba(148,163,184,.08); font-size:11px; color:#b8c6d8; vertical-align:middle; }
tbody tr:hover { background:rgba(94,234,212,.025); }
tbody tr:last-child td { border-bottom:0; }
.status-pill { display:inline-flex; align-items:center; gap:7px; padding:5px 8px; border:1px solid var(--line); border-radius:99px; font-size:8px; text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.status-pill::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--muted); }
.cap-list { display:flex; flex-wrap:wrap; gap:4px; }
.cap { padding:3px 6px; border-radius:5px; background:rgba(129,140,248,.09); color:#b8bdfd; font-size:8px; }
.action-group { display:flex; gap:5px; justify-content:flex-end; }
.action-group button { padding:6px 8px; font-size:9px; }
.mono { font-family:"SFMono-Regular",Consolas,monospace; }
.truncate { max-width:310px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }

/* Usage */
.filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; padding:15px; background:var(--surface); border:1px solid var(--line); border-radius:15px; margin-bottom:15px; }
.filter-bar label { min-width:130px; flex:1; }
.filter-bar button,.filter-bar a { height:39px; }
.usage-metrics { margin-top:0; }

/* User and system cards */
.user-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.user-card { border:1px solid var(--line); border-radius:16px; padding:18px; background:var(--surface); }
.user-card-head { display:flex; gap:12px; align-items:center; }
.avatar { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,rgba(94,234,212,.18),rgba(129,140,248,.2)); color:var(--teal); font-weight:900; }
.user-card-head div { display:grid; min-width:0; }
.user-card-head b { font-size:13px; }
.user-card-head span { color:var(--muted); font-size:9px; }
.role-chip { margin-left:auto; font-size:8px; color:#c4b5fd; border:1px solid rgba(129,140,248,.25); padding:4px 7px; border-radius:99px; text-transform:uppercase; }
.user-card-stats { display:grid; grid-template-columns:repeat(3,1fr); margin:16px 0; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.user-card-stats div { display:grid; gap:3px; }
.user-card-stats span { color:var(--muted); font-size:8px; }
.user-card-stats b { font-size:12px; }
.user-card-actions { display:flex; gap:7px; }
.system-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin-bottom:15px; }
.system-card { display:flex; gap:14px; align-items:center; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--surface); text-decoration:none; }
a.system-card:hover { border-color:rgba(94,234,212,.3); transform:translateY(-1px); }
.system-icon { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:var(--surface-3); color:var(--teal); font-weight:900; }
.system-card div { display:grid; gap:4px; min-width:0; }
.system-card b { font-size:13px; }
.system-card small { color:var(--muted); font-size:9px; }
.system-card strong { margin-left:auto; color:var(--teal); font-size:9px; }
.code-row { display:flex; align-items:center; gap:10px; padding:14px; border:1px solid var(--line); border-radius:11px; background:#070b12; }
.code-row code { overflow:auto; flex:1; }
.definition { display:grid; gap:0; margin:0; }
.definition div { display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line); }
.definition div:last-child { border-bottom:0; }
.definition dt { color:var(--muted); font-size:10px; }
.definition dd { margin:0; font-size:10px; }

/* Dialog and toast */
dialog { color:var(--text); background:rgba(10,16,27,.98); border:1px solid var(--line-strong); border-radius:20px; padding:0; width:min(520px,calc(100vw - 28px)); box-shadow:0 30px 100px rgba(0,0,0,.65); }
dialog::backdrop { background:rgba(2,6,12,.75); backdrop-filter:blur(7px); }
.dialog-form { padding:24px; display:grid; gap:16px; }
.wide-dialog { width:min(720px,calc(100vw - 28px)); }
.dialog-head { display:flex; align-items:flex-start; justify-content:space-between; }
.dialog-head h2 { margin:0; font-size:20px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; padding-top:4px; }
.two-cols { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:end; }
.check-label { display:flex; align-items:center; min-height:40px; }
.check-label input { width:auto; }
fieldset { border:1px solid var(--line); border-radius:11px; padding:12px; }
legend { color:#b8c5d6; font-size:11px; font-weight:700; padding:0 5px; }
.model-checks { display:grid; grid-template-columns:1fr 1fr; gap:5px 12px; max-height:230px; overflow:auto; }
.model-checks label { display:flex; align-items:flex-start; gap:7px; padding:5px; font-size:9px; font-weight:500; overflow-wrap:anywhere; }
.model-checks input { width:auto; margin-top:2px; }
.secret-dialog { text-align:center; }
.secret-box { background:#05080e; border:1px dashed rgba(94,234,212,.35); padding:18px; border-radius:12px; word-break:break-all; text-align:left; }
.secret-box code { font-size:12px; }
.toast { position:fixed; right:24px; bottom:24px; z-index:100; min-width:220px; max-width:380px; padding:13px 16px; border:1px solid rgba(94,234,212,.25); border-radius:12px; color:#d9fff8; background:rgba(12,27,30,.96); box-shadow:var(--shadow); font-size:11px; }
.toast.error { border-color:rgba(251,113,133,.35); color:#ffe4e6; background:rgba(38,13,20,.97); }

@media (max-width: 1200px) {
  .metric-grid.six { grid-template-columns:repeat(3,1fr); }
  .host-grid,.user-grid { grid-template-columns:repeat(2,1fr); }
  .system-grid { grid-template-columns:1fr; }
}
@media (max-width: 880px) {
  .login-shell { grid-template-columns:1fr; max-width:500px; }
  .login-story { min-height:auto; padding:44px 38px; border-right:0; border-bottom:1px solid var(--line); }
  .login-story h1 { font-size:42px; }
  .login-copy { margin:20px 0 28px; }
  .privacy-note { margin-top:32px; }
  .login-card { padding:42px 38px; }
  .app-shell { display:block; }
  .sidebar { position:fixed; width:min(280px,82vw); left:min(-300px,-84vw); transition:left .2s; box-shadow:30px 0 70px rgba(0,0,0,.65); background:#080d17; backdrop-filter:none; z-index:40; }
  body.menu-open .sidebar { left:0; }
  body.menu-open { overflow:hidden; }
  .sidebar-close { display:grid; place-items:center; position:absolute; right:14px; top:24px; z-index:2; }
  .sidebar-backdrop { position:fixed; inset:0; width:100%; height:100%; padding:0; border:0; border-radius:0; background:rgba(1,4,9,.72); z-index:30; }
  body.menu-open .sidebar-backdrop { display:block; }
  .main { padding:0 18px 40px; }
  #menu-toggle { display:inline-grid; place-items:center; }
  .dashboard-grid { grid-template-columns:1fr; }
  .panel.span-2 { grid-column:span 1; }
  .host-grid,.user-grid { grid-template-columns:1fr; }
}
@media (max-width: 600px) {
  .login-body { padding:14px; }
  .login-story { padding:34px 26px; }
  .login-card { padding:34px 26px; }
  .login-features { gap:22px; }
  .metric-grid.six { grid-template-columns:repeat(2,1fr); }
  #menu-toggle,.sidebar-close { min-width:44px; min-height:44px; }
  #refresh { min-height:44px; }
  .metric { min-height:104px; padding:14px; }
  .metric b { font-size:21px; }
  .topbar { min-height:84px; margin-bottom:20px; }
  .topbar .compact { display:none; }
  .top-actions { gap:7px; }
  .section-intro { align-items:flex-start; flex-direction:column; }
  .legend { flex-wrap:wrap; }
  .filter-bar { display:grid; grid-template-columns:1fr 1fr; }
  .filter-bar label { min-width:0; }
  .two-cols,.model-checks { grid-template-columns:1fr; }
  .panel { padding:15px; }
  .chart { min-height:200px; }
  .chart.tall { min-height:270px; }
}
@media (max-width: 480px) {
  .metric-grid.six { grid-template-columns:1fr; }
  .metric small { word-break:keep-all; overflow-wrap:normal; }
  .panel-heading { align-items:flex-start; flex-direction:column; }
  .panel-heading select { width:100%; min-height:44px; }
}
