/* Inter (variable, wght 400–700 used), self-hosted subsets from Google Fonts v20 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-symbols.woff2) format("woff2"); unicode-range: U+20BD; }
:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --subtle: #F0F3F7;
  --border: #DDE3EB;
  --border-strong: #C9D2DE;
  --ink: #0F1B2D;
  --muted: #556377;
  --faint: #5F6C7E;
  --accent: #1D5FD0;
  --accent-hover: #174FB0;
  --accent-tint: #EAF1FC;
  --green: #177A45;
  --green-tint: #E7F4EC;
  --amber: #9A6700;
  --amber-tint: #FBF3DE;
  --red: #C2272D;
  --red-tint: #FCEBEC;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 4px 16px rgba(15, 27, 45, .06);
  --shadow-lg: 0 1px 2px rgba(15, 27, 45, .04), 0 12px 40px rgba(15, 27, 45, .10);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.num, td, .tabular { font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  font: 600 15px/1 "Inter", system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(29, 95, 208, .3); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--muted); }
.btn[disabled] { background: var(--subtle); color: var(--faint); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { color: var(--green); background: var(--green-tint); }
.badge-amber { color: #855A00; background: var(--amber-tint); }
.badge-red { color: var(--red); background: var(--red-tint); }
.badge-plain { color: var(--muted); background: var(--subtle); }
.badge-grey { color: var(--muted); background: var(--subtle); }
.spark-box, .chart { position: relative; }
.chart-empty, .spark-empty { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.chart-empty { inset: 0 0 28px 32px; }
.chart-empty span { max-width: 360px; padding: 10px 14px; background: rgba(255, 255, 255, .94); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); box-shadow: var(--shadow); }
.spark-empty { inset: 22px 0 0 0; font-size: 13px; color: var(--muted); }
.spark-empty span { background: rgba(255, 255, 255, .9); padding: 2px 8px; border-radius: 6px; }
.chart-empty[hidden], .spark-empty[hidden], [hidden] { display: none !important; }
.players ol { max-height: 548px; overflow-y: auto; padding-right: 4px; }
.players-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 15px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.top-card .soon-box { margin-top: 16px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); }
.badge-plain::before { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.wordmark { font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.nav-links a:hover { color: var(--ink); background: var(--subtle); text-decoration: none; }
.nav-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-menu svg { width: 20px; height: 20px; }
.nav-drop { display: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 24px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; }
.eyebrow .badge { height: 22px; }
.hero h1 { font-size: 56px; line-height: 1.07; letter-spacing: -.025em; font-weight: 700; max-width: 12em; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px 24px; margin-top: 40px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* live server card */
.live { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 0; }
.live-name { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.live-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.live-body { padding: 20px 24px 24px; }
.live-online { display: flex; align-items: baseline; gap: 8px; }
.live-online b { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.live-online span { font-size: 16px; color: var(--muted); }
.live-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.bar { height: 6px; background: var(--subtle); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.spark-box { margin-top: 20px; }
.spark-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.spark { display: block; width: 100%; height: 56px; }
.connect { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 6px 6px 14px; background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.connect code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); user-select: all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.connect .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.copy.is-done { color: var(--green); border-color: var(--green); }
.live-foot { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); background: #FAFBFC; }
.live-foot .k { font-size: 12px; color: var(--muted); }
.live-foot .v { font-size: 15px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.mini-cd { display: flex; gap: 6px; }
.mini-cd div { min-width: 42px; padding: 6px 4px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.mini-cd b { display: block; font-size: 16px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mini-cd span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- sections ---------- */
section.sec { padding: 96px 0 0; }
.sec-head { margin-bottom: 32px; max-width: 720px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.sec-head h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.sec-head p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.card-head h3 { font-size: 17px; font-weight: 600; }
.card-head p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.small { font-size: 13px; color: var(--muted); }

/* servers */
.servers { display: grid; gap: 16px; }
.srv { display: grid; grid-template-columns: minmax(0, 1fr) 180px 340px; gap: 32px; align-items: center; padding: 24px; }
.srv-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.srv-title h3 { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 13px; color: var(--muted); background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
.srv-wipe { margin-top: 12px; font-size: 14px; color: var(--muted); }
.srv-stat .k { font-size: 13px; color: var(--muted); }
.srv-stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.srv-stat .v span { font-size: 15px; font-weight: 500; color: var(--muted); }
.srv-actions { display: flex; flex-direction: column; gap: 8px; }
.srv-actions .connect { margin-top: 0; }
.srv.is-soon { background: #FBFCFD; box-shadow: none; }
.srv.is-soon .srv-title h3 { color: var(--muted); }

/* uptime */
.uptime { margin-top: 16px; }
.up-strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 36px; }
.up-strip i { border-radius: 3px; background: var(--green); opacity: .85; }
.up-strip i:hover { opacity: 1; }
.up-strip i.partial { background: var(--amber); }
.up-strip i.down { background: var(--red); }
.up-strip i.nodata { background: var(--border); }
.up-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.up-total { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }

/* online */
.online-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.online-grid .hours { grid-column: 1 / -1; }
.tabs { display: inline-flex; padding: 3px; background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.tabs button { border: 0; background: transparent; font: 500 14px/1 "Inter", sans-serif; color: var(--muted); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 27, 45, .08); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.kpi .k { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 22px; font-weight: 700; margin-top: 2px; }
.kpi .s { font-size: 12px; color: var(--faint); }
.chart svg { display: block; width: 100%; }
.chart text { font: 12px "Inter", sans-serif; fill: var(--faint); font-variant-numeric: tabular-nums; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .1s; font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.busy-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.busy-note b { color: var(--ink); }

.players ol { list-style: none; margin: 0; padding: 0; }
.players li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.players li:first-child { border-top: 0; }
.ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-tint); }
.players .t { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.players .nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

/* wipes */
.wipe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.cd div { padding: 14px 8px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #FAFBFC; }
.cd b { display: block; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cd span { font-size: 12px; color: var(--muted); }
.next-kind { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.next-when { font-size: 14px; color: var(--muted); }
.next-when strong { color: var(--ink); font-weight: 600; }
.just { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--green-tint); color: var(--green); font-size: 14px; font-weight: 500; }
.sched { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--border); }
.sched li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sched .d { font-weight: 600; }
.sched .d small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.sched .r { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.map { background: var(--accent-tint); color: var(--accent); }
.pill.global { background: var(--ink); color: #fff; }
.pill.update { background: var(--surface); color: var(--muted); border: 1px dashed var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h3 { font-size: 17px; font-weight: 600; text-transform: capitalize; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.cal-nav button:hover { border-color: var(--muted); }
.cal-nav svg { width: 16px; height: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 12px; color: var(--faint); text-align: center; padding-bottom: 4px; font-weight: 500; }
.cal .day { min-height: 64px; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid transparent; background: #FAFBFC; font-size: 14px; display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.cal .day.out { background: transparent; color: var(--faint); font-weight: 400; }
.cal .day.past { color: var(--faint); }
.cal .day.today { border-color: var(--ink); font-weight: 700; color: var(--ink); background: var(--surface); }
.cal .day.ev-map { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.cal .day.ev-global { background: var(--ink); color: #fff; font-weight: 600; }
.cal .day .lbl { font-size: 11px; font-weight: 600; line-height: 1.2; }
.cal .day .dot { display: none; }
.cal .day .upd { font-size: 10px; font-weight: 500; line-height: 1.2; border: 1px dashed currentColor; border-radius: 4px; padding: 1px 4px; align-self: flex-start; opacity: .9; }
.cal .day.past.ev-global { background: var(--muted); }
.cal-legend i.map { background: var(--accent-tint); border: 1px solid var(--accent); }
.cal-legend i.global { background: var(--ink); }
.cal-legend i.update { background: var(--surface); border: 1px dashed var(--muted); }
.cal-legend i.today { background: var(--surface); border: 1.5px solid var(--ink); }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-top: 16px; padding: 20px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.callout svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.callout h3 { font-size: 16px; font-weight: 600; }
.callout p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rules .card { padding: 20px; }
.rules h3 { font-size: 15px; font-weight: 600; }
.rules p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* settings */
.settings-card { padding: 0; overflow: hidden; }
.settings-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.map-card { margin: 0; padding: 16px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: center; }
.map-img { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--subtle); border: 1px solid var(--border); }
.map-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transition: transform .2s; }
.map-img:hover img { transform: scale(1.36); }
.map-card figcaption { padding: 4px 0; }
.map-card h3 { font-size: 17px; }
.map-card h3 { font-size: 16px; font-weight: 600; }
.map-card .small { margin-top: 4px; }
.map-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.map-links a { display: inline-flex; align-items: center; gap: 4px; }
.map-links svg { width: 14px; height: 14px; }
.map-credit { font-size: 12px; }
.settings-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.settings-top h3 { font-size: 17px; font-weight: 600; }
.settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.settings div { padding: 18px 24px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.settings div:nth-child(3n) { border-right: 0; }
.settings div:nth-last-child(-n+3) { border-bottom: 0; }
.settings dt { font-size: 13px; color: var(--muted); }
.settings dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ext-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 500; }
.ext-link svg { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.settings dd small { font-size: 13px; font-weight: 400; color: var(--muted); }

/* top */
.top-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.top-card { padding: 20px; }
.top-card .ic { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); margin-bottom: 12px; }
.top-card .ic svg { width: 18px; height: 18px; }
.top-card h3 { font-size: 16px; font-weight: 600; }
.top-card .unit { font-size: 13px; color: var(--muted); }
.top-card ol { list-style: none; margin: 16px 0 0; padding: 0; }
.top-card li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; align-items: center; }
.top-card li .p { color: var(--faint); font-variant-numeric: tabular-nums; }
.top-card li .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-card li .s { font-weight: 600; font-variant-numeric: tabular-nums; }
.top-card li:first-child .n { font-weight: 600; }

/* start */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 24px; }
.step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--accent); border: 1px solid var(--accent); margin-bottom: 16px; }
.step h3 { font-size: 17px; font-weight: 600; }
.step p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.step .connect { margin-top: 16px; }
.kbd { display: inline-block; font-family: var(--mono); font-size: 13px; padding: 0 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--ink); }
.start-alt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 20px 24px; }
.start-alt p { font-size: 15px; color: var(--muted); }
.start-alt p b { color: var(--ink); }

/* pass */
.pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.price { padding: 24px; display: flex; flex-direction: column; }
.price .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price h3 { font-size: 17px; font-weight: 600; }
.price .amount { margin-top: 16px; font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.price .amount span { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.price li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.price li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.price .btn { margin-top: auto; width: 100%; }
.pass-info { padding: 24px; background: transparent; box-shadow: none; border-style: dashed; }
.pass-info h3 { font-size: 16px; font-weight: 600; }
.pass-info p { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* footer */
footer { margin-top: 112px; background: var(--surface); border-top: 1px solid var(--border); }
footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer .about { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 36em; }
.social { display: flex; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; font-weight: 500; }
.social a:hover { border-color: var(--muted); text-decoration: none; }
.social svg { width: 16px; height: 16px; }
.legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {

  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 48px; }
  .live { max-width: 560px; }
  .srv { grid-template-columns: 1fr 1fr; }
  .srv-actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .srv-actions .connect { flex: 1; }
  .top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass-grid { grid-template-columns: 1fr 1fr; }
  .pass-info { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; gap: 12px; }
  .nav-right { display: flex; gap: 8px; }
  .nav-menu { display: inline-flex; }
  .nav-drop { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 16px 16px; }
  .nav-drop.open { display: grid; }
  .nav-drop a { padding: 12px 8px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--border); }
  .nav-drop a:last-child { border-bottom: 0; }
  .online-grid, .wipe-grid { grid-template-columns: 1fr; }
  .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings div, .settings div:nth-child(3n), .settings div:nth-last-child(-n+3) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .settings div:nth-child(2n) { border-right: 0; }
  .settings div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .rules, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 48px; }
  .eyebrow { font-size: 13px; margin-bottom: 20px; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .hero .lead { font-size: 17px; margin-top: 16px; }
  .hero-actions { margin-top: 24px; display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { margin-top: 24px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero .wrap { gap: 32px; }
  .live-head, .live-body { padding-left: 16px; padding-right: 16px; }
  .live-foot { padding: 16px; grid-template-columns: 1fr; gap: 12px; }
  .mini-cd div { flex: 1; }
  .live-online b { font-size: 40px; }
  section.sec { padding-top: 64px; }
  .sec-head { margin-bottom: 24px; }
  .sec-head h2 { font-size: 28px; }
  .sec-head p { font-size: 16px; }
  .card-pad { padding: 16px; }
  .srv { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
  .srv-main { grid-column: 1 / -1; }
  .srv-actions { flex-direction: column; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px; }
  .kpi .v { font-size: 18px; }
  .card-head .tabs { width: 100%; }
  .card-head .tabs button { flex: 1; }
  .cd b { font-size: 26px; }
  .cd div { padding: 12px 4px; }
  .sched li { gap: 4px 12px; }
  .sched .r { text-align: left; font-size: 13px; }
  .connect { padding-left: 12px; gap: 6px; }
  .connect code { font-size: 13px; overflow: visible; text-overflow: clip; }
  .connect .btn { padding: 0 10px; gap: 6px; }
  .uptime .card-head > div:last-child { text-align: left !important; }
  .sched li { grid-template-columns: 1fr auto; }
  .sched .r { grid-column: 1 / -1; }
  .cal { gap: 3px; }
  .cal .day { min-height: 48px; padding: 4px; align-items: center; font-size: 13px; }
  .cal .day .lbl, .cal .day .upd { display: none; }
  .cal .day .dot { display: flex; gap: 3px; }
  .callout { padding: 16px; gap: 12px; }
  .settings-top { padding: 16px; }
  .settings div { padding: 14px 16px; }
  .settings dd { font-size: 16px; }
  .top-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .map-card { grid-template-columns: 1fr; gap: 12px; }
  .map-img { max-width: 480px; }
  .top-card { padding: 16px; }
  #up-incident { margin-left: 0 !important; flex-basis: 100%; }
  .step { padding: 20px; }
  .start-alt { padding: 16px; }
  .start-alt .btn { width: 100%; }
  .pass-grid { grid-template-columns: 1fr; }
  .price { padding: 20px; }
  footer { margin-top: 80px; }
  footer .wrap { grid-template-columns: 1fr; }
  .social { flex-wrap: wrap; }
}
.cal .day .dot i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* =====================================================================
   Multi-page additions (inner pages, shared footer links).
   Everything above is the original index stylesheet, moved verbatim.
   ===================================================================== */
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--subtle); }
.nav-drop a[aria-current="page"] { color: var(--accent); }
.srv-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 500; }
.srv-more svg { width: 14px; height: 14px; }
.sec-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.sec-link svg { width: 14px; height: 14px; }
.foot-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-links a { color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: var(--ink); }

/* page header */
.page-hero { padding: 40px 0 48px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); }
.crumbs ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.page-hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; max-width: 20em; }
.page-hero .lead { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 42em; }
.page-hero .hero-actions { margin-top: 28px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.page-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.page-meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* page body: article + sidebar */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; padding-top: 48px; }
.page-body.single { grid-template-columns: minmax(0, 760px); }
.side { position: sticky; top: 88px; display: grid; gap: 16px; }
.side-card { padding: 20px; }
.side-card h2 { font-size: 15px; font-weight: 600; }
.side-card p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.side-card .btn { width: 100%; margin-top: 16px; }
.side .live-foot .v { white-space: normal; }

/* long-form text */
.prose { min-width: 0; font-size: 16px; line-height: 1.65; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; margin-top: 56px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; line-height: 1.35; font-weight: 600; margin-top: 32px; }
.prose h2 + p, .prose h3 + p { margin-top: 10px; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--subtle); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.prose .connect code { background: none; border: 0; padding: 0; font-size: 14px; }
.prose .connect { max-width: 520px; }
.prose .note { font-size: 14px; color: var(--muted); }
.prose .card, .prose .callout, .prose .rules, .prose .steps { margin-top: 20px; }
.prose .callout p, .prose .rules p { margin-top: 4px; }
.prose .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .step p { font-size: 15px; }

/* data table (wipe dates) */
.dtable-wrap { overflow: hidden; padding: 0; }
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.dtable th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 20px; background: #FAFBFC; border-bottom: 1px solid var(--border); }
.dtable td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td:first-child { font-weight: 600; white-space: nowrap; }
.dtable td small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.dtable tr.is-past td { color: var(--faint); }
.dtable tr.is-next td { background: var(--accent-tint); }
.dtable .badge { margin-left: 8px; height: 20px; font-size: 12px; vertical-align: 1px; }

/* FAQ */
.qa { padding: 24px 0; border-top: 1px solid var(--border); }
.qa:last-child { border-bottom: 1px solid var(--border); }
.prose .qa h2, .prose .qa h3 { margin-top: 0; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; }
.prose .qa p { margin-top: 8px; }
.prose .qa + .qa { margin-top: 0; }
.prose .qa-group { margin-top: 48px; font-size: 14px; font-weight: 600; color: var(--accent); }
.prose .qa-group:first-child { margin-top: 0; }
.prose .qa-group + .qa { margin-top: 12px; }

/* rules */
.rule-sec + .rule-sec { margin-top: 40px; }
.prose .rule-sec h2 { margin-top: 0; font-size: 22px; }
.rule-list { list-style: none; margin: 12px 0 0; padding: 0 !important; border-top: 1px solid var(--border); }
.prose .rule-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 88px; }
.rule-list .rn { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rule-list .rn:hover { color: var(--accent); }
.rule-list li:target { background: var(--accent-tint); box-shadow: -12px 0 0 var(--accent-tint); }
.rule-sec:target h2 { color: var(--accent); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); }
.toc a:hover { color: var(--ink); text-decoration: none; }

/* 404 */
.err { padding: 96px 0 0; text-align: center; }
.err .code { font-size: 14px; font-weight: 600; color: var(--accent); }
.err h1 { margin-top: 8px; font-size: 44px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.err p { margin: 16px auto 0; max-width: 32em; font-size: 18px; color: var(--muted); }
.err .hero-actions { justify-content: center; }
.err-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 32px; font-size: 15px; font-weight: 500; }

@media (max-width: 1080px) {
  .page-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .prose .rules, .prose .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero { padding: 24px 0 32px; }
  .crumbs ol { margin-bottom: 16px; font-size: 13px; }
  .page-hero h1 { font-size: 30px; line-height: 1.15; }
  .page-hero .lead { font-size: 16px; margin-top: 12px; }
  .page-hero .hero-actions { margin-top: 20px; }
  .page-meta { margin-top: 20px; font-size: 13px; gap: 6px 14px; }
  .page-body { padding-top: 32px; }
  .side { grid-template-columns: 1fr; }
  .prose h2 { font-size: 22px; margin-top: 44px; }
  .prose h3 { font-size: 17px; }
  .prose code { white-space: normal; word-break: break-word; }
  .prose .connect code { white-space: nowrap; word-break: normal; font-size: 13px; }
  .dtable th, .dtable td { padding: 12px; }
  .dtable { font-size: 14px; }
  .dtable .badge { margin: 4px 0 0; display: flex; width: max-content; }
  .prose .qa h2, .prose .qa h3 { font-size: 17px; }
  .prose .rule-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .err { padding-top: 56px; }
  .err h1 { font-size: 32px; }
  .err p { font-size: 16px; }
}
.connect.is-stack { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
.connect.is-stack code { white-space: normal; overflow: visible; overflow-wrap: anywhere; padding: 2px 4px; }
.connect.is-stack .btn { width: 100%; height: 36px; }
.side .live-body > .btn { width: 100%; margin-top: 12px; }
@media (max-width: 600px) {
  .prose .connect { flex-wrap: wrap; padding: 10px; }
  .prose .connect code { flex-basis: 100%; padding: 2px 4px; }
  .prose .connect .btn { flex: 1; height: 36px; }
}
.prose .card h3, .prose .callout h3 { margin-top: 0; }
.prose .card p + p { margin-top: 8px; }
.prose .rules .card, .prose .steps .card, .prose .servers .card { margin-top: 0; }
.dtable .m-only { display: none; }
@media (max-width: 600px) {
  .dtable .d-only { display: none; }
  .dtable .m-only { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
  .dtable td:first-child { white-space: normal; }
}
/* nav: never wrap link labels; switch to the burger menu below 1000px (was 860px, labels wrapped at ~900px) */
.nav-links a { white-space: nowrap; }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; gap: 12px; }
  .nav-right { display: flex; gap: 8px; }
  .nav-menu { display: inline-flex; }
  .nav-drop { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 16px 16px; }
  .nav-drop.open { display: grid; }
  .nav-drop a { padding: 12px 8px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--border); }
  .nav-drop a:last-child { border-bottom: 0; }
}

/* =====================================================================
   Guides: article pages (/guides/<slug>/) and the hub (/guides/)
   ===================================================================== */
.guide-body { grid-template-columns: minmax(0, 72ch) 280px; justify-content: space-between; }
.guide-body.no-toc { grid-template-columns: minmax(0, 72ch); }
.guide-body .guide { grid-column: 1; grid-row: 1; }
.guide-body .guide-side { grid-column: 2; grid-row: 1; max-height: calc(100vh - 112px); overflow-y: auto; }
.guide-side .toc a { line-height: 1.4; }
.guide { max-width: 72ch; font-size: 17px; line-height: 1.7; }
.guide > * + * { margin-top: 18px; }
.guide h2, .guide h3 { scroll-margin-top: 88px; }
.guide h2 { margin-top: 56px; }
.guide h3 { margin-top: 32px; }
.guide li + li { margin-top: 8px; }
.guide li > ul, .guide li > ol { margin-top: 8px; }
.guide strong { font-weight: 600; }
.guide blockquote { margin: 24px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.guide blockquote p + p { margin-top: 8px; }
.guide pre { margin: 20px 0 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.guide pre code { background: none; border: 0; padding: 0; white-space: pre; font-size: inherit; word-break: normal; }
.table-wrap { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 14px; background: #FAFBFC; border-bottom: 1px solid var(--border); }
.table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap.is-wide table { min-width: 520px; }
.table-wrap code { white-space: nowrap; }

/* related articles + hub cards */
.guide-cards { list-style: none; margin: 16px 0 0; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .guide-cards > li { margin-top: 0; }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; transition: border-color .15s; }
.guide-card:hover { border-color: var(--border-strong); }
.guide-card a { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.guide-card a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.guide-card:hover a { color: var(--accent); text-decoration: none; }
.guide-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.guide-card-meta { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--faint); }
.guide-related { margin-top: 56px !important; }
.guide-related h2 { margin-top: 0; }

/* the single, quiet server card at the end of an article */
.prose .guide-cta { margin-top: 40px; padding: 24px; box-shadow: none; }
.guide-cta-title { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.guide-cta p:not(.guide-cta-title) { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.guide-cta .connect { margin-top: 14px; max-width: none; }
.guide-cta p.guide-cta-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 15px; }

/* hub */
.guide-group + .guide-group { margin-top: 48px; }
.prose .guide-group h2 { margin-top: 0; }
.guide-hub .guide-cards { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1080px) {
  .guide-body, .guide-body.no-toc { grid-template-columns: minmax(0, 1fr); }
  .guide-body .guide, .guide-body .guide-side { grid-column: auto; grid-row: auto; }
  .guide-body .guide-side { max-height: none; overflow: visible; }
}
@media (max-width: 600px) {
  .guide { font-size: 16px; line-height: 1.65; }
  .guide h2 { margin-top: 44px; }
  .guide-cards { grid-template-columns: minmax(0, 1fr); }
  .prose .guide-cta { padding: 18px; }
  .table-wrap table { font-size: 14px; }
  .table-wrap:not(.is-wide) code { white-space: normal; overflow-wrap: anywhere; }
}
/* nav with eight links (home page): tighten between the burger breakpoint and 1100px so it never overflows */
@media (min-width: 1001px) and (max-width: 1100px) {
  .nav .wrap { gap: 24px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 9px; }
}

/* homepage guide links */
.guide-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.guide-links a { display: block; padding: 14px 16px; color: var(--ink); font-weight: 500; text-decoration: none; }
.guide-links a:hover { border-color: var(--accent); color: var(--accent); }
