/**
 * IPMX Registry portal design system (docs/test-administration-v3-design.md §1.4).
 *
 * Buildless, hand-authored. Everything is scoped under `.pui` (portal UI) so it
 * cannot bleed into the host theme, and every value a page could want is a token
 * on `.pui`; views never hard-code a colour, size or radius. Rendered by the PHP
 * helper `Portal\Ui`, which owns the component vocabulary below. A page that needs
 * something not here is a design-system change, not a page change.
 *
 * Light theme only (the host sites do not support dark mode). Print tokens flatten
 * shadows and borders at the end of the file.
 */

/* =========================================================================
   Tokens
   ========================================================================= */

.pui {
	/* Type: one family (the host's), one weight for body, one for headings. */
	--pui-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pui-size-1: 18px;
	--pui-size-2: 20px;
	--pui-size-3: 24px;
	--pui-size-4: 32px;
	--pui-size-small: 16px;
	--pui-weight-body: 400;
	--pui-weight-head: 700;
	--pui-leading: 1.5;

	/* Space: a 4px scale. */
	--pui-space-1: 4px;
	--pui-space-2: 8px;
	--pui-space-3: 12px;
	--pui-space-4: 16px;
	--pui-space-5: 24px;
	--pui-space-6: 32px;
	--pui-space-7: 48px;

	--pui-radius: 6px;
	--pui-shadow: 0 2px 10px rgba(16, 24, 40, 0.10);

	/* Colour roles, each with its on-colour. Neutral everywhere except the one
	   accent, which is the host brand teal (AA on white). */
	--pui-surface: #ffffff;
	--pui-surface-soft: #f6f7f9;
	--pui-border: #d0d5dd;
	--pui-border-strong: #98a2b3;
	--pui-text: #111418;
	--pui-text-muted: #4b5563;
	--pui-accent: #007d8f;
	--pui-accent-hover: #00606e;
	--pui-on-accent: #ffffff;
	--pui-accent-soft: #e3f3f5;
	--pui-success: #0a6b3d;
	--pui-on-success: #ffffff;
	--pui-success-soft: #e4f4ea;
	--pui-warning: #8a4b00;
	--pui-on-warning: #ffffff;
	--pui-warning-soft: #fff1dc;
	--pui-danger: #b42318;
	--pui-on-danger: #ffffff;
	--pui-danger-soft: #fdecea;

	--pui-focus-ring: 0 0 0 3px rgba(0, 125, 143, 0.40);
	--pui-target: 44px;

	/* Layout: a single readable text column; tables may run to the wide width. */
	--pui-measure: 860px;
	--pui-wide: 1140px;

	box-sizing: border-box;
	color: var(--pui-text);
	background: var(--pui-surface);
	font-family: var(--pui-font);
	font-size: var(--pui-size-1);
	font-weight: var(--pui-weight-body);
	line-height: var(--pui-leading);
	-webkit-text-size-adjust: 100%;
	/* clip, not hidden: hidden would make this the scroll container of every
	   sticky descendant, and the results sheet's bar would never stick. */
	overflow-x: clip;
}

/* Host re-skin seam: the AIMS host uses its own teal and type family. */
.pui[data-ipmx-brand="aims"] {
	--pui-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pui-accent: #007788;
	--pui-accent-hover: #005b68;
	--pui-accent-soft: #e2f1f3;
	--pui-focus-ring: 0 0 0 3px rgba(0, 119, 136, 0.40);
}

.pui *,
.pui *::before,
.pui *::after {
	box-sizing: inherit;
}

/* The content of a details element sits in a slot that does not pass
   box-sizing down, so a panel's fields would grow past their height. */
.pui details > * { box-sizing: border-box; }

/* The margin resets carry no specificity of their own (:where), so a
   component's single class sets its own margin without restating the scope. */
:where(.pui) h1,
:where(.pui) h2,
:where(.pui) h3,
:where(.pui) h4 {
	margin: 0;
}

.pui h1,
.pui h2,
.pui h3,
.pui h4 {
	color: var(--pui-text);
	font-family: inherit;
	font-weight: var(--pui-weight-head);
	line-height: 1.25;
}

.pui h1 { font-size: var(--pui-size-4); }
.pui h2 { font-size: var(--pui-size-3); }
.pui h3 { font-size: var(--pui-size-2); }
.pui h4 { font-size: var(--pui-size-1); }

:where(.pui) p,
:where(.pui) ul,
:where(.pui) ol {
	margin: 0 0 var(--pui-space-4);
}

.pui a {
	color: var(--pui-accent);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.pui a:hover { color: var(--pui-accent-hover); }

.pui a:focus-visible,
.pui button:focus-visible,
.pui input:focus-visible,
.pui select:focus-visible,
.pui textarea:focus-visible,
.pui summary:focus-visible {
	outline: none;
	box-shadow: var(--pui-focus-ring);
	border-radius: var(--pui-radius);
}

.pui .pui-muted { color: var(--pui-text-muted); }
.pui .pui-small { font-size: var(--pui-size-small); }
.pui .pui-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* =========================================================================
   Shell: portal header, tab row, content column, footer
   ========================================================================= */

.pui-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--pui-space-3) var(--pui-space-5);
	max-width: var(--pui-wide);
	margin: 0 auto;
	padding: var(--pui-space-4) var(--pui-space-4);
	border-bottom: 1px solid var(--pui-border);
}

.pui .pui-shell__brand {
	display: inline-flex;
	text-decoration: none;
	align-items: center;
	gap: var(--pui-space-3);
	min-height: var(--pui-target);
	color: var(--pui-text);
	text-decoration: none;
}

.pui .pui-shell__brand:hover { color: var(--pui-text); text-decoration: none; }

.pui-shell__mark {
	display: block;
	width: auto;
	height: 36px;
}

.pui-shell__wordmark {
	font-size: var(--pui-size-2);
	font-weight: var(--pui-weight-head);
	letter-spacing: 0.01em;
}

.pui-shell__surface {
	padding-left: var(--pui-space-3);
	border-left: 2px solid var(--pui-accent);
	color: var(--pui-text-muted);
	font-size: var(--pui-size-1);
}

.pui-shell__context {
	flex: 1 1 200px;
	min-width: 0;
	color: var(--pui-text-muted);
	font-size: var(--pui-size-1);
	overflow-wrap: anywhere;
}

.pui-shell__user {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-2) var(--pui-space-4);
	min-height: var(--pui-target);
	font-size: var(--pui-size-small);
	color: var(--pui-text-muted);
}

.pui-shell__user a {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
}

.pui-tabs {
	max-width: var(--pui-wide);
	margin: 0 auto;
	padding: 0 var(--pui-space-4);
	border-bottom: 1px solid var(--pui-border);
}

.pui-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pui-space-1) var(--pui-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pui .pui-tabs__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
	padding: var(--pui-space-2) 0;
	border-bottom: 3px solid transparent;
	color: var(--pui-text-muted);
	text-decoration: none;
	font-weight: var(--pui-weight-head);
}

.pui .pui-tabs__link:hover {
	color: var(--pui-text);
	border-bottom-color: var(--pui-border-strong);
}

.pui .pui-tabs__link.is-current {
	color: var(--pui-text);
	border-bottom-color: var(--pui-accent);
}

.pui-page {
	max-width: var(--pui-wide);
	margin: 0 auto;
	padding: var(--pui-space-6) var(--pui-space-4) var(--pui-space-7);
}

.pui-page > * {
	max-width: var(--pui-measure);
}

/* One width per page. A page of tables is wide: its header, its help box and
   every card run to the shell width, and only the prose keeps the measure. */
.pui-page > .pui-wide,
.pui-page > .pui-table-wrap,
.pui-page--wide > * {
	max-width: none;
}

.pui-help__body,
.pui-section__intro,
.pui-page-header__text {
	max-width: var(--pui-measure);
}

.pui-table .pui-input,
.pui-table .pui-select {
	min-width: 160px;
	max-width: 320px;
}

/* A field typed into on every row of a wide table (the Location of each
   device on the Equipment tab, bead 2g7g.39.15): narrow enough that the
   table keeps its columns on the page. */
.pui-table .pui-input--cell { min-width: 120px; }

.pui-shell-footer {
	max-width: var(--pui-wide);
	margin: 0 auto;
	padding: var(--pui-space-4);
	border-top: 1px solid var(--pui-border);
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

/* =========================================================================
   Page header: title, the one-sentence purpose, the single primary action
   ========================================================================= */

.pui-page-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--pui-space-4) var(--pui-space-5);
	margin-bottom: var(--pui-space-5);
}

