/* BCP console, "night ops" look (design: the Claude Design canvas "BCP Console Redesign").
   Plain CSS; the fonts are served by the tool itself (static/fonts, SIL Open Font License); nothing loaded from
   outside (architecture.md §7). No inline styles anywhere: the Content-Security-Policy forbids them. */

@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0A0F1C; --panel: #111A2C; --panel-2: #0D1526; --panel-3: #15203A;
  --line: #1F2B44; --line-2: #2A3A58; --line-3: #1C2840;
  --text: #E6EDF7; --text-2: #C8D3E6; --muted: #93A4BF;
  --sky: #5CC8FF; --sky-2: #8FD8FF; --ink: #06131F;
  --ok: #4ADE80; --warn: #FFB547; --warn-2: #FFC56E; --down: #FF6B7A; --down-2: #FF8C98;
  --violet: #B79CFF; --violet-2: #CDB9FF; --extreme: #FF4D6D; --extreme-2: #FF8597;
  --aws: #FF9900; --aws-2: #FFB04D; --azure: #0078D4; --azure-2: #7DBEFF; --nas: #0D9488; --nas-2: #5EEAD4;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hd: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.5 var(--font);
  background-color: var(--bg); background-image: radial-gradient(rgba(148, 163, 184, .09) 1px, transparent 1px);
  background-size: 24px 24px; }
a { color: var(--sky); }
a:hover { color: #9BDDFF; }
h1, h2, h3, legend, .hd { font-family: var(--font-hd); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: 2.25rem; line-height: 1.1; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 0 0 .35rem; }
.mono, code, .tl-time { font-family: var(--font-mono); }
code { background: var(--panel-2); border: 1px solid var(--line-3); padding: .05rem .35rem; border-radius: 5px;
  font-size: .9em; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
::selection { background: rgba(92, 200, 255, .3); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 28px 24px 56px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line-3);
  background: rgba(10, 15, 28, .88); backdrop-filter: blur(8px); }
.top-in { max-width: 1360px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--sky); color: var(--ink); flex: none;
  display: flex; align-items: center; justify-content: center; }
.logo svg.i { width: 20px; height: 20px; stroke-width: 2.2; }
.brand-name { font-family: var(--font-hd); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand-sub { color: var(--muted); font-size: 13px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500;
  font-size: 14px; }
.nav a:hover { color: var(--text); background: rgba(148, 163, 184, .08); }
.nav a.active { color: var(--text); background: rgba(92, 200, 255, .1); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.node-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid #23304A; background: var(--panel); color: var(--text-2); font: 12px var(--font-mono);
  white-space: nowrap; }
.node-pill strong { color: var(--sky-2); }
.node-aws strong, .n-aws { color: var(--aws-2); }
.node-azure strong, .n-azure { color: var(--azure-2); }
.node-nas strong, .n-nas { color: var(--nas-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--line-3); border: 1px solid var(--line-2);
  color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  text-decoration: none; }
.avatar:hover { color: var(--text); border-color: var(--sky); }
.signout { color: var(--muted); font-size: 13px; }
button.link.signout:hover { color: var(--text); }

/* Status dots, with motion */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #6B7C99; flex: none; }
.dot.sm { width: 8px; height: 8px; }
.dot.lg { width: 16px; height: 16px; }
.dot.ok, .st-ok .dot { background: var(--ok); }
.dot.down, .st-down .dot { background: var(--down); }
.dot.warn, .st-degraded .dot { background: var(--warn); }
.dot.sky { background: var(--sky); }
.pulse-ok { animation: bcp-pulse-ok 2.6s ease-out infinite; }
.pulse-down, .st-down .dot { animation: bcp-pulse-down 1.8s ease-out infinite; }
.st-degraded .dot { animation: bcp-pulse-warn 2.2s ease-out infinite; }
.blink { animation: bcp-blink 1s steps(1) infinite; }
@keyframes bcp-pulse-ok { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes bcp-pulse-down { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 122, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 107, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 122, 0); } }
@keyframes bcp-pulse-warn { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 181, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); } }
@keyframes bcp-blink { 50% { opacity: .25; } }
@keyframes bcp-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes bcp-stripes { from { background-position: 0 0; } to { background-position: 28px 0; } }
@keyframes bcp-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes bcp-glow-1 { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 107, 122, .35), 0 0 30px rgba(255, 107, 122, .08); } 50% { box-shadow: 0 0 0 1px rgba(255, 107, 122, .6), 0 0 44px rgba(255, 107, 122, .18); } }
@keyframes bcp-glow-2 { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 181, 71, .35), 0 0 30px rgba(255, 181, 71, .08); } 50% { box-shadow: 0 0 0 1px rgba(255, 181, 71, .6), 0 0 44px rgba(255, 181, 71, .16); } }
@keyframes bcp-glow-3 { 0%, 100% { box-shadow: 0 0 0 1px rgba(92, 200, 255, .3), 0 0 30px rgba(92, 200, 255, .06); } 50% { box-shadow: 0 0 0 1px rgba(92, 200, 255, .55), 0 0 44px rgba(92, 200, 255, .14); } }

