/* admin.css — /admin.
 *
 * Reuses the account page's card, chip, button and note classes rather than
 * inventing a second set: the two pages show the same objects (a role, a
 * capability, a person) and they should not look like two different products.
 * Everything here is what a table needs and /account does not.
 */

/* SQUARE CORNERS, throughout this sheet.
 * A stated preference, scoped to the screens it was asked about (/admin,
 * /account and the navbar's account menu). The rest of the app keeps
 * tokens.css's `--radius: 8px`, so do NOT reach for that variable here -- these
 * files opt out of it deliberately, and a later edit that "restores the token"
 * would quietly undo the decision.
 *
 * The exceptions are shape, not radius: avatars stay circles (50%), because a
 * square avatar is a different thing rather than a squarer one.
 */

/* FULL WIDTH, and `flex: 1` is what makes that true. This sits inside a flex
 * row (the rail + the page slot), so the wrapper is a flex ITEM -- and a flex
 * item is `flex: 0 1 auto`, i.e. shrink-to-fit. `max-width` and `margin: 0 auto`
 * were both no-ops: on a 2560px screen the page rendered 1140px wide with the
 * rest of the monitor blank.
 *
 * No max-width at all, unlike /account. That page is a form somebody reads; this
 * one is six tables somebody scans, and every column of width earns its keep.
 *
 * AND IT OWNS ITS SCROLL, for the reason spelled out in account.css: the shell
 * slot is `overflow: hidden`, so a document-flow page that declares no scroller
 * does not scroll -- it is cut off. `min-height: 0` is the half that is easy to
 * forget: without it a flex item refuses to shrink below its content and the
 * overflow never has anything to do. Unlike /account there is no inner column
 * here, because there is no max-width for the scrollbar to sit against. */
.adm-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* LEFT manages, RIGHT observes -- 4:6. The account list is one table with a
 * collapsed panel; the monitoring side carries six KPI cards and whichever
 * detail table is open, so it needs the room. */
.adm-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 12px;
  /* BOTH COLUMNS REACH THE BOTTOM, at any window size. Two things were stopping
   * them. `align-items: start` sized each column to its own content, so the
   * shorter one (whichever panel was open on the right) ended in mid-air with
   * white space under it while the left ran on; and nothing passed a height down
   * from .adm-wrap, so neither column knew what "the bottom" was.
   *
   * `stretch` makes the two columns equal to each other; `flex: 1` makes that
   * shared height the rest of the viewport. `min-height: 0` is the half that is
   * easy to forget -- without it the grid refuses to shrink below its content
   * and the inner scrollers never get anything to do.
   *
   * THE FLOOR IS THE ESCAPE HATCH, and it is high on purpose. "Fill the
   * viewport" stops being a favour once the viewport is short: on a 1366x768
   * laptop -- where the KPI strip has also wrapped to two rows -- filling it
   * exactly left the two tables one row tall each, which is technically the
   * whole screen and practically useless. Below this height the grid stops
   * shrinking and .adm-wrap scrolls instead, so the tables stay readable and the
   * two columns still end level with each other.
   *
   * 780px is what the right column needs to be worth looking at: KPI strip,
   * the chart, and two tables with enough rows to scan. Anything taller than
   * that gets the exact fill; anything shorter gets a short scroll. */
  align-items: stretch;
  flex: 1;
  min-height: 780px;
}
.adm-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

/* The card is what actually fills the column -- and since it is a flex column
 * itself, its own scroller can take the slack. On panels whose content is short
 * this just means the card's surface runs to the bottom with the content parked
 * at the top, which is the point: the two columns end on the same line. */
.adm-col > .adm-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* The guarantee that nothing can paint outside its card. If the flex solver ever
 * runs out of room again, content gets cut at the card edge instead of overlapping
 * the panel below it -- clipped is recoverable by resizing, overlapped text is
 * just broken.
 *
 * ONLY on the monitoring panels. The same rule on the accounts card would clip
 * the Manage dropdown, which is absolutely positioned precisely so it can escape
 * its row (see the .adm-menu note below). */
.adm-panel-sec { overflow: hidden }
/* Beats the flex display above (two classes to one) so a closed panel stays
 * closed rather than becoming a flex box of nothing. */
.adm-panel-sec[hidden] { display: none }

/* One column below this: the account table's Manage panel needs ~340px on its
 * own, and two columns squeeze it into a scrollbar. Stacked, "fill the viewport"
 * stops meaning anything -- two full-height columns is two screens of scrolling
 * to see the second one -- so the height chain is released here and the page
 * goes back to flowing. */
@media (max-width: 1240px) {
  /* `none`, not `0 1 auto`. The old value still SHRANK: on a 1,100px window
   * that is not tall (a laptop, a half-screen), the grid was squeezed to the
   * viewport, its two rows split what was left, and the cards inside overflowed
   * their own rows -- the KPI strip painted straight across the accounts table.
   * Nothing here needs to fill anything once the columns are stacked; each
   * block is as tall as it is and .adm-wrap scrolls. */
  .adm-grid { grid-template-columns: 1fr; flex: none; min-height: 0 }
  .adm-col > .adm-card { flex: 0 1 auto; display: block }
  .adm-signin-split { grid-template-columns: 1fr }
  .adm-scroll-fill { max-height: 320px }
}

.adm-counts { font-size: var(--fs-caption); color: var(--t2); margin-right: auto }
.adm-dot { opacity: .5; margin: 0 2px }

