/*
 * Module stylesheet: the setup module (setup/*).
 *
 * Only what the shared components (stylesheets/components.css) cannot do, as .a4-<module>-* classes, with
 * colours, radius, spacing and fonts from the --a4-* tokens only (no hard-coded values, no local aliases).
 * Registered in design.ini [StylesheetSettings] AdminComponentCSSFileList; rules: doc/eng-us/bc/6.0/admin4-styling.md
 */

/* ---- shared by several setup pages ------------------------------------------------------------------------- */

/* The parts a page's script shows once the document is parsed (hidden in the markup, so the page works without the
   script) are drawn from the first paint when the frame's scripts run: html.a4-js, set by a4_head.js before the first
   paint. Until 2026-10 they appeared late and the content below moved down (setup/cache: the search and group filter,
   256px; setup/info: "Copy report as text" pushed the toolbar's buttons aside). The filter's count line is kept free
   for the number the script writes into it. Each script still sets hidden to false: this only draws it earlier
   (!important: inside .a4-page, components.css hides every [hidden] with !important). */
html.a4-js #exp-cache-toolbar[hidden],
html.a4-js .a4-filterbar.a4-setup-js-only[hidden] { display: grid !important; }
html.a4-js #exp-sysinfo-copy[hidden],
html.a4-js #exp-cache-select-all-label[hidden],
html.a4-js .a4-btn.a4-setup-copy.a4-setup-js-only[hidden] { display: inline-flex !important; }
html.a4-js #exp-cache-count:empty,
html.a4-js #upgrade-filter-count:empty { min-height: 1lh; }
html.a4-js .a4-setup-nojs-only { display: none; }


/* A list of values on one line, separated by a dot */
.a4-setup-inline { margin: 0; padding: 0; list-style: none; font-size: var(--a4-text-s); }
.a4-setup-inline li { display: inline; }
.a4-setup-inline li + li::before { content: " \00b7 "; color: var(--a4-muted); }
.a4-setup-inline code { color: var(--a4-muted); }

/* Names with a number, in columns (the loaded extensions; the upgrade check's lists) */
.a4-setup-ext-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--a4-space-1) var(--a4-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.a4-setup-ext-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--a4-space-2);
  min-width: 0;
  padding: var(--a4-space-1) 0;
  border-bottom: 1px solid var(--a4-line);
  font-size: var(--a4-text-s);
}
.a4-setup-ext-list li span:first-child { min-width: 0; overflow-wrap: anywhere; font-family: var(--a4-mono); font-size: var(--a4-text-xs); }
.a4-setup-ext-list li span:last-child { color: var(--a4-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Which server answered the page (System information, Caches) */
.a4-setup-served {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--a4-space-2) var(--a4-space-4);
  margin: 0 0 var(--a4-space-3);
  padding: var(--a4-space-3) var(--a4-space-4);
  border: 1px solid var(--a4-info-line);
  border-inline-start: 5px solid var(--a4-info);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-info-bg);
  color: var(--a4-ink);
}
.a4-setup-served.is-velocity { border-color: var(--a4-line); border-inline-start-color: var(--a4-accent); background-color: var(--a4-accent-soft); }
.a4-setup-served-main { flex: 1 1 320px; min-width: 0; }
.a4-setup-served-main strong { font-size: var(--a4-text-l); }
.a4-setup-served-main p { overflow-wrap: anywhere; }
.a4-setup-served-main p + p { margin-top: var(--a4-space-1); color: var(--a4-muted); font-size: var(--a4-text-s); }

/* ---- setup/info: System information ------------------------------------------------------------------------ */

/* A health check: its badge, then what was found and what to do */
.a4-setup-check {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: var(--a4-space-1) var(--a4-space-3);
}
.a4-setup-check > .a4-badge { justify-self: start; }
.a4-setup-check-text { min-width: 0; overflow-wrap: anywhere; }
.a4-setup-check-text strong { font-weight: var(--a4-weight-heading); }
.a4-setup-check-text p { margin-top: 2px; color: var(--a4-muted); font-size: var(--a4-text-s); }
.a4-setup-check-text p.a4-setup-fix { color: var(--a4-ink); }
.a4-setup-check-text p.a4-setup-fix::before { content: "\2192\00a0"; color: var(--a4-accent-text); font-weight: var(--a4-weight-bold); }
details.a4-setup-ok-checks { margin-top: var(--a4-space-2); }
details.a4-setup-ok-checks > summary { padding: var(--a4-space-1) 0; color: var(--a4-muted); font-size: var(--a4-text-s); font-weight: var(--a4-weight-heading); cursor: pointer; }
details.a4-setup-ok-checks > ul { margin-top: var(--a4-space-2); }
@media (max-width: 600px) {
  .a4-setup-check { grid-template-columns: minmax(0, 1fr); }
}

/* Usage bars: label | bar | figure */
.a4-setup-bars {
  display: grid;
  grid-template-columns: minmax(0, 8em) minmax(60px, 1fr) minmax(0, auto);
  align-items: center;
  gap: var(--a4-space-1) var(--a4-space-2);
  margin: 0;
  font-size: var(--a4-text-s);
}
.a4-setup-bars dt { margin: 0; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); }
.a4-setup-bars dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .a4-setup-bars { grid-template-columns: minmax(0, 1fr) minmax(60px, 1fr); }
  .a4-setup-bars dd.a4-setup-bar-text { grid-column: 1 / -1; margin-bottom: var(--a4-space-1); }
}

.a4-setup-info .a4-table td:first-child,
.a4-setup-info .a4-setup-table-views td:nth-child(2) { white-space: nowrap; }
.a4-setup-info .a4-table td { overflow-wrap: anywhere; font-size: var(--a4-text-s); }

/* The report for support */
textarea.a4-setup-report {
  display: block;
  min-height: 320px;
  background-color: var(--a4-soft);
  font-family: var(--a4-mono);
  font-size: var(--a4-text-xs);
  white-space: pre;
  overflow: auto;
  resize: vertical;
}

/* Label and value rows inside a card (narrower than .a4-facts.is-rows: the label column fits its text up to 14em) */
.a4-setup-rows { display: grid; grid-template-columns: fit-content(14em) minmax(0, 1fr); gap: var(--a4-space-1) var(--a4-space-3); margin: 0; }
.a4-setup-rows dt { min-width: 0; margin: 0; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); overflow-wrap: break-word; }
.a4-setup-rows dd { min-width: 0; margin: 0; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 600px) {
  .a4-setup-rows { grid-template-columns: minmax(0, 1fr); gap: 0 var(--a4-space-3); }
  .a4-setup-rows dd { margin-bottom: var(--a4-space-1); }
}

/* ---- setup/cache: Caches ------------------------------------------------------------------------------------ */

.a4-setup-cache form { margin: 0; }
.a4-setup-cache .a4-figure.is-date strong { font-size: var(--a4-text-l); line-height: var(--a4-leading-tight); }

/* One group of caches: a card with its table and, at its foot, the clear button of the group */
.a4-setup-group { margin: 0 0 var(--a4-space-4); }
.a4-setup-group .a4-section-head p { font-size: var(--a4-text-s); max-width: 90ch; }
.a4-setup-group-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--a4-space-2) var(--a4-space-4); margin-top: var(--a4-space-3); }
.a4-setup-group-foot code { color: var(--a4-muted); }

/* The cache table: below 760 pixels each row is a card with the checkbox on its left */
.a4-setup-caches td { font-size: var(--a4-text-s); overflow-wrap: anywhere; }
.a4-setup-caches td.a4-setup-check-cell { width: 34px; }
.a4-setup-caches td.a4-setup-check-cell input { width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer; }
.a4-setup-caches .a4-setup-cache-name { font-weight: var(--a4-weight-heading); }
.a4-setup-caches .a4-setup-cache-holds,
.a4-setup-caches .a4-setup-cache-meta,
.a4-setup-caches .a4-setup-cleared-by { display: block; margin-top: 2px; color: var(--a4-muted); font-size: var(--a4-text-xs); overflow-wrap: anywhere; }
.a4-setup-caches .a4-setup-cleared-when { display: block; }
.a4-setup-caches .a4-badge { margin: var(--a4-space-1) var(--a4-space-1) 0 0; }
:where([dir="rtl"]) .a4-setup-caches .a4-badge { margin: var(--a4-space-1) 0 0 var(--a4-space-1); }
.a4-setup-caches tr.is-disabled td,
.a4-setup-caches code { color: var(--a4-muted); }
.a4-setup-caches th:nth-child(3), .a4-setup-caches td:nth-child(3) { width: 7.5em; }
.a4-setup-caches th:nth-child(4), .a4-setup-caches td:nth-child(4) { width: 11em; }
@media (max-width: 760px) {
  .a4-setup-caches thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a4-setup-caches, .a4-setup-caches tbody, .a4-setup-caches tr, .a4-setup-caches td { display: block; width: 100%; }
  .a4-setup-caches tr { position: relative; padding: var(--a4-space-2) 0 var(--a4-space-2) var(--a4-space-6); border-bottom: 1px solid var(--a4-line); }
  :where([dir="rtl"]) .a4-setup-caches tr { padding: var(--a4-space-2) var(--a4-space-6) var(--a4-space-2) 0; }
  .a4-setup-caches tr:last-child { border-bottom: 0; }
  .a4-setup-caches td,
  .a4-setup-caches th:nth-child(n), .a4-setup-caches td:nth-child(n) { width: 100%; padding: 2px 0; border: 0; }
  .a4-setup-caches td.a4-setup-check-cell { position: absolute; top: 10px; inset-inline-start: var(--a4-space-1); width: auto; }
  .a4-setup-caches td.a4-num { text-align: start; }
  .a4-setup-caches td[data-label]::before { content: attr(data-label) ": "; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); }
}

/* The in-place confirmation: a details element whose summary is the button and whose body names what goes */
details.a4-setup-confirm { max-width: 100%; }
details.a4-setup-confirm > summary { list-style: none; }
details.a4-setup-confirm > summary::-webkit-details-marker { display: none; }
details.a4-setup-confirm[open] > summary { border-color: var(--a4-accent); }
.a4-setup-confirm-body {
  max-width: 72ch;
  margin-top: var(--a4-space-2);
  padding: var(--a4-space-3) var(--a4-space-3);
  border: 1px solid var(--a4-warn-line);
  border-inline-start: 4px solid var(--a4-warn);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-warn-bg);
  color: var(--a4-ink);
}
.a4-setup-confirm-body p { margin: 0 0 var(--a4-space-1); }
.a4-setup-confirm-body ul,
.a4-setup-cache .a4-notice ul { margin: 0 0 var(--a4-space-2); padding-inline-start: var(--a4-space-4); font-size: var(--a4-text-s); columns: 2 16em; column-gap: var(--a4-space-5); }
.a4-setup-cache .a4-notice code { color: inherit; }

/* The maintenance rows of the servers' own caches */
.a4-setup-server-rows { display: grid; grid-template-columns: minmax(0, 1fr); margin: var(--a4-space-3) 0 0; padding: 0; list-style: none; }
.a4-setup-server-rows > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--a4-space-1) var(--a4-space-3);
  padding: var(--a4-space-2) 0;
  border-bottom: 1px solid var(--a4-line);
}
.a4-setup-server-rows > li:last-child { border-bottom: 0; }
.a4-setup-server-text { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.a4-setup-server-text small { display: block; color: var(--a4-muted); font-size: var(--a4-text-xs); }

/* The static cache form: fields side by side */
.a4-setup-static-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: end;
  gap: var(--a4-space-3) var(--a4-space-4);
}

/* Commands from a shell, one per row */
.a4-setup-commands { margin: 0; padding: 0; list-style: none; }
.a4-setup-commands li { padding: var(--a4-space-1) 0; border-bottom: 1px solid var(--a4-line); font-size: var(--a4-text-s); }
.a4-setup-commands li:last-child { border-bottom: 0; }
.a4-setup-commands code { display: block; margin-top: 2px; color: var(--a4-ink); }

/* A live console (static cache generation, preload, cronjob runs): the lines a stream writes, by kind */
.a4-setup-console {
  max-width: 100%;
  height: 20em;
  margin: 0;
  padding: var(--a4-space-3);
  overflow: auto;
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  color: var(--a4-ink);
  font-family: var(--a4-mono);
  font-size: var(--a4-text-xs);
  line-height: var(--a4-leading);
  white-space: pre-wrap;
  word-break: break-word;
}
.a4-setup-console-phase, .a4-setup-console-done { color: var(--a4-info); font-weight: var(--a4-weight-bold); }
.a4-setup-console-ok { color: var(--a4-ok); }
.a4-setup-console-warn { color: var(--a4-warn); }
.a4-setup-console-error { color: var(--a4-bad); }
.a4-setup-console-info { color: var(--a4-muted); }