/* Banners and messages */
.banner { padding: 10px 16px; text-align: center; font-weight: 600; font-size: 14px; letter-spacing: .03em; }
.banner-dry { background: rgba(255, 181, 71, .12); color: var(--warn-2); border-bottom: 1px solid rgba(255, 181, 71, .3); }
.banner-dry code { background: transparent; border-color: rgba(255, 181, 71, .3); }
.banner-exercise { background: rgba(183, 156, 255, .14); color: #D4C4FF; border: 1px solid rgba(183, 156, 255, .35);
  border-radius: 12px; margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); }
.flash-error { background: rgba(255, 107, 122, .12); border-color: rgba(255, 107, 122, .4); color: #FFB3BC; }
.flash-info { background: rgba(92, 200, 255, .1); border-color: rgba(92, 200, 255, .35); color: #CDEFFF; }

/* Cards, panels, layout */
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 20px; }
.card.narrow { max-width: 560px; }
.card.empty { color: var(--muted); }
fieldset.card { min-width: 0; }
legend { padding: 0 6px; color: var(--text); font-size: 1.05rem; }
.inset { background: var(--panel-2); border: 1px solid var(--line-3); border-radius: 12px; padding: 12px 14px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.bad { color: var(--down-2); font-weight: 600; }
.error { color: var(--down-2); }
.good { color: var(--ok); }
.eyebrow { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.section-title { margin: 32px 0 12px; font-size: 1.25rem; }
.section-sub { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline { display: inline; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.spacer { flex: 1 1 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; text-decoration: none; margin-bottom: 14px; }

/* Forms */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; color: var(--text-2); font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; color: var(--text); min-height: 32px; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=datetime-local], input[type=file],
select, textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; max-width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(92, 200, 255, .18); }
textarea { width: 100%; resize: vertical; line-height: 1.45; }
input[type=checkbox], input[type=radio] { accent-color: var(--sky); width: 18px; height: 18px; margin: 0; }
::placeholder { color: #6B7C99; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  font: inherit; font-weight: 500; border-radius: 10px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text); cursor: pointer; text-decoration: none; transition: background .15s, filter .15s, border-color .15s; }
.button:hover { background: rgba(148, 163, 184, .1); color: var(--text); }
.button.primary { background: var(--sky); border-color: var(--sky); color: var(--ink); font-weight: 600; }
.button.primary:hover { filter: brightness(1.08); background: var(--sky); color: var(--ink); }
.button.danger { border-color: rgba(255, 107, 122, .55); color: var(--down-2); }
.button.danger:hover { background: rgba(255, 107, 122, .1); color: var(--down-2); }
.button.light { background: #FFFFFF; border-color: #FFFFFF; color: #1B1B1B; font-weight: 600; }
.button.light:hover { background: #FFFFFF; color: #1B1B1B; filter: brightness(.94); }
.button.outline { border-color: rgba(92, 200, 255, .55); color: var(--sky-2); font-weight: 600; }
.button.outline:hover { background: rgba(92, 200, 255, .08); color: var(--sky-2); }
.button.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.button.big { min-height: 56px; padding: 0 22px; font-size: 17px; font-weight: 700; border-radius: 14px; }
.button.block { display: flex; width: 100%; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.button .rec { font: 12px var(--font-mono); opacity: .75; }
button.link { background: none; border: 0; color: var(--sky); font: inherit; cursor: pointer; padding: 0; }

/* Tags and chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font: 600 12px var(--font-mono);
  letter-spacing: .06em; text-transform: uppercase; background: rgba(148, 163, 184, .12); color: var(--text-2); white-space: nowrap; }
.tag.sm { padding: 2px 8px; font-size: 11px; }
.tag.sev-1 { background: rgba(255, 107, 122, .14); color: var(--down-2); }
.tag.sev-2 { background: rgba(255, 181, 71, .14); color: var(--warn-2); }
.tag.sev-3 { background: rgba(92, 200, 255, .12); color: var(--sky-2); }
.tag.extreme { background: rgba(255, 77, 109, .18); color: var(--extreme-2); }
.tag.exercise { background: rgba(183, 156, 255, .16); color: var(--violet-2); }
.tag.st-ongoing { background: rgba(255, 107, 122, .14); color: var(--down-2); }
.tag.st-recovering { background: rgba(255, 181, 71, .14); color: var(--warn-2); }
.tag.st-resolved, .tag.st-closed { background: rgba(74, 222, 128, .12); color: var(--ok); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; margin: 2px 4px 2px 0;
  font: 12px var(--font-mono); background: rgba(148, 163, 184, .12); color: var(--text-2); }
.chip.busy, .chip.sky { background: rgba(92, 200, 255, .12); color: var(--sky-2); }
.pill { padding: 3px 10px; border-radius: 999px; background: rgba(92, 200, 255, .12); color: var(--sky-2);
  font: 600 12px var(--font-mono); white-space: nowrap; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); margin-bottom: 20px; font-size: 14px; }
.table-wrap .table { border: 0; margin: 0; }
.table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }
.table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line-3); vertical-align: top; }
.table tbody tr:hover { background: rgba(148, 163, 184, .04); }
.table.compact { width: auto; }
.filters { margin: 16px 0; }

/* Bars: widths come from the w-* classes at the end (no inline styles) */
.track { height: 6px; border-radius: 3px; background: var(--line-3); overflow: hidden; display: flex; }
.track.thick { height: 10px; border-radius: 5px; }
.fill { height: 100%; background: var(--sky); }
.fill.ok { background: var(--ok); }
.fill.bad { background: var(--down); }
.st-down .fill { background: var(--down); }
.st-degraded .fill { background: var(--warn); }
.st-ok .fill { background: var(--ok); }
.stripes { background-color: var(--sky); background-size: 28px 28px; animation: bcp-stripes 1s linear infinite;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .22) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .22) 75%, transparent 75%); }

/* Incidents list */
.inc-cards { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.inc-card { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: background .15s; }
.inc-card:hover { background: #142038; color: var(--text); }
.inc-card.sev-1 { animation: bcp-glow-1 3s ease-in-out infinite; }
.inc-card.sev-2 { animation: bcp-glow-2 3s ease-in-out infinite; }
.inc-card.sev-3 { animation: bcp-glow-3 3s ease-in-out infinite; }
.inc-card.is-exercise { animation: none; border: 1px dashed rgba(183, 156, 255, .55); }
.inc-card h2 { font-size: 1.75rem; line-height: 1.15; margin: 0; }
.inc-card .tags { align-items: center; }
.inc-card .clock { margin-left: auto; font: 600 26px var(--font-mono); }
.meta { margin: 0; color: var(--muted); font: 13px var(--font-mono); }
.sys-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sys-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 13px;
  background: var(--panel-2); border: 1px solid var(--line-3); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-stats div { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.mini-stats strong { display: block; font: 600 20px var(--font-mono); }
.mini-stats span { color: var(--muted); font-size: 12px; }
.mini-stats .sky { color: var(--sky-2); }
.open-link { display: inline-flex; align-items: center; gap: 6px; color: var(--sky-2); font-weight: 600; }
.is-exercise .open-link { color: var(--violet-2); }
.allclear { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 32px; margin-bottom: 32px; }
.allclear h2 { font-size: 1.6rem; margin: 0 0 4px; }
.allclear p { margin: 0; color: var(--muted); }
.allclear > div { flex: 1 1 320px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 32px; }
.tile { min-height: 96px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transition: border-color .15s, background .15s; }
.tile:hover { border-color: var(--sky); background: var(--panel-3); color: var(--text); }
.tile-name { font-weight: 600; line-height: 1.3; }
.tile-foot { display: flex; align-items: center; gap: 8px; }
.tile-foot .muted { margin-left: auto; font-size: 12px; text-align: right; }

/* Declare */
.scenario-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.scenario { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel-2); cursor: pointer; color: var(--text); font-weight: 400; font-size: 15px; }
.scenario:hover { border-color: var(--line-2); }
.scenario:has(input:checked) { border-color: var(--sky); background: rgba(92, 200, 255, .08); box-shadow: inset 0 0 0 1px var(--sky); }
.scenario input { margin-top: 3px; }
.scenario-body { display: flex; flex-direction: column; gap: 6px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Incident: head */
.hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hero-main h1 { font-size: 2.75rem; margin: 0; }
.hero-clocks { flex: 1 1 470px; display: flex; flex-wrap: wrap; gap: 12px; }
.stat-card { flex: 1 1 190px; padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.stat-card .big { font: 600 34px var(--font-mono); letter-spacing: .02em; color: var(--text); line-height: 1.15; }
.stat-card .sub { color: var(--muted); font-size: 13px; }
.ring-card { flex: 1 1 220px; flex-direction: row; align-items: center; gap: 14px; }
.ring-card > div { display: flex; flex-direction: column; gap: 2px; }
.ring-card .big { font-size: 26px; color: var(--sky-2); }
.ring { width: 76px; height: 76px; flex: none; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--sky); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-card.late { border-color: rgba(255, 107, 122, .5); }
.ring-card.late .big { color: var(--down-2); }
.ring-card.late .ring-fill { stroke: var(--down); }
.actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin-bottom: 20px;
  border-radius: 14px; background: #0F1728; border: 1px solid var(--line); }
.ab-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 0 6px; }
.ab-label svg.i { color: var(--sky); }

/* Incident: dashboard */
.dash { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.dash > .panel { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.p-systems { flex: 1 1 340px; }
.p-messages { flex: 1.35 1 440px; }
.p-nodes { flex: 1 1 300px; }
.p-milestones { flex: 1 1 420px; }
.p-timeline { flex: 1.4 1 520px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 18px; }
.panel-head span { color: var(--muted); font-size: 13px; text-align: right; }
.sys { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line-3); }
.sys-row { display: flex; align-items: center; gap: 10px; }
.sys-name { font-weight: 600; flex: 1 1 auto; }
.state { font: 600 12px var(--font-mono); padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
  background: rgba(148, 163, 184, .12); color: var(--text-2); }
.st-down .state { color: var(--down-2); background: rgba(255, 107, 122, .14); }
.st-degraded .state { color: var(--warn-2); background: rgba(255, 181, 71, .14); }
.st-ok .state { color: var(--ok); background: rgba(74, 222, 128, .12); }
.sys-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font: 12px var(--font-mono); }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-3); min-width: 0; }
.stat strong { display: block; font: 600 26px var(--font-mono); line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong.good { color: var(--ok); }
.stat strong.bad { color: var(--down-2); }
.bcast { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line-3); }
.bcast.is-sending { border-color: rgba(92, 200, 255, .35); }
.bcast-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.bcast-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 12px var(--font-mono); color: var(--sky-2); }
.bcast-state.done { color: var(--ok); }
.bcast-aud { color: var(--text-2); font-size: 13px; }
.chan { display: flex; align-items: center; gap: 10px; }
.chan-name { width: 52px; color: var(--muted); font-size: 12px; }
.chan .track { flex: 1 1 auto; }
.chan-count { min-width: 64px; text-align: right; font: 12px var(--font-mono); color: var(--text-2); }
details summary { cursor: pointer; color: var(--sky-2); }
.fail-list { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); }

/* Nodes: the little network map */
.netmap { position: relative; width: 260px; height: 150px; margin: 0 auto; }
.netmap svg.links { position: absolute; left: 0; top: 0; width: 260px; height: 150px; }
.netmap line { stroke-width: 2; }
.netmap line.ok { stroke: rgba(92, 200, 255, .35); }
.netmap line.down { stroke: rgba(255, 107, 122, .55); stroke-dasharray: 4 4; }
.nm-node { position: absolute; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.nm-node svg.i { width: 22px; height: 22px; }
.nm-aws { left: 8px; top: 8px; background: var(--aws); color: #1A1205; box-shadow: 0 0 0 4px rgba(255, 153, 0, .15); }
.nm-azure { left: 208px; top: 8px; background: var(--azure); color: #FFFFFF; box-shadow: 0 0 0 4px rgba(0, 120, 212, .18); }
.nm-nas { left: 108px; top: 100px; background: var(--nas); color: #FFFFFF; box-shadow: 0 0 0 4px rgba(13, 148, 136, .18); }
.nm-node.off { opacity: .35; filter: grayscale(.7); }
.pkt { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; offset-rotate: 0deg; offset-anchor: center;
  animation: bcp-travel 2.8s linear infinite; }
.pkt.from-aws { background: var(--aws-2); box-shadow: 0 0 10px var(--aws); }
.pkt.from-azure { background: var(--azure-2); box-shadow: 0 0 10px #3B9EFF; }
.pkt.from-nas { background: var(--nas-2); box-shadow: 0 0 10px #2DD4BF; animation-duration: 3.4s; }
.pkt.from-aws.to-azure { offset-path: path("M 30 31 L 230 31"); }
.pkt.from-azure.to-aws { offset-path: path("M 230 31 L 30 31"); animation-delay: -1.4s; }
.pkt.from-nas.to-aws { offset-path: path("M 130 122 L 30 30"); }
.pkt.from-aws.to-nas { offset-path: path("M 30 30 L 130 122"); animation-delay: -1.2s; }
.pkt.from-nas.to-azure { offset-path: path("M 130 122 L 230 30"); animation-delay: -1.7s; }
.pkt.from-azure.to-nas { offset-path: path("M 230 30 L 130 122"); animation-delay: -.6s; }
.nodes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nodes-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line-3); }
.nodes-list .right { margin-left: auto; }
.nodes-list .err { flex-basis: 100%; }
.backups { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font: 12px var(--font-mono); }

/* Milestones */
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms { display: flex; gap: 14px; }
.ms-rail { display: flex; flex-direction: column; align-items: center; width: 24px; flex: none; }
.ms-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; color: var(--ink);
  display: flex; align-items: center; justify-content: center; }
.ms-dot svg.i { width: 12px; height: 12px; stroke-width: 3.5; }
.ms-line { flex: 1 1 auto; width: 2px; min-height: 14px; background: #22304A; }
.ms.reached .ms-dot { background: var(--sky); border-color: var(--sky); }
.ms.reached .ms-line { background: rgba(92, 200, 255, .45); }
.ms.next .ms-dot { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(92, 200, 255, .15); }
.ms:last-child .ms-line { display: none; }
.ms-body { flex: 1 1 auto; min-width: 0; padding-bottom: 14px; }
.ms-head { display: flex; align-items: baseline; gap: 10px; }
.ms-head .label { font-weight: 600; }
.ms.later .ms-head .label { color: var(--muted); }
.ms-head .time, .ms-head .count { color: var(--muted); font: 12px var(--font-mono); }
.ms-head .count { margin-left: auto; }
.ms-details summary { color: var(--muted); font-size: 13px; margin-top: 2px; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.check-btn, .check-done { min-height: 40px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: 8px; border: 1px solid #22304A; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; }
.check-btn { cursor: pointer; }
.check-btn:hover { background: rgba(92, 200, 255, .08); border-color: var(--line-2); }
.box { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 2px solid #3A4A68; color: var(--ink);
  display: flex; align-items: center; justify-content: center; }
.box svg.i { width: 11px; height: 11px; stroke-width: 4; }
.check-done { color: var(--muted); }
.check-done .box { background: var(--sky); border-color: var(--sky); }
.prep { display: inline-block; margin-top: 8px; font-size: 13px; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 760px; overflow-y: auto; }
.tl li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; }
.tl-time { color: var(--muted); font-size: 13px; width: 44px; flex: none; padding-top: 2px; }
.tl-icon { width: 28px; height: 28px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center;
  background: rgba(148, 163, 184, .12); color: var(--text-2); }
.tl-icon svg.i { width: 15px; height: 15px; }
.tl-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-who { color: var(--muted); font: 12px var(--font-mono); }
.tl-broadcast .tl-icon { background: rgba(92, 200, 255, .12); color: var(--sky-2); }
.tl-broadcast .tl-text, .tl-milestone .tl-text { font-weight: 600; }
.tl-decision { background: rgba(255, 181, 71, .06); }
.tl-decision .tl-icon { background: rgba(255, 181, 71, .14); color: var(--warn-2); }
.tl-system .tl-icon, .tl-rto .tl-icon { background: rgba(255, 107, 122, .12); color: var(--down-2); }
.tl-extreme .tl-icon { background: rgba(255, 77, 109, .16); color: var(--extreme-2); }
.tl-extreme .tl-text, .tl-rto .tl-text { color: var(--extreme-2); font-weight: 600; }
.tl-milestone .tl-icon, .tl-checklist .tl-icon { background: rgba(74, 222, 128, .12); color: var(--ok); }
.tl-reminder .tl-icon { background: rgba(255, 181, 71, .12); color: var(--warn-2); }
.tl-reminder .tl-text { color: var(--warn-2); }
.tl-untrusted .tl-text::after { content: " (unverified node)"; color: var(--down-2); font-weight: 600; }

/* Incident: the forms under the dashboard */
.manage { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.manage .card { margin: 0; scroll-margin-top: 90px; }
.manage .card:target { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(92, 200, 255, .18); }
.mobile-send { display: none; }

/* Compose */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: rgba(92, 200, 255, .14); color: var(--text); }
.variant legend label { font-size: 1rem; }
.counter { font: 12px var(--font-mono); color: var(--muted); }
.counter.over { color: var(--down-2); font-weight: 600; }

/* Confirm */
.confirm { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.confirm-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.confirm-main .card { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.confirm-aside { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.aud-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.aud-head h2 { margin: 0; }
.aud-reach { margin-left: auto; color: var(--muted); font-size: 13px; }
.aud-reach .bad { font-weight: 600; }
.bubbles { display: flex; flex-wrap: wrap; gap: 14px; }
.bubble-col { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bubble { padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #1B2A45; color: var(--text); font-size: 14px;
  line-height: 1.45; white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.seg { font: 12px var(--font-mono); color: var(--muted); }
.seg.over { color: var(--down-2); font-weight: 600; }
.long { white-space: pre-wrap; font: inherit; background: var(--panel-2); padding: 12px; border-radius: 10px; margin: 10px 0 0; color: var(--text-2); }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.send-form { display: flex; flex-direction: column; gap: 10px; }
.test-aud { border-color: rgba(183, 156, 255, .45); }
.test-aud h2 { color: #DCCFFF; margin: 0; }

/* Sign-in */
.page-login .wrap { position: relative; min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; }
.login-bg { position: fixed; left: 50%; top: 50%; width: 1240px; height: 720px; margin: -360px 0 0 -620px; pointer-events: none; z-index: 0; }
.login-bg svg.lines { position: absolute; left: 0; top: 0; width: 1240px; height: 720px; fill: none; stroke-width: 2; }
.login-bg .l-cloud { stroke: rgba(92, 200, 255, .18); }
.login-bg .l-nas { stroke: rgba(45, 212, 191, .16); stroke-dasharray: 5 6; }
.bgn { position: absolute; width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  animation: bcp-breathe 4s ease-in-out infinite; }
.bgn svg.i { width: 28px; height: 28px; stroke-width: 1.8; }
.bgn-aws { left: 118px; top: 178px; background: rgba(255, 153, 0, .16); border: 1px solid rgba(255, 153, 0, .45); color: var(--aws-2); }
.bgn-azure { left: 1058px; top: 178px; background: rgba(0, 120, 212, .18); border: 1px solid rgba(59, 158, 255, .5); color: var(--azure-2); animation-delay: -1.3s; }
.bgn-nas { left: 588px; top: 568px; background: rgba(13, 148, 136, .18); border: 1px solid rgba(45, 212, 191, .5); color: var(--nas-2); animation-delay: -2.6s; }
.lpkt { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; offset-rotate: 0deg; offset-anchor: center;
  animation: bcp-travel 4s linear infinite; }
.lpkt-1 { offset-path: path("M 150 210 C 420 90, 820 90, 1090 210"); background: var(--aws-2); box-shadow: 0 0 12px var(--aws); }
.lpkt-2 { offset-path: path("M 1090 210 C 820 90, 420 90, 150 210"); background: var(--azure-2); box-shadow: 0 0 12px #3B9EFF; animation-delay: -2s; }
.lpkt-3 { offset-path: path("M 620 600 L 150 210"); background: var(--nas-2); box-shadow: 0 0 12px #2DD4BF; animation-duration: 5s; }
.lpkt-4 { offset-path: path("M 620 600 L 1090 210"); background: var(--nas-2); box-shadow: 0 0 12px #2DD4BF; animation-duration: 5s; animation-delay: -2.5s; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 36px 32px 28px; border-radius: 20px;
  background: rgba(17, 26, 44, .92); border: 1px solid #23304A; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: 20px; }
.login-card h1 { font-size: 1.75rem; margin: 0; }
.login-card p, .login-card .flash { margin: 0; }
.login-card .flash[hidden] { display: none; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .logo { width: 44px; height: 44px; border-radius: 12px; }
.login-brand .logo svg.i { width: 24px; height: 24px; }
.login-brand > div > span { display: block; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1 1 auto; height: 1px; background: #23304A; }
.ms-logo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; width: 18px; height: 18px; flex: none; }
.ms-logo span:nth-child(1) { background: #F25022; }
.ms-logo span:nth-child(2) { background: #7FBA00; }
.ms-logo span:nth-child(3) { background: #00A4EF; }
.ms-logo span:nth-child(4) { background: #FFB900; }
.center { text-align: center; }
.where { display: flex; flex-direction: column; gap: 6px; }
.where .row { gap: 10px; }

/* Runbooks */
.help { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.help-nav { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.help-nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--text-2); }
.help-nav a:hover { background: rgba(148, 163, 184, .08); color: var(--text); }
.help-nav a.active { background: rgba(92, 200, 255, .12); color: var(--text); font-weight: 600; }
.prose { margin: 0; max-width: 860px; }
.prose table { border-collapse: collapse; margin: .8rem 0; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.prose pre { background: var(--panel-2); border: 1px solid var(--line-3); padding: .8rem; border-radius: 10px; overflow-x: auto; }
.prose pre code { border: 0; background: none; padding: 0; }
.prose h1 { font-size: 1.75rem; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6rem; }

@media (max-width: 980px) {
  .confirm-aside { position: static; }
}
@media (max-width: 800px) {
  .help { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { padding: 20px 16px 40px; }
  .top-in { padding: 8px 16px; gap: 6px 12px; }
  .brand-sub { display: none; }
  h1 { font-size: 1.8rem; }
  .hero-main h1 { font-size: 2rem; }
  .stat-card .big { font-size: 26px; }
  .ring-card .big { font-size: 22px; }
  .actionbar .ab-label { flex-basis: 100%; }
  .inc-card h2 { font-size: 1.4rem; }
  .mobile-send { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 5; margin-top: 16px; padding: 12px 0 16px;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0), var(--bg) 35%); }
  .mobile-send .button { flex: 1 1 auto; }
  .login-card { padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-ok, .pulse-down, .st-down .dot, .st-degraded .dot, .blink, .stripes, .bgn,
  .inc-card.sev-1, .inc-card.sev-2, .inc-card.sev-3 { animation: none; }
  .pkt, .lpkt { display: none; }
  .ring-fill { transition: none; }
}

/* Widths for the bars, by whole percent (w-0 to w-100) */
.w-0 { width: 0%; } .w-1 { width: 1%; } .w-2 { width: 2%; } .w-3 { width: 3%; } .w-4 { width: 4%; }
.w-5 { width: 5%; } .w-6 { width: 6%; } .w-7 { width: 7%; } .w-8 { width: 8%; } .w-9 { width: 9%; }
.w-10 { width: 10%; } .w-11 { width: 11%; } .w-12 { width: 12%; } .w-13 { width: 13%; } .w-14 { width: 14%; }
.w-15 { width: 15%; } .w-16 { width: 16%; } .w-17 { width: 17%; } .w-18 { width: 18%; } .w-19 { width: 19%; }
.w-20 { width: 20%; } .w-21 { width: 21%; } .w-22 { width: 22%; } .w-23 { width: 23%; } .w-24 { width: 24%; }
.w-25 { width: 25%; } .w-26 { width: 26%; } .w-27 { width: 27%; } .w-28 { width: 28%; } .w-29 { width: 29%; }
.w-30 { width: 30%; } .w-31 { width: 31%; } .w-32 { width: 32%; } .w-33 { width: 33%; } .w-34 { width: 34%; }
.w-35 { width: 35%; } .w-36 { width: 36%; } .w-37 { width: 37%; } .w-38 { width: 38%; } .w-39 { width: 39%; }
.w-40 { width: 40%; } .w-41 { width: 41%; } .w-42 { width: 42%; } .w-43 { width: 43%; } .w-44 { width: 44%; }
.w-45 { width: 45%; } .w-46 { width: 46%; } .w-47 { width: 47%; } .w-48 { width: 48%; } .w-49 { width: 49%; }
.w-50 { width: 50%; } .w-51 { width: 51%; } .w-52 { width: 52%; } .w-53 { width: 53%; } .w-54 { width: 54%; }
.w-55 { width: 55%; } .w-56 { width: 56%; } .w-57 { width: 57%; } .w-58 { width: 58%; } .w-59 { width: 59%; }
.w-60 { width: 60%; } .w-61 { width: 61%; } .w-62 { width: 62%; } .w-63 { width: 63%; } .w-64 { width: 64%; }
.w-65 { width: 65%; } .w-66 { width: 66%; } .w-67 { width: 67%; } .w-68 { width: 68%; } .w-69 { width: 69%; }
.w-70 { width: 70%; } .w-71 { width: 71%; } .w-72 { width: 72%; } .w-73 { width: 73%; } .w-74 { width: 74%; }
.w-75 { width: 75%; } .w-76 { width: 76%; } .w-77 { width: 77%; } .w-78 { width: 78%; } .w-79 { width: 79%; }
.w-80 { width: 80%; } .w-81 { width: 81%; } .w-82 { width: 82%; } .w-83 { width: 83%; } .w-84 { width: 84%; }
.w-85 { width: 85%; } .w-86 { width: 86%; } .w-87 { width: 87%; } .w-88 { width: 88%; } .w-89 { width: 89%; }
.w-90 { width: 90%; } .w-91 { width: 91%; } .w-92 { width: 92%; } .w-93 { width: 93%; } .w-94 { width: 94%; }
.w-95 { width: 95%; } .w-96 { width: 96%; } .w-97 { width: 97%; } .w-98 { width: 98%; } .w-99 { width: 99%; }
.w-100 { width: 100%; }
