/* SiteWatch by Deltrolux. Design language shared with WatchPoint. */

@font-face { font-family: "Outfit"; src: url("/static/fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/static/fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/static/fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/static/fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #F3F4EE;
  --surface: #FFFFFF;
  --surface-2: #F7F8F3;
  --ink: #0F1A12;
  --ink-2: #34403A;
  --muted: #56615A;
  --faint: #7D877F;
  --line: #E1E4D9;
  --line-2: #EEF0EA;
  --field: #CDD3C4;

  --brand: #0F3D1A;
  --brand-hover: #17502A;
  --brand-soft: #D6E0CC;
  --brand-tint: #E6EDD6;
  --olive: #5A6B07;
  --olive-ink: #4E5E06;
  --olive-pale: #C9D69A;
  --signal: #E3241B;

  --ok: #1F4D21;
  --ok-bg: #E3EEDD;
  --up: #2E6B30;
  --crit: #C81E1E;
  --crit-ink: #A51717;
  --crit-line: #F1C9C6;
  --crit-tint: #FFF5F4;
  --high: #7A3D00;
  --high-bg: #FBE7CB;
  --norm: #3F4842;
  --norm-bg: #ECEEE8;

  --display: "Outfit", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px;
  --r-lg: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--ink); }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
code, .mono { font-family: var(--mono); font-size: 13px; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- green surfaces ---------- */
.greenfield {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(120% 120% at 90% 20%, #1A5A2A 0%, rgba(26, 90, 42, 0) 60%),
    radial-gradient(90% 90% at 0% 100%, #082A12 0%, rgba(8, 42, 18, 0) 70%),
    var(--brand);
}
.greenfield::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(201, 214, 154, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, .15)); mask-image: linear-gradient(#000, rgba(0, 0, 0, .15));
}
canvas.radar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.dot-red { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(227, 36, 27, .18), 0 0 18px rgba(227, 36, 27, .6); }

/* ---------- brand lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup:hover { text-decoration: none; }
.lockup img { height: 34px; width: auto; display: block; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark .wm {
  font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #042B0A, #556605); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark .by { align-self: flex-end; font-family: var(--display); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; color: #081908; margin-top: 2px; }
.lockup.on-dark .wordmark .wm { background: none; color: #F1F5E2; }
.lockup.on-dark .wordmark .by { color: var(--olive-pale); }
.lockup.lg img { height: 56px; }
.lockup.lg .wordmark .wm { font-size: 40px; }
.lockup.lg .wordmark .by { font-size: 12px; }

/* ---------- app shell ---------- */
.top { position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 32px; }
.top .lockup img { height: 30px; }
.top .wordmark .wm { font-size: 22px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--brand-soft); padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--brand-soft); }
.who .uname { display: inline-flex; align-items: center; gap: 8px; }
.who .avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 13px; color: #fff; text-transform: uppercase; }
.who button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; min-height: 32px; padding: 0 12px; font-size: 13px; font-family: var(--body); font-weight: 500; }
.who button:hover { background: rgba(255, 255, 255, .16); }
main { max-width: 1320px; margin: 0 auto; padding: 28px 24px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sub { color: var(--muted); margin-top: 4px; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.app-foot { max-width: 1320px; margin: 0 auto; padding: 0 24px 28px; display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

/* ---------- summary band ---------- */
.band { border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.band .stat { display: flex; flex-direction: column; gap: 2px; }
.band .k { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-pale); display: flex; align-items: center; gap: 8px; }
.band .v { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.band .v small { font-size: 18px; font-weight: 500; color: var(--brand-soft); }
.band .stat.alert .v { color: #FFB4AC; }
.band .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 18px; }
@media (max-width: 860px) { .band { grid-template-columns: repeat(2, 1fr); } .band .stat:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 20px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > h2 { padding: 18px 22px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-2, .grid-3 { margin-bottom: 20px; }
.grid-2 > .panel, .grid-3 > .panel, .grid-2 > div > .panel:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FAFBF7; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dim { color: var(--faint); }
.nowrap { white-space: nowrap; }
tr.unmon td { color: var(--muted); }
.section-row td { background: var(--brand-tint); font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--olive-ink); padding: 9px 14px; }
td strong, td a strong { font-weight: 600; }

/* ---------- status ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1.4; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.bad { color: var(--crit-ink); background: var(--crit-tint); box-shadow: inset 0 0 0 1px var(--crit-line); }
.badge.bad::before { background: var(--crit); animation: pulse-red 2s infinite; }
.badge.warn { color: var(--high); background: var(--high-bg); }
.badge.muted { color: var(--norm); background: var(--norm-bg); }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(200, 30, 30, .5); } 70% { box-shadow: 0 0 0 6px rgba(200, 30, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 30, 30, 0); } }
.count { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; }
.count.ok { color: var(--up); }
.count.bad { color: var(--crit); }

.spark rect.sp-up { fill: var(--up); }
.spark rect.sp-down { fill: var(--crit); }
.spark rect.sp-part { fill: #D08A1E; }
.spark rect.sp-none { fill: var(--line); }
.spark { display: block; }

.problems { list-style: none; margin: 0; padding: 0; }
.problems li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.problems li:last-child { border-bottom: 0; }
.problems .what { flex: 1; }
.all-good { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--ok); }
.all-good .tick { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; }
.all-good .tick .ico { width: 18px; height: 18px; stroke-width: 2.6; }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=number], textarea, select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: var(--r); padding: 9px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(90, 107, 7, .14); }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row > .field { flex: 1; min-width: 120px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); margin-bottom: 12px; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 500; font-size: 15px; min-height: 40px; padding: 0 16px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: #fff; white-space: nowrap; text-decoration: none;
}
button:hover, .btn:hover { background: var(--brand-hover); text-decoration: none; }
button.ghost { background: var(--surface); color: var(--ink); border-color: var(--field); font-family: var(--body); }
button.ghost:hover { background: var(--surface-2); }
button.danger { background: var(--surface); color: var(--crit-ink); border-color: var(--crit-line); }
button.danger:hover { background: var(--crit-tint); }
button.small { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
button.link { background: none; border: 0; color: var(--muted); padding: 2px 6px; min-height: 0; font-family: var(--body); font-weight: 500; font-size: 13px; }
button.link:hover { color: var(--crit-ink); background: none; }
form.inline { display: inline; }
.actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.rename { display: flex; gap: 6px; }
.rename input { padding: 5px 9px; font-size: 14px; border-color: transparent; background: transparent; }
.rename input:hover { border-color: var(--line); background: var(--surface); }
.rename input:focus { background: var(--surface); }

.flash { padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.bad { background: var(--crit-tint); color: var(--crit-ink); box-shadow: inset 0 0 0 1px var(--crit-line); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }

.cmd { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 92px 13px 15px; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.cmd button { position: absolute; right: 9px; top: 9px; }
.token-box { font-family: var(--mono); font-size: 16px; background: var(--brand-tint); color: var(--brand); border: 1px dashed var(--olive); padding: 14px 16px; border-radius: var(--r); word-break: break-all; }
.note-box { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
details summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
details[open] summary { margin-bottom: 12px; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 200px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }

/* ---------- sign-in ---------- */
body.auth { background: var(--surface); }
.signin { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--surface); }
.signin-hero { flex: 1 1 560px; padding: 44px clamp(24px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 36px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-pale); }
.clock { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: var(--brand-soft); }
.clock .live { width: 8px; height: 8px; border-radius: 50%; background: #9CC25B; box-shadow: 0 0 0 3px rgba(156, 194, 91, .25); animation: blink 2s ease-in-out infinite; }
.clock .mono { color: #fff; font-size: 14px; }
@keyframes blink { 50% { opacity: .35; } }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-mid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 36px; align-items: center; }
.signin-hero h1 { color: #fff; font-size: clamp(38px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; max-width: 11ch; font-weight: 600; }
.signin-hero h1 em { font-style: normal; color: var(--olive-pale); }
.signin-hero p { font-size: 17px; line-height: 1.65; color: var(--brand-soft); max-width: 40ch; margin: 22px 0 0; }

.site-stack { position: relative; height: 330px; }
.site-card { position: absolute; left: 0; right: 0; padding: 18px 18px 16px; border-radius: 16px; background: linear-gradient(160deg, #2A6A3A, #174D26); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 10px; }
.site-card.back { top: 0; transform: scale(.88); transform-origin: center top; opacity: .6; }
.site-card.mid { top: 46px; transform: scale(.94); transform-origin: center top; opacity: .85; }
.site-card.front { top: 98px; gap: 12px; }
.site-card .r1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-card .nm { font-family: var(--display); font-size: 19px; font-weight: 500; }
.site-card.front .nm { font-size: 21px; font-weight: 600; }
.site-card .tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(156, 194, 91, .18); color: #CFE3A8; }
.site-card .tag.down { background: rgba(227, 36, 27, .22); color: #FFC2BC; }
.site-card .m { font-size: 13px; color: var(--brand-soft); }
.dev-dots { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.dev-dots li { aspect-ratio: 1; border-radius: 6px; background: #9CC25B; animation: pr-fill .35s ease-out backwards; }
.dev-dots li.down { background: var(--signal); box-shadow: 0 0 0 3px rgba(227, 36, 27, .25); animation: blink 1.6s ease-in-out infinite; }
.dev-dots li:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms + .9s); }
@keyframes pr-fill { from { transform: scale(.4); opacity: 0; } }
.site-card .seal { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: var(--olive-pale); }
.site-card .seal .ico { width: 16px; height: 16px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .04); }
.facts .ico { width: 16px; height: 16px; color: var(--olive-pale); }

.signin-form { flex: 0 1 560px; background: var(--surface); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.instance { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.instance b { color: var(--ink-2); font-weight: 600; }
.instance .dot-red { width: 7px; height: 7px; box-shadow: none; }
.signin-card { width: 100%; max-width: 392px; margin: auto 0; display: flex; flex-direction: column; gap: 26px; }
.signin-card h2 { font-size: 34px; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.signin-card .lead { color: var(--muted); margin: 8px 0 0; }
.signin-card form { display: flex; flex-direction: column; gap: 16px; }
.signin-card .field { margin: 0; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.lbl-row a { font-size: 13px; color: var(--olive-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.in-field { position: relative; display: flex; align-items: center; }
.in-field > .ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.in-field input { padding: 14px 14px 14px 44px; border-radius: 12px; background: var(--surface-2); font-size: 16px; }
.in-field input:focus { background: var(--surface); }
.in-field .peek { position: absolute; right: 6px; min-height: 36px; width: 38px; padding: 0; background: none; border: 0; color: var(--muted); }
.in-field .peek:hover { background: var(--line-2); color: var(--ink); }
.in-field .peek .ico { width: 20px; height: 20px; }
.go-btn { width: 100%; min-height: 50px; font-size: 16px; border-radius: 12px; box-shadow: 0 10px 22px rgba(15, 61, 26, .22); }
.go-btn .ico { width: 18px; height: 18px; }
.go-btn[disabled] { opacity: .85; cursor: progress; }
.signin-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; color: var(--faint); }
.forgot-help { display: none; }
.forgot-help.open { display: block; }

/* entrance */
@keyframes rise-in { 0% { opacity: 0; transform: translateY(14px); } }
.rise { animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
.site-card.front.rise { animation-delay: .55s; }
@media (prefers-reduced-motion: reduce) { .rise, .dev-dots li, .badge.bad::before, .clock .live { animation: none !important; } }

@media (max-width: 1180px) { .hero-mid { grid-template-columns: minmax(0, 1fr); } .site-stack { max-width: 360px; height: 290px; } }
@media (max-width: 860px) {
  .signin-hero { padding: 20px 20px 24px; gap: 16px; flex-basis: 100%; }
  .site-stack, .facts, .signin-hero p { display: none; }
  .signin-hero h1 { font-size: 34px; }
  .signin-form { padding: 24px 16px 40px; }
  .instance { align-self: center; }
  .signin-card h2 { font-size: 28px; }
}
@media (max-width: 720px) {
  .top-inner { gap: 10px; padding: 0 14px; height: 58px; }
  .top .wordmark .by, .who .uname span:last-child { display: none; }
  .top .wordmark .wm { font-size: 19px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .who button { padding: 0 9px; }
  main { padding: 20px 14px 48px; }
  .band { padding: 18px; }
  .band .v { font-size: 30px; }
}
@media (max-width: 480px) { .top .wordmark { display: none; } }

/* ---------- services ---------- */
.type-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--brand-tint); color: var(--olive-ink); vertical-align: 1px; }
.cert { font-family: var(--display); font-weight: 600; }
.cert.ok { color: var(--up); }
.cert.warn { color: var(--high); }
.cert.bad { color: var(--crit); }
.add-check { padding: 18px 22px 8px; border-top: 1px solid var(--line); background: var(--surface-2); }
.add-check .field { margin-bottom: 10px; }
details.adv { margin: 4px 0 10px; }
details.adv summary { font-size: 13.5px; color: var(--muted); font-weight: 500; }
td.result { min-width: 200px; max-width: 300px; }
#services .spark { width: 144px; }
@media (max-width: 1360px) { #services .hide-md { display: none; } }

/* ---------- alert channels ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .channels { grid-template-columns: 1fr; } }
.channel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: var(--surface-2); scroll-margin-top: 90px; }
.channel:target { box-shadow: 0 0 0 3px rgba(90, 107, 7, .25); }
.ch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ch-head h3 { font-size: 18px; font-weight: 600; flex: 1; }
.ch-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--olive-pale); display: grid; place-items: center; }
.ch-ico .ico { width: 18px; height: 18px; }
.ch-err { flex-basis: 100%; font-size: 12.5px; color: var(--crit-ink); background: var(--crit-tint); border: 1px solid var(--crit-line); border-radius: 8px; padding: 6px 10px; word-break: break-word; }
.channel .field { margin-bottom: 10px; }
.channel textarea { resize: vertical; min-height: 44px; }
.ch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.channel .hint { line-height: 1.5; }
.steps { padding-left: 18px; margin: 4px 0 0; }
.steps li { margin-bottom: 2px; }
.found { background: var(--brand-tint); border: 1px solid var(--olive-pale); border-radius: var(--r); padding: 10px 12px; margin-bottom: 10px; font-size: 13.5px; }
.found ul { margin: 6px 0; padding-left: 18px; }
.check.small { font-size: 13px; color: var(--muted); }

/* toggle switch */
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 22px; border-radius: 999px; background: var(--field); position: relative; transition: background .15s; flex: 0 0 auto; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(90, 107, 7, .2); }

/* ---------- device page ---------- */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
ul.plain li:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .type-chip { margin-left: 0; }
td .type-chip:first-child { margin-left: 0; }