/* ---- setup/session: Sessions -------------------------------------------------------------------------------- */

.a4-setup-sortbar { align-items: center; margin: 0 0 var(--a4-space-3); color: var(--a4-muted); font-size: var(--a4-text-s); }
.a4-setup-session .a4-facts dd code { color: var(--a4-muted); }
.a4-setup-confirm-list { margin: var(--a4-space-2) 0 0; padding-inline-start: var(--a4-space-4); }
.a4-setup-confirm-list li + li { margin-top: var(--a4-space-1); }

/* Numbered steps of an explanation (not the steps of a wizard) */
ol.a4-setup-numbered { margin: var(--a4-space-1) 0 0; padding-inline-start: var(--a4-space-6); }
ol.a4-setup-numbered li + li { margin-top: var(--a4-space-1); }
ol.a4-setup-numbered .a4-pre { margin: var(--a4-space-2) 0 0; }

/* ---- setup/systemupgrade: Upgrade check ---------------------------------------------------------------------- */

.a4-setup-upgrade .a4-intro p + p { margin-top: var(--a4-space-1); }
.a4-setup-upgrade .a4-notice p { margin-top: var(--a4-space-1); }
.a4-setup-time { font-size: var(--a4-text-s); font-weight: var(--a4-weight-strong); font-variant-numeric: tabular-nums; }
.a4-setup-upgrade .a4-figure.is-text strong { font-size: var(--a4-text-l); line-height: var(--a4-leading-tight); }

/* The two checks, side by side, their run button at the bottom */
.a4-setup-upgrade-check { display: flex; flex-direction: column; gap: var(--a4-space-2); }
.a4-setup-upgrade-check p { color: var(--a4-muted); }
.a4-setup-upgrade-check .a4-actions { margin-top: auto; padding-top: var(--a4-space-1); }

/* How to fix a finding */
.a4-setup-howto { padding: var(--a4-space-2) var(--a4-space-3); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); color: var(--a4-ink); }
.a4-setup-howto strong { display: block; margin-bottom: 2px; font-size: var(--a4-text-s); }
.a4-setup-howto p + p { margin-top: var(--a4-space-1); }
.a4-setup-howto code { color: var(--a4-ink); }

/* The findings' tables: path and checksums */
.a4-setup-upgrade .a4-table td.a4-setup-path { min-width: 220px; overflow-wrap: anywhere; font-family: var(--a4-mono); font-size: var(--a4-text-xs); }
.a4-setup-upgrade .a4-table td.a4-setup-sums { color: var(--a4-muted); font-family: var(--a4-mono); font-size: var(--a4-text-xs); overflow-wrap: anywhere; }
.a4-setup-upgrade .a4-table td.a4-setup-sums span[title] { color: var(--a4-ink); white-space: nowrap; }
.a4-setup-sum { display: inline-block; margin-inline-end: var(--a4-space-2); white-space: nowrap; }
.a4-setup-sum-label { font-family: var(--a4-font); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); letter-spacing: var(--a4-tracking); text-transform: uppercase; }

/* Names in a row of small tags */
.a4-setup-taglist { margin-top: var(--a4-space-2); }
.a4-setup-taglist li { padding: 1px var(--a4-space-2); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); color: var(--a4-ink); font-family: var(--a4-mono); font-size: var(--a4-text-xs); }

.a4-setup-docs { margin: var(--a4-space-5) 0 0; padding-top: var(--a4-space-3); border-top: 1px solid var(--a4-line); color: var(--a4-muted); font-size: var(--a4-text-s); }
.a4-setup-console-phase-item { color: var(--a4-ok); }
.a4-setup-console-image { color: var(--a4-muted); }
.a4-setup-console-report { color: var(--a4-bad); }

/* A gap above an element a page script adds */
.a4-setup-gap { margin-top: var(--a4-space-2); }

/* ---- setup/preload: Preload sites ---------------------------------------------------------------------------- */

.a4-setup-status-main { display: flex; flex-direction: column; flex: 1 1 320px; gap: var(--a4-space-1); min-width: 0; }
.a4-setup-current { color: var(--a4-muted); font-family: var(--a4-mono); font-size: var(--a4-text-xs); overflow-wrap: anywhere; }
.a4-setup-progress { max-width: 520px; margin: var(--a4-space-1) 0 2px; }
.a4-setup-progress > span { transition: width .4s ease; }   /* real progress, slower than a hover: not a token */
.a4-setup-card { margin: 0 0 var(--a4-space-4); }
.a4-setup-card + .a4-setup-card { margin-top: 0; }

/* The form: the site wide, the two limits beside it */
.a4-setup-fields { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--a4-space-3) var(--a4-space-4); }
@media (max-width: 900px) {
  .a4-setup-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .a4-setup-fields .a4-setup-field-site { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .a4-setup-fields { grid-template-columns: minmax(0, 1fr); }
}
.a4-setup-formbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-2) var(--a4-space-3); padding: var(--a4-space-3) 0 0; border-top: 1px solid var(--a4-line); }
.a4-setup-formbar .a4-meta { flex: 1 1 260px; }

.a4-setup-urls { margin: 0; padding: 0; list-style: none; }
.a4-setup-urls li { padding: var(--a4-space-1) 0; border-top: 1px solid var(--a4-line); font-family: var(--a4-mono); font-size: var(--a4-text-xs); overflow-wrap: anywhere; }
.a4-setup-urls li:first-child { border-top: 0; }
ul.a4-setup-points { margin: 0; padding-inline-start: var(--a4-space-4); }
ul.a4-setup-points li + li { margin-top: var(--a4-space-1); }

/* The runs */
.a4-setup-preload .a4-setup-url-text { overflow-wrap: anywhere; }
.a4-setup-preload td.a4-setup-run { min-width: 16em; }
.a4-setup-preload td.a4-setup-url { min-width: 14em; font-family: var(--a4-mono); font-size: var(--a4-text-xs); overflow-wrap: anywhere; word-break: break-word; }
.a4-setup-preload tr.a4-setup-detail-row > td { background-color: var(--a4-soft); }
details.a4-setup-failures > summary { color: var(--a4-bad); font-weight: var(--a4-weight-heading); cursor: pointer; }

/* ---- setup/extensions: Extensions ---------------------------------------------------------------------------- */

details.a4-setup-warnings > summary { cursor: pointer; }

/* The bar that says what is not saved yet; it stays in view while the list scrolls */
.a4-setup-bar.is-dirty { border-color: var(--a4-accent); background-color: var(--a4-accent-soft); box-shadow: inset 4px 0 0 var(--a4-accent); }
:where([dir="rtl"]) .a4-setup-bar.is-dirty { box-shadow: inset -4px 0 0 var(--a4-accent); }
.a4-setup-bar.is-dirty .a4-meta { color: var(--a4-ink); }
.a4-setup-pending { position: sticky; top: var(--a4-space-2); z-index: var(--a4-z-sticky); }

/* The list of extensions in load order: position and grip | name, badges, problems | actions */
.a4-setup-exts { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--a4-space-2); margin: 0; padding: 0; list-style: none; }
.a4-setup-exts > .a4-card + .a4-card { margin-top: 0; }
.a4-setup-ext { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: var(--a4-space-1) var(--a4-space-3); }
.a4-setup-ext.is-inactive { background-color: var(--a4-soft); }
.a4-setup-ext.is-changed,
.a4-setup-ext.is-drop-target { border-color: var(--a4-accent); }
.a4-setup-ext:target { outline: 3px solid var(--a4-ring); outline-offset: 2px; }
.a4-setup-ext-pos { display: flex; flex-direction: column; align-items: center; gap: var(--a4-space-1); }
.a4-setup-ext-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 var(--a4-space-1);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-ok-bg);
  color: var(--a4-ok);
  font-weight: var(--a4-weight-bold);
  font-variant-numeric: tabular-nums;
}
.a4-setup-ext.is-inactive .a4-setup-ext-num { background-color: var(--a4-line); color: var(--a4-muted); font-weight: var(--a4-weight-strong); }
.a4-setup-ext .a4-grip { width: 40px; min-height: 28px; }
.a4-setup-ext .a4-grip[aria-pressed="true"] { border-style: solid; border-color: var(--a4-accent); color: var(--a4-accent-text); }
.a4-setup-ext-main { min-width: 0; }
.a4-setup-ext-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a4-space-1) var(--a4-space-2); }
.a4-setup-ext-title h3 { margin: 0; font-size: var(--a4-text-m); }
.a4-setup-ext-title h3 code { color: var(--a4-ink); font-size: var(--a4-text-m); font-weight: var(--a4-weight-heading); }
.a4-setup-ext-label { color: var(--a4-muted); overflow-wrap: anywhere; }
.a4-setup-ext-desc { max-width: 90ch; margin: var(--a4-space-1) 0 0; color: var(--a4-muted); overflow-wrap: anywhere; }
.a4-setup-ext-badges { margin-top: var(--a4-space-1); }
.a4-setup-ext-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--a4-space-1); }
.a4-setup-ext-moves { display: inline-flex; gap: var(--a4-space-1); }
@container (max-width: 620px) {
  .a4-setup-ext { grid-template-columns: 44px minmax(0, 1fr); }
  .a4-setup-ext-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .a4-setup-ext { transition: border-color var(--a4-duration) ease, box-shadow var(--a4-duration) ease; }
}

/* What an extension lacks or warns about, one dot per line */
.a4-setup-problems { margin: var(--a4-space-2) 0 0; padding: 0; list-style: none; font-size: var(--a4-text-s); }
.a4-setup-problems li { position: relative; margin: 2px 0 0; padding-inline-start: var(--a4-space-3); overflow-wrap: anywhere; }
.a4-setup-problems li::before { content: ""; position: absolute; top: .55em; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background-color: var(--a4-muted); }
.a4-setup-problems li.is-bad { color: var(--a4-bad); }
.a4-setup-problems li.is-bad::before { background-color: var(--a4-bad); }
.a4-setup-problems li.is-warn { color: var(--a4-warn); }
.a4-setup-problems li.is-warn::before { background-color: var(--a4-warn); }
.a4-setup-problems li.is-info { color: var(--a4-muted); }
details.a4-setup-more { margin: var(--a4-space-2) 0 0; font-size: var(--a4-text-s); }
details.a4-setup-more > summary { width: max-content; max-width: 100%; color: var(--a4-accent-text); font-weight: var(--a4-weight-strong); cursor: pointer; }
details.a4-setup-more[open] > summary { margin-bottom: var(--a4-space-1); }

/* The review before saving: what changes, and the lines of the settings file */
.a4-setup-review { margin: 0 0 var(--a4-space-4); border: 2px solid var(--a4-accent); }
.a4-setup-review-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--a4-space-3); margin: var(--a4-space-3) 0; }
.a4-setup-review-cols > div { min-width: 0; padding: var(--a4-space-2) var(--a4-space-3); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); }
.a4-setup-review-cols h3 { color: var(--a4-muted); font-size: var(--a4-text-s); letter-spacing: var(--a4-tracking); text-transform: uppercase; }
.a4-setup-review-cols ul { margin: var(--a4-space-1) 0 0; padding: 0; list-style: none; }
.a4-setup-review-cols li { margin: 2px 0 0; overflow-wrap: anywhere; }
.a4-setup-review .a4-actions { margin-top: var(--a4-space-3); }
.a4-setup-lines {
  max-height: 320px;
  margin: var(--a4-space-2) 0 0;
  padding: var(--a4-space-2) var(--a4-space-3);
  overflow: auto;
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  color: var(--a4-ink);
  font-family: var(--a4-mono);
  font-size: var(--a4-text-xs);
  line-height: var(--a4-leading);
}
.a4-setup-line { display: block; width: max-content; min-width: 100%; white-space: pre; }
.a4-setup-line em { margin-inline-start: var(--a4-space-2); font-style: normal; }
.a4-setup-lines .is-added { background-color: var(--a4-ok-bg); color: var(--a4-ok); }
.a4-setup-lines .is-moved { background-color: var(--a4-accent-soft); color: var(--a4-accent-text); }
.a4-setup-ack { display: flex; align-items: flex-start; gap: var(--a4-space-2); margin: var(--a4-space-3) 0 0; color: var(--a4-bad); font-weight: var(--a4-weight-strong); white-space: normal; }
.a4-setup-ack span { min-width: 0; overflow-wrap: anywhere; }
.a4-setup-ack input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--a4-bad); }

/* ---- setup/maintenance: Maintenance -------------------------------------------------------------------------- */

