/* Platform console. Desktop first (1280 to 1680 px); below 1100 px everything falls back to one
   readable column and nothing is hidden. Colour pairs used for text are checked for WCAG 2.2 AA
   contrast by tests/status_app/static.test.mjs, in both themes. Paper palette: the status words take
   the tested --ok, --warn, --bad, and --neutral tokens, and the design's own names below are aliases
   of tested tokens, so no untested colour carries text. */

:root {
  --bg: #f5f2e9;
  --surface: #faf8f2;
  --ink: #22262b;
  --ink-muted: #4a4740;
  --line: #c9c2b0;
  --line-strong: #7a735f;
  --accent: #22262b;
  --accent-ink: #f5f2e9;
  --link: #22262b;
  --ok: #3f6a3a;
  --ok-bg: #e3e8d6;
  --warn: #865214;
  --warn-bg: #f3e6cf;
  --bad: #a03a2e;
  --bad-bg: #f4e1da;
  --neutral: #625e51;
  --neutral-bg: #ece7da;
  --danger: #a03a2e;
  --danger-ink: #faf8f2;
  --focus: #22262b;
  --top: #ece7da;
  --top-ink: #22262b;
  --top-muted: #4a4740;
  --paper: var(--bg);
  --paper-2: var(--neutral-bg);
  --ink-2: var(--ink-muted);
  --faint: var(--neutral);
  --rule: var(--line);
  --drift: var(--warn);
  --fail: var(--bad);
  --unk: var(--neutral);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gut: 30px;
  --cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.05fr);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b18;
    --surface: #24231f;
    --ink: #ece6d6;
    --ink-muted: #c4bdaa;
    --line: #3f3c34;
    --line-strong: #8c8572;
    --accent: #ece6d6;
    --accent-ink: #1c1b18;
    --link: #ece6d6;
    --ok: #9cc592;
    --ok-bg: #243022;
    --warn: #e2ad62;
    --warn-bg: #352a1a;
    --bad: #f0998c;
    --bad-bg: #3b221e;
    --neutral: #ada692;
    --neutral-bg: #2c2a25;
    --danger: #f0998c;
    --danger-ink: #1c1b18;
    --focus: #ece6d6;
    --top: #24231f;
    --top-ink: #ece6d6;
    --top-muted: #c4bdaa;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
  min-width: 320px;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
}

a:hover {
  text-decoration-color: var(--ink);
}

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
main:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

.wrap {
  overflow-wrap: anywhere;
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--surface);
  color: var(--link);
  border: 1px solid var(--ink);
  padding: 6px 10px;
  z-index: 10;
}

.skip:focus {
  top: 8px;
}

/* ---- Shell: top bar, tabs, footer ----------------------------------------------------------- */

.topbar {
  background: var(--top);
  color: var(--top-ink);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 40px;
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.brand-sep,
.brand-page {
  color: var(--top-muted);
  font-weight: 500;
}

.copy-label:not(:empty) {
  margin-left: 4px;
  padding: 2px 4px;
  border: 1px solid var(--top-muted);
  color: var(--top-muted);
  font: 600 9.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: stretch;
}

.topnav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  color: var(--top-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.topnav a:hover {
  background: var(--bg);
  color: var(--top-ink);
}

.topnav a[aria-current="page"] {
  border-bottom-color: var(--top-ink);
  color: var(--top-ink);
  font-weight: 600;
  background: var(--bg);
}

.who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--top-muted);
  white-space: nowrap;
}

.who .button-quiet {
  color: var(--top-ink);
  border-color: var(--top-muted);
  background: transparent;
}

main {
  max-width: 1680px;
  margin: 0 auto;
  padding: 18px 24px 32px;
}

.foot {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: var(--ink-muted);
  font-size: 12px;
}

.noscript {
  max-width: 1680px;
  margin: 24px auto;
  padding: 0 24px;
}

/* ---- Push, rollback, and records screens ------------------------------------------------------ */

.page-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 24px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.page-head h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}

.page-head .lede {
  grid-column: 1;
  margin: 0;
  color: var(--ink-muted);
  max-width: 80ch;
}

