/**
 * The page template (0.59.0, designmalen B-FP-523 – B-FP-529, rad 4.45c):
 * the shared building blocks of the «stram linje» for every UT page type.
 *
 * Opt-in by wrapping a page in `.ut-ui-page`: nothing outside the wrapper
 * changes, so pages move to the template one at a time. The wrapper is a
 * size container (`ut-page`); every block below switches to its phone form
 * when the page itself is narrower than 47.5 rem, not the window.
 *
 * Six rules (B-FP-523): text before pills; show the exception, not the usual;
 * one frame per level; colour means something; the whole row is the link;
 * nothing twice.
 *
 * Type scale (custom properties on the wrapper, plain text everywhere —
 * no capitals): page title 38/26 px, part heading 22 px, section 18 px,
 * text 16 px, small text 14 px.
 *
 * Blocks (markup contract: contracts/primitives/page-template/):
 *   .ut-ui-page-head   — object head (mark, small line, name, meta, actions)
 *                        or list head (small line, name, one sentence)
 *   .ut-ui-mark        — logo → type icon → initials; date and done marks
 *   .ut-ui-stats       — the number strip at the top of an overview
 *   .ut-ui-section     — one white surface with a head and rows or text
 *   .ut-ui-rows / -row — the shared row: mark, name, columns, end
 *   .ut-ui-dot         — status as a dot and text, only when it says something
 *   .ut-ui-count       — a number that waits, as a pill (the only pill)
 *   .ut-ui-aside       — the right column, straight on the background
 *   .ut-ui-part        — a section straight on the background with a line
 *   .ut-ui-blank       — the calm empty surface: one sentence, one button
 *   .ut-ui-simple      — the simple page: one surface, one message
 *   .ut-ui-wizard      — numbered steps under each other
 *
 * Inside the wrapper the label-like lines of older primitives (form field
 * label, register label, callout title, status chip, system voice) are plain
 * text too (B-FP-525 1A, B-FP-527).
 *
 * Its own registered handle `ut-ui-core-page` (also in
 * `ut-ui-core-workspace-kit`), NOT part of dist/ui-core.css, so the base
 * stylesheet and the rendered-profile approvals bound to its bytes stay
 * unchanged. Values come from the `.ut-ui` token roles; the brand colour is
 * the site's own.
 */

.ut-ui-page {
  --ut-type-page: 2.375rem;
  --ut-type-part: 1.375rem;
  --ut-type-section: 1.125rem;
  --ut-type-body: 1rem;
  --ut-type-small: 0.875rem;
  --ut-page-soft: color-mix(in srgb, var(--ut-content) 5%, var(--ut-canvas));
  --ut-page-pad: 1.25rem;
  container: ut-page / inline-size;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-size: var(--ut-type-body);
  line-height: 1.5;
  color: var(--ut-content);
}

.ut-ui-page *,
.ut-ui-page *::before,
.ut-ui-page *::after {
  box-sizing: border-box;
}

.ut-ui-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
  margin: 0;
}

.ut-ui-page :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.ut-ui-page :where(a:not(.ut-ui-button)) {
  color: inherit;
  text-decoration: none;
}

.ut-ui-page :where(svg) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ut-ui-page a:focus-visible,
.ut-ui-page button:focus-visible {
  outline: var(--ut-focus-ring-width, 2px) solid var(--ut-focus-ring-color, var(--ut-brand));
  outline-offset: var(--ut-focus-ring-offset, 2px);
}

/* ── Plain text inside the template (no capitals) ─────────────────────── */

.ut-ui-page .ut-ui-form-field__label {
  color: var(--ut-content) !important;
  font-size: var(--ut-type-small) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ut-ui-page .ut-ui-register__label,
.ut-ui-page .ut-ui-callout__title,
.ut-ui-page .ut-ui-combobox__group {
  font-family: var(--ut-font-sans);
  letter-spacing: 0;
  text-transform: none;
}

.ut-ui-page .ut-ui-register__label {
  font-size: var(--ut-type-small);
  font-weight: 400;
  color: var(--ut-content-muted);
}

.ut-ui-page .ut-ui-callout__title {
  font-size: var(--ut-type-body);
  font-weight: 650;
}

.ut-ui-page .ut-ui-sys,
.ut-ui-page .ut-ui-status-chip {
  font-family: var(--ut-font-sans);
  font-size: var(--ut-type-small);
  letter-spacing: 0;
  text-transform: none;
}

/* ── Two columns: the main column and the right column ────────────────── */

.ut-ui-page__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 2rem;
  align-items: start;
}