.a4-setup-maint .box-content { container: a4-setup-maint / inline-size; }
.a4-setup-maint label { white-space: normal; }
.a4-setup-maint .a4-meta,
.a4-setup-hint { overflow-wrap: anywhere; }
.a4-setup-hint { color: var(--a4-muted); font-size: var(--a4-text-xs); }
.a4-setup-maint .a4-check .a4-setup-hint { font-weight: normal; }

/* The state: online (ok) or in maintenance (.is-on, warn), with the one action it calls for */
.a4-setup-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--a4-space-3) var(--a4-space-5);
  margin: 0 0 var(--a4-space-4);
  padding: var(--a4-space-4) var(--a4-space-4);
  border: 1px solid var(--a4-ok-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-ok-bg);
  box-shadow: inset 5px 0 0 var(--a4-ok);
}
:where([dir="rtl"]) .a4-setup-state { box-shadow: inset -5px 0 0 var(--a4-ok); }
.a4-setup-state.is-on { border-color: var(--a4-warn-line); background-color: var(--a4-warn-bg); box-shadow: inset 5px 0 0 var(--a4-warn); }
:where([dir="rtl"]) .a4-setup-state.is-on { box-shadow: inset -5px 0 0 var(--a4-warn); }
.a4-setup-state-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-1) var(--a4-space-3); }
.a4-setup-state-title { flex: 1 1 14ch; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--a4-ok); font-size: var(--a4-text-xl); font-weight: var(--a4-weight-heading); line-height: var(--a4-leading-tight); }
.a4-setup-state.is-on .a4-setup-state-title { color: var(--a4-warn); }
.a4-setup-state-text { max-width: 70ch; margin: var(--a4-space-1) 0 0; color: var(--a4-ink); }
.a4-setup-state .a4-dot { width: 12px; height: 12px; background-color: var(--a4-ok); box-shadow: 0 0 0 4px var(--a4-ok-line); }
.a4-setup-state.is-on .a4-dot { background-color: var(--a4-warn); box-shadow: 0 0 0 4px var(--a4-warn-line); animation: a4-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .a4-setup-state.is-on .a4-dot { animation: none; }
}
.a4-setup-state .a4-facts { grid-column: 1 / -1; margin: 0; padding: var(--a4-space-3) 0 0; border-top: 1px solid var(--a4-warn-line); }
.a4-setup-state .a4-facts dd .a4-badge { white-space: normal; }
.a4-setup-state .a4-badge { background-color: var(--a4-card); }
.a4-setup-state-action { display: flex; flex-direction: column; align-items: flex-end; gap: var(--a4-space-1); }
.a4-setup-state-action .a4-meta { max-width: 30ch; color: var(--a4-ink); text-align: end; }

/* The form for the next window beside the preview of the visitors' page */
.a4-setup-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; gap: var(--a4-space-4); margin: 0 0 var(--a4-space-5); }
.a4-setup-maint .a4-card { padding: var(--a4-space-4) var(--a4-space-4); }
.a4-setup-formsteps { display: flex; flex-direction: column; gap: var(--a4-space-4); margin: 0; padding: 0; list-style: none; }
.a4-setup-formsteps > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--a4-space-1) var(--a4-space-3); margin: 0; padding: 0 0 var(--a4-space-4); border-bottom: 1px solid var(--a4-line); }
.a4-setup-formsteps > li:last-child { padding-bottom: 0; border-bottom: 0; }
.a4-setup-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--a4-line);
  border-radius: 50%;
  background-color: var(--a4-soft);
  color: var(--a4-ink);
  font-size: var(--a4-text-xs);
  font-weight: var(--a4-weight-bold);
}
.a4-setup-step-body { display: flex; flex-direction: column; gap: var(--a4-space-1); min-width: 0; }
.a4-setup-step-body > label,
.a4-setup-step-title { margin: 0; padding: 0; color: var(--a4-ink); font-size: var(--a4-text-m); font-weight: var(--a4-weight-heading); }
.a4-setup-step-body textarea { resize: vertical; }
.a4-setup-step-body textarea.is-code { font-family: var(--a4-mono); font-size: var(--a4-text-s); }
.a4-input.a4-setup-minutes { width: 9em; }
.a4-setup-presets { display: flex; flex-wrap: wrap; gap: var(--a4-space-1); }
.a4-setup-preset {
  min-height: 32px;
  padding: var(--a4-space-1) var(--a4-space-3);
  border: 1px solid var(--a4-line-strong);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-card);
  color: var(--a4-ink);
  font: inherit;
  font-size: var(--a4-text-s);
  cursor: pointer;
}
.a4-setup-preset:hover { border-color: var(--a4-accent); color: var(--a4-accent-text); }
.a4-setup-preset[aria-pressed="true"] { border-color: var(--a4-accent-strong); background-color: var(--a4-accent-strong); color: var(--a4-on-accent); font-weight: var(--a4-weight-heading); }
.a4-setup-access { display: flex; flex-direction: column; gap: var(--a4-space-1); margin: 0; padding: 0; list-style: none; }
.a4-setup-access li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a4-space-1) var(--a4-space-2); margin: 0; padding: var(--a4-space-2) var(--a4-space-2); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); }
.a4-setup-access li strong { font-weight: var(--a4-weight-heading); }
.a4-setup-access code { color: var(--a4-ink); }
.a4-setup-ipcheck { margin: 0; color: var(--a4-bad); font-size: var(--a4-text-s); font-weight: var(--a4-weight-heading); }
.a4-setup-counter { align-self: flex-end; color: var(--a4-muted); font-size: var(--a4-text-xs); font-variant-numeric: tabular-nums; }

/* The confirmation before the site goes offline */
.a4-setup-danger-box { margin: var(--a4-space-4) 0 0; padding: var(--a4-space-3) var(--a4-space-4); border: 1px solid var(--a4-bad-line); border-radius: var(--a4-radius-s); background-color: var(--a4-bad-bg); }
.a4-setup-danger-box .a4-check { color: var(--a4-bad); font-weight: var(--a4-weight-strong); }
.a4-setup-danger-box .a4-check input { accent-color: var(--a4-bad); }
.a4-setup-confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-2) var(--a4-space-4); margin: var(--a4-space-3) 0 0; }
.a4-setup-confirm-row .a4-meta { color: var(--a4-bad); }

/* The preview of the maintenance page */
.a4-setup-preview { position: sticky; top: var(--a4-space-3); }
.a4-setup-preview .a4-meta { margin: var(--a4-space-2) 0 0; }
.a4-setup-frame-wrap { overflow: hidden; border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); }
.a4-setup-frame-bar { display: flex; align-items: center; gap: var(--a4-space-1); padding: var(--a4-space-2) var(--a4-space-2); border-bottom: 1px solid var(--a4-line); color: var(--a4-muted); font-size: var(--a4-text-xs); }
.a4-setup-frame-bar span[aria-hidden] { width: 9px; height: 9px; border-radius: 50%; background-color: var(--a4-line-strong); }
.a4-setup-frame-bar code { min-width: 0; margin-inline-start: var(--a4-space-1); overflow: hidden; color: var(--a4-muted); text-overflow: ellipsis; white-space: nowrap; }
/* the frame shows the visitors' page, which has its own (light) colours */
.a4-setup-frame { display: block; width: 100%; height: 440px; margin: 0; border: 0; background-color: var(--a4-surface); }

.a4-setup-maint .a4-fold { margin: 0 0 var(--a4-space-3); }
.a4-setup-maint .a4-fold-body ul.a4-plain { padding-inline-start: var(--a4-space-4); }

/* Commands with a copy button (Maintenance, Cronjobs) */
.a4-setup-cmds { display: flex; flex-direction: column; gap: var(--a4-space-2); margin: 0; padding: 0; list-style: none; }
.a4-setup-cmd-row { display: flex; align-items: center; gap: var(--a4-space-2); margin: 0; }
.a4-setup-cmd-label { flex: 0 0 7.5em; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); }
.a4-setup-cmd {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--a4-space-1) var(--a4-space-2);
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  color: var(--a4-ink);
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

@media (max-width: 1100px) {
  .a4-setup-plan { grid-template-columns: minmax(0, 1fr); }
  .a4-setup-preview { position: static; }
  .a4-setup-frame { height: 400px; }
}
/* By the width the page really has: the side menus narrow it far more than the window says */
@container a4-setup-maint (max-width: 760px) {
  .a4-setup-plan { grid-template-columns: minmax(0, 1fr); }
  .a4-setup-preview { position: static; }
}
@container a4-setup-maint (max-width: 640px) {
  .a4-setup-maint .a4-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a4-setup-maint .a4-table tr { display: block; padding: var(--a4-space-2) 0; border-bottom: 1px solid var(--a4-line); }
  .a4-setup-maint .a4-table tr:last-child { border-bottom: 0; }
  .a4-setup-maint .a4-table td { display: flex; gap: var(--a4-space-2); padding: var(--a4-space-1) var(--a4-space-3); border: 0; }
  .a4-setup-maint .a4-table td::before { content: attr(data-label); flex: 0 0 8.5em; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); }
}
@container a4-setup-maint (max-width: 560px) {
  .a4-setup-state { grid-template-columns: minmax(0, 1fr); padding: var(--a4-space-3); }
  .a4-setup-state-action { align-items: stretch; }
  .a4-setup-state-action .a4-meta { max-width: none; text-align: start; }
  .a4-setup-state-action .a4-btn,
  .a4-setup-confirm-row .a4-btn { width: 100%; white-space: normal; }
  .a4-setup-maint .a4-card { padding: var(--a4-space-3) var(--a4-space-3); }
  .a4-setup-formsteps > li { grid-template-columns: minmax(0, 1fr); }
  .a4-setup-cmd-row { flex-wrap: wrap; }
  .a4-setup-cmd-label { flex-basis: 100%; }
  .a4-setup-frame { height: 360px; }
}

/* ---- setup/cronjobs: Cronjobs -------------------------------------------------------------------------------- */

.a4-setup-cron .a4-section { margin-bottom: var(--a4-space-5); }
.a4-setup-cron .a4-toolbar { margin-bottom: var(--a4-space-3); }
/* the one note for a pause or resume: a line of its own below the buttons */
.a4-setup-cron .a4-setup-pause-note { flex: 1 1 100%; }
.a4-setup-cron .a4-setup-pause-note textarea { min-height: 2.5em; resize: vertical; }
.a4-setup-paths { display: flex; flex-wrap: wrap; gap: var(--a4-space-1) var(--a4-space-4); margin: calc(-1 * var(--a4-space-1)) 0 var(--a4-space-4); color: var(--a4-muted); font-size: var(--a4-text-xs); }
.a4-setup-paths code { color: var(--a4-ink); overflow-wrap: anywhere; }
.a4-setup-cron .a4-figures { margin-bottom: var(--a4-space-5); }
.a4-setup-cron .a4-figure.is-last { grid-column: span 2; }
.a4-setup-cron .a4-figure.is-last strong { font-size: var(--a4-text-m); line-height: var(--a4-leading-tight); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .a4-setup-cron .a4-figure.is-last { grid-column: 1 / -1; }
}
.a4-setup-cron .a4-filterbar { margin-bottom: var(--a4-space-5); }

/* Run a part on a chosen siteaccess, across the whole filter bar */
.a4-setup-runbox { display: flex; flex-wrap: wrap; align-items: end; grid-column: 1 / -1; gap: var(--a4-space-2) var(--a4-space-3); padding-top: var(--a4-space-3); border-top: 1px solid var(--a4-line); }
.a4-setup-runbox .a4-field { flex: 1 1 220px; }
.a4-setup-runbox .a4-meta { flex: 1 1 100%; }

