@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* Layout: plum sidebar app shell; an approval banner line on top when something waits; each page leads with its primary object at full width, secondary detail below. */
:root {
  --bg: #f6f5fa;
  --surface: #ffffff;
  --surface-2: #f1eff8;
  --line: #e5e2f0;
  --ink: #26233a;
  --muted: #6d6985;
  --purple: #6762a6;
  --purple-2: #79589f;
  --purple-soft: #ecE9f8;
  --purple-ink: #4b4590;
  --btn: #6762a6;
  --btn-hover: #79589f;
  --rail: #221e36;
  --rail-2: #2c2745;
  --rail-ink: #c8c2ea;
  --rail-ink-strong: #ffffff;
  --hero-a: #6f69b3;
  --hero-b: #5b4f97;
  --hero-c: #342c5c;
  --console: #1d1a2a;
  --console-ink: #d9d4ee;
  --console-dim: #8a84a8;
  --amber: #c98317;
  --amber-soft: #fdf3e2;
  --amber-ink: #7d5208;
  --green: #2f9e62;
  --green-soft: #e2f4e9;
  --red: #c9443f;
  --red-soft: #fbe9e8;
  --shadow: 0 1px 2px rgba(38, 35, 58, .06), 0 8px 24px rgba(38, 35, 58, .06);
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13111d; --surface: #1b1828; --surface-2: #231f35; --line: #2f2a46;
    --ink: #ece9f7; --muted: #9d98b9; --purple: #8f89d8; --purple-2: #a283cc;
    --purple-soft: #2b2647; --purple-ink: #c3bdf2; --btn: #6a64b8; --btn-hover: #7a6cbe;
    --rail: #0d0b15; --rail-2: #1a1628; --rail-ink: #b3acd8; --rail-ink-strong: #ffffff;
    --hero-a: #5d57a0; --hero-b: #4a3f82; --hero-c: #241e40;
    --console: #0e0c16; --console-ink: #d9d4ee; --console-dim: #7f799c;
    --amber: #e3a646; --amber-soft: #33270f; --amber-ink: #f3cd85;
    --green: #4cc283; --green-soft: #15301f; --red: #e8706b; --red-soft: #3a1918;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
code, .mono { font-family: var(--mono); font-variant-ligatures: none; font-size: .9em; }
h1, h2, h3 { text-wrap: balance; }


/* shell */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); background: var(--bg); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; }
.page { width: 100%; max-width: 1320px; }
.rail { background: var(--rail); color: var(--rail-ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--rail-ink-strong); font-weight: 600; font-size: 15px; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--rail-ink); }
.hex { width: 30px; height: 34px; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, #8f89d8, #6762a6 55%, #79589f); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); color: #fff; font-weight: 700; font-size: 15px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--rail-ink); font-weight: 500; }
.nav a:hover { background: var(--rail-2); color: var(--rail-ink-strong); text-decoration: none; }
.nav a.on { background: var(--rail-2); color: var(--rail-ink-strong); box-shadow: inset 2px 0 0 #8f89d8; }
.nav svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav .count { margin-left: auto; background: #e3a646; color: #2b1d02; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; }
.rail-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--rail-2); font-size: 13px; }
.me { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #3a3360; color: #fff; font-weight: 600; font-size: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.page { padding: 24px 32px 32px; display: grid; gap: 20px; align-content: start; min-width: 0; }

/* approval banner line */
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 32px; background: var(--amber-soft); color: var(--amber-ink); border-bottom: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); font-size: 14px; }
.banner .bell { width: 16px; height: 16px; flex: none; }
.banner p { margin: 0; flex: 1; min-width: 0; }
.banner a.btn { padding: 6px 12px; }