.pui-page-header__text {
	flex: 1 1 320px;
	min-width: 0;
}

.pui .pui-page-header__crumb {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
	margin-bottom: var(--pui-space-1);
	font-size: var(--pui-size-small);
}

.pui-page-header__title {
	overflow-wrap: anywhere;
}

.pui-page-header__purpose {
	margin: var(--pui-space-2) 0 0;
	color: var(--pui-text-muted);
}

.pui-page-header__action {
	flex: 0 0 auto;
	padding-top: var(--pui-space-2);
}

/* The index of a long page: its cards by name, each a link to the card. */
.pui-index { margin: 0 0 var(--pui-space-5); }

.pui-index__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--pui-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pui-index__label {
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

.pui .pui-index a {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
}

/* A card reached from a link clears the top of the window. */
.pui-section[id],
.pui-anchor { scroll-margin-top: var(--pui-space-4); }

/* =========================================================================
   Buttons: one primary per page, secondary for the rest, danger inside confirm
   panels, link for text-only actions
   ========================================================================= */

.pui .pui-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--pui-space-2);
	min-height: var(--pui-target);
	min-width: var(--pui-target);
	padding: var(--pui-space-2) var(--pui-space-5);
	border: 2px solid transparent;
	border-radius: var(--pui-radius);
	font: inherit;
	font-weight: var(--pui-weight-head);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pui .pui-button--primary {
	background: var(--pui-accent);
	border-color: var(--pui-accent);
	color: var(--pui-on-accent);
}

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

.pui .pui-button--secondary {
	background: var(--pui-surface);
	border-color: var(--pui-border-strong);
	color: var(--pui-text);
}

.pui .pui-button--secondary:hover {
	border-color: var(--pui-text);
	color: var(--pui-text);
}

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

.pui .pui-button--danger:hover {
	background: #8f1b12;
	border-color: #8f1b12;
	color: var(--pui-on-danger);
}

.pui .pui-button--link {
	padding-left: var(--pui-space-2);
	padding-right: var(--pui-space-2);
	background: transparent;
	color: var(--pui-accent);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	font-weight: var(--pui-weight-body);
}

.pui .pui-button--link:hover { color: var(--pui-accent-hover); }

.pui .pui-button[disabled],
.pui .pui-button[aria-disabled="true"] {
	opacity: 0.6;
	cursor: progress;
}

.pui-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-3) var(--pui-space-4);
	margin: var(--pui-space-4) 0 0;
}

.pui-actions--tight { margin-top: 0; }

/* =========================================================================
   Help box: the collapsible "About this page" at the top of each page
   ========================================================================= */

.pui-help {
	margin: 0 0 var(--pui-space-5);
	border: 1px solid var(--pui-border);
	border-left: 4px solid var(--pui-accent);
	border-radius: var(--pui-radius);
	background: var(--pui-surface-soft);
}

.pui-help__summary {
	display: flex;
	align-items: center;
	gap: var(--pui-space-3);
	min-height: var(--pui-target);
	padding: var(--pui-space-2) var(--pui-space-4);
	cursor: pointer;
	font-weight: var(--pui-weight-head);
	list-style: none;
}

.pui-help__summary::-webkit-details-marker { display: none; }

.pui-help__summary::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--pui-text-muted);
	border-bottom: 2px solid var(--pui-text-muted);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}

.pui-help[open] .pui-help__summary::before { transform: rotate(45deg); }

.pui-help__body {
	padding: 0 var(--pui-space-4) var(--pui-space-4);
}

.pui-help__body > :last-child { margin-bottom: 0; }

/* =========================================================================
   Section card: one bounded group of fields or one table
   ========================================================================= */

.pui-section {
	margin: 0 0 var(--pui-space-5);
	border: 1px solid var(--pui-border);
	border-radius: var(--pui-radius);
	background: var(--pui-surface);
}

.pui-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--pui-space-2) var(--pui-space-4);
	padding: var(--pui-space-4) var(--pui-space-5) 0;
}

/* The intro sits a step under the title and inside the card's padding. */
.pui-section__intro {
	margin: var(--pui-space-3) var(--pui-space-5) 0;
	color: var(--pui-text-muted);
}

.pui .pui-section__learn {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
	font-size: var(--pui-size-small);
	white-space: nowrap;
}

.pui-section__body {
	padding: var(--pui-space-4) var(--pui-space-5) var(--pui-space-5);
}

.pui-section__body > :last-child { margin-bottom: 0; }

.pui-section__body > .pui-table-wrap {
	margin-left: calc(-1 * var(--pui-space-5));
	margin-right: calc(-1 * var(--pui-space-5));
}

.pui-section__body > .pui-table-wrap .pui-table th:first-child,
.pui-section__body > .pui-table-wrap .pui-table td:first-child {
	padding-left: var(--pui-space-5);
}

.pui-section__body > .pui-table-wrap .pui-table th:last-child,
.pui-section__body > .pui-table-wrap .pui-table td:last-child {
	padding-right: var(--pui-space-5);
}

/* A table that ends a card sits on the card's bottom edge, with no empty
   strip under its last row. */
.pui-section__body > .pui-table-wrap:last-child {
	margin-bottom: calc(-1 * var(--pui-space-5) + var(--pui-space-2));
}

.pui-section__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-3) var(--pui-space-4);
	padding: var(--pui-space-4) var(--pui-space-5);
	border-top: 1px solid var(--pui-border);
	background: var(--pui-surface-soft);
	border-radius: 0 0 var(--pui-radius) var(--pui-radius);
}

/* =========================================================================
   Fields: label, one-line explanation, control, inline error
   ========================================================================= */

.pui-field {
	display: block;
	margin: 0 0 var(--pui-space-5);
}

.pui-field:last-child { margin-bottom: 0; }

.pui-field__label {
	display: block;
	font-weight: var(--pui-weight-head);
}

.pui-field__required {
	color: var(--pui-text-muted);
	font-weight: var(--pui-weight-body);
}

.pui-field__hint {
	display: block;
	margin: var(--pui-space-1) 0 var(--pui-space-2);
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

.pui-field__error {
	display: block;
	margin: var(--pui-space-2) 0 0;
	color: var(--pui-danger);
	font-weight: var(--pui-weight-head);
}

.pui-field--invalid .pui-input,
.pui-field--invalid .pui-select,
.pui-field--invalid .pui-textarea {
	border-color: var(--pui-danger);
}

.pui-input,
.pui-select,
.pui-textarea {
	display: block;
	width: 100%;
	max-width: 560px;
	min-height: var(--pui-target);
	padding: var(--pui-space-2) var(--pui-space-3);
	border: 1px solid var(--pui-border-strong);
	border-radius: var(--pui-radius);
	background: var(--pui-surface);
	color: var(--pui-text);
	font: inherit;
	line-height: 1.4;
}

.pui-input--short,
.pui-select--short { max-width: 280px; }

.pui-textarea {
	min-height: 7rem;
	resize: vertical;
}

.pui-select {
	padding-right: calc(var(--pui-space-3) + 24px);
	background-image: linear-gradient(45deg, transparent 50%, var(--pui-text) 50%), linear-gradient(135deg, var(--pui-text) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	-webkit-appearance: none;
	appearance: none;
}

.pui-input:focus,
.pui-select:focus,
.pui-textarea:focus {
	outline: none;
	border-color: var(--pui-accent);
	box-shadow: var(--pui-focus-ring);
}

.pui-input[disabled],
.pui-select[disabled],
.pui-textarea[disabled] {
	background: var(--pui-surface-soft);
	color: var(--pui-text-muted);
	cursor: not-allowed;
}

.pui-file {
	display: block;
	width: 100%;
	max-width: 560px;
	min-height: var(--pui-target);
	padding: var(--pui-space-2);
	border: 1px dashed var(--pui-border-strong);
	border-radius: var(--pui-radius);
	background: var(--pui-surface-soft);
	font: inherit;
}

.pui-file::file-selector-button {
	min-height: 32px;
	margin-right: var(--pui-space-3);
	padding: 0 var(--pui-space-3);
	border: 2px solid var(--pui-border-strong);
	border-radius: var(--pui-radius);
	background: var(--pui-surface);
	color: var(--pui-text);
	font: inherit;
	font-weight: var(--pui-weight-head);
	cursor: pointer;
}

/* Reveal block: fields a checkbox shows or hides; indented under the box. */
.pui-reveal {
	margin: var(--pui-space-2) 0 var(--pui-space-5);
	padding: var(--pui-space-4) var(--pui-space-5);
	border-left: 4px solid var(--pui-accent-soft);
	background: var(--pui-surface-soft);
	border-radius: var(--pui-radius);
}

.pui-reveal[hidden] { display: none; }

.pui-reveal > :last-child { margin-bottom: 0; }

/* Facts list: label and value rows for a review step. */
.pui-facts {
	margin: 0 0 var(--pui-space-4);
	padding: 0;
}

.pui-facts__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pui-space-2) var(--pui-space-4);
	padding: var(--pui-space-2) 0;
	border-bottom: 1px solid var(--pui-border);
}