/* 25px LEFT AND RIGHT, ON EVERY CARD AND EVERY TAB PANEL, and nothing is allowed
 * to add to it. The six monitoring panels swap in and out of the same box, so a
 * panel with its own wider gutter does not read as "this one has more air" -- it
 * reads as the card jumping when you change tabs. Everything that used to nudge
 * its own inset has been taken out: #panel-corpus's +20px (library.css), the
 * chart's +4px, and the outer padding on the first and last table cells.
 *
 * 25 is the settled number, between the 16 these cards started at (too tight
 * once the gutter had to carry every panel) and the 36 the corpus panel had
 * given itself (too much on the table-heavy ones). */
.adm-card {
  /* One number on all four sides. The top used to be 14 against sides of 25,
   * which put the card's title closer to the edge above it than to either edge
   * beside it -- the corner read as pinched. */
  padding: 25px;
  background: var(--bg1);
  border-radius: 0;
  box-shadow: var(--sh-raised);
}
:root:not(.light) .adm-card,
body:not(.light) .adm-card {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), var(--sh-raised);
}
.adm-card h2 { margin: 0; font-size: var(--fs-md); font-weight: 650 }

.adm-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  /* The card is a flex column now; without this the head is squeezed along with
   * everything else when the panel runs short. */
  flex-shrink: 0;
}
/* When there is no counts element to eat the slack, the last child still has to
 * sit at the right edge. */
.adm-card-head > :last-child:not(h2) { margin-left: auto }
.adm-card-head .adm-counts + * { margin-left: 0 }

.adm-subhead {
  flex-shrink: 0;
  margin: 16px 0 0;
  padding-top: 12px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--t0);
  border-top: 1px solid color-mix(in srgb, var(--bdr) 50%, transparent);
}

/* ── KPI cards ──────────────────────────────────────────────────
 * Solid fills, white text, square. What made the first attempt loud was not
 * saturation -- it was SIX HUES, one per card, which turned a status strip into
 * a paint chart and made every card shout at the same volume.
 *
 * So: one colour, two states. Every card is the same blue; the open one is the
 * brighter brand blue; anything wrong is red. Colour carries MEANING again
 * instead of identity -- the cards already have labels for that, and a red block
 * in a row of blue ones is visible from across the room.
 *
 * White text throughout, which is what forces the fills to be deep: #4a9eff (the
 * app accent) is too light to carry white at these sizes, so the resting fill is
 * a darker step of the same hue.
 */
.adm-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.adm-kpi {
  --kpi: #3a6ea8;                    /* resting: deep step of the brand blue */
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
  color: #fff;
  background: var(--kpi);
  border: 0;
  border-radius: 0;
  box-shadow: var(--sh-raised);
  cursor: pointer;
  transition: background .13s, transform .13s;
}
.adm-kpi:hover     { background: color-mix(in srgb, var(--kpi) 88%, #fff) }
.adm-kpi[aria-selected="true"] { --kpi: #2e6bf6 }   /* open: the brand blue */

/* The one card with something to say. Overrides the state, because a stale feed
 * matters whether or not its panel happens to be open. */
.adm-kpi-bad { --kpi: #c8372d }
.adm-kpi-bad[aria-selected="true"] { --kpi: #b12b22 }

.adm-kpi-label {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-kpi-value {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: 650;
  color: #fff;
  line-height: 1.1;
}
.adm-kpi-note { font-size: var(--fs-2xs); color: rgba(255, 255, 255, .72) }

/* ── the stat strip inside a panel ──────────────────────────────── */
.adm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: var(--fs-caption);
  color: var(--t2);
}
.adm-stats b { font-size: var(--fs-sm); color: var(--t0); font-weight: 650 }
.adm-warn, .adm-warn b { color: var(--err) }
.adm-link { color: var(--acc); text-decoration: none }
.adm-link:hover { text-decoration: underline }
.adm-err-kind { color: var(--err); font-weight: 600 }

.adm-copy { display: flex; gap: 8px; margin-top: 12px }
.adm-copy .acct-btn { margin-top: 0; flex-shrink: 0 }
.adm-dialog-narrow { width: min(560px, calc(100vw - 32px)) }
.adm-add-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.adm-add-btn svg { width: 13px; height: 13px }
.adm-window {
  font-size: var(--fs-caption);
  color: var(--t2);
  white-space: nowrap;
}

/* ── the 7d / 30d switch ─────────────────────────────────────────
 * THE SAME CONTROL AS THE AOI ANALYSIS TAB'S 3Y/5Y/10Y/All range switch, by
 * request. Declarations copied from `.aoi-prof-seg` in assessment.css rather
 * than re-derived, including the `var(--surface)` reference: that token is not
 * defined in either page's scope, so the tray renders transparent in both -- and
 * if it is ever defined globally, both controls pick it up together. Two copies
 * of the same rules is the cost of the two pages not sharing a stylesheet;
 * changing one means changing the other.
 *
 * THE ROUNDED CORNERS ARE A DELIBERATE EXCEPTION to this sheet's square-corner
 * rule at the top of the file. "Match that control" is the instruction, and a
 * squared-off copy would not match it.
 *
 * Anchors, not buttons, unlike the AOI original: the window lives in the URL
 * (`?signins=30`), which is what makes it survive a reload, a bookmark and the
 * redirect after a POST. The styling is the only thing being shared. */
.adm-window-toggle {
  display: inline-flex;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-2xs);
  gap: var(--space-2xs);
}
.adm-window-opt {
  font: inherit;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--t2);
  background: transparent;
  border: 0;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.adm-window-on {
  color: #fff;
  background: var(--acc);
  box-shadow: 0 1px 2px rgba(20, 28, 40, .1);
}

/* ── the one-time invite link ───────────────────────────────────── */
.adm-invite {
  padding: 16px 18px;
  background: color-mix(in srgb, var(--acc) 8%, var(--bg1));
  border-radius: 0;
  box-shadow: var(--sh-raised);
}
.adm-invite-label {
  margin-bottom: 8px;
  font-family: var(--font-badge);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acc);
}
.adm-invite-url {
  width: 100%;
  padding: 9px 11px;
  font-size: var(--fs-caption);
  color: var(--t0);
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 0;
}

/* ── filter + sort toolbar ──────────────────────────────────────── */
.adm-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.adm-filter {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 340px;
  padding: 7px 11px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--t0);
  background: var(--bg2);
  border: 1px solid transparent;
  border-radius: 0;
  outline: none;
}
.adm-filter:focus, .adm-select:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);
}
.adm-select {
  padding: 7px 10px;
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--t1);
  background: var(--bg1);
  border: 1px solid var(--bdr);
  border-radius: 0;
  outline: none;
}
.adm-count { margin-left: auto; font-size: var(--fs-caption); color: var(--t2) }

