:root {
  --bg: #090c11;
  --surface: #0f141c;
  --surface-2: #141a23;
  --surface-3: #1a2130;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.13);
  --text: #f4f6fb;
  --muted: #929bab;
  --muted-2: #697386;
  --accent: #7b61ff;
  --accent-2: #4dd7ff;
  --green: #42d392;
  --yellow: #f4c95d;
  --red: #ff667f;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 264px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -10%, rgba(123,97,255,.12), transparent 30%), var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; overflow: hidden; position: relative; }
.login-glow { position: absolute; width: 460px; height: 460px; border-radius: 999px; filter: blur(110px); opacity: .24; pointer-events: none; }
.login-glow-a { background: var(--accent); top: -180px; right: -120px; }
.login-glow-b { background: var(--accent-2); bottom: -230px; left: -160px; opacity: .11; }
.login-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; position: relative; z-index: 1; }
.login-brand { display: grid; gap: 28px; }
.login-brand h1 { font-size: clamp(42px, 6vw, 74px); letter-spacing: -.055em; line-height: .98; margin: 12px 0 18px; max-width: 650px; }
.login-brand p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 520px; margin: 0; }
.brand-mark { width: 70px; height: 70px; border-radius: 21px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #5a40ed); box-shadow: 0 18px 50px rgba(123,97,255,.33); font-size: 34px; font-weight: 900; letter-spacing: -.08em; }
.brand-mark.small { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; flex: 0 0 auto; }
.eyebrow { color: var(--muted-2); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .17em; margin: 0 0 8px; }
.login-card { padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: rgba(15,20,28,.82); box-shadow: var(--shadow); backdrop-filter: blur(20px); display: grid; gap: 18px; }
.login-card-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
label { display: grid; gap: 8px; color: #bcc4d1; font-size: 13px; font-weight: 650; }
input, select { width: 100%; border: 1px solid var(--border-strong); background: #0b1017; color: var(--text); border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, select:focus { border-color: rgba(123,97,255,.7); box-shadow: 0 0 0 4px rgba(123,97,255,.12); background: #0d121a; }
.password-wrap { display: flex; position: relative; }
.password-wrap input { padding-right: 48px; }
.password-wrap .icon-button { position: absolute; right: 6px; top: 6px; }
.login-foot { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 2px; }
.login-foot span { padding: 5px 8px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted-2); font-size: 10px; letter-spacing: .04em; }
.form-error { margin: 0; color: #ff8fa2; background: rgba(255,102,127,.09); border: 1px solid rgba(255,102,127,.22); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

.primary-button, .secondary-button, .ghost-button, .danger-button, .icon-button, .avatar-button, .text-button { border: 0; transition: transform .16s, background .16s, opacity .16s, border-color .16s; }
.primary-button:active, .secondary-button:active, .ghost-button:active, .danger-button:active, .icon-button:active { transform: translateY(1px); }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #5d43ed); font-weight: 800; box-shadow: 0 12px 30px rgba(123,97,255,.25); }
.primary-button:hover { filter: brightness(1.08); }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { opacity: .5; cursor: not-allowed; }
.secondary-button { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); padding: 9px 12px; border-radius: 10px; font-size: 12px; font-weight: 750; }
.secondary-button:hover { background: var(--surface-3); border-color: var(--border-strong); }
.ghost-button { background: transparent; border: 1px solid var(--border); padding: 10px 13px; border-radius: 11px; color: var(--muted); font-weight: 700; }
.ghost-button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.danger-button { background: rgba(255,102,127,.12); border: 1px solid rgba(255,102,127,.28); color: #ff8fa2; padding: 11px 14px; border-radius: 11px; font-weight: 800; }
.danger-button:hover { background: rgba(255,102,127,.2); }
.text-button { background: transparent; color: #a996ff; font-size: 12px; font-weight: 800; padding: 6px; }
.icon-button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: transparent; color: var(--muted); }
.icon-button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.avatar-button { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, rgba(123,97,255,.95), rgba(77,215,255,.75)); display: grid; place-items: center; font-weight: 900; }
.full { width: 100%; }

.app { min-height: 100vh; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; background: rgba(12,16,23,.96); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 40; backdrop-filter: blur(18px); }
.sidebar-head { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-bottom: 1px solid var(--border); }
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy span { color: var(--muted-2); font-size: 11px; }
.sidebar-close { display: none; margin-left: auto; }
.nav { padding: 14px 10px; display: grid; gap: 3px; overflow-y: auto; }
.nav-item { border: 0; background: transparent; color: #8f98a8; border-radius: 11px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 13px; font-weight: 700; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.035); color: #d8dde7; }
.nav-item.active { background: rgba(123,97,255,.11); color: #c9bdff; }
.nav-item.active::before { content: ""; width: 3px; height: 18px; border-radius: 99px; background: var(--accent); position: absolute; left: 0; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-foot { margin-top: auto; padding: 14px; display: grid; gap: 10px; border-top: 1px solid var(--border); }
.connection-card { background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px; padding: 11px; display: grid; gap: 5px; }
.connection-card > div { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.connection-card > span { color: var(--muted-2); font-size: 10px; padding-left: 16px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--muted-2); box-shadow: 0 0 0 4px rgba(255,255,255,.025); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(66,211,146,.08), 0 0 18px rgba(66,211,146,.32); }
.status-dot.warning { background: var(--yellow); box-shadow: 0 0 0 4px rgba(244,201,93,.08); }
.status-dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgba(255,102,127,.08); }

.main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 78px; border-bottom: 1px solid var(--border); background: rgba(9,12,17,.82); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 25; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.topbar h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; border-right: 1px solid var(--border); padding-right: 14px; margin-right: 4px; }
.mobile-menu { display: none; }
.content { padding: 24px 28px 50px; max-width: 1600px; margin: 0 auto; }
.page { display: none; animation: pageIn .22s ease both; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.panel-card { background: linear-gradient(180deg, rgba(18,24,33,.96), rgba(14,19,27,.96)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(0,0,0,.12); }
.hero-status { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; overflow: hidden; position: relative; }
.hero-status::after { content: ""; position: absolute; right: -50px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(123,97,255,.16), transparent 68%); pointer-events: none; }
.hero-status-line { color: #8de7bb; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.hero-status h3 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.04em; }
.hero-status p { margin: 0; color: var(--muted); font-size: 12px; }
.hero-meta { display: flex; gap: 28px; position: relative; z-index: 1; }
.hero-meta div { display: grid; gap: 5px; min-width: 100px; }
.hero-meta span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.hero-meta strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.metric-grid.compact { margin-bottom: 16px; }
.metric-card { padding: 18px; min-height: 160px; display: flex; flex-direction: column; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(123,97,255,.09); color: #a998ff; }
.metric-value { display: flex; align-items: flex-end; gap: 4px; margin: 20px 0 13px; line-height: 1; }
.metric-value strong { font-size: 34px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric-value span { color: var(--muted); font-size: 14px; padding-bottom: 4px; }
.metric-value.small { margin-top: auto; margin-bottom: 0; }
.metric-value.small strong { font-size: 24px; }
.metric-card p { margin: auto 0 0; color: var(--muted-2); font-size: 10px; }
.progress { height: 5px; border-radius: 99px; background: rgba(255,255,255,.055); overflow: hidden; margin-bottom: 10px; }
.progress.large { height: 8px; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }
.network-value { display: grid; gap: 8px; margin: 19px 0 8px; }
.network-value div { display: flex; align-items: center; gap: 8px; }
.network-value span { color: var(--accent-2); }
.network-value div:last-child span { color: #ad9dff; }
.network-value strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.dashboard-grid .wide { min-width: 0; }
.chart-card { padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-cpu { background: var(--accent); }
.legend-memory { background: var(--accent-2); }
.legend-rx { background: var(--accent-2); }
.legend-tx { background: var(--accent); }
.chart-wrap { height: 230px; width: 100%; position: relative; }
.chart-wrap.large { height: 340px; }
canvas { width: 100%; height: 100%; display: block; }
.status-list { display: grid; gap: 2px; }
.status-row { min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.045); }
.status-row:last-child { border-bottom: 0; }
.status-row strong { display: block; font-size: 12px; margin-bottom: 3px; }
.status-row small { color: var(--muted-2); font-size: 10px; }
.status-row .row-value { text-align: right; color: var(--muted); font-size: 10px; }
.skeleton-list::before { content: "Daten werden geladen …"; color: var(--muted-2); font-size: 12px; display: block; padding: 18px 8px; }

.section-grid { display: grid; gap: 14px; }
.section-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide-card { grid-column: 1 / -1; }
.section-grid > .panel-card { padding: 20px; }
.detail-list { margin: 0; display: grid; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; font-size: 12px; font-weight: 750; text-align: right; max-width: 65%; overflow-wrap: anywhere; }
.load-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.load-grid div { padding: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 6px; text-align: center; }
.load-grid strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.load-grid span { color: var(--muted-2); font-size: 10px; }
.info-callout { margin-top: 14px; padding: 16px; border: 1px solid rgba(123,97,255,.18); background: rgba(123,97,255,.055); border-radius: 13px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; }
.info-callout span { color: #b9adff; font-size: 12px; font-weight: 750; }
.info-callout strong { font-variant-numeric: tabular-nums; }
.info-callout p { grid-column: 1 / -1; color: var(--muted-2); font-size: 10px; margin: 2px 0 0; line-height: 1.6; }
.empty-state { color: var(--muted-2); font-size: 12px; padding: 24px; background: rgba(255,255,255,.02); border: 1px dashed var(--border-strong); border-radius: 12px; text-align: center; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { color: var(--muted-2); text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { font-size: 11px; color: #c6ccd6; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.04); font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: rgba(255,255,255,.018); }
.memory-bars { display: grid; gap: 22px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; }
.bar-label span { color: var(--muted); }
.disk-card { padding: 20px; }
.disk-card-main { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.disk-card h3 { margin: 0 0 5px; font-size: 16px; }
.disk-card p { margin: 0; color: var(--muted-2); font-size: 10px; }
.disk-percent { font-size: 26px; font-weight: 850; }
.disk-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 9px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(77,215,255,.15); background: rgba(77,215,255,.045); border-radius: 13px; margin-bottom: 14px; }
.notice > span { color: var(--accent-2); }
.notice strong { font-size: 12px; }
.notice p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.service-card { padding: 18px; }
.service-card-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 16px; }
.service-card-title { display: flex; align-items: center; gap: 11px; }
.service-card h3 { margin: 0 0 3px; font-size: 14px; }
.service-card small { color: var(--muted-2); font-size: 10px; }
.state-badge { padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; background: rgba(255,255,255,.045); color: var(--muted); }
.state-badge.online { color: #78e7b2; background: rgba(66,211,146,.08); }
.state-badge.offline { color: #ff91a3; background: rgba(255,102,127,.08); }
.service-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.service-meta div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.025); }
.service-meta span { display: block; color: var(--muted-2); font-size: 9px; margin-bottom: 4px; }
.service-meta strong { font-size: 10px; overflow-wrap: anywhere; }
.certificate-list { display: grid; gap: 10px; }
.certificate-card { border: 1px solid var(--border); background: rgba(255,255,255,.02); border-radius: 12px; padding: 13px; }
.certificate-card-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.certificate-card strong { font-size: 12px; }
.certificate-card p { color: var(--muted-2); font-size: 10px; margin: 5px 0 0; }
.cert-days { font-size: 11px; font-weight: 800; color: #86e9b8; }
.cert-days.warning { color: var(--yellow); }
.cert-days.danger { color: var(--red); }
.terminal-card { padding: 18px; }
.inline-actions { display: flex; align-items: center; gap: 8px; }
.inline-actions select { min-width: 150px; padding: 9px 12px; font-size: 11px; }
.terminal { min-height: 520px; max-height: calc(100vh - 220px); overflow: auto; border: 1px solid var(--border); background: #070a0e; border-radius: 12px; padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.75; }
.terminal-line { white-space: pre-wrap; overflow-wrap: anywhere; color: #aeb8c8; border-bottom: 1px solid rgba(255,255,255,.025); padding: 1px 0; }
.terminal-line.error { color: #ff879a; }
.muted { color: var(--muted-2); }
.mono-list { display: grid; gap: 8px; }
.mono-list div { font-family: ui-monospace, monospace; font-size: 10px; color: #aeb8c8; padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.025); overflow-wrap: anywhere; }
.audit-list { display: grid; gap: 2px; }
.audit-row { display: grid; grid-template-columns: 150px 150px 1fr; gap: 12px; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 10px; }
.audit-row span:first-child { color: var(--muted-2); }
.audit-row strong { color: #c7bcff; }
.audit-row code { color: var(--muted); overflow-wrap: anywhere; white-space: normal; }
.danger-card { border-color: rgba(255,102,127,.18); background: linear-gradient(180deg, rgba(38,20,27,.52), rgba(18,18,25,.96)); }
.danger-card > p { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0 0 18px; }
.danger-text { color: #ff8297 !important; }
.muted-text { color: var(--muted-2); font-size: 10px; }

.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 30px); }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal-card { width: min(470px, calc(100vw - 30px)); border: 1px solid rgba(255,102,127,.2); border-radius: 22px; background: #11161f; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 15px; }
.modal-card h3 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.modal-card > p:not(.eyebrow):not(.form-error) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.danger-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,102,127,.12); color: var(--red); font-size: 21px; font-weight: 900; border: 1px solid rgba(255,102,127,.2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.reconnect-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(6,9,13,.96); display: grid; place-items: center; padding: 24px; }
.reconnect-card { width: min(540px,100%); text-align: center; }
.reconnect-card h2 { font-size: 30px; letter-spacing: -.04em; margin: 10px 0; }
.reconnect-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 13px; }
.spinner { width: 52px; height: 52px; border: 4px solid rgba(255,255,255,.08); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 26px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reconnect-steps { margin: 26px auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.reconnect-steps span { padding: 7px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted-2); font-size: 10px; }
.reconnect-steps span.done { color: #8ee7bb; border-color: rgba(66,211,146,.2); background: rgba(66,211,146,.06); }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.toast { padding: 12px 14px; border-radius: 12px; background: #151b25; border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 11px; animation: toastIn .2s ease both; }
.toast.error { border-color: rgba(255,102,127,.25); color: #ff9aac; }
.toast.success { border-color: rgba(66,211,146,.22); color: #8ce8ba; }
@keyframes toastIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .wide { grid-column: auto; }
}
@media (max-width: 900px) {
  :root { --sidebar: 278px; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .sidebar-close, .mobile-menu { display: grid; }
  .main { margin-left: 0; }
  .topbar { padding: 0 18px; }
  .content { padding: 18px 18px 42px; }
  .login-shell { grid-template-columns: 1fr; max-width: 520px; gap: 34px; }
  .login-brand { text-align: center; justify-items: center; }
  .login-brand h1 { font-size: 44px; }
  .hero-status { align-items: flex-start; flex-direction: column; }
  .hero-meta { width: 100%; flex-wrap: wrap; }
  .section-grid.two { grid-template-columns: 1fr; }
  .wide-card { grid-column: auto; }
}
@media (max-width: 620px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 148px; }
  .topbar-actions .clock, .topbar-actions .secondary-button span:last-child { display: none; }
  .topbar { height: 70px; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-status h3 { font-size: 23px; }
  .chart-wrap { height: 210px; }
  .load-grid { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
  .service-meta { grid-template-columns: 1fr; }
  .inline-actions { width: 100%; }
  .card-head { flex-wrap: wrap; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .login-screen { padding: 16px; }
  .login-card { padding: 21px; }
}

/* ───────────────────────── Control Center 2.3.4 ───────────────────────── */
:root {
  --bg: #07090e;
  --surface: #0d121a;
  --surface-2: #131a25;
  --surface-3: #192231;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.145);
  --text: #f7f8fc;
  --muted: #9aa5b7;
  --muted-2: #69758a;
  --accent: #8a6cff;
  --accent-2: #42d8ff;
  --green: #43dfa0;
  --yellow: #ffd166;
  --red: #ff6685;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --glow: 0 0 0 1px rgba(255,255,255,.025), 0 18px 55px rgba(0,0,0,.23);
  --radius: 20px;
  --sidebar: 276px;
}

body {
  background:
    radial-gradient(circle at 82% -12%, rgba(138,108,255,.17), transparent 33%),
    radial-gradient(circle at 30% 120%, rgba(66,216,255,.08), transparent 35%),
    linear-gradient(180deg, #080b11 0%, #07090e 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 88%);
}

.login-shell::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(138,108,255,.11);
  border-radius: 50%;
  left: -130px;
  top: -155px;
  box-shadow: 0 0 0 45px rgba(138,108,255,.025), 0 0 0 90px rgba(138,108,255,.012);
  pointer-events: none;
}
.brand-mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #a58eff 0%, #7655ff 48%, #4730d8 100%);
  box-shadow: 0 18px 55px rgba(111,76,255,.38), inset 0 1px rgba(255,255,255,.28);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -50% 30% 30% -40%;
  z-index: -1;
  transform: rotate(28deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
}
.login-card {
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(19,25,36,.9), rgba(10,14,21,.93));
  box-shadow: 0 28px 100px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.035);
}
.login-card::before {
  content: "";
  display: block;
  height: 2px;
  margin: -28px -28px 22px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .62;
}

.sidebar {
  background: linear-gradient(180deg, rgba(13,17,25,.985), rgba(8,11,17,.985));
  box-shadow: 24px 0 80px rgba(0,0,0,.14);
}
.sidebar-head { min-height: 86px; }
.brand-copy { flex: 1; }
.brand-edition {
  width: max-content;
  margin-top: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(138,108,255,.2);
  border-radius: 5px;
  color: #a995ff !important;
  background: rgba(138,108,255,.065);
  font-size: 7px !important;
  font-weight: 900;
  letter-spacing: .13em;
}
.nav { gap: 4px; padding: 17px 12px; }
.nav-item {
  min-height: 43px;
  border: 1px solid transparent;
  padding: 10px 12px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-item:hover { transform: translateX(2px); border-color: rgba(255,255,255,.045); }
.nav-item.active {
  color: #e1dcff;
  border-color: rgba(138,108,255,.19);
  background: linear-gradient(90deg, rgba(138,108,255,.16), rgba(138,108,255,.055));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.nav-item.active::before { left: -1px; height: 22px; box-shadow: 0 0 16px rgba(138,108,255,.5); }
.nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  font-size: 14px;
}
.nav-item.active .nav-icon { background: rgba(138,108,255,.13); }
.nav-divider { display: flex; align-items: center; gap: 10px; padding: 17px 10px 7px; color: #586378; font-size: 8px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.nav-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--border), transparent); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; background: rgba(138,108,255,.11); color: #baadff; font-size: 9px; }
.connection-card { background: linear-gradient(135deg, rgba(67,223,160,.055), rgba(255,255,255,.018)); }

.topbar {
  height: 86px;
  background: rgba(7,10,15,.78);
  border-bottom-color: rgba(255,255,255,.065);
  box-shadow: 0 10px 35px rgba(0,0,0,.11);
}
.topbar h2 { font-size: 21px; }
.content { padding-top: 28px; }

.panel-card {
  position: relative;
  background: linear-gradient(152deg, rgba(20,27,38,.94), rgba(11,16,24,.97));
  border-color: rgba(255,255,255,.082);
  box-shadow: var(--glow);
  overflow: hidden;
}
.panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.035), transparent 28%, transparent 75%, rgba(138,108,255,.018));
}
.panel-card > * { position: relative; }
.hero-status { min-height: 136px; padding: 27px 29px; margin-bottom: 18px; }
.hero-status::before {
  content: "";
  position: absolute;
  width: 5px;
  inset: 24px auto 24px 0;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(var(--green), var(--accent-2));
  box-shadow: 0 0 28px rgba(67,223,160,.28);
}
.hero-status::after { width: 390px; height: 390px; right: -90px; top: -190px; background: radial-gradient(circle, rgba(138,108,255,.2), transparent 67%); }
.hero-status h3 { font-size: 31px; }
.hero-meta div { min-width: 114px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.075); }
.metric-grid { gap: 16px; margin-bottom: 16px; }
.metric-card { min-height: 168px; padding: 20px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: rgba(138,108,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.metric-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -62px; top: -62px; border-radius: 50%; background: rgba(138,108,255,.07); filter: blur(2px); }
.metric-card:nth-child(2)::after { background: rgba(66,216,255,.07); }
.metric-card:nth-child(3)::after { background: rgba(67,223,160,.065); }
.metric-card:nth-child(4)::after { background: rgba(255,209,102,.055); }
.metric-value strong { font-size: 38px; }
.metric-icon { border: 1px solid rgba(138,108,255,.14); }
.progress { background: rgba(255,255,255,.06); box-shadow: inset 0 1px 2px rgba(0,0,0,.32); }
.progress i { box-shadow: 0 0 14px rgba(103,112,255,.34); }
.dashboard-grid { gap: 16px; }
.chart-card { padding: 21px; }
.chart-wrap { border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.status-row { border-radius: 10px; transition: background .16s ease; }
.status-row:hover { background: rgba(255,255,255,.025); }
.section-grid { gap: 16px; }
.section-grid > .panel-card { padding: 22px; }
.card-head h3 { font-size: 16px; }

/* Corrected storage spacing */
.storage-memory-card {
  margin-top: 24px;
  padding: 24px !important;
}
.storage-memory-card .card-head { margin-bottom: 24px; }
.memory-bars { gap: 28px; }
.memory-bars > div { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.018); }
.memory-bars .progress { margin-bottom: 0; }
.disk-card { transition: transform .18s ease, border-color .18s ease; }
.disk-card:hover { transform: translateY(-2px); border-color: rgba(66,216,255,.16); }
.disk-percent { background: linear-gradient(135deg, #fff, #a998ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Users */
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 4px 2px;
}
.page-intro h3 { margin: 0 0 7px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.045em; }
.page-intro p:not(.eyebrow) { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.user-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.user-summary { min-height: 120px; padding: 20px; display: grid; align-content: center; gap: 5px; }
.user-summary span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.user-summary strong { font-size: 30px; letter-spacing: -.05em; }
.user-summary small { color: var(--muted-2); font-size: 10px; }
.user-grid { display: grid; grid-template-columns: repeat(3, minmax(270px, 1fr)); gap: 16px; }
.user-card { padding: 20px; transition: transform .18s ease, border-color .18s ease, opacity .18s ease; }
.user-card:hover { transform: translateY(-2px); border-color: rgba(138,108,255,.19); }
.user-card.disabled { opacity: .68; }
.user-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.user-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-avatar { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: white; font-size: 16px; font-weight: 900; background: linear-gradient(145deg, var(--accent), #5137dd); box-shadow: 0 10px 25px rgba(112,75,255,.24), inset 0 1px rgba(255,255,255,.25); }
.user-identity h3 { margin: 0 0 3px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-identity p { margin: 0; color: var(--muted-2); font-size: 10px; }
.user-role-line { display: flex; gap: 7px; margin: 18px 0 11px; }
.role-chip, .self-chip { padding: 5px 8px; border-radius: 99px; border: 1px solid rgba(138,108,255,.14); background: rgba(138,108,255,.065); color: #b8aaff; font-size: 9px; font-weight: 800; }
.role-chip.owner { color: #ffd981; border-color: rgba(255,209,102,.18); background: rgba(255,209,102,.07); }
.self-chip { color: #76e4ff; border-color: rgba(66,216,255,.18); background: rgba(66,216,255,.065); }
.permission-chips { min-height: 54px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.permission-chips span { padding: 5px 7px; border-radius: 7px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 9px; }
.user-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 17px 0; }
.user-meta div { min-width: 0; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.024); }
.user-meta dt { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.user-meta dd { margin: 5px 0 0; color: #cbd2de; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-modal-card { width: min(760px, calc(100vw - 30px)); max-height: min(900px, calc(100vh - 30px)); overflow-y: auto; border-color: rgba(138,108,255,.2); }
.modal-heading { display: flex; align-items: center; gap: 13px; }
.modal-heading h3 { font-size: 23px; }
.user-modal-symbol { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #c8bdff; border: 1px solid rgba(138,108,255,.2); background: rgba(138,108,255,.09); font-size: 21px; }
.form-grid { display: grid; gap: 13px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field-help { color: var(--muted-2); font-size: 9px; font-weight: 500; line-height: 1.5; }
.preset-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preset-row > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.preset-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.preset-button { padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 9px; font-weight: 800; }
.preset-button:hover { color: var(--text); border-color: rgba(138,108,255,.25); background: rgba(138,108,255,.065); }
.preset-button:disabled { opacity: .4; cursor: not-allowed; }
.permission-fieldset { margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 15px; }
.permission-fieldset legend { padding: 0 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.permission-group { display: grid; gap: 6px; align-content: start; }
.permission-group h4 { margin: 5px 4px 2px; color: #7c879a; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.permission-option { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-height: 60px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.018); cursor: pointer; }
.permission-option:hover { border-color: rgba(138,108,255,.2); }
.permission-option input { position: absolute; opacity: 0; pointer-events: none; }
.permission-option span { display: grid; gap: 4px; }
.permission-option strong { color: #cdd3df; font-size: 10px; }
.permission-option small { color: var(--muted-2); font-size: 8px; line-height: 1.45; font-weight: 500; }
.permission-option i { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 7px; color: transparent; background: rgba(255,255,255,.02); font-size: 11px; font-style: normal; }
.permission-option:has(input:checked) { border-color: rgba(138,108,255,.28); background: rgba(138,108,255,.055); }
.permission-option input:checked ~ i { color: white; border-color: transparent; background: linear-gradient(135deg, var(--accent), #6246e9); box-shadow: 0 5px 16px rgba(112,76,255,.25); }
.permission-option:has(input:disabled) { opacity: .58; cursor: not-allowed; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.018); cursor: pointer; }
.switch-row > span { display: grid; gap: 4px; }
.switch-row strong { color: #d3d9e4; font-size: 11px; }
.switch-row small { color: var(--muted-2); font-size: 9px; font-weight: 500; }
.switch-input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { position: relative; width: 43px; height: 24px; flex: 0 0 auto; border-radius: 99px; background: #252d3a; border: 1px solid var(--border); transition: .2s; }
.switch-row i::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 2px; border-radius: 50%; background: #8690a0; transition: .2s; }
.switch-input:checked + i { background: rgba(67,223,160,.18); border-color: rgba(67,223,160,.25); }
.switch-input:checked + i::after { transform: translateX(18px); background: var(--green); box-shadow: 0 0 12px rgba(67,223,160,.35); }
.switch-row:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.split-actions { justify-content: space-between; align-items: center; }
.split-actions > div { display: flex; gap: 9px; }
.subtle-danger { background: transparent; }
.compact-modal { width: min(480px, calc(100vw - 30px)); }

@media (max-width: 1250px) {
  .user-grid { grid-template-columns: repeat(2, minmax(270px, 1fr)); }
}
@media (max-width: 900px) {
  .topbar { height: 76px; }
  .user-summary-grid { grid-template-columns: 1fr 1fr; }
  .user-summary:last-child { grid-column: 1 / -1; }
  .user-grid { grid-template-columns: 1fr; }
  .page-intro { align-items: flex-start; }
}
@media (max-width: 620px) {
  .hero-status { padding: 23px; }
  .hero-meta div { padding-left: 0; border-left: 0; }
  .storage-memory-card { margin-top: 18px; padding: 19px !important; }
  .memory-bars > div { padding: 13px; }
  .page-intro { flex-direction: column; }
  .page-intro .primary-button { width: 100%; }
  .user-summary-grid { grid-template-columns: 1fr; }
  .user-summary:last-child { grid-column: auto; }
  .form-grid.two, .permission-grid { grid-template-columns: 1fr; }
  .preset-row { align-items: flex-start; flex-direction: column; }
  .preset-buttons { justify-content: flex-start; }
  .split-actions { align-items: stretch; flex-direction: column-reverse; }
  .split-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .split-actions > button { width: 100%; }
}
.field-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-tools .text-button { flex: 0 0 auto; font-size: 9px; }
@media (max-width: 620px) { .field-tools { align-items: flex-start; flex-direction: column; } }


/* ========================================================================
   Control Center 2.3.4 — spacing, polish and interaction corrections
   ======================================================================== */

:root {
  --content-gap: 20px;
  --card-padding: 24px;
  --card-highlight: rgba(255,255,255,.045);
}

html {
  scrollbar-color: #30394a #090c11;
  scrollbar-width: thin;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 79% 8%, rgba(119,82,255,.105), transparent 31rem),
    radial-gradient(circle at 45% 105%, rgba(48,190,255,.045), transparent 36rem),
    linear-gradient(rgba(255,255,255,.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.008) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), transparent 92%);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.permission-option:focus-within,
.switch-row:focus-within {
  outline: 2px solid rgba(112,160,255,.95);
  outline-offset: 3px;
}

.nav-item {
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.nav-item[hidden] {
  display: none !important;
}

#users-nav-item {
  pointer-events: auto;
}

.content {
  width: 100%;
  max-width: 1680px;
  padding: 30px 34px 64px;
}

.page-stack.active {
  display: grid;
  gap: var(--content-gap);
}

.page-stack > * {
  min-width: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* The network and storage pages previously had touching cards. */
.page[data-page-panel="network"] > .panel-card:not(.chart-card) {
  padding: var(--card-padding);
}

.page[data-page-panel="network"] .metric-grid {
  margin-bottom: 0;
}

.page[data-page-panel="network"] .chart-card {
  padding: var(--card-padding);
}

.storage-page {
  --content-gap: 24px;
}

.storage-page #disk-cards {
  gap: 18px;
  margin: 0;
}

.storage-memory-card {
  margin: 0 !important;
  padding: 26px !important;
}

.storage-memory-card .card-head {
  margin-bottom: 22px;
}

.memory-bars {
  gap: 18px;
}

.memory-bars > div {
  padding: 17px 18px 18px;
  border-color: rgba(255,255,255,.07);
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 68%),
    rgba(6,10,16,.26);
}

.memory-bars > div + div {
  margin-top: 0;
}

.memory-bars .bar-label {
  margin-bottom: 12px;
}

.memory-bars .progress.large {
  height: 9px;
}

.disk-card {
  min-height: 162px;
}

.disk-card-main {
  margin-bottom: 20px;
}

.panel-card {
  isolation: isolate;
}

.panel-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(139,116,255,.15), transparent);
  opacity: .5;
}

.card-head {
  margin-bottom: 18px;
}

.card-head .eyebrow {
  margin-bottom: 9px;
}

.topbar {
  padding-inline: 34px;
}

.topbar-actions {
  gap: 12px;
}

.secondary-button,
.ghost-button,
.primary-button,
.danger-button {
  min-height: 40px;
}

.table-wrap {
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 13px;
  overflow: auto;
  background: rgba(5,9,15,.18);
}

th {
  height: 42px;
  background: rgba(255,255,255,.018);
}

td {
  height: 45px;
}

.user-grid {
  align-items: stretch;
}

.user-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.user-card .user-edit {
  margin-top: auto;
}

.error-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
}

.error-state strong {
  color: #ff9bad;
  font-size: 13px;
}

.error-state span {
  max-width: 620px;
  font-size: 11px;
  line-height: 1.6;
}

.error-state button {
  width: max-content;
  margin-top: 4px;
}

@media (max-width: 1200px) {
  .content {
    padding-inline: 24px;
  }

  .topbar {
    padding-inline: 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --content-gap: 16px;
    --card-padding: 18px;
  }

  .content {
    padding: 20px 14px 42px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .storage-page {
    --content-gap: 18px;
  }

  .storage-memory-card {
    padding: 19px !important;
  }

  .memory-bars > div {
    padding: 14px;
  }
}


/* ========================================================================
   Control Center 2.3.4 — logo, heading alignment and storage simplification
   ======================================================================== */
.logo-mark {
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}
.logo-mark::after { display: none !important; }
.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 12px 36px rgba(93,180,255,.18);
}
.sidebar .brand-mark.small {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.login-brand .brand-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.eyebrow {
  display: block;
  padding-left: 2px;
  line-height: 1.25;
}
.card-head > div,
.metric-head > span:first-child,
.page-intro > div,
.topbar > div {
  min-width: 0;
  padding-left: 2px;
}
.card-head,
.metric-head,
.page-intro,
.topbar {
  overflow: visible;
}
.card-head .eyebrow,
.page-intro .eyebrow,
.topbar .eyebrow {
  letter-spacing: .16em;
}
.storage-disk-card {
  padding: 26px !important;
}
.storage-disk-primary {
  display: block;
}
.storage-primary-grid {
  display: grid;
  gap: 20px;
}
.storage-primary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.storage-primary-head h3 {
  margin: 0 0 4px;
  font-size: 30px;
  letter-spacing: -.04em;
}
.storage-primary-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.storage-primary-meta,
.memory-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.storage-primary-meta div,
.memory-stat-grid div {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
}
.storage-primary-meta span,
.memory-stat-grid span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.storage-primary-meta strong,
.memory-stat-grid strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -.02em;
}
.memory-bars {
  gap: 20px;
}
.memory-bars > div {
  gap: 0;
}
.memory-stat-grid {
  margin-top: 14px;
}
@media (max-width: 760px) {
  .storage-primary-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .storage-primary-meta,
  .memory-stat-grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================
   Control Center 2.3.4 — spacing, search, account button and service polish
   ======================================================================== */
#overview-services-card,
#overview-websites-card,
.dashboard-grid > .panel-card:not(.chart-card) {
  padding: 24px;
}

#overview-services-card .card-head,
#overview-websites-card .card-head {
  margin-bottom: 18px;
}

.card-head > div:first-child {
  display: grid;
  gap: 6px;
  align-content: start;
}

.card-head .eyebrow,
.metric-head span:first-child .eyebrow,
#page-kicker {
  margin: 0;
  opacity: .94;
}

.card-head h3,
.page-intro h3,
.topbar h2 {
  line-height: 1.12;
}

.account-button {
  min-width: 180px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(138,108,255,.08));
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.account-button:hover {
  transform: translateY(-1px);
  border-color: rgba(138,108,255,.25);
}

.account-text {
  display: grid;
  justify-items: start;
  line-height: 1.1;
  gap: 3px;
}

.account-text strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.account-text small {
  color: var(--muted-2);
  font-size: 10px;
}

.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(420px, 100%);
  padding: 0 12px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.search-field.compact {
  min-width: 260px;
}

.search-field span {
  color: var(--muted-2);
  font-size: 12px;
}

.search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-field input::placeholder {
  color: #738098;
}

.card-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolbar-card {
  padding: 22px 24px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .95fr) minmax(240px, .9fr);
  gap: 18px;
  align-items: center;
}

.toolbar-grid h3 {
  margin: 0;
  font-size: 18px;
}

.toolbar-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.toolbar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.toolbar-stats div {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012));
}

.toolbar-stats span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.toolbar-stats strong {
  display: block;
  font-size: 24px;
  letter-spacing: -.04em;
}

.premium-card {
  background: linear-gradient(152deg, rgba(20,27,38,.97), rgba(9,14,22,.99));
  box-shadow: 0 16px 42px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.035);
}

.service-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138,108,255,.15);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.storage-memory-card .memory-bars {
  grid-template-columns: 1fr;
}

.storage-memory-card .memory-bars > div {
  min-height: 0;
}

@media (max-width: 1180px) {
  .toolbar-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-button {
    min-width: 0;
    padding-inline: 12px;
  }

  .account-text small {
    display: none;
  }

  .search-field,
  .search-field.compact {
    min-width: 100%;
  }

  .card-tools {
    width: 100%;
    justify-content: stretch;
  }

  .card-tools > * {
    width: 100%;
  }

  .toolbar-stats {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================
   Control Center 2.3.4 — service spacing and signed-in user label
   ======================================================================== */
#service-cards {
  display: grid;
  column-gap: 20px !important;
  row-gap: 20px !important;
  margin-top: 20px;
}

#service-cards .service-card {
  margin: 0 !important;
}

.account-button {
  min-width: 205px;
  justify-content: center;
}

.account-text {
  display: block;
  width: 100%;
  text-align: center;
}

.account-text strong {
  display: block;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .account-button {
    min-width: 0;
    max-width: 190px;
  }

  .account-text strong {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* ========================================================================
   Control Center 2.3.4 — process header spacing and RAM summary
   ======================================================================== */
.process-panel-card {
  padding: 24px;
}

.process-panel-card > .card-head {
  margin-bottom: 18px;
}

.process-panel-card > .card-head > div:first-child {
  padding-left: 2px;
}

.process-panel-card > .card-head .eyebrow {
  margin: 0;
  line-height: 1.25;
}

.process-panel-card > .card-head h3 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .process-panel-card {
    padding: 18px;
  }
}


/* ========================================================================
   Control Center 2.3.4 — log search and RAM total card
   ======================================================================== */
.memory-stat-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.log-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.log-search-field {
  min-width: 260px;
}

.terminal-line mark {
  padding: 1px 2px;
  border-radius: 3px;
  background: rgba(255, 209, 102, .22);
  color: #ffe29a;
}

.terminal-empty {
  padding: 18px 4px;
  border-bottom: 0;
}

@media (max-width: 960px) {
  .memory-stat-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .log-actions {
    width: 100%;
    justify-content: stretch;
  }

  .log-actions > * {
    flex: 1 1 220px;
  }
}

@media (max-width: 620px) {
  .memory-stat-grid-four {
    grid-template-columns: 1fr;
  }

  .log-search-field,
  .log-actions select,
  .log-actions button {
    width: 100%;
    min-width: 100%;
  }
}

/* ========================================================================
   Control Center 2.4.2 — history, alerts, sessions and expanded audit
   ======================================================================== */
.alert-nav-badge.has-alerts {
  color: #ffd0d7;
  background: rgba(255,102,127,.16);
  box-shadow: 0 0 18px rgba(255,102,127,.18);
}

.range-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
}

.range-switch button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.range-switch button:hover,
.range-switch button.active {
  color: #ebe7ff;
  background: linear-gradient(135deg, rgba(123,97,255,.18), rgba(77,215,255,.08));
}

.history-summary-grid,
.alert-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.history-summary,
.alert-summary {
  min-height: 124px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.history-summary > span,
.alert-summary > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-summary strong,
.alert-summary strong {
  font-size: 30px;
  letter-spacing: -.05em;
}

.history-summary small,
.alert-summary small {
  color: var(--muted-2);
  font-size: 10px;
}

.alert-summary.critical {
  border-color: rgba(255,102,127,.15);
  background: linear-gradient(150deg, rgba(42,19,28,.8), rgba(14,18,26,.97));
}

.alert-summary.warning {
  border-color: rgba(244,201,93,.14);
  background: linear-gradient(150deg, rgba(38,31,18,.72), rgba(14,18,26,.97));
}

.history-chart-card {
  padding: 24px;
}

.history-chart-wrap {
  min-height: 260px;
  height: 260px;
}

.history-chart-grid .history-chart-wrap {
  min-height: 230px;
  height: 230px;
}

.legend-disk { background: #f4c95d !important; }
.legend-steal { background: #ff667f !important; }

.history-empty {
  margin: 0;
}

.active-alert-list {
  display: grid;
  gap: 12px;
}

.alerts-active-card,
.events-card {
  padding: 24px;
}

.active-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}

.active-alert.critical {
  border-color: rgba(255,102,127,.18);
  background: linear-gradient(135deg, rgba(255,102,127,.055), rgba(255,255,255,.015));
}

.active-alert.warning {
  border-color: rgba(244,201,93,.17);
  background: linear-gradient(135deg, rgba(244,201,93,.05), rgba(255,255,255,.015));
}

.active-alert.acknowledged {
  opacity: .72;
}

.alert-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffdbe1;
  background: rgba(255,102,127,.12);
  font-weight: 900;
}

.active-alert.warning .alert-symbol {
  color: #ffe6a6;
  background: rgba(244,201,93,.12);
}

.alert-content {
  min-width: 0;
}

.alert-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.alert-title-line h4 {
  margin: 0;
  font-size: 13px;
}

.active-alert p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 9px;
}

.severity-badge {
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.severity-badge.critical {
  color: #ff9bad;
  background: rgba(255,102,127,.1);
}

.severity-badge.warning {
  color: #f9d97f;
  background: rgba(244,201,93,.1);
}

.healthy-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.healthy-state > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(66,211,146,.09);
  font-size: 20px;
}

.healthy-state strong {
  color: var(--text);
  font-size: 13px;
}

.healthy-state p {
  margin: 5px 0 0;
  font-size: 10px;
}

.event-filters {
  flex-wrap: wrap;
}

.event-filters select {
  min-width: 150px;
}

.event-list {
  display: grid;
  gap: 2px;
}

.event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255,255,255,.045);
}

.event-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 12px rgba(145,155,171,.25);
}

.event-dot.critical { background: var(--red); box-shadow: 0 0 13px rgba(255,102,127,.36); }
.event-dot.warning { background: var(--yellow); box-shadow: 0 0 13px rgba(244,201,93,.3); }
.event-dot.info { background: var(--accent-2); }

.event-row-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.event-row-title strong {
  font-size: 11px;
}

.event-row-title span,
.event-row small {
  color: var(--muted-2);
  font-size: 9px;
}

.event-row p {
  margin: 5px 0 3px;
  color: #ccd3df;
  font-size: 11px;
}

.sessions-card {
  margin-top: 20px;
  padding: 24px;
}

.card-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.current-session {
  background: rgba(66,211,146,.025);
}

.current-chip {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 6px;
  border-radius: 99px;
  color: #82e8b7;
  background: rgba(66,211,146,.08);
  font-size: 8px;
  font-weight: 850;
}

.session-revoke {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 9px;
}

.audit-card {
  padding: 24px;
}

.audit-card-head {
  align-items: flex-start;
}

.result-count {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 9px;
  white-space: nowrap;
}

.audit-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, .35fr) minmax(150px, .3fr) auto;
  gap: 9px;
  margin-bottom: 16px;
}

.audit-toolbar .search-field {
  min-width: 0;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.audit-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 13px;
  background: rgba(255,255,255,.017);
}

.audit-entry.warning { border-color: rgba(244,201,93,.13); }
.audit-entry.critical { border-color: rgba(255,102,127,.15); }
.audit-entry.success { border-color: rgba(66,211,146,.12); }

.audit-entry-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #bfb4ff;
  background: rgba(123,97,255,.09);
  font-size: 11px;
  font-weight: 900;
}

.audit-entry.warning .audit-entry-icon { color: #f5d783; background: rgba(244,201,93,.09); }
.audit-entry.critical .audit-entry-icon { color: #ff9caf; background: rgba(255,102,127,.1); }
.audit-entry.success .audit-entry-icon { color: #7ce5b2; background: rgba(66,211,146,.09); }

.audit-entry-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.audit-entry-title strong {
  font-size: 11px;
}

.audit-entry-title span {
  color: var(--muted-2);
  font-size: 9px;
  white-space: nowrap;
}

.audit-entry-meta,
.audit-entry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
  margin-top: 7px;
}

.audit-entry-meta span {
  color: #9e92df;
  font-size: 9px;
}

.audit-entry-details span {
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.audit-entry-details b {
  color: #9aa5b6;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .history-summary-grid,
  .alert-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .audit-toolbar .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .history-intro {
    align-items: stretch;
  }

  .range-switch {
    width: 100%;
  }

  .range-switch button {
    flex: 1 1 44%;
  }

  .history-summary-grid,
  .alert-summary-grid {
    grid-template-columns: 1fr;
  }

  .history-chart-wrap,
  .history-chart-grid .history-chart-wrap {
    height: 220px;
    min-height: 220px;
  }

  .active-alert {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .active-alert .alert-acknowledge {
    grid-column: 1 / -1;
    width: 100%;
  }

  .event-filters {
    width: 100%;
  }

  .event-filters > * {
    width: 100%;
  }

  .audit-toolbar {
    grid-template-columns: 1fr;
  }

  .audit-toolbar .search-field {
    grid-column: auto;
  }

  .audit-entry-title {
    flex-direction: column;
    gap: 4px;
  }

  .sessions-card {
    padding: 18px;
  }
}


/* Control Center 2.4.2 — history averages and peaks */
.history-range-panel {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.history-range-meta {
  color: var(--muted-2);
  font-size: 10px;
}

#history-network-average {
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

#history-network-maximum {
  line-height: 1.45;
}

@media (max-width: 760px) {
  .history-range-panel {
    width: 100%;
    justify-items: start;
  }
}