.ut-ui-page__main {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

/* ── Page head ────────────────────────────────────────────────────────── */

.ut-ui-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  margin: 0 0 1.75rem;
}

.ut-ui-page-head[data-ut-variant='list'] {
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.ut-ui-page-head__text {
  flex: 1 1 16rem;
  min-width: 0;
}

.ut-ui-page-head__over {
  margin: 0 0 0.125rem;
  font-size: var(--ut-type-small);
  font-weight: 600;
  color: var(--ut-content-muted);
}

.ut-ui-page .ut-ui-page-head__title {
  margin: 0 0 0.375rem;
  font-family: var(--ut-font-display, var(--ut-font-sans));
  font-size: var(--ut-type-page);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.ut-ui-page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem 0.5rem;
  color: var(--ut-content-muted);
}

.ut-ui-page-head__meta > span {
  white-space: nowrap;
}

.ut-ui-page-head__meta > span + span:not(.ut-ui-dot)::before {
  content: '·';
  margin-right: 0.5rem;
  color: var(--ut-border-control);
}

.ut-ui-page-head__meta > .ut-ui-dot {
  margin-left: 0.5rem;
  font-size: var(--ut-type-body);
}

.ut-ui-page-head__intro {
  max-width: 65ch;
  color: var(--ut-content-muted);
}

.ut-ui-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Mark: logo → type icon → initials ────────────────────────────────── */

.ut-ui-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--ut-border);
  border-radius: 12px;
  background: var(--ut-page-soft, var(--ut-surface));
  color: var(--ut-content);
  line-height: 1;
}

.ut-ui-mark[data-ut-size='sm'] {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
}

.ut-ui-mark > svg {
  width: 46%;
  height: 46%;
}

.ut-ui-mark > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ut-ui-mark[data-ut-variant='logo'] {
  background: var(--ut-surface);
}

.ut-ui-mark[data-ut-variant='photo'] {
  border: 0;
}

.ut-ui-mark[data-ut-variant='photo'] > img {
  object-fit: cover;
}

.ut-ui-mark[data-ut-variant='initials'] {
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ut-content-muted);
}

.ut-ui-mark[data-ut-variant='initials'][data-ut-size='sm'] {
  font-size: 0.8125rem;
}

.ut-ui-mark[data-ut-variant='done'] {
  border-color: var(--ut-success-border);
  background: var(--ut-success-surface);
  color: var(--ut-success);
}

.ut-ui-mark[data-ut-variant='date'] {
  align-content: center;
  gap: 2px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
}

.ut-ui-mark__day {
  font-size: 1.0625rem;
  font-weight: 700;
}

.ut-ui-mark__month {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ut-content-muted);
}

/* ── Status: a dot and text ───────────────────────────────────────────── */

.ut-ui-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: var(--ut-type-small);
  color: var(--ut-content-muted);
}

.ut-ui-dot::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ut-border-control);
}

.ut-ui-dot[data-ut-variant='ok']::before {
  background: var(--ut-success);
}

.ut-ui-dot[data-ut-variant='wait'] {
  font-weight: 600;
  color: var(--ut-content);
}

.ut-ui-dot[data-ut-variant='wait']::before {
  background: var(--ut-warning);
}

.ut-ui-dot[data-ut-variant='danger'] {
  font-weight: 600;
  color: var(--ut-danger);
}

.ut-ui-dot[data-ut-variant='danger']::before {
  background: var(--ut-danger);
}

/* The only pill: a number that waits on the user. */
.ut-ui-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4375rem;
  border-radius: var(--ut-radius-pill, 999px);
  background: var(--ut-brand);
  color: var(--ut-on-brand, #fff);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Number strip ─────────────────────────────────────────────────────── */

.ut-ui-stats {
  display: grid;
  grid-template-columns: repeat(var(--ut-stats-columns, 4), minmax(0, 1fr));
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--ut-border);
  border-radius: 12px;
  background: var(--ut-surface);
}

