/* The console's content styles: tables, panels, forms, tabs, badges, cards. The chrome (header,
   side panel, footer, login, focus rings, reduced motion, print) is the Tracxion theme's
   (tracxion/shell, tracxion/patterns), and every colour is a theme token from
   tracxion/tokens/tokens.css, which carries both themes. The tests flatten this file before
   matching a rule (tests/_env.py flat_css), so its layout is free. */

/* names the console used before the theme, each an alias of a theme token so dark mode follows */
:root {
	--surface-tint: var(--surface-2);
	--warn-strong: var(--warn-ink);
	--warn-solid: var(--warn);
	--danger-bg: var(--err-bg);
	--danger-line: var(--danger);
	--btn2-line: var(--line-strong);
	--notice-bg: var(--warn-bg);
	--mono: var(--font-mono);
	/* the live board's state tone: neutral here, and .rb-ok / .rb-warn / .rb-err set it per state */
	--rb-tone: var(--line-strong);
	--rb-bg: var(--neut-bg);
	--rb-ink: var(--neut-ink);
}

/* alert bell: a <details> on the header, so it can show the top alerts. The badge is a COUNT, and
   it shows '?' when the ledger is unreadable, never a calm empty bell. */
.bell {
	position: relative;
}

.bell>summary {
	list-style: none;
}

.bell>summary::-webkit-details-marker {
	display: none;
}

details.editcard>summary {
	cursor: pointer;
	padding: 1rem 1.3rem;
	list-style: none;
}

.bell[open]>summary {
	background: rgb(255 255 255/12%);
}

.tx-count.warn {
	background: var(--warn-bg);
	color: var(--warn-ink);
}

.tx-count.unknown {
	background: var(--neut-bg);
	color: var(--neut-ink);
}

.bell .menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 340px;
	max-width: 78vw;
	background: var(--surface);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-2);
	padding: 6px;
	z-index: 1100;
	font-size: .9375rem;
	text-align: left;
}

.bell .menuhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 10px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 4px;
	font-size: .8rem;
}

.bell .arow {
	display: block;
	padding: 8px 10px;
	border-radius: var(--r-sm);
	text-decoration: none;
	color: var(--ink);
	border-left: 3px solid transparent;
}

.bell .arow:hover {
	background: var(--surface-2);
}

.bell .arow.error {
	border-left-color: var(--danger);
}

.bell .arow.warn {
	border-left-color: var(--warn-solid);
}

.ox-banner b {
	color: inherit;
}

.ox-trace-head b {
	color: var(--heading);
}

.pp-pools b {
	display: block;
	color: var(--heading);
}

.bell .arow b {
	display: block;
	font-size: .8rem;
	font-weight: 600;
}

.bell .arow small {
	display: block;
	color: var(--muted);
	font-size: .7rem;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bell .allink {
	display: block;
	text-align: center;
	padding: 9px;
	font-size: .78rem;
	font-weight: 600;
	border-top: 1px solid var(--line);
	margin-top: 4px;
	text-decoration: none;
	color: var(--heading);
}

.ox-incident ul {
	margin: 4px 0 0;
	padding-left: 1.1rem;
	font-size: 0.85rem;
}

/* the bell's rows are a list of links */
.bell .menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* inside the white dropdown, the dark focus ring: the header's pale one is 1.67:1 there */
.tx-header .bell .menu :focus-visible {
	outline-color: var(--focus-ring);
	outline-offset: -2px;
}

.bell .none {
	padding: 14px 10px;
	text-align: center;
	color: var(--muted);
	font-size: .8rem;
}

.tx-acct-actions .tx-btn-quiet {
	text-decoration: none;
}

main {
	overflow-wrap: break-word;
}

h3 {
	color: var(--heading);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 1.2rem 0 .5rem;
}

/* onboarding's field groups: h2 under the page's h1 (axe heading-order), sized as the h3 they were */
h2.ob-group {
	color: var(--heading);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 1.2rem 0 .5rem;
}

h4 {
	color: var(--heading);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 1rem 0 .4rem;
}

.tx-main a {
	color: var(--accent-ink);
	text-decoration: none;
}

.tx-main a:hover {
	text-decoration: underline;
}

.subtabs a {
	padding: 8px 16px;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	color: var(--muted);
	font-weight: 600;
	font-size: .85rem;
	margin-bottom: -1px;
}

/* a link inside a sentence is underlined: colour alone does not mark it (WCAG 1.4.1; axe's
   link-in-text-block). A link styled as a button keeps its own look. A table cell's sentence is
   the bold-then-link one ("3 failed for good. Inspect"), or a link with a line under it (Fleet's
   last run, then what it delivered); other cell links stand alone. */
.tx-main :is(p, li, dd, .ox-note, .ox-sub, .ox-v, th[scope="rowgroup"]) a:not([class*="btn"]),
.tx-main td > b + a,
.tx-main td > a:not(.ox-name):has(+ .ox-sub) {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.overline,
th,
.cards .panel .lbl {
	font-size: .72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* Responsive space use: sections side-by-side on wide screens, stacked on narrow.
   min(Npx,100%) rather than a bare Npx track: auto-fit honours the minimum even when it exceeds
   the viewport, so a bare 330px/440px track overflows a 320px screen sideways. */
.cols {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(min(440px,100%),1fr));
	gap: 0 24px;
	align-items: start;
}

.cols>div {
	min-width: 0;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(min(330px,100%),1fr));
	gap: 16px;
	margin: .5rem 0;
}

.grid .panel {
	max-width: none;
	margin: 0;
}

/* Form-field grid: auto-fit flows the fields into as many columns as the viewport fits (1 at
   360px, 2 at ~760, 3 at ~1120, 4 at ~1480). Each field is wrapped so a column break can never
   separate a label from its own control. */
.fgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(min(330px,100%),1fr));
	gap: 0 30px;
	align-items: start;
}

.fgrid>.fld {
	min-width: 0;
}

.fgrid>.fld>label:first-child {
	margin-top: .9rem;
}

/* full-bleed row for a field whose explanation is longer than a column is wide, and for actions */
.fgrid>.fld.span {
	grid-column: 1/-1;
}

.panel.wide,
form.panel.wide {
	max-width: 1560px;
}

.subtabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: .2rem 0 1.2rem;
	border-bottom: 1px solid var(--line);
}

.subtabs a:hover {
	background: var(--surface-tint);
	text-decoration: none;
	color: var(--heading);
}

.subtabs a.cur {
	background: var(--surface);
	color: var(--heading);
	border-color: var(--line);
	border-bottom-color: var(--surface);
	box-shadow: inset 0 3px 0 var(--action);
}

/* an edit form folded into its own card, opened from the table's Edit link */
details.editcard {
	padding: 0;
}

.ox-log summary::-webkit-details-marker {
	display: none;
}

details.editcard>summary::-webkit-details-marker {
	display: none;
}

details.editcard[open]>summary {
	border-bottom: 1px solid var(--line);
}

details.editcard>form {
	padding: .2rem 1.3rem 1.1rem;
}

/* a row's rarely-used control, folded to a one-line summary inside its cell */
details.rowedit {
	margin-top: .25rem;
}

/* biome-ignore lint/style/noDescendingSpecificity: details.editcard[open]>summary comes first and wins wherever both match; moving either crosses a rule of equal specificity */
details.rowedit>summary {
	cursor: pointer;
	color: var(--muted);
	font-size: .78rem;
}

/* Numbered pager: shares .subtabs' spacing, but a page number is a destination, not a section, so
   these are boxes rather than folder tabs. min-width keeps 1 and 10 the same size. */
.subtabs.pager {
	border-bottom: 0;
	gap: 4px;
	align-items: center;
}

.subtabs.pager a,
.subtabs.pager .cur {
	min-width: 34px;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: 6px 10px;
	color: var(--accent-ink);
	font-variant-numeric: tabular-nums;
}

.subtabs.pager a:hover {
	background: var(--surface-tint);
	color: var(--heading);
}

.subtabs.pager .cur {
	background: var(--action);
	color: var(--on-action);
	border-color: var(--action);
	font-weight: 700;
}

.subtabs.pager .gap {
	color: var(--muted);
	padding: 0 2px;
	user-select: none;
}

.tablewrap {
	overflow-x: auto;
}

table {
	border-collapse: separate;
	border-spacing: 0;
	margin: .5rem 0;
	background: var(--surface);
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-1);
	font-variant-numeric: tabular-nums;
}

th,
td {
	padding: 9px 14px;
	font-size: .8125rem;
	line-height: 1.45;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

td {
	overflow-wrap: anywhere;
}

th {
	background: var(--surface);
	color: var(--heading);
	border-bottom: 2px solid var(--line-strong);
	white-space: nowrap;
}

/* a row label sits on its value's line, not a column header's, and is only as wide as its text */
th[scope="row"] {
	width: 1%;
	background: none;
	border-bottom: 1px solid var(--line);
}

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

.ox-table td {
	vertical-align: top;
	font-size: 0.85rem;
}

/* the alert routing grid: channels down, levels across, a tick in each cell */
.ox-route th[scope="row"] {
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.85rem;
}

tr:last-child td,
tr:last-child th[scope="row"] {
	border-bottom: none;
}

tbody tr:hover {
	background: var(--surface-tint);
}

.ox-table th {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.78rem;
}

table.dense th,
table.dense td {
	padding: 5px 10px;
	font-size: .75rem;
}

caption {
	caption-side: top;
	text-align: left;
	font-size: .78rem;
	font-weight: 600;
	color: var(--muted);
	padding: 0 0 .35rem;
}

table.compact {
	width: auto;
}

/* a handoff value (a host, a Verint setting name) wraps rather than pushing the table past its panel */
table.handoff td {
	overflow-wrap: anywhere;
}

table.compact th,
table.compact td {
	padding: 5px 12px;
}

.capped {
	max-height: 480px;
	overflow-y: auto;
}

/* biome-ignore lint/style/noDescendingSpecificity: .grid .panel comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-2);
	padding: 1.3rem 1.5rem;
	max-width: 680px;
	margin: .5rem 0;
}

.panel.dangerzone {
	background: var(--danger-bg);
	border-color: var(--danger-line);
}

.tx-main label {
	display: block;
	font-weight: 600;
	font-size: .85rem;
	margin: .7rem 0 .25rem;
}

.tx-main label.chk {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: .9rem;
}

.tx-main input,
.tx-main select,
.tx-main textarea {
	display: block;
	width: 100%;
	padding: 8px 10px;
	margin: 2px 0;
	border: 1px solid var(--input-line);
	border-radius: var(--r-sm);
	font-family: inherit;
	font-size: .9rem;
	background: var(--field-bg);
	color: var(--ink);
}

/* ...but block+100% is a FORM-PANEL rule, and a table cell is where it is wrong: the retry-policy
   micro-form in ops_destinations made every row of the tallest table five stacked lines. Scoped
   back to inline inside a cell, every control there reads better sized to its content. */
.tx-main td input,
.tx-main td select {
	display: inline-block;
	width: auto;
	margin: 0;
	vertical-align: middle;
}

.tx-main .ox-choices input {
	display: inline-block;
	width: auto;
	margin: 0;
}

.tx-main .ox-search input,
.tx-main .ox-search select {
	margin-top: 4px;
}

.tx-main label.chk input {
	width: auto;
	margin: 0;
}

.hint {
	font-size: .78rem;
	color: var(--muted);
	margin: .15rem 0 .4rem;
	font-weight: 400;
}

.tx-main textarea {
	min-height: 5.5rem;
	resize: vertical;
	font-family: var(--mono);
	font-size: .82rem;
	line-height: 1.5;
}

fieldset {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: .4rem 1rem .9rem;
	margin: .8rem 0;
}

legend {
	font-weight: 600;
	font-size: .85rem;
	color: var(--heading);
	padding: 0 .35rem;
}

.tx-main input:focus,
.tx-main select:focus,
.tx-main textarea:focus {
	border-color: var(--accent-ink);
}

/* the login card too: a failed sign-in is the one form that marks a field invalid, and it has no
   .tx-main around it */
.tx-main input.invalid,
.tx-main select.invalid,
.tx-login-card input.invalid {
	border-color: var(--danger);
}

.tx-main button {
	background: var(--action);
	color: var(--on-action);
	border: 0;
	padding: 9px 18px;
	margin-top: 1rem;
	cursor: pointer;
	border-radius: var(--r-sm);
	font-weight: 600;
	font-size: .9rem;
	font-family: inherit;
}

.tx-main button:hover {
	background: var(--action-hover);
}

.tx-main button.danger {
	background: var(--danger);
	color: var(--on-primary);
}

.tx-main button.danger:hover {
	background: var(--danger-2);
}

.tx-main button.warn {
	background: var(--warn-bg);
	color: var(--warn-ink);
	border: 1px solid var(--warn);
}

/* .tx-main .btn2 too: the base `.tx-main button` (0,1,1) outranks a bare `.btn2` (0,1,0), and
   `<button class="btn2">` would take the primary look */
.btn2,
.tx-main .btn2,
.tx-main button.ghost {
	background: var(--surface);
	color: var(--heading);
	border: 1px solid var(--btn2-line);
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--r-sm);
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
	cursor: pointer;
}

