/*
  ctnlist's theme (B12): Bootstrap 6's light look on CattoPHP's components and frame.

  1. Bootstrap 6 underneath. CattoPHP's stylesheet restores Bootstrap 5.3.8's reboot with rules outside any cascade
     layer, which win over all of Bootstrap 6 (whose rules are in layers), components and utilities included. ctnlist's
     pages are drawn in Bootstrap 6 itself, so each of those rules is declared again here with revert-layer: the
     property then takes the value Bootstrap 6's layers give it, as if CattoPHP's rule were not there. CattoPHP's rules
     on its own classes (cl-*) are more specific and keep their values. When CattoPHP's stylesheet changes, this list is
     brought into step with its rules outside its own classes.
*/
body{margin:revert-layer;font-family:revert-layer;font-size:revert-layer;font-weight:revert-layer;line-height:revert-layer;color:revert-layer;background-color:revert-layer;-webkit-text-size-adjust:revert-layer;-webkit-tap-highlight-color:revert-layer}
a{color:revert-layer;text-decoration:revert-layer}
a:hover{color:revert-layer}
a:not([href]):not([class]),a:not([href]):not([class]):hover{color:revert-layer;text-decoration:revert-layer}
:focus-visible{outline-color:revert-layer}
@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:revert-layer}}
hr{margin:revert-layer;color:revert-layer;border:revert-layer;border-top:revert-layer;opacity:revert-layer}
a{text-underline-offset:revert-layer}
iframe{color-scheme:revert-layer}
:root{accent-color:revert-layer}
.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:revert-layer;margin-bottom:revert-layer;font-weight:revert-layer;line-height:revert-layer;color:revert-layer}
.h1,h1{font-size:revert-layer}
.h2,h2{font-size:revert-layer}
.h3,h3{font-size:revert-layer}
.h4,h4{font-size:revert-layer}
@media (min-width:1200px){.h1,h1{font-size:revert-layer}}
@media (min-width:1200px){.h2,h2{font-size:revert-layer}}
@media (min-width:1200px){.h3,h3{font-size:revert-layer}}
@media (min-width:1200px){.h4,h4{font-size:revert-layer}}
.h5,h5{font-size:revert-layer}
.h6,h6{font-size:revert-layer}
p{margin-top:revert-layer;margin-bottom:revert-layer}
abbr[title]{text-decoration:revert-layer;cursor:revert-layer;text-decoration-skip-ink:revert-layer}
address{margin-bottom:revert-layer;font-style:revert-layer;line-height:revert-layer}
ol,ul{padding-left:revert-layer}
dl,ol,ul{margin-top:revert-layer;margin-bottom:revert-layer}
ol ol,ol ul,ul ol,ul ul{margin-bottom:revert-layer}
dt{font-weight:revert-layer}
dd{margin-bottom:revert-layer;margin-left:revert-layer}
blockquote{margin:revert-layer}
b,strong{font-weight:revert-layer}
.small,small{font-size:revert-layer}
sub,sup{position:revert-layer;font-size:revert-layer;line-height:revert-layer;vertical-align:revert-layer}
sub{bottom:revert-layer}
sup{top:revert-layer}
code,kbd,pre,samp{font-family:revert-layer;font-size:revert-layer}
pre{display:revert-layer;margin-top:revert-layer;margin-bottom:revert-layer;overflow:revert-layer;font-size:revert-layer;color:revert-layer}
pre code{font-size:revert-layer;color:revert-layer;word-break:revert-layer}
code{font-size:revert-layer;color:revert-layer;word-wrap:revert-layer}
a>code{color:revert-layer}
kbd{padding:revert-layer;font-size:revert-layer;color:revert-layer;background-color:revert-layer;border-radius:revert-layer}
kbd kbd{padding:revert-layer;font-size:revert-layer}
figure{margin:revert-layer}
img,svg{vertical-align:revert-layer}
table{caption-side:revert-layer;border-collapse:revert-layer}
caption{padding-top:revert-layer;padding-bottom:revert-layer;color:revert-layer;text-align:revert-layer}
th{text-align:revert-layer}
tbody,td,tfoot,th,thead,tr{border-color:revert-layer;border-style:revert-layer;border-width:revert-layer}
label{display:revert-layer}
button{border-radius:revert-layer}
button:focus:not(:focus-visible){outline:revert-layer}
button,input,optgroup,select,textarea{margin:revert-layer;font-family:revert-layer;font-size:revert-layer;line-height:revert-layer}
button,select{text-transform:revert-layer}
textarea{resize:revert-layer}
fieldset{min-width:revert-layer;padding:revert-layer;margin:revert-layer;border:revert-layer}
legend{float:revert-layer;width:revert-layer;padding:revert-layer;margin-bottom:revert-layer;line-height:revert-layer;font-size:revert-layer}
@media (min-width:1200px){legend{font-size:revert-layer}}
legend+*{clear:revert-layer}
legend+input[type="hidden"]+*{clear:revert-layer}
summary{display:revert-layer;cursor:revert-layer}

/* CattoPHP's utilities are !important (as 5.3.8's were), so they beat Bootstrap 6's own at another width (md:flex-row over
   flex-column): each falls back to Bootstrap 6's layers too. */