/* The output and the crontab, folded */
.a4-setup-cron .a4-fold { margin: 0 0 var(--a4-space-5); }
.a4-setup-cron .a4-fold-body { contain: inline-size; }
.a4-setup-cron .a4-fold-body h3 { margin: var(--a4-space-3) 0 var(--a4-space-1); font-size: var(--a4-text-m); }
.a4-setup-cron .a4-fold-body h3:first-child { margin-top: 0; }
.a4-setup-cron .a4-fold-body p { margin: 0 0 var(--a4-space-2); }
.a4-setup-cron .a4-setup-console { height: 22em; max-height: 60vh; }
.a4-setup-console:empty::before { content: attr(data-empty); color: var(--a4-muted); }
.a4-setup-crontab {
  margin: 0 0 var(--a4-space-3);
  padding: var(--a4-space-3) var(--a4-space-3);
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  color: var(--a4-ink);
  font-family: var(--a4-mono);
  font-size: var(--a4-text-xs);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* One card per cronjob part; the one running now is marked */
.a4-setup-part-row.is-current { border-color: var(--a4-ok); box-shadow: inset 4px 0 0 var(--a4-ok), var(--a4-shadow-s); }
:where([dir="rtl"]) .a4-setup-part-row.is-current { box-shadow: inset -4px 0 0 var(--a4-ok), var(--a4-shadow-s); }
.a4-setup-cron .a4-facts dd code { color: var(--a4-muted); }

/* The compact view of the cronjob parts: one table row per part. The row head is the part, not a column heading:
   it takes the body's type and wraps, against .a4-table th (small, uppercase, bold, no wrap). The row of a part that
   needs attention is marked at the left edge like its card, a paused one in red, the running one in green. */
.a4-setup-cron .a4-setup-view { margin-inline-start: auto; display: inline-flex; align-items: center; }
.a4-setup-cron .a4-setup-compact .a4-badges { margin: 0; }
.a4-setup-cron .a4-setup-compact .a4-table > tbody > tr > th[scope="row"] {
  width: 1%; min-width: 8em; max-width: 14em;
  color: var(--a4-ink); font-size: var(--a4-text-s); font-weight: var(--a4-weight-medium);
  letter-spacing: normal; text-transform: none; white-space: normal;
}
.a4-setup-cron .a4-setup-compact-part { display: block; }
.a4-setup-cron .a4-setup-compact-sub { display: block; font-size: var(--a4-text-xs); color: var(--a4-muted); }
.a4-setup-cron .a4-setup-compact .a4-table td, .a4-setup-cron .a4-setup-compact .a4-table th { padding-inline-start: var(--a4-space-2); padding-inline-end: var(--a4-space-2); }
.a4-setup-cron .a4-setup-compact-scripts { margin-top: 2px; font-size: var(--a4-text-xs); color: var(--a4-muted); }
.a4-setup-cron .a4-setup-compact-scripts > summary { cursor: pointer; }
/* The scripts of a part: in the row below it across the table (with javascript), or in its cell (without). The
   compact table has no zebra stripes, so an opened scripts row does not shift them; rows are separated by lines. */
.a4-setup-cron .a4-setup-compact .a4-table > tbody > tr > :is(td, th) { background-color: transparent; }
.a4-setup-cron .a4-setup-compact .a4-table > tbody > tr.a4-setup-part-row:hover > :is(td, th) { background-color: var(--a4-info-bg); }
.a4-setup-cron .a4-setup-compact .a4-table > tbody > tr.a4-setup-compact-detail > td {
  background-color: var(--a4-soft); padding-top: var(--a4-space-1); padding-bottom: var(--a4-space-2); font-size: var(--a4-text-xs);
}
.a4-setup-cron .a4-setup-compact #cronjob-table.is-scripted .a4-setup-compact-inline { display: none; }
/* A part's scripts as a small table: where it comes from, its path with the file name, what it does. The list is
   the grid and each item gives its three cells to it, so the columns line up across the scripts of a part. */
.a4-setup-cron .a4-setup-compact-detail ul {
  display: grid; grid-template-columns: max-content fit-content(45%) minmax(0, 1fr); column-gap: var(--a4-space-4); row-gap: var(--a4-space-1);
  margin: 2px 0 0; padding: 0; list-style: none;
}
.a4-setup-cron .a4-setup-compact-detail li { display: contents; }
.a4-setup-cron .a4-setup-compact-file { overflow-wrap: anywhere; }
.a4-setup-cron .a4-setup-compact-path { color: var(--a4-muted); font-family: var(--a4-mono); font-size: var(--a4-text-xs); }
.a4-setup-cron .a4-setup-compact-file code { color: var(--a4-ink); font-size: var(--a4-text-xs); white-space: nowrap; }
.a4-setup-cron .a4-setup-compact-desc { color: var(--a4-muted); }
.a4-setup-cron :is(.a4-setup-compact-detail, .a4-setup-compact-inline) li .a4-badge { font-size: var(--a4-text-xs); padding: 0 var(--a4-space-1); }
/* Without javascript, in the narrow cell: one script below the other. */
.a4-setup-cron .a4-setup-compact-inline { margin: 2px 0 0; padding: 0; list-style: none; }
.a4-setup-cron .a4-setup-compact-inline li { margin: var(--a4-space-1) 0; }
.a4-setup-cron .a4-setup-compact-inline li > span { display: block; }
.a4-setup-cron .a4-setup-compact-detail li code { color: var(--a4-ink); }
.a4-setup-cron .a4-setup-compact thead th { white-space: normal; }
.a4-setup-cron .a4-setup-compact td { white-space: normal; }
.a4-setup-cron .a4-setup-compact tr.a4-setup-part-row > td:last-child { white-space: nowrap; width: 1%; }
.a4-setup-cron .a4-setup-compact tr.a4-setup-part-row { border: 0; box-shadow: none; }
.a4-setup-cron .a4-setup-compact tr.is-attention > th { box-shadow: inset 4px 0 0 var(--a4-warn); }
:where([dir="rtl"]) .a4-setup-cron .a4-setup-compact tr.is-attention > th { box-shadow: inset -4px 0 0 var(--a4-warn); }
.a4-setup-cron .a4-setup-compact tr.is-paused > th { box-shadow: inset 4px 0 0 var(--a4-bad); }
:where([dir="rtl"]) .a4-setup-cron .a4-setup-compact tr.is-paused > th { box-shadow: inset -4px 0 0 var(--a4-bad); }
.a4-setup-cron .a4-setup-compact tr.is-current > th { box-shadow: inset 4px 0 0 var(--a4-ok); }
:where([dir="rtl"]) .a4-setup-cron .a4-setup-compact tr.is-current > th { box-shadow: inset -4px 0 0 var(--a4-ok); }
.a4-setup-cron .a4-setup-compact td .a4-btn + .a4-btn { margin-inline-start: var(--a4-space-1); }
.a4-setup-cron .a4-setup-compact td .a4-btn-small { padding: 2px var(--a4-space-2); }
.a4-setup-cron .a4-setup-cmd-row { margin: var(--a4-space-3) 0 0; }
.a4-setup-cron .a4-setup-cmd-label { flex: 0 0 auto; }
.a4-setup-scripts { margin: var(--a4-space-3) 0 0; border-top: 1px solid var(--a4-line); }
.a4-setup-scripts > summary { display: flex; align-items: baseline; gap: var(--a4-space-2); padding: var(--a4-space-2) 0 0; color: var(--a4-ink); font-size: var(--a4-text-s); list-style: none; cursor: pointer; }
.a4-setup-scripts > summary::-webkit-details-marker { display: none; }
.a4-setup-scripts > summary::before { content: "\25B8"; flex: 0 0 auto; color: var(--a4-muted); }
.a4-setup-scripts[open] > summary::before { content: "\25BE"; }
.a4-setup-scripts[open] > summary { padding-bottom: var(--a4-space-1); }
.a4-setup-scripts-count { flex: 0 0 auto; font-weight: var(--a4-weight-heading); }
.a4-setup-scripts > summary:hover .a4-setup-scripts-count { color: var(--a4-accent-text); }
.a4-setup-scripts-names { min-width: 0; overflow: hidden; color: var(--a4-muted); font-family: var(--a4-mono); font-size: var(--a4-text-xs); text-overflow: ellipsis; white-space: nowrap; }
.a4-setup-scripts[open] .a4-setup-scripts-names { visibility: hidden; }
.a4-setup-script-list { margin: 0; padding: 0; list-style: none; }
.a4-setup-script { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a4-space-1) var(--a4-space-3); margin: 0; padding: var(--a4-space-2) 0; border-top: 1px dashed var(--a4-line); }
.a4-setup-script:first-child { border-top: 0; }
.a4-setup-script-main { flex: 1 1 260px; min-width: 0; }
.a4-setup-script-name { color: var(--a4-ink); font-weight: var(--a4-weight-heading); overflow-wrap: anywhere; }
.a4-setup-script-desc { margin: 2px 0 0; }
/* The link to what a script's documentation says (cronjob.ini [ScriptDocumentation], or @link in its header). */
.a4-setup-script-doc { margin: 2px 0 0; font-size: var(--a4-text-xs); }
.a4-setup-cron .a4-setup-doc-link { white-space: nowrap; font-size: var(--a4-text-xs); }
.a4-setup-script-where { margin: 2px 0 0; color: var(--a4-muted); font-size: var(--a4-text-xs); overflow-wrap: anywhere; }
.a4-setup-script-where.is-missing { color: var(--a4-bad); font-weight: var(--a4-weight-heading); }
.a4-setup-script-actions { display: flex; flex-wrap: wrap; gap: var(--a4-space-1); }
.a4-setup-cron .a4-pager { margin: var(--a4-space-3) 0 0; }

@media (max-width: 600px) {
  .a4-setup-cron .a4-toolbar .a4-actions,
  .a4-setup-cron .a4-toolbar .a4-actions .a4-btn { width: 100%; }
  .a4-setup-cron .a4-toolbar .a4-actions .a4-btn { flex: 1 1 0; }
  .a4-setup-cron .a4-card-head .a4-setup-run { width: 100%; }
  .a4-setup-cmd-row { flex-wrap: wrap; }
  .a4-setup-cmd-label { flex-basis: 100%; }
}

/* ---- the RAD wizards (setup/contentextension, datatype, designextension, handlerextension, kerneloverride,
        moduleextension, modulewizard, settingsextension, templateoperator, workflowevent): .a4-setup-wz ---------- */

.a4-setup-wz h2 { margin: 0 0 2px; font-size: var(--a4-text-l); }
.a4-setup-wz h3 { margin: var(--a4-space-4) 0 var(--a4-space-1); color: var(--a4-muted); font-size: var(--a4-text-s); letter-spacing: var(--a4-tracking); text-transform: uppercase; }
.a4-setup-wz pre { max-width: 100%; overflow-x: auto; font-family: var(--a4-mono); white-space: pre; }
.a4-setup-wz label,
.a4-setup-wz label * { white-space: normal; }
.a4-setup-wz .a4-meta { white-space: normal; }
.a4-setup-wz .a4-card { margin: 0 0 var(--a4-space-5); }
/* a wizard notice is a sign (! or a tick) beside its sentence */
.a4-setup-wz .a4-notice { display: flex; align-items: flex-start; gap: var(--a4-space-2); }
.a4-setup-wz .a4-card > .a4-meta { display: block; padding-bottom: var(--a4-space-3); }
.a4-setup-wz .a4-card.is-off { opacity: .55; }
.a4-setup-wz .a4-field { padding-bottom: var(--a4-space-3); }
.a4-setup-wz .a4-field textarea { font-family: var(--a4-mono); font-size: var(--a4-text-s); resize: vertical; }
.a4-setup-wz .a4-actions { padding: 2px 0 var(--a4-space-3); }
.a4-setup-wz .a4-table .is-bad { color: var(--a4-bad); font-weight: var(--a4-weight-strong); }

.a4-setup-wz-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--a4-space-5); }
.a4-setup-wz-col { flex: 1 1 26rem; min-width: 0; }
.a4-setup-wz-row { display: flex; flex-wrap: wrap; gap: var(--a4-space-3); }
.a4-setup-wz-row > .a4-field { flex: 1 1 9rem; }

/* A choice with its explanation (radio or checkbox) */
.a4-setup-wz-pick { display: flex; align-items: flex-start; gap: var(--a4-space-2); padding: var(--a4-space-2); border-radius: var(--a4-radius-s); }
.a4-setup-wz-pick:hover { background-color: var(--a4-soft); }
.a4-setup-wz-pick input { flex: 0 0 auto; margin-top: var(--a4-space-1); accent-color: var(--a4-accent-strong); }
.a4-setup-wz-pick > span { flex: 1 1 auto; min-width: 0; }
.a4-setup-wz-pick-label { display: block; font-weight: var(--a4-weight-strong); }
.a4-setup-wz-pick .a4-meta { display: block; }
.a4-setup-wz-pick.is-locked { opacity: .75; }
.a4-setup-wz-count { color: var(--a4-accent-text); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-strong); }

.a4-setup-wz-types { padding-top: var(--a4-space-1); }
.a4-setup-wz-types code { padding: 1px var(--a4-space-1); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); font-size: var(--a4-text-xs); }

/* A small uppercase label: the kind of a thing (accent; .is-muted, .is-open neutral; .is-bad) */
.a4-setup-wz-tag {
  display: inline-block;
  padding: 1px var(--a4-space-1);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-accent-strong);
  color: var(--a4-on-accent);
  font-size: var(--a4-text-xs);
  font-weight: var(--a4-weight-bold);
  letter-spacing: var(--a4-tracking);
  text-transform: uppercase;
  vertical-align: .1em;
}
.a4-setup-wz-tag.is-muted,
.a4-setup-wz-tag.is-open { background-color: var(--a4-soft); color: var(--a4-muted); }
.a4-setup-wz-tag.is-filter { background-color: var(--a4-accent-strong); color: var(--a4-on-accent); }
.a4-setup-wz-tag.is-bad { background-color: var(--a4-bad-bg); color: var(--a4-bad); }