.btn2:hover,
.tx-main .btn2:hover,
.tx-main button.ghost:hover {
	background: var(--surface-tint);
	text-decoration: none;
}

.tx-main button.sm {
	padding: 4px 10px;
	margin-top: 0;
	font-size: .78rem;
}

.tx-main button.busy {
	opacity: .65;
	pointer-events: none;
}

.spin {
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 5px;
	vertical-align: -1px;
	border: 2px solid rgb(255 255 255/45%);
	border-top-color: var(--on-action);
	border-radius: 50%;
	animation: sp .6s linear infinite;
}

@keyframes sp {
	to {
		transform: rotate(360deg);
	}
}

.ok {
	color: var(--ok-ink);
	font-weight: 600;
}

.err {
	color: var(--err-ink);
	font-weight: 600;
}

p.warn {
	color: var(--warn-strong);
	font-weight: 600;
}

pre {
	font-family: var(--mono);
	font-size: .8rem;
	line-height: 1.5;
	background: var(--code-bg);
	color: var(--code-ink);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: 10px 12px;
	overflow-x: auto;
	margin: .5rem 0;
}

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

/* a table's first column is what the row is: it keeps whole words, so a column that gives way
   at a laptop width is a later one (names broke every three letters at 1024) */
.ox-table td:first-child:not(.c-opt),
.ox-table td.c-main {
	min-width: 9rem;
	overflow-wrap: break-word;
}

/* a state, and a cell marked .wb, wrap only between words: their column keeps its longest word
   ("needs its own destination" broke as "destinat / ion" while a cadence held its column) */
.ox-table td:is(.c-state, .wb) {
	overflow-wrap: normal;
}

/* columns a list can lose until the page is wide (the Feeds tab's next run and last delivered:
   its Last 24 h says what went out, Schedules when it runs next) */
@container page (width < 1600px) {
	.ox-table .c-wide {
		display: none;
	}
}

/* an id, a slug or a timestamp reads as one token: never break it mid-word */
.nw,
td.nw {
	white-space: nowrap;
	overflow-wrap: normal;
}

code,
.mono {
	font-family: var(--mono);
	font-size: .85em;
	background: var(--code-bg);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 1px 5px;
	color: var(--code-ink);
}

.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--r-pill);
	font-weight: 600;
	font-size: .78rem;
	white-space: nowrap;
}

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

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

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

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

/* inside a label it must not make that label taller than its neighbours' */
label .badge {
	padding-block: 0;
}

.chip {
	display: inline-block;
	background: var(--chip-bg);
	color: var(--chip-ink);
	border-radius: 12px;
	padding: 2px 10px;
	font-size: .78rem;
	font-weight: 600;
	margin: 1px;
}

.stepper {
	display: flex;
	gap: 8px;
	margin: 0 0 1.1rem;
	flex-wrap: wrap;
}

.step {
	padding: 6px 14px;
	border-radius: var(--r-pill);
	background: var(--surface);
	color: var(--muted);
	font-size: .8rem;
	font-weight: 600;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-1);
}

.step.cur {
	background: var(--action);
	color: var(--on-action);
	border-color: transparent;
}

.step.done {
	background: var(--ok-bg);
	color: var(--ok-ink);
	border-color: transparent;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr));
	gap: 16px;
	margin: .5rem 0;
}

.cards .panel {
	min-width: 0;
	max-width: none;
	margin: 0;
}

/* status colour on a tile's number: `.err` alone lost to `.cards .panel .big`'s colour */
.cards .panel .big.err {
	color: var(--err-ink);
}

.cards .panel .big.warn {
	color: var(--warn-strong);
}

.cards .panel .big.ok {
	color: var(--ok-ink);
}

.cards .panel .big {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--heading);
	line-height: 1.1;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

/* auth pages: the standard login card, also for the error, reset and expired-form pages */
.tx-login-card .loginlink {
	text-align: center;
	margin: .8rem 0 0;
}

.tx-login-card a:not(.btn2) {
	color: var(--accent-ink);
}

.tx-login-card .ok,
.tx-login-card .err {
	margin: .4rem 0;
}

/* narrow screens */
@media (width <= 900px) {
	/* the side panel's tab strip shows a shadow on whichever edge has more to see. The 'local'
	   layers scroll with the content and cover the shadow once that edge is reached. */
	.tx-sidebar {
		background: linear-gradient(to right,var(--nav-bg) 30%,transparent) left/28px 100% no-repeat local,linear-gradient(to left,var(--nav-bg) 30%,transparent) right/28px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgb(0 0 0/25%),transparent) left/12px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgb(0 0 0/25%),transparent) right/12px 100% no-repeat scroll,var(--nav-bg);
	}

	.cols {
		grid-template-columns: 1fr;
	}

	/* wide tables scroll within themselves instead of overflowing the page. Not the delivery
	   grid: as a block it lost table-layout: fixed and its name column grew to the longest name,
	   so at 320 no period cell showed; its own wrapper scrolls it */
	table:not(.fg-grid) {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		background: linear-gradient(to right,var(--surface) 30%,transparent) left/40px 100% no-repeat local,linear-gradient(to left,var(--surface) 30%,transparent) right/40px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgb(0 0 0/20%),transparent) left/14px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgb(0 0 0/20%),transparent) right/14px 100% no-repeat scroll,var(--surface);
	}

	/* the table is its own scroller here, so the wrapper must not be a second one */
	.tablewrap {
		overflow-x: visible;
	}

	/* tab strips scroll in one row instead of wrapping into five */
	.subtabs {
		flex-wrap: nowrap;
		overflow: auto hidden;
	}

	.subtabs a {
		white-space: nowrap;
	}
}

/* the bell sits left of the theme menu and avatar: at a phone width a 340px menu anchored to it
   would run off the left edge, so it spans the viewport instead */
@media (width <= 400px) {
	.bell .menu {
		position: fixed;
		top: 56px;
		left: 8px;
		right: 8px;
		width: auto;
		max-width: none;
	}
}


/* ---- console layout components (the approved ops-console redesign, 19 Oct 2026) ------------
   WIDTH: no page caps its width. .ox-page is a size container, and layouts add columns as the space
   available to the page grows (container queries, so the sidebar and window size both count):
     under 1100px of content   one column (phones, narrow windows)
     1100 to 1999px            work + a side column              (a 1440 laptop)
     2000 to 2799px            three columns                     (1920 to 2560 screens)
     2800px and up             four columns                      (ultrawide, e.g. 3440)
   Paragraphs keep a readable measure (about 78 characters) whatever the column width.
   A section's or panel's title line is 33px (25px of title + 8px gap), written as a literal: boxes
   side by side start on one line because every title line has that height. */

/* `hidden` must win over any component's display rule (label.chk is display:flex in wfm.css) */
[hidden] {
	display: none !important;
}

/* ---- page frame ---------------------------------------------------------------------------- */
/* A page scrolls only when its content does not fit the window. The theme's .tx-main keeps its
   distance from the fixed header with a 52px top margin, and body.tx-shell (min-height: 100vh)
   has no padding or border, so that margin collapsed through the body and pushed it down: every
   page was 52px taller than the window and always showed a scrollbar (the user, 21 Oct). A body
   that is its own block formatting context keeps the margin inside. The same rule is in the
   theme package's shell.css, which this console vendors unchanged. */
body.tx-shell {
	display: flow-root;
}

.ox-page {
	container: page / inline-size;
}

.ox-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 4px;
}

.tx-main .ox-head h1,
.tx-main .ox-tenant-head h1 {
	margin: 0;
}

.ox-checked {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--muted);
	font-size: 0.8rem;
}

/* the console's `.tx-main button` would make this a solid primary button */
.tx-main .ox-checked .tx-iconbtn-outline {
	margin: 0;
	padding: 0;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink);
}

/* one plain sentence under a page or section title */
.ox-intro {
	max-width: 78ch;
	margin: 4px 0 16px;
	color: var(--muted);
	font-size: 0.92rem;
}

/* the detail an expert wants and a newcomer does not: folded, one click away */
details.ox-more,
details.ox-detail {
	margin: 0 0 16px;
	font-size: 0.85rem;
}

details.ox-detail {
	grid-column: 2 / -1;
	margin: 2px 0 0;
	font-size: 0.82rem;
}

/* biome-ignore lint/style/noDescendingSpecificity: details.editcard[open]>summary comes first and wins wherever both match; moving either crosses a rule of equal specificity */
details.ox-more > summary,
/* biome-ignore lint/style/noDescendingSpecificity: details.editcard[open]>summary comes first and wins wherever both match; moving either crosses a rule of equal specificity */
details.ox-detail > summary {
	width: fit-content;
	color: var(--accent-ink);
	cursor: pointer;
}

/* ---- breadcrumb and tenant header ---------------------------------------------------------- */
.ox-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 0.82rem;
}