.mb-0{margin-bottom:revert-layer!important}
.mb-1{margin-bottom:revert-layer!important}
.mb-3{margin-bottom:revert-layer!important}
.mb-5{margin-bottom:revert-layer!important}
.mb-7{margin-bottom:revert-layer!important}
.mb-12{margin-bottom:revert-layer!important}
.mt-0{margin-top:revert-layer!important}
.mt-1{margin-top:revert-layer!important}
.mt-3{margin-top:revert-layer!important}
.mt-5{margin-top:revert-layer!important}
.mt-7{margin-top:revert-layer!important}
.mt-12{margin-top:revert-layer!important}
.p-5{padding:revert-layer!important}
.py-5{padding-top:revert-layer!important;padding-bottom:revert-layer!important}
.py-12{padding-top:revert-layer!important;padding-bottom:revert-layer!important}
.gap-3{gap:revert-layer!important}
.gap-5{gap:revert-layer!important}
.d-none{display:revert-layer!important}
.d-block{display:revert-layer!important}
.d-flex{display:revert-layer!important}
.flex-column{flex-direction:revert-layer!important}
.flex-wrap{flex-wrap:revert-layer!important}
.justify-content-between{justify-content:revert-layer!important}
.align-items-center{align-items:revert-layer!important}
.align-items-end{align-items:revert-layer!important}
.text-end{text-align:revert-layer!important}
.text-uppercase{text-transform:revert-layer!important}
.fw-bold{font-weight:revert-layer!important}

/*
  2. CattoPHP's components in Bootstrap 6's look, as ctnlist drew it with Bootstrap's own classes: each paints with
     Bootstrap 6's custom properties, so the colours, type, borders and corners are Bootstrap's.
*/

/* The page head: the page's h1 as Bootstrap's h3 (mb-1), its lead in the second text colour, 1.5rem below (mb-7). */
:root {
    --cl-section-space: 0;
    --cl-head-inset: 0;
}
.cl-page-head {
    margin-bottom: 1.5rem;
}
.cl-page-head h1 {
    margin-top: 0;
    margin-bottom: .25rem;
    font-family: var(--bs-heading-font-family);
    font-style: var(--bs-heading-font-style);
    font-size: var(--bs-font-size-xl);
    font-weight: var(--bs-heading-font-weight, var(--bs-font-weight-medium));
    line-height: var(--bs-heading-line-height);
    color: var(--bs-heading-color, inherit);
}
/* Its h1 carries CattoPHP's display class and fw-bold, which is !important. */
.cl-page-head h1.fw-bold {
    font-weight: var(--bs-heading-font-weight, var(--bs-font-weight-medium)) !important;
}
.cl-page-head .cl-lead {
    font-size: inherit;
    font-weight: inherit;
    color: var(--bs-fg-2);
}

/* Notices: Bootstrap's alert in its theme colour (theme-info and the rest), with the space below every alert had. */
.cl-ui-notice {
    gap: var(--bs-spacer-3);
    margin-bottom: var(--bs-spacer);
    padding: var(--bs-spacer) var(--bs-spacer);
    border: var(--bs-border-width) solid;
    border-radius: var(--bs-radius-7);
}
.cl-ui-notice:not(.cl-ui-notice--solid) {
    border-left-width: var(--bs-border-width) !important;
}
.cl-ui-notice--info { --cl-notice-background: var(--bs-info-bg-subtle); --cl-notice-text: var(--bs-info-fg); --cl-notice-edge: var(--bs-info-border); }
.cl-ui-notice--success { --cl-notice-background: var(--bs-success-bg-subtle); --cl-notice-text: var(--bs-success-fg); --cl-notice-edge: var(--bs-success-border); }
.cl-ui-notice--warning { --cl-notice-background: var(--bs-warning-bg-subtle); --cl-notice-text: var(--bs-warning-fg); --cl-notice-edge: var(--bs-warning-border); }
.cl-ui-notice--danger { --cl-notice-background: var(--bs-danger-bg-subtle); --cl-notice-text: var(--bs-danger-fg); --cl-notice-edge: var(--bs-danger-border); }
.cl-ui-notice--neutral { --cl-notice-background: var(--bs-secondary-bg-subtle); --cl-notice-text: var(--bs-secondary-fg); --cl-notice-edge: var(--bs-secondary-border); }

/* Actions: Bootstrap's buttons (btn-solid in a theme colour, btn-outline theme-secondary), their icon a Bootstrap Icons
   drawing the size of the icon font's (1em, with its me-1 space). */