.page-head > button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* The sign-in page: the button goes straight under the line that explains it, left-aligned with the
   heading, so it is the next thing the eye meets on a wide screen as well as a narrow one. */
.page-head.signin {
  grid-template-columns: 1fr;
}

.page-head.signin > button {
  grid-column: 1;
  grid-row: auto;
  justify-self: start;
  margin-top: 10px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--ink);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-2 > .panel {
  margin-bottom: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stack {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.stack label {
  font-weight: 600;
  margin-top: 8px;
}

.drift {
  margin: 8px 0 12px;
  padding: 8px 12px 8px 28px;
  background: var(--warn-bg);
  color: var(--warn);
  border-left: 4px solid var(--warn);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.records td,
.workloads td {
  font-size: 0.92rem;
}

/* Badges and notices: the text always says the state, so colour is never the only signal. */

.badge {
  display: inline-block;
  padding: 1px 6px;
  font: 700 0.72rem/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid currentColor;
}

.badge-ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.badge-warn {
  color: var(--warn);
  background: var(--warn-bg);
}

.badge-bad {
  color: var(--bad);
  background: var(--bad-bg);
}

.badge-neutral {
  color: var(--neutral);
  background: var(--neutral-bg);
}

.notice {
  padding: 10px 14px;
  margin: 12px 0;
  border: 1px solid currentColor;
  border-left-width: 4px;
}

.notice p,
.notice ul {
  margin: 4px 0;
}

.notice-title {
  font-weight: 700;
}

.notice-ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.notice-bad {
  color: var(--bad);
  background: var(--bad-bg);
}

.notice a {
  color: inherit;
}

.notice pre {
  color: var(--ink);
  background: var(--surface);
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.check {
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  padding: 8px 12px;
  background: var(--surface);
}

.check-fail {
  border-left-color: var(--bad);
}

.check-pass {
  border-left-color: var(--ok);
}

.check-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.check p {
  margin: 6px 0 0;
}

.config-diff dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 10px 0;
}

.config-diff dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tick {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
}

.tick input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}

.facts dt {
  color: var(--ink-muted);
}

.facts dd {
  margin: 0;
}

.confirm {
  margin-top: 12px;
}

.confirm label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress:empty {
  display: none;
}

.refusal ul {
  padding-left: 20px;
}

input[type="text"],
select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 5px 9px;
  min-width: 320px;
}

input:disabled {
  background: var(--neutral-bg);
  color: var(--ink-muted);
}

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px 13px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  text-decoration: underline;
}

.button-quiet {
  background: transparent;
  color: var(--link);
  border-color: var(--ink);
}

.button-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--danger-ink);
}

.button-small {
  padding: 2px 9px;
  font-size: 0.85rem;
  margin: 0 4px 4px 0;
}

.button:disabled {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
  cursor: not-allowed;
  text-decoration: none;
}

/* ---- Status tab ------------------------------------------------------------------------------- */

.st {
  font-size: 12px;
  line-height: 1.35;
}

.st .m {
  font-family: var(--mono);
}

.st .ok { --c: var(--ok); }
.st .dr { --c: var(--warn); }
.st .fl { --c: var(--bad); }
.st .uk { --c: var(--neutral); }

.st .sw {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c, var(--neutral));
  white-space: nowrap;
}

.st .en {
  display: inline-block;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--ink-muted);
  padding: 1px 3px;
  vertical-align: 1px;
  white-space: nowrap;
}

.st .lbl {
  margin: 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral);
}

.st .na {
  color: var(--neutral);
}

.st .pl {
  font: 11px var(--sans);
  color: var(--neutral);
  white-space: nowrap;
}

.st .dot,
.st .sep {
  color: var(--neutral);
  margin: 0 6px;
}

/* Header */

.st-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 9px;
}

.st .verdict {
  font-size: 21px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
}

.st .verdict .sep {
  font-weight: 400;
}

.st .verdict .fl,
.st .verdict .dr,
.st .verdict .look {
  color: var(--c);
}

.st .verdict .look {
  white-space: nowrap;
}