/* A row of a list, each under a thin line: methods, views, references, settings, uses, matches, columns */
.a4-setup-wz-method,
.a4-setup-wz-view,
.a4-setup-wz-use { padding: var(--a4-space-2) 0; border-top: 1px solid var(--a4-line); }
.a4-setup-wz-method code,
.a4-setup-wz-view code.a4-setup-wz-address { display: block; padding-bottom: 2px; font-weight: var(--a4-weight-strong); }
.a4-setup-wz-use pre { margin: var(--a4-space-1) 0 var(--a4-space-1); padding: var(--a4-space-2) var(--a4-space-2); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); }
.a4-setup-wz-ref,
.a4-setup-wz-cols { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a4-space-2); padding: var(--a4-space-1) 0; border-top: 1px solid var(--a4-line); }
.a4-setup-wz-ref code { flex: 0 0 10rem; font-weight: var(--a4-weight-strong); }
.a4-setup-wz-cols code { flex: 0 0 9rem; font-weight: var(--a4-weight-strong); }
.a4-setup-wz-ref .a4-meta,
.a4-setup-wz-cols .a4-meta { flex: 1 1 12rem; min-width: 0; }
.a4-setup-wz-setting { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-2); padding: var(--a4-space-1) 0; }
.a4-setup-wz-setting code { flex: 0 0 7rem; }
.a4-setup-wz-setting input { flex: 1 1 10rem; width: auto; min-width: 0; }
.a4-setup-wz-match { display: flex; align-items: baseline; gap: var(--a4-space-2); padding: var(--a4-space-1) var(--a4-space-2); border-top: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); }
.a4-setup-wz-match:hover { background-color: var(--a4-soft); }
.a4-setup-wz-match.is-current { background-color: var(--a4-info-bg); }
.a4-setup-wz-match input { flex: 0 0 auto; }
.a4-setup-wz-match code { flex: 0 0 auto; font-weight: var(--a4-weight-strong); }
.a4-setup-wz-match .a4-meta { flex: 1 1 10rem; min-width: 0; }
.a4-setup-wz-group { display: block; padding-top: var(--a4-space-3); color: var(--a4-accent-text); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); letter-spacing: var(--a4-tracking); text-transform: uppercase; }
.a4-setup-wz-facts { display: flex; flex-direction: column; gap: var(--a4-space-1); padding-bottom: var(--a4-space-2); }
.a4-setup-wz-fact { display: flex; flex-wrap: wrap; gap: var(--a4-space-2); }
.a4-setup-wz-fact b { flex: 0 0 7rem; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-strong); letter-spacing: var(--a4-tracking); text-transform: uppercase; }
.a4-setup-wz-fact span { flex: 1 1 12rem; min-width: 0; }
.a4-setup-wz-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a4-space-5); padding: 0 0 var(--a4-space-4); }
.a4-setup-wz-summary b { font-size: var(--a4-text-xl); }

/* The files the wizard writes: a head that folds the file open and closed */
.a4-setup-wz-file { margin: 0 0 var(--a4-space-2); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-card); }
.a4-setup-wz-file-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-2); padding: var(--a4-space-2) var(--a4-space-3); cursor: pointer; }
.a4-setup-wz-file-head:hover { background-color: var(--a4-soft); }
.a4-setup-wz-file-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  font-weight: var(--a4-weight-bold);
  line-height: var(--a4-leading-none);
}
.a4-setup-wz-file-path { min-width: 0; font-weight: var(--a4-weight-strong); overflow-wrap: anywhere; }
.a4-setup-wz-file pre { max-height: 28rem; margin: 0; padding: var(--a4-space-3) var(--a4-space-4); overflow: auto; border-top: 1px solid var(--a4-line); background-color: var(--a4-soft); color: var(--a4-ink); font-size: var(--a4-text-s); line-height: var(--a4-leading); }
.a4-setup-wz-file.is-collapsed pre { display: none; }