.cl-ui-action {
    --cl-action-padding-y: var(--bs-btn-input-padding-y);
    --cl-action-padding-x: var(--bs-btn-input-padding-x);
    --cl-action-min-height: var(--bs-btn-input-min-height);
    --cl-action-font-size: var(--bs-btn-input-font-size);
    --cl-action-line-height: var(--bs-btn-input-line-height);
    --cl-action-radius: var(--bs-radius-5);
    gap: calc(var(--bs-btn-input-gap) + .25rem);
    font-size: var(--cl-action-font-size);
    font-weight: var(--bs-btn-input-font-weight);
    line-height: var(--cl-action-line-height);
    vertical-align: middle;
    color: var(--cl-btn-color);
    background-color: var(--cl-btn-bg);
    border: var(--bs-border-width) solid var(--cl-btn-border);
    border-radius: var(--cl-action-radius);
}
.cl-ui-action--small {
    --cl-action-padding-y: var(--bs-btn-input-sm-padding-y);
    --cl-action-padding-x: var(--bs-btn-input-sm-padding-x);
    --cl-action-min-height: var(--bs-btn-input-sm-min-height);
    --cl-action-font-size: var(--bs-btn-input-sm-font-size);
    --cl-action-line-height: var(--bs-btn-input-sm-line-height);
    --cl-action-radius: var(--bs-btn-input-sm-border-radius, var(--bs-radius-5));
    gap: calc(var(--bs-btn-input-sm-gap) + .25rem);
    font-size: var(--bs-btn-input-sm-font-size);
    line-height: var(--cl-action-line-height);
    border-radius: var(--cl-action-radius);
}
.cl-ui-action--large {
    --cl-action-padding-y: var(--bs-btn-input-lg-padding-y);
    --cl-action-padding-x: var(--bs-btn-input-lg-padding-x);
    --cl-action-min-height: var(--bs-btn-input-lg-min-height);
    --cl-action-font-size: var(--bs-btn-input-lg-font-size);
    --cl-action-line-height: var(--bs-btn-input-lg-line-height);
    --cl-action-radius: var(--bs-btn-input-lg-border-radius, var(--bs-radius-5));
    gap: calc(var(--bs-btn-input-lg-gap) + .25rem);
    font-size: var(--bs-btn-input-lg-font-size);
    line-height: var(--cl-action-line-height);
    border-radius: var(--cl-action-radius);
}
.cl-ui-action .cl-ui-icon {
    font-size: calc(100% / 1.1);
}
/* Joined buttons (app-btn-group, Bootstrap's button group): each after the first overlaps its neighbour's edge, and the
   inner corners are square. */
.app-btn-group > .cl-ui-action:not(:first-child) {
    margin-left: calc(-1 * var(--bs-border-width));
}
.app-btn-group > .cl-ui-action:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.app-btn-group > .cl-ui-action:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* A button that cannot be pressed, as Bootstrap shows it. */
.cl-ui-action:disabled {
    opacity: .65;
    cursor: default;
}
.cl-ui-action--primary { --cl-btn-bg: var(--bs-primary-bg); --cl-btn-color: var(--bs-primary-contrast); --cl-btn-border: var(--bs-primary-bg); }
.cl-ui-action--danger { --cl-btn-bg: var(--bs-danger-bg); --cl-btn-color: var(--bs-danger-contrast); --cl-btn-border: var(--bs-danger-bg); }
.cl-ui-action--secondary { --cl-btn-bg: transparent; --cl-btn-color: var(--bs-secondary-fg); --cl-btn-border: var(--bs-secondary-border); }
.cl-ui-action--success { --cl-btn-bg: var(--bs-success-bg); --cl-btn-color: var(--bs-success-contrast); --cl-btn-border: var(--bs-success-bg); }
.cl-ui-action--warning { --cl-btn-bg: var(--bs-warning-bg); --cl-btn-color: var(--bs-warning-contrast); --cl-btn-border: var(--bs-warning-bg); }
.cl-ui-action--primary-outline { --cl-btn-bg: transparent; --cl-btn-color: var(--bs-primary-fg); --cl-btn-border: var(--bs-primary-border); }
.cl-ui-action--success-outline { --cl-btn-bg: transparent; --cl-btn-color: var(--bs-success-fg); --cl-btn-border: var(--bs-success-border); }
.cl-ui-action--danger-outline { --cl-btn-bg: transparent; --cl-btn-color: var(--bs-danger-fg); --cl-btn-border: var(--bs-danger-border); }
/* Bootstrap's text button: no edge, the body's colour. */
.cl-ui-action--quiet { --cl-btn-bg: transparent; --cl-btn-color: var(--bs-fg-body); --cl-btn-border: transparent; }
/* The page head's actions start where Bootstrap's did: at the top of the head, and at the left when they wrap below it. */
:root {
    --cl-head-align: flex-start;
    --cl-head-content-basis: auto;
}
.cl-page-head-actions {
    margin-left: 0;
}

/* Tables: Bootstrap's table (with table-hover and align-middle, as every ctnlist table had; table-sm is the compact
   density), as ctnlist's own stylesheet set it (0.9375rem, a tinted head row in semibold). A table inside
   .app-table-still has no hover tint, and one inside .app-table-flush no space below it (Bootstrap's mb-0). The table
   scrolls sideways in its box when it is wider than the page, its columns as wide as their words need, which wrap. */
