/* The gateway's stylesheet.
 *
 * Hand-written and vendored, like everything else the browser loads here: the
 * machine this runs on often cannot reach a CDN, and a build step would put a
 * Node toolchain between an operator and a one-line change (spec §1).
 *
 * Conventions: tokens on :root, block__element--modifier class names, no
 * element selectors outside the reset, so a template can be read and its
 * appearance found by searching for one string.
 */

:root {
  color-scheme: light;

  --ink: #1c1e21;
  --ink-soft: #5b6169;
  --ink-faint: #878d95;
  --page: #f4f5f7;
  --surface: #ffffff;
  --line: #d8dade;
  --line-soft: #e7e9ec;

  --accent: #2f5fdb;
  --accent-dark: #24499f;
  --ok: #1f7a45;
  --ok-soft: #e7f5ec;
  --warn: #8a5800;
  --warn-soft: #fdf3e0;
  --bad: #a32020;
  --bad-soft: #fdecec;
  --info-soft: #eaf0fd;

  --radius: 0.375rem;
  --gap: 1rem;
  --shadow: 0 1px 2px rgb(28 30 33 / 8%);

  /* How wide a narrow card is, and so how wide anything standing with one is.
   * A token because two rules have to agree on it: the card on the login page
   * and the message above it, which is about that card and looks like a
   * separate thing on the screen when it is three times the width (task 129). */
  --narrow: min(22rem, 90vw);

  /* How wide a line of prose is allowed to get. A token because four rules want
   * it and they have to agree: a hint under a box, the sentence over a form and
   * the sentence over a page are the same kind of thing to read (task 119). */
  --measure: 34rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.25;
}

code,
pre {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 0.875em;
}

/* --- masthead and navigation --------------------------------------------- */

