:root {
  color-scheme: dark;
  --bg: #070709;
  --panel: #0c0c10;
  --panel-2: #111116;
  --panel-3: #17171d;
  --line: #25252c;
  --line-soft: #1c1c22;
  --text: #f5f5f7;
  --muted: #9898a2;
  --subtle: #64646e;
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --purple-soft: rgba(139, 92, 246, .12);
  --green: #39d98a;
  --yellow: #f5c451;
  --red: #ff6b6b;
  --blue: #63a4ff;
  --sidebar: 224px;
  --topbar: 58px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin:0; min-height:100%; background:var(--bg); color:var(--text); }
body { font-size:14px; letter-spacing:-.01em; }
button, input, select { font:inherit; }
button { color:inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline:2px solid var(--purple); outline-offset:2px; }
.app-shell { min-height:100vh; }
.topbar { position:fixed; inset:0 0 auto 0; height:var(--topbar); z-index:30; display:flex; align-items:center; border-bottom:1px solid var(--line); background:rgba(7,7,9,.92); backdrop-filter:blur(18px); }
.brand { width:var(--sidebar); height:100%; border:0; border-right:1px solid var(--line); background:transparent; display:flex; align-items:center; gap:7px; padding:0 20px; cursor:pointer; font-weight:600; letter-spacing:-.02em; }
.brand strong { color:var(--purple-2); font-weight:650; }
.hub-mark { width:19px; height:19px; position:relative; display:grid; grid-template-columns:repeat(3,1fr); align-items:end; gap:2px; margin-right:2px; }
.hub-mark i { display:block; background:var(--purple); border-radius:2px 2px 0 0; }
.hub-mark i:nth-child(1){height:8px}.hub-mark i:nth-child(2){height:15px}.hub-mark i:nth-child(3){height:11px}
.workspace-switcher { flex:1; padding-left:12px; }
.workspace-button { border:0; background:transparent; display:flex; align-items:center; gap:8px; height:36px; padding:0 10px; border-radius:6px; cursor:pointer; max-width:420px; }
.workspace-button:hover,.ghost:hover,.icon-button:hover,.avatar-button:hover { background:var(--panel-3); }
.avatar { width:22px; height:22px; display:grid; place-items:center; border:1px solid #4f3a82; background:var(--purple-soft); color:#d9ccff; border-radius:5px; font-size:9px; font-weight:700; }
.chev { color:var(--muted); }
.top-actions { display:flex; align-items:center; gap:6px; padding-right:12px; }
.ghost,.icon-button,.avatar-button { border:1px solid var(--line); background:transparent; border-radius:6px; cursor:pointer; height:32px; }
.ghost { display:flex; align-items:center; gap:7px; padding:0 9px; color:var(--muted); }
.ghost.compact kbd { border:1px solid var(--line); background:#0b0b0e; color:var(--subtle); border-radius:4px; padding:1px 5px; font-size:10px; }
.icon-button { width:32px; color:var(--muted); }
.avatar-button { width:32px; border-radius:50%; background:#1b1527; border-color:#513b7f; color:#d7c8ff; font-weight:700; }
.sidebar { position:fixed; left:0; top:var(--topbar); bottom:0; width:var(--sidebar); border-right:1px solid var(--line); padding:12px 10px 12px; display:flex; flex-direction:column; background:#08080a; z-index:20; overflow:auto; }
.sidebar nav { min-height:100%; display:flex; flex-direction:column; }
.nav-item { border:0; background:transparent; width:100%; height:34px; display:flex; align-items:center; gap:10px; padding:0 10px; border-radius:6px; cursor:pointer; color:#b7b7c0; text-align:left; }
.nav-item span { width:16px; color:#7b7b86; text-align:center; }
.nav-item:hover { background:#101014; color:var(--text); }
.nav-item.active { background:#15131b; color:var(--text); }
.nav-item.active span { color:var(--purple-2); }
.nav-label { padding:17px 10px 7px; font-size:11px; color:#5f5f69; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.sidebar-spacer { flex:1; min-height:30px; }
.status-card { margin:12px 4px 0; border:1px solid var(--line); background:#0b0b0e; border-radius:7px; padding:10px; }
.status-row { display:flex; gap:7px; align-items:center; font-size:11px; }
.status-card p { margin:6px 0 0 14px; color:var(--subtle); font-size:10px; line-height:1.35; }
.pulse { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(57,217,138,.08); }
.pulse.warn { background:var(--yellow); box-shadow:0 0 0 4px rgba(245,196,81,.08); }
.main { margin-left:var(--sidebar); padding-top:var(--topbar); min-height:100vh; }
.page { width:min(1180px, calc(100% - 56px)); margin:0 auto; padding:44px 0 80px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:28px; }
.page-head h1 { margin:0; font-size:24px; font-weight:650; letter-spacing:-.04em; }
.page-head p { margin:7px 0 0; color:var(--muted); font-size:13px; }
.page-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.button { border:1px solid var(--line); background:#111116; height:34px; padding:0 12px; border-radius:6px; cursor:pointer; display:inline-flex; align-items:center; gap:7px; }
.button:hover { border-color:#3a3a45; background:#15151b; }
.button.primary { border-color:#7c4fe0; background:var(--purple); color:white; font-weight:600; }
.button.primary:hover { background:#9569f8; }
.button.danger { color:#ff9d9d; }
.button.small { height:29px; padding:0 9px; font-size:12px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.metric-card { min-height:112px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(180deg,#0d0d11,#0a0a0d); padding:16px; }
.metric-top { display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:12px; }
.metric-value { font-size:27px; letter-spacing:-.05em; margin:17px 0 4px; font-weight:600; }
.metric-foot { font-size:11px; color:var(--subtle); }
.metric-foot strong { color:var(--green); font-weight:500; }
.section { margin-top:34px; }
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:11px; }
.section-head h2 { font-size:14px; font-weight:600; margin:0; }
.section-head a,.text-button { color:var(--muted); font-size:12px; background:0; border:0; cursor:pointer; text-decoration:none; }
.section-head a:hover,.text-button:hover { color:var(--text); }
.panel { border:1px solid var(--line); border-radius:var(--radius); background:#0a0a0d; overflow:hidden; }
.panel + .panel { margin-top:12px; }
.table { width:100%; border-collapse:collapse; }
.table th { text-align:left; color:#777782; font-size:10px; text-transform:uppercase; letter-spacing:.05em; padding:9px 14px; border-bottom:1px solid var(--line); font-weight:600; }
.table td { padding:13px 14px; border-bottom:1px solid var(--line-soft); color:#c9c9d0; vertical-align:middle; }
.table tr:last-child td { border-bottom:0; }
.table tbody tr { cursor:default; }
.table tbody tr:hover { background:#0f0f13; }
.name-cell { display:flex; align-items:center; gap:10px; min-width:180px; }
.project-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:6px; border:1px solid #33313e; background:#14121b; color:#bda6ff; font-weight:700; font-size:12px; }
.cell-title { color:var(--text); font-weight:540; }
.cell-sub { color:#686873; font-size:11px; margin-top:3px; }
.status { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:#aaaab4; text-transform:capitalize; }
.status:before { content:""; width:7px; height:7px; border-radius:50%; background:#676771; }
.status.ready:before,.status.healthy:before,.status.verified:before,.status.active:before,.status.clean:before { background:var(--green); }
.status.building:before,.status.queued:before,.status.pending_dns:before,.status.pending:before,.status.simulated:before,.status.unknown:before,.status.unavailable:before { background:var(--yellow); }
.status.error:before,.status.failed:before,.status.drifted:before { background:var(--red); }
.badge { display:inline-flex; align-items:center; height:22px; padding:0 7px; border:1px solid var(--line); border-radius:5px; color:#9d9da8; background:#0d0d11; font-size:10px; }
.badge.purple { border-color:#513b7f; background:#171021; color:#c9b8ff; }
.mono { font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size:11px; letter-spacing:0; }
.link { color:#bbb4ca; text-decoration:none; }
.link:hover { color:white; }
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.project-card { border:1px solid var(--line); background:#0a0a0d; border-radius:8px; padding:16px; cursor:pointer; min-height:155px; transition:.15s ease; }
.project-card:hover { border-color:#3a344b; transform:translateY(-1px); background:#0e0d12; }
.project-card-top { display:flex; justify-content:space-between; }
.project-card h3 { font-size:14px; margin:13px 0 4px; }
.project-card p { margin:0; color:var(--subtle); font-size:11px; }
.project-card-foot { display:flex; align-items:center; gap:8px; margin-top:18px; padding-top:12px; border-top:1px solid var(--line-soft); }
.activity-list { display:flex; flex-direction:column; }
.activity-row { display:grid; grid-template-columns:24px 1fr auto; gap:10px; align-items:start; padding:13px 14px; border-bottom:1px solid var(--line-soft); }
.activity-row:last-child { border-bottom:0; }
.activity-dot { width:22px;height:22px;border-radius:50%;background:#17131f;border:1px solid #392d50;display:grid;place-items:center;color:#b79cff;font-size:10px; }
.activity-row p { margin:0; color:#bebec6; font-size:12px; line-height:1.45; }
.activity-row time { color:#5e5e68; font-size:10px; white-space:nowrap; }
.split { display:grid; grid-template-columns:1.65fr 1fr; gap:12px; }
.provider-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.provider-card { border:1px solid var(--line); background:#0a0a0d; border-radius:8px; padding:16px; }
.provider-card .provider-head { display:flex; justify-content:space-between; align-items:center; }
.provider-card h3 { margin:0; font-size:13px; }
.provider-card p { color:var(--subtle); font-size:11px; line-height:1.5; margin:9px 0 0; }
.toolbar { display:flex; justify-content:space-between; gap:10px; margin:0 0 12px; }
.filter-group { display:flex; gap:7px; }
.input,.select { border:1px solid var(--line); background:#0d0d11; color:var(--text); border-radius:6px; height:34px; padding:0 10px; }
.input { min-width:220px; }
.select { color:#aaaab4; }
.empty { padding:44px 20px; text-align:center; color:var(--subtle); }
.empty strong { display:block; color:#c8c8cf; margin-bottom:6px; }
.terminal { background:#050506; border:1px solid #1e1e24; border-radius:8px; min-height:420px; font:11px/1.65 "SFMono-Regular",Consolas,monospace; color:#bdbdc6; overflow:hidden; }
.terminal-head { height:38px; border-bottom:1px solid #1d1d22; display:flex; align-items:center; justify-content:space-between; padding:0 12px; background:#09090b; }
.terminal-body { padding:14px; white-space:pre-wrap; }
.log-time { color:#555561; }.log-info { color:#b9b9c2; }.log-good { color:#74dea5; }.log-warn { color:#f0c76e; }.log-purple { color:#b99cff; }
.chart-card { border:1px solid var(--line); background:#0a0a0d; border-radius:8px; padding:16px; }
.chart-card h3 { margin:0; font-size:12px; color:#bdbdc5; }
.chart { height:170px; display:flex; align-items:end; gap:5px; padding-top:20px; border-bottom:1px solid #1e1e24; }
.chart i { flex:1; min-width:3px; background:linear-gradient(180deg,#9d75ff,#5d2bbd); border-radius:3px 3px 0 0; opacity:.8; }
.chart-legend { display:flex; justify-content:space-between; margin-top:8px; color:#5f5f69; font-size:10px; }
.detail-hero { border:1px solid var(--line); border-radius:8px; background:linear-gradient(135deg,#0d0c12,#0a0a0d 70%); padding:20px; }
.detail-hero-top { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.detail-title { display:flex; align-items:center; gap:12px; }
.detail-title .project-icon { width:38px; height:38px; }
.detail-title h2 { margin:0; font-size:18px; }
.detail-title p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.tabs { display:flex; gap:2px; border-bottom:1px solid var(--line); margin-top:22px; }
.tab { border:0;background:0;color:#777782;padding:9px 11px;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px; }
.tab.active { color:var(--text); border-color:var(--purple); }
.command-palette,.modal-layer { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.62); backdrop-filter:blur(7px); display:grid; place-items:start center; padding-top:14vh; }
.hidden { display:none !important; }
.command-box { width:min(610px,calc(100% - 30px)); border:1px solid #37323f; background:#0b0b0e; border-radius:10px; box-shadow:0 28px 90px rgba(0,0,0,.55); overflow:hidden; }
.command-input-wrap { height:52px; display:flex; align-items:center; gap:10px; padding:0 14px; border-bottom:1px solid var(--line); }
.command-input-wrap span { color:var(--muted); font-size:18px; }
.command-input-wrap input { flex:1; border:0; outline:0; background:0; color:var(--text); font-size:14px; }
.command-results { max-height:390px; overflow:auto; padding:7px; }
.command-item { width:100%; border:0; background:transparent; border-radius:6px; padding:10px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; text-align:left; }
.command-item:hover,.command-item.selected { background:#15131b; }
.command-item small { color:var(--subtle); }
.command-footer { border-top:1px solid var(--line); height:34px; display:flex; align-items:center; justify-content:flex-end; gap:14px; padding:0 12px; color:#595963; font-size:9px; }
.modal-layer { place-items:center; padding:20px; }
.modal { width:min(520px,100%); max-height:calc(100vh - 40px); overflow:auto; border:1px solid #33303b; background:#0c0c10; border-radius:10px; box-shadow:0 30px 100px rgba(0,0,0,.62); }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid var(--line); }
.modal-head h2 { font-size:15px; margin:0; }
.close { border:0; background:0; color:var(--muted); cursor:pointer; font-size:18px; }
.modal-body { padding:18px; }
.form-row { margin-bottom:14px; }
.form-row label { display:block; color:#aaaab4; font-size:11px; margin-bottom:6px; }
.form-row input,.form-row select { width:100%; border:1px solid var(--line); background:#09090c; color:var(--text); height:38px; border-radius:6px; padding:0 10px; }
.form-help { color:#62626d; font-size:10px; margin-top:5px; line-height:1.45; }
.modal-foot { display:flex; justify-content:flex-end; gap:8px; padding:13px 18px; border-top:1px solid var(--line); }
.toasts { position:fixed; z-index:200; right:18px; bottom:18px; display:flex; flex-direction:column; gap:8px; }
.toast { width:310px; border:1px solid #34313b; background:#111116; border-radius:8px; padding:11px 12px; box-shadow:0 18px 50px rgba(0,0,0,.45); animation:toastin .18s ease; }
.toast strong { display:block; font-size:12px; }.toast span { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
@keyframes toastin{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.loading-state { min-height:calc(100vh - var(--topbar)); display:grid; place-items:center; color:var(--subtle); gap:10px; align-content:center; }
.loader { width:18px;height:18px;border:2px solid #282832;border-top-color:var(--purple);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.donut { width:82px;height:82px;border-radius:50%;background:conic-gradient(var(--purple) 0 72%, #1a1a20 72%);position:relative;display:grid;place-items:center;margin:8px auto 12px; }.donut:after{content:"";position:absolute;width:58px;height:58px;border-radius:50%;background:#0a0a0d}.donut span{z-index:1;font-size:13px;font-weight:600}.center{text-align:center}.muted{color:var(--muted)}
.kpi-inline { display:flex; gap:20px; flex-wrap:wrap; margin-top:14px; }
.kpi-inline div { min-width:90px; }.kpi-inline strong{display:block;font-size:16px}.kpi-inline span{display:block;color:var(--subtle);font-size:10px;margin-top:3px}
.dns-box { padding:13px 14px; border:1px solid var(--line); background:#08080a; border-radius:7px; margin-top:10px; }
.dns-row { display:grid; grid-template-columns:60px 1fr; gap:10px; font-size:11px; padding:4px 0; }.dns-row span:first-child{color:var(--subtle)}
@media (max-width: 980px) { .grid-4{grid-template-columns:repeat(2,1fr)} .project-grid{grid-template-columns:repeat(2,1fr)} .split{grid-template-columns:1fr} .provider-grid{grid-template-columns:1fr} }
@media (max-width: 720px) { :root{--sidebar:0px}.brand{width:auto;border-right:0;padding-left:14px}.brand span:not(.hub-mark),.brand strong{display:none}.workspace-switcher{padding-left:0}.workspace-button span#workspaceName{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar{display:none}.main{margin-left:0}.page{width:calc(100% - 28px);padding-top:30px}.page-head{align-items:flex-start;flex-direction:column}.grid-4,.project-grid{grid-template-columns:1fr}.desktop-only,.ghost kbd{display:none}.table-wrap{overflow-x:auto}.table{min-width:720px}.top-actions{padding-right:8px}.workspace-button{padding:0 6px}.chart{height:120px}}

.workspace-list{display:grid;gap:8px}.workspace-choice{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);text-align:left;cursor:pointer}.workspace-choice:hover{border-color:var(--purple);background:var(--panel-hover)}.workspace-choice span:nth-child(2){display:grid;gap:2px;flex:1}.workspace-choice small{color:var(--muted);font-size:12px}.workspace-choice b{color:var(--purple);font-size:16px}
.spark{height:44px;display:flex;align-items:end;gap:2px;margin:10px 0 6px;border-bottom:1px solid var(--line-soft)}.spark i{display:block;flex:1;min-width:2px;max-width:8px;background:linear-gradient(180deg,#b99cff,#6f41d8);border-radius:2px 2px 0 0;opacity:.9}.spark-empty{height:44px;display:grid;place-items:center;margin:10px 0 6px;border-bottom:1px solid var(--line-soft);color:var(--subtle);font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:190px}