:root {
    --cl-table-layout: auto;
    --cl-table-cell-white-space: normal;
    --cl-table-overflow: auto;
}
.cl-ui-table > table {
    --bs-table-cell-padding-y: .5rem;
    --bs-table-cell-padding-x: .5rem;
    --bs-table-color: var(--bs-fg-body);
    --bs-table-bg: var(--bs-bg-body);
    --bs-table-accent-bg: transparent;
    --bs-table-border-width: var(--bs-border-width);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-hover-color: var(--bs-table-color);
    --bs-table-hover-bg-factor: 7.5%;
    --bs-table-color-type: initial;
    --bs-table-bg-type: initial;
    --bs-table-color-state: initial;
    --bs-table-bg-state: initial;
    margin-bottom: var(--bs-spacer);
    vertical-align: middle;
    border-color: var(--bs-table-border-color);
    font-size: .9375rem !important;
}
.cl-ui-table > table > tbody { vertical-align: inherit; }
.cl-ui-table > table > thead { vertical-align: bottom; }
.cl-ui-table > table > :not(caption) > * > * {
    padding: var(--bs-table-cell-padding-y) var(--bs-table-cell-padding-x) !important;
    font-size: .9375rem !important;
    line-height: inherit !important;
    letter-spacing: normal;
    background-color: var(--bs-table-bg);
    border-block-end-width: var(--bs-table-border-width);
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}
.cl-ui-table > table > thead > tr > * {
    --bs-table-bg-type: var(--bs-bg-2);
}
/* The head row's words stay on one line, as ctnlist's stylesheet kept them, and so do a cell's marked text-nowrap
   (CattoPHP's cell rule is !important, which Bootstrap's utility is not). */
.cl-ui-table > table > thead,
.cl-ui-table > table > * > tr > .text-nowrap {
    --cl-table-cell-white-space: nowrap;
}
.cl-ui-table > table > thead > tr:first-child > th:first-child,
.cl-ui-table > table > thead > tr:first-child > th:last-child {
    border-radius: 0;
}
.cl-ui-table > table > tbody > tr:hover > * {
    --bs-table-color-state: var(--bs-table-hover-color);
    --bs-table-bg-state: color-mix(in srgb, var(--bs-table-color) var(--bs-table-hover-bg-factor), transparent);
}
.app-table-still .cl-ui-table > table > tbody > tr:hover > * {
    --bs-table-color-state: initial;
    --bs-table-bg-state: initial;
}
.app-table-flush .cl-ui-table > table { margin-bottom: 0; }
.cl-ui-table[data-density="compact"] > table > :not(caption) > * > * {
    --bs-table-cell-padding-y: .25rem;
    --bs-table-cell-padding-x: .25rem;
}
/* A cell's colour in Bootstrap's custom layer, as ctnlist's stylesheet was, so a cell's colour utility (fg-2) still wins
   as it did over Bootstrap's table. */
@layer custom {
    .cl-ui-table > table > :not(caption) > * > * {
        color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
    }
    /* The head row in semibold, as ctnlist's stylesheet had it; a cell's fw-* utility still wins. */
    .cl-ui-table > table > thead > tr > * {
        font-weight: 600;
    }
}
/* What CattoPHP makes smaller in its table cells keeps Bootstrap's size: small print, and the row's buttons; and a cell
   marked small is small (CattoPHP's cell size is !important). */
.cl-ui-table td .small,
.cl-ui-table td small { font-size: .875em !important; }
.cl-ui-table > table > * > tr > .small { font-size: calc(.9375rem * .875) !important; }
.cl-ui-table td .cl-ui-action {
    padding: var(--cl-action-padding-y) var(--cl-action-padding-x) !important;
    font-size: var(--cl-action-font-size) !important;
    line-height: var(--cl-action-line-height) !important;
    border-radius: var(--cl-action-radius);
}

/* Badges: Bootstrap's badge, filled in its theme colour (solid) or subtle (badge-subtle), its icon spaced by me-1. */
:root {
    --cl-badge-min-height: 1.375rem;
    --cl-badge-white-space: nowrap;
}
.cl-ui-badge {
    --cl-badge-fg: var(--bs-secondary-fg);
    --cl-badge-bg: var(--bs-secondary-bg-subtle);
    --cl-badge-solid-fg: var(--bs-secondary-contrast);
    --cl-badge-solid-bg: var(--bs-secondary-bg);
    gap: calc(.375em + .25rem);
    padding: .25em .625em;
    font-size: clamp(12px, .75em, .75em);
    font-weight: var(--bs-font-weight-semibold);
    line-height: 1;
    text-align: center;
    vertical-align: baseline;
    color: var(--cl-badge-fg);
    background-color: var(--cl-badge-bg);
    border: var(--bs-border-width) solid transparent;
    border-radius: var(--bs-radius-7);
}
.cl-ui-badge.cl-ui-badge--solid {
    color: var(--cl-badge-solid-fg);
    background-color: var(--cl-badge-solid-bg);
}
/* A badge with an icon sits on the icon's baseline, which for the icon font's glyph was 1.75px (at 12px) above the
   drawing's foot: such a badge goes down by as much, to where it stood. */