.pui-facts__row:last-child { border-bottom: 0; }

.pui-facts__label {
	flex: 0 0 240px;
	max-width: 100%;
	margin: 0;
	font-weight: var(--pui-weight-head);
}

.pui-facts__value {
	flex: 1 1 280px;
	margin: 0;
}

/* Embedded scope: the design system inside another page (the vendor portal's
   registration steps this phase). Same tokens, no shell. The host shell's
   generic `a` and `button` rules (.ipmx-portal a, .ipmx-portal button) outrank
   a single-class component, so the component rules that matter are restated
   with the scope in front, the same pattern as .pui .pui-button. */
.pui--embedded {
	margin: var(--pui-space-5) 0;
	padding: 0;
	overflow: visible;
}

.pui.pui--embedded a {
	color: var(--pui-accent);
	text-decoration: underline;
}

.pui.pui--embedded a:hover { color: var(--pui-accent-hover); }

/* The vendor portal's pages (bead 2g7g.15): one scope around the header, the
   tab row and the page's sections. A section that carries its own embedded
   scope inside it adds no margin of its own, so cards keep one rhythm. */
.pui--embedded .pui--embedded { margin: 0; }

.pui-portal-top {
	align-items: center;
	margin-bottom: var(--pui-space-2);
}

.pui .pui-portal-top .pui-shell__user { margin: 0; }

.pui--embedded .pui-tabs {
	max-width: none;
	margin: 0 0 var(--pui-space-5);
	padding: 0;
}

.pui--embedded .pui-tabs__list { margin: 0; }

/* The embedded scope underlines and colours every link; a tab is not one. */
.pui.pui--embedded a.pui-tabs__link {
	color: var(--pui-text-muted);
	text-decoration: none;
}

.pui.pui--embedded a.pui-tabs__link:hover,
.pui.pui--embedded a.pui-tabs__link.is-current { color: var(--pui-text); }

/* A heading row above a run of cards: the heading and its guide link. */
.pui-portal-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--pui-space-2) var(--pui-space-4);
	margin: var(--pui-space-6) 0 var(--pui-space-4);
}

/* One registration: the event name with its status pill, the note or the
   stepper, then the step cards. */
.pui-registration { margin: 0 0 var(--pui-space-7); }

.pui-registration__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-2) var(--pui-space-3);
	margin: 0 0 var(--pui-space-3);
}

.pui .pui-registration__note,
.pui .pui-event__desc { max-width: var(--pui-measure); }

/* A registration of an event closed or over folds into its head line, and a
   submitted one keeps its steps behind "Show the details" (bead 2g7g.32). */
.pui-registration--earlier {
	margin: 0 0 var(--pui-space-3);
	padding: var(--pui-space-3) var(--pui-space-4);
	border: 1px solid var(--pui-border);
	border-radius: var(--pui-radius);
	background: var(--pui-surface);
}
.pui-registration--earlier > summary.pui-registration__head {
	margin: 0;
	cursor: pointer;
}
.pui-registration--earlier > summary .pui-registration__title { font-weight: var(--pui-weight-head); }
.pui-registration--earlier[open] > summary { margin-bottom: var(--pui-space-4); }
.pui-registration__steps { margin: 0 0 var(--pui-space-5); }
.pui-registration__steps > summary {
	cursor: pointer;
	color: var(--pui-accent);
	font-weight: var(--pui-weight-head);
	margin-bottom: var(--pui-space-3);
}

.pui .pui-event__deadline { margin-bottom: var(--pui-space-2); }

/* A stepper whose steps link to their cards: the link reads as the step. */
.pui .pui-step__link,
.pui.pui--embedded a.pui-step__link {
	color: inherit;
	text-decoration: none;
}

.pui .pui-step__link:hover,
.pui.pui--embedded a.pui-step__link:hover {
	color: var(--pui-text);
	text-decoration: underline;
}

/* Lists of documents inside a card. */
.pui .pui-docs {
	margin: 0 0 var(--pui-space-4);
	padding-left: var(--pui-space-5);
}

.pui-docs li { margin: 0 0 var(--pui-space-2); }

.pui .pui-docs p { margin: var(--pui-space-1) 0 0; }

/* A sub heading at the top of a card needs no space above it. */
.pui-section__body > .pui-section__title--sub:first-child { margin-top: 0; }

/* The total under a table of charges: the amount, then its state. */
.pui-facts--total .pui-facts__value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-2) var(--pui-space-3);
}

/* The logo card: the preview above its forms, the remove control last. */
.pui .ipmx-portal__logo-preview { margin: 0 0 var(--pui-space-5); }

.pui .pui-logo-remove { margin: var(--pui-space-4) 0 0; }

/* A link to copy: the read-only box and its Copy button on one row. */
.pui-copy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-3);
}

.pui .pui-copy .pui-input {
	flex: 1 1 280px;
	width: auto;
}

/* A link styled as a button keeps its button colours inside the vendor shell. */
.pui.pui--embedded a.pui-button { text-decoration: none; }
.pui.pui--embedded a.pui-button--primary,
.pui.pui--embedded a.pui-button--primary:hover { color: var(--pui-on-accent); }
.pui.pui--embedded a.pui-button--secondary { color: var(--pui-accent); }

/* The vendor shell caps every select and input at 440px; the design system's
   widths win inside a .pui scope. */
.pui .pui-input,
.pui .pui-select,
.pui .pui-textarea { max-width: 560px; }
.pui .pui-input--short,
.pui .pui-select--short { max-width: 280px; }

.pui .pui-table__sort { display: inline-flex; }

.pui .pui-table__sort,
.pui .pui-banner__close {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--pui-text);
	font-weight: var(--pui-weight-head);
	text-decoration: underline;
}

.pui .pui-table__sort { text-decoration-color: var(--pui-border-strong); }

.pui .pui-table__sort:hover,
.pui .pui-banner__close:hover {
	background: transparent;
	color: var(--pui-accent);
}

/* Checkbox / radio rows: a 44px target with the text beside the control. */
.pui-check {
	display: flex;
	align-items: flex-start;
	gap: var(--pui-space-3);
	min-height: var(--pui-target);
	margin: 0 0 var(--pui-space-2);
	padding: var(--pui-space-2) 0;
	cursor: pointer;
}

.pui-check input {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin: 2px 0 0;
	accent-color: var(--pui-accent);
}

.pui-check--indent { margin-left: var(--pui-space-6); }

/* A checkbox's explanation sits on its own line under the label. */
.pui-check__hint {
	display: block;
	margin-top: 2px;
}

.pui-fieldset {
	min-width: 0;
	margin: 0 0 var(--pui-space-5);
	padding: 0;
	border: 0;
}

.pui-fieldset > legend {
	margin-bottom: var(--pui-space-2);
	padding: 0;
	font-weight: var(--pui-weight-head);
}

.pui-fieldset > .pui-field__hint { margin-bottom: var(--pui-space-3); }

/* =========================================================================
   Choice cards: one-of-N decisions as big radio cards
   ========================================================================= */

.pui-choices {
	display: grid;
	gap: var(--pui-space-3);
	margin: 0 0 var(--pui-space-5);
	padding: 0;
	border: 0;
}

.pui-choice {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: var(--pui-space-2) var(--pui-space-3);
	align-items: start;
	padding: var(--pui-space-4);
	border: 2px solid var(--pui-border);
	border-radius: var(--pui-radius);
	background: var(--pui-surface);
	cursor: pointer;
}

.pui-choice:hover { border-color: var(--pui-border-strong); }

.pui-choice input {
	width: 24px;
	height: 24px;
	margin: 2px 0 0;
	accent-color: var(--pui-accent);
}

.pui-choice:has(input:checked) {
	border-color: var(--pui-accent);
	background: var(--pui-accent-soft);
}

.pui-choice:has(input:focus-visible) { box-shadow: var(--pui-focus-ring); }

