
:root { color-scheme: light dark; --fg: #1f2328; --muted: #59636e; --line: #d0d7de; --bg: #fff; --panel: #f6f8fa;
  --accent: #0969da; --ok: #1a7f37; --warn: #9a6700; --bad: #cf222e; }
@media (prefers-color-scheme: dark) { :root { --fg: #e6edf3; --muted: #8d96a0; --line: #30363d; --bg: #0d1117;
  --panel: #161b22; --accent: #4493f8; --ok: #3fb950; --warn: #d29922; --bad: #f85149; } }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
header { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.5rem; border-bottom: 1px solid var(--line); }
header .brand { font-weight: 700; color: var(--fg); text-decoration: none; }
header .spacer { flex: 1; }
header img { width: 28px; height: 28px; border-radius: 50%; }
main { max-width: 64rem; margin: 0 auto; padding: 1.5rem; }
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .75rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
form.stack { display: grid; gap: .75rem; max-width: 36rem; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
label small { font-weight: 400; color: var(--muted); }
label small.hint { color: var(--fg); }
.small { font-size: .85rem; }
nav.tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--line); margin: .5rem 0 1rem; }
nav.tabs a { padding: .4rem 0; text-decoration: none; color: var(--muted); }
nav.tabs a.active { color: var(--fg); border-bottom: 2px solid var(--accent); }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
label.check input { width: auto; }
.record { font-family: ui-monospace, monospace; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: .5rem .75rem; overflow-wrap: anywhere; }
.deploy-total { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; margin: .5rem 0 0; }
ol.timeline { list-style: none; padding: 0; margin: 1rem 0; border-left: 2px solid var(--line); }
ol.timeline li { position: relative; padding: .4rem 0 .9rem 1.2rem; }
ol.timeline li::before { content: ""; position: absolute; left: -7px; top: .75rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
ol.timeline li.t-succeeded::before { background: var(--ok); border-color: var(--ok); }
ol.timeline li.t-running::before, ol.timeline li.t-queued::before { border-color: var(--warn); background: var(--warn); }
ol.timeline li.t-failed::before { background: var(--bad); border-color: var(--bad); }
ol.timeline li.t-skipped::before, ol.timeline li.t-cancelled::before { border-style: dashed; }
ul.blockers { margin: .4rem 0 0; padding-left: 1.1rem; list-style: disc; }
ul.blockers li, ol.timeline ul.blockers li { padding: .1rem 0; overflow-wrap: anywhere; }
ol.timeline ul.blockers li::before { content: none; }
input, textarea { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--fg); }
textarea { font-family: ui-monospace, monospace; min-height: 8rem; }
input::placeholder, textarea::placeholder { font-weight: 400; color: var(--muted); }
button { font: inherit; padding: .45rem .9rem; border-radius: 6px; border: 1px solid var(--line);
  background: var(--accent); color: #fff; cursor: pointer; }
button.secondary { background: transparent; color: var(--fg); }
button.danger { background: var(--bad); border-color: var(--bad); }
form.inline { display: inline; }
.error { color: var(--bad); font-size: .85rem; font-weight: 400; }
.blocked { color: var(--bad); }
.flash { padding: .6rem .9rem; border-radius: 6px; border: 1px solid var(--bad); color: var(--bad); margin-bottom: 1rem; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; border: 1px solid currentColor; }
.s-healthy, .s-succeeded { color: var(--ok); }
.s-progressing, .s-running, .s-queued, .s-pending { color: var(--warn); }
.s-degraded, .s-failed { color: var(--bad); }
.s-superseded, .s-none, .s-skipped, .s-reused, .s-cancelled { color: var(--muted); }
.s-success { color: var(--ok); }
.s-invalid { color: var(--warn); }
.s-denied { color: var(--bad); }
form.filters { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: end; margin-bottom: 1rem; }
form.filters label { font-size: .8rem; }
form.filters input, form.filters select { max-width: 11rem; }
table.audit td { font-size: .85rem; overflow-wrap: anywhere; }
dl.event { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.event dt { color: var(--muted); font-size: .85rem; }
dl.event dd { margin: 0; overflow-wrap: anywhere; }
pre.logs { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .75rem;
  max-height: 28rem; overflow: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; margin: 0; }
svg.chart { width: 100%; height: 120px; }
svg.chart polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
svg.chart line { stroke: var(--line); }
:root { --c0: #2a78d6; --c1: #eb6834; --c2: #1baf7a; --c3: #eda100; --c4: #e87ba4; --c5: #008300; --c6: #4a3aa7;
  --c7: #e34948; --grid: #e7e9ec; }
@media (prefers-color-scheme: dark) { :root { --c0: #3987e5; --c1: #d95926; --c2: #199e70; --c3: #c98500;
  --c4: #d55181; --c5: #008300; --c6: #9085e9; --c7: #e66767; --grid: #252b33; } }
.c0 { --series: var(--c0); } .c1 { --series: var(--c1); } .c2 { --series: var(--c2); } .c3 { --series: var(--c3); }
.c4 { --series: var(--c4); } .c5 { --series: var(--c5); } .c6 { --series: var(--c6); } .c7 { --series: var(--c7); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; }
.charts .panel > strong { display: block; margin-bottom: .25rem; }
figure.chart { margin: 0; }
svg.plot { display: block; width: 100%; height: auto; overflow: visible; }
svg.plot .grid { stroke: var(--grid); stroke-width: 1; }
svg.plot .baseline { stroke: var(--line); stroke-width: 1; }
svg.plot .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.plot .line, ul.legend .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round;
  stroke-linecap: round; }
svg.plot .end, svg.plot .mark { fill: var(--series); stroke: var(--panel); stroke-width: 2; }
svg.plot .hover .band { fill: transparent; }
svg.plot .hover .cursor { stroke: var(--muted); stroke-width: 1; opacity: 0; }
svg.plot .hover .mark { opacity: 0; }
svg.plot .hover:hover .cursor, svg.plot .hover:hover .mark { opacity: 1; }
ul.legend { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1rem;
  font-size: .8rem; }
ul.legend li { display: flex; align-items: center; gap: .35rem; }
ul.legend svg.key { width: 16px; height: 8px; }
ul.legend strong { font-variant-numeric: tabular-nums; }
.meter { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.meter svg { width: 64px; height: 6px; }
.meter .track { fill: var(--line); }
.meter .fill.ok { fill: var(--accent); }
.meter .fill.warn { fill: var(--warn); }
.meter .fill.bad { fill: var(--bad); }
.volume-tracks { display: grid; gap: 1rem; }
.volume-tracks h3 { margin: 0; font-size: 1rem; }
dl.usage { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .75rem 0; }
dl.usage dt { color: var(--muted); font-size: .85rem; }
dl.usage dd { margin: 0; font-variant-numeric: tabular-nums; }
dl.usage .warn { color: var(--warn); }
dl.usage .bad { color: var(--bad); }
.sparks { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.sparks > div > strong { display: block; font-size: .85rem; }
figure.spark { margin: 0; }
svg.spark { max-height: 4rem; }
table.telemetry td { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.telemetry td.warn { color: var(--warn); }
table.telemetry td.bad { color: var(--bad); }
.map-scroll { overflow-x: auto; padding: .25rem 0; }
svg.map { display: block; max-width: 100%; height: auto; margin: 0 auto; }
svg.map .node .box { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
svg.map .node.service .box { fill: var(--panel); }
svg.map .node.external .box, svg.map .node.application .box { stroke-dasharray: 5 4; }
svg.map .node.warn .box { stroke: var(--warn); stroke-width: 2; }
svg.map .node.bad .box { stroke: var(--bad); stroke-width: 2; }
svg.map a:hover .box, svg.map a:focus .box { stroke: var(--accent); stroke-width: 2; }
svg.map .name { fill: var(--fg); font-size: 13px; font-weight: 600; }
svg.map .stat { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.map .icon * { fill: none; stroke: var(--muted); stroke-width: 1.3; }
svg.map .status { fill: currentColor; stroke: var(--panel); stroke-width: 2; }
svg.map .edge .hit { fill: none; stroke: transparent; stroke-width: 14; }
svg.map .edge .line { fill: none; stroke: var(--muted); opacity: .55; stroke-linecap: round; }
svg.map .edge.idle .line { stroke-dasharray: 3 5; opacity: .4; }
svg.map .edge.warn .line { stroke: var(--warn); opacity: .9; }
svg.map .edge.bad .line { stroke: var(--bad); opacity: .9; }
svg.map .edge:hover .line { stroke: var(--accent); opacity: 1; }
svg.map .edge .flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1 11; opacity: .85; pointer-events: none; animation: map-flow 1.2s linear infinite; }
svg.map .edge.warn .flow { stroke: var(--warn); }
svg.map .edge.bad .flow { stroke: var(--bad); }
svg.map .arrow { fill: var(--muted); }
svg.map .arrow.warn { fill: var(--warn); }
svg.map .arrow.bad { fill: var(--bad); }
svg.map .label rect { fill: var(--bg); stroke: var(--line); }
svg.map .label text { fill: var(--fg); font-size: 11px; font-variant-numeric: tabular-nums; }
@keyframes map-flow { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { svg.map .edge .flow { animation: none; } }
.map-legend { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
code { font-family: ui-monospace, monospace; font-size: .9em; }
select { font: inherit; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  color: var(--fg); }
form.stack.wide { max-width: 48rem; margin-top: 1rem; }
ol.steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
ol.steps li { counter-increment: step; display: flex; align-items: center; gap: .4rem; padding: .2rem .8rem .2rem .25rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; }
ol.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
ol.steps li.current { color: var(--fg); border-color: var(--accent); }
ol.steps li.current::before { background: var(--accent); border-color: var(--accent); color: #fff; }
ol.steps li.done::before { content: "\2713"; background: var(--ok); border-color: var(--ok); color: #fff; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0; }
a.choice { display: grid; gap: .4rem; align-content: start; padding: 1rem 1.1rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); color: var(--fg); text-decoration: none; }
a.choice:hover, a.choice:focus-visible { border-color: var(--accent); }
a.choice span { color: var(--muted); font-size: .9rem; }
fieldset.candidate { display: grid; gap: .75rem; margin: 0 0 1rem; padding: .75rem 1rem 1rem; border: 1px solid var(--line);
  border-radius: 8px; }
fieldset.candidate legend { padding: 0 .4rem; }
.tier { display: inline-block; margin-left: .4rem; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .75rem; }
details > summary { cursor: pointer; color: var(--accent); }
details pre.logs { margin-top: .5rem; }
.panel ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.panel p.warn { color: var(--warn); }
.options { display: flex; flex-wrap: wrap; gap: .5rem; }
button.option { background: transparent; color: var(--fg); }
button.option.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.environment { display: grid; gap: .75rem; }
.environment h3 { margin: .5rem 0 0; font-size: .95rem; }
.secrets { display: grid; gap: .5rem; }
.secrets > strong { font-size: .9rem; }
.secret { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr auto; gap: .75rem; align-items: start; }
.secret textarea { min-height: 2.4rem; }
.secret button { margin-top: 1.45rem; }
@media (max-width: 40rem) { .secret { grid-template-columns: 1fr; } .secret button { margin-top: 0; } }
button.default-submit { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