.ut-ui-stats[data-ut-count='2'] { --ut-stats-columns: 2; }
.ut-ui-stats[data-ut-count='3'] { --ut-stats-columns: 3; }

.ut-ui-stats__item {
  min-width: 0;
  border-left: 1px solid var(--ut-border);
}

.ut-ui-stats__item:first-child {
  border-left: 0;
}

.ut-ui-stats__link {
  display: grid;
  align-content: start;
  gap: 1px;
  height: 100%;
  padding: 1rem 1.25rem;
}

.ut-ui-stats__value {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ut-ui-stats__item[data-ut-kind='text'] .ut-ui-stats__value {
  padding: 5px 0 4px;
  font-size: var(--ut-type-section);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.ut-ui-stats__label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: var(--ut-type-small);
  color: var(--ut-content-muted);
}

.ut-ui-stats__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ut-ui-stats__label > svg {
  flex: none;
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.ut-ui-stats__item[data-ut-state='zero'] .ut-ui-stats__value {
  font-weight: 500;
  color: var(--ut-content-subtle);
}

.ut-ui-stats__item[data-ut-state='wait'] .ut-ui-stats__link {
  background: var(--ut-brand-surface);
}

.ut-ui-stats__item[data-ut-state='wait'] :is(.ut-ui-stats__value, .ut-ui-stats__label) {
  color: var(--ut-brand-strong);
}

.ut-ui-stats__item[data-ut-state='wait'] .ut-ui-stats__label {
  font-weight: 600;
}

/* ── Section: one white surface ───────────────────────────────────────── */

.ut-ui-section {
  overflow: hidden;
  border: 1px solid var(--ut-border);
  border-radius: 12px;
  background: var(--ut-surface);
}

.ut-ui-section[data-ut-variant='wait'] {
  box-shadow: inset 3px 0 0 var(--ut-brand);
}

.ut-ui-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1rem var(--ut-page-pad) 0.625rem;
}

.ut-ui-page .ut-ui-section__title {
  font-size: var(--ut-type-section);
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.ut-ui-section__intro {
  flex: 1 1 100%;
  font-size: 0.9375rem;
  color: var(--ut-content-muted);
}

.ut-ui-section__total {
  font-size: 0.9375rem;
  color: var(--ut-content-muted);
}

.ut-ui-page .ut-ui-section__all {
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ut-link);
  white-space: nowrap;
}

.ut-ui-section__body {
  padding: 0 var(--ut-page-pad) 1.125rem;
}

.ut-ui-section__body > p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ut-content-muted);
}

.ut-ui-section__body > p:last-child {
  margin-bottom: 0;
}

.ut-ui-section__empty {
  padding: 0 var(--ut-page-pad) 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ut-content-muted);
}

.ut-ui-section__group {
  padding: 0.625rem var(--ut-page-pad) 0.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ut-content-muted);
}

.ut-ui-page .ut-ui-section__foot {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 var(--ut-page-pad);
  border-top: 1px solid var(--ut-border);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ut-link);
}

.ut-ui-section__foot > svg {
  width: 16px;
  height: 16px;
}

/* Facts inside a section: label and value. */
.ut-ui-kv > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 2px 1rem;
  padding: 0.625rem var(--ut-page-pad);
  border-top: 1px solid var(--ut-border);
  font-size: 0.9375rem;
}

.ut-ui-kv dt {
  color: var(--ut-content-muted);
}

.ut-ui-kv dd {
  font-weight: 500;
  overflow-wrap: break-word;
}

/* ── Rows ─────────────────────────────────────────────────────────────── */

.ut-ui-rows__item {
  border-top: 1px solid var(--ut-border);
}

.ut-ui-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.5625rem var(--ut-page-pad);
}

a.ut-ui-row:hover {
  background: var(--ut-hover-surface, var(--ut-page-soft));
}

.ut-ui-row[data-ut-state='wait'] {
  box-shadow: inset 3px 0 0 var(--ut-brand);
}

.ut-ui-row[data-ut-variant='tall'] {
  align-items: flex-start;
  padding-block: 0.875rem;
}

.ut-ui-row__text {
  display: grid;
  flex: 1 1 8rem;
  min-width: 0;
}

.ut-ui-row__title {
  font-weight: 600;
  overflow-wrap: break-word;
}

.ut-ui-page a.ut-ui-row__title {
  color: inherit;
}