/* A choice the chosen product does not allow (bead 2g7g.30). */
.pui-choice:has(input:disabled) {
	opacity: 0.5;
	cursor: not-allowed;
}
.pui-choice:has(input:disabled):hover { border-color: var(--pui-border); }

.pui-choice__title { font-weight: var(--pui-weight-head); }

.pui .pui-choice__text {
	grid-column: 2;
	margin: 0;
	color: var(--pui-text-muted);
}

.pui-choice__meta {
	grid-column: 2;
	font-weight: var(--pui-weight-head);
}

/* =========================================================================
   Data table: visible sticky headers, row dividers, sort by header text
   ========================================================================= */

.pui-table-wrap {
	margin: 0 0 var(--pui-space-5);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	/* A table wider than its card fades at the right edge until it is
	   scrolled to its end: the shade stays put and the cover moves with the
	   table. */
	background:
		linear-gradient(to left, var(--pui-surface) 50%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
		linear-gradient(to left, rgba(16, 24, 40, 0.16), rgba(16, 24, 40, 0)) right center / 16px 100% no-repeat scroll;
}

.pui-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: var(--pui-size-1);
}

.pui-table th,
.pui-table td {
	padding: var(--pui-space-3) var(--pui-space-4);
	border-bottom: 1px solid var(--pui-border);
	text-align: left;
	vertical-align: top;
}

/* Headings share one line whether or not they sort. */
.pui-table th { vertical-align: middle; }

/* A table kept with its headings while it has no rows (bead 2g7g.39.21):
   one line across the columns says what will appear and when. */
.pui-table__empty td {
	color: var(--pui-text-muted);
	background: var(--pui-surface-soft);
	text-align: center;
}

/* The last row needs no rule under it: the card's own edge closes the table. */
.pui-table tbody tr:last-child td { border-bottom: 0; }

/* Long tokens (email addresses, file names) may break, so a table with many
   columns still fits the card at desktop width. A column marked wide keeps room
   for sentences (what is tested, the bench, a confirm panel); the wrap scrolls
   sideways when the card is narrower than the table. */
.pui-table td { overflow-wrap: break-word; }

.pui-table th.is-wide,
.pui-table td.is-wide { min-width: 11em; }

/* A table whose columns carry widths keeps them, so the same table lines
   up from one card to the next; the column without a width takes the rest. */
.pui-table:has(> colgroup) { table-layout: fixed; }

/* A row's panel: a form too wide for a cell opens as a row of its own under
   the row, across every column. Its control is a link to that row, so the
   row shows as the link's target without the script; with the script the
   control opens and closes it in place. */
.pui-table__panel { display: none; }

.pui-table__panel.is-open,
.pui:not(.pui-js) .pui-table__panel:target { display: table-row; }

/* The same behind a control outside a table: a block that opens under it. */
.pui-panel { display: none; }

.pui-panel.is-open,
.pui:not(.pui-js) .pui-panel:target { display: block; }

.pui-table .pui-table__panel > td {
	padding-top: 0;
	padding-bottom: var(--pui-space-4);
}

.pui-table tbody tr.pui-table__panel:hover td { background: transparent; }

/* The row above an open panel and its panel read as one row. */
.pui-table tbody tr:has(+ .pui-table__panel.is-open) td { border-bottom-color: transparent; }

/* The last row of the body has no rule under it, its closed panels after it
   notwithstanding. */
.pui-table tbody tr:not(:has(~ tr:not(.pui-table__panel))) td { border-bottom: 0; }

.pui-table__panel-box {
	padding: var(--pui-space-4);
	border: 1px solid var(--pui-border-strong);
	border-radius: var(--pui-radius);
	background: var(--pui-surface-soft);
}

.pui-table__panel-box--danger {
	border-color: var(--pui-danger);
	background: var(--pui-danger-soft);
}

.pui-table__panel-box > :last-child { margin-bottom: 0; }

.pui-table__panel-box .pui-actions { margin-top: 0; }

.pui-table__panel-box .pui-field + .pui-actions,
.pui-table__panel-box .pui-check + .pui-actions { margin-top: var(--pui-space-3); }

.pui .pui-table__toggle--danger,
.pui .pui-table__toggle--danger:hover { color: var(--pui-danger); }

.pui .pui-table__actions .pui-table__toggle.pui-button { color: var(--pui-text); text-decoration: none; }

/* Row actions (Edit, Remove, a confirm panel's label) never break mid-word. */
.pui-table__actions > a,
.pui-table__actions .pui-confirm__summary,
.pui-table td > .pui-confirm > .pui-confirm__summary { white-space: nowrap; }

.pui-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--pui-surface);
	border-bottom: 2px solid var(--pui-border-strong);
	font-weight: var(--pui-weight-head);
	white-space: nowrap;
}

.pui-table th.is-numeric,
.pui-table td.is-numeric { text-align: right; }

/* A number, a date or an invoice number never breaks mid-value. */
.pui-table td.is-numeric,
.pui-table th.is-nowrap,
.pui-table td.is-nowrap { white-space: nowrap; }

/* A sub-heading inside a card (the Invoices block under a vendor's charges). */
.pui-section__title--sub {
	margin: var(--pui-space-5) 0 var(--pui-space-3);
	font-size: var(--pui-size-2);
}

/* A product's name inside a vendor's card on the Results tab: clear of the
   product above it. */
.pui-results__product { margin-top: var(--pui-space-6); }

.pui-section__body > .pui-results__product:first-child { margin-top: 0; }

/* The foot of a table: its totals, under the columns they add up. */
.pui-table tfoot td {
	padding-top: var(--pui-space-2);
	padding-bottom: var(--pui-space-2);
	border-bottom: 0;
	font-weight: var(--pui-weight-head);
}

.pui-table tfoot tr:first-child td {
	padding-top: var(--pui-space-3);
	border-top: 2px solid var(--pui-border-strong);
}

.pui-table tfoot tr:last-child td { padding-bottom: var(--pui-space-4); }

/* Where something stands, as named pills on one line (a registration, its
   money and its membership on the Money tab). */
.pui-standing {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pui-space-2) var(--pui-space-5);
}

.pui-standing__label {
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

/* Why an invoice cannot go yet, with the way to put it right. */
.pui-invoice-blocked {
	padding: var(--pui-space-3) var(--pui-space-4);
	border: 1px solid var(--pui-warning);
	border-left-width: 4px;
	border-radius: var(--pui-radius);
	background: var(--pui-warning-soft);
}

/* A table one level inside a card or on a print sheet starts and ends on
   the same lines as the heading above it and the totals under it. */
.pui-attempt .pui-table th:first-child,
.pui-attempt .pui-table td:first-child,
.pui-sheet .pui-table th:first-child,
.pui-sheet .pui-table td:first-child { padding-left: 0; }

.pui-attempt .pui-table th:last-child,
.pui-attempt .pui-table td:last-child,
.pui-sheet .pui-table th:last-child,
.pui-sheet .pui-table td:last-child { padding-right: 0; }

.pui-table__sort {
	display: inline-flex;
	align-items: center;
	gap: var(--pui-space-2);
	min-height: var(--pui-target);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pui-text);
	font: inherit;
	font-weight: var(--pui-weight-head);
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: var(--pui-border-strong);
	text-underline-offset: 0.2em;
}

.pui-table__sort::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--pui-border-strong);
	border-bottom: 2px solid var(--pui-border-strong);
	transform: rotate(45deg) translateY(-2px);
}

.pui-table th[aria-sort="ascending"] .pui-table__sort::after {
	border-color: var(--pui-accent);
	transform: rotate(-135deg) translateY(-2px);
}

.pui-table th[aria-sort="descending"] .pui-table__sort::after {
	border-color: var(--pui-accent);
}

.pui-table tbody tr:hover td { background: var(--pui-surface-soft); }

.pui-table__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--pui-space-2) var(--pui-space-4);
}

/* The test administration tables give a row's actions a column of a set
   width, so they wrap inside it. */
.pui-page .pui-table__actions { flex-wrap: wrap; }

.pui-table__actions a,
.pui-table__actions .pui-button--link {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
	/* The same weight as a confirm panel's label, so a row's actions match. */
	font-weight: var(--pui-weight-head);
}