.ox-crumbs [aria-current] {
	color: var(--ink);
}

.ox-tenant-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 14px;
}

.tx-main .ox-tenant-head h1 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.tx-main .ox-tenant-head h1 .badge {
	font-size: 0.72rem;
}

.ox-tenant-meta {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.ox-tenant-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tx-main .ox-tenant-actions button {
	margin: 0;
}

/* .tx-tabs scrolls sideways and its links overhang by 1px, which otherwise adds a vertical scrollbar */
.tx-main .ox-tabs {
	margin-bottom: 20px;
	overflow-y: hidden;
}

/* second-level sections inside a tab: one strip, never two */
.ox-seg {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: -6px 0 18px;
	overflow-x: auto;
}

.tx-main .ox-seg a {
	padding: 5px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	color: var(--ink);
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
}

.tx-main .ox-seg a:hover {
	background: var(--nav-current);
	text-decoration: none;
}

.tx-main .ox-seg a[aria-current="page"] {
	border-color: var(--action);
	background: var(--action);
	color: var(--on-action);
	font-weight: 600;
}

.ox-seg .ox-sep {
	align-self: center;
	width: 1px;
	height: 18px;
	margin: 0 6px;
	background: var(--line-strong);
}

/* ---- the verdict: a page opens with a sentence, not a row of numbers ------------------------ */
.ox-verdict {
	margin: 12px 0 20px;
	padding: 2px 0 2px 16px;
	border-left: 4px solid var(--line-strong);
}

.ox-verdict[data-tone="ok"] {
	border-left-color: var(--ok);
}

.ox-verdict[data-tone="warn"] {
	border-left-color: var(--warn);
}

.ox-verdict[data-tone="crit"] {
	border-left-color: var(--crit);
}

.ox-headline {
	margin: 0;
	color: var(--heading);
	font-size: clamp(1.35rem, 1.05rem + 0.9vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ox-subline {
	max-width: 78ch;
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 0.95rem;
}

/* ---- banners: one line that must be seen (crit default; warn and info tones) ---------------- */
.ox-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 20px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--crit);
	border-radius: var(--r-sm);
	background: var(--err-bg);
	color: var(--err-ink);
	font-size: 0.9rem;
}

.ox-banner[data-tone="warn"] {
	border-left-color: var(--warn);
	background: var(--warn-bg);
	color: var(--warn-ink);
}

.ox-banner[data-tone="info"] {
	border-left-color: var(--action);
	background: var(--surface);
	color: var(--ink);
}

.ox-banner p {
	flex: 1 1 320px;
	max-width: 110ch;
	margin: 0;
}

/* a customer named in the banner reads in the banner's own ink, which is AA on its background */
/* biome-ignore lint/style/noDescendingSpecificity: .subtabs.pager a comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ox-banner p a {
	color: inherit;
	text-decoration: underline;
}

.tx-main .ox-banner button {
	margin: 0;
}

/* ---- sections ------------------------------------------------------------------------------ */
.ox-section {
	margin: 0 0 26px;
	min-width: 0;
}

/* ONE block pattern on every page: a title line of a fixed height, then the box. Sections and
   panels share it (see .ox-panel), so boxes side by side in a row start on the same line. */

.ox-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	min-height: 25px;
	margin: 0 0 8px;
}

.tx-main .ox-section-head h2 {
	margin: 0;
	color: var(--heading);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 25px;
}

.ox-section-head .ox-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 0.85rem;
}

.ox-count {
	color: var(--muted);
	font-weight: 400;
}

/* a filter row above a table: chips that narrow the rows */
.ox-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

/* a filter that changes the page's query is a link: the same pill, the current one pressed */
.tx-main .ox-filters button,
.tx-main .ox-filters a {
	display: inline-block;
	margin: 0;
	padding: 4px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
}

.tx-main .ox-filters button[aria-pressed="true"],
.tx-main .ox-filters a[aria-current="page"] {
	border-color: var(--action);
	background: var(--action);
	color: var(--on-action);
}

/* filters belong on the title line, so they never push a box below its neighbours' */
.ox-section-head .ox-filters {
	margin: 0;
}

.tx-main .ox-section-head button,
.tx-main .ox-section-head .btn2,
.tx-main .ox-section-head .ox-filters button,
.tx-main .ox-section-head .ox-filters a {
	margin: 0;
	padding: 2px 10px;
	font-size: 0.78rem;
	line-height: 1.4;
}

/* an explanation of a box goes UNDER it: nothing sits between a title line and its box */
.ox-after {
	max-width: 78ch;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.82rem;
}

/* ---- needs attention: one row per thing a person must do, worst first ----------------------- */
.ox-queue {
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: var(--shadow-1);
	list-style: none;
	overflow: hidden;
}

.ox-item {
	position: relative;
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr) auto;
	gap: 6px 18px;
	padding: 14px 18px 14px 20px;
	border-top: 1px solid var(--line);
}

.ox-item:first-child {
	border-top: 0;
}

.ox-item::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: var(--line-strong);
}

.ox-item[data-sev="error"]::before {
	background: var(--crit);
}

.ox-item[data-sev="setup"]::before,
.ox-item[data-sev="warn"]::before {
	background: var(--warn);
}

.ox-item[data-sev="ok"]::before {
	background: var(--ok);
}

.ox-sev {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--heading);
	font-size: 0.82rem;
	font-weight: 700;
}

.ox-sev span {
	color: var(--muted);
	font-weight: 400;
}

.tx-main .ox-item h3 {
	margin: 0;
	color: var(--heading);
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.35;
}

.ox-item p {
	max-width: 78ch;
	margin: 4px 0 0;
	color: var(--ink);
	font-size: 0.875rem;
	line-height: 1.5;
}

.ox-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	margin: 8px 0 0;
	padding: 0;
	color: var(--muted);
	font-size: 0.8rem;
	list-style: none;
}

.ox-bad,
.ox-facts .ox-bad {
	color: var(--err-ink);
	font-weight: 600;
}

.ox-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 8px;
}

/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-section-head .ox-filters button comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.tx-main .ox-actions button,
.tx-main .ox-actions .btn2 {
	margin: 0;
	padding: 6px 12px;
	font-size: 0.82rem;
	white-space: nowrap;
}

.ox-empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 20px;
	color: var(--ink);
}

.ox-empty i {
	color: var(--ok);
	font-size: 1.4rem;
}

.ox-empty p {
	max-width: 78ch;
	margin: 0;
}

/* ---- tables: health in words, labels not keys ---------------------------------------------- */

/* positioned, so visually hidden header text (.tx-vh, absolute) stays inside the table's own
   sideways scroll on a phone instead of widening the whole page */
.tablewrap,
.ox-table {
	position: relative;
}

.ox-table .ox-name {
	display: block;
	font-weight: 650;
}

.ox-sub {
	display: block;
	margin-top: 1px;
	color: var(--muted);
	font-size: 0.78rem;
}

.ox-slug {
	font-family: var(--font-mono);
	font-size: 0.75rem;
}

/* wfm.css's global `.ok` colours text green; state reads in ink, the dot carries the colour */
.ox-table .ox-health,
.ox-rows .ox-health {
	color: var(--heading);
	font-weight: 600;
	white-space: nowrap;
}

.ox-table td.ox-act {
	white-space: nowrap;
	text-align: right;
}

.tx-main ol.ox-steps .btn2,
/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-section-head .ox-filters button comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.tx-main ol.ox-steps button {
	margin: 0;
	padding: 3px 10px;
	font-size: 0.78rem;
	white-space: nowrap;
}

.tx-main .ox-table td.ox-act button,
.tx-main .ox-table td.ox-act .btn2 {
	margin: 0 0 0 6px;
	padding: 4px 10px;
	font-size: 0.78rem;
}

/* a row's actions are small forms side by side, not stacked */
.ox-table td.ox-act > form,
form.ox-inline {
	display: inline;
	margin: 0;
}

.ox-cov {
	min-width: 110px;
}

.ox-cov .tx-meter {
	margin: 2px 0 0;
}

/* a row's editor folds open beneath the row, never beside it */
.ox-table tr.ox-editrow > td {
	padding: 0 14px 14px;
	background: var(--surface-2);
}

/* ---- panels: a titled surface for side facts or a form -------------------------------------- */

/* The title sits ABOVE the box, exactly like a section title, so a panel beside a table or a list
   starts its box on the same line. The box is drawn behind everything below the title line
   (::before), whatever the panel holds. */
.ox-panel {
	position: relative;
	isolation: isolate;
	margin: 0 0 20px;
	min-width: 0;
}

.ox-panel::before {
	content: "";
	position: absolute;
	inset: 33px 0 0;
	z-index: -1;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: var(--shadow-1);
}

/* a panel with no title is all box */
.ox-panel:not(:has(> h2, > header h2))::before {
	inset: 0;
}

.tx-main .ox-panel > h2,
.tx-main .ox-panel > header h2 {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	height: 33px;
	margin: 0;
	padding: 0 0 8px;
	border: 0;
	color: var(--heading);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 25px;
	white-space: nowrap;
}

.tx-main .ox-panel > header {
	margin: 0;
	padding: 0;
	border: 0;
}

/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-section-head .ox-filters a comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ox-panel h2 a {
	font-size: 0.85rem;
	font-weight: 500;
}

.ox-body {
	padding: 14px 16px 16px;
}

.ox-body > :first-child {
	margin-top: 0;
}

.ox-panel[data-tone="crit"]::before {
	border-color: var(--crit);
}

.ox-rows {
	margin: 0;
	padding: 4px 16px 8px;
	list-style: none;
}

.ox-rows li,
.ox-rows > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.85rem;
}

details.ox-more > div,
details.ox-detail > div {
	max-width: 90ch;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--ink);
	line-height: 1.55;
}

.ox-rows li:last-child,
.ox-rows > div:last-child {
	border-bottom: 0;
}

.ox-rows dt,
.ox-rows .ox-k {
	color: var(--ink);
}

.ox-rows dt {
	white-space: nowrap;
}

ol.ox-steps > li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	padding: 5px 0 5px 30px;
	font-size: 0.875rem;
	line-height: 1.45;
	counter-increment: step;
}

ol.ox-trace > li {
	position: relative;
	padding: 0 0 16px 26px;
}

.ob-steps li + li {
	margin-top: 4px;
}

/* a list whose values are sentences: the value goes under its name, not squeezed beside it */
.ox-rows.ox-stack li {
	display: block;
}

.ox-rows .ox-v {
	color: var(--muted);
	font-size: 0.8rem;
	text-align: right;
}

.ox-rows.ox-stack .ox-v {
	display: flex;
	margin-top: 2px;
	text-align: left;
}

.ox-rows dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	text-align: right;
}

.ox-rows .ox-v.ox-bad {
	color: var(--err-ink);
	font-weight: 600;
}

/* stored text in a panel wraps: it is read, not aligned */
.ox-panel pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.ox-note {
	margin: 0;
	padding: 0 16px 12px;
	color: var(--muted);
	font-size: 0.8rem;
}

