:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #101c2d;
  --panel-2: #16253a;
  --line: #273951;
  --text: #edf4fb;
  --muted: #9fb0c5;
  --accent: #32d3ad;
  --accent-dark: #0d9f82;
  --danger: #ff6f7d;
  --warning: #ffc857;
  --shadow: 0 18px 50px rgba(0, 0, 0, .26);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0, #17314a 0, var(--bg) 34rem); color: var(--text); }
a { color: inherit; text-decoration: none; }
code { color: #bcefe2; overflow-wrap: anywhere; }
.topbar { min-height: 72px; display: flex; align-items: center; gap: 28px; padding: 12px clamp(20px, 4vw, 56px); background: rgba(7, 17, 31, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 4; }
.brand { display: flex; gap: 11px; align-items: center; font-weight: 750; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #4aa7ff); color: #06121d; font-weight: 900; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: .94rem; }
nav a:hover { color: var(--text); }
.user-menu { margin-left: auto; display: flex; gap: 14px; align-items: center; color: var(--muted); }
.user-menu form, .actions form { margin: 0; }
.container { width: min(1240px, calc(100% - 32px)); margin: 38px auto 70px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; margin: 4px 0 10px; letter-spacing: -.04em; }
h2 { margin: 0 0 16px; font-size: 1.15rem; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.muted, small { color: var(--muted); }
.panel, .login-card { background: linear-gradient(145deg, rgba(22, 37, 58, .97), rgba(13, 25, 41, .97)); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 24px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: 1.8rem; }.stat span { color: var(--muted); font-size: .9rem; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--panel-2); padding: 12px 14px; border-radius: 11px; }
.service strong { font-size: .8rem; color: var(--muted); }.dot { width: 9px; height: 9px; border-radius: 50%; }.online { background: var(--accent); box-shadow: 0 0 13px rgba(50, 211, 173, .75); }.offline { background: var(--danger); }
.facts { margin: 0; }.facts div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 0; }.facts div:first-child { border-top: 0; }.facts dt { color: var(--muted); }.facts dd { margin: 0; font-weight: 700; }
.button { appearance: none; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; }
.button:hover { border-color: #4b6584; }.button.primary { background: linear-gradient(135deg, var(--accent), #50b5ff); color: #06131e; border: 0; }.button.danger { color: #ffd9dd; border-color: #63323d; background: #351c27; }.button.ghost { background: transparent; }.button.small { padding: 7px 10px; font-size: .82rem; }
.table-wrap { overflow-x: auto; padding: 0; }table { width: 100%; border-collapse: collapse; }th, td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }tbody tr:last-child td { border-bottom: 0; }.actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }.empty { text-align: center; color: var(--muted); padding: 35px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.form-grid.compact { padding-top: 15px; }.wide { grid-column: 1 / -1; }.stack { display: grid; gap: 17px; }label { display: grid; gap: 8px; font-weight: 650; }input, textarea, select { width: 100%; background: #091522; color: var(--text); border: 1px solid #334963; border-radius: 10px; padding: 11px 12px; font: inherit; }textarea { resize: vertical; }input:focus, textarea:focus, select:focus { outline: 2px solid rgba(50, 211, 173, .4); border-color: var(--accent); }input[readonly] { opacity: .72; }fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 15px; display: flex; gap: 20px; flex-wrap: wrap; }legend { color: var(--muted); padding: 0 8px; }.check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-weight: 500; }.check input { width: auto; }.align-end { align-self: end; padding-bottom: 12px; }.secret-box { background: rgba(2, 9, 17, .38); border: 1px solid #2b5860; border-radius: 13px; padding: 18px; }.secret-box p { color: var(--muted); }.form-actions { display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }.narrow { max-width: 620px; margin: 60px auto; }.login-card { max-width: 880px; margin: 9vh auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding: clamp(28px, 5vw, 55px); }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }.message { padding: 13px 16px; border-radius: 11px; border: 1px solid var(--line); }.message.success { background: #11392f; border-color: #1d6f5b; }.message.error { background: #3a1c28; border-color: #773445; }.ok-text { color: var(--accent); }.warn-text { color: var(--warning); }.pagination { justify-content: center; align-items: center; margin-top: 18px; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; font-size: .78rem; font-weight: 800; white-space: nowrap; }.status-ok { color: var(--accent); background: rgba(50, 211, 173, .10); border-color: rgba(50, 211, 173, .35); }.status-warning { color: var(--warning); background: rgba(255, 200, 87, .10); border-color: rgba(255, 200, 87, .35); }.status-error { color: #ff9ba5; background: rgba(255, 111, 125, .10); border-color: rgba(255, 111, 125, .35); }.status-info { color: #8fc6ff; background: rgba(80, 181, 255, .10); border-color: rgba(80, 181, 255, .35); }.padded-heading { padding: 22px 24px 6px; }.compact-copy { margin: -8px 0 12px; }.log-panel { margin-top: 18px; }.nowrap { white-space: nowrap; }.privacy-note { color: var(--muted); font-size: .85rem; line-height: 1.55; max-width: 980px; margin: 18px auto 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); padding: 24px clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; }
@media (max-width: 950px) { .topbar { align-items: flex-start; flex-wrap: wrap; }.user-menu { margin-left: 0; }.stats { grid-template-columns: 1fr 1fr; }.service-grid { grid-template-columns: 1fr 1fr; }.form-grid, .login-card { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .container { width: min(100% - 20px, 1240px); }.page-heading { align-items: flex-start; flex-direction: column; }.stats, .two-column, .service-grid { grid-template-columns: 1fr; }.actions { flex-direction: column; }.topbar nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }.user-menu { margin-left: auto; }.form-grid { grid-template-columns: 1fr; }.wide { grid-column: auto; } }
