/* LAS 5.0: operational dashboards inspired by the supplied interface references. */
:root, body[data-ui="v2"] {
  --bg: #080e1b;
  --panel: #101a2c;
  --panel-2: #14213a;
  --line: #24324a;
  --text: #e9eff9;
  --muted: #9babc4;
  --primary: #7092ff;
  --accent: #47cbb6;
  --success: #55d6a0;
  --warning: #f2bb5a;
  --danger: #f57b91;
}
body { background: var(--bg); font-family: "Segoe UI", system-ui, sans-serif; }
body[data-ui="v2"] { background: var(--bg); }
.sidebar { background: #0b1424; border-right: 1px solid var(--line); }
.sidebar .brand-block { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.nav-section { letter-spacing: .08em; font-size: .68rem; color: #8093b4; }
.nav-link { border-radius: 7px; }
.nav-link.active { background: #1c2d4c; color: #a9bdff; box-shadow: inset 3px 0 var(--primary); }
.topbar { background: rgba(8,14,27,.95); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: clamp(1.35rem,2vw,1.85rem); letter-spacing: -.035em; }
.card, body[data-ui="v2"] .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 18px #00000014; }
.card h3 { font-size: 1rem; letter-spacing: -.015em; }
.metric-tile { border: 1px solid var(--line); background: var(--panel-2); border-radius: 9px; }
.metric-tile strong { font-variant-numeric: tabular-nums; }
table { font-variant-numeric: tabular-nums; }
thead { background: var(--panel-2); }
th { color: var(--muted); font-size: .74rem; letter-spacing: .035em; }
tbody tr:hover { background: #ffffff04; }
input, select, textarea { background: var(--bg); color: var(--text); border-color: var(--line); }
button, a, input, select { transition: background .15s, border-color .15s, color .15s; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.button.primary { background: #6e8ef5; color: #081122; border-color: transparent; font-weight: 650; }
.button.ghost { border-color: var(--line); }
.inspector { background: var(--panel); border-left: 1px solid var(--line); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; margin-top:16px; }
.module-card { padding: 20px; }
.module-card .section-header { align-items: center; margin-bottom: 20px; }
.module-card h3 { margin: 0 0 5px; }
.module-card small { color: var(--muted); }
.module-switch { display:flex; align-items:center; gap:10px; cursor:pointer; }
.module-switch input { width:18px; height:18px; accent-color:var(--primary); }
.module-switch:has(input:disabled) { opacity:.65; cursor:default; }
.theme-label { color: var(--muted); font-size:.76rem; }
body[data-theme="light"] {
  --bg:#f2f5fa; --panel:#ffffff; --panel-2:#f7f9fc; --line:#dce3ed;
  --text:#18243a; --muted:#53657e; --primary:#335dc9; --accent:#087e74;
  --success:#14774f; --danger:#b3304d; --warning:#8b5b0f; color-scheme:light;
}
body[data-theme="light"] .sidebar { background:#fff; }
body[data-theme="light"] .topbar { background:#f2f5faf5; }
body[data-theme="light"] .nav-link.active { background:#e8efff; color:#234da9; }
body[data-theme="light"] tbody tr:hover { background:#f5f8ff; }
body[data-theme="light"] .button.primary { color:#fff; background:#335dc9; }
@media(max-width:760px) { .module-grid { grid-template-columns:1fr; } .topbar-actions { gap:7px; flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { button,a,input,select { transition:none; } }