/* ---- form pieces --------------------------------------------------------------------------- */

/* Fields side by side line up: each field is three shared rows (label, hint, box), so a field
   with a long hint, or none, never pushes its box out of line with its neighbours'. A field among
   radio groups (.fld.top) stays top-aligned with them instead: in the subgrid its label was pushed
   to the bottom of a row as tall as the radio group beside it. */
@supports (grid-template-rows: subgrid) {
	.fgrid > .fld:not(.span, .top):has(> input, > select, > textarea) {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		align-content: start;
	}

	.fgrid > .fld:not(.span) > label:first-child {
		grid-row: 1;
		align-self: end;
	}

	.fgrid > .fld:not(.span) > .hint {
		grid-row: 2;
	}

	.fgrid > .fld:not(.span) > :is(input, select, textarea) {
		grid-row: 3;
		align-self: start;
	}
}

/* a radio or checkbox group: the label sits beside its control, the group has a legend */
fieldset.ox-choices {
	margin: 0.9rem 0 0;
	padding: 0;
	border: 0;
}

fieldset.ox-choices > legend {
	margin: 0 0 0.25rem;
	padding: 0;
	font-size: 0.85rem;
}

.ox-choices .ox-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.tx-main .ox-choices label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0.2rem 0;
	font-size: 0.9rem;
	font-weight: 400;
}

.tx-main .ox-choices label.ox-off {
	color: var(--muted);
}

/* an on/off control that saves on its own: role="switch", the label says what it turns on */
.tx-main button.ox-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: 0.82rem;
	font-weight: 500;
}

.tx-main button.ox-switch:hover {
	background: none;
}

.ox-switch::before {
	content: "";
	flex: none;
	width: 32px;
	height: 18px;
	border: 1px solid var(--input-line);
	border-radius: var(--r-pill);
	background: var(--field-bg) radial-gradient(circle at 9px 50%, var(--muted) 0 6px, transparent 6.5px);
}

.ox-switch[aria-checked="true"]::before {
	border-color: var(--action);
	background: var(--action) radial-gradient(circle at 23px 50%, var(--on-action) 0 6px, transparent 6.5px);
}

.ox-formactions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 14px;
}

/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-table td.ox-act button comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.tx-main .ox-formactions button {
	margin: 0;
}

/* a heading inside a panel's form, smaller than the panel title */
.tx-main h3.ox-subhead {
	margin: 18px 0 2px;
	color: var(--heading);
	font-size: 0.9rem;
	font-weight: 700;
}

/* biome-ignore lint/style/noDescendingSpecificity: .ox-table tr.ox-editrow > td comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ox-route td {
	text-align: center;
	vertical-align: middle;
}

.tx-main .ox-route td input {
	width: 18px;
	height: 18px;
}

/* ---- incident: every error or alert says why, what it affects, and how to fix it ------------- */
.ox-incident {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px 28px;
	margin: 10px 0 0;
}

@container page (width >= 1100px) {
	.ox-incident.ox-wide {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
	}
}

.tx-main .ox-incident h4 {
	margin: 0 0 4px;
	color: var(--heading);
	font-size: 0.8rem;
	font-weight: 700;
}

.ox-incident p {
	max-width: 78ch;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
}

/* fix steps are a real sequence, so they are numbered */
ol.ox-steps {
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

ol.ox-steps > li::before {
	content: counter(step);
	position: absolute;
	top: 5px;
	left: 0;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-pill);
	color: var(--heading);
	font-size: 0.72rem;
	font-weight: 700;
}

.ox-trace-head span {
	color: var(--muted);
	font-size: 0.8rem;
}

ol.ox-steps > li > span {
	flex: 1 1 260px;
	max-width: 70ch;
}

.ox-confirm {
	margin: 6px 0 0;
	padding-left: 30px;
	color: var(--muted);
	font-size: 0.8rem;
}

/* ---- logs: one line per event, level in words, fields folded under the line ------------------ */

/* a log list sizes itself (container "log"): in a side panel or on a phone it drops the source
   and customer columns, whatever the window width */
.ox-log {
	container: log / inline-size;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: var(--shadow-1);
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	overflow: hidden;
}

/* biome-ignore lint/style/noDescendingSpecificity: .ox-rows.ox-stack li comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ox-log > li {
	border-top: 1px solid var(--line);
}

.ox-log > li:first-child {
	border-top: 0;
}

/* biome-ignore lint/style/noDescendingSpecificity: details.editcard[open]>summary comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ox-log > li > details > summary,
.ox-log > li > .ox-line {
	display: grid;
	grid-template-columns: 6.6rem 4.2rem 9rem 7rem minmax(0, 1fr);
	gap: 0 12px;
	padding: 6px 12px;
	cursor: pointer;
	list-style: none;
}

.ox-log > li > .ox-line {
	cursor: default;
}

/* a run's own lines are one customer's: no customer column, or the message falls into its track.
   The same specificity as the rule above, so the narrow layout below still wins by order */
.ox-run > li > .ox-line {
	grid-template-columns: 6.6rem 4.2rem 9rem minmax(0, 1fr);
}

.ox-log summary:hover {
	background: var(--surface-2);
}

.ox-log .ox-t {
	color: var(--muted);
	white-space: nowrap;
}

.ox-log .ox-lv {
	font-weight: 600;
}

.ox-log .ox-lv.ox-error {
	color: var(--err-ink);
}

.ox-log .ox-lv.ox-warning {
	color: var(--warn-ink);
}

.ox-log .ox-src,
.ox-log .ox-who {
	overflow: hidden;
	color: var(--muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ox-log .ox-msg {
	color: var(--ink);
	overflow-wrap: anywhere;
}

.ox-log mark {
	padding: 0 2px;
	border-radius: 3px;
	background: var(--chip-bg);
	color: var(--chip-ink);
}

.ox-log dl {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 2px 14px;
	margin: 0;
	padding: 6px 12px 10px calc(6.6rem + 24px);
	background: var(--surface-2);
	color: var(--ink);
}

.ox-log dt {
	color: var(--muted);
}

.ox-log dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.ox-log pre {
	grid-column: 1 / -1;
	margin: 4px 0 0;
	font-size: 0.74rem;
	white-space: pre-wrap;
}


@container log (width < 640px) {
	.ox-log > li > details > summary,
	.ox-log > li > .ox-line {
		grid-template-columns: 5.6rem 3.8rem minmax(0, 1fr);
	}

	.ox-log .ox-src,
	.ox-log .ox-who {
		display: none;
	}

	.ox-log dl {
		padding-left: 12px;
	}
}

/* the Logs page: one light row a line. The time opens the lines around it; a run id links on */
.ox-log.lx-log > li {
	display: grid;
	grid-template-columns: 4.6rem 5.4rem 9rem 7rem minmax(0, 1fr);
	gap: 0 12px;
	padding: 5px 12px;
}

.ox-log.lx-dated > li {
	grid-template-columns: 7.4rem 5.4rem 9rem 7rem minmax(0, 1fr);
}

.lx-log .ox-t {
	color: var(--muted);
	text-decoration: none;
}

.lx-log .ox-t:hover,
.lx-log .ox-t:focus-visible {
	color: var(--ink);
	text-decoration: underline;
}

/* a real-time frame is fixed-width: its spaces are its fields */
.lx-pre {
	white-space: pre-wrap;
}

.lx-run {
	margin-left: 6px;
	font-size: 0.72rem;
	white-space: nowrap;
}

.lx-tabs {
	margin-bottom: 14px;
}

.lx-key {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.78rem;
}

/* a phone, or a side panel: nothing is dropped, the line takes two rows instead */
@container log (width < 640px) {
	.ox-log.lx-log > li,
	.ox-log.lx-dated > li {
		grid-template-columns: auto auto minmax(0, 1fr) auto;
		gap: 0 8px;
	}

	.lx-log .ox-src,
	.lx-log .ox-who {
		display: block;
	}

	.lx-log .ox-who {
		text-align: right;
	}

	.lx-log .ox-msg {
		grid-column: 1 / -1;
	}
}

/* ---- search row: what to find, then narrowing filters ---------------------------------------- */
.ox-search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 14px;
	margin: 0 0 16px;
}

/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-choices label comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ox-search > label {
	flex: 0 1 auto;
	margin: 0;
}

.ox-search > label.ox-grow {
	flex: 1 1 320px;
}

.tx-main .ox-search label {
	margin: 0;
	font-size: 0.78rem;
}

/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-table td.ox-act button comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.tx-main .ox-search button {
	margin: 0;
}

/* ---- trace: one run's path, each stage with its own lines ------------------------------------ */
ol.ox-trace {
	margin: 0;
	padding: 0;
	list-style: none;
}

ol.ox-trace > li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 4px;
	width: 10px;
	height: 10px;
	border-radius: var(--r-pill);
	background: var(--ok);
}

ol.ox-trace > li[data-state="error"]::before {
	background: var(--crit);
}

ol.ox-trace > li[data-state="warn"]::before {
	background: var(--warn);
}

ol.ox-trace > li::after {
	content: "";
	position: absolute;
	top: 20px;
	bottom: 2px;
	left: 8px;
	width: 2px;
	background: var(--line);
}

ol.ox-trace > li:last-child::after {
	display: none;
}

.ox-trace-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0 0 6px;
	font-size: 0.875rem;
}

/* ---- alert guide: a table per group, a page per kind (ox-gmeta / ox-gmean on the kind's page) --- */

.ox-gmeta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	color: var(--muted);
	font-size: 0.78rem;
}

.ox-gmeta .tx-dot {
	color: var(--ink);
	font-weight: 600;
}

.ox-gmean {
	max-width: 78ch;
	margin: 0 0 4px;
	font-size: 0.9rem;
}

/* ---- generic responsive layouts for every page ------------------------------------------- */

/* .ox-cols: equal columns that appear as the page widens (2 from 1600px, 3 from 2400px with .ox-3,
   4 from 2800px with .ox-4). .ox-split: work + a side column from 1100px. */
.ox-cols,
.ox-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 24px;
	align-items: start;
}

@container page (width >= 1100px) {
	.ox-split {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	}
}