.cl-ui-badge .cl-ui-icon { font-size: calc(100% / 1.1); }
.cl-ui-badge:has(> .cl-ui-icon:first-child) { vertical-align: -.1458em; }
.cl-ui-badge--success { --cl-badge-fg: var(--bs-success-fg); --cl-badge-bg: var(--bs-success-bg-subtle); --cl-badge-solid-fg: var(--bs-success-contrast); --cl-badge-solid-bg: var(--bs-success-bg); }
.cl-ui-badge--warning { --cl-badge-fg: var(--bs-warning-fg); --cl-badge-bg: var(--bs-warning-bg-subtle); --cl-badge-solid-fg: var(--bs-warning-contrast); --cl-badge-solid-bg: var(--bs-warning-bg); }
.cl-ui-badge--danger { --cl-badge-fg: var(--bs-danger-fg); --cl-badge-bg: var(--bs-danger-bg-subtle); --cl-badge-solid-fg: var(--bs-danger-contrast); --cl-badge-solid-bg: var(--bs-danger-bg); }
.cl-ui-badge--info { --cl-badge-fg: var(--bs-info-fg); --cl-badge-bg: var(--bs-info-bg-subtle); --cl-badge-solid-fg: var(--bs-info-contrast); --cl-badge-solid-bg: var(--bs-info-bg); }
.cl-ui-badge--primary { --cl-badge-fg: var(--bs-primary-fg); --cl-badge-bg: var(--bs-primary-bg-subtle); --cl-badge-solid-fg: var(--bs-primary-contrast); --cl-badge-solid-bg: var(--bs-primary-bg); }
.cl-ui-badge--inverse { --cl-badge-fg: var(--bs-inverse-fg); --cl-badge-bg: var(--bs-inverse-bg-subtle); --cl-badge-solid-fg: var(--bs-inverse-contrast); --cl-badge-solid-bg: var(--bs-inverse-bg); }
.cl-ui-table td .cl-ui-badge {
    padding: .25em .625em !important;
    font-size: clamp(12px, .75em, .75em) !important;
}
/* Rounded badges (Bootstrap's rounded-pill): the administration bar's counters, and the count on a Settings tab, set a
   little apart from its name (ms-1). */
.app-adminbar .cl-ui-badge,
.app-tabs .cl-ui-badge { border-radius: var(--bs-radius-pill, 50rem); }
.app-tabs .cl-ui-badge { margin-left: .25rem; }
/* The Settings tabs (the owner's answer of 30 November 2026: CattoPHP's boxed tabs, "with the row made to fit"): eleven
   tabs on one row from 1024px wide. Only this row, through ctnlist's own .app-tabs: a smaller label and less padding
   where the page is 1176px wide (1280px and up), smaller again, closer together, where it is 936px (1024px to 1279px).
   Narrower than that the row scrolls inside itself, as CattoPHP draws it. */
@media (width >= 1024px) {
    .app-tabs > .cl-group-nav.cl-group-nav--panes > .cl-group-tab { padding: .5rem .625rem; font-size: .9375rem; }
}
@media (width >= 1024px) and (width < 1280px) {
    .app-tabs > div.cl-group-nav.cl-group-nav--panes { gap: 2px; }
    .app-tabs > .cl-group-nav.cl-group-nav--panes > .cl-group-tab { padding: .4375rem .375rem; font-size: .8125rem; }
}

/* Cards: Bootstrap's card (CattoPHP's surface in its card form): its edge, corners and white; the head and foot bands on
   the first background step with Bootstrap's cap padding, the head's words semibold; the body padded and spaced as
   Bootstrap's card body. A card's tone is its edge (warning, info as Bootstrap's primary, danger as its subtle red) or,
   muted, its background (a panel of filters, Bootstrap's bg-1). */
.cl-ui-surface {
    color: var(--bs-fg-body);
    background-color: var(--bs-bg-body);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-radius-7);
}
section.cl-ui-surface[data-tone="warning"] { border-color: var(--bs-warning-bg); }
section.cl-ui-surface[data-tone="info"] { border-color: var(--bs-primary-bg); }
section.cl-ui-surface[data-tone="danger"] { border-color: var(--bs-danger-border); }
section.cl-ui-surface[data-tone="muted"] { background-color: var(--bs-bg-1); }
.cl-ui-surface-head {
    padding: var(--bs-spacer-3) var(--bs-spacer-5);
    font-weight: 600;
    background-color: var(--bs-bg-1);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}
.cl-ui-surface-head:first-child {
    border-radius: calc(var(--bs-radius-7) - var(--bs-border-width)) calc(var(--bs-radius-7) - var(--bs-border-width)) 0 0;
}
.cl-ui-surface-body {
    gap: calc(var(--bs-spacer-6) * .5);
    padding: var(--bs-spacer-6);
}
.cl-ui-surface--flush > .cl-ui-surface-body {
    gap: 0;
    padding: 0;
}
.cl-ui-surface-foot {
    padding: var(--bs-spacer-3) var(--bs-spacer-5);
    background-color: var(--bs-bg-1);
    border-top: var(--bs-border-width) solid var(--bs-border-color);
}
.cl-ui-surface-foot:last-child {
    border-radius: 0 0 calc(var(--bs-radius-7) - var(--bs-border-width)) calc(var(--bs-radius-7) - var(--bs-border-width));
}
/* A card that was itself a Symfony form (app-card-form) keeps square foot corners: the form's hidden fields came after
   its footer, which was then not the card's last part. */
.app-card-form > .cl-ui-surface > .cl-ui-surface-foot:last-child {
    border-radius: 0;
}
/* The body's parts take their margins from Bootstrap's layers (ctnlist's own reset and any utility on a part), not from
   CattoPHP's rule outside them, and below every rule of the theme's own. */