/* The file tree of the design wizard, indented by depth (.a4-setup-wz-depth-0 ... -10) */
.a4-setup-wz-tree { margin: 0; padding: 0; list-style: none; }
.a4-setup-wz-tree li { padding: 2px 0; overflow-wrap: anywhere; }
.a4-setup-wz-tree a { color: var(--a4-accent-text); text-decoration: none; }
.a4-setup-wz-tree a:hover { text-decoration: underline; }
.a4-setup-wz-dir,
.a4-setup-wz-size { color: var(--a4-muted); }
.a4-setup-wz-size { font-size: var(--a4-text-xs); }
.a4-setup-wz-tree li.a4-setup-wz-depth-1 { padding-inline-start: calc(1 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-2 { padding-inline-start: calc(2 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-3 { padding-inline-start: calc(3 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-4 { padding-inline-start: calc(4 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-5 { padding-inline-start: calc(5 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-6 { padding-inline-start: calc(6 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-7 { padding-inline-start: calc(7 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-8 { padding-inline-start: calc(8 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-9 { padding-inline-start: calc(9 * var(--a4-space-4)); }
.a4-setup-wz-tree li.a4-setup-wz-depth-10 { padding-inline-start: calc(10 * var(--a4-space-4)); }
.a4-setup-wz-parts { display: flex; flex-direction: column; gap: 2px; }

/* The module wizard: the table picker, the column chips, the mapping, the external source */
.a4-setup-wz-tables { max-height: 28rem; overflow: auto; border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); }
.a4-setup-wz-tables table,
.a4-setup-wz-map table { width: 100%; border-collapse: collapse; font-size: var(--a4-text-s); }
.a4-setup-wz-tables table { min-width: 30rem; }
.a4-setup-wz-tables th,
.a4-setup-wz-tables td,
.a4-setup-wz-map th,
.a4-setup-wz-map td { padding: var(--a4-space-1) var(--a4-space-2); border-bottom: 1px solid var(--a4-line); color: var(--a4-ink); text-align: start; }
.a4-setup-wz-tables th { position: sticky; top: 0; z-index: 1; background-color: var(--a4-soft); }
.a4-setup-wz-tables tr.is-selected { background-color: var(--a4-accent-soft); }
.a4-setup-wz-nokey { color: var(--a4-bad); }
.a4-setup-wz-map { overflow-x: auto; }
.a4-setup-wz-map table { min-width: 34rem; }
.a4-setup-wz-map th { color: var(--a4-muted); font-weight: var(--a4-weight-strong); }
.a4-setup-wz-chips { display: flex; flex-wrap: wrap; gap: var(--a4-space-1); max-width: 100%; padding-top: var(--a4-space-1); }
.a4-setup-wz-chip { padding: 1px var(--a4-space-1); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); font-size: var(--a4-text-xs); overflow-wrap: anywhere; }
.a4-setup-wz-chip b { font-weight: var(--a4-weight-strong); }
.a4-setup-wz-chip.is-key,
.a4-setup-wz-chip.is-accent { border-color: var(--a4-accent); background-color: transparent; color: var(--a4-accent-text); }
.a4-setup-wz-chip.is-accent { white-space: nowrap; }
.a4-setup-wz-external { padding-inline-start: var(--a4-space-3); border-inline-start: 3px solid var(--a4-line); }

/* The workflow event wizard: the trigger matrix, the statuses, the settings rows */
.a4-setup-wz-module { padding-bottom: var(--a4-space-4); }
.a4-setup-wz-module h3 { margin: 0 0 var(--a4-space-1); text-transform: capitalize; }
.a4-setup-wz-matrix,
.a4-setup-wz-attrs { width: 100%; border-collapse: collapse; font-size: var(--a4-text-s); }
.a4-setup-wz-matrix th,
.a4-setup-wz-matrix td,
.a4-setup-wz-attrs th,
.a4-setup-wz-attrs td { padding: var(--a4-space-1) var(--a4-space-2); border-bottom: 1px solid var(--a4-line); color: var(--a4-ink); text-align: start; vertical-align: top; }
.a4-setup-wz-matrix th,
.a4-setup-wz-attrs th { color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-strong); text-transform: uppercase; }
.a4-setup-wz-matrix td.a4-setup-wz-tick { width: 5.5rem; text-align: center; }
.a4-setup-wz-matrix tr.is-chosen td { background-color: var(--a4-accent-soft); }
.a4-setup-wz-none,
.a4-setup-wz-col-used { color: var(--a4-muted); }
.a4-setup-wz-col-used { font-size: var(--a4-text-xs); white-space: nowrap; }
.a4-setup-wz-attrs .a4-input,
.a4-setup-wz-attrs input[type=text],
.a4-setup-wz-attrs select { width: 100%; padding: var(--a4-space-1) var(--a4-space-1); border: 1px solid var(--a4-field-line); border-radius: var(--a4-radius-s); background-color: var(--a4-field); color: var(--a4-ink); font: inherit; }
.a4-setup-wz-status { display: flex; align-items: flex-start; gap: var(--a4-space-2); padding: var(--a4-space-2); border-radius: var(--a4-radius-s); }
.a4-setup-wz-status:hover { background-color: var(--a4-soft); }
.a4-setup-wz-status input { flex: 0 0 auto; margin-top: var(--a4-space-1); }
.a4-setup-wz-status > span { flex: 1 1 auto; min-width: 0; }
.a4-setup-wz-status code { display: block; font-weight: var(--a4-weight-strong); }
.a4-setup-wz-status .a4-meta { display: block; }
.a4-setup-wz-left { display: flex; gap: var(--a4-space-4); padding-top: var(--a4-space-2); }
.a4-setup-wz-triggers { display: flex; flex-wrap: wrap; gap: var(--a4-space-1); padding-bottom: var(--a4-space-2); }

/* ---- setup/rad: Rapid application development ---------------------------------------------------------------- */

.a4-setup-rad h2 { margin: 0 0 2px; font-size: var(--a4-text-l); }
.a4-setup-rad label,
.a4-setup-rad .a4-meta { white-space: normal; }
.a4-setup-rad-group { margin: 0 0 var(--a4-space-5); }
.a4-setup-rad-group > .a4-meta { display: block; padding-bottom: var(--a4-space-2); }
.a4-setup-rad-point { margin: 0 0 var(--a4-space-2); }
.a4-setup-rad-point.is-hidden,
.a4-setup-rad-group.is-hidden { display: none; }
.a4-setup-rad-point .a4-title-row { align-items: baseline; }
.a4-setup-rad-point h3 { margin: 0; font-size: var(--a4-text-l); }
.a4-setup-rad-point-what { padding: var(--a4-space-1) 0 var(--a4-space-2); white-space: normal; }
.a4-setup-rad-open { font-weight: var(--a4-weight-strong); text-decoration: none; }
.a4-setup-rad-legend dt { padding-top: var(--a4-space-2); font-weight: var(--a4-weight-strong); }
.a4-setup-rad-legend dd { margin: 0; color: var(--a4-muted); white-space: normal; }

/* The filter of the list, on its own line */
.a4-setup-rad-find { padding: 0 0 var(--a4-space-3); }
.a4-setup-rad-find .a4-input { flex: 1 1 22rem; }
.a4-setup-rad-find-count { flex: 0 0 auto; }
.a4-setup-rad-find-none { padding: var(--a4-space-2) 0 var(--a4-space-4); }

/* The survey: a link with its count, and the survey's sections */
.a4-setup-rad-survey-note { padding: 0 0 var(--a4-space-4); }
.a4-setup-rad-survey-link {
  display: flex;
  align-items: center;
  gap: var(--a4-space-3);
  padding: var(--a4-space-3) var(--a4-space-4);
  border: 1px solid var(--a4-line);
  border-inline-start: 4px solid var(--a4-accent);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  color: inherit;
  text-decoration: none;
}
.a4-page a.a4-setup-rad-survey-link { color: var(--a4-ink); }
.a4-setup-rad-survey-link:hover { border-color: var(--a4-line-strong); border-inline-start-color: var(--a4-accent); }
.a4-setup-rad-survey-link > span { min-width: 0; }
.a4-setup-rad-survey-link b { display: block; }
.a4-setup-rad-survey-link .a4-meta { display: block; white-space: normal; }
.a4-setup-rad-survey-count { flex: 0 0 auto; color: var(--a4-accent-text); font-size: var(--a4-text-xl); font-weight: var(--a4-weight-bold); line-height: var(--a4-leading-none); }
.a4-setup-rad-survey-groups { margin: var(--a4-space-2) 0 0; }
.a4-setup-rad-survey-groups li { margin: 0; padding: 0; }
.a4-setup-rad-survey-groups li.is-inside a { border-style: dashed; }

/* The admin toolbar floats its contents: clear it before the first group */
.a4-setup-rad-filter { display: block; padding: 0 0 var(--a4-space-1); }
.a4-setup-rad-filter::after { content: ""; display: block; clear: both; }
.a4-setup-rad-filter p.table-preferences { margin: 0; }
.a4-setup-rad-groups { clear: both; padding-top: var(--a4-space-4); }

/* ---- setup/radsurvey: the extension point survey -------------------------------------------------------------- */

.a4-setup-survey h2 { margin: 0 0 2px; font-size: var(--a4-text-l); }
.a4-setup-survey label,
.a4-setup-survey label *,
.a4-setup-survey .a4-meta { white-space: normal; }
.a4-setup-survey .a4-card { margin: 0 0 var(--a4-space-5); }
.a4-setup-survey .a4-card > .a4-meta { display: block; padding-bottom: var(--a4-space-3); }
.a4-setup-survey .a4-searchrow { padding: 0 0 var(--a4-space-3); }

/* The figures at the top; the linked ones lead to their part of the survey */
.a4-setup-survey-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a4-space-5) var(--a4-space-6); padding: 0 0 var(--a4-space-4); }
.a4-setup-survey-summary > span,
.a4-setup-survey-figure { display: flex; flex-direction: column; gap: 2px; }
.a4-setup-survey-summary b { font-size: var(--a4-text-xl); line-height: var(--a4-leading-tight); }
.a4-setup-survey-label { color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-strong); letter-spacing: var(--a4-tracking); text-transform: uppercase; }
.a4-page a.a4-setup-survey-figure { padding-bottom: 2px; border-bottom: 2px solid transparent; color: var(--a4-ink); text-decoration: none; }
.a4-page a.a4-setup-survey-figure:hover { border-bottom-color: var(--a4-accent); }
.a4-setup-survey-figure.is-bad b { color: var(--a4-bad); }
.a4-page a.a4-setup-survey-figure.is-bad:hover { border-bottom-color: var(--a4-bad); }

/* The parts of the survey, as large tabs */
.a4-setup-survey-tabs { display: flex; flex-wrap: wrap; gap: var(--a4-space-2); padding: 0 0 var(--a4-space-4); }
.a4-page a.a4-setup-survey-tab {
  display: flex;
  flex: 1 1 14rem;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: var(--a4-space-2) var(--a4-space-3);
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-card);
  color: var(--a4-ink);
  text-decoration: none;
}
.a4-page a.a4-setup-survey-tab:hover { border-color: var(--a4-line-strong); }
.a4-page a.a4-setup-survey-tab.is-current { border-color: var(--a4-accent); box-shadow: inset 0 0 0 1px var(--a4-accent); }
.a4-setup-survey-tab-title { font-weight: var(--a4-weight-strong); }
.a4-setup-survey-tab-count { color: var(--a4-accent-text); font-weight: var(--a4-weight-bold); }

/* The kinds of finding, each with its severity on the left edge */
.a4-setup-survey-kinds { display: flex; flex-wrap: wrap; gap: var(--a4-space-1); padding: 0 0 var(--a4-space-4); }
.a4-page a.a4-setup-survey-kind {
  display: inline-flex;
  align-items: baseline;
  gap: var(--a4-space-1);
  padding: var(--a4-space-1) var(--a4-space-2);
  border: 1px solid var(--a4-line);
  border-inline-start-width: 4px;
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-card);
  color: var(--a4-ink);
  font-size: var(--a4-text-s);
  text-decoration: none;
}
.a4-page a.a4-setup-survey-kind:hover { border-color: var(--a4-line-strong); }
.a4-setup-survey-kind.is-broken { border-inline-start-color: var(--a4-bad); }
.a4-setup-survey-kind.is-odd { border-inline-start-color: var(--a4-ok); }
.a4-setup-survey-kind.is-note { border-inline-start-color: var(--a4-line-strong); }
.a4-page a.a4-setup-survey-kind.is-current { border-color: var(--a4-accent); background-color: var(--a4-accent-soft); }
.a4-setup-survey-kind b { font-weight: var(--a4-weight-bold); }

/* How to fix a finding, inside its row */
.a4-setup-survey-fix { margin: var(--a4-space-1) 0 2px; padding: var(--a4-space-2) var(--a4-space-2); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background-color: var(--a4-soft); }
.a4-setup-survey-fix-head { display: block; padding-bottom: var(--a4-space-1); color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); letter-spacing: var(--a4-tracking); text-transform: uppercase; }
.a4-setup-survey-fix ol { margin: 0; padding-inline-start: var(--a4-space-4); }
.a4-setup-survey-fix li { padding: 2px 0; white-space: normal; }
.a4-setup-survey .a4-table .a4-setup-survey-value { font-weight: var(--a4-weight-strong); }
.a4-setup-survey .a4-table .a4-setup-survey-where { color: var(--a4-muted); font-size: var(--a4-text-s); }
.a4-setup-survey .a4-dot { display: inline-block; width: 9px; height: 9px; vertical-align: .05em; }
.a4-setup-survey-pages { clear: both; padding: var(--a4-space-3) 0 0; }

/* The note under the buttons of a page's action bar takes its own line (System information, Caches) */
.a4-setup-info .a4-toolbar > .a4-meta,
.a4-setup-cache .a4-toolbar > .a4-meta { flex-basis: 100%; }

/* Forced colors (Windows high contrast) drop backgrounds and box-shadows and repaint borders in one colour: a state
   that differs only by them (current, selected, moved, pressed, changed) gets a Highlight outline. */
@media (forced-colors: active) {
  .a4-setup-bar.is-dirty,
  .a4-setup-ext .a4-grip[aria-pressed="true"],
  .a4-setup-lines .is-moved,
  .a4-setup-preset[aria-pressed="true"],
  .a4-setup-part-row.is-current,
  .a4-setup-cron .a4-setup-compact tr.is-current > th,
  .a4-setup-cron .a4-setup-compact tr.is-paused > th,
  .a4-setup-wz-match.is-current,
  .a4-setup-wz-tables tr.is-selected,
  .a4-page a.a4-setup-survey-tab.is-current,
  .a4-page a.a4-setup-survey-kind.is-current,
  .a4-setup-sa-list .a4-card.is-current,
  :where([dir="rtl"]) .a4-setup-sa-list .a4-card.is-current { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* ---- setup/menu: the Setup overview -------------------------------------------------------------------------- */

/* One section per group of the Setup menu, the tiles in a grid that counts the width of the content column, not
   of the window: one column on a phone, two, three, four on a wide screen. A tile is a card with an icon square, the
   function's name as the link, stretched over the card, and one line on what it does; the description and figure are the link's description (aria-describedby). */
.a4-setup-overview { container-type: inline-size; }
.a4-setup-tilegroup-title { margin: 0 0 var(--a4-space-2); }
.a4-setup-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--a4-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@container (min-width: 520px) { .a4-setup-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 800px) { .a4-setup-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 1080px) { .a4-setup-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.a4-setup-tiles > .a4-setup-tile + .a4-setup-tile { margin-top: 0; }
.a4-setup-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--a4-space-3);
  transition: border-color var(--a4-duration) ease, box-shadow var(--a4-duration) ease;
}
.a4-setup-tile:hover { border-color: var(--a4-accent); }
.a4-setup-tile-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-accent-soft);
  color: var(--a4-accent-text);
  font-size: var(--a4-text-l);
}
.a4-setup-tile-icon .a4-icon { width: 1.25em; height: 1.25em; }
.a4-setup-tile-body { display: grid; gap: 2px; min-width: 0; }
.a4-setup-tile-link { color: var(--a4-ink); font-weight: var(--a4-weight-heading); overflow-wrap: anywhere; }
a.a4-setup-tile-link, a.a4-setup-tile-link:visited { color: var(--a4-ink); text-decoration: none; }
/* the whole card is the link's target; the focus ring is drawn around the card */
a.a4-setup-tile-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--a4-radius-s); }
a.a4-setup-tile-link:hover, a.a4-setup-tile-link:focus-visible { color: var(--a4-accent-text); text-decoration: underline; text-underline-offset: 2px; }
a.a4-setup-tile-link:focus-visible { outline: 2px solid transparent; }
a.a4-setup-tile-link:focus-visible::after { outline: 3px solid var(--a4-ring); outline-offset: 1px; }
.a4-setup-tile-text { display: grid; gap: 2px; color: var(--a4-muted); font-size: var(--a4-text-s); }
.a4-setup-tile-figure { color: var(--a4-ink); font-size: var(--a4-text-xs); font-variant-numeric: tabular-nums; font-weight: var(--a4-weight-strong); }
/* a figure that asks for a look, such as paused cronjob parts */
.a4-setup-tile-figure.is-attention { color: var(--a4-bad); }
.a4-setup-tile.is-disabled { box-shadow: none; background-color: var(--a4-soft); }
.a4-setup-tile.is-disabled .a4-setup-tile-link { color: var(--a4-disabled); }
@media (forced-colors: active) {
  .a4-setup-tile-icon { border: 1px solid CanvasText; }
  .a4-setup-tile:hover { border-color: Highlight; }
  a.a4-setup-tile-link:focus-visible::after { outline-color: Highlight; }
}

/* The package installer's option "Use content object modification and publication dates from the package"
   (design/standard: package/installers/ezcontentobject/advanced_options.tpl); it was an inline style="" */
label.a4-package-option-label {
  font-weight: normal;
  display: inline;
}

/* ---- Log files (setup/logs, setup/logsaction; templates setup/logs*.tpl, script page/setup_logs.js) ----------- */

/* The navigator in the left menu: each file with its size, last change and line rate */
.a4-setup-lognav { margin-top: var(--a4-space-4); }
.a4-setup-lognav-count { color: var(--a4-muted); font-weight: normal; }
.a4-setup-lognav-items .a4-setup-lognav-link { display: block; min-width: 0; }
.a4-setup-lognav-name { display: block; overflow-wrap: anywhere; font-family: var(--a4-mono); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); }
.a4-setup-lognav-dir { display: block; overflow-wrap: anywhere; color: var(--a4-muted); font-size: var(--a4-text-xs); }
.a4-setup-lognav-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--a4-space-2);
  color: var(--a4-muted);
  font-size: var(--a4-text-xs);
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}

/* The file chooser for narrow windows, the facts of the file and the controls */
.a4-setup-log-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-2); margin: 0 0 var(--a4-space-3); }
.a4-setup-log-picker select { min-width: 0; max-width: 100%; flex: 1 1 220px; }
/* The button of a chooser (Open, Copy permalink) on a line of its own, at the start */
.a4-setup-log-picker-actions { flex: 1 0 100%; display: flex; justify-content: flex-start; gap: var(--a4-space-2); }
/* The permalink of the view: a read-only field to select, and the copy button */
.a4-setup-log-permalink { flex-wrap: wrap; align-items: center; gap: var(--a4-space-2); margin: 0 0 var(--a4-space-3); }
.a4-setup-log-permalink .a4-input { flex: 1 1 260px; min-width: 0; max-width: 100%; font-family: var(--a4-mono); }
.a4-setup-log-permalink .a4-help { flex-basis: 100%; }
.a4-setup-log-facts { margin: 0 0 var(--a4-space-3); overflow-wrap: anywhere; }
.a4-setup-log-toolbar {
  position: sticky;
  top: 0;
  z-index: var(--a4-z-sticky);
  background-color: var(--a4-card);
  box-shadow: var(--a4-shadow-s);
}
.a4-setup-log-switch { align-items: center; }
.a4-setup-log-switch input { margin: 0; }
.a4-setup-log-find { flex: 1 1 320px; justify-content: flex-end; }
.a4-setup-log-find .a4-input { flex: 1 1 160px; min-width: 0; max-width: 320px; }
.a4-setup-log-keys { flex: 1 1 100%; margin: 0; font-size: var(--a4-text-xs); }
.a4-setup-log-search { margin: 0 0 var(--a4-space-4); }
.a4-setup-log-search fieldset .a4-row { gap: var(--a4-space-2) var(--a4-space-4); }
.a4-setup-log-more { margin: var(--a4-space-3) 0 0; }
.a4-setup-log-more [aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* The lines. Without the script: a plain list that wraps. With it: a scrolling region whose rows have one height,
   of which only those in view are drawn (the spacer is as tall as all of them); .is-wrapped draws every kept line. */
.a4-setup-log-view {
  position: relative;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 var(--a4-space-4);
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-surface);
  color: var(--a4-ink);
  font-family: var(--a4-mono);
  font-size: var(--a4-text-xs);
}
.a4-setup-log-view.is-scripted { height: min(70vh, 760px); overflow: auto; overscroll-behavior: contain; }
.a4-setup-log-view:focus-visible { outline: 3px solid var(--a4-ring); outline-offset: 1px; }
.a4-setup-log-view .a4-empty { margin: 0; padding: var(--a4-space-4); font-family: var(--a4-font); }
.a4-setup-log-spacer { position: relative; min-width: 100%; width: max-content; }
.a4-setup-log-view.is-wrapped .a4-setup-log-spacer { width: auto; }
.a4-setup-log-rows {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}
.a4-setup-log-view.is-wrapped .a4-setup-log-rows { position: static; will-change: auto; }
.a4-setup-log-plain { margin: 0; padding: 0; list-style: none; font-family: var(--a4-mono); font-size: var(--a4-text-xs); }

