:root {
  --bg0: #040814;
  --bg1: #071126;
  --panel: rgba(10, 22, 44, 0.72);
  --panel-2: rgba(10, 18, 30, 0.76);
  --edge: rgba(118, 228, 255, 0.18);
  --text: #e8f6ff;
  --muted: #8fb8d3;
  --cyan: #7de8ff;
  --indigo: #7f7bff;
  --ok: #4de2a8;
  --warn: #ffd27a;
  --bad: #ff7a9b;
  --radius: 22px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin:0; min-height:100%; background: radial-gradient(circle at top, #0b1f41 0%, var(--bg0) 55%, #02050d 100%); color:var(--text); font: 15px/1.45 Inter, system-ui, sans-serif; }
a { color: var(--cyan); text-decoration: none; }
a:hover { opacity: .9; }
.bg-grid{ position:fixed; inset:0; pointer-events:none; background:
 radial-gradient(circle at 30% 20%, rgba(125,232,255,.08), transparent 25%),
 radial-gradient(circle at 70% 0%, rgba(127,123,255,.10), transparent 30%),
 linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
 background-size:auto,auto,28px 28px,28px 28px;
 opacity:.6; }
.topbar{ display:flex; justify-content:space-between; align-items:center; padding:20px 24px; position:sticky; top:0; z-index:4; backdrop-filter: blur(14px); background: rgba(3,10,22,.55); border-bottom:1px solid var(--edge); }
.brand-wrap{ display:flex; gap:14px; align-items:center; }
.orb{ width:58px; height:58px; border-radius:50%; background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 20%, #208ab5 42%, rgba(32,138,181,.12) 70%, transparent 72%); box-shadow: 0 0 28px rgba(125,232,255,.45), inset 0 0 18px rgba(255,255,255,.5); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.05);} }
.eyebrow{ color:var(--muted); font-size:12px; letter-spacing:.14em; text-transform:uppercase; }
.topbar h1{ margin:0; font-size:24px; }
.top-actions{ display:flex; gap:12px; align-items:center; }
.mode-chip,.chip{ padding:8px 12px; border-radius:999px; border:1px solid var(--edge); background: rgba(125,232,255,.08); }
.small-muted{ color:var(--muted); font-size:13px; }
.pulse-dot{ width:10px; height:10px; background:var(--ok); border-radius:50%; box-shadow:0 0 12px var(--ok); }
.app-shell{ display:grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 99px); }
.sidebar{ border-right:1px solid var(--edge); background: rgba(2,8,18,.45); padding:18px; }
.sidebar nav{ display:grid; gap:10px; }
.sidebar a{ display:block; padding:12px 14px; border-radius:16px; background:rgba(255,255,255,.03); border:1px solid transparent; }
.sidebar a:hover{ border-color:var(--edge); background: rgba(125,232,255,.06); }
.content{ padding:24px; }
.grid{ display:grid; gap:18px; }
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.card{ background: linear-gradient(180deg, rgba(14,27,52,.85), rgba(8,18,35,.86)); border:1px solid var(--edge); border-radius:var(--radius); padding:18px; box-shadow: var(--shadow); }
.card h2,.card h3{ margin:0 0 10px; }
.kpi{ font-size:32px; font-weight:700; }
.muted{ color:var(--muted); }
.table{ width:100%; border-collapse: collapse; }
.table th,.table td{ padding:10px 8px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; vertical-align:top; }
.status{ display:inline-block; padding:5px 9px; border-radius:999px; font-size:12px; font-weight:700; }
.status.ok{ background: rgba(77,226,168,.16); color: var(--ok); }
.status.warn{ background: rgba(255,210,122,.16); color: var(--warn); }
.status.bad{ background: rgba(255,122,155,.16); color: var(--bad); }
.status.neutral{ background: rgba(255,255,255,.08); color: var(--muted); }
.code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:13px; background: rgba(255,255,255,.04); padding:10px; border-radius:14px; overflow:auto; }
.ai-box{ min-height:220px; display:grid; gap:10px; }
textarea,input,select,button{ font:inherit; }
textarea,input,select{ width:100%; background: rgba(255,255,255,.05); color: var(--text); border:1px solid var(--edge); border-radius:14px; padding:12px; }
button{ background: linear-gradient(90deg, rgba(125,232,255,.18), rgba(127,123,255,.18)); border:1px solid var(--edge); color:var(--text); padding:11px 14px; border-radius:14px; cursor:pointer; }
button:hover{ filter:brightness(1.08); }
pre{ white-space: pre-wrap; word-break: break-word; }
@media (max-width: 980px){ .app-shell{ grid-template-columns:1fr; } .sidebar{ border-right:none; border-bottom:1px solid var(--edge); } .grid.cols-2,.grid.cols-3{ grid-template-columns:1fr; } }
