/* Night blue with a lantern, by the moon in light mode. One large sentence says how things
   stand; everything under it stays quiet. The design: design/README.md (p-0kphyh s3-d2). */
:root {
  color-scheme: light;
  --ground: #edf0f5;
  --raised: #f8f9fc;
  --ink: #16213a;
  --ink-2: #47536c;
  --rule: #ccd3e0;
  --lantern: #875800;
  --good: #0a7d0a;
  --critical: #b92c2c;
  --caution: #94540f;
  --down-wash: #f7e4e4;
  --caution-wash: #f6ecdf;
  --good-wash: #e3f1e3;
  --series: #2a78d6;
  --series-2: #eb6834;
  --grid: #dde2ec;
  --code-key: #1d62b5;
  --code-str: #1d6b1d;
  --primary: #16213a;
  --on-primary: #f8f9fc;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "P052", Georgia, serif;
  --text: "Avenir Next", "Segoe UI", "Noto Sans", Cantarell, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #10182b;
    --raised: #18213a;
    --ink: #e6eaf2;
    --ink-2: #a5b0c6;
    --rule: #2c3853;
    --lantern: #f0b849;
    --good: #3fc23f;
    --critical: #f27a7a;
    --caution: #f0a868;
    --down-wash: #3a1d2b;
    --caution-wash: #33281c;
    --good-wash: #1b3326;
    --series: #3987e5;
    --series-2: #d95926;
    --grid: #232d46;
    --code-key: #6da7ec;
    --code-str: #8fd18f;
    --primary: #f0b849;
    --on-primary: #10182b;
  }
}
@media (min-width: 40rem) {
  :root { --gutter: 40px; }
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.5 var(--text); font-variant-numeric: tabular-nums; }
a { color: var(--lantern); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }
main:focus { outline: none; }
code, .mono { font-family: var(--mono); font-size: 13px; }
.breakable { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: 13px; }
.lantern { color: var(--lantern); }

/* What only a phone shows, and what only a wider screen does. */
@media (max-width: 39.99rem) { .wide-only { display: none !important; } }
@media (min-width: 40rem) { .phone-only { display: none !important; } }

/* The frame */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; min-height: 56px; padding-inline: max(var(--gutter), calc((100% - 1240px) / 2)); border-bottom: 1px solid var(--rule); }
.mark { font: 600 19px/1.2 var(--display); color: var(--ink); text-decoration: none; padding-block: 12px; }
#nav { display: flex; flex-wrap: wrap; gap: 0 4px; flex: 1 1 auto; }
#nav a { color: var(--ink-2); text-decoration: none; padding: 14px 10px; min-height: 44px; }
#nav a:hover { color: var(--ink); }
#nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--lantern); }
.heard { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
button.link { background: none; border: 0; padding: 12px 0; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
#page { max-width: 1320px; margin: 0 auto; padding: 32px var(--gutter) 64px; }

@media (max-width: 39.99rem) {
  .bar { gap: 0 12px; min-height: 48px; }
  .mark { flex: 1 1 auto; font-size: 18px; }
  #out { order: 2; font-size: 14px; }
  #nav { order: 3; flex-basis: 100%; gap: 0 2px; margin-inline: -8px; font-size: 14px; }
  #nav a { padding: 12px 8px; }
  #page { padding-block: 24px 48px; }
}

/* Words */
h1 { font: 500 clamp(1.7rem, 4vw, 2.4rem)/1.15 var(--display); margin: 0; overflow-wrap: anywhere; }
h2 { font: 600 1.25rem/1.25 var(--display); margin: 0; overflow-wrap: anywhere; }
h3 { font: 600 1rem/1.3 var(--text); margin: 0; }
.name { font: 600 1.25rem/1.25 var(--display); margin: 0; overflow-wrap: anywhere; }
.name a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 4px; }
@media (min-width: 40rem) { .name { font-size: 1.5rem; } }
.lead { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; }
/* Caps for a section's label, as small caps: the words stay as written for anyone reading them out. */
.label, .kicker { font: 600 15px/1.3 var(--text); font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--ink-2); }
.label { margin: 40px 0 12px; }
.kicker { margin: 0 0 12px; }
.kicker-bad { color: var(--critical); }
.kicker-good { color: var(--good); }
.kicker-caution { color: var(--caution); }
@media (max-width: 39.99rem) {
  .label { margin: 28px 0 8px; font-size: 14px; }
  .kicker { margin-bottom: 8px; font-size: 14px; }
}
.note, .quiet { color: var(--ink-2); max-width: 70ch; }
.problem { color: var(--critical); max-width: 70ch; }
.filling { display: flex; gap: 10px; align-items: baseline; margin: 20px 0 0; color: var(--ink-2); font-size: 14px; }
.filling-mark { color: var(--lantern); }

