/* Visual language follows vigilbase.com (apps/com in the vigilbase monorepo):
   Manrope + Space Mono, a floating dark header capsule, flat light surfaces,
   mono eyebrows, one yellow accent and a dark editorial footer.
   Fonts are self-hosted copies of the com site's files (SIL OFL 1.1, see fonts/). */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope/manrope-latin-ext.6ab0db14f70d8ed6.woff2) format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope/manrope-latin.a343f882a40d2cc9.woff2) format("woff2"); unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-mono/space-mono-400-latin-ext.d7a0600e467cf0bd.woff2) format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-mono/space-mono-400-latin.dc0d9adbac686440.woff2) format("woff2"); unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-mono/space-mono-700-latin-ext.28e60ca39c9ae554.woff2) format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-mono/space-mono-700-latin.8d05cfa5faa8406c.woff2) format("woff2"); unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --yellow: #F9E75E;
  --yellow-hover: #E8DF2D;
  --bg: #F7F7F7;
  --black: #111111;
  --muted: #606060;
  --line: #E0E0E0;
  --input: #BDBDBD;
  --soft: #F3F3F3;
  --card: #FFFFFF;
  --green: #27AE60;
  --shadow: 0 12px 30px rgba(33, 33, 33, .025);
  --closing: #F7F4DC;
  --closing-line: #E5DEAC;
  --container: min(1240px, calc(100% - 48px));
  --sans: Manrope, Arial, ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--black);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.65;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
:where(main) a:not(.button):not(.card) {
  color: var(--black);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color .18s ease;
}
:where(main) a:not(.button):not(.card):hover { text-decoration-color: currentColor; }
svg.arrow { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .18s ease; }

