:root {
    --bg: #08111f;
    --panel: #101b2d;
    --panel-2: #132238;
    --text: #edf6ff;
    --muted: #8ea4bd;
    --line: #22334b;
    --green: #22c55e;
    --blue: #38bdf8;
    --yellow: #f59e0b;
    --red: #ef4444;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #123154 0, var(--bg) 34rem);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, .button {
    border: 1px solid var(--line);
    background: #14243a;
    color: var(--text);
    border-radius: 8px;
    min-height: 38px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.primary { background: linear-gradient(135deg, var(--green), var(--blue)); color: #06121f; border: 0; }
.warning { border-color: var(--yellow); color: #fee6a9; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    padding: 22px;
    background: rgba(6, 14, 27, .9);
    border-right: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 900; margin-bottom: 26px; }
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green);
    color: #04111d;
    display: grid;
    place-items: center;
}
nav { display: grid; gap: 5px; }
nav a { color: var(--muted); padding: 10px 12px; border-radius: 8px; }
nav a.active, nav a:hover { color: var(--text); background: #12243b; }
.shell { margin-left: 248px; padding: 26px; }
.public-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.topbar h1, h1, h2 { margin: 0; letter-spacing: 0; }
.topbar h1 { font-size: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.lead { color: #c7d7e8; font-size: 18px; max-width: 760px; line-height: 1.55; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { color: var(--muted); border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; }
.hero { width: min(1120px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1; max-width: 820px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-panel, .auth-card, .panel, .card {
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.hero-panel { min-height: 480px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.metric { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.metric span, .card span, small { color: var(--muted); }
.metric strong, .card strong { display: block; font-size: 30px; margin-top: 8px; }
.signal-map {
    grid-column: 1 / -1;
    min-height: 270px;
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(56,189,248,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,.08) 1px, transparent 1px),
        #0b1728;
    background-size: 32px 32px;
}
.signal-map span, .map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(34,197,94,.12);
}
.signal-map span:nth-child(1) { left: 22%; top: 30%; }
.signal-map span:nth-child(2) { left: 54%; top: 42%; background: var(--blue); }
.signal-map span:nth-child(3) { left: 68%; top: 66%; }
.signal-map span:nth-child(4) { left: 36%; top: 72%; background: var(--yellow); }
.auth-card { width: min(440px, 100%); padding: 28px; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input { width: 100%; background: #0b1728; border: 1px solid var(--line); color: var(--text); min-height: 42px; border-radius: 8px; padding: 0 12px; }
.alert { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.35); padding: 12px; border-radius: 8px; margin: 14px 0; }
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.two-col, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.panel, .card { padding: 18px; }
.panel h2, .card h2 { font-size: 17px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.pill { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; padding: 0 9px; background: #1b2b43; color: #cfe0f2; font-size: 12px; font-weight: 800; }
.active, .completed { background: rgba(34,197,94,.16); color: #9ef0b9; }
.suspended, .failed { background: rgba(239,68,68,.16); color: #fecaca; }
.ready, .queued, .pending_activation { background: rgba(56,189,248,.16); color: #bae6fd; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.timeline { border-left: 2px solid var(--line); padding: 0 0 14px 14px; margin-left: 4px; }
.timeline span { display: block; color: var(--muted); font-size: 12px; margin: 3px 0; }
.timeline p { margin: 0; color: #c9d8e7; }
.bar { height: 10px; border-radius: 999px; background: #0b1728; overflow: hidden; margin: 14px 0; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); }
.map-grid { position: relative; min-height: 350px; background: #0b1728; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.map-dot span { position: absolute; left: 15px; top: -5px; color: var(--text); font-weight: 800; font-size: 12px; }
@media (max-width: 920px) {
    .sidebar { position: static; width: auto; }
    .shell { margin: 0; padding: 16px; }
    .hero, .two-col, .split, .metrics { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
    table { display: block; overflow-x: auto; }
}
