:root {
  --bg: #0B1117; --panel: #121A23; --panel-2: #0F1720; --chip: #1A2430;
  --line: #1E2A37; --line-2: #2A3A4C;
  --text: #E6EDF3; --text-2: #B4C0CC; --muted: #93A1B0; --faint: #6B7988;
  --cyan: #3CC4F5; --cyan-ink: #04202E; --cyan-soft: #7DD8FA;
  --green: #3DD68C; --green-soft: #6EE7A8;
  --orange: #F5A524; --orange-soft: #FBC46A; --red-soft: #FCA5A5;
  --mono: 'IBM Plex Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Heebo', 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--cyan-soft); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
code, .mono { font-family: var(--mono); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.sub { font-size: 13px; color: var(--muted); }
.strong { font-weight: 700; color: var(--text); text-decoration: none; }
a.strong:hover { color: var(--cyan-soft); }
.c-cyan { color: var(--cyan-soft) !important; } .c-red { color: var(--red-soft) !important; } .c-orange { color: var(--orange-soft) !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* header / footer */
.top { min-height: 76px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.logo-chip { height: 52px; padding: 4px 10px; background: #fff; border-radius: 10px; display: inline-flex; align-items: center; }
.logo-chip img { height: 44px; display: block; }
.divider { width: 1px; height: 36px; background: #263343; }
.product { display: block; font-size: 19px; font-weight: 800; }
.tagline { display: block; font-size: 13px; color: var(--muted); }
.nav, .top-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a:not(.pill) { padding: 10px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav a:not(.pill):hover { background: var(--chip); color: var(--text); }
.nav a.on { background: rgba(60,196,245,.12); color: var(--cyan-soft); font-weight: 700; }
.who { color: var(--muted); font-size: 13px; padding: 0 10px; direction: ltr; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 22px; color: var(--text); text-decoration: none; font-weight: 700; }
.pill:hover { border-color: var(--cyan); }
.foot { padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #080D12; border-top: 1px solid #1A2430; font-size: 13px; color: var(--muted); }

/* buttons & forms */
.btn { min-height: 46px; padding: 0 22px; border-radius: 12px; font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--cyan); color: var(--cyan-ink); font-weight: 800; }
.btn.primary:hover { background: #63D1F7; }
.btn.outline { background: transparent; border-color: var(--cyan); color: var(--cyan-soft); }
.btn.outline:hover { background: rgba(60,196,245,.08); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn.danger { background: transparent; border-color: rgba(248,113,113,.5); color: var(--red-soft); }
.btn:disabled { background: var(--line); color: var(--faint); border-color: var(--line-2); cursor: not-allowed; }
.btn.big { min-height: 56px; font-size: 18px; padding: 0 30px; }
.link { background: none; border: 0; padding: 6px 4px; color: var(--cyan-soft); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--red-soft); }
.inline { display: inline; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.field input, .field select, .field textarea, textarea, .search { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; width: 100%; }
.field input[dir=ltr], .field textarea[dir=ltr] { font-family: var(--mono); text-align: left; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input, .cb input { width: 20px; height: 20px; accent-color: var(--cyan); margin: 0; flex-shrink: 0; }
.hint { font-size: 12px; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { padding: 0 8px; font-weight: 700; color: var(--text); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.alert.ok { background: rgba(61,214,140,.12); color: var(--green-soft); }
.alert.bad { background: rgba(248,113,113,.14); color: var(--red-soft); }
.alert.warn { background: rgba(245,165,36,.12); color: var(--orange-soft); }
.note { color: var(--text-2); }
.note.warn { color: var(--orange-soft); font-size: 13px; }

/* tags */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap; margin: 2px 0; }
.t-critical { background: rgba(248,113,113,.14); color: var(--red-soft); }
.t-security { background: rgba(245,165,36,.14); color: var(--orange-soft); }
.t-update, .t-running { background: rgba(60,196,245,.14); color: var(--cyan-soft); }
.t-ok, .t-done { background: rgba(61,214,140,.12); color: var(--green-soft); }
.t-failed { background: rgba(248,113,113,.18); color: var(--red-soft); }
.t-pending, .t-queued, .t-skipped { background: var(--chip); color: var(--muted); }

/* admin */
.page { max-width: 1400px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; min-height: calc(100vh - 140px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .sub { margin-top: 4px; max-width: 760px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { font-size: 13px; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 6px; }
.search { max-width: 340px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile strong { font-size: 30px; font-weight: 800; line-height: 1.2; }
.tile strong.small { font-size: 17px; font-weight: 700; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card.pad { padding: 22px 24px; }
.card-head { min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; }
.card-foot { padding: 14px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); background: var(--panel-2); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; align-items: start; }
.cols.wide-first { grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--panel-2); padding: 10px 14px; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid #1A2430; vertical-align: middle; }
.tbl tr:hover td { background: rgba(255,255,255,.015); }
.tbl td.mono { font-size: 13px; color: var(--text-2); }
.tbl td.new { color: var(--green-soft); }
.tbl th.cb, .tbl td.cb { width: 44px; text-align: center; }
.tbl tr.off td { opacity: .5; }
.tbl.compact td { padding: 8px 4px; }
.row-actions { white-space: nowrap; }
.log { margin: 0; font: 13px/1.6 inherit; font-family: inherit; white-space: pre-wrap; color: var(--text-2); max-height: 160px; overflow: auto; direction: rtl; text-align: right; }
.empty { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); }
.empty strong { color: var(--text); font-size: 17px; }

/* auth / install */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 420px; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-card.wide { width: 680px; }
.auth-card .logo-chip { align-self: flex-start; }
.auth-card h1 { font-size: 24px; }

/* landing */
.landing main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0 48px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--cyan-soft); background: rgba(60,196,245,.12); padding: 4px 12px; border-radius: 14px; margin-bottom: 16px; }
.hero h1 { font-size: 44px; line-height: 1.15; letter-spacing: -.5px; }
.hero p { font-size: 18px; color: var(--text-2); margin: 18px 0 28px; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.mock-ring { width: 96px; height: 96px; border-radius: 50%; border: 7px solid var(--green); color: var(--green); display: flex; align-items: center; justify-content: center; align-self: center; }
.mock-ring svg { width: 44px; height: 44px; stroke-width: 2.6; }
.mock-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--green-soft); margin-bottom: 6px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 500; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding-bottom: 48px; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.features svg { width: 28px; height: 28px; color: var(--cyan); margin-bottom: 12px; }
.features h2 { font-size: 18px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--text-2); font-size: 15px; }
.support { padding-bottom: 64px; }
.support h2 { font-size: 24px; margin-bottom: 16px; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.support-grid a { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.support-grid a:hover { border-color: var(--cyan); }
.support-grid strong { font-size: 19px; color: var(--text); text-align: right; }
.support-grid span { font-size: 13px; color: var(--muted); }

.disclaimer { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.terms-page { max-width: 760px; padding: 48px 0 64px; }
.terms-page ol { padding-right: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-size: 16px; line-height: 1.7; margin: 24px 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .cols, .cols.wide-first { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .divider, .tagline, .who { display: none; }
  .page { padding: 16px; }
}