.a4-setup-log-row {
  display: flex;
  align-items: baseline;
  gap: var(--a4-space-2);
  padding: 1px var(--a4-space-2);
  border-inline-start: 3px solid var(--a4-line-strong);
  line-height: var(--a4-leading);
  white-space: pre;
  cursor: pointer;
}
.a4-setup-log-plain .a4-setup-log-row,
.a4-setup-log-view.is-wrapped .a4-setup-log-row { flex-wrap: wrap; white-space: pre-wrap; overflow-wrap: anywhere; cursor: default; }
.a4-setup-log-view.is-wrapped .a4-setup-log-row { cursor: pointer; }
.a4-setup-log-plain .a4-setup-log-row + .a4-setup-log-row,
.a4-setup-log-view.is-wrapped .a4-setup-log-row + .a4-setup-log-row { border-top: 1px solid var(--a4-line); }
.a4-setup-log-plain .a4-setup-log-msg,
.a4-setup-log-view.is-wrapped .a4-setup-log-msg { flex: 1 1 100%; }
.a4-setup-log-row:hover { background-color: var(--a4-soft); }
.a4-setup-log-row.is-error { border-inline-start-color: var(--a4-bad); }
.a4-setup-log-row.is-warning { border-inline-start-color: var(--a4-warn); }
.a4-setup-log-row.is-notice { border-inline-start-color: var(--a4-info); }
.a4-setup-log-row.is-debug { border-inline-start-color: var(--a4-line-strong); }
.a4-setup-log-row.is-separator { border-top: 1px dashed var(--a4-line-strong); color: var(--a4-muted); font-style: italic; cursor: default; }
.a4-setup-log-row.is-match { background-color: var(--a4-warn-bg); }
.a4-setup-log-row.is-current-match { background-color: var(--a4-accent-soft); outline: 2px solid var(--a4-accent-strong); outline-offset: -2px; }
.a4-setup-log-row.is-active { outline: 2px solid var(--a4-ring); outline-offset: -2px; }

/* A stripe per request (the lines with the same request key share one) */
.a4-setup-log-rk-1 { box-shadow: inset 3px 0 0 var(--a4-chart-1); }
.a4-setup-log-rk-2 { box-shadow: inset 3px 0 0 var(--a4-chart-2); }
.a4-setup-log-rk-3 { box-shadow: inset 3px 0 0 var(--a4-chart-3); }
.a4-setup-log-rk-4 { box-shadow: inset 3px 0 0 var(--a4-chart-4); }
.a4-setup-log-rk-5 { box-shadow: inset 3px 0 0 var(--a4-chart-5); }
.a4-setup-log-rk-6 { box-shadow: inset 3px 0 0 var(--a4-chart-6); }
.a4-setup-log-rk-7 { box-shadow: inset 3px 0 0 var(--a4-chart-7); }
.a4-setup-log-rk-8 { box-shadow: inset 3px 0 0 var(--a4-chart-8); }

.a4-setup-log-time { color: var(--a4-muted); font-variant-numeric: tabular-nums; }
.a4-setup-log-level {
  display: inline-block;
  min-width: 7ch;
  padding: 0 var(--a4-space-1);
  border: 1px solid transparent;
  border-radius: var(--a4-radius-s);
  font-family: var(--a4-font);
  font-weight: var(--a4-weight-bold);
  text-align: center;
}
.a4-setup-log-level.is-error { background-color: var(--a4-bad-bg); color: var(--a4-bad); }
.a4-setup-log-level.is-warning { background-color: var(--a4-warn-bg); color: var(--a4-warn); }
.a4-setup-log-level.is-notice { background-color: var(--a4-info-bg); color: var(--a4-info); }
.a4-setup-log-level.is-debug { background-color: var(--a4-soft); color: var(--a4-muted); }
.a4-setup-log-file { color: var(--a4-accent-text); }
.a4-setup-log-src { padding: 0 var(--a4-space-1); border: 1px solid var(--a4-line-strong); border-radius: var(--a4-radius-s); color: var(--a4-ink); }
.a4-setup-log-src-1 { border-color: var(--a4-chart-1); }
.a4-setup-log-src-2 { border-color: var(--a4-chart-2); }
.a4-setup-log-src-3 { border-color: var(--a4-chart-3); }
.a4-setup-log-src-4 { border-color: var(--a4-chart-4); }
.a4-setup-log-src-5 { border-color: var(--a4-chart-5); }
.a4-setup-log-src-6 { border-color: var(--a4-chart-6); }
.a4-setup-log-src-7 { border-color: var(--a4-chart-7); }
.a4-setup-log-src-8 { border-color: var(--a4-chart-8); }
.a4-setup-log-req { color: var(--a4-muted); }
.a4-setup-log-msg { color: var(--a4-ink); }
.a4-setup-log-link { color: var(--a4-accent-text); text-decoration: underline; }
.a4-setup-log-link:hover { color: var(--a4-accent-press); }

/* One entry, opened: its facts, its whole text, the lines of its request and its debug output */
.a4-setup-log-detail { margin: 0 0 var(--a4-space-4); }
.a4-setup-log-detail:focus-visible { outline: 3px solid var(--a4-ring); outline-offset: 1px; }
.a4-setup-log-detail-text {
  max-height: 50vh;
  margin: var(--a4-space-3) 0;
  padding: var(--a4-space-3);
  overflow: auto;
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  color: var(--a4-ink);
  font-family: var(--a4-mono);
  font-size: var(--a4-text-xs);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.a4-setup-log-detail-text a { color: var(--a4-accent-text); }
.a4-setup-log-related-part { margin-top: var(--a4-space-4); }
.a4-setup-log-related-part .a4-setup-log-plain { max-height: 40vh; overflow: auto; border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); }
.a4-setup-log-related { margin: 0 0 var(--a4-space-4); }

/* The actions */
.a4-setup-log-actions { margin: var(--a4-space-4) 0 0; }
.a4-setup-log-actions form + form { margin-top: var(--a4-space-3); padding-top: var(--a4-space-3); border-top: 1px solid var(--a4-line); }
.a4-setup-log-download .a4-field { flex: 0 1 160px; }
.a4-setup-log-actions .a4-help { flex: 1 1 100%; margin: 0; }
.a4-setup-log-confirm { margin-top: var(--a4-space-4); }

@media (max-width: 600px) {
  .a4-setup-log-view.is-scripted { height: 60vh; }
  .a4-setup-log-find { justify-content: flex-start; }
  .a4-setup-log-find .a4-input { max-width: none; }
  .a4-setup-log-download .a4-field { flex: 1 1 100%; }
}

/* Forced colors: the system colours, borders where colour carried the meaning */
@media (forced-colors: active) {
  .a4-setup-log-row { border-inline-start-color: CanvasText; }
  .a4-setup-log-row.is-error { border-inline-start-style: double; border-inline-start-width: 4px; }
  .a4-setup-log-level { border-color: CanvasText; }
  .a4-setup-log-row.is-active { outline-color: Highlight; }
  .a4-setup-log-row.is-match { outline: 1px dashed Highlight; outline-offset: -1px; }
  .a4-setup-log-row.is-current-match { outline: 2px solid Highlight; }
  .a4-setup-log-src { border-color: CanvasText; }
  .a4-setup-log-link, .a4-setup-log-detail-text a { color: LinkText; }
}

/* Setup > System information, Siteaccesses (#552): the resolution map and one card per siteaccess. Shared components
   (.a4-fold, .a4-table, .a4-card, .a4-tag) do the rest. */
.a4-setup-sa-entries { display: grid; gap: var(--a4-space-1); margin: 0; padding: 0; list-style: none; }
.a4-setup-sa-entries li.is-current { font-weight: var(--a4-weight-heading); }
.a4-setup-sa-rules th[scope="row"] { font-weight: normal; white-space: nowrap; }
.a4-setup-sa-list .a4-card.is-current { border-color: var(--a4-accent); box-shadow: inset 4px 0 0 var(--a4-accent), var(--a4-shadow-s); }
:where([dir="rtl"]) .a4-setup-sa-list .a4-card.is-current { box-shadow: inset -4px 0 0 var(--a4-accent), var(--a4-shadow-s); }
.a4-setup-sa-list .a4-card-head { flex-wrap: wrap; gap: var(--a4-space-2); }
.a4-setup-sa-list .a4-badges { margin: 0; }
.a4-setup-sa-list .a4-actions { display: flex; flex-wrap: wrap; gap: var(--a4-space-2); margin: 0; }
.a4-setup-sa-url { margin: 0; overflow-wrap: anywhere; }

/* ---- w551b health: Setup > Log files > Health (setup/logshealth, setup/logs_health.tpl) ---- */
.a4-setup-loghealth-total { margin: var(--a4-space-2) 0; }
.a4-setup-loghealth-meter { display: block; width: 100%; max-width: 40rem; height: var(--a4-space-3); margin: 0 0 var(--a4-space-2); }
.a4-setup-loghealth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--a4-space-3); margin: var(--a4-space-3) 0; }
.a4-setup-loghealth-grid > .a4-card + .a4-card { margin-top: 0; }
.a4-setup-loghealth-list { margin: 0; padding-inline-start: var(--a4-space-4); }
.a4-setup-loghealth-list li { margin: 0 0 var(--a4-space-1); overflow-wrap: anywhere; }
.a4-setup-loghealth-table td, .a4-setup-loghealth-table th { vertical-align: top; }
.a4-setup-loghealth-error { min-width: 12rem; }
.a4-setup-loghealth-message { display: block; font-family: var(--a4-mono); font-size: var(--a4-text-s); overflow-wrap: anywhere; }
.a4-setup-loghealth-table tr.is-attention > th { box-shadow: inset 3px 0 0 var(--a4-warn); }
[dir="rtl"] .a4-setup-loghealth-table tr.is-attention > th { box-shadow: inset -3px 0 0 var(--a4-warn); }
.a4-setup-loghealth-settings code { overflow-wrap: anywhere; }
@media (forced-colors: active) {
  .a4-setup-loghealth-table tr.is-attention > th { box-shadow: none; border-inline-start: 3px solid CanvasText; }
}

/* ---- w551b digest: the error digest (setup/logsdigest, design:setup/logs_digest.tpl) ---------------------------- */
.a4-setup-logdigest-intro { margin: 0 0 var(--a4-space-3); color: var(--a4-muted); max-width: 72ch; }
.a4-setup-logdigest-filters { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a4-space-2); margin: 0 0 var(--a4-space-2); }
.a4-setup-logdigest-hours { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-2); }
.a4-setup-logdigest-hours ul { margin: 0; }
.a4-setup-logdigest-label { color: var(--a4-muted); font-size: var(--a4-text-s); }
.a4-setup-logdigest-log { margin: 0 0 var(--a4-space-4); }
.a4-setup-logdigest-scroll { overflow-x: auto; max-width: 100%; }
.a4-setup-logdigest-table { width: 100%; }
.a4-setup-logdigest-count { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a4-setup-logdigest-msg { min-width: 18rem; overflow-wrap: anywhere; }
.a4-setup-logdigest-msg code { font-family: var(--a4-mono); font-size: var(--a4-text-s); color: var(--a4-ink); }
.a4-setup-logdigest-sample { display: block; margin-top: var(--a4-space-1); font-family: var(--a4-mono); font-size: var(--a4-text-xs); color: var(--a4-muted); }
.a4-setup-logdigest-last { white-space: nowrap; }
.a4-setup-logdigest-actions { white-space: nowrap; }
.a4-setup-logdigest-actions .a4-btn { margin-inline-end: var(--a4-space-1); }
.a4-setup-logdigest-form { display: inline; margin: 0; }
.a4-setup-logdigest-table tr.is-known td { color: var(--a4-muted); }
@media (max-width: 600px) {
  .a4-setup-logdigest-msg { min-width: 12rem; }
}

/* ---- w551b manage: Setup > Log files > Manage logs (setup/logsmanage, setup/logs_manage*.tpl) ---- */
.a4-setup-logmanage-all { flex-wrap: wrap; gap: var(--a4-space-2); margin: 0 0 var(--a4-space-3); }
.a4-setup-logmanage-table th[scope="row"] { overflow-wrap: anywhere; }
.a4-setup-logmanage-archives,
.a4-setup-logmanage-limits { list-style: none; margin: 0; padding: 0; font-size: var(--a4-text-xs); }
.a4-setup-logmanage-archives li,
.a4-setup-logmanage-limits li { margin: 0 0 var(--a4-space-1); overflow-wrap: anywhere; }
.a4-setup-logmanage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-1); margin: 0 0 var(--a4-space-1); }
.a4-setup-logmanage-days { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-1); }
.a4-setup-logmanage-days .a4-input { width: 5.5rem; }
.a4-setup-logmanage-days label { font-size: var(--a4-text-xs); color: var(--a4-muted); }
.a4-setup-logmanage-plan code { overflow-wrap: anywhere; }