/* ── tables ─────────────────────────────────────────────────────── */
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-caption);
  /* Long access logs and 25-row account lists both overflow on a laptop; the
   * card scrolls its own table rather than the page scrolling sideways. */
  margin-top: 12px;
}

/* THE GAP MOVES OUTSIDE THE SCROLLER. Inside one, `margin-top` on the table is
 * what made the pinned header jump: at rest the header sat 12px down, and the
 * moment anything scrolled `position: sticky` pulled it to `top: 0` -- so the
 * whole row leapt up by exactly that margin and then sat flush against the
 * heading above it with no air.
 *
 * The margin belongs to the scroll CONTAINER instead. That space is outside the
 * scrollport, so it cannot be scrolled away: the header stays put and the gap
 * above it stays open. */
.adm-scroll,
.adm-accounts-scroll { margin-top: 12px }
.adm-scroll .adm-table,
.adm-accounts-scroll .adm-table { margin-top: 0 }

.adm-table th {
  padding: 6px 8px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t2);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--bdr);
}

/* PINNED HEADERS, but only inside a scroll box. `position: sticky` resolves
 * against the nearest scroll CONTAINER, and since /admin now owns the page
 * scroller (.adm-wrap above), an unscoped rule would pin the headers of the
 * short unwrapped tables -- AI spend, freshness, failed sign-ins -- to the top
 * of the window and float them across whatever card you scrolled to next.
 * Scoped to the two scrollers, the header sticks to the top of its own card,
 * which is the only place it means anything. */
.adm-scroll .adm-table th,
.adm-accounts-scroll .adm-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  /* Opaque, or the rows read straight through the pinned row. */
  background: var(--bg1);
  /* An inset shadow rather than border-bottom: with `border-collapse: collapse`
   * the border belongs to the table grid, not the cell, so it stays behind while
   * the sticky cell moves and the first row slides over the line. */
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--bdr);
}

/* Sortable headers. The arrow is always in the layout (transparent when the
 * column is not the sorted one) so clicking never nudges the column widths. */
.adm-sortable { cursor: pointer; user-select: none }
.adm-sortable:hover { color: var(--t0) }
.adm-sortable::after {
  content: '▲';
  margin-left: 5px;
  font-size: .8em;
  color: transparent;
}
.adm-sortable:hover::after      { color: var(--t2) }
.adm-sortable[data-dir=asc]::after  { content: '▲'; color: var(--acc) }
.adm-sortable[data-dir=desc]::after { content: '▼'; color: var(--acc) }
.adm-sortable[data-dir=asc], .adm-sortable[data-dir=desc] { color: var(--t0) }
.adm-sortable:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px }

/* Filtered-out rows. `hidden` alone loses to `display: table-row`. */
.adm-table tbody tr[hidden] { display: none }
.adm-table td {
  padding: 7px 8px;
  /* TOP, not middle. Opening a row's Manage panel makes that row four times
   * taller, and centred cells then float the person's name down beside the
   * middle of the panel, away from the button that opened it. */
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--bdr) 45%, transparent);
}
/* The avatar is 30px against a two-line name; nudge it onto the first line.
 * SCOPED TO THE CELL THAT ACTUALLY HOLDS AN AVATAR. As `td:first-child` it hit
 * every table on the page, and in the event log -- which has no avatars -- it
 * pushed the WHEN column 3px below its own row: `:first-child` outweighs
 * `.adm-compact td`, so the 5px there never applied to column one. Reading down
 * the log, every timestamp sat off the line of the event it belongs to. */
.adm-table td:first-child:has(> .adm-av) { padding-top: 8px }
.adm-table tbody tr:last-child td { border-bottom: 0 }
.adm-table tbody tr:hover { background: color-mix(in srgb, var(--bg2) 55%, transparent) }

.adm-compact td, .adm-compact th { padding: 5px 8px }

/* THE OUTER EDGE OF A TABLE IS THE CARD'S EDGE. Cell padding is there to
 * separate columns FROM EACH OTHER; on the first and last column it was instead
 * being added to the card gutter, so a heading started at the gutter and the
 * table under it started 8px further in. Dropping it on the two outer cells puts every row of
 * a panel -- title, subhead, table, footnote -- on one left margin. Applies to
 * `th` as well, or the pinned header sits 8px off its own body. */