:where(.cl-ui-surface-body > *) {
    margin-block: revert-layer;
}

/* The trail (CattoPHP's breadcrumb in its boxed form): Bootstrap's breadcrumb, each step in the third text colour and
   rounded, tinted when pointed at, the current step in the first text colour and the chevrons in the fourth. */
.cl-ui-breadcrumb--boxed > a,
.cl-ui-breadcrumb--boxed > span:not(.cl-ui-breadcrumb-separator, [aria-current]) {
    color: var(--bs-fg-3);
    border-radius: var(--bs-radius-7);
}
.cl-ui-breadcrumb--boxed > a:hover {
    color: var(--bs-fg-2);
    background-color: var(--bs-bg-1);
}
.cl-ui-breadcrumb--boxed > [aria-current] {
    color: var(--bs-fg-1);
}
.cl-ui-breadcrumb--boxed > .cl-ui-breadcrumb-separator {
    color: var(--bs-fg-4);
}

/* The close button (CattoPHP's, drawn): Bootstrap's, its corners rounded and Bootstrap's focus ring. */
.cl-ui-close--drawn {
    border-radius: var(--bs-radius-4);
}
.cl-ui-close--drawn:focus-visible {
    outline: var(--bs-focus-ring);
    outline-offset: revert-layer;
}

/* Settings' tabs (CattoPHP's tabs in the panes form): Bootstrap's tabs, a line under the row; each tab in the second
   text colour with its bottom edge on that line, tinted when pointed at, the open one white with its edges drawn and
   open at the bottom, and one whose section has errors in red, its icon set a little apart from its name (me-1). */
.cl-group-nav--panes {
    box-shadow: inset 0 -1px 0 var(--bs-border-color);
}
.cl-group-nav--panes > .cl-group-tab {
    color: var(--bs-fg-2);
    border-color: transparent transparent var(--bs-border-color);
    border-radius: var(--bs-radius-5) var(--bs-radius-5) 0 0;
}
@media (prefers-reduced-motion: no-preference) {
    .cl-group-nav--panes > .cl-group-tab {
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    }
}
.cl-group-nav--panes > .cl-group-tab:hover,
.cl-group-nav--panes > .cl-group-tab:focus {
    color: var(--bs-fg-1);
    background-color: var(--bs-bg-1);
}
.cl-group-nav--panes > .cl-group-tab:focus-visible {
    outline: var(--bs-focus-ring);
    outline-offset: 1px;
}
.cl-group-nav--panes > .cl-group-tab:active {
    color: var(--bs-fg-body);
    background-color: var(--bs-bg-2);
}
.cl-group-nav--panes > .cl-group-tab:hover {
    isolation: isolate;
    border-color: var(--bs-border-subtle) var(--bs-border-subtle) var(--bs-border-color);
}
.cl-group-nav--panes > .cl-group-tab.active {
    color: var(--bs-fg-body);
    background-color: var(--bs-bg-body);
    border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-bg-body);
}
.cl-group-nav--panes > .cl-group-tab.cl-group-tab--danger {
    color: var(--bs-danger-fg);
}
.cl-group-tab-icon {
    margin-right: .25rem;
}

/* The pager (CattoPHP's plain pager): Bootstrap's small pager, its pages joined in a row with rounded ends, each in the
   links' colour on white and tinted when pointed at, the current one filled in the primary colour, a step that leads
   nowhere grey. */
.cl-ui-pager-link {
    font-size: var(--bs-font-size-sm);
    color: var(--bs-link-color);
    background-color: var(--bs-bg-body);
    border-color: var(--bs-border-color);
}
@media (prefers-reduced-motion: no-preference) {
    .cl-ui-pager-link {
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }
}
.cl-ui-pager-link:hover {
    color: var(--bs-link-hover-color);
    background-color: var(--bs-bg-1);
    border-color: var(--bs-border-color);
}
.cl-ui-pager-link:focus-visible {
    outline: var(--bs-focus-ring-width) solid var(--bs-focus-ring-color);
    outline-offset: var(--bs-focus-ring-offset);
}
.cl-ui-pager-item.is-current > .cl-ui-pager-link {
    color: var(--bs-primary-contrast);
    background-color: var(--bs-primary-bg);
    border-color: var(--bs-primary-bg);
}
.cl-ui-pager-item.is-disabled > .cl-ui-pager-link {
    color: var(--bs-fg-3);
    background-color: var(--bs-bg-2);
    border-color: var(--bs-border-color);
}
.cl-ui-pager-item:first-child > .cl-ui-pager-link {
    border-start-start-radius: var(--bs-radius-5);
    border-end-start-radius: var(--bs-radius-5);
}
.cl-ui-pager-item:last-child > .cl-ui-pager-link {
    border-start-end-radius: var(--bs-radius-5);
    border-end-end-radius: var(--bs-radius-5);
}

/* Menus (CattoPHP's): Bootstrap's menu, white with a translucent edge, rounded and raised, in small print; each choice
   rounded, tinted when pointed at, the current page's filled in the primary colour, a destroying choice in red. */