.pui-table__sub {
	display: block;
	margin-top: var(--pui-space-1);
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

/* An email address under a name stays on one line. */
.pui-table__sub--nowrap { white-space: nowrap; }

/* Under a person's name on the People step: "Key representative", or the
   button that makes them so (bead 2g7g.39.1), in the place the label takes. */
.pui .pui-keyrep .pui-button--link {
	min-height: var(--pui-target);
	padding: 0;
	margin: 0;
	font-size: var(--pui-size-small);
	font-weight: var(--pui-weight-head);
}

.pui-keyrep strong { color: var(--pui-text); }

/* A value and its pill on one line (a total and where it stands). */
.pui-table__inline {
	display: inline-flex;
	align-items: center;
	gap: var(--pui-space-2);
	white-space: nowrap;
}

/* =========================================================================
   Status pill: a word on a tinted background
   ========================================================================= */

.pui-pill {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: var(--pui-space-1) var(--pui-space-3);
	border-radius: 999px;
	background: var(--pui-surface-soft);
	border: 1px solid var(--pui-border);
	color: var(--pui-text);
	font-size: var(--pui-size-small);
	font-weight: var(--pui-weight-head);
	line-height: 1.2;
	white-space: nowrap;
}

.pui-pill--info {
	background: var(--pui-accent-soft);
	border-color: transparent;
	color: var(--pui-accent-hover);
}

.pui-pill--success {
	background: var(--pui-success-soft);
	border-color: transparent;
	color: var(--pui-success);
}

.pui-pill--warning {
	background: var(--pui-warning-soft);
	border-color: transparent;
	color: var(--pui-warning);
}

.pui-pill--danger {
	background: var(--pui-danger-soft);
	border-color: transparent;
	color: var(--pui-danger);
}

/* =========================================================================
   Banner: saved, info, warning, error
   ========================================================================= */

.pui-banner {
	display: flex;
	align-items: flex-start;
	gap: var(--pui-space-3);
	margin: 0 0 var(--pui-space-5);
	padding: var(--pui-space-3) var(--pui-space-4);
	border: 1px solid var(--pui-border);
	border-left-width: 4px;
	border-radius: var(--pui-radius);
	background: var(--pui-surface-soft);
}

.pui-banner__text {
	flex: 1 1 auto;
	margin: 0;
	padding-top: 6px;
}

.pui-banner__text strong { font-weight: var(--pui-weight-head); }

.pui-banner__close {
	flex: 0 0 auto;
	min-width: var(--pui-target);
	min-height: var(--pui-target);
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

.pui-banner--saved {
	background: var(--pui-success-soft);
	border-color: var(--pui-success);
	color: var(--pui-success);
}

.pui-banner--info {
	background: var(--pui-accent-soft);
	border-color: var(--pui-accent);
	color: var(--pui-text);
}

.pui-banner--warning {
	background: var(--pui-warning-soft);
	border-color: var(--pui-warning);
	color: var(--pui-text);
}

.pui-banner--error {
	background: var(--pui-danger-soft);
	border-color: var(--pui-danger);
	color: var(--pui-text);
}

.pui-banner.is-dismissed { display: none; }

/* =========================================================================
   Empty state and loading state
   ========================================================================= */

.pui-empty {
	margin: 0 0 var(--pui-space-5);
	padding: var(--pui-space-6) var(--pui-space-5);
	border: 1px dashed var(--pui-border-strong);
	border-radius: var(--pui-radius);
	background: var(--pui-surface-soft);
	text-align: center;
}

.pui .pui-empty__text {
	margin: 0;
	color: var(--pui-text-muted);
}

.pui-empty .pui-actions {
	justify-content: center;
}

.pui-loading {
	display: inline-flex;
	align-items: center;
	gap: var(--pui-space-3);
	color: var(--pui-text-muted);
}

.pui-loading::before {
	content: "";
	width: 20px;
	height: 20px;
	border: 3px solid var(--pui-border);
	border-top-color: var(--pui-accent);
	border-radius: 50%;
	animation: pui-spin 0.9s linear infinite;
}

@keyframes pui-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.pui-loading::before { animation: none; }
}

/* =========================================================================
   Confirm panel: inline, never a modal
   ========================================================================= */

.pui-confirm {
	display: inline-block;
	max-width: 100%;
}

.pui .pui-confirm__summary {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
	padding: 0;
	color: var(--pui-danger);
	font-weight: var(--pui-weight-head);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
	list-style: none;
}

.pui-confirm__summary::-webkit-details-marker { display: none; }

.pui-confirm--quiet .pui-confirm__summary { color: var(--pui-accent); }

/* A card's decisive action: the control is drawn as a button, and the open
   panel takes a row of its own under the buttons beside it. */
.pui .pui-confirm--button > .pui-confirm__summary {
	padding: var(--pui-space-2) var(--pui-space-5);
	text-decoration: none;
}

.pui .pui-confirm--button > .pui-button--primary,
.pui .pui-confirm--button > .pui-button--primary:hover { color: var(--pui-on-accent); }

.pui .pui-confirm--button > .pui-button--secondary { color: var(--pui-text); }

.pui-actions > .pui-confirm--button[open],
.pui-section__foot > .pui-confirm--button[open] {
	flex: 1 1 100%;
}

.pui-confirm--button > .pui-confirm__panel { margin-top: var(--pui-space-3); }

.pui-confirm__panel {
	margin: var(--pui-space-2) 0 0;
	padding: var(--pui-space-4);
	border: 1px solid var(--pui-danger);
	border-radius: var(--pui-radius);
	background: var(--pui-danger-soft);
}

.pui-confirm--quiet .pui-confirm__panel {
	border-color: var(--pui-border-strong);
	background: var(--pui-surface-soft);
}

.pui-confirm__text {
	margin: 0 0 var(--pui-space-3);
}

.pui-confirm .pui-actions { margin-top: 0; }

/* A form panel: a whole form kept behind a button (Add a person, Add a
   contact). The summary reads as a secondary button; the panel is as wide as
   the card and its form keeps the usual space above its buttons. */
.pui-confirm--form {
	display: block;
	width: 100%;
}

.pui .pui-confirm--form > .pui-confirm__summary {
	padding: 0 var(--pui-space-5);
	border: 2px solid var(--pui-border-strong);
	border-radius: var(--pui-radius);
	background: var(--pui-surface);
	line-height: 1.2;
	text-decoration: none;
}

.pui .pui-confirm--form > .pui-confirm__summary:hover { border-color: var(--pui-text); }

.pui-confirm--form > .pui-confirm__summary:focus-visible {
	outline: none;
	box-shadow: var(--pui-focus-ring);
}

.pui-confirm--form > .pui-confirm__panel {
	margin-top: var(--pui-space-4);
	padding: var(--pui-space-5);
	background: var(--pui-surface);
}

.pui-confirm--form .pui-form > .pui-actions { margin-top: var(--pui-space-4); }

.pui-section__foot > .pui-confirm--form { flex: 1 1 100%; }

@media (max-width: 720px) {
	.pui-confirm--form > .pui-confirm__panel { padding: var(--pui-space-4); }
}

/* A small form set apart from the one after it (Start from a contact, above
   the fields of Add a person). */
.pui-form--apart {
	margin: 0 0 var(--pui-space-5);
	padding: 0 0 var(--pui-space-5);
	border-bottom: 1px solid var(--pui-border);
}

/* =========================================================================
   Checklist (event Home) and stepper
   ========================================================================= */

.pui-checklist {
	margin: 0 0 var(--pui-space-5);
	padding: 0;
	list-style: none;
	border: 1px solid var(--pui-border);
	border-radius: var(--pui-radius);
}

.pui-checklist__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-3) var(--pui-space-4);
	padding: var(--pui-space-4) var(--pui-space-5);
	border-bottom: 1px solid var(--pui-border);
}

.pui-checklist__item:last-child { border-bottom: 0; }

.pui-checklist__item.is-done { color: var(--pui-text-muted); }

.pui-checklist__text {
	flex: 1 1 280px;
	min-width: 0;
}

.pui-checklist__count {
	flex: 0 0 auto;
	min-width: var(--pui-target);
	text-align: center;
	font-weight: var(--pui-weight-head);
	font-size: var(--pui-size-2);
}

.pui-stepper {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pui-space-2) var(--pui-space-5);
	margin: 0 0 var(--pui-space-5);
	padding: 0;
	list-style: none;
	counter-reset: pui-step;
}

.pui-step {
	display: inline-flex;
	align-items: center;
	gap: var(--pui-space-2);
	min-height: var(--pui-target);
	color: var(--pui-text-muted);
	counter-increment: pui-step;
}