.st-detail,
.st-sub {
  color: var(--ink-muted);
  margin: 3px 0 0;
  font-size: 12.5px;
}

.st-facts {
  margin: 7px 0 0;
  font-size: 11.5px;
  color: var(--neutral);
}

.st-facts .m {
  color: var(--ink);
}

.st-refresh {
  margin-left: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
}

.st .h-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.st .key {
  width: auto;
  border-collapse: collapse;
  font-size: 11px;
}

.st .key th {
  text-align: left;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral);
  padding: 2px 10px 2px 0;
  border: 0;
  border-right: 1px solid var(--line);
}

.st .key td {
  padding: 2px 0 2px 12px;
  border: 0;
  white-space: nowrap;
}

.st .key .en {
  margin-right: 5px;
}

.st .key .bar {
  display: inline-block;
  width: 4px;
  height: 12px;
  background: var(--c);
  vertical-align: -2px;
  margin-right: 5px;
}

/* Top band: attention on the left, builds on the right */

.st .top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin: 12px 0;
  align-items: stretch;
}

.st .attn {
  border: 1px solid var(--ink);
  min-width: 0;
}

.st .attn-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 10px 6px;
  border-bottom: 1px solid var(--line);
}

.st .overall {
  font-size: 15px;
  font-weight: 600;
}

.st .attn-head .note {
  margin-left: auto;
  font-size: 11px;
  color: var(--neutral);
}

.st .attn-none {
  margin: 0;
  padding: 7px 12px;
  color: var(--neutral);
}

.st .arow {
  display: grid;
  grid-template-columns: 74px 82px minmax(180px, 280px) 1fr 92px;
  align-items: baseline;
  gap: 12px;
  padding: 6px 10px 6px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--c);
}

.st .arow:last-child {
  border-bottom: 0;
}

.st .arow .env {
  font-weight: 600;
}

.st .arow .rn {
  font: 11px var(--mono);
  color: var(--ink-muted);
  margin-left: 6px;
  overflow-wrap: anywhere;
}

.st .arow > :last-child {
  justify-self: end;
  font-size: 11px;
  white-space: nowrap;
}

.st .linkish {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Builds grid */

.st .builds {
  border: 1px solid var(--ink);
  padding: 7px 10px 8px;
}

.st .builds .bh {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
}

.st .builds h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.st .builds .note {
  font-size: 11px;
  color: var(--neutral);
}

.st .bgrid {
  display: grid;
  grid-template-columns: 74px repeat(8, minmax(34px, max-content));
  gap: 4px;
  align-items: center;
}

.st .bgrid.c1 { grid-template-columns: 74px repeat(1, minmax(34px, max-content)); }
.st .bgrid.c2 { grid-template-columns: 74px repeat(2, minmax(34px, max-content)); }
.st .bgrid.c3 { grid-template-columns: 74px repeat(3, minmax(34px, max-content)); }
.st .bgrid.c4 { grid-template-columns: 74px repeat(4, minmax(34px, max-content)); }
.st .bgrid.c5 { grid-template-columns: 74px repeat(5, minmax(34px, max-content)); }
.st .bgrid.c6 { grid-template-columns: 74px repeat(6, minmax(34px, max-content)); }
.st .bgrid.c7 { grid-template-columns: 74px repeat(7, minmax(34px, max-content)); }
.st .bgrid.c8 { grid-template-columns: 74px repeat(8, minmax(34px, max-content)); }
.st .bgrid.c9 { grid-template-columns: 74px repeat(9, minmax(34px, max-content)); }
.st .bgrid.c10 { grid-template-columns: 74px repeat(10, minmax(34px, max-content)); }
.st .bgrid.c11 { grid-template-columns: 74px repeat(11, minmax(34px, max-content)); }
.st .bgrid.c12 { grid-template-columns: 74px repeat(12, minmax(34px, max-content)); }

.st .bgrid .rl {
  font-size: 11.5px;
  font-weight: 600;
}

.st .sq {
  display: block;
  width: 100%;
  height: 20px;
  padding: 0 2px;
  font: 600 10.5px/18px var(--mono);
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--c);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--bg));
}

