:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #0f1219;
  --surface-2: #141821;
  --surface-3: #1a1f2a;
  --line: #242a37;
  --line-soft: #1c212c;
  --text: #f4f6fb;
  --muted: #8d95a5;
  --muted-2: #636b7a;
  --violet: #8b7cff;
  --violet-2: #6e5ee9;
  --blue: #48a6ff;
  --green: #43d39e;
  --amber: #f4b860;
  --red: #f07078;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }

.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #9a8dff, #6758dd); box-shadow: 0 8px 25px rgba(123,108,240,.28), inset 0 1px rgba(255,255,255,.25); font-size: 0; transform: rotate(-4deg); }
.brand-mark span { font-size: 19px; font-weight: 900; transform: rotate(4deg); color: white; letter-spacing: -.08em; }
.brand-mark--large { width: 58px; height: 58px; border-radius: 17px; }
.brand-mark--large span { font-size: 28px; }
.eyebrow { margin: 0 0 10px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted-2); }
.primary-button, .secondary-button, .mini-button, .icon-button, .text-button { border: 0; cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 0 18px; border-radius: 10px; background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; font-weight: 750; box-shadow: 0 9px 24px rgba(110,94,233,.24); transition: transform .16s ease, filter .16s ease; }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.primary-button.compact { min-height: 38px; padding: 0 14px; font-size: 12px; gap: 10px; }
.secondary-button { min-height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: #cdd2dc; font-size: 12px; font-weight: 700; }
.text-button { padding: 4px; background: transparent; color: var(--violet); font-size: 11px; font-weight: 750; }

/* Authentication */
.auth-body { background: radial-gradient(circle at 23% 40%, rgba(116,94,236,.11), transparent 32%), #090b10; overflow-x: hidden; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand { position: relative; padding: clamp(60px, 9vw, 130px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-brand::before { content: ''; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -260px; border-radius: 50%; border: 1px solid rgba(139,124,255,.1); box-shadow: 0 0 0 80px rgba(139,124,255,.025), 0 0 0 160px rgba(139,124,255,.018); }
.auth-brand .brand-mark { margin-bottom: 56px; }
.auth-brand h1 { margin: 0; max-width: 640px; font-size: clamp(48px, 6.2vw, 88px); line-height: .96; letter-spacing: -.065em; font-weight: 780; }
.auth-brand h1 span { color: var(--violet); }
.auth-lead { max-width: 530px; margin: 32px 0 42px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.trust-list { display: grid; gap: 14px; color: #adb4c2; font-size: 12px; }
.trust-list div { display: flex; align-items: center; gap: 12px; }
.trust-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(67,211,158,.09); }
.auth-card-wrap { position: relative; display: grid; place-items: center; padding: 40px; background: linear-gradient(160deg, rgba(22,26,36,.9), rgba(11,13,18,.85)); border-left: 1px solid var(--line-soft); }
.auth-card-wrap::before { content: ''; position: absolute; inset: 25px; border: 1px solid rgba(255,255,255,.025); border-radius: 26px; pointer-events: none; }
.auth-card { width: min(420px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: rgba(15,18,25,.86); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card-heading { margin-bottom: 30px; }
.auth-card h2, .setup-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.035em; }
.auth-card-heading > p:last-child { margin: 0; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; color: #c6cbd5; font-size: 12px; font-weight: 650; }
.field input, .field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #0b0e14; color: var(--text); transition: border .15s, box-shadow .15s; }
.field input:hover, .field select:hover { border-color: #333a4a; }
.field input:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,124,255,.09); outline: 0; }
.field small { color: var(--muted-2); font-weight: 450; line-height: 1.5; }
.auth-submit { width: 100%; margin-top: 8px; }
.auth-submit b { font-size: 18px; }
.auth-footnote { margin: 24px 0 0; text-align: center; color: var(--muted-2); font-size: 10px; }
.form-error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(240,112,120,.35); border-radius: 9px; background: rgba(240,112,120,.08); color: #ffadb3; font-size: 12px; line-height: 1.5; }
.auth-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); color: var(--muted); font-size: 12px; line-height: 1.5; }
.setup-shell { min-height: 100vh; width: min(1120px, calc(100% - 48px)); margin: auto; padding: 60px 0; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 90px; }
.brand-inline { display: flex; align-items: center; gap: 12px; margin-bottom: 60px; }
.brand-inline strong { font-size: 18px; }
.brand-inline em { margin-left: 2px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .1em; }
.setup-intro h1 { margin: 0 0 22px; font-size: 46px; line-height: 1.05; letter-spacing: -.045em; }
.setup-intro > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.7; }
.setup-steps { margin-top: 50px; display: flex; gap: 12px; }
.setup-steps div { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 10px; }
.setup-steps b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 9px; }
.setup-steps .is-active { color: var(--text); }
.setup-steps .is-active b { border-color: var(--violet); background: var(--violet); }
.setup-card { padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Shell */
.panel-body { overflow: hidden; }
.panel-layout { height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { z-index: 20; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line-soft); background: #0b0e14; }
.sidebar-brand { height: 78px; padding: 0 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.sidebar-brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.sidebar-brand small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.sidebar-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.sidebar-nav > p { margin: 22px 10px 8px; color: #474e5c; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.nav-item { width: 100%; min-height: 42px; padding: 0 11px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 5px; border: 0; border-radius: 8px; background: transparent; color: #7f8796; text-align: left; cursor: pointer; font-size: 11px; font-weight: 650; transition: background .15s, color .15s; }
.nav-item i { color: #626a78; font-size: 16px; font-style: normal; text-align: center; }
.nav-item b { min-width: 19px; padding: 2px 5px; border-radius: 10px; background: #171b24; color: #6e7685; font-size: 8px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.025); color: #c6cbd4; }
.nav-item.is-active { background: linear-gradient(90deg, rgba(139,124,255,.16), rgba(139,124,255,.045)); color: #eeeefe; box-shadow: inset 2px 0 var(--violet); }
.nav-item.is-active i { color: var(--violet); }
.nav-item.is-active b { background: rgba(139,124,255,.15); color: #b9b0ff; }
.sidebar-foot { padding: 13px; border-top: 1px solid var(--line-soft); }
.agent-state { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 7px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.012); }
.agent-state > i, .live-pill i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(67,211,158,.07); }
.agent-state > i.bad { background: var(--amber); }
.agent-state span, .agent-state small { display: block; }
.agent-state span { font-size: 9px; font-weight: 700; }
.agent-state small { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.sidebar-user { display: grid; grid-template-columns: 32px 1fr 24px; gap: 8px; align-items: center; padding: 8px 6px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(139,124,255,.3); border-radius: 9px; background: rgba(139,124,255,.1); color: #bcb4ff; font-size: 9px; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 10px; }
.sidebar-user small { margin-top: 2px; color: var(--muted-2); font-size: 8px; text-transform: capitalize; }
.sidebar-user button { border: 0; background: transparent; color: var(--muted-2); cursor: pointer; }
.main-area { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.topbar { height: 78px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line-soft); background: rgba(9,11,16,.9); }
.topbar h1 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.025em; }
.breadcrumb { margin: 0; color: #505766; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.breadcrumb span { color: #7b8391; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-pill { height: 27px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(67,211,158,.18); border-radius: 15px; background: rgba(67,211,158,.05); color: #6be0b6; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.live-pill i { width: 5px; height: 5px; box-shadow: none; animation: pulse 2s infinite; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 18px; }
.icon-button.is-spinning { animation: spin .7s linear infinite; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.content { flex: 1; overflow-y: auto; padding: 26px 30px 50px; }
.view { display: none; max-width: 1440px; margin: auto; animation: reveal .22s ease; }
.view.is-active { display: block; }

/* Overview */
.hero-status { min-height: 154px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid #252b3a; border-radius: 15px; background: radial-gradient(circle at 85% 40%, rgba(139,124,255,.15), transparent 25%), linear-gradient(115deg, #141823, #10131a); overflow: hidden; }
.hero-copy h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.045em; }
.hero-copy h2 span { color: var(--green); }
.hero-copy h2 span.warning-text { color: var(--amber); }
.hero-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.hero-meta { min-width: 390px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.055); border-radius: 11px; background: rgba(5,7,11,.25); }
.hero-meta div { padding: 18px; border-left: 1px solid rgba(255,255,255,.055); }
.hero-meta div:first-child { border-left: 0; }
.hero-meta span, .hero-meta strong { display: block; }
.hero-meta span { margin-bottom: 8px; color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.hero-meta strong { font-size: 11px; line-height: 1.35; }
.metric-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.metric-card { min-width: 0; padding: 19px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.metric-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 650; }
.metric-top i { font-size: 8px; }
.metric-card[data-tone="violet"] .metric-top i { color: var(--violet); }
.metric-card[data-tone="blue"] .metric-top i { color: var(--blue); }
.metric-card[data-tone="green"] .metric-top i { color: var(--green); }
.metric-card[data-tone="amber"] .metric-top i { color: var(--amber); }
.metric-card > strong { display: block; margin: 12px 0; font-size: 25px; letter-spacing: -.04em; }
.metric-card > p { margin: 10px 0 0; color: var(--muted-2); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-bar { height: 3px; overflow: hidden; border-radius: 2px; background: #222733; }
.metric-bar i { display: block; width: 0; height: 100%; border-radius: 2px; transition: width .5s ease; }
[data-tone="violet"] .metric-bar i { background: var(--violet); } [data-tone="blue"] .metric-bar i { background: var(--blue); } [data-tone="green"] .metric-bar i { background: var(--green); }
.metric-bars-small { height: 3px; display: flex; align-items: end; gap: 3px; }
.metric-bars-small i { width: 16px; min-height: 3px; max-height: 20px; background: var(--amber); transform: translateY(3px); opacity: .8; }
.dashboard-grid { margin-top: 15px; display: grid; grid-template-columns: 1.25fr 1.75fr 1fr; gap: 14px; }
.panel-card { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 19px 20px 14px; }
.card-heading h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.card-heading .eyebrow { margin-bottom: 6px; font-size: 7px; }
.health-card { grid-row: span 2; }
.health-list { padding: 0 12px 12px; }
.health-list > div { min-height: 54px; padding: 9px; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--line-soft); }
.health-list strong, .health-list small { display: block; }
.health-list strong { font-size: 10px; }
.health-list small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.resource-symbol { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #2b3140; border-radius: 8px; background: #171b24; color: #9da5b4; font-size: 8px; font-style: normal; font-weight: 850; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid; border-radius: 12px; white-space: nowrap; font-size: 8px; font-weight: 750; text-transform: capitalize; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; }
.status-badge.ok { border-color: rgba(67,211,158,.14); background: rgba(67,211,158,.055); color: #66d9af; }
.status-badge.ok i { background: var(--green); }
.status-badge.bad { border-color: rgba(240,112,120,.18); background: rgba(240,112,120,.06); color: #f49aa0; }
.status-badge.bad i { background: var(--red); }
.status-badge.warn { border-color: rgba(244,184,96,.2); background: rgba(244,184,96,.07); color: var(--amber); }
.status-badge.warn i { background: var(--amber); }
.trend-card { min-height: 236px; }
.chart-legend { display: flex; gap: 12px; color: var(--muted); font-size: 8px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 12px; height: 2px; }.chart-legend i.violet { background: var(--violet); }.chart-legend i.blue { background: var(--blue); }
#metric-chart { display: block; width: calc(100% - 38px); height: 150px; margin: 0 19px 14px; overflow: visible; }
.grid-line { stroke: #252a34; stroke-width: .6; stroke-dasharray: 3 6; }
.chart-path { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-path.cpu { stroke: var(--violet); filter: drop-shadow(0 0 5px rgba(139,124,255,.3)); }.chart-path.memory { stroke: var(--blue); opacity: .7; }
.chart-empty { fill: var(--muted-2); font-size: 10px; }
.deployment-card { min-height: 236px; }
.fleet-number { padding: 5px 20px 18px; }
.fleet-number strong { font-size: 38px; letter-spacing: -.06em; }.fleet-number span { margin-left: 6px; color: var(--green); font-size: 10px; }.fleet-number small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.fleet-dots { padding: 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.fleet-dots i { width: 8px; height: 8px; border-radius: 2px; }.fleet-dots .up { background: rgba(67,211,158,.7); }.fleet-dots .down { background: var(--red); }
.attention-card { grid-column: span 2; }
.attention-list { padding: 0 15px 15px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.attention-list > div { min-width: 0; padding: 12px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.012); }
.attention-list > div > i { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; font-style: normal; font-size: 9px; font-weight: 900; }.attention-list i.ok { background: rgba(67,211,158,.08); color: var(--green); }.attention-list i.warn { background: rgba(244,184,96,.08); color: var(--amber); }
.attention-list strong, .attention-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attention-list strong { font-size: 9px; }.attention-list small { margin-top: 3px; color: var(--muted-2); font-size: 7px; }

/* Resource pages */
.section-toolbar { min-height: 80px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-toolbar h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.035em; }.section-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.mode-badge { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(139,124,255,.2); border-radius: 5px; background: rgba(139,124,255,.06); color: #a99fff; font-size: 7px; font-weight: 850; letter-spacing: .1em; }.mode-badge.muted { border-color: var(--line); background: #161a22; color: var(--muted-2); }
.mode-badge.warning { border-color: rgba(244,184,96,.22); background: rgba(244,184,96,.07); color: var(--amber); }
.table-card { overflow: auto; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th { height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted-2); text-align: left; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
td { min-height: 60px; padding: 13px 16px; border-top: 1px solid var(--line-soft); color: #abb1bd; font-size: 10px; vertical-align: middle; }
tbody tr:first-child td { border-top: 0; } tbody tr:hover td { background: rgba(255,255,255,.012); }
td code { padding: 3px 5px; border-radius: 4px; background: #0b0e13; color: #9ba3b1; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.domain-cell, .service-cell { display: flex; align-items: center; gap: 10px; }.domain-cell > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: rgba(139,124,255,.09); color: #a89eff; font-weight: 800; }.domain-cell strong, .domain-cell small, .service-cell strong, .service-cell small { display: block; }.domain-cell strong, .service-cell strong { color: #e1e4ea; font-size: 10px; }.domain-cell small, .service-cell small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.resource-card { min-width: 0; padding: 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.resource-card-top { display: flex; justify-content: space-between; align-items: center; }.resource-symbol.container { color: var(--violet); font-size: 16px; }
.resource-card h3 { margin: 16px 0 6px; overflow: hidden; color: #e8eaf0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.resource-card > p { height: 29px; margin: 0; overflow: hidden; color: var(--muted-2); font-size: 8px; line-height: 1.7; }
.resource-card dl { margin: 15px 0; padding: 10px 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }.resource-card dl div { min-width: 0; padding: 0 8px; border-left: 1px solid var(--line-soft); }.resource-card dl div:first-child { border-left: 0; }.resource-card dt { color: var(--muted-2); font-size: 7px; text-transform: uppercase; }.resource-card dd { margin: 5px 0 0; overflow: hidden; color: #c6cbd4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }.mini-button { min-height: 27px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #141821; color: var(--muted); font-size: 8px; font-weight: 700; }.mini-button:hover { color: var(--text); }.mini-button.primary { border-color: rgba(139,124,255,.25); color: #b6aeff; }.mini-button.danger { border-color: rgba(240,112,120,.15); color: #db858b; }
.muted-copy, .empty-cell { color: var(--muted-2); font-size: 9px; }.empty-cell { padding: 40px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.feature-card { min-height: 130px; padding: 23px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }.feature-card.warning { border-color: rgba(244,184,96,.16); background: linear-gradient(120deg, rgba(244,184,96,.04), var(--surface)); }.feature-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; font-size: 18px; font-style: normal; }.feature-icon.green { background: rgba(67,211,158,.08); color: var(--green); }.feature-icon.amber { background: rgba(244,184,96,.08); color: var(--amber); }.feature-card p { margin: 0 0 7px; color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .12em; }.feature-card h3 { margin: 0 0 7px; font-size: 15px; }.feature-card small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.recovery-button { display: block; margin-top: 12px; }
.recovery-button[hidden] { display: none; }
.roadmap-card { margin-top: 14px; padding: 24px; }.roadmap-card h3 { margin: 0 0 22px; }.checklist { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.checklist div { padding: 13px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }.checklist i { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted-2); font-size: 8px; font-style: normal; }.checklist .done { color: #b9c4c0; }.checklist .done i { border-color: rgba(67,211,158,.25); background: rgba(67,211,158,.08); color: var(--green); }
.security-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.security-card { min-width: 0; padding: 18px; display: grid; grid-template-columns: 35px 1fr 20px; gap: 12px; align-items: center; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); }.security-card > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: rgba(139,124,255,.08); color: var(--violet); }.security-card p { margin: 0 0 5px; color: var(--muted); font-size: 8px; }.security-card h3 { margin: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.security-card small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 7px; }.security-card > i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; font-size: 8px; font-style: normal; }.security-card > i.ok { background: rgba(67,211,158,.08); color: var(--green); }.security-card > i.warn { background: rgba(244,184,96,.08); color: var(--amber); }
.security-account { margin-top: 14px; padding: 23px; display: flex; align-items: center; justify-content: space-between; }.security-account h3 { margin: 0 0 7px; }.security-account p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.network-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.network-summary article { padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }.network-summary span { display: block; margin-bottom: 8px; color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.network-summary strong { font-size: 22px; letter-spacing: -.04em; }
.network-detail-grid { margin-bottom: 14px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; }.table-heading { padding: 16px 18px 0; display: flex; align-items: center; justify-content: space-between; }.table-heading h3 { margin: 0; font-size: 11px; }.table-heading span { color: var(--muted-2); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }.process-pid { margin-top: 3px; display: block; color: var(--muted-2); font-size: 7px; font-weight: 500; }.network-listeners { margin-top: 0; }
.incident-severity { padding: 4px 7px; display: inline-block; border-radius: 5px; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.incident-severity.warning { background: rgba(244,184,96,.08); color: var(--amber); }.incident-severity.critical { background: rgba(240,112,120,.08); color: var(--red); }
.site-management { display: flex; align-items: center; gap: 7px; }.site-digest { margin: 14px 0; padding: 10px 12px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #0b0e13; }.site-digest span { color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.site-digest code { overflow: hidden; color: #b8b0ff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.site-adopt-controls,.site-edit-controls,.site-diff-controls { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.site-adopt-controls .field,.site-diff-controls .field { max-width: 300px; }.site-edit-controls textarea { width: 100%; min-height: 260px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #080a0e; color: #c4ccd7; font: 10px/1.6 "Cascadia Code", Consolas, monospace; }.site-edit-controls textarea:focus { border-color: rgba(139,124,255,.55); }.site-validation { margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(67,211,158,.2); border-radius: 8px; background: rgba(67,211,158,.05); color: var(--green); font-size: 9px; }.site-diff-controls pre { max-height: 42vh; }.site-diff-controls .modal-actions { align-items: center; }
.notification-strip { margin-bottom: 14px; padding: 15px 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }.notification-strip div { padding-left: 14px; border-left: 1px solid var(--line-soft); }.notification-strip div:first-child { padding-left: 0; border-left: 0; }.notification-strip span { display: block; margin-bottom: 6px; color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.notification-strip strong { font-size: 11px; text-transform: capitalize; }
.timeline { max-width: 900px; }.timeline article { position: relative; min-height: 84px; display: grid; grid-template-columns: 20px 1fr; gap: 14px; }.timeline article::before { content: ''; position: absolute; left: 7px; top: 20px; bottom: 0; width: 1px; background: var(--line); }.timeline article:last-child::before { display: none; }.timeline article > i { z-index: 1; width: 15px; height: 15px; margin-top: 3px; border: 4px solid var(--bg); border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 1px var(--line); }.timeline article > i.ok { background: var(--green); }.timeline article > i.bad { background: var(--red); }.timeline article > i.queued { background: var(--violet); }.timeline article > div { padding: 0 0 20px; }.timeline article > div > div { display: flex; justify-content: space-between; }.timeline strong { font-size: 10px; }.timeline span { color: var(--muted-2); font-size: 8px; }.timeline p { margin: 7px 0 3px; color: var(--muted); font-size: 9px; }.timeline small { color: var(--muted-2); font-size: 7px; }.timeline code { color: #aaa2ef; }

/* Modals and feedback */
.modal { width: min(480px, calc(100% - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }.modal::backdrop { background: rgba(4,6,9,.78); backdrop-filter: blur(5px); }.modal form { position: relative; padding: 30px; }.modal h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.035em; }.modal form > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.65; }.modal-close { position: absolute; right: 18px; top: 16px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }.impact-box { margin: 22px 0; padding: 13px; display: flex; gap: 11px; border: 1px solid rgba(244,184,96,.14); border-radius: 9px; background: rgba(244,184,96,.05); color: #b9aa90; font-size: 9px; line-height: 1.55; }.impact-box i { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; background: rgba(244,184,96,.1); color: var(--amber); font-style: normal; font-weight: 900; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }.log-modal { width: min(850px, calc(100% - 30px)); }.log-modal pre { max-height: 60vh; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #080a0e; color: #aeb7c4; font: 10px/1.65 "Cascadia Code", Consolas, monospace; white-space: pre-wrap; word-break: break-word; }.totp-secret { margin: 18px 0; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #0b0e13; }.totp-secret code { overflow: hidden; color: #b8b0ff; font-size: 12px; letter-spacing: .06em; text-overflow: ellipsis; }.totp-secret button { border: 0; background: transparent; color: var(--violet); cursor: pointer; font-size: 9px; font-weight: 750; }
.toast-stack { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 8px; }.toast { min-width: 260px; max-width: 380px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #171b24; box-shadow: var(--shadow); animation: toast-in .25s ease; font-size: 10px; }.toast i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: rgba(67,211,158,.08); color: var(--green); font-style: normal; }.toast.error i { background: rgba(240,112,120,.08); color: var(--red); }
.step-up-field { margin: 0 0 22px; }.step-up-field input { font-family: "Cascadia Code", Consolas, monospace; font-size: 16px; letter-spacing: .28em; }
.account-menu { position: fixed; z-index: 50; left: 155px; bottom: 18px; width: 145px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); box-shadow: var(--shadow); }.account-menu button { width: 100%; height: 34px; padding: 0 9px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 6px; background: transparent; color: #d1d5dd; cursor: pointer; font-size: 9px; }.account-menu button:hover { background: rgba(255,255,255,.04); }
.loading-screen { position: fixed; z-index: 200; inset: 0; display: grid; place-content: center; justify-items: center; background: var(--bg); transition: opacity .25s; }.loading-screen.is-done { opacity: 0; pointer-events: none; }.loading-line { width: 140px; height: 2px; margin: 28px 0 12px; overflow: hidden; background: #1e2330; }.loading-line i { display: block; width: 55%; height: 100%; background: var(--violet); animation: loading 1.2s ease-in-out infinite; }.loading-screen p { color: var(--muted-2); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(190%); } }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1.5fr; }
  .deployment-card { grid-column: 1; }.attention-card { grid-column: 2; }
  .attention-list { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2,1fr); }
  .security-grid { grid-template-columns: repeat(2,1fr); }
  .hero-meta { min-width: 330px; }
  .network-summary { grid-template-columns: repeat(2,1fr); }
  .network-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }.auth-brand { min-height: auto; padding: 50px 25px 20px; }.auth-brand .brand-mark, .trust-list { display: none; }.auth-brand h1 { font-size: 42px; }.auth-lead { margin: 20px 0 0; }.auth-card-wrap { padding: 25px; border-left: 0; background: transparent; }.auth-card-wrap::before { display: none; }.auth-card { padding: 26px; }
  .setup-shell { grid-template-columns: 1fr; gap: 35px; padding: 35px 0; }.brand-inline { margin-bottom: 35px; }.setup-intro h1 { font-size: 36px; }.setup-card { padding: 26px; }.setup-steps { display: none; }
  .panel-layout { display: block; }.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }.sidebar.is-open { transform: translateX(0); }.main-area { height: 100vh; }.mobile-menu { display: block; }.topbar { padding: 0 16px; }.topbar > div:first-of-type { flex: 1; margin-left: 10px; }.topbar-actions .live-pill, .topbar-actions .primary-button { display: none; }.content { padding: 20px 16px 40px; }
  .hero-status { align-items: flex-start; flex-direction: column; padding: 23px; }.hero-meta { width: 100%; min-width: 0; }.metric-grid, .dashboard-grid, .resource-grid, .feature-grid, .security-grid { grid-template-columns: 1fr; }.health-card, .attention-card, .deployment-card { grid-column: auto; grid-row: auto; }.checklist { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; gap: 0; }
  .network-summary { grid-template-columns: 1fr 1fr; }
  .notification-strip { grid-template-columns: 1fr; }.notification-strip div { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }.notification-strip div:first-child { padding-top: 0; border-top: 0; }
}

@media (max-width: 460px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }.hero-meta div:last-child { grid-column: span 2; border-left: 0; border-top: 1px solid rgba(255,255,255,.055); }.metric-grid { grid-template-columns: 1fr; }.section-toolbar { align-items: flex-start; flex-direction: column; }.security-account { align-items: flex-start; flex-direction: column; gap: 18px; }.toast-stack { left: 12px; right: 12px; }.toast { min-width: 0; }
}