.masthead {
  display: flex;
  /* Four sections do not fit beside the brand on a phone (task 133). The
   * items wrap onto a second line as whole items rather than breaking
   * "API Servers" across two. */
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
  padding: 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.masthead__brand {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.masthead__signout {
  margin: 0 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav__item {
  padding: 0.9rem 0.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  /* Reserved whether or not the item is current, so nothing shifts on hover
   * or when the section changes. */
  border-bottom: 2px solid transparent;
}

.nav__item:hover {
  color: var(--ink);
}

.nav__item--active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* --- page frame ----------------------------------------------------------- */

.page {
  flex: 1;
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 1.5rem;
}

.page--centred .page {
  display: grid;
  place-items: center;
  /* Rows sized to their content and the group centred, rather than the spare
   * height split between them: with a flash above the card, ``normal`` puts the
   * message in the middle of the top half and the card in the middle of the
   * bottom half, with an empty row between the sentence and the thing it is
   * about (task 129). */
  align-content: center;
}

/* The message belongs to the card under it, so it is the same width. */
.page--centred .flashes {
  width: var(--narrow);
}

.footer {
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card--narrow {
  width: var(--narrow);
}

/* A card that follows something on a page rather than starting one, which
 * nothing above it has a bottom margin for. */
.card--below {
  margin-top: 1.5rem;
}

.card__title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
}

/* A card heading with one action on it: the button that opens the card below
 * for editing (task 113). The row carries the margin the title had, so the
 * card reads the same height whichever mode it is in. */
.card__header {
  display: flex;
  align-items: baseline;
  gap: var(--gap);
  margin-bottom: 1.25rem;
}

.card__header .card__title {
  margin-bottom: 0;
}

.card__header .button {
  margin-left: auto;
}

/* --- page header ---------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin-bottom: 1.25rem;
}

.toolbar__title {
  margin: 0;
  font-size: 1.375rem;
}

/* Pushes the action to the far edge whatever else the toolbar picks up later.
 * Only a bare button: the forms in this bar are actions on the thing the page
 * is about, and they stay with the title (task 112). */
.toolbar > .button {
  margin-left: auto;
}

/* A sentence about the page, under the bar the page's actions are in. Quieter
 * than a heading and louder than nothing, which is what a server the gateway
 * switched off needs beside the button that switches it back on (task 112). */
.page-note {
  max-width: var(--measure);
  margin: -0.5rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* --- the enabled toggle --------------------------------------------------- */

.toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.toggle__label {
  color: var(--ink-soft);
  cursor: pointer;
}

.row-actions {
  text-align: right;
  white-space: nowrap;
}

/* --- forms ---------------------------------------------------------------- */

/* The reveal panels of forms.js, and anything else a template hides outright.
 * Needed because .field sets its own display, which would win over the
 * attribute's default rule. */
[hidden] {
  display: none !important;
}

.form {
  max-width: var(--measure);
}

/* A form whose card has to share an edge with something it is stacked with:
 * the summary above the settings card (task 107), and the table of everything
 * in force below the two forms on the configuration page (task 121). Two
 * stacked boxes stopping at different right edges read as a rendering fault,
 * whichever of them is the wider one. */
.form--wide {
  max-width: none;
}

/* The card grows and the data in it grows with it: the boxes, the fieldsets
 * they are in, the definition list this card is in reading mode, and the list
 * of names a new prefix would move. Capping those at a measure left a card's
 * width of white beside a base URL wrapped mid-URL, and a hidden half of the
 * fieldsets would have gone on capping their boxes whatever the boxes said
 * (task 119).
 *
 * Sentences do not, and that half of task 113's argument stands: a hint running
 * sixty rems under a box is harder to read than one that wraps, and the answer
 * to an empty right-hand side is not prose the width of a monitor. Which is
 * everything below — including the two the fields used to pass theirs down to.
 * A switch is a box and a sentence, so it is counted as the sentence. */
.form--wide .switch,
.form--wide .form__lead,
.form--wide .form__note,
.form--wide .fieldset__note,
.form--wide .field__hint,
.form--wide .field__error {
  max-width: var(--measure);
}

.form__lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.form__note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* A note that is bad news: the metrics export failing, and nothing else so far
 * (task 125). The sentence says what went wrong on its own — this is the
 * colour beside the words, never instead of them. */
.form__note--warning {
  color: var(--bad);
}

/* A second, smaller action belonging to the card above it. It cannot live
 * inside that card because HTML has no nested forms and forgetting a stored
 * secret is its own submission; the indent lines it up with the card's fields
 * so it reads as part of it anyway. */
.card-aside {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

/* A button belonging to the box above it rather than to the form: it fills that
 * box in rather than submitting anything (task 126). Pulled up under the field's
 * own bottom margin so the two read as one control. */
.field__aside {
  margin: -0.5rem 0 1rem;
}

.fieldset {
  margin: 1.5rem 0 0;
  padding: 1rem 1rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fieldset__legend {
  padding: 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.fieldset__note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* The row of controls above the operation picker. The fields keep their own
 * labels and lose their stacking margin, so a filter reads as one strip
 * rather than as four more form fields. */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 1.25rem 0 0.75rem;
}

.filters .field {
  flex: 1 1 10rem;
  margin-bottom: 0;
}

.filters .button {
  /* Level with the inputs beside them, which sit under their own labels. */
  margin-bottom: 1px;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.field__input,
.field__select {
  width: 100%;
  padding: 0.5rem;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid #b9bcc2;
  border-radius: var(--radius);
}

.field__input:focus-visible,
.field__select:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field--invalid .field__input,
.field--invalid .field__select {
  border-color: var(--bad);
  background: var(--bad-soft);
}

.field__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.field__error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--bad);
}

textarea.field__input {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  resize: vertical;
}

/* --- the operation picker ------------------------------------------------- */

.picker__summary {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* Where the tool prefix goes, in the name every row would be published under.
 * A <var> because that is what it is — the one part of the name that is not
 * literal — and quieter than the part that belongs to the operation, since it
 * is the same on every row and is set by the box above the table: the eye
 * should run down the column reading what differs (task 115). */
.name-slot {
  font-style: italic;
  color: var(--ink-soft);
}

/* The same prefix in the detail page's table, where it is fixed text in front
 * of a box holding the rest. Not italic, because here it is not a slot standing
 * in for a value — it is the value — but quiet for the same reason: it is
 * identical on every row, and the eye should run down the boxes (task 116). */
.name-lead {
  color: var(--ink-soft);
}

/* Keeps the printed prefix on the line of the box it leads. A flex row rather
 * than ``white-space: nowrap`` on the cell, which would also stop the notes
 * underneath from wrapping. */
.name-box {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.name-box .name-lead {
  white-space: nowrap;
}

/* --- the review strip ----------------------------------------------------- */

/* What the last refresh left to decide, above the table it left it in. One
 * strip rather than a panel: it is read in a glance and then acted on in the
 * rows below, so it earns a border and no more room than a line of text. */
.review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--warn-soft);
  border: 1px solid #ecd5a6;
  border-radius: var(--radius);
}

.review__note {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.875rem;
}

.review__counts {
  margin: 0;
}

/* The counts are links to the filter that shows them, so they need to stop
 * looking like body text without stopping looking like the badges beside them
 * in the Status column. */
a.badge {
  text-decoration: none;
}

a.badge:hover {
  text-decoration: underline;
}

/* Several forms in one cell — Save, then whichever decisions the row is
 * waiting on — sit in a line rather than stacking, since each is one button. */
.row-actions form {
  display: inline-block;
  margin: 0;
}

.row-actions .button + .button,
.row-actions form + form,
.row-actions form + .button,
.row-actions .button + form {
  margin-left: 0.25rem;
}

/* The checkbox column: as narrow as a checkbox, and centred over it. */
.table th.pick,
.table td.pick {
  width: 2.5rem;
  text-align: center;
}

/* Present to a screen reader, absent to everyone else: the labels that say
 * what each checkbox in the picker is for, which a sighted operator reads
 * from the row it sits in. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

/* A checkbox and its label on one line, since a switch reads as a sentence
 * rather than as a box under a heading. */
.switch {
  display: block;
  margin-bottom: 1rem;
}

.switch__input {
  margin-right: 0.4rem;
}

.switch__label {
  font-size: 0.9375rem;
}

.switch .field__hint,
.switch .field__error {
  margin-left: 1.4rem;
}

/* --- the detail page ------------------------------------------------------ */

/* What a new tool prefix would do, under the box it is being typed into. */
.rename {
  margin: -0.5rem 0 1rem;
}

.rename__list {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.rename__more {
  list-style: none;
  margin-left: -1.25rem;
}

/* A table whose cells hold controls needs its rows to breathe less than a
 * reading table and its inputs to be smaller than a form's. */
.table--editable td {
  vertical-align: top;
}

.table--editable .field__input {
  min-width: 9rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.875rem;
}

/* The row a save was refused on. */
.table .row--invalid td {
  background: var(--bad-soft);
}

/* The second line in a cell: what an operation is for, what its tool is
 * called. Quieter than the thing it belongs to, never louder. */
.cell-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* --- buttons -------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font: inherit;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.button:hover {
  border-color: var(--ink-faint);
}

.button--primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button--danger {
  color: var(--bad);
  border-color: #f0b4b4;
}

.button--danger:hover {
  color: #fff;
  background: var(--bad);
  border-color: var(--bad);
}

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

.button--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* --- flashes -------------------------------------------------------------- */

.flashes {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.flash {
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.flash--info {
  color: var(--accent-dark);
  background: var(--info-soft);
  border-color: #c3d2f6;
}

.flash--success {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: #b6ddc5;
}

.flash--warning {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: #ecd5a6;
}

.flash--error {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: #f0b4b4;
}

/* --- tool counts ---------------------------------------------------------- */

/* Three numbers that mean three different things: what a server is serving
 * now, what is ticked, and what it has altogether. Tabular figures so a column
 * of them lines up, and no wrapping — "3 / 3 / 12" broken across two lines is
 * three numbers nobody can read.
 *
 * Colour tells them apart for most readers. It is never the only thing that
 * does: the cell carries a tooltip and each number is followed by a
 * visually-hidden word, so the row reads correctly aloud and in grey. */
.counts {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.counts__number {
  font-weight: 600;
}

.counts__number--active {
  color: var(--ok);
}

.counts__number--selected {
  color: var(--accent-dark);
}

.counts__number--total {
  color: var(--ink);
}

.counts__slash {
  padding: 0 0.1rem;
  color: var(--ink-faint);
}

/* --- badges --------------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
}

/* A badge that follows a name or a count carries its own gap, so no template
 * has to wrap one in an element that exists only to space it. A badge that is
 * the whole cell gets none, and stays flush with the column. */
.badge:not(:first-child) {
  margin-left: 0.35rem;
}

.badge--enabled,
.badge--ok {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: #b6ddc5;
}

.badge--disabled,
.badge--removed,
.badge--unknown {
  color: var(--ink-soft);
  background: var(--line-soft);
  border-color: var(--line);
}

.badge--attention,
.badge--changed {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: #ecd5a6;
}

.badge--error {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: #f0b4b4;
}

.badge--active {
  color: var(--ink-soft);
  background: var(--line-soft);
}

.badge--new {
  color: var(--accent-dark);
  background: var(--info-soft);
  border-color: #c3d2f6;
}

/* A document's own grouping of its endpoints, beside the path it groups. */
.badge--tag {
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--page);
  border-color: var(--line);
}

/* --- summaries ------------------------------------------------------------ */

/* A definition list read as rows: the term on the left at a fixed width, so a
 * column of values lines up without a table pretending to be one. */
.summary {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary__pair {
  display: flex;
  gap: var(--gap);
  padding: 0.2rem 0;
}

.summary__term {
  flex: 0 0 11rem;
  color: var(--ink-soft);
}

.summary__value {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* A summary inside a card, which has already supplied the background and the
 * border: the settings card in its reading mode, and the two credential lines
 * in its editing one. Below ``.summary`` rather than above it, which is where
 * it used to be — a modifier declared first loses every tie to the class it
 * modifies, and this one lost all four of them (task 113). The term column is
 * the one ``.summary`` sets, so the card's labels line up with the page
 * summary's above it. */
.summary--inline {
  margin-bottom: 0.75rem;
  padding: 0;
  background: none;
  border: 0;
}

/* --- tables --------------------------------------------------------------- */

.table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: collapse;
  overflow: hidden;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.table th {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  background: #fafbfc;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td.numeric,
.table th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- empty state and errors ----------------------------------------------- */

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.empty-state__message {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.error {
  max-width: var(--measure);
  margin: 3rem auto;
  text-align: center;
}

.error__status {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-faint);
}

.error__headline {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.375rem;
}

.error__explanation {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

/* --- the monitoring page --------------------------------------------------- */

/* The region htmx swaps: everything on the page that describes one window. */
.usage {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.usage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.usage__covers {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* Hidden until an update fails to arrive, which is the one moment the page
 * cannot say anything true by staying quiet. */
.usage__alert {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--warn);
}

.usage__none {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* The range selector: links, so a browser running no script still works. */
.ranges {
  display: flex;
  gap: 0.25rem;
  padding: 0.1875rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranges__item {
  padding: 0.25rem 0.625rem;
  border-radius: calc(var(--radius) - 0.125rem);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.875rem;
}

.ranges__item:hover {
  background: var(--page);
  color: var(--ink);
}

.ranges__item--current {
  background: var(--accent);
  color: #ffffff;
}

.ranges__item--current:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

/* The window in numbers, above the charts of the same window. */
.totals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.totals__term {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.totals__value {
  margin: 0;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.totals__value--bad {
  color: var(--bad);
}

.chart {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chart__caption {
  margin: 0 0 0.75rem;
}

.chart__title {
  margin: 0;
  font-size: 1.0625rem;
}

.chart__note {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* A fixed height, because a canvas with none collapses and Chart.js is asked
 * to keep the aspect ratio the box gives it rather than one of its own. */
.chart__frame {
  position: relative;
  height: 15rem;
}

/* What stands where the drawing would be. Removed by the script once it has
 * drawn; left alone when there is nothing to draw with. */
.chart__fallback,
.chart__empty {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* The colour a server is drawn in, beside its name in the strip, so a band on
 * a chart can be matched to the row that explains it. */
.swatch {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.375rem;
  border-radius: 0.1875rem;
  vertical-align: baseline;
}

.table td.numeric--bad {
  color: var(--bad);
}

/* --- htmx ----------------------------------------------------------------- */

/* htmx sets this class on an element for the duration of its request. */
.htmx-request {
  opacity: 0.55;
  transition: opacity 120ms linear;
}