.pui-step::before {
	content: counter(pui-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 2px solid var(--pui-border-strong);
	border-radius: 50%;
	font-weight: var(--pui-weight-head);
}

.pui-step.is-current {
	color: var(--pui-text);
	font-weight: var(--pui-weight-head);
}

.pui-step.is-current::before {
	border-color: var(--pui-accent);
	background: var(--pui-accent);
	color: var(--pui-on-accent);
}

.pui-step.is-done::before {
	content: "\2713";
	border-color: var(--pui-success);
	background: var(--pui-success);
	color: var(--pui-on-success);
}

/* =========================================================================
   Login form (WP-native markup, portal look)
   ========================================================================= */

.pui-login {
	max-width: 480px;
}

.pui-login #loginform p { margin: 0 0 var(--pui-space-4); }

.pui-login #loginform label {
	display: block;
	font-weight: var(--pui-weight-head);
}

.pui-login #loginform .input {
	display: block;
	width: 100%;
	min-height: var(--pui-target);
	margin-top: var(--pui-space-2);
	padding: var(--pui-space-2) var(--pui-space-3);
	border: 1px solid var(--pui-border-strong);
	border-radius: var(--pui-radius);
	font: inherit;
}

.pui-login #loginform .login-remember label {
	display: flex;
	align-items: center;
	gap: var(--pui-space-3);
	min-height: var(--pui-target);
	font-weight: var(--pui-weight-body);
}

.pui-login #loginform .login-remember input {
	width: 24px;
	height: 24px;
	accent-color: var(--pui-accent);
}

.pui-login #loginform .login-submit input[type="submit"] {
	display: inline-flex;
	min-height: var(--pui-target);
	padding: var(--pui-space-2) var(--pui-space-5);
	border: 2px solid var(--pui-accent);
	border-radius: var(--pui-radius);
	background: var(--pui-accent);
	color: var(--pui-on-accent);
	font: inherit;
	font-weight: var(--pui-weight-head);
	cursor: pointer;
}

/* =========================================================================
   Guide pages (/vendor/guide and /test-admin/guide)
   The text is a staff-owned WordPress page, so these rules style plain
   elements inside the guide wrapper and nothing else.
   ========================================================================= */

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

.pui .pui-guide h2 {
	margin: var(--pui-space-7) 0 var(--pui-space-3);
	padding-top: var(--pui-space-5);
	border-top: 1px solid var(--pui-border);
	font-size: var(--pui-size-4);
	line-height: 1.2;
}

.pui .pui-guide h3 {
	margin: var(--pui-space-6) 0 var(--pui-space-2);
	font-size: var(--pui-size-3);
	line-height: 1.25;
}

.pui .pui-guide h4 {
	margin: var(--pui-space-5) 0 var(--pui-space-2);
	font-size: var(--pui-size-2);
}

.pui .pui-guide :is(h2, h3, h4) {
	scroll-margin-top: var(--pui-space-5);
}

.pui .pui-guide :is(p, ul, ol, table, figure, blockquote) {
	margin: 0 0 var(--pui-space-4);
}

.pui .pui-guide :is(ul, ol) {
	padding-left: var(--pui-space-5);
}

.pui .pui-guide li {
	margin-bottom: var(--pui-space-2);
}

.pui .pui-guide li > p {
	margin-bottom: var(--pui-space-2);
}

.pui .pui-guide table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--pui-size-small);
}

.pui .pui-guide :is(th, td) {
	padding: var(--pui-space-2) var(--pui-space-3);
	border-bottom: 1px solid var(--pui-border);
	text-align: left;
	vertical-align: top;
}

.pui .pui-guide th {
	border-bottom-color: var(--pui-border-strong);
	font-weight: var(--pui-weight-head);
}

.pui .pui-guide code {
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--pui-surface-soft);
	font-size: 0.9em;
}

.pui .pui-guide blockquote {
	padding: var(--pui-space-3) var(--pui-space-4);
	border-left: 4px solid var(--pui-accent);
	background: var(--pui-accent-soft);
}

.pui .pui-guide blockquote > :last-child {
	margin-bottom: 0;
}

/* The contents list at the top of a guide. */
.pui .pui-guide__contents {
	margin: var(--pui-space-4) 0 var(--pui-space-6);
	padding: var(--pui-space-4) var(--pui-space-5);
	border: 1px solid var(--pui-border);
	border-radius: var(--pui-radius);
	background: var(--pui-surface-soft);
}

.pui .pui-guide__contents p {
	margin: 0 0 var(--pui-space-2);
}

.pui .pui-guide__contents ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2 260px;
	column-gap: var(--pui-space-6);
}

.pui .pui-guide__contents li {
	margin: 0;
	padding: var(--pui-space-1) 0;
	break-inside: avoid;
}

/* A screenshot with its caption. */
.pui .pui-guide figure {
	margin: var(--pui-space-5) 0;
}

.pui .pui-guide figure img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--pui-border);
	border-radius: var(--pui-radius);
	box-shadow: var(--pui-shadow);
}

.pui .pui-guide figcaption {
	margin-top: var(--pui-space-2);
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

/* =========================================================================
   Style guide (the /test-admin/styleguide page)
   ========================================================================= */

.pui-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--pui-space-3);
	margin: 0 0 var(--pui-space-5);
	padding: 0;
	list-style: none;
}

.pui-swatch {
	border: 1px solid var(--pui-border);
	border-radius: var(--pui-radius);
	overflow: hidden;
	font-size: var(--pui-size-small);
}

.pui-swatch__chip { height: 56px; }
.pui-swatch__chip--accent { background: var(--pui-accent); }
.pui-swatch__chip--accent-hover { background: var(--pui-accent-hover); }
.pui-swatch__chip--text { background: var(--pui-text); }
.pui-swatch__chip--text-muted { background: var(--pui-text-muted); }
.pui-swatch__chip--border { background: var(--pui-border); }
.pui-swatch__chip--surface-soft { background: var(--pui-surface-soft); }
.pui-swatch__chip--success { background: var(--pui-success); }
.pui-swatch__chip--warning { background: var(--pui-warning); }
.pui-swatch__chip--danger { background: var(--pui-danger); }

.pui-swatch__name { padding: var(--pui-space-2) var(--pui-space-3); }

.pui-specimen {
	margin: 0 0 var(--pui-space-3);
}

