:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --bg:#020617; --panel:rgba(15,23,42,.88); --line:rgba(148,163,184,.22); --text:#e5e7eb; --muted:#94a3b8; --brand:#38bdf8; --brand2:#2563eb; --ok:#22c55e; --warn:#f59e0b; --danger:#ef4444; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #1d4ed8, #020617 42%, #030712); color: var(--text); }
a { color: #7dd3fc; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; } p { color: #cbd5e1; line-height: 1.7; }
.landing { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.hero-card, .panel, .group-card, .module-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.hero-card { width: min(760px, 100%); padding: clamp(1.5rem, 4vw, 3rem); } .hero-card.narrow { width: min(620px, 100%); }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; margin-bottom: .6rem; }
.hero-card h1, .hero-panel h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); margin: .25rem 0 1rem; letter-spacing: -.05em; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.button { display: inline-flex; align-items:center; justify-content:center; min-height: 42px; padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(125,211,252,.35); background: rgba(15,23,42,.75); color: #e0f2fe; font-weight: 800; cursor: pointer; }
.button.primary { background: linear-gradient(135deg, var(--brand2), #06b6d4); border-color: transparent; color: white; }
.button.ghost { background: rgba(255,255,255,.04); border-color: var(--line); }
.status-list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.status-list div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; } dt { color: var(--muted); } dd { margin: 0; font-weight: 800; }
.muted { color: var(--muted); }
.notice { border-radius: 16px; padding: .9rem 1rem; margin: 1rem 0; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.notice.warn { border-color: rgba(245,158,11,.35); color: #fde68a; } .notice.danger { border-color: rgba(239,68,68,.4); color: #fecaca; } .notice.ok { border-color: rgba(34,197,94,.35); color: #bbf7d0; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { padding: 1.5rem; border-right: 1px solid var(--line); background: rgba(2,6,23,.72); position: sticky; top:0; height:100vh; }
.brand-mark, .avatar { width: 44px; height: 44px; display:grid; place-items:center; border-radius: 15px; background: linear-gradient(135deg, var(--brand2), #06b6d4); color:white; font-weight:900; }
.sidebar h2 { margin: 0 0 2rem; } .sidebar nav { display:grid; gap:.5rem; margin-top:2rem; } .sidebar nav a { padding:.8rem 1rem; border-radius:14px; color:#cbd5e1; background:rgba(255,255,255,.03); }
.app-main { padding: clamp(1rem, 3vw, 2rem); display:grid; gap:1.25rem; align-content:start; }
.topbar { display:flex; justify-content:space-between; gap:1rem; align-items:center; }
.identity { display:flex; gap:.8rem; align-items:center; } .identity span { display:block; color:var(--muted); font-size:.9rem; }
.panel { padding: clamp(1.25rem, 3vw, 2rem); }
.section-head, .group-title { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.group-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:1rem; }
.group-card, .module-card { padding:1.25rem; box-shadow:none; }
.group-title h3 { margin-bottom:.25rem; } .group-title p { color:var(--muted); font-size:.9rem; margin:0; }
.badge { border-radius:999px; padding:.35rem .65rem; font-size:.78rem; font-weight:900; border:1px solid var(--line); white-space:nowrap; }
.badge.ok { color:#bbf7d0; border-color:rgba(34,197,94,.35); } .badge.warn { color:#fde68a; border-color:rgba(245,158,11,.35); }
.diagnostics { list-style:none; padding:0; margin:1rem 0; display:grid; gap:.55rem; color:#cbd5e1; } .diagnostics li { display:flex; justify-content:space-between; gap:1rem; border-top:1px solid rgba(148,163,184,.14); padding-top:.55rem; }
.empty-state { padding:2rem; border:1px dashed var(--line); border-radius:20px; text-align:center; }
.split { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:1.5rem; }
.module-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:1rem; }
form { margin: 0; }
@media (max-width: 820px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position:static; height:auto; border-right:0; border-bottom:1px solid var(--line); } .topbar, .section-head, .group-title { flex-direction:column; } }