.ut-ui-row__under,
.ut-ui-row__sub {
  font-size: var(--ut-type-small);
  color: var(--ut-content-muted);
}

.ut-ui-row__sub {
  display: none;
}

.ut-ui-row__excerpt {
  display: block;
  max-width: 60ch;
  margin-top: 2px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ut-content-muted);
}

.ut-ui-row__col {
  flex: none;
  width: var(--ut-row-col, 8.5rem);
  font-size: 0.9375rem;
  color: var(--ut-content-muted);
}

.ut-ui-row__col[data-ut-width='wide'] { width: 11.5rem; }
.ut-ui-row__col[data-ut-width='auto'] { width: auto; white-space: nowrap; }

.ut-ui-row__value {
  flex: 0 1 auto;
  max-width: 48%;
  text-align: right;
  font-size: 0.9375rem;
  color: var(--ut-content-muted);
  overflow-wrap: anywhere;
}

/* `--ut-row-end` on the section (or the rows) gives every row's end the same
   width, so the columns line up when some rows carry a status and some not. */
.ut-ui-row__end {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: var(--ut-row-end, 1.125rem);
}

.ut-ui-row__end .ut-ui-button {
  white-space: nowrap;
}

.ut-ui-row__go {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ut-content-subtle);
}

.ut-ui-row[data-ut-variant='tall'] .ut-ui-row__go {
  margin-top: 4px;
}

.ut-ui-row__thumb {
  flex: none;
  width: 4.5rem;
  height: 3.375rem;
  overflow: hidden;
  border: 1px solid var(--ut-border);
  border-radius: 8px;
  background: var(--ut-page-soft);
}

.ut-ui-row__thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Right column: straight on the background ─────────────────────────── */

.ut-ui-aside__part {
  padding: 0 0 1.25rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--ut-border);
}

.ut-ui-aside__part:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.ut-ui-page .ut-ui-aside__title {
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.ut-ui-aside__part > p {
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ut-content-muted);
}

.ut-ui-facts {
  display: grid;
  gap: 0.625rem;
}

.ut-ui-facts > div {
  display: grid;
}

.ut-ui-facts dt {
  font-size: 0.8125rem;
  color: var(--ut-content-muted);
}

.ut-ui-facts dd {
  font-size: 0.9375rem;
  font-weight: 500;
  overflow-wrap: break-word;
}

.ut-ui-page .ut-ui-facts a {
  color: var(--ut-link);
}

.ut-ui-links {
  margin: 0 0 -0.5rem;
}

.ut-ui-links a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ut-ui-links a > span {
  flex: 1;
}

.ut-ui-links svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ut-content-muted);
}

/* ── Parts straight on the background (editing, settings, public front) ─ */

.ut-ui-part {
  padding: 1.5rem 0;
  border-top: 1px solid var(--ut-border);
}

.ut-ui-part:first-child {
  padding-top: 0.5rem;
  border-top: 0;
}

.ut-ui-part__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.ut-ui-part__text {
  min-width: 0;
}

.ut-ui-page .ut-ui-part__title {
  font-size: var(--ut-type-section);
  font-weight: 650;
  line-height: 1.3;
}

.ut-ui-page .ut-ui-part[data-ut-variant='prose'] .ut-ui-part__title {
  font-size: var(--ut-type-part);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ut-ui-part__intro {
  margin-top: 1px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ut-content-muted);
}

/* ── Calm empty surface ───────────────────────────────────────────────── */

.ut-ui-blank {
  display: grid;
  justify-items: start;
  gap: 0.375rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--ut-border);
  border-radius: 12px;
  background: var(--ut-surface);
}

.ut-ui-page .ut-ui-blank__title {
  margin: 0.5rem 0 0;
  font-size: var(--ut-type-section);
  font-weight: 650;
}

.ut-ui-blank__text {
  max-width: 60ch;
  margin: 0 0 0.375rem;
  color: var(--ut-content-muted);
}

/* ── Simple page: one message, one action ─────────────────────────────── */

