/* muffdogsupreme.xyz — hub, status page and admin. Dark only. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/static/fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e1422;
  --surface: #141c2d;
  --raised: #1b2540;
  --line: #28334e;
  --line-soft: #1e2840;
  --text: #e8ebf4;
  --text-2: #a7b0c6;
  --text-3: #75809b;
  --accent: #8da9ff;
  --accent-strong: #b3c6ff;

  /* Status palette: reserved for state, never decoration. Always paired with a text label. */
  --ok: #3dbe7f;
  --ok-2: #9ccb52;
  --warn: #e7b53c;
  --serious: #ee8a3a;
  --crit: #e5534b;
  --maint: #b08cf2;
  --nodata: #2a3450;

  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.bad { color: var(--crit); }
.warn { color: var(--warn); }
.good { color: var(--ok); }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Shared: status dots, labels, uptime bars ---------- */

.dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--nodata); }
.dot-operational { background: var(--ok); box-shadow: 0 0 0 3px rgb(61 190 127 / 0.16); }
.dot-degraded { background: var(--warn); box-shadow: 0 0 0 3px rgb(231 181 60 / 0.18); }
.dot-partial { background: var(--serious); box-shadow: 0 0 0 3px rgb(238 138 58 / 0.18); }
.dot-major { background: var(--crit); box-shadow: 0 0 0 3px rgb(229 83 75 / 0.2); }
.dot-maintenance { background: var(--maint); box-shadow: 0 0 0 3px rgb(176 140 242 / 0.18); }
.dot-pending { background: var(--text-3); }
.dot-none { background: transparent; border: 1.5px solid var(--line); }

.state { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.state-operational { color: var(--ok); }
.state-degraded { color: var(--warn); }
.state-partial { color: var(--serious); }
.state-major { color: var(--crit); }
.state-maintenance { color: var(--maint); }
.state-pending { color: var(--text-3); }

.bars { display: flex; gap: 2px; height: 34px; align-items: stretch; touch-action: pan-y; }
.bars span { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--nodata); }
.bars .u-100 { background: var(--ok); }
.bars .u-99 { background: var(--ok-2); }
.bars .u-95 { background: var(--warn); }
.bars .u-90 { background: var(--serious); }
.bars .u-0 { background: var(--crit); }
.bars .u-maint { background: var(--maint); }
.bars span.is-hover { filter: brightness(1.25); }

.axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 0.8125rem; color: var(--text-3); }
.ax-short { display: none; }

@media (max-width: 640px) {
  .bars span:nth-child(-n + 60) { display: none; }
  .ax-long { display: none; }
  .ax-short { display: inline; }
}