/* The Feeds table has eight columns: beside a side column at 1440 its actions scrolled out of view */
@container page (width >= 1100px) and (width < 1600px) {
	.ox-split.ff-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@container page (width >= 1600px) {
	.ox-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container page (width >= 2400px) {
	.ox-cols.ox-3,
	.ox-cols.ox-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ox-split {
		grid-template-columns: minmax(0, 1fr) minmax(min(360px, 100%), 440px);
	}
}

@container page (width >= 2800px) {
	.ox-cols.ox-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---- Fleet: a row of tiles, then Customers and Recent runs, side by side once the page is wide - */
.ox-fleet {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 24px;
	align-items: start;
}

/* the tiles: one column on a phone, two with Next 30 minutes full width below that, three from
   900px of page. Explicit steps, so a tablet never leaves one tile alone on its own row. */
.ox-tiles {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 24px;
}

@container page (width >= 600px) {
	.ox-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ox-tiles > :last-child {
		grid-column: 1 / -1;
	}
}

@container page (width >= 900px) {
	.ox-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ox-tiles > :last-child {
		grid-column: auto;
	}
}

/* a tile row's name stays on one line ("12:21 · Sim Demo"); a long value wraps instead */
.ox-tiles .ox-rows .ox-k {
	white-space: nowrap;
}

.ox-tiles .ox-rows .ox-v {
	text-align: right;
}


/* side by side from a 1500 px page: a 1920 monitor's page is 1658 px (the side panel takes the
   rest), so a 2000 tier never reached one and it got the 1440 layout stretched */
@container page (width >= 1500px) {
	.ox-fleet {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ox-fleet > .ox-tiles {
		grid-column: 1 / -1;
	}
}

@media (width <= 760px) {
	.ox-item {
		grid-template-columns: minmax(0, 1fr);
	}

	.ox-sev {
		flex-direction: row;
		gap: 8px;
	}

	.ox-actions {
		justify-content: flex-start;
	}

	details.ox-detail {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ox-verdict {
		transition: border-color 0.2s ease;
	}
}

/* Page styles: tenant-ops group (Real-time, Portal access, Settings). Tokens only. */

/* ---- Real-time setup: the switch panel beside its targets; each target gets its own column on
   an ultrawide screen ------------------------------------------------------------------------ */
.to-setup {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 24px;
	align-items: start;
}

@container page (width >= 1600px) {
	.to-setup {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	}

	.to-setup > .to-general {
		grid-row: span 3;
	}
}

@container page (width >= 2800px) {
	.to-setup {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.to-setup > .to-general {
		grid-row: auto;
	}
}

/* a target: name and its on/off on one line, settings folded beneath */
/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-panel > header comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.to-target > header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 14px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--line);
}

.tx-main .to-target > header h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.95rem;
}

.to-target .to-dir {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.85rem;
}

.to-target details.ox-more > div {
	max-width: none;
}

/* the settings of one target: up to three columns that widen with the panel, then two, then one.
   A full-width field spans every track, so auto-fit never collapses the empty ones: without the
   30% floor a wide panel made four narrow columns with two of them empty */
.to-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(max(min(240px, 100%), 30%), 1fr));
	gap: 0 18px;
	align-items: start;
}

.to-fields > .to-wide {
	grid-column: 1 / -1;
}

/* ---- state mapping ------------------------------------------------------------------------ */
.to-codes td:first-child {
	white-space: nowrap;
}

/* ---- portal access ------------------------------------------------------------------------ */
.to-access .ox-table td:first-child {
	font-weight: 600;
}

/* ---- settings: three sections side by side on a wide screen (via .ox-cols.ox-3) ------------ */
.to-rule + .to-rule {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.tx-main .to-rule h3 {
	margin: 0 0 4px;
	font-size: 0.92rem;
}

.to-rule .ox-intro {
	margin: 0 0 6px;
	font-size: 0.85rem;
}

.to-bytes {
	margin: 8px 0 0;
	color: var(--warn-ink);
	font-size: 0.85rem;
	font-weight: 600;
}

.to-vendors {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* biome-ignore lint/style/noDescendingSpecificity: .ox-rows.ox-stack li comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.to-vendors li {
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
}

.to-vendors li:last-child {
	border-bottom: 0;
}

/* Offboard: the button reads as unavailable until the typed name matches; the browser refuses to
   submit an invalid form, so the state holds even without script */
.to-offboard:has(input:invalid) button.danger {
	cursor: not-allowed;
	opacity: 0.5;
}

.to-offboard .hint {
	margin-top: 6px;
}

.fgrid>.fld.span .hint {
	max-width: 105ch;
}

/* Page styles: tenant-data group (Overview, Runs, Feeds, Schedules, Destinations).
   Tokens only. Layouts add columns as the page container widens; tiers as in proto.css. */

/* ---- Overview: alerts, feeds, recent runs and the side facts --------------------------------- */
.td-ov {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "att" "grid" "feeds" "runs" "side";
	gap: 0 24px;
	align-items: start;
}

.td-ov > .fg {
	grid-area: grid;
	min-width: 0;
}

.td-ov > .td-att {
	grid-area: att;
}

.td-ov > .td-feeds {
	grid-area: feeds;
}

.td-ov > .td-runs {
	grid-area: runs;
}

.td-ov > .td-side {
	grid-area: side;
	min-width: 0;
}

@container page (width >= 1100px) {
	.td-ov {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
		grid-template-areas: "att att" "grid grid" "feeds side" "runs side";
	}
}

@container page (width >= 2000px) {
	.td-ov {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(320px, 380px);
		grid-template-areas: "att att side" "grid grid side" "feeds runs side";
	}
}

@container page (width >= 2800px) {
	.td-ov {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 380px);
		grid-template-areas: "att att att side" "grid grid grid side" "feeds feeds runs side";
	}
}

/* ---- Destinations: where files go, beside what each feed last delivered ---------------------- */
.td-dest {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 24px;
	align-items: start;
}

@container page (width >= 1500px) {
	.td-dest {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
	}
}

/* ---- shared bits --------------------------------------------------------------------------- */

/* an example of the delivered file name; the strftime pattern sits under it */
.td-file {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	white-space: nowrap;
}

/* the state of a feed or schedule: a word, then why */
.td-state {
	display: block;
	color: var(--heading);
	font-weight: 600;
	white-space: nowrap;
}

/* a short line about the whole tab, e.g. which vendors are provisioned */
.td-line {
	max-width: 110ch;
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 0.85rem;
}

/* the one visible warning that a change alters delivered bytes */

/* warn-ink is the text-safe pair for warn-bg, so the line carries its own background */
.td-bytes {
	width: fit-content;
	max-width: 100ch;
	margin: 8px 0 0;
	padding: 5px 10px;
	border-radius: var(--r-sm);
	background: var(--warn-bg);
	color: var(--warn-ink);
	font-size: 0.82rem;
	font-weight: 600;
}

.tx-main .ox-table td select {
	padding: 4px 8px;
	font-size: 0.82rem;
}

.td-editform .fgrid > .fld > label:first-child {
	margin-top: 0.6rem;
}

/* Page styles: platform group (Alerts, System health, Worker pools, Notifications,
   Capabilities, Audit log, Run detail). Tokens only. */

/* components as a grid that adds columns as the page widens; each card says what it means */
.pp-comps {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

/* biome-ignore lint/style/noDescendingSpecificity: .ox-rows.ox-stack li comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.pp-comps li {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: var(--shadow-1);
}

.pp-comps .tx-dot {
	color: var(--heading);
	font-weight: 650;
}

.pp-comps p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

/* a sparkline drawn as inline SVG; the number beside it is the reading */
.pp-spark {
	display: block;
	width: 120px;
	height: 24px;
	overflow: visible;
}

.pp-spark polyline {
	fill: none;
	stroke: var(--action);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

/* an action that cannot work yet: shown, disabled, with the reason in words beside it */
.tx-main .pp-act button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.pp-act {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-table td.ox-act button comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.tx-main .pp-act button {
	margin: 0;
}

.pp-act .pp-why {
	color: var(--muted);
	font-size: 0.8rem;
}

/* key/value rows inside a padded panel body: the body already pads */
.pp-flush {
	padding: 0;
}

/* pool cards: one per pool, the grid widens with the page */
.pp-pools {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

/* biome-ignore lint/style/noDescendingSpecificity: .ox-rows.ox-stack li comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.pp-pools li {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
}

.pp-pools .pp-num {
	color: var(--heading);
	font-size: 1.4rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Page styles: onboard group. Tokens only. */

/* The wizard frame is .ox-split (the step's form, then "Your choices so far"). On a very wide
   screen the side widens to two panels: the choices AND what the chosen vendor's preset creates. */
.ob-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 24px;
	align-items: start;
	min-width: 0;
}

.ob-wide {
	display: none;
}

@container page (width >= 2800px) {
	.ox-split.ob-wiz {
		grid-template-columns: minmax(0, 1fr) minmax(min(760px, 100%), 880px);
	}

	.ob-side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ob-wide {
		display: block;
	}
}

/* the wizard's form fills its column; the cap is for forms standing alone */
.ox-split.ob-wiz > form.panel.wide {
	max-width: none;
}

/* its sections hold three fields each: three columns that widen with the screen, not six with
   half of them empty; two, then one, as it narrows */
.ox-split.ob-wiz .fgrid {
	grid-template-columns: repeat(auto-fit, minmax(max(min(330px, 100%), 30%), 1fr));
}

/* done steps are links back */
.tx-main .stepper a.step:hover {
	border-color: var(--line-strong);
	text-decoration: none;
}

.tx-main .ob-group {
	margin: 1.6rem 0 0;
	color: var(--heading);
	font-size: 0.95rem;
	font-weight: 700;
}

/* a field group's heading inside the form grid: room above it, except the first under the title */
.tx-main .fgrid > .fld.span:first-child .ob-group {
	margin-top: 0.4rem;
}

/* one line under an option: what it means, or why it is not allowed */
.ob-why {
	display: block;
	margin: -0.1rem 0 0.35rem 1.6rem;
	color: var(--muted);
	font-size: 0.78rem;
}

/* a check result written out, under the action that produced it */
.ob-result {
	margin: 10px 0 0;
	font-size: 0.85rem;
}

/* review rows: what was chosen, then the way back to change it */
.ob-review {
	margin: 0;
	padding: 2px 16px 6px;
}

/* biome-ignore lint/style/noDescendingSpecificity: .to-target details.ox-more > div comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ob-review > div {
	display: grid;
	grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr) auto;
	gap: 2px 16px;
	align-items: baseline;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.875rem;
}

.ob-review > div:last-child {
	border-bottom: 0;
}

.ob-review dt {
	color: var(--muted);
}

.ob-review dd {
	margin: 0;
	color: var(--ink);
}

/* biome-ignore lint/style/noDescendingSpecificity: .tx-main .ox-section-head .ox-filters a comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.ob-review a {
	font-size: 0.82rem;
}

/* what create does, in order: a real sequence, so it is numbered */
.ob-steps {
	max-width: 78ch;
	margin: 0;
	padding: 0 0 0 1.3rem;
	font-size: 0.875rem;
	line-height: 1.6;
}

@media (width <= 600px) {
	.ob-review > div {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ob-review dd {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

/* ---- Alerts: the filter row, the paging row, a sending line, one alert's guide --------------- */
.ox-filterbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: 0 0 10px;
	font-size: 0.85rem;
}

.tx-main .ox-filterbar label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 500;
}

.tx-main .ox-filterbar .ox-pick {
	width: auto;
	margin: 0;
	padding: 4px 8px;
}

.ox-open td:nth-child(4),
.ox-open td:nth-child(5) {
	white-space: nowrap;
}

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

.ox-occ {
	margin: 0;
	padding-left: 1.2em;
	color: var(--muted);
	font-size: 0.8rem;
}

.ox-pagebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin-top: 10px;
	font-size: 0.82rem;
}

.ox-showing {
	margin: 0;
	color: var(--muted);
}

.ox-pagebar .pager {
	margin: 0;
}

.ox-pagebar .ox-per {
	align-items: center;
	margin: 0 0 0 auto;
}

.ox-per-label {
	margin-right: 2px;
	color: var(--muted);
}

.tx-main .ox-pagebar .ox-per a {
	padding: 2px 10px;
}

/* how sending stands, over the notification attempts (not the Logs page's .ox-line) */
.ox-sendline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.875rem;
}

.ox-sendline .tx-dot {
	color: var(--heading);
	font-weight: 600;
}

.ox-howto {
	border-left: 4px solid var(--line-strong);
}

.ox-howto[data-sev="error"] {
	border-left-color: var(--crit);
}

.ox-howto[data-sev="warn"] {
	border-left-color: var(--warn);
}

.ox-howto .ox-body {
	max-width: 82ch;
}

.tx-main .ox-howto h3 {
	margin: 14px 0 4px;
	color: var(--heading);
	font-size: 0.9rem;
}

.tx-main .ox-howto h3:first-child {
	margin-top: 0;
}

.ox-howto .ox-body p,
.ox-howto .ox-body li {
	font-size: 0.9rem;
	line-height: 1.55;
}

.ox-howto .ox-body ul {
	margin: 0;
	padding-left: 1.2em;
}

/* the Alerts summary: an Errors tile and a Warnings tile, filled red or orange while any alert of
   its level is open, on the page's own surface once they are all cleared; each fill has its ink */
.ox-atiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 4px 0 8px;
}

@container page (width < 480px) {
	.ox-atiles {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tx-main .ox-atile {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	gap: 2px 10px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-left: 6px solid var(--line-strong);
	border-radius: var(--r-md);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}

.tx-main a.ox-atile:hover {
	border-color: var(--line-strong);
	text-decoration: none;
}

.ox-atile-n {
	color: var(--heading);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.ox-atile-k {
	color: var(--heading);
	font-weight: 600;
}

.ox-atile-sub {
	grid-column: 1 / -1;
	color: var(--muted);
	font-size: 0.875rem;
}

/* a tile with several causes links each one: the tile's own colour, underlined */
.tx-main .ox-atile-link {
	color: inherit;
	text-decoration: underline;
}

.tx-main .ox-atile[data-tone="crit"] {
	border-color: var(--crit);
	background: var(--err-bg);
}

.tx-main .ox-atile[data-tone="warn"] {
	border-color: var(--warn);
	background: var(--warn-bg);
}

.ox-atile[data-tone="crit"] .ox-atile-n,
.ox-atile[data-tone="crit"] .ox-atile-k,
.ox-atile[data-tone="crit"] .ox-atile-sub {
	color: var(--err-ink);
}

.ox-atile[data-tone="warn"] .ox-atile-n,
.ox-atile[data-tone="warn"] .ox-atile-k,
.ox-atile[data-tone="warn"] .ox-atile-sub {
	color: var(--warn-ink);
}

.ox-atiles-line {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 0.875rem;
}

/* ---- System health: the queue steps and table, charts, trends, meters, the checks ----------- */
.hx-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 26px;
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

.hx-step {
	position: relative;
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--surface);
}

.hx-step + .hx-step::before {
	content: "\2192";
	position: absolute;
	left: -20px;
	color: var(--muted);
}

.hx-stepnote {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.85rem;
}

/* on the row, not its cells: the cells set no colour of their own, so they show it */
.ox-table tr.hx-row-warn {
	background: var(--warn-bg);
	color: var(--warn-ink);
}

/* the last 24 hours: the day's sentence opens the box, so it starts level with the panel beside it */
.hx-charts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
}

@container page (width < 760px) {
	.hx-charts {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hx-charts .hx-dayline {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--ink);
	font-size: 0.85rem;
}

.hx-charts figure {
	margin: 0;
}

.hx-charts figcaption {
	margin-bottom: 4px;
	color: var(--heading);
	font-size: 0.85rem;
	font-weight: 600;
}

/* server-drawn SVG, coloured by token */
.hx-chart {
	display: block;
	width: 100%;
	height: 96px;
}

.hx-chart .hx-ok {
	fill: var(--action);
}

.hx-chart .hx-bad {
	fill: var(--crit);
}

.hx-chart .hx-grid {
	stroke: var(--line);
	stroke-width: 1;
}

.hx-peak,
.hx-xaxis {
	color: var(--muted);
	font-size: 0.72rem;
}

.hx-peak {
	display: block;
	margin-bottom: 2px;
}

.hx-xaxis {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin-top: 2px;
}

.hx-xaxis > span:last-child {
	display: flex;
	justify-content: space-between;
}

.hx-legend {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	gap: 4px 14px;
	margin: 0;
	color: var(--muted);
	font-size: 0.72rem;
}

.hx-key-ok::before,
.hx-key-bad::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 5px;
	border-radius: 2px;
	background: var(--action);
	vertical-align: -1px;
}

.hx-key-bad::before {
	background: var(--crit);
}

.hx-spark {
	width: 150px;
	height: 28px;
	vertical-align: middle;
}

.hx-spark polyline {
	fill: none;
	stroke: var(--action);
	stroke-width: 1.5;
}

.hx-flat {
	color: var(--muted);
	font-size: 0.8rem;
}

.hx-trends {
	padding: 4px 14px 8px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
}

/* a trend row wraps on a phone: its label above, the line and the value below */
.hx-trend {
	flex-wrap: wrap;
}

.ox-rows.hx-trends dt {
	white-space: normal;
}

.hx-trends dd {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.tx-main .hx-sub {
	margin: 16px 0 6px;
	color: var(--heading);
	font-size: 0.9rem;
}

/* a meter in a table cell */
.hx-meter {
	min-width: 160px;
	white-space: nowrap;
}

.hx-meter progress {
	width: 90px;
	margin-right: 8px;
	vertical-align: middle;
}

.ox-table tr.hx-group th {
	padding-top: 12px;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Load > Containers: a tab per role, one line for every warning on any tab, and each container's
   last 24 hours of CPU and memory (server-drawn SVG stretched to its cell; strokes stay 1-2px) */
.hx-tabs {
	margin-bottom: 10px;
}

.hx-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hx-n,
.hx-scale {
	color: var(--muted);
	font-weight: 500;
}

.hx-tabs .tx-dot {
	font-weight: 500;
}

.hx-sum {
	margin: 0 0 10px;
	color: var(--ink);
	font-size: 0.85rem;
}

/* the container's name stays in view while a narrow screen scrolls the charts beside it */
.hx-name {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 9rem;
	max-width: 15rem;
	background: var(--surface);
	white-space: normal;
}

.hx-row-warn .hx-name {
	background: var(--warn-bg);
}

.hx-flag {
	display: block;
	margin-top: 2px;
	font-size: 0.78rem;
}

.hx-note,
.hx-cap {
	display: block;
	color: var(--muted);
	font-size: 0.72rem;
	white-space: nowrap;
}

.hx-cap {
	margin-top: 2px;
}

.hx-hist {
	display: block;
	width: 200px;
	height: 30px;
	overflow: visible;
	touch-action: pan-y;
}

.hx-hist:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

.hx-line {
	fill: none;
	stroke: var(--action);
	stroke-width: 1.5;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.hx-area {
	fill: var(--action);
	opacity: 0.14;
}

.hx-base,
.hx-limit,
.hx-ref,
.hx-hair {
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.hx-base {
	stroke: var(--line-strong);
}

.hx-limit,
.hx-ref {
	stroke: var(--muted);
	stroke-dasharray: 4 3;
}

.hx-ref {
	stroke-dasharray: 1 3;
}

.hx-hair {
	stroke: var(--ink);
}

.hx-defs {
	position: absolute;
}

#hx-hatch line {
	stroke: var(--muted);
	stroke-width: 1.5;
	opacity: 0.55;
}

/* Queues: the actions on a dead-letter count sit under the count, so that column stays narrow,
   and the notes on a queue wrap within their column */
.hx-qact {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 8px;
	margin-top: 4px;
}

.hx-qnote {
	display: block;
	max-width: 16rem;
	margin-top: 2px;
	color: var(--muted);
	font-size: 0.72rem;
}

.hx-end {
	margin-left: auto;
}

.hx-what {
	min-width: 12rem;
}

/* Worker pools: its tabs under the tiles, a pool's tools folded under one summary (a form a line),
   the pressure rule a line per condition, and the request just made marked in its list */
.hx-ptabs {
	margin: 14px 0 12px;
}

.hx-pintro {
	margin: 0;
}

.hx-act-s {
	color: var(--accent-ink);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.hx-actrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 8px 0 0;
	font-size: 0.8rem;
}

.hx-num {
	width: 4.5em;
}

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

.ox-table tr.hx-asked {
	background: var(--surface-2);
}

/* Rebalance, the page's one main action, in a row of its own above the pools */
.hx-rebal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 14px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
}

.hx-rebal-text {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}

/* a pool request's confirmation: what it does, could affect and will not do, then the password */
.hx-confirm {
	max-width: 72ch;
}

.hx-confirm-h {
	margin: 18px 0 6px;
	font-size: 0.95rem;
}

.hx-confirm-list {
	margin: 0;
	padding-left: 1.2em;
}

.hx-confirm-form {
	display: grid;
	gap: 6px;
	max-width: 26rem;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.hx-confirm-go {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 6px;
}

/* the read-out beside the pointer or the focused chart: one for the page, placed by wfm.js */
.hx-tip {
	position: fixed;
	z-index: 60;
	padding: 4px 8px;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	background: var(--surface);
	box-shadow: var(--shadow-2);
	color: var(--ink);
	font-size: 0.78rem;
	white-space: nowrap;
	pointer-events: none;
}

/* the healthy checks in two even columns, every dot under the last */
.hx-chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	margin: 0;
	padding: 12px 16px 6px;
	list-style: none;
	font-size: 0.82rem;
}

/* ---- the avatar's dropdown: who you are, Profile, Password, Sign out --------------------------- */
.tx-header .acct-list {
	min-width: 248px;
	padding: 6px;
}

.acct-list .acct-who {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px 10px;
	border-bottom: 1px solid var(--line);
}

.acct-who .acct-id {
	display: grid;
	min-width: 0;
	line-height: 1.3;
}

.acct-who .acct-id small {
	overflow: hidden;
	color: var(--muted);
	font-size: 0.78rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.acct-list .acct-links {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.tx-header .acct-list .acct-links a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 10px;
	border-radius: 4px;
	color: var(--ink);
	font-size: 0.875rem;
	text-decoration: none;
}

.tx-header .acct-list .acct-links a:hover,
.tx-header .acct-list .acct-links a:focus-visible {
	background: var(--nav-current);
}

/* Sign out is a form (a POST, CSRF-checked), drawn like the links above it */
.tx-header .acct-list .acct-out form {
	margin: 0;
}
.tx-header .acct-list .acct-out button {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 7px 10px;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 0.875rem;
	text-align: left;
	cursor: pointer;
}
.tx-header .acct-list .acct-out button:hover,
.tx-header .acct-list .acct-out button:focus-visible {
	background: var(--nav-current);
}

.acct-list .acct-out {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--line);
}

/* ---- Ops users: the add form and each row's folded changes ------------------------------------ */
.us-add {
	margin: 0 0 16px;
}

/* ---- a customer's Portal access: each row's Change opens its own row (#edit-<id>, no script),
   and the division boxes show only once "Only these divisions" is chosen -------------------- */
.pa-edit {
	display: none;
}

.pa-edit:target {
	display: table-row;
}

.pa-acts {
	display: grid;
	gap: 10px;
	max-width: 64ch;
	padding: 6px 0;
}

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

.pa-divs {
	display: none;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 4px 0 0 26px;
}

.pa-scope:has(input[value="some"]:checked) .pa-divs {
	display: flex;
}

.pa-change {
	white-space: nowrap;
}

.us-change .us-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.ox-table td .us-acts > form {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ox-body .us-link {
	display: block;
	padding: 8px 10px;
	border-radius: var(--r-sm);
	background: var(--surface-2);
	overflow-wrap: anywhere;
	user-select: all;
}

/* ---- the files grid: a feed per row, a period per cell (monitoring/delivery_grid.py) ---------- */
.fg-key {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.78rem;
}

.tx-main .fg-key li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* positioned, so the visually hidden labels in the cells scroll with the grid instead of
   widening the page */
.fg-wrap {
	position: relative;
	overflow-x: auto;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
}

table.fg-grid {
	width: 100%;
	min-width: 760px;
	border-collapse: separate;
	border-spacing: 2px 4px;
	table-layout: fixed;
}

.fg-grid col.fg-namecol {
	width: 250px;
}

.fg-grid col.fg-sumcol {
	width: 200px;
}

.fg-grid .fg-h,
.fg-grid .fg-rowh {
	padding: 0;
	border: 0;
	background: none;
	letter-spacing: normal;
	text-transform: none;
}

.fg-grid .fg-h {
	position: relative;
	height: 16px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
}

.fg-grid .fg-h:not(.fg-corner) > span {
	position: absolute;
	left: 0;
	bottom: 0;
}

/* the feed names stay in view while the grid scrolls on a narrow page */
.fg-grid .fg-rowh {
	position: sticky;
	left: 0;
	z-index: 1;
	padding: 2px 10px 2px 0;
	overflow: hidden;
	background: var(--surface);
	font-size: 0.85rem;
	font-weight: 600;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-grid .fg-rowh .ox-sub {
	font-weight: 400;
}

.fg-c {
	position: relative;
	height: 30px;
	padding: 0;
	border-radius: 3px;
	background: var(--surface-2);
	font-size: 0.75rem;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
}

.fg-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 30px;
	border-radius: 3px;
	color: inherit;
	text-decoration: none;
}

/* white on the success green is 4.5:1 in both themes; inherited ink read 1.3:1 in light */
.fg-c.ok,
.fg-sw.ok {
	background: var(--ok);
	color: var(--tx-white);
}

.fg-c.err,
.fg-sw.err {
	background: var(--crit);
	color: var(--tx-white);
}

.fg-c.partial,
.fg-sw.partial,
.fg-c.run {
	background: var(--warn);
	color: var(--tx-night);
}

.fg-c.norun,
.fg-sw.norun {
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--muted);
	color: var(--muted);
}

.fg-c.wait,
.fg-sw.wait,
.fg-c.off {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--muted);
	color: var(--muted);
}

.fg-c.open,
.fg-sw.open {
	background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, transparent 3px 7px);
	box-shadow: inset 0 0 0 1px var(--muted);
}

.fg-c.none,
.fg-c.nodata,
.fg-sw.nodata {
	background: transparent;
}

.fg-c.nodata,
.fg-sw.nodata {
	box-shadow: inset 0 0 0 1px var(--line);
}

/* midnight UTC: a rule between the days */
.fg-grid .fg-mid {
	box-shadow: -3px 0 0 0 var(--line-strong);
}

.fg-grid .fg-c.wait.fg-mid,
.fg-grid .fg-c.open.fg-mid,
.fg-grid .fg-c.off.fg-mid {
	box-shadow: -3px 0 0 0 var(--line-strong), inset 0 0 0 1px var(--muted);
}

/* past the grid in one key press; shown only while it has keyboard focus */
.fg-skip:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.fg-wide {
	display: block;
	padding: 0 8px;
	overflow: hidden;
	color: var(--muted);
	font-weight: 600;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-c.ok .fg-wide,
.fg-c.err .fg-wide,
.fg-c.ok .fg-link,
.fg-c.err .fg-link {
	color: inherit;
}

.fg-sum {
	padding: 0 0 0 10px;
	font-size: 0.8rem;
	line-height: 1.3;
	vertical-align: middle;
}

.fg-sum-main,
.fg-sum-sub {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-sum-sub {
	color: var(--muted);
}

.fg-sw {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 14px;
	border-radius: 2px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
}

.fg-exc {
	margin: 8px 0 0;
	font-size: 0.85rem;
}

.fg-exc-sum {
	margin: 0 0 4px;
	font-size: inherit;
	font-weight: 600;
}

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

/* one exception: what, why (the destination's error) and the re-send, which a cell links to */
/* biome-ignore lint/style/noDescendingSpecificity: .ox-rows.ox-stack li comes first and wins wherever both match; moving either crosses a rule of equal specificity */
.fg-exc-list > li {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	align-items: baseline;
}

.fg-exc-list .fg-why {
	flex-basis: 100%;
	overflow-wrap: anywhere;
}

.fg-exc-list > li:target {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

.fg-x-act {
	display: inline;
	margin: 0;
}

/* every other hour label on a narrower page, so the labels never collide */
@container page (width < 2000px) {
	.fg-grid .fg-h.fg-odd > span {
		display: none;
	}

	.fg-grid col.fg-namecol {
		width: 200px;
	}

	.fg-grid col.fg-sumcol {
		width: 150px;
	}
}

/* on a phone the feed names keep only their first line, so the periods get the width */
@container page (width < 600px) {
	.fg-grid col.fg-namecol {
		width: 130px;
	}

	.fg-grid .fg-rowh .ox-sub {
		display: none;
	}
}

/* ---- the strip under a customer's name on every tab (ui._STRIP) ------------------------------- */
.ox-pulse {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.ox-pulse-i {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	font-size: 0.85rem;
	white-space: nowrap;
}

.ox-pulse-k {
	color: var(--muted);
	font-weight: 600;
}

.ox-pulse-x {
	color: var(--muted);
}

.ox-pulse-a {
	color: inherit;
	text-decoration: none;
}

.ox-pulse-a:hover {
	text-decoration: underline;
}

/* on a phone the strip scrolls sideways inside itself rather than stacking seven rows */
@container page (width < 600px) {
	.ox-pulse {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}
}

/* ---- Runs: the list, the chosen run beside it, the last 24 hours ------------------------------ */
/* the heading and the controls are one row over all three, so the three start on one line */
.tr-runs {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "tools" "list" "panel" "side";
	gap: 0 24px;
	align-items: start;
}

.tr-tools {
	display: flex;
	flex-wrap: wrap;
	grid-area: tools;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 12px;
}

.tr-list {
	grid-area: list;
	min-width: 0;
}

.tr-panel {
	grid-area: panel;
}

.tr-side {
	grid-area: side;
	min-width: 0;
}

/* the panel sits beside the list only where there is room; below that the run link opens the
   run page, and wfm.js leaves the panel hidden */
@container page (width >= 1100px) {
	.tr-runs {
		grid-template-columns: minmax(0, 1fr) minmax(min(360px, 100%), 440px);
		grid-template-areas: "tools tools" "list panel" "list side";
	}

	.tr-panel {
		position: sticky;
		top: 12px;
		max-height: calc(100vh - 24px);
		overflow-y: auto;
	}
}

@container page (width >= 2000px) {
	.tr-runs {
		grid-template-columns: minmax(0, 1.7fr) minmax(min(460px, 100%), 1fr) minmax(300px, 360px);
		grid-template-areas: "tools tools tools" "list panel side";
	}
}

/* File and Took where there is room; the chosen run shows both */
@container page (width < 2000px) {
	.tr-wide {
		display: none;
	}
}

.tr-feeds {
	margin: 0;
}

.tr-pagebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
}

.tr-sel {
	background: var(--ok-bg);
}

/* the run beside the list (fleet._run_panel) */
.rp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin: 0 0 10px;
}

.rp-where {
	margin: 0 0 6px;
}

.rp-err {
	margin: 0 0 10px;
	padding: 8px 10px;
	border-left: 4px solid var(--crit);
	border-radius: var(--r-sm);
	background: var(--err-bg);
	color: var(--err-ink);
	font-size: 0.85rem;
	overflow-wrap: anywhere;
}

.rp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.rp-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.rp-step {
	display: grid;
	gap: 2px;
	padding: 6px 8px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--ok);
	border-radius: var(--r-sm);
	font-size: 0.85rem;
}

.rp-step[data-tone="crit"] {
	border-top-color: var(--crit);
}

.rp-step[data-tone="warn"] {
	border-top-color: var(--warn);
}

.rp-x {
	color: var(--muted);
}

.rp-h {
	margin: 4px 0 6px;
	font-size: 0.9rem;
}

.rp-del {
	margin: 0 0 8px;
}

.rp-why {
	margin: 8px 0;
	font-size: 0.85rem;
}

.rp-links {
	margin: 10px 0 0;
	font-size: 0.85rem;
}

/* ---- Feeds: the grid's cells in small on each row, settings beside the list ------------------- */
.fg-mini {
	display: grid;
	grid-auto-columns: minmax(2px, 1fr);
	grid-auto-flow: column;
	gap: 1px;
	width: 100%;
	min-width: 120px;
	max-width: 360px;
	height: 16px;
}

.fg-mini .fg-c {
	height: auto;
	border-radius: 1px;
}

/* Runs: the re-run form above the list; its ticks sit in the rows and name it */
.tr-rerun {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0;
}

.tr-tools .tr-h,
.tr-tools .ox-filters {
	margin: 0;
}

/* Last re-run: one line per period, its result under it */
.rr-items {
	display: grid;
	gap: 6px;
	margin: 8px 0;
	padding: 0;
	list-style: none;
}

.rr-w {
	display: block;
	padding-left: 16px;
}

/* ---- Real-time board: the floor by state, then lanes, tiles or a table of it ------------------ */
/* a state's tone, for the lane's edge, a reason tag and a tile (the state's name is always in words) */
.rb-ok {
	--rb-tone: var(--ok);
	--rb-bg: var(--ok-bg);
	--rb-ink: var(--ok-ink);
}

.rb-warn {
	--rb-tone: var(--warn);
	--rb-bg: var(--warn-bg);
	--rb-ink: var(--warn-ink);
}

.rb-err {
	--rb-tone: var(--crit);
	--rb-bg: var(--err-bg);
	--rb-ink: var(--err-ink);
}

/* the board is its own full-width section under Status, not squeezed beside "What it needs" */
.rb-section {
	margin-top: 12px;
}

.rb-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 8px 0 12px;
}

.rb-find {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

/* Lanes: a row per state, the state on the left, its agents flowing across; one page scroll */
.rb-lanes {
	display: grid;
	gap: 8px;
}

.rb-lane {
	display: grid;
	grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
	min-width: 0;
	border: 1px solid var(--line);
	border-left: 4px solid var(--rb-tone);
	border-radius: var(--r-md);
	background: var(--surface);
}

.rb-lane-head {
	padding: 10px 14px;
	border-right: 1px solid var(--line);
	background: var(--surface-2);
}

.rb-h {
	margin: 0;
	font-size: 0.9375rem;
}

.rb-glyph {
	padding: 2px 8px;
}

.rb-long {
	margin: 4px 0 0;
}

.rb-lane-body {
	min-width: 0;
	padding: 10px 12px;
}

.rb-more {
	margin: 8px 0 0;
}

.rb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

details > .rb-list {
	margin-top: 8px;
}

.rb-a {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	max-width: 100%;
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--surface);
	font-size: 0.875rem;
}

.rb-name {
	overflow-wrap: anywhere;
	color: var(--ink);
}

.rb-why {
	padding: 0 6px;
	border-radius: var(--r-pill);
	background: var(--rb-bg);
	color: var(--rb-ink);
	font-size: 0.75rem;
}

.rb-t {
	color: var(--muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

@media (width <= 760px) {
	.rb-lane {
		grid-template-columns: minmax(0, 1fr);
	}

	.rb-lane-head {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
}

/* Compact: a roster under a heading per state, one line per agent; the lines flow into columns
   beneath their own heading, so no column of names is cut off from the state it belongs to */
.rb-group {
	margin: 0 0 16px;
}

.rb-group .rb-h {
	margin-bottom: 4px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--rb-tone);
	font-size: 0.875rem;
}

.rb-roster {
	margin: 0;
	padding: 0;
	list-style: none;
	column-gap: 28px;
	columns: 18rem;
}

.rb-r {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: baseline;
	padding: 4px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.875rem;
	break-inside: avoid;
}

.rb-r .rb-t {
	min-width: 4.5em;
	text-align: right;
}

/* Status: the chips start where the side panel's box does; their own top margin put them 7px lower */
.rt-chips {
	margin-top: 0;
}

/* An info icon beside a button. Its text shows under the row on hover and on keyboard focus; the
   pointer can move onto it (a transparent bridge spans the gap) and Esc hides it (wfm.js): WCAG
   1.4.13. Under the row and no wider than it, so it never pushes the page sideways. */
.ox-infohost {
	position: relative;
}

.ox-info {
	display: inline-flex;
	align-items: center;
	margin-left: -6px;
}

.tx-main .ox-info-btn {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--muted);
	font-size: 1rem;
	cursor: help;
}

.tx-main .ox-info-btn:hover {
	background: var(--surface-2);
	color: var(--ink);
}

.tx-main .ox-info-btn:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

.ox-tip {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	width: min(36rem, 100%);
	padding: 10px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--surface);
	box-shadow: var(--shadow-2);
	color: var(--ink);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.12s ease,
		visibility 0.12s;
}

.ox-tip::before {
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 26px;
	content: "";
}

.ox-info:hover .ox-tip,
.ox-info:focus-within .ox-tip {
	opacity: 1;
	visibility: visible;
}

.ox-info.is-dismissed .ox-tip {
	opacity: 0;
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.ox-tip {
		transition: none;
	}
}

.rb-find .rb-q {
	flex: 1 1 10rem;
	width: auto;
	min-width: 0;
	max-width: 16rem;
	margin: 0;
}

/* ---- a list on a phone: under 600 px each row of an .rt table that has a state is a card, what
   it is on the left (its first cell, or .c-main), its state on the right (.c-state), the other
   cells as lines below and the .c-opt ones hidden. A table that scrolls sideways was no answer
   when the column scrolled away was the state: at 320 no list said whether a row was good. The
   header row stays for screen readers only; group headings and folded edit rows are left alone */
@container page (width < 600px) {
	.ox-table.rt {
		display: block;
		white-space: normal;
		background: none;
	}

	.ox-table.rt thead tr,
	.ox-table.rt tr:not(:has(td, th[scope="rowgroup"])) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	/* a block, so each card is the full width; the rows that are not cards keep their own display
	   (a folded edit row stays hidden until it is opened) */
	.ox-table.rt tbody {
		display: block;
	}

	/* the name keeps at least 8rem: an auto state column grew to its longest reason (Fleet's "1 error,
	   3 feeds waiting for a destination, ...") and printed over the name */
	.ox-table.rt tr:has(> .c-state) {
		display: grid;
		grid-template-columns: minmax(8rem, 1fr) auto;
		gap: 2px 12px;
		padding: 10px 12px;
		border-bottom: 1px solid var(--line);
	}

	.ox-table.rt tr:has(> .c-state) > td {
		grid-column: 1 / -1;
		padding: 0;
		border: 0;
	}

	/* both sides wrap (the overlap probe, 320 px): an unbroken name (an e-mail) ran under the
	   state, and a state that would not wrap ("off: needs its own destination") spilled left from
	   its column over the name */
	.ox-table.rt tr:has(> .c-state) > :is(td:first-child, .c-main) {
		grid-row: 1;
		grid-column: 1;
		font-weight: 600;
		overflow-wrap: anywhere;
	}

	.ox-table.rt tr:has(> .c-state) > .c-state {
		grid-row: 1;
		grid-column: 2;
		justify-self: end;
		min-width: 0;
		text-align: right;
		white-space: normal;
	}

	.ox-table.rt tr:has(> .c-state) > .c-state * {
		white-space: normal;
	}

	.ox-table.rt .c-opt,
	.tr-rerun {
		display: none;
	}
}

/* ---- the files grid on a phone: 48 cells of ten pixels are no use there, the summary and the
   exceptions are. Under 600 px each feed is one line, its name (with where it goes) and its last
   24 hours ("47 sent, 1 failed"); the Exceptions fold under it is still the way to a run. The key
   explains cells that are not drawn, so it goes too ---- */
@container page (width < 600px) {
	/* no column widths and no 760 px floor: the table is its two real columns, the feed and its
	   last 24 hours */
	table.fg-grid {
		width: 100%;
		min-width: 0;
		table-layout: auto;
	}

	.fg-grid colgroup {
		display: none;
	}

	.fg-grid th.fg-h:not(.fg-corner),
	.fg-grid td.fg-c,
	.fg .fg-key {
		display: none;
	}

	.fg-grid .fg-rowh .ox-sub {
		display: block;
	}

	/* the full grid keeps names and totals on one line; as a summary they wrap */
	.fg-grid :is(.fg-rowh, .fg-sum, .fg-rowh .ox-sub, .fg-sum-sub) {
		white-space: normal;
		overflow-wrap: break-word;
	}
}

/* ---- Fleet on a narrow page: the tiles stay first (user, 21 Oct) but say only what needs a look,
   so the customers are not three screens down on a phone. Platform lists the parts that are not
   running (or one line that every part is), the last day keeps files delivered and failed (and any
   row in error), the next half hour its first three runs ---- */
.ox-allok {
	display: none;
}

@container page (width < 900px) {
	.ox-panel[aria-labelledby="plat-h"] .ox-rows li:has(.tx-dot.ok) {
		display: none;
	}

	.ox-panel[aria-labelledby="plat-h"]:not(:has(.ox-rows .tx-dot:not(.ok))) .ox-allok {
		display: block;
	}

	.ox-panel[aria-labelledby="day-h"] .ox-rows > div:nth-child(n + 3):not(:has(.err)) {
		display: none;
	}

	.ox-panel[aria-labelledby="next-h"] .ox-rows li:nth-child(n + 4) {
		display: none;
	}
}

/* ---- narrow pages: the customer's tab strip shows a shadow on the edge that has more tabs (at 320
   it ended exactly after Schedules, with no hint of four more), as the side panel's strip does;
   the Last file chip keeps its time, which opens the run, and drops the file's name until there is
   room for it ---- */
@container page (width < 900px) {
	.tx-main .ox-tabs {
		background:
			linear-gradient(to right, var(--bg-1) 30%, transparent) left / 28px 100% no-repeat local,
			linear-gradient(to left, var(--bg-1) 30%, transparent) right / 28px 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 22%), transparent) left / 12px 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 22%), transparent) right / 12px 100% no-repeat scroll,
			var(--bg-1);
	}
}