.st .sq:hover {
  background: color-mix(in srgb, var(--c) 28%, var(--bg));
}

.st .sq.now,
.st .sq.now:hover {
  background: var(--c);
  color: var(--bg);
}

.st .sq.look {
  background: var(--bg);
  border-style: dashed;
}

/* The build an environment runs keeps its fill when it is also to look at, so the label stays
   readable; the dashed border still marks it. */
.st .sq.look.now,
.st .sq.look.now:hover {
  background: var(--c);
  color: var(--bg);
}

.st .sq.gap {
  border: 1px dotted var(--line);
  background: transparent;
  cursor: default;
}

.st .sq.open {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.st .sq.old {
  opacity: 0.45;
}

.st .sq.old:hover,
.st .sq.old:focus-visible {
  opacity: 0.85;
}

.st .sq.inl {
  display: inline-block;
  width: auto;
  min-width: 34px;
  padding: 0 4px;
  height: 18px;
  line-height: 16px;
  vertical-align: 1px;
}

.st .bkey {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  align-items: center;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.st .bkey .sq {
  display: inline-block;
  width: 16px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 4px;
  cursor: default;
}

/* Build panel */

.st .bpanel {
  border: 1.5px solid var(--ink);
  margin: 0 0 16px;
  background: var(--bg);
}

.st .bp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  padding: 7px 10px 6px;
  background: var(--neutral-bg);
  border-bottom: 1px solid var(--line);
}

.st .bp-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.st .bp-head .m {
  font-size: 11.5px;
}

.st .bp-head .tx {
  color: var(--ink-muted);
  font-size: 11.5px;
}

.st .bp-head .superseded {
  margin-left: 10px;
  font-size: 11px;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1px 6px;
}

.st .bp-head .links {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 11px;
  white-space: nowrap;
}

.st .bp-head .x {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0 6px;
  font-size: 11px;
  line-height: 16px;
  cursor: pointer;
}

.st .bp-grid {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--gut);
}

.st .bp-col {
  padding: 7px 10px 9px;
  min-width: 0;
}

.st .bp-col + .bp-col {
  border-left: 1px solid var(--line);
  margin-left: calc(-1 * var(--gut) / 2);
  padding-left: calc(10px + var(--gut) / 2);
}