/* State: never colour alone */
.state { white-space: nowrap; font-weight: 600; }
.state-shape { display: inline-block; width: 1.2em; }
.state-good { color: var(--good); }
.state-critical { color: var(--critical); }
.state-caution { color: var(--caution); }
.state-unknown { color: var(--ink-2); }

/* Panels, tiles, facts */
.panel { background: var(--raised); border: 1px solid var(--rule); border-radius: 8px; }
.panel-pad { padding: 16px 18px; }
@media (min-width: 40rem) { .panel-pad { padding: 18px 24px; } }
.facts { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; font-size: 14px; }
.facts > div { display: flex; gap: 6px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 20px 0 0; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.fact-grid > div { background: var(--raised); padding: 12px 16px; min-width: 0; }
.fact-grid dt { font-size: 13px; color: var(--ink-2); }
.fact-grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .fact-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pairs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0; font-size: 14px; }
.pairs dt { color: var(--ink-2); }
.pairs dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; text-align: left; vertical-align: baseline; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
thead th { font-weight: 600; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
tbody th { font-weight: 600; }
tbody tr + tr > * { border-top: 1px solid var(--rule); }
.number { text-align: right; }
.row-down > * { background: var(--down-wash); }
.panel .scroll { border-radius: 8px; }
.table-panel { overflow: hidden; }

/* Buttons and fields */
input, textarea, select { color: inherit; background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; font: inherit; }
input:not([type=checkbox]), select { min-height: 44px; padding: 0 12px; }
button { font: inherit; cursor: pointer; }
button[type=submit], .button { min-height: 44px; padding: 0 18px; color: var(--on-primary); background: var(--primary); border: 0; border-radius: 6px; font-weight: 600; }
.button-quiet, .inline-form button { min-height: 44px; padding: 0 18px; color: var(--ink); background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; }
.button-link { min-height: 44px; padding: 0 6px; color: var(--ink-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.button-revoke { min-height: 44px; padding: 0 14px; color: var(--critical); background: transparent; border: 1px solid var(--rule); border-radius: 6px; font-size: 14px; font-weight: 600; }
.button-danger { min-height: 44px; padding: 0 14px; color: var(--ground); background: var(--critical); border: 0; border-radius: 6px; font-weight: 600; }
button:disabled { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 16px 0; }
.field { display: grid; gap: 4px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { width: 100%; min-width: 0; }
.field-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.field-check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.field-check label { font-weight: 400; font-size: 15px; }
.field-hint { margin: 0; font-size: 13px; }
details > summary { cursor: pointer; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; list-style-position: inside; }
details > summary::-webkit-details-marker { margin-right: 6px; }

/* The overview */
.verdict-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.verdict-text { flex: 1 1 560px; min-width: 0; }
.verdict { font: 500 clamp(2.4rem, 7vw, 4.5rem)/1.02 var(--display); letter-spacing: -.015em; margin: 0; max-width: 16ch; overflow-wrap: anywhere; }
.verdict-bad { color: var(--critical); }
.verdict-more { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; }
.verdict-more + .verdict-more { margin-top: 4px; }
@media (max-width: 39.99rem) { .verdict-more { margin-top: 10px; font-size: 14px; } }
@media (min-width: 40rem) { .verdict-head { padding-bottom: 32px; border-bottom: 1px solid var(--rule); } }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; flex: 1 1 100%; }
.tally > div { background: var(--raised); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.tally dt { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tally dd { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 600; color: var(--ink-2); }
.tally .tally-up dt { color: var(--good); }
.tally .tally-up dd { color: var(--ink); }
.tally .tally-down.on { background: var(--down-wash); }
.tally .tally-down.on dt, .tally .tally-down.on dd { color: var(--critical); }
.tally .tally-quiet.on { background: var(--caution-wash); }
.tally .tally-quiet.on dt, .tally .tally-quiet.on dd { color: var(--caution); }
@media (min-width: 40rem) {
  .tally { gap: 8px; flex: 0 1 480px; }
  .tally > div { padding: 12px 14px; }
  .tally dt { font-size: 13px; }
  .tally dd { font-size: 32px; line-height: 1.1; }
}

.node-panel { margin-bottom: 8px; overflow: hidden; }
.node-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: 12px 14px 8px; }
.node-panel-head .facts { flex: 1 1 auto; }
.node-heard { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 40rem) {
  .node-panel-head { justify-content: flex-start; padding: 18px 24px; }
  .node-panel { margin-bottom: 12px; }
}
.trouble { margin: 0; padding: 10px 14px; list-style: none; }
.trouble-down { background: var(--down-wash); }
.trouble-quiet { background: var(--caution-wash); }
.trouble-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 600; }
.trouble-line .for { white-space: nowrap; }
.trouble-down .for { color: var(--critical); }
.trouble-quiet .for { color: var(--caution); }
.trouble p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.trouble-list { margin: 0; padding: 0; }
@media (min-width: 40rem) { .trouble { padding: 12px 24px; } }
.more-up { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
.more-up .state-shape, .tile .state-shape { width: auto; margin-right: .3em; }
.checks { min-width: 860px; }
.checks thead th { border-top: 1px solid var(--rule); padding-block: 8px; }
.checks td, .checks tbody th { padding-block: 12px; }
.checks th:first-child, .checks td:first-child { padding-left: 24px; width: 112px; }
.checks th:last-child, .checks td:last-child { padding-right: 24px; }
.checks .col-num { width: 96px; }
.checks .col-incident { padding-left: 28px; }
.checks .none { color: var(--ink-2); }
.checks tr:not(.row-down) .slug { color: var(--ink-2); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tile { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; height: 100%; padding: 8px 12px; background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--ink-2); }
.tile-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.tile-count { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tile-count .state-good { font-weight: 400; }
@media (min-width: 40rem) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
  .tile { min-height: 52px; padding: 14px 16px; }
}
.after-tiles { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }

/* The way in */
.door { max-width: 392px; margin: 0 auto; padding: 72px 16px 32px; }
.door-mark { margin: 0; font: 600 22px/1.3 var(--display); }
.door h1 { margin: 28px 0 4px; font-size: 32px; }
.door-sub { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.door-lead { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.door-lead-setup { padding: 10px 12px; border-radius: 6px; background: var(--caution-wash); color: var(--ink); }
.door form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.door label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.door input { width: 100%; font-weight: 400; }
.door input.totp { font-size: 20px; letter-spacing: .3em; }
.door .field-hint { font-weight: 400; color: var(--ink-2); }
.door button[type=submit] { margin-top: 6px; min-height: 48px; font-size: 16px; }
.door-other { margin: 18px 0 0; }
.door-other + .door-other { margin-top: 0; }
.door-other button { min-height: 44px; padding: 10px 0; background: none; border: 0; color: var(--lantern); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.door-secrets { margin-top: 20px; padding: 16px; }
.door-secrets p { margin: 0 0 8px; }
.door-secrets .field-label { margin: 12px 0 2px; font-size: 13px; color: var(--ink-2); }
.door .problem { margin: 14px 0 0; }

/* A node's page */
.back { display: inline-block; padding: 10px 0; font-size: 14px; }
.node-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 4px; }
.node-title h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; }
.range-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; padding: 3px; flex: 1 1 100%; }
.segmented a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 4px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current] { background: var(--ink); color: var(--ground); font-weight: 600; }
@media (min-width: 40rem) { .segmented { display: flex; flex-wrap: wrap; flex: 0 1 auto; } }
.timeline-key { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.key { display: inline-block; width: 12px; margin-right: 6px; vertical-align: baseline; border-radius: 1px; }
.key-up { height: 4px; background: var(--good); }
.key-partly { height: 8px; background: var(--caution); }
.key-down { height: 12px; background: var(--critical); }
.key-blank, .timeline { background: repeating-linear-gradient(135deg, var(--grid) 0 2px, transparent 2px 6px); }
.key-blank { height: 12px; border: 1px solid var(--rule); }
.window-note { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.check-panel { margin-top: 16px; padding: 16px; }
@media (min-width: 40rem) { .check-panel { padding: 18px 24px 16px; } }
.check-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.check-head .for { color: var(--ink-2); }
.check-numbers { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.check-numbers strong { color: var(--ink); }
.timeline { position: relative; height: 22px; margin-top: 14px; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.tl { position: absolute; bottom: 0; }
.tl-up { height: 6px; background: var(--good); }
.tl-partly { height: 13px; background: var(--caution); }
.tl-down { height: 100%; background: var(--critical); }
.tl-other { height: 6px; background: var(--ink-2); }
.charts { display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); margin-top: 14px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; overflow-wrap: anywhere; }
.chart-plot { width: 100%; min-width: 0; overflow: hidden; }
.chart .u-legend { font-size: 13px; text-align: left; color: var(--ink-2); }
.chart .u-select { background: color-mix(in srgb, var(--lantern) 25%, transparent); }
.check-panel details { margin-top: 10px; border-top: 1px solid var(--rule); }
.check-panel details > summary { font-size: 14px; }
.check-panel details .scroll { margin-top: 4px; }
.check-panel details th:first-child, .check-panel details td:first-child { padding-left: 0; }
.batches { margin-top: 16px; padding: 0 16px; }
@media (min-width: 40rem) { .batches { padding: 0 24px; } }
.batches > summary { color: var(--ink); font-weight: 600; }
.batches > summary .quiet { font-weight: 400; margin-left: .3em; }
.batches .scroll { margin-bottom: 12px; }
.batches th:first-child, .batches td:first-child { padding-left: 0; }

/* The configuration */
.config-layout { display: flex; flex-wrap: wrap; gap: 32px; }
.files-nav { flex: 1 1 260px; min-width: 0; }
@media (min-width: 40rem) { .files-nav { max-width: 300px; } }
.files-nav h1 { font-size: 32px; margin-bottom: 4px; }
.files-nav .lead { font-size: 13px; margin: 0 0 4px; }
.files-nav .label { margin: 20px 0 6px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.file { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.file:hover { background: var(--raised); }
.file[aria-current] { background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); }
.file .mono { overflow-wrap: anywhere; min-width: 0; }
.file-size { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.inline-form label { flex-basis: 100%; font-size: 14px; font-weight: 600; }
.inline-form input { min-width: 0; flex: 1 1 8rem; }
.editor-side { flex: 999 1 560px; min-width: 0; }
.file-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.file-head h2 { font: 600 20px/1.3 var(--mono); }
.edit-status { margin: 0; font-size: 14px; color: var(--ink-2); }
.edit-status.changed { font-weight: 600; color: var(--caution); }
.editor { --gutter-w: calc(var(--digits, 2) * 1ch + 32px); position: relative; height: min(62vh, 38rem); margin-top: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--raised); overflow: hidden; font: 13px/1.6 var(--mono); }
.editor textarea, .editor-shade { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; font: inherit; white-space: pre; overflow: auto; tab-size: 2; }
.editor textarea { padding: 12px 12px 12px var(--gutter-w); background: transparent; color: transparent; caret-color: var(--ink); resize: none; }
.editor textarea::selection { background: color-mix(in srgb, var(--lantern) 35%, transparent); color: transparent; }
.editor-shade { padding: 12px 0; color: var(--ink); pointer-events: none; scrollbar-width: none; }
.shade-lines { display: block; width: max-content; min-width: 100%; padding-right: 12px; }
.ln { display: flex; }
.ln-no { position: sticky; left: 0; flex: 0 0 var(--gutter-w); padding-right: 16px; text-align: right; color: var(--ink-2); background: var(--raised); }
.ln-changed, .ln-changed .ln-no { background: var(--caution-wash); }
.tk-comment { color: var(--ink-2); font-style: italic; }
.tk-string, .tk-value { color: var(--code-str); }
.tk-section { font-weight: 700; }
.tk-key { color: var(--code-key); }
.fine { color: var(--good); font-weight: 600; }
.editor-result:not(:empty) { margin-top: 12px; }
.editor-result p { margin: 0 0 6px; }
.editor-result ul { margin: .25rem 0; padding-left: 1.2rem; }
.diff { margin: 8px 0 0; background: var(--raised); border: 1px solid var(--rule); border-radius: 8px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.diff-head { padding: 6px 16px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.diff-head:not(:first-child) { border-top: 1px solid var(--rule); }
.diff-line { display: flex; gap: 12px; padding: 2px 16px; white-space: pre; width: max-content; min-width: 100%; }
.diff-gone { background: var(--down-wash); }
.diff-new { background: var(--good-wash); }
.diff-mark { font-weight: 700; }
.diff-gone .diff-mark { color: var(--critical); }
.diff-new .diff-mark { color: var(--good); }
.pending .label { margin: 28px 0 8px; }
.pending-note, .save-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }

/* Something shown once: a link, an invite code */
.made { padding: 16px; margin-top: 20px; }
@media (min-width: 40rem) { .made { padding: 20px 24px; } }
.made .kicker { margin-bottom: 4px; }
.made h2 { font-size: 22px; }
.made [role=status] { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.made-body { display: grid; gap: 18px 32px; margin-top: 16px; grid-template-areas: "command" "qr" "link"; }
.made-command { grid-area: command; }
.made-link { grid-area: link; }
.qr-figure { grid-area: qr; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-figure figcaption { font-size: 13px; color: var(--ink-2); }
.qr { display: block; width: 208px; max-width: 100%; height: auto; padding: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
@media (min-width: 52rem) {
  .made-body { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "command qr" "link qr"; align-items: start; }
}
.copyable label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.copy-text { display: block; width: 100%; min-height: 0; padding: 10px 12px; background: var(--ground); border: 1px solid var(--rule); border-radius: 6px; font: 13px/1.55 var(--mono); color: var(--ink); resize: none; overflow-wrap: anywhere; white-space: pre-wrap; field-sizing: content; }
.copyable button { margin-top: 8px; width: 100%; }
.another { margin-top: 12px; padding: 0 16px; }
.another > summary { color: var(--ink); font-weight: 600; }
.another > form { padding-bottom: 16px; }
.make { margin-top: 20px; padding: 16px; }
@media (min-width: 40rem) { .make, .another { padding-inline: 24px; } .make { padding-block: 20px; } }
.link-form { display: grid; gap: 14px; max-width: 34rem; margin-top: 12px; }

/* Links made: a table on a desk, cards on a phone */
.link-state { font-weight: 600; white-space: nowrap; }
.link-open { color: var(--good); }
.link-used, .link-expired { color: var(--ink-2); }
.link-revoked { color: var(--critical); }
.card-word { display: none; }
.confirm { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 39.99rem) {
  .links-table, .links-table tbody { display: block; min-width: 0; }
  .links-table thead { display: none; }
  .links-table tr { position: relative; display: block; margin-bottom: 8px; padding: 12px 14px; background: var(--raised); border: 1px solid var(--rule); border-radius: 8px; }
  .links-table tr > * { display: inline; padding: 0; border: 0 !important; white-space: normal; font-size: 13px; color: var(--ink-2); }
  .links-table tr > th { display: block; padding-right: 7rem; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
  .links-table tr > .c-state { position: absolute; top: 12px; right: 14px; }
  .links-table .c-state .link-state { font-size: 13px; }
  .links-table tr > .c-expires::before { content: ""; display: block; }
  .links-table tr > .c-revoke { display: block; }
  .links-table tr > .c-revoke:empty { display: none; }
  .links-table .c-revoke button { margin-top: 8px; }
  .links-table .card-word { display: inline; }
  .links-panel { background: none; border: 0; }
}

/* A viewer changes nothing: what would is not shown (the monitor refuses it anyway). */
body[data-role=viewer] .admin-only { display: none !important; }

/* Cluster and alerting */
.page-sentence { font-size: clamp(1.7rem, 4vw, 2.25rem); }
.cluster-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 24px; }
.cluster-panels .label { margin: 0 0 10px; }
.cluster-panels .name { font-size: 20px; }
.role { margin: 2px 0 0; }
.address { margin: 8px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.peers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.peer { padding: 8px 10px; margin-inline: -10px; border-radius: 6px; }
.peer.row-down { background: var(--down-wash); }
.peer-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.peer-name { font-weight: 600; overflow-wrap: anywhere; }
.peer p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.peer .problem { color: var(--critical); }
.counters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.counters > div { display: flex; gap: 10px; align-items: baseline; padding: 8px 14px; background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; }
.counters dt { font-size: 13px; color: var(--ink-2); }
.counters dd { margin: 0; font-weight: 600; }
.tracks { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.track { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 18px; }
.track + .track { border-top: 1px solid var(--rule); }
.track.row-down { background: var(--down-wash); }
.track .mono { font-size: 14px; overflow-wrap: anywhere; }
.track-sent { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 39.99rem) {
  .track { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px; }
  .track-sent { grid-column: 2; }
}

/* Alerting: the reconciler */
.meter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 0; }
.meter { position: relative; display: block; flex: 1 1 200px; max-width: 420px; height: 12px; background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; background: var(--lantern); }
.meter-fill.meter-full { background: var(--critical); }
.meter-words { font-size: 14px; color: var(--ink-2); }
.lines { list-style: none; margin: 0; }
.lines li { padding: 4px 0; font-size: 14px; overflow-wrap: anywhere; }
.lines-bad li { color: var(--critical); }
.reconciled th[scope=row] { font-weight: 400; }

/* Accounts */
.account-state { white-space: nowrap; }
.account-role select { min-height: 36px; padding: 0 8px; }
.accounts-table td, .accounts-table th { vertical-align: middle; }
.again { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.again .field { margin: 0; }
.again input { width: 12rem; max-width: 100%; }
.row-ask .actions { margin-top: 12px; }
.heard-ago { white-space: nowrap; }
.batches > summary { flex-wrap: wrap; gap: 0 .3em; padding-block: 10px; }
.batches > summary .quiet { margin-left: 0; }
@media (max-width: 39.99rem) { .check-numbers { margin-left: 0; flex-basis: 100%; } }