.pui-specimen__label {
	display: block;
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

.pui-specimen__sample { font-weight: var(--pui-weight-head); line-height: 1.25; }
.pui-specimen__sample--2 { font-size: var(--pui-size-2); }
.pui-specimen__sample--3 { font-size: var(--pui-size-3); }
.pui-specimen__sample--4 { font-size: var(--pui-size-4); }

/* =========================================================================
   Responsive: usable on a tablet; no horizontal page scroll at any width
   ========================================================================= */

@media (max-width: 720px) {
	.pui h1 { font-size: var(--pui-size-3); }
	.pui h2 { font-size: var(--pui-size-2); }

	.pui-page { padding: var(--pui-space-5) var(--pui-space-4) var(--pui-space-6); }

	.pui-page-header__action,
	.pui-page-header__action .pui-button { width: 100%; }

	.pui-section__head,
	.pui-section__body,
	.pui-section__foot { padding-left: var(--pui-space-4); padding-right: var(--pui-space-4); }

	.pui-section__intro { margin-left: var(--pui-space-4); margin-right: var(--pui-space-4); }

	/* A table keeps a readable width and scrolls sideways inside its card. */
	.pui-table { min-width: 560px; }

	.pui-section__body > .pui-table-wrap {
		margin-left: calc(-1 * var(--pui-space-4));
		margin-right: calc(-1 * var(--pui-space-4));
	}

	.pui-tabs__list { gap: var(--pui-space-1) var(--pui-space-4); }
}

/* Between a phone and a desktop the test administration tables are short of
   room: a row's actions stack so the last column is not cut off. */
@media (max-width: 900px) {
	.pui-page .pui-table__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	/* The columns size to what they hold again, a column of sentences gives
	   up some of its room, and a row's button reads as a link like the rest. */
	.pui-page .pui-table:has(> colgroup) { table-layout: auto; }

	.pui-page .pui-table col { width: auto; }

	.pui-page .pui-table th.is-wide,
	.pui-page .pui-table td.is-wide { min-width: 8em; }

	/* What is kept on one line on a desktop may break here. */
	.pui-page .pui-table__sub--nowrap {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.pui-page .pui-table__inline {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.pui-page .pui-table th:not(:has(.pui-table__sort)) { white-space: normal; }

	.pui-page .pui-table__actions > a { white-space: normal; }

	/* The summary tables keep what leads to the next step: the estimate and
	   the invoiced sum are on each vendor's card of the Money tab, the
	   attempt's number on the product's card of the Results tab. */
	#money-vendors .pui-table th:nth-child(3),
	#money-vendors .pui-table td:nth-child(3),
	#money-vendors .pui-table th:nth-child(5),
	#money-vendors .pui-table td:nth-child(5),
	#results-overview .pui-table th:nth-child(3),
	#results-overview .pui-table td:nth-child(3) { display: none; }

	.pui-page .pui-table th:not(:first-child),
	.pui-page .pui-table td:not(:first-child) { padding-left: var(--pui-space-3); }

	.pui-page .pui-table th:not(:last-child),
	.pui-page .pui-table td:not(:last-child) { padding-right: var(--pui-space-3); }

	.pui .pui-page .pui-table__actions .pui-table__toggle.pui-button {
		min-width: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--pui-accent);
		text-decoration: underline;
	}
}

/* =========================================================================
   Results sheet: the bar that shows how the sheet stands, and one test case
   per row with its four results as large choices. A row is a form of its own.
   ========================================================================= */

.pui-cases-state {
	position: sticky;
	top: 0;
	z-index: 2;
	margin-bottom: var(--pui-space-5);
	padding: var(--pui-space-3) var(--pui-space-4);
	background: var(--pui-surface);
	border: 1px solid var(--pui-border);
	border-left: 4px solid var(--pui-accent);
	border-radius: var(--pui-radius);
	box-shadow: var(--pui-shadow);
}

.pui-cases-state__progress {
	margin: 0 0 var(--pui-space-2);
	font-weight: var(--pui-weight-head);
}

.pui-cases-state__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pui-space-2) var(--pui-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pui-cases-state__name {
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

/* The bar stays in view while the sheet scrolls, so it is kept low: small
   pills, and the bands as a line of links with how far each one is. */
.pui-cases-state .pui-pill {
	min-height: 24px;
	padding: 2px var(--pui-space-2);
}

/* The bands sit behind one line, so the bar stays low on a long sheet. */
.pui-cases-state__index {
	margin: var(--pui-space-2) 0 0;
	padding: var(--pui-space-1) 0 0;
	border-top: 1px solid var(--pui-border);
	font-size: var(--pui-size-small);
}

.pui-cases-state__index > summary {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--pui-accent);
	font-weight: var(--pui-weight-head);
	cursor: pointer;
}

.pui-cases-state__bands {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--pui-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pui .pui-cases-state__bands a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

.pui-cases-state__count { color: var(--pui-text-muted); }

/* A band reached from the bar clears the bar, and so does a case a save
   comes back to. */
.pui-section.pui-cases__band,
.pui-case { scroll-margin-top: 220px; }

.pui-cases__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A band's title sits clear of its first row, and an attempt's buttons on the
   Results tab clear of the outcome control under them. */
.pui-cases__band > .pui-section__head { padding-bottom: var(--pui-space-3); }

/* The rows' coloured edges follow the card's rounded corners. */
.pui-cases__band { overflow: hidden; }

.pui-attempt > .pui-actions--tight { margin-bottom: var(--pui-space-4); }

/* What a passed attempt waits for: the sentence, then the button under it. */
.pui-attempt__next { margin: 0 0 var(--pui-space-4); }

.pui-attempt__say {
	margin: 0 0 var(--pui-space-2);
	font-weight: var(--pui-weight-head);
}

/* An attempt in a vendor's card stands clear of the one above it. */
.pui-attempt + .pui-attempt { margin-top: var(--pui-space-5); }

.pui-case {
	/* With its coloured edge a row starts on the band title's line. */
	padding: var(--pui-space-3) var(--pui-space-5) var(--pui-space-3) calc(var(--pui-space-5) - 4px);
	border-top: 1px solid var(--pui-border);
	border-left: 4px solid transparent;
}

.pui-case:target { background: var(--pui-accent-soft); }

.pui-case:has(input[value="pass"]:checked) { border-left-color: var(--pui-success); }

.pui-case:has(input[value="fail"]:checked) {
	border-left-color: var(--pui-danger);
	background: var(--pui-danger-soft);
}

.pui-case:has(input[value="not_applicable"]:checked),
.pui-case:has(input[value="not_run"]:checked) { border-left-color: var(--pui-border-strong); }

.pui-case__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--pui-space-2) var(--pui-space-4);
	align-items: center;
}

.pui-case__number {
	margin-right: var(--pui-space-1);
	font-weight: var(--pui-weight-head);
	white-space: nowrap;
}

.pui-case__sub {
	display: block;
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

/* The four results: one row of choices, each a full 44px target. The radio
   itself covers its label, so the keyboard moves through them as radios. */
.pui-seg {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pui-space-2);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.pui-seg__option {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--pui-target);
	/* Room at the left for the tick of the chosen result, the same on the
	   right, so an option keeps its width when it is chosen. */
	padding: 0 24px;
	background: var(--pui-surface);
	border: 2px solid var(--pui-border-strong);
	border-radius: var(--pui-radius);
	font-weight: var(--pui-weight-head);
	white-space: nowrap;
	cursor: pointer;
}

.pui-seg__option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.pui-seg__option:hover { border-color: var(--pui-text); }

.pui-seg__option:has(input:focus-visible) { box-shadow: var(--pui-focus-ring); }

/* The chosen result is said twice: by its colour and by the tick before it. */
.pui-seg__option:has(input:checked) span::before {
	content: "\2713";
	position: absolute;
	top: 50%;
	left: 7px;
	transform: translateY(-50%);
	font-size: var(--pui-size-small);
}

.pui-seg__option--pass:has(input:checked) {
	background: var(--pui-success);
	border-color: var(--pui-success);
	color: var(--pui-on-success);
}

.pui-seg__option--fail:has(input:checked) {
	background: var(--pui-danger);
	border-color: var(--pui-danger);
	color: var(--pui-on-danger);
}

.pui-seg__option--not_applicable:has(input:checked),
.pui-seg__option--not_run:has(input:checked) {
	background: var(--pui-text-muted);
	border-color: var(--pui-text-muted);
	color: var(--pui-surface);
}

/* The reason box opens when Fail is chosen, and stays open while it holds text. */
.pui-case__reason {
	display: none;
	grid-column: 1 / -1;
}

.pui-case__reason.has-text,
.pui-case:has(input[value="fail"]:checked) .pui-case__reason { display: block; }

.pui .pui-case__reason .pui-textarea {
	width: 100%;
	max-width: none;
	min-height: 4.5rem;
}

.pui-case__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pui-space-3);
	grid-column: 1 / -1;
}

.pui-case__status {
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
	font-weight: var(--pui-weight-head);
}

.pui-case__status:empty { display: none; }

.pui-case__status.is-saved { color: var(--pui-success); }

.pui-case__status.is-unsaved { color: var(--pui-danger); }

/* With the page script every row saves itself, so the Save buttons go and a
   row with nothing to say takes no room for its foot. */
.pui-cases.has-autosave .pui-case__foot .pui-button,
.pui-cases.has-autosave .pui-case__foot:has(.pui-case__status:empty) { display: none; }

/* The evidence of a result: its files, one to a line with the caption under
   the name, then the quiet panel that attaches another. Under a case row and
   under an item verdict alike. */
.pui-evidence { margin-top: var(--pui-space-2); }

.pui-evidence__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pui-evidence__file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--pui-space-3);
	padding: var(--pui-space-1) 0;
	overflow-wrap: anywhere;
}

/* Remove sits at the right of the file's name; its panel, open, takes the
   line under it. */
.pui-evidence__file > .pui-confirm { margin-left: auto; }

.pui-evidence__file > .pui-confirm[open] { flex: 1 1 100%; }

.pui-evidence__file > .pui-evidence__caption { flex: 1 1 100%; order: 1; }

/* The control that opens the form to attach a file: on the case's title
   line while the case has no file, under the list once it has one. */
.pui .pui-evidence__add {
	display: inline-flex;
	align-items: center;
	min-height: var(--pui-target);
	font-size: var(--pui-size-small);
	font-weight: var(--pui-weight-head);
}

/* On the title line it is a small link after the case's name. */
.pui .pui-case__what .pui-evidence__add {
	display: inline;
	min-height: 0;
	white-space: nowrap;
}

.pui-evidence__form {
	margin: var(--pui-space-2) 0 0;
	padding: var(--pui-space-4);
	border: 1px solid var(--pui-border-strong);
	border-radius: var(--pui-radius);
	background: var(--pui-surface-soft);
}

.pui-evidence__form .pui-actions { margin-top: 0; }