.st .bp-col h3 {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.st .bp-col h3 .sw {
  font-size: 9.5px;
}

.st .bp-col .lbl {
  display: block;
  margin: 6px 0 2px;
}

.st .tr {
  display: grid;
  grid-template-columns: 13px 1fr auto;
  column-gap: 6px;
  align-items: baseline;
  padding: 2px 0;
  font-size: 11.5px;
}

.st .tr .mk {
  font-weight: 700;
  color: var(--c);
  text-align: center;
}

.st .tr .t {
  font: 10.5px var(--mono);
  color: var(--neutral);
  white-space: nowrap;
}

.st .tr .d {
  color: var(--ink-muted);
}

.st .tr.na {
  color: var(--neutral);
}

.st .tr.na .mk {
  color: var(--neutral);
  font-weight: 400;
}

.st .tr.fl .d {
  color: var(--bad);
}

.st .outcome {
  border: 1px solid var(--c);
  border-left: 4px solid var(--c);
  padding: 5px 8px 6px;
  font-size: 11.5px;
}

.st .outcome b {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.st .facts2 {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 2px;
  column-gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
}

.st .facts2 dt {
  color: var(--neutral);
  font-size: 10.5px;
}

.st .facts2 dd {
  margin: 0;
}

/* Four columns: Test, Staging, Production, Users. The Summary, Apps, and Data rows share tracks
   through subgrid, so each row lines up across the columns. */

.st .cols {
  display: grid;
  grid-template-columns: var(--cols);
  grid-template-rows: auto auto auto;
  column-gap: var(--gut);
}

.st .frame,
.st .side {
  grid-row: 1 / span 3;
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.st .frame {
  border: 1px solid var(--ink);
  padding: 8px 10px 10px;
  background: var(--bg);
}

.st .frame.prod {
  box-shadow: 0 0 0 1px var(--ink);
}

.st .side {
  border: 1px solid transparent;
  padding: 8px 0 10px;
}

.st .sum {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  min-width: 0;
}

.st .side .sum {
  border-bottom-color: var(--line);
}

.st .fh-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 22px;
  white-space: nowrap;
}

.st .fh-top h2 {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.st .prod .fh-top h2 {
  font-size: 17px;
}

.st .ts {
  font: 700 11px/22px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c);
  overflow: hidden;
  text-overflow: ellipsis;
}

.st .ts .dot {
  margin: 0 4px 0 0;
}

.st .rgl {
  min-height: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.st .rgl .rg {
  font: 11px var(--mono);
  color: var(--ink-muted);
}

.st .idl {
  margin-top: 6px;
  min-height: 22px;
  line-height: 22px;
  font-size: 12px;
}

.st .idl > .m {
  font-size: 13px;
  font-weight: 700;
}

.st .idl .tx {
  font-size: 11.5px;
}

.st .idl .sep {
  margin: 0 3px;
}

.st .kv {
  margin: 3px 0 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-auto-rows: minmax(16px, auto);
  column-gap: 6px;
  font-size: 11px;
  align-items: center;
  color: var(--ink-muted);
}

.st .kv dt {
  color: var(--neutral);
  font-size: 10.5px;
}

.st .kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.st .kv .m {
  font-size: 10.5px;
}

.st .ck {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.st span.ck {
  cursor: default;
  text-decoration: none;
}

.st .ck .tk {
  font-weight: 700;
  color: var(--c);
}

.st .nb {
  color: var(--neutral);
}

.st .norec {
  margin: 5px 0 0;
  padding: 3px 6px;
  font-size: 11px;
  color: var(--warn);
  background: var(--warn-bg);
  border-left: 3px solid var(--warn);
}

.st .acts {
  margin-top: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 24px;
}

.st .btn {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 3px 9px;
  font: 11.5px/16px var(--sans);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.st .btn:hover {
  background: var(--neutral-bg);
}

.st .btn.pri {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.st .btn.pri:hover {
  text-decoration: underline;
}

.st .btn.off,
.st .btn.off:hover {
  color: var(--neutral);
  background: transparent;
  border: 1px dashed var(--neutral);
  cursor: not-allowed;
}

.st .hint {
  font-size: 11px;
  color: var(--neutral);
  min-height: 15px;
  margin-top: 3px;
}

/* Apps and Data */

.st .apps,
.st .data {
  padding-top: 8px;
  min-width: 0;
}

.st .gh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  height: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.st .gh .sw {
  font-size: 9.5px;
}

.st .slot {
  position: relative;
  height: 64px;
  margin-bottom: 3px;
  padding: 1px 6px 0 7px;
  border-left: 2px solid var(--c);
  overflow: hidden;
}

.st .slot.s2 {
  height: 30px;
}

.st .slot .l1 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  height: 15px;
  white-space: nowrap;
}

.st .slot .tk {
  color: var(--ok);
  font-weight: 700;
  font-size: 11px;
  width: 9px;
}

.st .slot b {
  font-weight: 600;
  font-size: 11.5px;
}

.st .slot .rn {
  font: 11px/14px var(--mono);
  color: var(--ink-muted);
  overflow-wrap: anywhere;
  padding-left: 15px;
}

/* The app slots carry one more line, the address their link opens. When any column has notes
   about an app's custom names, that app's slot in every column has a two-line notes area
   (data-notes), so the heights match and the rows stay level across the columns. */
.st .slot[data-slot="console"],
.st .slot[data-slot="staff"],
.st .slot[data-slot="brand"] {
  height: 79px;
}

.st .slot[data-slot][data-notes] {
  height: 109px;
}

.st .slot .addr {
  font: 11px/15px var(--mono);
  color: var(--ink-muted);
  padding-left: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st .slot .addr-notes {
  height: 30px;
  font-size: 11px;
  line-height: 15px;
  color: var(--neutral);
  overflow-wrap: anywhere;
  padding-left: 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.st .slot.card .addr,
.st .slot.card .addr-notes {
  padding-left: 0;
}

.st .slot .warm {
  font-family: var(--sans);
  color: var(--neutral);
}

.st .slot .note {
  font-size: 11px;
  line-height: 15px;
  color: var(--neutral);
  overflow-wrap: anywhere;
  padding-left: 15px;
}

.st .slot .note .m {
  font-size: 10.5px;
  color: var(--ink-muted);
}

.st .slot .load {
  height: 15px;
  font-size: 11px;
  line-height: 15px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  padding-left: 15px;
}

.st .slot .load .k {
  color: var(--neutral);
  margin-right: 3px;
}

.st .slot .load .k.pri {
  color: var(--ink);
}

.st .slot .load .v {
  font: 600 11px var(--mono);
  color: var(--ink-muted);
}

.st .slot .load .v.pri {
  color: var(--c);
}

.st .slot .load .s {
  color: var(--neutral);
  margin: 0 5px;
}

.st .slot .l1 .open {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-muted);
}

.st .slot .l1 .what {
  font-size: 11px;
  color: var(--neutral);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st .slot.card {
  border: 1px solid var(--c);
  border-left: 4px solid var(--c);
  padding: 3px 6px 0;
}

.st .slot.card.held {
  border-style: dashed;
  border-left-style: solid;
}

.st .slot.card .rn,
.st .slot.card .note {
  padding-left: 0;
}

.st .slot.card .note {
  color: var(--ink);
}

.st .dbox {
  margin-top: 6px;
  border: 1.5px dashed var(--ink);
}

.st .drow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 8px;
}

.st .drow + .drow {
  border-top: 1px solid var(--line);
}

.st .drow.b {
  min-height: 36px;
  flex-wrap: wrap;
}

.st .drow .k {
  width: 80px;
  flex: none;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral);
}

.st .drow .date {
  font: 700 13.5px var(--mono);
}

.st .drow .date.na {
  font: 11.5px var(--sans);
}

.st .drow .nb {
  font-size: 10.5px;
}

.st .drow .lock {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.st .drow .last {
  font-size: 11.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.st .drow .last .m {
  font-weight: 600;
}

/* Users column */

.st .side .sub2 {
  font-size: 11px;
  color: var(--neutral);
  min-height: 16px;
}

.st .ublk {
  margin-top: 6px;
  border: 1px solid var(--ink);
  padding: 5px 7px 6px;
}

.st .ublk .t,
.st .entra .t {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.st .ublk .t b {
  font-size: 12px;
  font-weight: 600;
}

.st .ublk .why {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.st .ublk .src {
  font-size: 10.5px;
  color: var(--neutral);
  margin-top: 3px;
}

.st .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.st .chips a {
  border: 1px solid var(--ink);
  padding: 1px 4px;
  font-size: 10.5px;
  line-height: 15px;
  text-decoration: none;
  white-space: nowrap;
  background: var(--bg);
}

.st .chips a::after {
  content: " \2197";
  color: var(--neutral);
  font-size: 10px;
}

/* The users boxes sit level with the console, staff, and brand app slots; a dashed rule joins
   each box to its row across the gutter. */
.st .ubox {
  position: relative;
  height: 64px;
  margin-bottom: 3px;
  border: 1px solid var(--ink);
  padding: 2px 7px 0;
  background: var(--bg);
}

.st .ubox::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 8px;
  width: calc(var(--gut) + 1px);
  border-top: 1px dashed var(--ink);
}

.st .ubox .l1 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  height: 16px;
  white-space: nowrap;
}

.st .ubox .l1 b {
  font-size: 11.5px;
  font-weight: 600;
}

.st .ubox .l1 .pl {
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Up to two rows of chips fit the box's fixed height; anything past them is cut, never spilled. */
.st .ubox .chips {
  flex-wrap: wrap;
  max-height: 40px;
  overflow: hidden;
}

.st .uspace {
  min-height: 64px;
  margin-bottom: 3px;
  padding: 3px 0 0 2px;
  font-size: 11px;
  color: var(--neutral);
}

.st .entra {
  border: 1px solid var(--ink);
  padding: 5px 7px 7px;
  background: var(--bg);
}

.st .entra .t b {
  font-size: 13px;
  font-weight: 600;
}

.st .entra .lbl {
  display: block;
  margin-top: 7px;
}

.st .srclbl {
  margin-top: 8px;
  min-height: 18px;
  line-height: 18px;
  white-space: nowrap;
}

.st .srclbl span {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
  margin-left: 4px;
}

.st .ext {
  position: relative;
  min-height: 34px;
  margin-bottom: 6px;
  border: 1.5px solid var(--ink);
  padding: 2px 8px 2px;
  background: var(--bg);
  font-size: 11px;
  line-height: 14px;
}

/* An arrow from each source towards Production, drawn with borders. */
.st .ext::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 14px;
  width: calc(var(--gut) - 6px);
  border-top: 1.2px dashed var(--ink);
}

.st .ext::after {
  content: "";
  position: absolute;
  right: calc(100% + var(--gut) - 7px);
  top: 10px;
  border: 4px solid transparent;
  border-right: 7px solid var(--ink);
}

.st .ext .l1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.st .ext b {
  font-size: 12.5px;
  font-weight: 600;
}

.st .ext .rd {
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st .ext .rd .m {
  font-size: 10.5px;
}

/* A source row that says how it is read, rather than when, wraps instead of cutting the sentence. */
.st .ext .rd.wrap {
  white-space: normal;
}

/* Footer */

.st-foot {
  margin-top: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 0.7fr;
  gap: 24px;
  font-size: 11px;
  color: var(--ink-muted);
}

.st-foot .lbl {
  display: block;
  margin-bottom: 3px;
}

.st-foot .failed {
  margin: 4px 0 0;
  padding-left: 16px;
  color: var(--bad);
}

/* A page that is not up to date says so on every figure it still shows. */
.st.is-stale .cols,
.st.is-stale .top {
  opacity: 0.7;
}

/* ---- Narrow screens: one readable column ------------------------------------------------------ */

@media (max-width: 1100px) {
  .topbar-inner,
  main,
  .foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .grid-2,
  .st-head,
  .st .top,
  .st .bp-grid,
  .st .cols,
  .st-foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-head {
    grid-template-columns: 1fr;
  }

  .page-head > button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .st-head > *,
  .st .top > *,
  .st .bp-col,
  .st-foot > * {
    min-width: 0;
  }

  .st .h-side {
    align-items: flex-start;
    overflow-x: auto;
  }

  .st .bkey span,
  .st .bp-head,
  .st .bp-head .links {
    white-space: normal;
    flex-wrap: wrap;
  }

  .st .bp-head .links {
    margin-left: 0;
  }

  .st .tr {
    grid-template-columns: 13px minmax(0, 1fr);
  }

  .st .tr .t {
    grid-column: 2;
    white-space: normal;
  }

  .st .key td {
    white-space: normal;
  }

  .st .arow {
    grid-template-columns: 74px minmax(0, 1fr);
    row-gap: 2px;
  }

  .st .arow .txt,
  .st .arow > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .st .builds {
    overflow-x: auto;
  }

  .st .bp-col + .bp-col {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-left: 0;
    padding-left: 10px;
  }

  .st .cols {
    grid-template-rows: none;
    row-gap: 16px;
  }

  .st .frame,
  .st .side {
    grid-row: auto;
    display: block;
  }

  .st .slot,
  .st .slot[data-slot],
  .st .slot[data-slot][data-notes],
  .st .ubox {
    height: auto;
    min-height: 30px;
  }

  .st .slot .addr {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .st .slot .addr-notes {
    height: auto;
    display: block;
  }

  .st .slot .l1,
  .st .slot .rn,
  .st .slot .note {
    white-space: normal;
    height: auto;
  }

  .st .slot .l1 {
    flex-wrap: wrap;
  }

  .st .ubox::before,
  .st .ext::before,
  .st .ext::after {
    display: none;
  }

  .st .idl,
  .st .kv dd {
    white-space: normal;
  }

  input[type="text"],
  select {
    min-width: 0;
    width: 100%;
  }
}