.adm-table th:first-child,
.adm-table td:first-child { padding-left: 0 }
.adm-table th:last-child,
.adm-table td:last-child { padding-right: 0 }
/* ONE TYPEFACE ACROSS EVERY TABLE. These three used to be monospace, which is
 * what made the Account column look broken: three of the four columns in the
 * event log were fixed-pitch and one was not, so the odd one out read as
 * misaligned no matter how its width was pinned. The fix is not more width
 * rules -- it is not having two typefaces in one table.
 *
 * `tabular-nums` is what monospace was actually being used FOR. It gives every
 * digit the same advance width, so timestamps and counts still line up in a
 * column, while letters keep the proportional spacing they should have had all
 * along. Same trick the assessment and power pages already use.
 *
 * The class is still called `adm-mono` because it is spelled that way in a
 * dozen places in the template; the name is now historical, not a description.
 * `.adm-invite-url` keeps real monospace on purpose -- a one-time credential is
 * read character by character, which is the one case that wants it. */
.adm-mono {
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
  color: var(--t1);
}
.adm-num {
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.adm-av-sm { width: 24px; height: 24px }
.adm-av-sm .av-initials { font-size: var(--fs-micro) }

.adm-av {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  color: var(--t2);
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 50%;
}

.adm-name { display: block; color: var(--t0); white-space: nowrap }
/* Truncates rather than wraps or widens. In the account list this cell can size
 * its own column, but in the fixed-layout event table it cannot -- and an
 * address that no longer fits has to end in an ellipsis, not push the row to two
 * lines. The full value is on the cell's `title`. */
.adm-mail {
  display: block;
  font-size: var(--fs-caption);
  color: var(--t2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-sub  { display: block; font-size: var(--fs-2xs); color: var(--t2); margin-top: 1px }

.adm-you {
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--font-badge);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t2);
  background: var(--bg3);
  border-radius: 0;
  vertical-align: 1px;
}

.adm-status {
  font-family: var(--font-badge);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.adm-active   { color: var(--acc2, #00d4aa) }
.adm-pending  { color: var(--t2) }
.adm-disabled { color: var(--err) }

/* "no link sent" is the one sub-line that is a TO-DO rather than a fact: the
 * person is waiting on us, not the other way round. It lifts out of the muted
 * .adm-sub grey just enough to be findable while scanning a column of dates --
 * not an error colour, because nothing is broken. */
.adm-nolink { color: var(--warn, #ff6b35); font-weight: 600 }

.adm-ev { font-size: var(--fs-caption) }
.adm-ev-ok  { color: var(--t1) }
.adm-ev-bad { color: var(--err) }

/* One panel is open at a time, so it can be tall -- but not unbounded, or a
 * long access log pushes the page into a scroll nobody does. `overscroll-behavior`
 * so reaching the end of the log does not hand the wheel to the page behind it. */
.adm-scroll { max-height: 460px; overflow-y: auto; overscroll-behavior: contain }

/* The variant that takes its height from the card instead of a fixed cap. Used
 * where the panel owns the full column height and the table should end exactly
 * at the bottom edge -- `max-height: none` has to be said out loud, or the 460px
 * above still wins and the bottom of the card is empty. */
/* `min-height` deliberately SMALL. It is a floor for the flex solver, not a
 * design intent -- and at 120px, two of these plus the chart and the legend
 * added up to more than the card on a 1440x900 window whose KPI strip had
 * wrapped to two rows, so the tables overran the card and painted on top of the
 * footnote. A flex floor has to be the smallest thing that is still usable. */
.adm-scroll-fill { flex: 1; min-height: 60px; max-height: none }

/* ── FIXED-WIDTH COLUMNS ─────────────────────────────────────────
 * `table-layout: fixed` makes the browser size columns from the <colgroup>
 * alone, so the widths stop depending on which rows happen to be on screen. It
 * needs a partner: cells that can no longer push their column wider must be told
 * what to do when they do not fit, hence the truncation on .adm-mail below. */
.adm-fixed { table-layout: fixed }
/* The three MONOSPACE columns are sized to their content and the address column
 * takes whatever is left (no width = it absorbs the remainder under fixed
 * layout). That split is deliberate: a timestamp and an IP have a known maximum
 * width and are useless clipped, while an address is unbounded and reads fine
 * with an ellipsis. Percentages were tried first and got this backwards --
 * they clipped `2026-07-29 14:00` and `98.196.33.133` while leaving the address
 * column slack it did not need. */
/* Re-measured after the columns stopped being monospace -- proportional text of
 * the same content is materially narrower, and holding the old widths would
 * have spent 60px of the address column on white space. */
.adm-c-when { width: 136px }   /* `2026-07-29 14:00` — measured at 134 */
.adm-c-what { width: 156px }   /* `employee_no_corrected`, the longest recorded */
.adm-c-ip   { width: 104px }   /* an IPv4; v6 gets the ellipsis and the tooltip */
/* The partner rule. A cell that can no longer widen its column has to say what
 * it does instead, and for a timestamp or an IP that is "clip", never "wrap":
 * a log where some rows are two lines tall cannot be scanned down. */
.adm-fixed .adm-mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── daily sign-ins, stacked by role ─────────────────────────────
 * ONE HUE IN LIGHTNESS STEPS, not four colours. Roles are an ordered ladder --
 * viewer ⊂ analyst ⊂ engineer ⊂ admin -- so the shading carries the order and
 * the reader never has to memorise which colour outranks which. Four unrelated
 * hues would also have made this the loudest thing on a page whose KPI strip was
 * deliberately reduced to a single hue.
 *
 * The steps are a validated ordinal ramp (monotone lightness, one hue, every
 * adjacent pair separated, light end clearing the surface at 2:1) rather than
 * eyeballed tints. Dark mode flips the anchor -- nearest-the-surface is the
 * DARKEST step there -- so it gets its own four values further down, not an
 * automatic inversion of these. */
.adm-chart { --seg-unknown: var(--t2) }
.adm-seg-viewer   { background: #86b6ef }
.adm-seg-analyst  { background: #3987e5 }
.adm-seg-engineer { background: #1c5cab }
.adm-seg-admin    { background: #0d366b }
.adm-seg-unknown  { background: var(--t2) }
/* `body:not(.light)` ONLY -- never `:root:not(.light)`.
 *
 * base.html puts the theme class on <body> (`<body class="light">`, and the
 * inline script removes it for dark). :root is <html>, which never carries it,
 * so `:root:not(.light)` matches in BOTH themes and simply wins on specificity.
 * The pairing appears elsewhere in this sheet on box-shadows, where always-on is
 * a barely visible overlay; here it inverted the whole ramp -- light mode drew
 * the dark steps, so viewer came out darkest and admin lightest, exactly
 * backwards from the legend's ordering. */
body:not(.light) .adm-seg-viewer   { background: #184f95 }
body:not(.light) .adm-seg-analyst  { background: #256abf }
body:not(.light) .adm-seg-engineer { background: #3987e5 }
body:not(.light) .adm-seg-admin    { background: #86b6ef }

/* Inset from the card wall on both sides. The bars used to start hard against
 * the left edge and end hard against the right, which read as a strip of colour
 * rather than a plot -- a chart needs margin around it to be seen as one object.
 * `--adm-plot-pad` is also what the x-axis row uses, so the labels and the
 * columns stay in step; changing it in one place moves both. */
.adm-chart {
  --adm-plot-pad: 14px;
  /* The y-axis gutter, named once. THREE things hang off it -- the gutter
   * itself, the x-axis row, and the legend -- and when it was a bare `30px`
   * repeated in each of them, moving one left the other two behind. */
  --adm-yaxis-w: 30px;
  margin-top: 14px;
  /* No horizontal padding of its own -- the card's 25px is the gutter, and this
   * used to add 4px on top of it so the chart sat further in than the headings
   * above and below it. The bars are still inset from the axis, by
   * `--adm-plot-pad` INSIDE the plot, which is where that inset belongs. */
  flex-shrink: 0;
}

/* The y-axis gutter, then the plot. `align-items: stretch` so the gutter is
 * exactly as tall as the area its labels are annotating -- the tick positions
 * are percentages, and they are only right if both boxes share a height. */
.adm-chart-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}

/* Positioned from the tick's own percentage, and translated down by half a line
 * so the text is CENTRED on its gridline rather than sitting above it. */
.adm-chart-yaxis {
  position: relative;
  width: var(--adm-yaxis-w);
  padding-right: 8px;
}
.adm-chart-ytick {
  position: absolute;
  right: 8px;
  transform: translateY(50%);
  font-size: var(--fs-2xs);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--t2);
}

/* Scales with the window rather than sitting at one fixed height. At 132px flat
 * the bars were a thin strip lost under a 1080p panel, and on a 768px laptop the
 * same number ate the tables below it. The clamp keeps it readable at both ends.
 *
 * The two axis rules are borders on this box: the baseline the bars stand on and
 * the line the ticks hang off. Solid and one step up from the gridlines -- an
 * axis is structure, a gridline is a reading aid, and they should not weigh the
 * same. */
.adm-chart-area {
  position: relative;
  height: clamp(112px, 19vh, 236px);
  border-left: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
}

/* Hairline, solid, one step off the surface -- never dashed, never as dark as
 * the axis. These are behind the bars on purpose: a gridline crossing a bar
 * would add ink that is not data. */
.adm-chart-grid { position: absolute; inset: 0; pointer-events: none }
.adm-chart-gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  /* Same half-height nudge as the tick label. `bottom: X%` puts an element's
   * EDGE on the value, and the label is centred on it -- so without this the
   * line sits its own thickness above the text it belongs to. */
  transform: translateY(50%);
  background: color-mix(in srgb, var(--bdr) 55%, transparent);
}

.adm-chart-plot {
  position: relative;      /* above .adm-chart-grid */
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
  padding: 0 var(--adm-plot-pad);
}
.adm-chart-col {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  height: 100%;
}

/* Rides the top of its own bar (`bottom` is the same percentage the bar is
 * tall), so it moves with the bar instead of sitting on a fixed line. It is
 * absolutely positioned for the same reason: in flow it took height out of the
 * column, which put every bar slightly out of step with the gridlines. */
.adm-chart-cap {
  position: absolute;
  bottom: 0;
  margin-bottom: 3px;
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--t1);
  white-space: nowrap;
}

.adm-chart-bar {
  display: flex;
  flex-direction: column-reverse;   /* first legend role at the baseline */
  width: 100%;
  /* Thin marks -- the bar never fills its slot. 38px against a ~145px slot on a
   * wide panel is still a third of it, which is the rule; 24px at that width
   * read as seven pencil lines rather than a chart. */
  max-width: 38px;
  /* NO min-height. A day with no sign-ins must draw nothing -- a 2px stub on the
   * baseline is a mark where there is no data, and at a glance it reads as "one
   * or two" rather than "none". The gap in the row IS the information. */
  gap: 2px;
}
.adm-chart-seg { display: block; min-height: 3px }

/* Repeats the plot's geometry exactly -- same flex, same gap, same padding -- so
 * label N sits under column N. Any change to one has to be made to both. */
.adm-chart-xaxis {
  display: flex;
  gap: 4px;
  margin-top: 7px;
  padding: 0 var(--adm-plot-pad);
  margin-left: var(--adm-yaxis-w);      /* clears the y-axis gutter */
}
.adm-chart-xcol {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  font-size: var(--fs-2xs);
  line-height: 1.35;
  color: var(--t2);
  white-space: nowrap;
}
.adm-chart-xcol b { font-weight: 600; color: var(--t1) }

/* THIRTY DAYS IS A DIFFERENT CHART. Thirty bars at 38px would be wider than the
 * panel, and thirty date labels do not fit at any size -- so the bars thin out,
 * the gaps close up, and only every fifth column keeps a label (auth.login_daily
 * decides which). The value caps come off entirely; the y axis carries them. */
.adm-chart-dense .adm-chart-plot,
.adm-chart-dense .adm-chart-xaxis { gap: 2px }
.adm-chart-dense .adm-chart-bar { max-width: 18px }
.adm-chart-dense { --adm-plot-pad: 8px }

/* The legend is not optional. Colour alone must never be the only way to tell
 * the segments apart, and the tooltip on each column is a hover -- it does not
 * exist for anyone reading a printout or tabbing through. */
.adm-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  /* Starts where the plot starts, not where the card does. Flush left it began
   * under the y-axis numbers, which read as a fourth column of the axis rather
   * than as a key to the bars. */
  margin: 12px 0 0 var(--adm-yaxis-w);
  padding-top: 10px;
  /* And a clear gap under it. The legend belongs to the chart; without this the
   * tables below crowd it and the whole panel reads as one undivided block. */
  padding-bottom: 20px;
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--t2);
  border-top: 1px solid color-mix(in srgb, var(--bdr) 45%, transparent);
}
.adm-chart-keyitem { display: inline-flex; align-items: center; gap: 6px }
.adm-chart-swatch { width: 9px; height: 9px; flex-shrink: 0 }


/* ── the two tables under the chart ──────────────────────────────
 * Narrower left, wider right: the per-person table is four short columns and the
 * event stream carries a timestamp, an event name, an address and an IP. */
.adm-signin-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 0 16px;
  flex: 1;
  min-height: 0;
  margin-top: 4px;
}
.adm-signin-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.adm-signin-foot { flex-shrink: 0; margin-top: 10px }

/* SIDE BY SIDE NEEDS THE WIDTH, so below this the two panes stack. The event
 * table is four columns, three of them fixed-width monospace; in a 6fr pane on
 * anything narrower than about 1700px that leaves the address column too narrow
 * to show an address. Stacked, each table gets the panel's full width and half
 * its height -- which is the same information, still without a page scroll.
 *
 * This is a WIDER breakpoint than the page's own 1240px one-column switch, and
 * on purpose: they answer different questions. 1240 is "can the left column hold
 * its Manage menu"; this one is "can four columns fit in 60% of the right half". */
@media (max-width: 1700px) {
  .adm-signin-split {
    grid-template-columns: 1fr;
    /* 2:3, and BOTH rows are fractions. Not 1fr 1fr, because the two tables do
     * not have equal amounts to say -- the people table holds one row per person
     * who signed in this week, the event stream holds a hundred and twenty.
     *
     * And not `auto` for the first row, which was the previous attempt: an auto
     * row sizes to its content and will not give the space back, so on a 1366x768
     * window it took everything and the event table was pushed out of the card
     * entirely, under the footnote. Two fractions always resolve to the space
     * that exists, however little that is. */
    grid-template-rows: minmax(0, 2fr) minmax(0, 3fr);
    gap: 0;
  }
}

/* ── the per-row Manage menu ────────────────────────────────────
 * A dropdown, not an in-row panel. The panel version rendered inline and pushed
 * the Manage column to ~800px, which skewed every other column in the table for
 * the duration -- for content (the role's capability list) that nobody had
 * opened the menu to read. Absolute positioning takes it out of flow so the
 * table never moves.
 */
.adm-menu { position: relative }
.adm-menu summary {
  display: inline-block;
  padding: 3px 9px;
  font-size: var(--fs-caption);
  color: var(--t1);
  list-style: none;
  border: 1px solid var(--bdr);
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.adm-menu summary::-webkit-details-marker { display: none }
.adm-menu summary:hover { color: var(--t0); border-color: var(--t2) }
.adm-menu[open] summary { color: var(--t0); border-color: var(--acc) }

/* FIXED, and placed by JS (static/js/account/admin-page.js).
 *
 * Absolute positioning cannot work here: the menu lives inside
 * .adm-accounts-scroll, and a scroll container clips its absolutely-positioned
 * descendants -- so the menu on the last visible row would be cut in half. Nor
 * can that be dodged with `overflow-y: auto; overflow-x: visible`: CSS computes
 * the visible axis to `auto` when the other is not visible, so the pair is not
 * expressible.
 *
 * Fixed elements are laid out against the viewport and escape ancestor
 * clipping, at the cost of needing their coordinates computed on open. Fifteen
 * lines of JS, versus a menu that is wrong at the bottom of every list. */
.adm-menu-body {
  position: fixed;
  z-index: var(--z-popover);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 260px;
  padding: 8px;
  background: var(--bg1);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .16);
}
:root:not(.light) .adm-menu-body,
body:not(.light) .adm-menu-body {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 32px rgba(0, 0, 0, .55);
}

.adm-menu-item {
  display: block;
  width: 100%;
  padding: 7px 9px;
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--t1);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.adm-menu-item:hover { background: var(--bg2); color: var(--t0) }

/* ONE GRID, NOT THREE FLEX ROWS. Every action row in this menu is the same
 * shape -- a control, then the button that commits it -- and they sit directly
 * above one another. Under flex each row sized its button to its own label, so
 * "Set role" and "Set team" (one character apart) left their dropdowns at
 * different widths and nothing lined up down the menu. Two fixed tracks mean
 * the rows cannot disagree, whatever the labels later say.
 *
 * 82px holds the longest label here ("Set role" / "Set team") without wrapping.
 * The controls all share the same padding, border and font, so the two columns
 * are the same height as well as the same width -- which is the other half of
 * looking aligned. */
.adm-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 6px;
  align-items: center;
}
.adm-menu-row .acct-btn {
  margin-top: 0;
  width: 100%;
  padding: 6px 4px;
  text-align: center;
}
.adm-menu-row select,
.adm-menu-row input[type=text] {
  min-width: 0;
  padding: 6px 8px;
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--t0);
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 0;
}
.adm-menu-row select:focus-visible,
.adm-menu-row input[type=text]:focus-visible { outline: none; border-color: var(--acc) }
/* Sits in the control column beside a Delete that cannot fire yet, so the row
 * keeps the same two-track shape as every other one instead of collapsing to a
 * lone right-aligned button. */
.adm-menu-note {
  font-size: var(--fs-2xs);
  line-height: 1.35;
  color: var(--t2);
}
.adm-menu-rule {
  height: 1px;
  margin: 6px 0;
  background: color-mix(in srgb, var(--bdr) 55%, transparent);
}
.adm-menu-danger { margin-top: 2px }
.adm-menu-danger .acct-btn-danger { padding: 6px 10px }

/* ── the accounts scroller + role legend ────────────────────────── */
/* The table scrolls INSIDE the card so the legend below it never gets pushed
 * off-screen as the roster grows -- which is the only reason the legend is a
 * card footer instead of a row in the table. */
/* `flex: 1` rather than `max-height: 60vh`. The fixed cap was what left the
 * left card ending short of the bottom on a tall monitor -- 60vh of table plus a
 * legend does not reach the fold, and no amount of stretching the CARD moves the
 * table inside it. Taking the slack here is what makes the card's height real
 * instead of decorative. */
.adm-accounts-scroll {
  flex: 1;
  min-height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.adm-legend {
  flex-shrink: 0;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--bdr) 55%, transparent);
}
.adm-legend-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
}
.adm-legend-row .acct-chip { flex-shrink: 0; min-width: 66px; text-align: center }
/* Sans, not mono. These read as a sentence about what a role may do, not as
 * code to be typed -- and four rows of monospace next to a sans table is the
 * kind of texture change that reads as clutter rather than as meaning. */
.adm-legend-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: var(--fs-2xs);
  color: var(--t2);
}
.adm-legend-caps span + span::before { content: '· '; opacity: .5 }
.adm-legend-plus { opacity: .55 }
.adm-legend-plus + span::before { content: none }

/* ── teams ─────────────────────────────────────────────────────────
 * The team chip borrows .acct-chip's shape and drops its accent colour. Two
 * accent chips side by side in one row read as one thing wrapped, not as two
 * axes -- and the axis an administrator scans for is the role, which is the
 * cumulative ladder. So the team is the quieter of the pair: same object, told
 * at a lower volume. */
.adm-team-chip {
  color: var(--t1);
  background: color-mix(in srgb, var(--t2) 12%, transparent);
  letter-spacing: .04em;
  text-transform: none;
  margin-inline-end: var(--space-sm);
  margin-block-end: var(--space-sm);
  max-width: 100%;
}
/* non-LAI. The one chip on this tab that is a BOUNDARY rather than a
 * label -- it says these people cannot see our deal book -- so it carries the
 * warn accent the team chip deliberately gives up. It is also the only chip
 * here that is drawn by exception: badging the eight LAI teams too would spend
 * eight rows saying the ordinary thing and bury the row that matters. */
.adm-chip-external {
  color: var(--warn, #e0a24a);
  background: color-mix(in srgb, var(--warn, #e0a24a) 14%, transparent);
  text-transform: none;
  letter-spacing: .02em;
  margin-left: 8px;
}

/* The one checkbox in a dialog otherwise made of text fields. Laid out as
 * box-then-block so the explanation sits under the label instead of running
 * past it -- the sentence is the control here, not the word. */
.adm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.adm-check input { margin-top: 3px; flex-shrink: 0 }
.adm-check small {
  display: block;
  color: var(--t2);
  font-weight: 400;
  line-height: 1.45;
  margin-top: 2px;
}

/* Unfiled. Dim enough to read as absence rather than as a value, but present:
 * an empty cell says "nothing here", and the point is that something is
 * missing. */
.adm-noteam { color: var(--t2); opacity: .5 }
/* The one number on the page that is a backlog rather than a total. */
.adm-unfiled { color: var(--warn, #e0a24a) }

/* The Teams table is the roster's table -- .adm-table .adm-accounts, the same
 * scroller, the same pinned head, actions in the same Manage menu. Only the
 * columns differ, and only where the content does. */
.adm-teams th:nth-child(2),
.adm-teams td:nth-child(2) { width: 92px }
.adm-teams-empty { margin: 16px 0 0 }
/* A delete that cannot fire yet. Disabled rather than hidden: the button stays
 * where it will be once the team is empty, and the note beside it says why. */
.adm-menu-row .acct-btn[disabled] { opacity: .4; cursor: not-allowed }

.adm-good { color: var(--acc2, #00d4aa) }
.adm-dim  { color: var(--t2) }
/* A count that is a problem, said at the volume of a count. The error red on
 * this page means "something broke"; a colleague who has not asked a question
 * is not a fault, so it borrows the shape of the warning and none of its
 * urgency. */
.adm-bad-soft { color: var(--warn, #e0a24a); font-weight: 650 }

/* ── the Usage panel's tables ───────────────────────────────────── */
.adm-nowrap { white-space: nowrap }
/* A starter question nobody has clicked. Dimmed rather than hidden: the zero IS
 * the finding, and a list that silently drops its empty rows cannot be read as
 * "these eight are what we offer". */
.adm-row-quiet td { color: var(--t2) }
/* Marks a question that came off a landing-page chip. Quiet — it is a footnote
 * on the question, not a category of it. */
.adm-tag-sample {
  margin-left: 6px;
  padding: 0 5px;
  font-size: var(--fs-2xs);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--liora);
  background: color-mix(in srgb, var(--liora) 12%, transparent);
}
/* An in-table action. Not .acct-btn: a button chrome in every row of a
 * sixty-row table is sixty boxes competing with the text they act on. */
.adm-btn-link {
  padding: 0;
  font: inherit;
  color: var(--acc);
  background: none;
  border: 0;
  cursor: pointer;
}
.adm-btn-link:hover { text-decoration: underline }

/* ── the transcript dialog ──────────────────────────────────────── */
/* Wider than the other two dialogs and for the opposite reason to their being
 * narrow: those hold one field, this holds prose that is read, and a LIORA
 * answer is a page of it. */
.adm-dialog-wide { width: min(860px, calc(100vw - 32px)) }
.adm-convo {
  max-height: min(60vh, 560px);
  overflow-y: auto;
  margin: 14px 0 4px;
}
.adm-convo-turn { padding: 10px 0 }
.adm-convo-turn + .adm-convo-turn {
  border-top: 1px solid color-mix(in srgb, var(--bdr) 45%, transparent);
}
.adm-convo-role {
  margin-bottom: 4px;
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--t2);
}
.adm-convo-user .adm-convo-role { color: var(--acc) }
.adm-convo-bot  .adm-convo-role { color: var(--liora) }
/* pre-wrap, because the answer arrives as markdown-ish plain text with real
 * paragraph breaks in it. Rendering it as HTML would mean trusting model output
 * on the admin page; collapsing the whitespace would make a five-section answer
 * one wall and defeat the reason this dialog exists. */
.adm-convo-text {
  white-space: pre-wrap;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--t1);
}

.adm-subhead-first { margin-top: 4px; padding-top: 0; border-top: 0 }
.adm-subhead .adm-window { margin-left: 8px; font-weight: 400 }

/* ── the Add-a-person dialog ────────────────────────────────────── */
/* A native <dialog>. It renders in the browser's TOP LAYER, which sits above
 * every z-index on the page -- so unlike the account menu, this one cannot be
 * buried by a Leaflet pane or a stacking context it happens to be nested in.
 * That is the main reason to use the element rather than build an overlay. */
.adm-dialog {
  /* `margin: auto` is how a <dialog> centres itself -- the UA stylesheet sets
   * it, and base.css's `* { margin: 0 }` reset wipes it, which pins the dialog
   * to the top-left corner. Restated here rather than exempting <dialog> from
   * the reset, so the fix lives next to the thing it fixes. */
  margin: auto;
  width: min(620px, calc(100vw - 32px));
  padding: 24px;
  color: var(--t0);
  background: var(--bg1);
  border: 0;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .28);
}
:root:not(.light) .adm-dialog,
body:not(.light) .adm-dialog {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 64px rgba(0, 0, 0, .6);
}
.adm-dialog::backdrop { background: rgba(16, 24, 40, .45) }
.adm-dialog h2 { margin: 0 0 4px; font-size: var(--fs-lg); font-weight: 650 }

.adm-dialog-x { position: absolute; top: 12px; right: 12px }
.adm-dialog-x button {
  width: 28px;
  height: 28px;
  font-size: var(--fs-lg);
  line-height: 1;
  color: var(--t2);
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.adm-dialog-x button:hover { background: var(--bg2); color: var(--t0) }

.adm-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.adm-dialog-actions .acct-btn { margin-top: 0 }

.adm-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.adm-new .adm-wide { grid-column: 1 / -1 }
@media (max-width: 520px) { .adm-new { grid-template-columns: 1fr } }
.adm-new label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-caption);
  color: var(--t2);
}
.adm-new input, .adm-new select {
  padding: 9px 11px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--t0);
  background: var(--bg2);
  border: 1px solid transparent;
  border-radius: 0;
  outline: none;
}
.adm-new input:focus, .adm-new select:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);
}

/* ── the "not measured yet" note ────────────────────────────────── */
.adm-todo ul {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--t1);
}
.adm-todo b { color: var(--t0); font-weight: 600 }
/* NO MONOSPACE ANYWHERE ON THIS PAGE -- see the note on .adm-mono. A `code`
 * span still needs to read as a literal (a capability name, a table name), so
 * it keeps its own colour and a faint tint instead of its own typeface. */
.adm-card code {
  padding: 1px 5px;
  font-size: var(--fs-caption);
  color: var(--t1);
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
}