@container page (width < 1600px) {
	.ox-pulse-file {
		display: none;
	}
}

/* the run page's way sideways: the same feed's earlier and later periods */
.rp-near {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

.rp-near .rp-later {
	margin-left: auto;
}

/* ---- the run page from a 1500 px page: its answer beside the detail and the log lines, instead
   of one 1600 px column; a label and its value no further apart than a reader's eye travels ---- */
@container page (width >= 1500px) {
	.rp-page {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 0 28px;
		align-items: start;
	}
}

.rp .ox-rows {
	max-width: 640px;
}

/* the Audit log: its filter is first in the page (and the keyboard's order); from 1100 px the
   table takes the first column and the filter sits beside it */
@container page (width >= 1100px) {
	.au-split > aside {
		grid-row: 1;
		grid-column: 2;
	}

	.au-split > .ox-section {
		grid-row: 1;
		grid-column: 1;
	}
}

/* a phone: the files grid's two remaining headings keep their words, and a filter's select never
   widens the page past the screen (Runs' feed select did, by 27 px at 320) */
@container page (width < 600px) {
	.fg-grid th.fg-corner {
		width: auto;
		min-width: max-content;
	}

	/* a percentage of a shrink-to-fit label resolves to nothing: a select's longest option set its
	   width, so it is capped in rem */
	.tx-main .ox-filterbar .ox-pick {
		min-width: 0;
		max-width: 11rem;
	}

	/* the grid as a summary is two columns that wrap: it is not a sideways scroller */
	.fg-wrap {
		overflow-x: visible;
	}
}

/* ---- two-factor sign-in (web/mfa.py): the QR code, its key, the recovery codes ---------------- */
/* the code is black on white in both themes, with its quiet zone: phones read it either way */
.mfa-qr {
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0;
	max-width: 100%;
}
.mfa-qr-svg {
	display: block;
	max-width: 100%;
	height: auto;
	background: var(--tx-white);
	border-radius: var(--r-sm);
}
.mfa-key {
	font-family: var(--mono);
	overflow-wrap: anywhere;
	user-select: all;
}
.mfa-steps {
	margin: 0 0 8px;
	padding-left: 20px;
}
.mfa-codes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	gap: 8px 16px;
	margin: 12px 0;
	padding-left: 24px;
	font-family: var(--mono);
	user-select: all;
}
.mfa-act + .mfa-act {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