.tip {
  position: fixed;
  z-index: 50;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: #222d4a;
  border: 1px solid #34416a;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}
.tip strong { display: block; font-weight: 700; }
.tip .tip-pct { color: var(--text-2); }
.tip .tip-inc { margin-top: 6px; padding-top: 6px; border-top: 1px solid #34416a; color: var(--text-2); }

.pill {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--raised);
  color: var(--text-2);
}
.pill.impact-minor { background: rgb(231 181 60 / 0.15); color: var(--warn); }
.pill.impact-major { background: rgb(238 138 58 / 0.15); color: var(--serious); }
.pill.impact-critical { background: rgb(229 83 75 / 0.16); color: var(--crit); }
.pill.impact-maintenance { background: rgb(176 140 242 / 0.16); color: var(--maint); }

.notice { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); }
.notice-ok { border-color: rgb(61 190 127 / 0.4); }
.notice-error { border-color: rgb(229 83 75 / 0.5); color: #f2b3ae; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* Minecraft formatting codes, tuned so dark codes stay legible on the dark background */
.mc-0 { color: #6b7288; } .mc-1 { color: #6d7dff; } .mc-2 { color: #3fbf3f; } .mc-3 { color: #2cc6c6; }
.mc-4 { color: #d64545; } .mc-5 { color: #c25ac2; } .mc-6 { color: #ffaa00; } .mc-7 { color: #b4b4b4; }
.mc-8 { color: #7d7d7d; } .mc-9 { color: #7b7bff; } .mc-a { color: #6dff6d; } .mc-b { color: #6dffff; }
.mc-c { color: #ff6d6d; } .mc-d { color: #ff6dff; } .mc-e { color: #ffff6d; } .mc-f { color: #ffffff; }
.mc-fb { font-weight: 700; }
.mc-fi { font-style: italic; }
.mc-fu { text-decoration: underline; }
.mc-fs { text-decoration: line-through; }

/* ---------- Hub ---------- */

.hub { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.hub-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 22px 0; }
.wordmark { color: var(--text-2); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--text); }
.hub-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
.hub-status:hover { border-color: var(--text-3); color: var(--text); }

.hero { padding: clamp(40px, 9vw, 112px) 0 clamp(32px, 6vw, 64px); }
.hero-name {
  font-size: clamp(3.1rem, 11vw, 8.75rem);
  font-weight: 850;
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.hero-tagline {
  margin-top: clamp(18px, 3vw, 28px);
  max-width: 34ch;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
.hero-about { margin-top: 22px; max-width: 62ch; color: var(--text-2); font-size: 1.0625rem; }
.hero-about p + p { margin-top: 0.9em; }

.pulse { padding: 26px 0 8px; border-top: 1px solid var(--line); }
.pulse-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.pulse-title { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.pulse-uptime { color: var(--text); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.pulse-uptime:hover { color: var(--accent-strong); }
.bars-pulse { height: clamp(44px, 7vw, 64px); gap: 3px; }
.bars-pulse span { border-radius: 3px; }

.group { margin-top: clamp(44px, 7vw, 72px); }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 16px; }
.group-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; font-weight: 750; }
.group-head p { color: var(--text-3); }

.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 28px; }
.links li { border-top: 1px solid var(--line-soft); }
.link { display: block; padding: 14px 10px 16px; margin: 0 -10px; border-radius: var(--radius-s); color: var(--text); text-decoration: none; }
.link:hover { background: var(--surface); color: var(--text); }
.link-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.link-title { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; }
.link-host { margin-left: auto; color: var(--text-3); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.link-desc { display: block; margin-top: 4px; padding-left: 19px; color: var(--text-2); font-size: 0.9375rem; }

.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.mc {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line);
}
.mc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-name { font-size: 1.1875rem; letter-spacing: -0.02em; min-width: 0; overflow-wrap: anywhere; }
.mc-name a { color: var(--text); text-decoration: none; }
.mc-name a:hover { color: var(--accent-strong); }
.mc-state { margin-left: auto; font-size: 0.8125rem; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.mc-motd {
  min-height: 3.4em; padding: 10px 12px; border-radius: var(--radius-s);
  background: #0a0f1a; border: 1px solid var(--line-soft);
  font-size: 0.9375rem; line-height: 1.45; color: var(--text-2);
  overflow-wrap: anywhere;
}
.mc-meta { display: flex; gap: 28px; margin: 0; }
.mc-meta dt { font-size: 0.8125rem; color: var(--text-3); }
.mc-meta dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.mc-join {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: auto; padding: 11px 14px; border-radius: var(--radius-m);
  background: var(--raised); border: 1px solid var(--line); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.mc-join:hover { border-color: var(--accent); }
.mc-join code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; }
.mc-copy { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.mc-join.copied .mc-copy { color: var(--ok); }

.hub-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.hub-foot-note { margin-left: auto; color: var(--text-3); }

/* ---------- Status page ---------- */

.st { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.st-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 28px 0 30px; }
.st-brand { color: var(--text); text-decoration: none; font-size: 1.375rem; letter-spacing: -0.03em; white-space: nowrap; }
.st-brand-name { font-weight: 800; }
.st-brand-sub { font-weight: 500; color: var(--text-3); }
.subscribe { position: relative; }
.subscribe summary {
  list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.subscribe summary::-webkit-details-marker { display: none; }
.subscribe summary:hover, .subscribe[open] summary { color: var(--text); border-color: var(--text-3); }
.subscribe-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 200px;
  display: grid; padding: 6px; border-radius: var(--radius-m);
  background: var(--raised); border: 1px solid var(--line); box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}
.subscribe-menu a { padding: 8px 10px; border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.subscribe-menu a:hover { background: var(--surface); }

.banner {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: var(--radius-m);
  color: #0d1320;
}
.banner.level-operational { background: var(--ok); }
.banner.level-degraded { background: var(--warn); }
.banner.level-partial { background: var(--serious); }
.banner.level-major { background: var(--crit); color: #fff; }
.banner.level-maintenance { background: var(--maint); }
.banner-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / 0.28); }
.banner-icon svg { width: 22px; height: 22px; }
.banner-label { font-size: 1.3125rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.banner-sub { font-size: 0.875rem; opacity: 0.78; }

.section-title { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.incidents { margin-top: 36px; display: grid; gap: 12px; }
.incidents .section-title { margin-bottom: 2px; }
.inc-card { padding: 18px 20px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; }
.impact-none { border-left-color: var(--text-3); }
.impact-minor { border-left-color: var(--warn); }
.impact-major { border-left-color: var(--serious); }
.impact-critical { border-left-color: var(--crit); }
.impact-maintenance { border-left-color: var(--maint); }
.inc-title { font-size: 1.125rem; letter-spacing: -0.01em; }
.inc-title a { color: var(--text); text-decoration: none; }
.inc-title a:hover { color: var(--accent-strong); }
.inc-window { margin-top: 4px; color: var(--maint); font-size: 0.9375rem; font-weight: 600; }
.inc-latest { margin-top: 10px; color: var(--text-2); }
.inc-latest p + p { margin-top: 0.5em; }
.inc-latest strong { color: var(--text); }
.inc-meta, .inc-affects { margin-top: 8px; font-size: 0.875rem; color: var(--text-3); }

.status-investigating { color: var(--crit); }
.status-identified { color: var(--serious); }
.status-monitoring { color: var(--warn); }
.status-resolved, .status-completed { color: var(--ok); }
.status-scheduled, .status-in_progress { color: var(--maint); }

.components { margin-top: 36px; display: grid; gap: 28px; }
.cgroup { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.cgroup-title { padding: 14px 20px; font-size: 0.9375rem; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--line); }
.comp { padding: 18px 20px 16px; }
.comp + .comp { border-top: 1px solid var(--line-soft); }
.comp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.comp-name { font-size: 1rem; font-weight: 650; }
.comp-desc { margin: -6px 0 10px; font-size: 0.875rem; color: var(--text-3); }
.comp-uptime { color: var(--text-2); }

.past { margin-top: 52px; }
.past-day { padding: 16px 0; border-top: 1px solid var(--line); }
.past-date { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.past-none { color: var(--text-3); font-size: 0.9375rem; }
.past-inc { margin-top: 8px; padding-left: 14px; border-left: 3px solid var(--line); }
.past-inc h4 { font-size: 1.0625rem; }
.past-inc h4 a { color: var(--text); }

.updates { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.update { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; }
.update-status { font-weight: 700; font-size: 0.9375rem; }
.update-body { color: var(--text-2); }
.update-body p + p { margin-top: 0.5em; }
.update-time { grid-column: 2; font-size: 0.8125rem; color: var(--text-3); margin-top: 2px; }
@media (max-width: 560px) {
  .update { grid-template-columns: minmax(0, 1fr); }
  .update-time { grid-column: 1; }
}

.crumbs { margin-bottom: 14px; font-size: 0.9375rem; }
.inc-page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.03em; font-weight: 750; }
.inc-page-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; color: var(--text-2); }
.inc-page .updates { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); gap: 22px; }

.hist-month { margin-top: 32px; }
.hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hist-item { padding: 12px 16px; border-radius: var(--radius-s); background: var(--surface); border-left: 3px solid var(--line); }
.hist-item a { font-weight: 650; color: var(--text); }
.hist-meta { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--text-3); }

.empty { color: var(--text-3); padding: 20px 0; }
.st-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.not-found { padding-top: 18vh; }
.not-found h1 { font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 10px; }

/* ---------- Admin ---------- */

.adm { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.adm-nav {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 24px 16px; border-right: 1px solid var(--line); background: var(--surface);
}
.adm-brand { padding: 0 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; }
.adm-nav nav { display: grid; gap: 2px; }
.adm-nav nav a { padding: 8px 10px; border-radius: var(--radius-s); color: var(--text-2); text-decoration: none; font-weight: 550; }
.adm-nav nav a:hover { background: var(--raised); color: var(--text); }
.adm-nav nav a[aria-current='page'] { background: var(--raised); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.adm-nav-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 10px; font-size: 0.875rem; }
.adm-main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head h1 { font-size: 1.75rem; letter-spacing: -0.03em; font-weight: 750; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm-nav nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .adm-nav nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--accent); }
  .adm-nav-foot { margin-top: 0; margin-left: auto; display: flex; gap: 14px; padding: 0; }
}

.summary { margin-bottom: 20px; color: var(--text-2); }
.summary strong { color: var(--text); font-variant-numeric: tabular-nums; }
.summary strong.bad { color: var(--crit); }
.summary strong.warn { color: var(--warn); }

.panel { margin-bottom: 20px; padding: 20px 22px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.panel > h2, .panel-head h2 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
.panel > .muted { margin: -6px 0 14px; font-size: 0.9375rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin-bottom: 0; }
.sub-title { margin: 20px 0 8px; font-size: 0.9375rem; color: var(--text-2); }
.danger-zone { border-color: rgb(229 83 75 / 0.35); }

.vm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px 28px; }
.stat-label { font-size: 0.8125rem; color: var(--text-3); font-weight: 600; }
.stat-value { font-size: 1.625rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.stat-sub { margin-top: 6px; font-size: 0.8125rem; color: var(--text-3); }
.stat .spark { margin-top: 10px; width: 100%; height: 32px; }
.meter { display: block; width: 100%; height: 6px; margin-top: 8px; }
.meter-track { fill: var(--raised); }
.meter-ok .meter-fill { fill: var(--accent); }
.meter-warn .meter-fill { fill: var(--warn); }
.meter-crit .meter-fill { fill: var(--crit); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 18px 24px; }
.detail-grid .mono { overflow-wrap: anywhere; }
.span-2 { grid-column: span 2; }
@media (max-width: 560px) { .span-2 { grid-column: auto; } }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tbl th { text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.disabled td { opacity: 0.55; }
.tbl a { color: var(--text); font-weight: 600; text-decoration: none; }
.tbl a:hover { color: var(--accent-strong); text-decoration: underline; }
.cell-sub { display: block; font-size: 0.8125rem; color: var(--text-3); margin-top: 2px; font-weight: 400; overflow-wrap: anywhere; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { display: inline-block; margin-left: 12px; }
.row-actions form { display: inline; }
.spark { display: block; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark-empty { font-size: 0.8125rem; color: var(--text-3); }
.ssl-good { color: var(--ok); } .ssl-warn { color: var(--warn); font-weight: 700; } .ssl-bad { color: var(--crit); font-weight: 700; }

.chart { margin: 0; }
.latency { display: block; width: 100%; height: auto; overflow: visible; }
.latency .grid { stroke: var(--line-soft); stroke-width: 1; }
.latency .grid.base { stroke: var(--line); }
.latency .tick { fill: var(--text-3); font: 500 11px var(--sans); }
.latency .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.latency .fail { fill: var(--crit); }
.latency .crosshair line { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.latency .crosshair circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.latency .hit { cursor: crosshair; }
.chart-key { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8125rem; color: var(--text-3); }
.key-line { width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.key-fail { margin-left: 14px; width: 3px; height: 10px; border-radius: 1px; background: var(--crit); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--raised); }
.seg a { padding: 5px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.seg a[aria-current='true'] { background: var(--bg); color: var(--text); }

.inc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inc-row { padding: 10px 14px; border-radius: var(--radius-s); background: var(--bg); border-left: 3px solid var(--line); }
.inc-row a { color: var(--text); font-weight: 650; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 400 0.9375rem/1.4 var(--sans);
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(141 169 255 / 0.2); }
.hint { font-weight: 400; font-size: 0.8125rem; color: var(--text-3); }
.checks { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.checks legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px 24px; }
.picker legend { grid-column: 1 / -1; }
.picker-group { display: grid; gap: 6px; align-content: start; }
.picker-cat { font-size: 0.8125rem; color: var(--text-3); font-weight: 700; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: var(--radius-s); border: 1px solid transparent;
  background: var(--accent); color: #0d1424; font: 650 0.9375rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-strong); color: #0d1424; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--text); }
.btn-quiet:hover { background: var(--raised); color: var(--text); }
.btn-danger { background: var(--crit); color: #fff; }
.btn-danger:hover { background: #f06b63; color: #fff; }
.btn-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #f08a84; }
.toggle {
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text-3); font: 600 0.8125rem/1.2 var(--sans); cursor: pointer;
}
.toggle.on { background: rgb(61 190 127 / 0.14); border-color: rgb(61 190 127 / 0.45); color: var(--ok); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(100%, 380px); display: grid; gap: 16px; padding: 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.login-card h1 { font-size: 1.5rem; letter-spacing: -0.03em; }
.login-card .notice { margin: 0; }
.login-card .btn { margin-top: 6px; padding: 11px 16px; }