/* A case with no file and its form closed takes no room for its evidence. */
.pui-evidence:not(:has(.pui-evidence__list, .pui-evidence__add, .pui-panel.is-open, .pui-panel:target)) { margin: 0; }

.pui-evidence__size {
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
	white-space: nowrap;
}

.pui-evidence__caption {
	display: block;
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

/* An item's evidence closes its block on the Item verdicts card, clear of the
   next item's name. */
.pui-attempt > .pui-evidence { margin-bottom: var(--pui-space-5); }

/* On a sheet a file's name and caption are a link in a cell: it wraps like
   the words above it, one file to a line. */
.pui-sheet .pui-table__actions { display: block; }

.pui-sheet .pui-table__actions > a {
	display: block;
	min-height: 0;
	padding: var(--pui-space-1) 0;
	white-space: normal;
}

@media (max-width: 720px) {
	.pui-case__form { grid-template-columns: minmax(0, 1fr); }

	.pui-case { padding-right: var(--pui-space-4); }
}

/* =========================================================================
   Print sheet: the one component meant for paper (roster, results sheet,
   charges summary, invoice, disbursement report). A bounded card on screen;
   in print the chrome goes and the sheet fills the page.
   ========================================================================= */

.pui-sheet {
	max-width: var(--pui-measure);
	margin: var(--pui-space-5) auto;
	padding: var(--pui-space-6);
	border: 1px solid var(--pui-border);
	border-radius: var(--pui-radius);
	background: var(--pui-surface);
	color: var(--pui-text);
}

.pui-sheet__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--pui-space-4) var(--pui-space-5);
	padding-bottom: var(--pui-space-4);
	border-bottom: 2px solid var(--pui-border-strong);
}

.pui-sheet__stamp {
	margin: 0 0 var(--pui-space-4);
	padding: var(--pui-space-2) var(--pui-space-3);
	border: 2px solid var(--pui-warning);
	color: var(--pui-warning);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
}

.pui-sheet__mark {
	display: block;
	width: 148px;
	height: 56px;
}

.pui-sheet__heading { text-align: right; }

.pui-sheet__title {
	margin: 0;
	font-size: var(--pui-size-4);
	line-height: 1.2;
}

.pui-sheet__meta {
	margin: var(--pui-space-1) 0 0;
	color: var(--pui-text-muted);
}

.pui-sheet__body { padding-top: var(--pui-space-4); }

.pui-sheet__parties {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pui-space-5);
	margin: 0 0 var(--pui-space-5);
}

.pui-sheet__party {
	flex: 1 1 240px;
	min-width: 0;
}

.pui-sheet__party-label {
	display: block;
	margin-bottom: var(--pui-space-1);
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
	font-weight: var(--pui-weight-head);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pui-sheet__party-line {
	display: block;
	overflow-wrap: anywhere;
}

.pui-sheet__total {
	display: flex;
	justify-content: flex-end;
	gap: var(--pui-space-4);
	margin: var(--pui-space-3) 0 var(--pui-space-5);
	font-size: var(--pui-size-2);
	font-weight: var(--pui-weight-head);
}

.pui-sheet__foot {
	margin-top: var(--pui-space-5);
	padding-top: var(--pui-space-3);
	border-top: 1px solid var(--pui-border);
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

.pui-sheet .pui-table-wrap { margin-bottom: 0; }

/* A band of the results sheet: its heading stands clear of the table above,
   and every band's table has the same four columns, so the page reads as one
   form and a result never breaks inside a word. */
.pui .pui-sheet__band { margin-top: var(--pui-space-6); }

.pui-sheet__band + .pui-table-wrap .pui-table { table-layout: fixed; }

.pui-sheet__band + .pui-table-wrap th:nth-child(1) { width: 4.5rem; }

.pui-sheet__band + .pui-table-wrap th:nth-child(2) { width: 42%; }

.pui-sheet__band + .pui-table-wrap th:nth-child(3) { width: 10.5rem; }

/* A standalone sheet page (opened from a link, printed from the browser).
   The tokens live on .pui, so the page's padding and ground are set there. */
.pui-sheet-page { margin: 0; }

.pui-sheet-page > .pui {
	min-height: 100vh;
	padding: var(--pui-space-4);
	background: var(--pui-surface-soft);
}

.pui-sheet-page .pui-sheet-page__back {
	display: block;
	max-width: var(--pui-measure);
	margin: 0 auto var(--pui-space-3);
}

/* The Back link and the Print button share the row above the sheet. */
.pui-sheet-page .pui-sheet-page__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--pui-space-3) var(--pui-space-4);
	max-width: var(--pui-measure);
	margin: 0 auto var(--pui-space-3);
}

.pui-sheet-page .pui-sheet-page__bar .pui-sheet-page__back { margin: 0; }

/* The four results of a case to mark by hand: a box for each, on one line.
   The legend above the first band says what the letters stand for. */
.pui-sheet__boxes {
	display: inline-flex;
	gap: var(--pui-space-2);
	white-space: nowrap;
}

.pui-sheet__box {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: var(--pui-size-small);
}

.pui-sheet__box::before {
	content: "";
	width: 0.85em;
	height: 0.85em;
	border: 1px solid var(--pui-text);
}

.pui-sheet__legend {
	margin: var(--pui-space-5) 0 0;
	color: var(--pui-text-muted);
	font-size: var(--pui-size-small);
}

@media (max-width: 640px) {
	.pui-sheet { padding: var(--pui-space-4); }
	.pui-sheet__heading { text-align: left; }
}

/* =========================================================================
   Print: flatten shadows and borders, hide the chrome and controls
   ========================================================================= */

/* The Vendors page of the test portal (bead 2g7g.37): the search above the
   list, a company's logins with their Send a new password link, and the row
   an action came back to. */
.pui .pui-search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--pui-space-3);
	margin: 0 0 var(--pui-space-3);
}
.pui .pui-search .pui-field { flex: 0 1 34rem; margin: 0; }
.pui .pui-search .pui-actions { margin: 0; }
.pui .pui-search__count { margin: 0 0 var(--pui-space-3); color: var(--pui-text-muted); }
.pui .pui-logins { list-style: none; margin: 0; padding: 0; }
.pui .pui-logins__item { padding: var(--pui-space-2) 0; }
.pui .pui-logins__item:first-child { padding-top: 0; }
.pui .pui-logins__item + .pui-logins__item { border-top: 1px solid var(--pui-border); }
.pui .pui-logins__who { display: block; overflow-wrap: anywhere; }
.pui .pui-logins .pui-confirm { margin-top: var(--pui-space-1); }
.pui .pui-table tr:target > td { background: var(--pui-surface-soft); }

@media print {
	.pui {
		--pui-shadow: none;
		--pui-border: #000;
		--pui-border-strong: #000;
		--pui-text-muted: #000;
		font-size: 12pt;
	}

	.pui-shell,
	.pui-tabs,
	.pui-shell-footer,
	.pui-help,
	.pui-banner,
	.pui-page-header__action,
	.pui-page-header__crumb,
	.pui-button,
	.pui-confirm,
	.pui-actions,
	.pui-section__learn,
	.pui-no-print {
		display: none !important;
	}

	.pui-page { max-width: none; padding: 0; }
	.pui-page > * { max-width: none; }

	.pui-section { break-inside: avoid; border: 1px solid #000; }
	.pui-table-wrap { background: none; }
	.pui-table th { position: static; }
	.pui-pill { border: 1px solid #000; background: none; color: #000; }
	.pui-print-only { display: block; }

	/* The sheet on paper: tighter type and spacing than the screen card so a
	   one-page document stays one page, and the foot line never lands alone on
	   a second page. */
	.pui-sheet {
		--pui-size-1: 11pt;
		--pui-size-2: 12pt;
		--pui-size-3: 14pt;
		--pui-size-4: 22pt;
		--pui-size-small: 9.5pt;
		--pui-space-4: 10px;
		--pui-space-5: 14px;
		--pui-space-6: 18px;
		max-width: none;
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 11pt;
		line-height: 1.4;
	}
	.pui-sheet__total,
	.pui-sheet__foot { break-inside: avoid; break-before: avoid; }
	/* A band of the results sheet keeps its heading with its first rows, and
	   a test case is never split across two pages. */
	.pui-sheet__band { break-after: avoid; }
	.pui-sheet .pui-table tr { break-inside: avoid; }
	.pui-sheet-page > .pui { min-height: 0; padding: 0; background: #fff; }
	.pui-sheet-page__back,
	.pui-sheet-page__bar { display: none !important; }
}

@media screen {
	.pui-print-only { display: none; }
}