.ut-ui-simple {
  max-width: calc(34rem + 3rem);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.ut-ui-simple__site {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  font-weight: 650;
}

.ut-ui-simple__card {
  padding: 1.75rem;
  border: 1px solid var(--ut-border);
  border-radius: 12px;
  background: var(--ut-surface);
}

.ut-ui-simple__card > .ut-ui-mark {
  margin: 0 0 0.875rem;
}

.ut-ui-simple__step {
  margin: 0 0 0.375rem;
  font-size: var(--ut-type-small);
  font-weight: 600;
  color: var(--ut-content-muted);
}

.ut-ui-page .ut-ui-simple__title {
  margin: 0 0 0.5rem;
  font-family: var(--ut-font-display, var(--ut-font-sans));
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ut-ui-simple__body > p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.ut-ui-simple__body > p:last-child {
  margin-bottom: 0;
}

.ut-ui-simple__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.125rem 0 0;
}

.ut-ui-simple__legal {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--ut-border);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ut-content-muted);
}

/* ── Wizard: numbered steps ───────────────────────────────────────────── */

.ut-ui-wizard {
  max-width: 42rem;
}

.ut-ui-wizard__step {
  padding: 1.375rem 0;
  border-top: 1px solid var(--ut-border);
}

.ut-ui-wizard__step:first-child {
  padding-top: 0.25rem;
  border-top: 0;
}

.ut-ui-wizard__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.ut-ui-page .ut-ui-wizard__title {
  font-size: var(--ut-type-section);
  font-weight: 650;
}

.ut-ui-wizard__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--ut-border);
  border-radius: 50%;
  background: var(--ut-page-soft);
  font-size: var(--ut-type-small);
  font-weight: 650;
}

.ut-ui-wizard__step[data-ut-state='current'] .ut-ui-wizard__num {
  border-color: var(--ut-content);
  background: var(--ut-content);
  color: var(--ut-surface);
}

/* ── Phone form: the page is narrower than 47.5 rem ───────────────────── */

@container ut-page (max-width: 47.5rem) {
  /* A container cannot style itself: the phone scale is set on its children
     and inherited from there. */
  .ut-ui-page > * {
    --ut-type-page: 1.625rem;
    --ut-type-part: 1.1875rem;
    --ut-page-pad: 1rem;
  }

  .ut-ui-page__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .ut-ui-page-head {
    gap: 0.75rem 0.875rem;
    margin-bottom: 1.25rem;
  }

  .ut-ui-page-head > .ut-ui-mark {
    width: 3rem;
    height: 3rem;
  }

  .ut-ui-page-head__text {
    flex: 1 1 0;
  }

  .ut-ui-page-head__actions {
    flex: 1 1 100%;
  }

  .ut-ui-page-head__actions .ut-ui-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ut-ui-page-head__meta,
  .ut-ui-page-head__meta > .ut-ui-dot {
    font-size: 0.9375rem;
  }

  .ut-ui-stats {
    --ut-stats-columns: 2;
    margin-bottom: 1.25rem;
  }

  .ut-ui-stats[data-ut-count='3'] { --ut-stats-columns: 3; }

  .ut-ui-stats:not([data-ut-count='3']) .ut-ui-stats__item:nth-child(odd) {
    border-left: 0;
  }

  .ut-ui-stats:not([data-ut-count='3']) .ut-ui-stats__item:nth-child(n + 3) {
    border-top: 1px solid var(--ut-border);
  }

  .ut-ui-stats__link {
    padding: 0.75rem 0.875rem;
  }

  .ut-ui-stats__value {
    font-size: 1.5rem;
  }

  .ut-ui-stats__item[data-ut-kind='text'] .ut-ui-stats__value {
    padding: 3px 0;
    font-size: var(--ut-type-body);
  }

  .ut-ui-section__head {
    padding-top: 0.875rem;
    padding-bottom: 0.5rem;
  }

  .ut-ui-row {
    flex-wrap: wrap;
  }

  .ut-ui-row__col {
    display: none;
  }

  .ut-ui-row__end {
    min-width: 0;
  }

  .ut-ui-row__sub {
    display: block;
  }

  .ut-ui-row__value {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: left;
  }

  .ut-ui-kv > div {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 0.5625rem;
  }

  .ut-ui-blank {
    padding: 1.25rem 1rem;
  }

  .ut-ui-simple {
    padding: 1.25rem 0.875rem 1.75rem;
  }

  .ut-ui-simple__card {
    padding: 1.25rem;
  }

  .ut-ui-simple__actions .ut-ui-button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ut-ui-page * {
    transition: none !important;
  }
}