/* Header: the com site's floating capsule. It is dark in both themes. */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(1240px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #F5F5F5;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 12px 0 24px;
  background: rgba(17, 17, 17, .95);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .11), 0 2px 6px rgba(0, 0, 0, .07);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.brand-logo { height: 28px; width: auto; display: block; color: #F5F5F5; }
.brand-sub { font-family: var(--mono); font-size: 11px; line-height: 1; letter-spacing: .15em; text-transform: uppercase; color: #A5A5A5; border-left: 1px solid rgba(255, 255, 255, .18); padding: 4px 0 4px 12px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-links a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 10px; border-radius: 9px; color: #E5E5E5; font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .18s, background .18s; }
.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] { color: var(--yellow); background: rgba(255, 255, 255, .045); }
.top-actions { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
/* A hairline between the page links and the controls; the controls themselves carry no borders. */
.top-actions::before { content: ""; width: 1px; height: 22px; margin-inline-end: 8px; background: rgba(255, 255, 255, .14); }
.nav-status { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #D4D4D4; font-size: 12.5px; white-space: nowrap; transition: background .18s, color .18s; }
.nav-status:hover { background: rgba(255, 255, 255, .1); color: #FFF; }
.nav-status span { width: 7px; height: 7px; border-radius: 50%; background: #999; }
.nav-status.ok span { background: var(--green); box-shadow: 0 0 0 4px rgba(39, 174, 96, .18); }
.nav-status.alert span { background: #FF4444; box-shadow: 0 0 0 4px rgba(255, 68, 68, .18); }
.nav-status.unknown span { background: #F5A623; box-shadow: 0 0 0 4px rgba(245, 166, 35, .2); }
.nav-status strong { font-weight: 550; }
.nav-cta { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; margin-inline-start: 4px; padding: 0 14px; border-radius: 10px; background: var(--yellow); color: #111; font-size: 13px; font-weight: 650; white-space: nowrap; transition: background .18s; }
.nav-cta:hover { background: #FFEF84; }
.nav-cta svg.arrow { width: 15px; height: 15px; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: #BDBDBD; cursor: pointer; transition: background .18s, color .18s; }
.theme-toggle:hover { background: rgba(255, 255, 255, .08); color: #FFF; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; min-height: 44px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; background: transparent; color: #F5F5F5; cursor: pointer; font: 500 13px var(--sans); }
.menu-glyph { position: relative; display: block; width: 18px; height: 14px; }
.menu-glyph span { position: absolute; inset: 0 0 auto; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .28s ease, opacity .16s ease; }
.menu-glyph span:nth-child(2) { transform: translateY(6px); }
.menu-glyph span:nth-child(3) { transform: translateY(12px); }
.header.open .menu-glyph span:first-child { transform: translateY(6px) rotate(45deg); }
.header.open .menu-glyph span:nth-child(2) { opacity: 0; transform: translateY(6px) scaleX(.4); }
.header.open .menu-glyph span:nth-child(3) { transform: translateY(6px) rotate(-45deg); }
.theme-sun { display: none; }
html[data-theme="light"] .theme-sun { display: block; }
html[data-theme="light"] .theme-moon { display: none; }
.external-link { display: inline-flex; align-items: center; gap: 6px; }
.external-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.25; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.external-link:hover .external-icon { transform: translate(3px, -3px); }
.card.external-link { display: block; position: relative; }
.card.external-link .external-icon { position: absolute; right: 24px; bottom: 24px; }
.card.external-link:hover .external-icon { transform: translate(3px, -3px); }

/* Page body */
main { flex: 1; width: var(--container); margin: 0 auto; padding: calc(102px + clamp(40px, 5vw, 72px)) 0 88px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) 360px; gap: 40px; align-items: center; }
.hero-simple { display: block; max-width: 900px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.dot { position: relative; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(39, 174, 96, 0.12); }
.dot::after { content: ""; position: absolute; inset: -10px; border-radius: 999px; background: rgba(39, 174, 96, 0.22); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.35); opacity: .9; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
h1 { max-width: 22ch; margin: 0; font-family: var(--sans); font-weight: 600; font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; overflow-wrap: break-word; }
.highlight { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .065em; text-underline-offset: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
h2 { margin: 0 0 12px; font-size: clamp(1.75rem, 2.8vw, 2.75rem); font-weight: 600; line-height: 1.16; letter-spacing: -.04em; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.03em; }
.card h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.03em; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.65; margin: 0; }
.card p { font-size: 15px; }
.lede { max-width: 62ch; margin-top: 24px; font-size: 18px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 14px 22px; border: 1px solid var(--black); border-radius: 8px; background: var(--black); color: #FFF; font: 600 14px/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.button.yellow { background: var(--yellow); color: #111; border-color: var(--yellow); }
.button.yellow:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.button.light { background: var(--card); color: var(--black); border-color: var(--input); }
.button.light:hover { background: var(--soft); }
.button.text { min-height: 44px; padding: 10px 0; background: transparent; border-color: transparent; color: var(--black); }
.button.text:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover svg.arrow, .nav-cta:hover svg.arrow { translate: 3px 0; }
}

.card { border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); padding: 28px; }
.panel { background: #111; color: #fff; border-color: #2a2a2a; }
.panel p { color: #aaa; }
.metric { display: grid; gap: 16px; }
.metric-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid #272727; font-family: var(--mono); font-size: 13px; }
.metric-row:last-child { border-bottom: 0; padding-bottom: 0; }
.metric-row strong { color: var(--yellow); text-align: right; font-weight: 700; }

.section { margin-top: 64px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; border-radius: 999px; padding: 6px 11px; background: var(--soft); color: #444; margin-bottom: 16px; }
.code { font-family: var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: .92em; }
.prefix-list { margin-top: 22px; }
.prefix-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.prefix-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.prefix-table th, .prefix-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.prefix-table th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.prefix-table tr:last-child td { border-bottom: 0; }
.prefix-table td { font-size: 14px; }
.prefix-table td:first-child { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.prefix-table a { color: var(--black); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prefix-empty { border: 1px dashed var(--line); border-radius: 14px; padding: 18px; color: var(--muted); }
.lg-console { display: grid; gap: 18px; }
.lg-toolbar { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(150px, .9fr) minmax(110px, .55fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; }
.lg-toolbar label { display: grid; gap: 8px; min-width: 0; }
.lg-toolbar label span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; }
.lg-toolbar :is(input, select) { width: 100%; min-height: 44px; border: 1px solid var(--input); border-radius: 8px; background: var(--card); color: var(--black); font: 500 14px var(--sans); padding: 10px 12px; }
.lg-toolbar input { font: 400 13px var(--mono); }
.lg-toolbar label[hidden] { display: none; }
.lg-toolbar :is(input, select):disabled { opacity: .5; }
.lg-toolbar .button { min-height: 44px; padding: 10px 18px; }
.lg-turnstile { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.lg-status { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--muted); background: var(--soft); font-size: 13px; }
.lg-status.ok { color: var(--green); border-color: rgba(39,174,96,.25); background: rgba(39,174,96,.08); }
.lg-status.error { color: #ff4444; border-color: rgba(255,68,68,.25); background: rgba(255,68,68,.08); }
.lg-results { display: grid; gap: 14px; }
.lg-results:empty { display: none; }
.lg-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -6px; color: var(--muted); font: 400 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.lg-examples[hidden] { display: none; }
.lg-examples button { min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--black); font: 400 12px var(--mono); letter-spacing: 0; text-transform: none; cursor: pointer; }
.lg-examples button:hover { border-color: var(--yellow); }
.lg-overview { display: grid; gap: 12px; }
.lg-target-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lg-target-line strong { color: var(--black); font: 700 18px var(--mono); }
.lg-target-line span { color: var(--muted); font-size: 13px; }
.lg-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; }
.lg-facts div { display: grid; gap: 4px; }
.lg-facts dt, .lg-metrics dt { color: var(--muted); font: 400 10px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.lg-facts dd { margin: 0; color: var(--black); font-size: 15px; font-weight: 600; }
.lg-progress { height: 3px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.lg-progress i { display: block; height: 100%; background: var(--yellow); transition: width .2s var(--ease); }
.lg-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.lg-item { border-bottom: 1px solid var(--line); }
.lg-item:last-child { border-bottom: 0; }
.lg-item summary { display: grid; grid-template-columns: 14px minmax(110px, 190px) minmax(120px, 210px) minmax(0, 1fr) 14px; gap: 14px; align-items: center; padding: 13px 16px; cursor: pointer; list-style: none; font-size: 14px; }
.lg-item summary::-webkit-details-marker { display: none; }
.lg-item summary:hover { background: var(--soft); }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--input); }
.lg-item.ok .lg-dot { background: var(--green); }
.lg-item.error .lg-dot { background: #ff4444; }
.lg-item.pending .lg-dot { background: var(--yellow); }
.lg-pop { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lg-pop strong { color: var(--black); font: 700 13px var(--mono); }
.lg-pop small, .lg-answer small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.lg-source { overflow: hidden; color: var(--muted); font: 12px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.lg-answer { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.lg-answer strong { color: var(--black); font-weight: 600; white-space: nowrap; }
.lg-item.error .lg-answer strong { color: #ff4444; }
.lg-answer small { font: 12px var(--mono); }
.lg-caret { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s var(--ease); }
.lg-item[open] .lg-caret { transform: rotate(45deg); }
.lg-body { display: grid; gap: 14px; padding: 4px 16px 18px 44px; }
.lg-wait { margin: 0; color: var(--muted); font-size: 13px; }
.lg-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 110px)); gap: 12px; margin: 0; }
.lg-metrics div { display: grid; gap: 4px; }
.lg-metrics dd { margin: 0; color: var(--black); font: 700 13px var(--mono); }
.lg-mini-table, .lg-hop-table { width: 100%; max-width: 780px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lg-mini-table { max-width: 320px; }
.lg-mini-table th, .lg-mini-table td, .lg-hop-table th, .lg-hop-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: left; vertical-align: top; }
.lg-mini-table tr:last-child td, .lg-hop-table tr:last-child td { border-bottom: 0; }
.lg-mini-table th, .lg-hop-table th { background: var(--soft); color: var(--muted); font: 400 10px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.lg-hop-table td:nth-child(-n+3), .lg-mini-table td { color: var(--black); font-family: var(--mono); }
.lg-hop-table td strong { display: block; color: var(--black); font-weight: 600; }
.lg-hop-table td small { color: var(--muted); }
.lg-raw > span { display: block; margin-bottom: 6px; color: var(--muted); font: 400 10px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.lg-raw pre { margin: 0; max-height: 360px; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--black); white-space: pre-wrap; word-break: break-word; font: 12px/1.55 var(--mono); }
.status-banner { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 16px 22px 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.status-banner strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.status-banner .status-meta { display: block; margin-top: 2px; font-family: var(--sans); font-size: 13px; }
.status-banner-dot { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: #9A9A9A; box-shadow: 0 0 0 5px rgba(154, 154, 154, .18); }
.status-banner.ok .status-banner-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(39, 174, 96, .16); }
.status-banner.alert .status-banner-dot { background: #FF4444; box-shadow: 0 0 0 5px rgba(255, 68, 68, .16); }
.status-banner.unknown .status-banner-dot { background: #F5A623; box-shadow: 0 0 0 5px rgba(245, 166, 35, .18); }
.status-meta { color: var(--muted); }

/* The map is a dark panel in both themes, as on vigilbase.com's location pages,
   so the yellow markers stay legible. */
.status-map-card { display: grid; gap: 22px; }
.status-map-card p { max-width: 62ch; }
.status-map { aspect-ratio: 1000 / 460; border-radius: 14px; overflow: hidden; background: #111; color: #A5A5A5; display: grid; place-items: center; font-size: 13px; }
.status-rsm-map { display: block; width: 100%; height: 100%; }
.status-country { fill: #2A2A2A; stroke: #111; stroke-width: .6; }
.status-marker-ring { fill: rgba(249, 231, 94, .16); stroke: rgba(249, 231, 94, .55); stroke-width: 1.25; }
.status-marker-dot { fill: var(--yellow); stroke: #111; stroke-width: 1.5; }
.status-marker.degraded .status-marker-ring { fill: rgba(255, 68, 68, .18); stroke: rgba(255, 68, 68, .6); }
.status-marker.degraded .status-marker-dot { fill: #FF4444; }
.status-marker.unknown .status-marker-ring { fill: rgba(165, 165, 165, .14); stroke: rgba(165, 165, 165, .5); }
.status-marker.unknown .status-marker-dot { fill: #A5A5A5; }
.status-marker-label { font-family: var(--sans); font-size: 13px; font-weight: 650; letter-spacing: .02em; fill: #F5F5F5; paint-order: stroke; stroke: #111; stroke-width: 4; stroke-linejoin: round; }
/* Interactive MapLibre map on the CARTO basemap (status-map.js) when the Worker supplies a key. */
.status-map.status-map-live { display: block; aspect-ratio: auto; height: clamp(260px, 44vw, 560px); }
.map-pin { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; font: 650 13px var(--sans); letter-spacing: .02em; color: #F5F5F5; }
.map-pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 5px solid rgba(249, 231, 94, .28); background-clip: padding-box; box-shadow: 0 0 0 1px rgba(17, 17, 17, .8); }
.map-pin.degraded .map-pin-dot { background-color: #FF4444; border-color: rgba(255, 68, 68, .3); }
.map-pin.unknown .map-pin-dot { background-color: #A5A5A5; border-color: rgba(165, 165, 165, .3); }
.map-pin-label { text-shadow: 0 0 3px #111, 0 0 6px #111; }
.map-pin.label-left { flex-direction: row-reverse; }
.map-pin:hover .map-pin-label, .map-pin:focus-visible .map-pin-label { color: var(--yellow); }
.map-popup-wrap .maplibregl-popup-content { padding: 12px 14px; border-radius: 12px; background: #1B1B1B; color: #F5F5F5; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-family: var(--sans); }
.map-popup-wrap.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #1B1B1B; }
.map-popup-wrap.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #1B1B1B; }
.map-popup-wrap.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #1B1B1B; }
.map-popup-wrap.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #1B1B1B; }
.map-popup { display: grid; gap: 2px; min-width: 120px; }
.map-popup strong { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.map-popup span { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: #A5A5A5; }
.map-popup em { justify-self: start; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 600; color: #4CD186; border-radius: 999px; padding: 3px 9px; background: rgba(39, 174, 96, .16); }
.map-popup em.degraded { color: #FF6B6B; background: rgba(255, 68, 68, .14); }
.map-popup em.unknown { color: #F5B547; background: rgba(245, 166, 35, .16); }
.status-map-live .maplibregl-ctrl-group { border-radius: 10px; overflow: hidden; }
.status-map.status-map-live .maplibregl-ctrl-attrib { background: rgba(17, 17, 17, .78); color: #A5A5A5; font: 11px var(--sans); }
.status-map.status-map-live .maplibregl-ctrl-attrib a { color: #D6D6D6; text-decoration: none; background: none; }
.status-map.status-map-live .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.status-map.status-map-live .maplibregl-ctrl-attrib.maplibregl-compact-show { padding-right: 26px; }
.pop-status-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pop-status-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pop-status-item > div { min-width: 0; }
.pop-status-item strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; color: var(--black); }
.pop-status-item span { display: block; margin-top: 1px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--muted); }
.pop-status-item em { flex-shrink: 0; font-style: normal; font-weight: 600; font-size: 12px; color: #1E8A4C; border-radius: 999px; padding: 5px 10px; background: rgba(39, 174, 96, .1); }
.pop-status-item.degraded em { color: #D93030; background: rgba(255, 68, 68, .09); }
.pop-status-item.unknown em { color: #A86A08; background: rgba(245, 166, 35, .13); }
.pop-status-list > .prefix-empty { grid-column: 1 / -1; }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-row span { color: var(--muted); }
.contact-row a, .contact-row strong { font-weight: 600; }
.policy-list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); line-height: 1.6; }
.policy-list li { border-top: 1px solid var(--line); padding-top: 14px; }

/* Closing call to action, as on the com home page. */
.closing { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 44px 50px; background: var(--closing); border-color: var(--closing-line); border-radius: 18px; box-shadow: none; }
.closing .eyebrow { margin-bottom: 14px; }
.card.closing h2 { max-width: 620px; margin: 0; font-size: clamp(1.75rem, 2.8vw, 2.75rem); line-height: 1.16; letter-spacing: -.04em; }
.closing p:not(.eyebrow) { max-width: 62ch; margin-top: 14px; font-size: 16px; }

/* Footer: the com site's dark editorial footer. It is dark in both themes. */
.footer { margin-top: auto; background: #111; color: #F5F5F5; }
.footer-inner { width: min(1240px, calc(100% - 96px)); margin: 0 auto; padding: 64px 0 30px; }
.footer-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; padding-bottom: 42px; }
.footer .brand-logo { height: 38px; }
.footer-intro p { margin: 18px 0 0; font-size: 16px; color: #C1C1C1; }
.footer-contact { display: grid; gap: 6px; text-align: right; font-size: 14px; }
.footer-contact span { color: #919191; font-size: 12px; }
.footer a { color: #C6C6C6; transition: color .18s, transform .18s; }
.footer a:hover { color: var(--yellow); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding: 42px 0; border-block: 1px solid rgba(255, 255, 255, .12); }
.footer h3 { margin: 0 0 16px; color: #F5F5F5; font-size: 14px; font-weight: 650; line-height: 1.5; letter-spacing: -.015em; }
.footer ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-size: 13px; }
.footer-links a:hover { transform: translateX(3px); }
.footer-links .external-icon { width: 13px; height: 13px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; color: #989898; font-size: 12px; }
.footer-bottom span:last-child { font-family: var(--mono); letter-spacing: .15em; }

html[data-theme="dark"] {
  --bg: #121212;
  --black: #F2F2F2;
  --muted: #A3A3A3;
  --line: #333333;
  --input: #5C5C5C;
  --soft: #181818;
  --card: #1B1B1B;
  --shadow: none;
  --closing: #1D1B10;
  --closing-line: #4A4421;
  color-scheme: dark;
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] .button:not(.yellow):not(.light):not(.text) { background: #F5F5F5; color: #111; border-color: #F5F5F5; }
html[data-theme="dark"] .badge { color: #CFCFCF; }
html[data-theme="dark"] .pop-status-item em { color: #4CD186; }
html[data-theme="dark"] .pop-status-item.degraded em { color: #FF6B6B; }
html[data-theme="dark"] .pop-status-item.unknown em { color: #F5B547; }

@media (max-width: 1080px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 13px 13px 13px 20px; }
  .menu-toggle { display: inline-flex; }
  .nav-links, .top-actions { display: none; grid-column: 1 / -1; }
  .header.open .nav { max-height: calc(100dvh - 32px); overflow-y: auto; }
  .header.open .nav-links { display: grid; gap: 2px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .header.open .nav-links a { font-size: 16px; }
  .header.open .top-actions { display: flex; flex-wrap: wrap; padding: 12px 0 4px; }
  .top-actions::before { display: none; }
}
@media (max-width: 840px) {
  .hero, .grid, .grid.two { grid-template-columns: 1fr; }
  .status-banner { display: flex; }
  .lg-toolbar { grid-template-columns: 1fr; }
  .lg-item summary { grid-template-columns: 14px minmax(0, 1fr) 14px; row-gap: 4px; }
  .lg-source { display: none; }
  .lg-dot { grid-area: 1 / 1; }
  .lg-pop { grid-area: 1 / 2; }
  .lg-caret { grid-area: 1 / 3; }
  .lg-answer { grid-area: 2 / 2; flex-wrap: wrap; }
  .lg-answer small { white-space: normal; }
  .lg-body { padding-left: 16px; }
  .lg-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-simple { max-width: none; }
  .closing { display: grid; padding: 32px 28px; gap: 24px; }
  .footer-inner { width: calc(100% - 40px); padding-top: 48px; }
  .footer-intro { display: grid; gap: 24px; }
  .footer-contact { text-align: left; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  main { width: calc(100% - 40px); padding-top: calc(90px + 40px); }
  .card { padding: 22px; }
  .lede { font-size: 17px; margin-top: 20px; }
  .pop-status-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pop-status-item { display: grid; justify-items: start; gap: 8px; padding: 12px 14px; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .footer-links { grid-template-columns: 1fr; gap: 28px; }
}

/* Management dashboard */
.brand-word { font-weight: 900; letter-spacing: -.04em; font-size: 21px; }
.manage-page main.manage-main { max-width: 1360px; }
.manage-hero { max-width: 960px; }
.manage-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.manage-meta span { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.manage-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { display: grid; gap: 8px; min-height: 128px; }
.stat-card span { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.stat-card strong { font-size: clamp(25px, 3vw, 38px); line-height: 1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.stat-card em { font-style: normal; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.manage-grid { grid-template-columns: minmax(0, 1.4fr) minmax(360px, .8fr); align-items: stretch; }
.manage-map-card, .traffic-chart-card { min-width: 0; }
.card-heading-row, .section-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.card-heading-row p, .section-heading-row p { max-width: 720px; }
.manage-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toggle-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 11px; color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.toggle-pill input { accent-color: var(--yellow); }
.select-control { border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--black); font: 700 13px var(--mono); padding: 9px 10px; }
.manage-map { min-height: 520px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #fff, var(--soft)); color: var(--muted); display: grid; place-items: center; }
.manage-rsm-map { width: 100%; height: 100%; min-height: 520px; }
.traffic-map-link-base { fill: none; stroke: rgba(30, 144, 255, .16); stroke-linecap: round; }
.traffic-map-link { fill: none; stroke-linecap: round; stroke-dasharray: 1 12; filter: drop-shadow(0 0 7px rgba(30, 144, 255, .36)); animation: trafficDash var(--dash-seconds, 5s) linear infinite; }
.traffic-map-link.idle { stroke: rgba(90, 160, 255, .42); }
.traffic-map-link.cool { stroke: #30A8FF; }
.traffic-map-link.warm { stroke: #8C5CFF; }
.traffic-map-link.hot { stroke: #FF4FD8; filter: drop-shadow(0 0 11px rgba(255, 79, 216, .45)); }
@keyframes trafficDash { to { stroke-dashoffset: -130; } }
.traffic-link-label text { text-anchor: middle; font-family: var(--mono); font-size: 10px; font-weight: 800; fill: #168BE8; paint-order: stroke; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.traffic-link-label text + text { fill: #8C5CFF; font-size: 8px; font-weight: 700; }
.backend-marker-box { fill: var(--yellow); stroke: #111; stroke-width: 2.5; }
.backend-marker.degraded .backend-marker-box { fill: #ff4444; }
.backend-marker-label, .backend-marker-sub { font-family: var(--mono); font-weight: 900; fill: var(--black); paint-order: stroke; stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.backend-marker-label { font-size: 14px; }
.backend-marker-sub { font-size: 9px; font-weight: 700; }
.traffic-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin-top: 14px; }
.legend-link { display: grid; grid-template-columns: 34px auto; grid-template-areas: "line code" "line bits" "line source"; align-items: center; gap: 2px 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--soft); }
.legend-link span { grid-area: line; display: block; width: 34px; border-radius: 999px; background: #30A8FF; box-shadow: 0 0 10px rgba(48,168,255,.35); }
.legend-link.warm span { background: #8C5CFF; }
.legend-link.hot span { background: #FF4FD8; }
.legend-link strong { grid-area: code; font-family: var(--mono); font-size: 13px; }
.legend-link em { grid-area: bits; font-style: normal; color: var(--muted); font-size: 12px; }
.legend-link small { grid-area: source; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.traffic-chart { min-height: 350px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.traffic-chart svg { width: 100%; height: auto; display: block; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-grid text, .chart-axis-label { fill: var(--muted); font-family: var(--mono); font-size: 11px; text-anchor: end; }
.chart-axis-label { text-anchor: start; }
.chart-axis-label.end { text-anchor: end; }
.chart-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 10px rgba(0,0,0,.10)); }
.chart-line.rx { stroke: #30A8FF; }
.chart-line.tx { stroke: #8C5CFF; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 18px 16px; margin-top: -8px; font-family: var(--mono); font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.chart-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: currentColor; }
.chart-legend .rx { color: #30A8FF; }
.chart-legend .tx { color: #8C5CFF; }
.chart-empty { padding: 24px; color: var(--muted); }
.pop-ops-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.pop-op-card { display: grid; gap: 14px; align-content: start; }
.pop-op-card.degraded { border-color: rgba(255,68,68,.35); }
.pop-op-card.unknown { border-color: rgba(245,166,35,.35); }
.pop-op-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pop-code { display: inline-flex; font-family: var(--mono); font-weight: 900; color: #000; background: var(--yellow); border-radius: 8px; padding: 4px 7px; margin-bottom: 9px; }
.pop-op-card h3 { margin: 0 0 4px; }
.pop-op-card p { font-size: 12px; overflow-wrap: anywhere; }
.state-badge { border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 900; color: var(--green); background: rgba(39,174,96,.09); border: 1px solid rgba(39,174,96,.24); }
.state-badge.degraded { color: #ff4444; background: rgba(255,68,68,.08); border-color: rgba(255,68,68,.26); }
.state-badge.unknown { color: #f5a623; background: rgba(245,166,35,.08); border-color: rgba(245,166,35,.26); }
.pop-traffic-row, .instance-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 12px; }
.pop-traffic-row strong, .instance-row strong { color: var(--black); text-align: right; }
.check-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.check-pill { display: inline-grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 7px; background: var(--soft); min-width: 76px; }
.check-pill em { font-style: normal; color: var(--muted); font-size: 9px; font-family: var(--mono); text-transform: uppercase; }
.check-pill strong { font-size: 11px; color: var(--black); }
.check-pill.ok { border-color: rgba(39,174,96,.25); }
.check-pill.degraded { border-color: rgba(255,68,68,.28); }
.check-pill.unknown { border-color: rgba(245,166,35,.28); }
.pop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.service-list, .action-list, .runbook-list { display: grid; gap: 12px; margin-top: 18px; }
.service-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--soft); }
.service-item strong, .service-item span { display: block; }
.service-item span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.service-item em { font-style: normal; font-weight: 900; color: var(--green); font-size: 12px; }
.service-item.degraded em { color: #ff4444; }
.service-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.action-result { color: var(--muted); font-size: 13px; }
.runbook-list h3 { margin-top: 8px; }
.runbook-item { display: grid; gap: 7px; border-top: 1px solid var(--line); padding-top: 12px; }
.runbook-item span { font-weight: 800; }
.runbook-item code { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); overflow-x: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.runbook-item button { justify-self: start; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--black); padding: 7px 9px; font-weight: 800; cursor: pointer; }
.aup-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); }
.aup-modal[hidden] { display: none; }
.aup-dialog { max-width: 520px; display: grid; gap: 18px; }
.aup-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.aup-check input { margin-top: 4px; accent-color: var(--yellow); }
html[data-theme="dark"] .manage-map { background: #101010; }
html[data-theme="dark"] .traffic-link-label text, html[data-theme="dark"] .backend-marker-label, html[data-theme="dark"] .backend-marker-sub { stroke: #0f0f0f; }
html[data-theme="dark"] .backend-marker-box { stroke: #f5f5f5; }
html[data-theme="dark"] .traffic-chart { background: #151515; }

@media (max-width: 1180px) {
  .manage-stats, .pop-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  .manage-stats, .pop-ops-grid { grid-template-columns: 1fr; }
  .card-heading-row, .section-heading-row { display: grid; }
  .manage-map, .manage-rsm-map { min-height: 380px; }
}

/* Accessibility (WUX-13): visible keyboard focus, screen-reader-only text,
   looking glass controls, and reduced motion. */
:root { --focus-ring: #3B3B3B; }
html[data-theme="dark"] { --focus-ring: #F9E75E; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
:where(.header, .footer) :focus-visible { outline-color: #F9E75E; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) { outline: none; }
.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; }
.lg-buttons { display: flex; gap: 8px; align-items: end; }
.lg-buttons .button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.lg-console[aria-busy="true"] .lg-status { border-style: dashed; }
@media (max-width: 840px) { .lg-buttons { width: 100%; } .lg-buttons .button { flex: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .dot::after, .traffic-map-link { animation: none !important; }
}