.cl-ui-menu {
    font-size: var(--bs-font-size-sm);
    color: var(--bs-fg-body);
    background-color: var(--bs-bg-body);
    border-color: var(--bs-border-color-translucent);
    border-radius: var(--bs-radius-7);
    box-shadow: var(--bs-box-shadow-lg);
    transition-timing-function: var(--bs-transition-timing-overlay);
}
.cl-ui-menu-item {
    font-weight: var(--bs-font-weight-normal);
    color: var(--bs-fg-body);
    border-radius: var(--bs-radius-5);
}
.cl-ui-menu-item:hover,
.cl-ui-menu-item:focus {
    color: var(--bs-fg-body);
    background-color: var(--bs-bg-1);
}
.cl-ui-menu-item.is-current,
.cl-ui-menu-item:active {
    color: var(--bs-primary-contrast);
    background-color: var(--bs-primary-bg);
}
.cl-ui-menu-item.cl-ui-menu-item--danger {
    color: var(--bs-danger-fg);
}
.cl-ui-menu-divider {
    border-top-color: var(--bs-border-color-translucent);
}
.cl-ui-menu-text {
    color: var(--bs-fg-2);
}

/* Drawers (CattoPHP's: the phone's site menu and administration menu): Bootstrap's drawer, white with a translucent
   edge, rounded and raised, over the page dimmed and blurred; its title in the medium size. */
.cl-ui-drawer {
    color: var(--bs-fg-body);
    background-color: var(--bs-bg-body);
    border-color: var(--bs-border-color-translucent);
    border-radius: var(--bs-radius-7);
    box-shadow: var(--bs-box-shadow-xl);
    transition-timing-function: var(--bs-transition-timing-overlay);
}
.cl-ui-drawer::backdrop {
    background-color: color-mix(in oklch, var(--bs-bg-body) 25%, transparent);
    backdrop-filter: blur(8px);
    transition-timing-function: var(--bs-transition-timing-overlay);
}
.cl-ui-drawer-title {
    font-size: var(--bs-font-size-md);
}

/* Fields (CattoPHP's form.field, and its controls cl-input, cl-select and cl-check): Bootstrap 6's form field. The
   label .5rem above its control, in weight 500 (a tick's or a radio's label in the text's own weight, beside it); a
   required field's marker in the danger colour; the help in small print in the second text colour; the error in small
   print in the danger colour. */
:root {
    --cl-field-gap: .5rem;
    --cl-control-display: flex;
    --cl-control-min-height: var(--bs-btn-input-min-height);
    --cl-control-lg-min-height: var(--bs-btn-input-lg-min-height);
    --cl-control-sm-min-height: var(--bs-btn-input-sm-min-height);
    --cl-check-size: 1.25rem;
}
.cl-ui-field > label {
    font-size: var(--bs-label-font-size, inherit);
    font-style: var(--bs-label-font-style, inherit);
    font-weight: var(--bs-label-font-weight, 500);
    color: var(--bs-label-color, var(--bs-fg-body));
}
.cl-ui-field--check > label {
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    color: inherit;
}
.cl-ui-required {
    color: var(--bs-danger-fg);
}
.cl-ui-field-help {
    font-size: var(--bs-font-size-sm);
    color: var(--bs-fg-2);
    opacity: 1;
}
.cl-ui-field-error {
    font-size: var(--bs-font-size-sm);
    color: var(--bs-danger-fg);
}