/* ---- w551b nav: the buttons of the log viewer's pages (setup/logs_nav.tpl), on a line of their own at the start ---- */
/* space above the row (from the heading) and below it (before the intro) alike; buttons on two lines keep a row gap */
.a4-setup-log-nav { margin: var(--a4-space-4) 0 var(--a4-space-4); }
.a4-setup-log-nav + .a4-setup-log-intro { margin-top: 0; }
.a4-setup-log-nav-list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--a4-space-3) var(--a4-space-2); margin: 0; padding: 0; list-style: none; }
.a4-setup-log-nav-list li { margin: 0; }
.a4-setup-log-nav-btn.is-current { box-shadow: inset 0 0 0 2px var(--a4-card), 0 0 0 2px var(--a4-accent); text-decoration: underline; text-underline-offset: 3px; }
@media (forced-colors: active) {
  .a4-setup-log-nav-btn.is-current { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* ---- w551c bundle: "Download all logs", its options and the warning of the unredacted choice, at the start ---- */
.a4-setup-logmanage-bundle { flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: var(--a4-space-2) var(--a4-space-3); margin: 0 0 var(--a4-space-4); }
.a4-setup-logmanage-bundle .a4-help { flex-basis: 100%; }
.a4-setup-logmanage-bundle-warn { flex-basis: 100%; margin: 0; }

/* ---- oauthadmin/*: the REST administration (applications and API keys, design:oauthadmin/*.tpl) ---------------- */
/* "Select all on this page" at the end of the list's heading, the box of each application card */
.a4-setup-oauth-all { margin-inline-start: auto; font-size: var(--a4-text-s); }
.a4-setup-oauth-select { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--a4-accent-strong); }
/* A client identifier or secret to copy: a framed value, selected whole with one click */
.a4-setup-oauth-value {
  display: block;
  padding: var(--a4-space-1) var(--a4-space-2);
  border: 1px solid var(--a4-line);
  border-radius: var(--a4-radius-s);
  background-color: var(--a4-soft);
  color: var(--a4-ink);
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
.a4-setup-oauth-reveal { margin-top: 2px; }
/* The key list: a value under another in one cell, the key's name, the revoke button at the row's end */
.a4-setup-oauth-line { display: block; margin-top: 2px; }
.a4-setup-oauth-key-name { display: block; margin-bottom: var(--a4-space-1); overflow-wrap: anywhere; }
.a4-setup-oauth-keys td { vertical-align: top; overflow-wrap: anywhere; }
.a4-setup-oauth-keys td:first-child { width: 34px; }
.a4-setup-oauth-keys td:first-child input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--a4-accent-strong); }
.a4-setup-oauth-keys .a4-setup-oauth-key-actions { text-align: end; white-space: nowrap; }
.a4-setup-oauth-keys tr.is-revoked > td,
.a4-setup-oauth-keys tr.is-expired > td { color: var(--a4-muted); }
/* On a narrow screen one block per key: the box beside it, every other cell under the one before with its label */
@media (max-width: 720px) {
  .a4-setup-oauth-keys thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a4-setup-oauth-keys tbody tr { display: grid; grid-template-columns: 34px minmax(0, 1fr); border-bottom: 1px solid var(--a4-line); }
  .a4-setup-oauth-keys tbody tr:last-child { border-bottom: 0; }
  .a4-setup-oauth-keys tbody td { display: block; grid-column: 2; border-bottom: 0; }
  .a4-setup-oauth-keys tbody td:first-child { grid-column: 1; grid-row: 1 / span 6; width: auto; }
  .a4-setup-oauth-keys td[data-label]::before { content: attr(data-label); display: block; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); letter-spacing: var(--a4-tracking); text-transform: uppercase; }
  .a4-setup-oauth-keys .a4-setup-oauth-key-actions { text-align: start; }
}

/* ---- setup/languages: Interface languages, the translation fallbacks (design:setup/languages.tpl) -------------- */
/* The interface coverage: a short bar before the percentage */
.a4-setup-languages-meter { display: inline-block; width: 64px; margin-inline-end: var(--a4-space-1); vertical-align: middle; }
/* The chain in a cell: the steps in a row, an arrow before each but the first */
.a4-setup-languages-chain { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-1); margin: 0; padding: 0; list-style: none; }
.a4-setup-languages-chain > li + li::before { content: "\2192"; margin-inline-end: var(--a4-space-1); color: var(--a4-muted); }
[dir="rtl"] .a4-setup-languages-chain > li + li::before { content: "\2190"; }
/* The steps of one locale, numbered, the rule under the target */
.a4-setup-languages-steps { margin: 0 0 var(--a4-space-4); padding-inline-start: var(--a4-space-5); }
.a4-setup-languages-steps > li { margin-bottom: var(--a4-space-2); }
.a4-setup-languages-steps .a4-meta { display: block; }
/* The locale of this siteaccess */
.a4-setup-languages-table tr.is-current > * { background-color: var(--a4-accent-soft); }
@media (forced-colors: active) {
  .a4-setup-languages-table tr.is-current > * { outline: 2px solid Highlight; outline-offset: -2px; }
}
.a4-setup-languages-problems { display: grid; gap: var(--a4-space-2); margin: 0 0 var(--a4-space-4); padding: 0; list-style: none; }
.a4-setup-languages-detail { margin-bottom: var(--a4-space-4); }

/* ---- graphql/playground: Setup > GraphQL, the playground (design:graphql/playground.tpl) ---------------------- */
/* The query and its variables beside the answer; one column on a narrow screen */
.a4-graphql-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a4-space-4); }
@media (max-width: 960px) {
  .a4-graphql-play { grid-template-columns: minmax(0, 1fr); }
}
.a4-graphql-play .a4-field textarea { font-family: var(--a4-mono); font-size: var(--a4-text-s); line-height: var(--a4-leading); }
.a4-graphql-query { min-height: 18em; }
.a4-graphql-variables { min-height: 5em; }
.a4-graphql-answer { min-height: 18em; }
/* The limits beside the response cache; one column on a narrow screen */
.a4-graphql-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a4-space-4); align-items: start; }
@media (max-width: 960px) {
  .a4-graphql-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- migration/recording: Setup > Migrations > Recording (design:migration/recording.tpl, recording_view.tpl) ---- */
/* My changes beside the site-wide window; one column on a narrow screen */
.a4-setup-recording-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a4-space-4); align-items: start; }
@media (max-width: 960px) {
  .a4-setup-recording-grid { grid-template-columns: minmax(0, 1fr); }
}
/* The steps a migration of a recording would have, numbered */
.a4-setup-recording-steps { margin: 0; padding-inline-start: var(--a4-space-5); }
.a4-setup-recording-steps > li + li { margin-top: var(--a4-space-2); }
/* The bar "Recording..." on every page of the administration while the user's changes are recorded
   (design:parts/exp_migration_recording_bar.tpl, an .a4-notice.is-bad.no-icon): the dot, the text and Stop in a row */
.a4-setup-recording-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a4-space-2) var(--a4-space-4); }
.a4-setup-recording-bar > p { margin: 0; }
.a4-setup-recording-bar > p + p { margin-top: 0; }
/* the dot and "Recording..." in a row: the dot has its size only in a flex parent */
.a4-setup-recording-bar > p:first-child { display: inline-flex; align-items: center; gap: var(--a4-space-2); }
.a4-setup-recording-bar form { display: flex; flex-wrap: wrap; gap: var(--a4-space-2); margin: 0; margin-inline-start: auto; }
.a4-setup-recording-bar .a4-dot { background-color: var(--a4-bad); box-shadow: 0 0 0 4px var(--a4-bad-bg); animation: a4-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .a4-setup-recording-bar .a4-dot { animation: none; }
}
@media (forced-colors: active) {
  .a4-setup-recording-bar .a4-dot { background-color: CanvasText; }
}
/* Setup > Static publishing (module staticpublish): repository addresses and folder paths are long words */
.a4-setup-publish .a4-meta,
.a4-setup-publish .a4-code,
.a4-setup-publish .a4-facts dd { overflow-wrap: anywhere; }
/* The publishes on staticpublish/history: below 760px each run is a block of labeled lines instead of eight columns */
.a4-setup-publish-runs td:nth-child(5) .a4-code { white-space: nowrap; }
@media (max-width: 760px) {
  .a4-setup-publish-runs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a4-setup-publish-runs, .a4-setup-publish-runs tbody, .a4-setup-publish-runs tr { display: block; width: 100%; }
  .a4-setup-publish-runs tr { padding: var(--a4-space-2) var(--a4-space-3); border-bottom: 1px solid var(--a4-line); }
  .a4-setup-publish-runs tr:last-child { border-bottom: 0; }
  .a4-setup-publish-runs td { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a4-space-1) var(--a4-space-2); padding: var(--a4-space-1) 0; border: 0; }
  .a4-setup-publish-runs td.a4-num { text-align: start; }
  .a4-setup-publish-runs td[data-label]::before { content: attr(data-label); flex: 0 0 7.5em; color: var(--a4-muted); font-size: var(--a4-text-xs); font-weight: var(--a4-weight-heading); }
}

/* staticpublish/target, step 1: the siteaccesses to publish fit the field in every language. The headers wrap at
   their spaces (IM STAMM), a siteaccess's address breaks anywhere, its folder never; the two choice columns stay narrow */
.a4-setup-sa-table th { white-space: normal; overflow-wrap: normal; vertical-align: bottom; }
.a4-setup-sa-table th:first-child,
.a4-setup-sa-table td:first-child,
.a4-setup-sa-table th:last-child,
.a4-setup-sa-table td:last-child { width: 1%; text-align: center; }
.a4-setup-sa-table td label .a4-meta { display: block; overflow-wrap: anywhere; }
.a4-setup-sa-table td .a4-code { white-space: nowrap; }

/* ---- migration/editor: Setup > Migrations > Editor (design:migration/editor.tpl) ---- */
/* The migration and its step form beside the check, the preview and the list; one column on a narrow screen */
.a4-setup-editor-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--a4-space-4); align-items: start; }
@media (max-width: 1100px) {
  .a4-setup-editor-grid { grid-template-columns: minmax(0, 1fr); }
}
/* YAML is written in a fixed-width font, tabs and long lines kept */
.a4-setup-editor-text { font-family: var(--a4-mono); font-size: var(--a4-text-s); white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 4; }
/* The YAML migrations to open */
.a4-setup-editor-files { margin: 0; padding: 0; list-style: none; }
.a4-setup-editor-files > li + li { margin-top: var(--a4-space-2); }

/* ---- setup/aliases: Setup > Image aliases (design:setup/aliases.tpl, aliases_setting_row.tpl) ---- */
.a4-setup-alias-tabs { margin: 0 0 var(--a4-space-4); }
.a4-setup-alias .a4-grid { margin: var(--a4-space-4) 0; }
/* Storage paths, run ids and addresses break anywhere instead of widening the table */
.a4-setup-alias-path { overflow-wrap: anywhere; word-break: break-word; }
/* The run form's groups: a legend as a label, no frame of their own */
.a4-setup-alias-fieldset { border: 0; padding: 0; margin: 0 0 var(--a4-space-4); min-width: 0; }
.a4-setup-alias-reason { max-width: 320px; }
/* The settings: the name and what it does beside the field */
/* The row header holds the name and a sentence: not the table head style (capitals, one line), or the sentence ran
   over the value and status columns */
.a4-setup-alias-settings th[scope="row"] { width: 40%; font-weight: normal; white-space: normal; text-transform: none; letter-spacing: normal; font-size: var(--a4-text-s); color: var(--a4-ink); overflow-wrap: anywhere; }
.a4-setup-alias-settings th[scope="row"] .a4-help { display: block; margin-top: var(--a4-space-1); color: var(--a4-muted); }
.a4-setup-alias-settings thead th { white-space: normal; }
.a4-setup-alias-settings td .a4-meta { display: block; }
.a4-setup-alias-settings textarea.a4-input { width: 100%; }