.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.pagehead .where { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.env { background: var(--purple-soft); color: var(--purple-ink); font-weight: 600; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px/1 var(--sans); padding: 9px 14px; border-radius: 8px; cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--btn); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--btn-hover); }
.btn.ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn.ghost-light:hover { background: rgba(255,255,255,.2); }
.btn.white { background: #fff; color: #3f3a73; border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.lg { padding: 14px 18px; font-size: 16px; border-radius: 12px; width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* release hero */
.release { position: relative; overflow: hidden; border-radius: 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 50%), linear-gradient(135deg, var(--hero-a), var(--hero-b) 45%, var(--hero-c)); padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.release::after { content: ""; position: absolute; right: -70px; top: -40px; width: 300px; height: 340px; opacity: .07; background: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.release > * { position: relative; z-index: 1; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.release h2 { margin: 6px 0 4px; font-size: 32px; font-weight: 600; letter-spacing: -.01em; }
.release h2 code { font-size: 30px; font-weight: 500; }
.release .sub { color: rgba(255,255,255,.86); font-size: 15px; }
.release .small { font-size: 13px; color: rgba(255,255,255,.66); margin-top: 6px; }
.release .actions { margin-top: 18px; }
.releases { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.releases li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.86); }
.releases li:last-child { border-bottom: 0; }
.releases span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.releases time { font-size: 13px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.releases .now code { color: #fff; }
.releases .pill { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #6fcf8f; color: #0f3a1f; margin-left: 6px; }

/* cards */
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .aside { color: var(--muted); font-size: 13px; }
.card-body { padding: 8px 18px 18px; }
.card-foot { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-foot p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.svc-grid { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
.svc-grid li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.svc-grid li:hover { background: var(--surface-2); }
.svc-name { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }
.more { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.more:hover { background: var(--surface); text-decoration: none; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch.on { background: var(--btn); }
.switch.on::after { left: 19px; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple-ink); }
.ico.ok { background: var(--green-soft); color: var(--green); }
.ico.warn { background: var(--amber-soft); color: var(--amber-ink); }
.ico.bad { background: var(--red-soft); color: var(--red); }
.ico svg { width: 14px; height: 14px; }
.feed small { display: block; color: var(--muted); font-size: 12px; }

/* job view */
.jobhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.jobhead h1 { margin: 0; font-size: 24px; font-weight: 600; }
.jobhead h1 code { color: var(--purple-ink); font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.running { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--purple) 55%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.progress { display: grid; gap: 8px; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--purple-2)); }
.progress small { color: var(--muted); font-variant-numeric: tabular-nums; }
.ships { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.ships b { font-weight: 600; }
.ships code { color: var(--purple-ink); margin-right: 6px; }

.steps { list-style: none; margin: 0; padding: 8px 0; }
.steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 8px 22px; }
.steps li::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.steps li:first-child::before { top: 20px; }
.steps li:last-child::before { bottom: calc(100% - 20px); }
.steps li.done::before { background: color-mix(in srgb, var(--green) 45%, var(--line)); }
.mark { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); }
.done .mark { background: var(--green); border-color: var(--green); color: #fff; }
.now .mark { border-color: var(--purple); }
.now .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); animation: pulse 1.4s ease-in-out infinite; }
.mark svg { width: 13px; height: 13px; }
.step-name { font-weight: 600; padding-top: 3px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.step-name small { font-weight: 400; color: var(--muted); font-size: 13px; }
button.step-name { appearance: none; background: none; border: 0; padding: 3px 0 0; margin: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; }
button.step-name:disabled { cursor: default; }
.dur { color: var(--muted); font-size: 13px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.term { background: var(--console); color: var(--console-ink); border-radius: 10px; font: 13px/1.7 var(--mono); font-variant-ligatures: none; padding: 12px 16px; overflow-x: auto; white-space: pre; }
.steps .term { grid-column: 2 / 4; margin-top: 8px; }
.term .dim { color: var(--console-dim); }
.term .err { color: #f19a95; }
.term .ok { color: #8fd18f; }

/* toolbars, forms */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.select, .input { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13px var(--sans); }
.select::after { content: "▾"; color: var(--muted); font-size: 11px; }
.input { flex: 1; min-width: 180px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.field-inline .input { min-width: 0; width: 120px; flex: none; }
.logpane { min-height: 420px; }
.logpane .ts { color: var(--console-dim); }
.logpane .lvl-info { color: #9ec3ff; }
.logpane .lvl-warn { color: #f3cd85; }
.logpane .lvl-err { color: #f19a95; }
.editor { background: var(--console); color: var(--console-ink); border-radius: 12px; font: 14px/1.7 var(--mono); font-variant-ligatures: none; padding: 14px 18px; white-space: pre; overflow-x: auto; min-height: 140px; border: 1px solid transparent; }
#sql-form, #console-form { display: grid; gap: 12px; }
.editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 13px; }
.kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }

.runs { display: grid; gap: 14px; }
.run { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.run-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.run-head b { color: var(--ink); font-weight: 600; }
.run .term { border-radius: 0; }
.run .term + .term { border-top: 1px solid rgba(255,255,255,.06); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.data td { padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.mono { font-family: var(--mono); font-size: 12.5px; }
table.data .null { color: var(--muted); font-style: italic; }
table.data td.num { text-align: right; }
table.data th.num { text-align: right; }

.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title h2 { margin: 0; font-size: 17px; font-weight: 600; }
.section-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--green-soft); color: var(--green); }

.pbar { display: flex; align-items: center; gap: 10px; padding: 8px 20px 14px; background: var(--rail); color: #fff; font-weight: 600; }
.pbar .hex { width: 24px; height: 27px; font-size: 12px; }
.sheet { padding: 22px 20px 24px; display: grid; gap: 16px; }
.sheet h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.sheet h2 code { color: var(--purple-ink); font-weight: 500; font-size: 23px; }
.commits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.commits li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.commits code { color: var(--purple-ink); }
.seg-label { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { text-align: center; padding: 8px 0; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg input:checked + label { background: var(--surface); color: var(--purple-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg input:focus-visible + label { outline: 2px solid var(--purple); }
fieldset.allow { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.allow legend { padding: 0; }
.deny { text-align: center; }
.deny a { color: var(--red); font-weight: 600; }
.sheet .term { white-space: pre-wrap; word-break: break-word; }

@media (max-width: 1000px) {
  .release { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rail { position: static; height: auto; }
  .rail { flex-direction: row; align-items: center; gap: 12px; padding: 12px; overflow-x: auto; }
  .nav { display: flex; gap: 2px; }
  .nav a { white-space: nowrap; padding: 7px 10px; }
  .nav a.on { box-shadow: inset 0 -2px 0 #8f89d8; }
  .nav svg, .rail-foot, .brand small { display: none; }
  .brand { padding: 0 4px 0 0; }
  .page { padding: 18px 16px 24px; }
  .banner { padding: 10px 16px; }
  .cols { grid-template-columns: 1fr; }
  .steps li { padding: 8px 14px; }
  .steps li::before { left: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .now .mark::after, .caret { animation: none; }
}

/* page pieces beyond the mock */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.empty { padding: 28px 18px; color: var(--muted); text-align: center; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 14px; }
.notice.error, .form-error { background: var(--red-soft); color: var(--red); }
.form-error { padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.form-error:empty { display: none; }
.rail-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.rail-foot .who { display: flex; align-items: center; gap: 10px; }
.rail-foot .ver { font: 12px var(--mono); color: var(--rail-ink); opacity: .8; }
.rail-foot .update { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; color: #e3a646; }
.rail-foot .update:hover { text-decoration: underline; }
.rail-foot form { margin: 0; }
.rail-foot .signout { all: unset; cursor: pointer; font-size: 12px; color: var(--rail-ink); }
.rail-foot .signout:hover { color: var(--rail-ink-strong); }

button.btn { appearance: none; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--purple-ink); }

.input, .select { font: 500 14px var(--sans); color: var(--ink); }
input.input, select.select, textarea.input { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
select.select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
select.select::after { content: none; }
input.input:focus, select.select:focus, textarea.editor:focus { outline: 2px solid var(--purple); outline-offset: 1px; }

textarea.editor { width: 100%; resize: vertical; min-height: 160px; border: 0; display: block; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-input:checked + .switch { background: var(--btn); }
.switch-input:checked + .switch::after { left: 19px; }
.switch-input:focus-visible + .switch { outline: 2px solid var(--purple); outline-offset: 2px; }
label.check { cursor: pointer; }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: 34px; z-index: 5; min-width: 150px; padding: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; }
.menu-list button, .menu-list a { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.menu-list button:hover, .menu-list button:focus-visible, .menu-list a:hover, .menu-list a:focus-visible { background: var(--surface-2); text-decoration: none; }
.menu-list button.danger { color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.live { background: var(--purple-soft); color: var(--purple-ink); }
.tagline { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); }
.tagline.running { background: var(--green-soft); color: var(--green); }

table.data tr.muted td { color: var(--muted); }
table.data a.rowlink { color: inherit; font-weight: 600; }
table.data .actions { justify-content: flex-end; }

.steps li { cursor: default; }
.steps li.has-output .step-name { cursor: pointer; }
.steps li.failed .mark { background: var(--red); border-color: var(--red); color: #fff; }
.steps li.failed::before { background: color-mix(in srgb, var(--red) 40%, var(--line)); }
.steps .term[hidden] { display: none; }
.timeline-note { padding: 6px 22px 6px 62px; font-size: 13px; color: var(--muted); }
.timeline-note.error { color: var(--red); }
.result { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.result .term { white-space: pre-wrap; word-break: break-word; }

.logpane { height: calc(100vh - 230px); min-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

.center-card { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--rail); }
.center-card .card { width: 100%; max-width: 380px; padding: 28px; display: grid; gap: 18px; text-align: center; }
.center-card .hex { margin: 0 auto; width: 44px; height: 50px; font-size: 20px; }
.center-card h1 { margin: 0; font-size: 22px; font-weight: 600; }
.center-card p { margin: 0; color: var(--muted); }

.approval-page { min-height: 100vh; background: var(--bg); }
.approval-page .pbar { padding: 14px 20px; }
.approval-page .sheet { max-width: 520px; margin: 0 auto; }
.changes-serene { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }
.deny button { all: unset; cursor: pointer; color: var(--red); font-weight: 600; }
.deny button:focus-visible { outline: 2px solid var(--red); border-radius: 4px; }
.done-note { text-align: center; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat strong { font-size: 20px; font-weight: 600; }

.token-once { display: grid; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.token-once code { font-size: 13px; word-break: break-all; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; }

@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr; }
  .timeline-note { padding-left: 54px; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dot.off { background: var(--line); box-shadow: 0 0 0 3px var(--surface-2); }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.release-empty { color: rgba(255,255,255,.8); }
.switch-btn { all: unset; cursor: pointer; display: inline-flex; }
.switch-btn:focus-visible .switch { outline: 2px solid var(--purple); outline-offset: 2px; }
.progress .bar span { width: 0; transition: width .4s ease; }
.approve-form { display: grid; gap: 16px; }
@media (prefers-reduced-motion: reduce) { .progress .bar span { transition: none; } }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary:hover h3 { color: var(--purple-ink); }
details.card > summary .aside { display: inline-flex; align-items: center; gap: 8px; }
.chevron { width: 16px; height: 16px; transition: transform .15s ease; }
details[open] > summary .chevron { transform: rotate(180deg); }
table.data tr.divider td { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 10px; padding-bottom: 10px; }
table.data tr.older td { color: var(--muted); }
.notice.warn { background: var(--amber-soft); color: var(--amber-ink); }
@media (prefers-reduced-motion: reduce) { .chevron { transition: none; } }
.freshness { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); color: #fff; }
.freshness svg { width: 13px; height: 13px; }
.freshness.behind { background: #e3a646; color: #2b1d02; }
.notice.ok { display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.notice.ok svg { width: 15px; height: 15px; flex: none; }
p.notice { margin: 0; }