/* The controls: Bootstrap 6's, white with an edge, rounded, a faint inner shadow, its focus ring an outline. */
.cl-input,
.cl-select {
    padding: var(--bs-btn-input-padding-y) var(--bs-btn-input-padding-x);
    font-size: var(--bs-btn-input-font-size);
    line-height: var(--bs-btn-input-line-height);
    color: var(--bs-btn-input-fg);
    background-color: var(--bs-btn-input-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-radius-5);
    box-shadow: var(--bs-box-shadow-inset);
}
.cl-select {
    padding-right: calc(var(--bs-btn-input-padding-x) * 3);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300000080' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.cl-select[multiple],
.cl-select[size]:not([size="1"]) {
    padding-right: var(--bs-btn-input-padding-x);
    background-image: none;
}
.cl-input:focus,
.cl-select:focus {
    color: var(--bs-btn-input-fg);
    background-color: var(--bs-btn-input-bg);
    border-color: var(--bs-border-color);
    box-shadow: var(--bs-box-shadow-inset);
}
.cl-input:focus-visible,
.cl-select:focus-visible,
.cl-input:focus-within,
.cl-select:focus-within {
    outline: var(--bs-focus-ring);
    outline-offset: -1px;
}
/* A button drawn as a drop-down (the message editor's lists) keeps its ring while its menu is open, over the frame's
   rule for a button pressed with the pointer (more specific), as Bootstrap's forms layer did. */
button.cl-select:focus-within {
    outline: var(--bs-focus-ring);
    outline-offset: -1px;
}
.cl-input::placeholder {
    color: var(--bs-fg-3);
}
.cl-input:disabled,
.cl-select:disabled {
    color: var(--bs-btn-input-fg);
    background-color: var(--bs-bg-2);
    border-color: var(--bs-border-color);
}
.cl-input::-webkit-datetime-edit {
    padding: 0;
    display: block;
}
.cl-input::-webkit-datetime-edit-text {
    color: var(--bs-fg-3);
}
.cl-input::file-selector-button {
    min-height: var(--bs-btn-input-min-height);
    padding: var(--bs-btn-input-padding-y) var(--bs-btn-input-padding-x);
    margin: calc(var(--bs-btn-input-padding-y) * -1) calc(var(--bs-btn-input-padding-x) * -1);
    margin-inline-end: var(--bs-btn-input-padding-x);
    color: var(--bs-btn-input-fg);
    background-color: var(--bs-bg-1);
    border-inline-end-width: var(--bs-border-width);
}
.cl-input:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: var(--bs-bg-2);
}
.cl-input-lg {
    padding: var(--bs-btn-input-lg-padding-y) var(--bs-btn-input-lg-padding-x);
    font-size: var(--bs-btn-input-lg-font-size);
    line-height: var(--bs-btn-input-lg-line-height);
    border-radius: var(--bs-btn-input-lg-border-radius);
}
.cl-input-sm,
.cl-select-sm {
    padding: var(--bs-btn-input-sm-padding-y) var(--bs-btn-input-sm-padding-x);
    font-size: var(--bs-btn-input-sm-font-size);
    line-height: var(--bs-btn-input-sm-line-height);
    border-radius: var(--bs-btn-input-sm-border-radius);
}
.cl-select-sm {
    padding-right: calc(var(--bs-btn-input-sm-padding-x) * 3);
}
.cl-input[aria-invalid="true"],
.cl-select[aria-invalid="true"] {
    border-color: var(--bs-danger-border);
}
.cl-input[aria-invalid="true"]:focus-visible,
.cl-select[aria-invalid="true"]:focus-visible {
    outline: var(--bs-focus-ring-width) solid var(--bs-danger-focus-ring);
}

/* Ticks and radios: Bootstrap 6's, 1.25rem across, their edges rounded (a radio round), filled in the primary colour
   with a white mark when chosen. */
.cl-check {
    margin-top: .125rem;
    margin-bottom: .125rem;
    vertical-align: baseline;
    background-color: var(--bs-bg-body);
    border: 1px solid var(--bs-border-color);
}
@media (prefers-reduced-motion: no-preference) {
    .cl-check {
        transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
    }
}
.cl-check[type="checkbox"] {
    border-radius: 33%;
}
.cl-check:active {
    filter: none;
}
.cl-check:focus {
    border-color: var(--bs-border-color);
    box-shadow: none;
}
.cl-check:focus-visible {
    outline: var(--bs-focus-ring);
    outline-offset: -1px;
}
.cl-check[type="radio"]:focus-visible {
    outline-offset: var(--bs-focus-ring-offset);
}
.cl-check:checked,
.cl-check[type="checkbox"]:indeterminate {
    background-color: var(--bs-control-checked-bg);
    border-color: var(--bs-control-checked-border-color);
}
/* The tick's mark and the radio's dot are drawn over the control as Bootstrap 6 draws them (a mask in the contrast
   colour; a disc a quarter in from the edge), so they fall on the same pixels. */
.cl-check {
    position: relative;
}
.cl-check::before {
    position: absolute;
    pointer-events: none;
    content: "";
    opacity: 0;
    transform: scale(0);
}
.cl-check[type="checkbox"]::before {
    inset: 0;
    background-color: var(--bs-primary-contrast);
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5.5 10 3 3 6-6'/%3e%3c/svg%3e");
    mask-position: 50%;
    mask-size: contain;
    mask-repeat: no-repeat;
}
.cl-check[type="checkbox"]:indeterminate::before {
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10h8'/%3e%3c/svg%3e");
}
.cl-check[type="radio"]::before {
    inset: calc(var(--cl-check-size) * .25);
    background-color: var(--bs-primary-contrast);
    border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
    .cl-check::before {
        transition: opacity .15s ease-in-out, transform .15s ease-in-out;
    }
}
.cl-check:checked[type="checkbox"],
.cl-check:checked[type="radio"],
.cl-check[type="checkbox"]:indeterminate {
    background-image: none;
}
.cl-check:checked::before,
.cl-check[type="checkbox"]:indeterminate::before {
    opacity: 1;
    transform: scale(1);
}
.cl-check:disabled {
    opacity: 1;
}
.cl-check:disabled:not(:checked) {
    background-color: var(--bs-control-disabled-bg);
}
.cl-check:disabled:checked {
    opacity: var(--bs-control-disabled-opacity);
}
.cl-ui-field--check > .cl-check:disabled ~ label {
    color: var(--bs-fg-3);
    cursor: default;
}
.cl-check[aria-invalid="true"] {
    border-color: var(--bs-danger-border);
}
.cl-check[aria-invalid="true"]:checked {
    background-color: var(--bs-danger-bg);
    border-color: var(--bs-danger-bg);
}
.cl-check[aria-invalid="true"]:focus-visible {
    outline: var(--bs-focus-ring-width) solid var(--bs-danger-focus-ring);
}
.cl-ui-field--check:has(> .cl-check[aria-invalid="true"]) > label {
    color: var(--bs-danger-fg);
}
