/* WCS web app (docs/08): mobile first from 360 px, logical properties for right-to-left
   languages (I18N-MECH-4), light and dark following the system (WEB-UX-7), visible focus,
   contrast of at least 4.5:1 (WCAG 2.1 AA). No external fonts or images (WEB-UX-5).
   The look (WEB-UX-8): a pale sky page, white cards with soft borders and large corners, deep navy
   text and buttons, one calm green for "you're OK", amber only for warnings. On a wide screen a
   sidebar holds the wordmark and the sections; on a phone they stack above the page.
   --line is for the cards' soft borders; --field-line, for the borders of fields and outline
   buttons, keeps 3:1 against the card and the page in both themes (WCAG 2.1 SC 1.4.11; the
   review's V12). --button fills the ordinary buttons and --big the one big action (I'm OK, "I'll
   check on {name}"): in the dark theme the ordinary ones are the dimmer (D44). --warn-line is the
   amber edge of every warning, 3:1 against the page (D44). The focus ring is the ink, never the
   big action's colour (the design review's DX11). */
:root {
  --page: #eef3fb; --card: #ffffff; --ink: #13213c; --muted: #4a5874; --line: #d3deef; --field-line: #76869f;
  --primary: #1d3a6b; --on-primary: #ffffff; --button: #1d3a6b; --on-button: #ffffff; --big: #2f6fd0; --on-big: #ffffff;
  --accent: #1f5bb8; --soft: #e4ecf9; --soft-ink: #1d3a6b;
  --ok-bg: #e2f4ea; --ok-ink: #1b6e47; --info-bg: #e4ecf9; --info-ink: #13213c;
  --warn-bg: #fff4d6; --warn-ink: #5c3d00; --warn-line: #b7791f; --danger: #b42318; --on-danger: #ffffff;
  --shadow: 0 1px 2px rgb(19 33 60 / 0.05), 0 6px 20px rgb(19 33 60 / 0.06);
  --radius: 20px; --gap: 1.25rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1524; --card: #16203a; --ink: #e9eef8; --muted: #a9b5cc; --line: #2b3a5a; --field-line: #6a7ea6;
    --primary: #9cbcff; --on-primary: #0e1524; --button: #466aa8; --on-button: #ffffff; --big: #7ab0ff; --on-big: #0e1524;
    --accent: #a4c2ff; --soft: #1f2d4d; --soft-ink: #d3e0ff;
    --ok-bg: #12301f; --ok-ink: #8ad9ad; --info-bg: #1f2d4d; --info-ink: #e9eef8;
    --warn-bg: #3a2f12; --warn-ink: #ffe3a1; --warn-line: #c79a3a; --danger: #f97066; --on-danger: #1a0a08;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The type scale (WEB-UX-8, D43): body 17 px (in rem, so the browser's text size counts, DX12),
   secondary text 16 px, section headings 22 px, page headings 28 px, Home's state 28-32 px and its
   greeting 28-40 px. */
body { margin: 0; font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: var(--ink); background: var(--page); }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; margin-block: 0.25rem 1rem; text-wrap: balance; }
h2 { font-size: 1.375rem; line-height: 1.3; margin-block: 1.75rem 0.75rem; text-wrap: balance; }
/* A heading's long word (Russian "Конфиденциальность" at 28 px) is hyphenated where the browser
   knows the language, else broken, never wider than the phone (the QA iteration). */
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
/* A heading that starts with its icon: the icon hangs, every line starts under the text, and the
   first line is filled before the next (the screenshot review's F4: "Message / for Anna"). */
h1.hang { padding-inline-start: 1.4em; text-indent: -1.4em; text-wrap: pretty; }
p, label, li, summary, legend { overflow-wrap: anywhere; }
p { margin-block: 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* A notice the page opens at (tabindex="-1", DW10) is read, not operated: no ring. */
.notice[tabindex="-1"]:focus { outline: none; }
/* Time and date fields take the focus in their inner parts (the segments, then the picker icon,
   where the field itself no longer matches :focus): the field shows the ring while any part of it
   has the focus. */
input[type=time]:focus-within, input[type=date]:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 1rem; inset-block-start: 1rem; background: var(--card); padding: 0.5rem; z-index: 2; }
.dev { margin: 0; padding: 0.5rem 1rem; background: var(--warn-bg); color: var(--warn-ink); font-size: 1rem; text-align: center; }

/* The frame: the sidebar (wordmark, next check, sections) and the content. */
.side { padding: 0.75rem 1rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.shell:not(.with-nav) .side { max-inline-size: 44rem; margin-inline: auto; padding-block-start: 1.25rem; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; text-decoration: none; color: var(--primary); min-block-size: 44px; }
.mark { inline-size: 1.75rem; block-size: 1.75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The tagline under the wordmark on the sign-in page and the invitation, a newcomer's first pages
   (the design review's DW22). */
.tagline { flex-basis: 100%; margin: 0; color: var(--muted); }
.next { color: var(--muted); font-size: 1rem; text-align: end; }
.nav { display: flex; gap: 0.375rem; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: 0.3rem 1rem 0.5rem;
  /* The row scrolls on a phone: its ends fade, so a cut section reads as "more this way" (DX17). */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); min-block-size: 44px; font-weight: 500; }
.nav a:hover { border-color: var(--accent); }
.nav a[aria-current] { background: var(--button); color: var(--on-button); border-color: var(--button); font-weight: 700; }
.ic { inline-size: 1.25rem; block-size: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* A text's icon, where its copy-deck text starts with an emoji (WEB-UX-8): the one set's lines,
   the size and the colour of the words, before them in either direction. */
.ti { display: inline-block; inline-size: 1em; block-size: 1em; flex: none; vertical-align: -0.15em; margin-inline-end: 0.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.content { min-inline-size: 0; }
.zone-note { max-inline-size: 44rem; margin: 0.75rem auto 0; padding-inline: 1rem; }
/* A page is one card on the sky, padded as Home's cards are (D43); the home page lays out its own
   cards. The last block before the scripts adds no space of its own under it (DW17), where the
   browser knows :nth-last-child(n of S) (Chrome 111, Safari 9, Firefox 113); elsewhere the card
   keeps that block's margin, nothing more. */
main { max-inline-size: 44rem; margin: 1rem auto; padding: 1.25rem; }
main:not(.wide) { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: 1rem; }
main:not(.wide) > :nth-last-child(1 of :not(script, noscript)), main:not(.wide) > :nth-last-child(1 of :not(script, noscript)) > :last-child { margin-block-end: 0; }
main.wide { max-inline-size: 72rem; padding: 0 1rem; display: flex; flex-direction: column; gap: var(--gap); }
.back { display: inline-flex; align-items: center; gap: 0.25rem; margin-block-end: 0.5rem; padding-block: 0.5rem; padding-inline: 0 0.75rem; min-block-size: 44px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.foot { max-inline-size: 44rem; margin-inline: auto; padding: 1rem 1rem 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; color: var(--muted); font-size: 1rem; }
/* Home's notes and footer keep the page's one left edge (DW15). */
.home-page .zone-note, .home-page .foot { max-inline-size: 72rem; }
/* The language form is one row: the list gives way to its label and button, which keep their
   words (BB-A8: "Change" had dropped onto its own line under "Português (Brasil)"). */
.lang { display: flex; flex-wrap: nowrap; gap: 0.5rem; align-items: center; margin: 0; min-inline-size: 0; max-inline-size: 100%; }
@media (min-width: 64rem) {
  .with-nav { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-block-size: 100vh; }
  .with-nav .side { padding: 1.5rem 1rem; gap: 1.5rem; background: var(--card); border-inline-end: 1px solid var(--line); }
  .with-nav .top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .with-nav .next { text-align: start; padding: 0.625rem 0.75rem; border-radius: 12px; background: var(--soft); color: var(--soft-ink); }
  .with-nav .nav { flex-direction: column; gap: 0.25rem; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .with-nav .nav a { border: 0; background: transparent; border-radius: 12px; padding: 0.625rem 0.75rem; }
  .with-nav .nav a:hover { background: var(--soft); }
  .with-nav .nav a[aria-current] { background: var(--button); color: var(--on-button); }
  .with-nav .content { padding-inline: 1.5rem; }
  .with-nav main { margin-block: 1.5rem 1rem; }
  main:not(.wide) { margin-inline: auto; padding: 2rem; }
  .with-nav main.wide { margin-block-start: 1.5rem; padding: 0; }
  .with-nav .home-page .zone-note, .with-nav .home-page .foot { padding-inline: 0; }
}

/* Controls */
select, button, input { font: inherit; color: inherit; }
select, input { padding: 0.55rem 0.7rem; border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); max-inline-size: 100%; min-block-size: 44px; }
label { min-block-size: 32px; }
/* Native controls in every engine (the QA iteration; an iPhone showed black radios and grey
   selects in the dark theme, and a time field wider than its card): drawn here from the theme's
   tokens, with no image (CSP img-src 'self'). */
input[type="radio"], input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; padding: 0;
  border: 2px solid var(--field-line); background: var(--card); display: inline-grid; place-content: center; cursor: pointer;
  min-block-size: 0; inline-size: 1.25rem; block-size: 1.25rem; vertical-align: middle; accent-color: var(--primary); }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"]:checked { border-color: var(--primary); box-shadow: inset 0 0 0 0.25rem var(--card); background: var(--primary); }
input[type="checkbox"]:checked { border-color: var(--primary); background: var(--primary); }
input[type="checkbox"]:checked::before { content: ""; inline-size: 0.35rem; block-size: 0.65rem; margin-block-start: -0.15rem;
  border: solid var(--on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
select { -webkit-appearance: none; appearance: none; padding-inline-end: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
/* Right to left the arrow moves to the left edge, the end of the line, where padding-inline-end
   already keeps its room, with its two halves in the same order, left half first, so that it still
   points down (the QA iteration: swapped, they drew "^^", and the room went to the right). */
[dir="rtl"] select { background-position: 0.9rem 55%, 1.25rem 55%; }
input[type="time"], input[type="date"] { -webkit-appearance: none; appearance: none; min-inline-size: 0; box-sizing: border-box; display: block; }
input[type="time"]::-webkit-date-and-time-value, input[type="date"]::-webkit-date-and-time-value { text-align: start; min-block-size: 1.5em; }
button { padding: 0.6rem 1.25rem; border: 1px solid var(--button); border-radius: 12px; background: var(--button); color: var(--on-button); cursor: pointer; min-block-size: 48px; font-weight: 600; }
button:hover { filter: brightness(1.1); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border: 1px solid var(--button); border-radius: 12px; background: var(--button); color: var(--on-button); text-decoration: none; min-block-size: 48px; font-weight: 600; text-align: center; }
.secondary, button.secondary, .button.secondary { background: var(--card); color: var(--primary); border: 1px solid var(--primary); }
.button.quiet, button.quiet { background: transparent; color: var(--accent); border-color: transparent; }
/* A form's column is a grid, not a flex column: as a flex item, a fieldset is sized by WebKit with
   its legend counted twice, which leaves an empty band under its last option (the QA iteration). */
.stack { display: grid; gap: 0.75rem; justify-items: start; margin-block-end: 1.25rem; }
.stack > input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .stack > select { inline-size: 100%; max-inline-size: 28rem; }
.stack > p { margin-block-end: 0; }
/* A label sits with its own field, apart from the field above it, one step heavier than the text
   (D43, DW5); a legend likewise. Radio and box labels sit in fieldsets and keep their targets. */
.stack > label { min-block-size: 0; font-weight: 600; margin-block: 0.5rem -0.375rem; }
.stack > input[type="hidden"] + label { margin-block-start: 0; }
/* A legend is as wide as its words: WebKit stretched it over the fieldset's line, and the box's top
   edge was missing after it (BB-A1). */
fieldset > legend { font-weight: 600; inline-size: fit-content; max-inline-size: 100%; }
/* On a phone, the buttons of a form column span it, capped like its fields (D43, DW9); on a wide
   screen they are as wide as their words. */
@media (max-width: 40rem) {
  .stack > button, .stack > .button, .stack > form > button { inline-size: 100%; max-inline-size: 28rem; }
  .stack > form { justify-self: stretch; }
  /* So do the buttons of a group, stacked one under another (Home's, the files' row), and a
     section's one action: one width, not each its words' (BB-A5). Quiet text actions keep theirs. */
  .actions > form, .actions > form > button, .test-alert form > button, .actions > button:not(.quiet), .actions > .button:not(.quiet),
  .row:not(.tools) > button, .row:not(.tools) > .button { inline-size: 100%; }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; }
.actions:empty { display: none; }
.card:not(.state) > .actions { justify-content: flex-start; }
.notice { padding: 0.75rem 1rem; border-radius: 14px; background: var(--info-bg); color: var(--info-ink); border: 1px solid var(--line); }
/* A warning is amber with an amber edge, in both themes (D44, DW6): apart from a notice by more
   than its hue. */
.warn { padding: 0.75rem 1rem; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); }
.warn, .next.alert { border: 1px solid var(--warn-line); border-inline-start-width: 4px; }
.next.alert, .with-nav .next.alert { color: var(--warn-ink); background: var(--warn-bg); font-weight: 600; text-align: start; padding: 0.5rem 0.75rem; border-radius: 12px; }
/* stylelint-disable-next-line no-descending-specificity -- a warning's link is never in the nav */
.warn a { color: inherit; font-weight: 600; }
/* An open alert's line leads to its page: a plain sentence with a chevron, not bold underlined
   text (D42, DW1). */
.warn a.alert-line { font-weight: 400; text-decoration: none; }
.warn a.alert-line:hover { text-decoration: underline; }
.alert-line .ic { display: inline-block; vertical-align: -0.25em; margin-inline-start: 0.25rem; }
[dir="rtl"] .back .ic, [dir="rtl"] .more .ic, [dir="rtl"] .alert-line .ic { transform: scaleX(-1); }
div.warn > p { margin-block: 0 0.75rem; }
div.warn > :last-child { margin-block-end: 0; }
/* A notice of two paragraphs (the message saved, and what comes next: BB-C6). */
div.notice { margin-block-end: 1rem; }
div.notice > p { margin-block: 0 0.5rem; }
div.notice > p:last-child { margin-block-end: 0; }
main.wide .warn p { max-inline-size: 70ch; }
.lead { font-weight: 700; }
.alert-text { margin-block-end: 1rem; }
.alert-text .lead { font-size: 1.15rem; }
.alert-text .checking { font-weight: 600; }
/* The alert's one action, the big button, with room around it (D42, DW3). */
form.ack { margin-block: 1.5rem; }
.warn form.ack { margin-block: 0.75rem 0; }
/* The advice under the alert: a heading and its steps, each wrapped line under its own text (DW3).
   The numbers are the copy deck's. */
.guidance { margin-block-end: 1.5rem; }
/* stylelint-disable-next-line no-descending-specificity -- the advice is never a warning's own paragraph */
.guidance > p { margin-block-end: 0.5rem; }
ul.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
ul.steps li { padding-inline-start: 1.4em; text-indent: -1.4em; }
.status:empty { display: none; }
.list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.75rem; }
div.warn + .list { margin-block-start: 1rem; }
/* stylelint-disable-next-line no-descending-specificity -- the alert's steps are never a list */
.list li { padding-block-end: 0.75rem; border-block-end: 1px solid var(--line); }
.list li:last-child { border-block-end: 0; }
/* A quiet action in a list starts at the text column, as a text action (DW12). */
.list button.quiet { padding-inline: 0; text-align: start; min-block-size: 44px; }
/* A person in a list: initials in a round avatar, the same row on Home, People and People I help
   (DW14, DX9). */
.list li.person { display: flex; align-items: flex-start; gap: 0.75rem; }
.list li.person > div { flex: 1 1 10rem; min-inline-size: 0; }
/* Account's groups: the settings, the pages under Account, then the data and leaving (DW13). */
.group { margin-block-start: 1.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); }
a.row-link { display: flex; justify-content: space-between; inline-size: 100%; }
.muted { color: var(--muted); font-size: 1rem; }
form.inline { display: inline; margin-inline-start: 0.5rem; }
.list li form.inline { display: block; margin: 0.5rem 0 0; }
input#code { font-size: 1.4rem; letter-spacing: 0.3em; inline-size: 9em; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.line { font-size: 1.1rem; margin-block-end: 0.5rem; }
form.ok { margin-block: 1.5rem; }
button.big { inline-size: 100%; min-block-size: 4.5rem; font-size: 1.5rem; font-weight: 700; border-radius: 16px; background: var(--big); border-color: var(--big); color: var(--on-big); }
.warn button.big { max-inline-size: 32rem; }
/* I'm OK is the large button only while a check waits; otherwise a calm one (decision D22). */
button.calm { inline-size: 100%; }
details.help { margin-block-start: 2rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
details.help summary { cursor: pointer; font-weight: 700; padding-block: 0.6rem; list-style: none; }
/* The lifebuoy is its mark: no browser triangle beside it (the screenshot review's F2). */
details.help summary::-webkit-details-marker { display: none; }
button.danger { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem 0.75rem 0.75rem; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; inline-size: 100%; }
.stack > fieldset { max-inline-size: 28rem; }
fieldset.sub { border: 0; padding: 0; padding-inline-start: 1.75rem; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1rem; }
fieldset.sub legend { padding: 0; margin-block-end: 0.25rem; }
label.sub { padding-inline-start: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* A sub-field sits under the option it belongs to (DW16). */
fieldset > input[type="date"] { margin-inline-start: 1.75rem; max-inline-size: calc(100% - 1.75rem); }
/* A cadence's own fields show only under it (the review's V21); without :has() they all show. */
fieldset.cadence:has(input[value="dn"]:not(:checked)) .days, fieldset.cadence:has(input[value="wd"]:not(:checked)) .weekdays { display: none; }
/* A long radio or box label wraps under its text, not under the control (V27). */
/* stylelint-disable-next-line no-descending-specificity -- a fieldset's labels are never a form column's own */
fieldset label:has(> input[type="radio"]), fieldset label:has(> input[type="checkbox"]) { display: grid; grid-template-columns: auto 1fr; column-gap: 0.5rem; align-items: start; }
/* stylelint-disable-next-line no-descending-specificity -- an input in a label is never a form column's own */
fieldset label:has(> input[type="radio"]) > input, fieldset label:has(> input[type="checkbox"]) > input { margin: 0.15rem 0 0; }
.test-alert { margin-block-start: 2rem; padding-block-start: 0.5rem; border-block-start: 1px solid var(--line); }
[aria-invalid="true"] { outline: 3px solid var(--danger); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
/* A disclosure's summary is a full target; open, its question is framed with its button (DW19). */
details.confirm { margin-block-start: 0.5rem; }
details.confirm summary { cursor: pointer; color: var(--accent); min-block-size: 44px; padding-block: 0.5rem; }
details.confirm[open] { margin-inline: -0.5rem; padding: 0 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 14px; }
details.confirm.danger[open] { border-color: var(--danger); }
input.link { inline-size: 100%; font-family: ui-monospace, monospace; font-size: 0.9rem; }
textarea { font: inherit; color: inherit; inline-size: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--field-line); border-radius: 12px; background: var(--card); }
.qr-box { max-inline-size: 16rem; margin-block-end: 1.25rem; }
svg.qr { display: block; inline-size: 100%; block-size: auto; }
.hint { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
blockquote.message { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border-radius: 14px; background: var(--soft); color: var(--soft-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
/* A person's own text takes each paragraph's direction from its first letters, whatever the page's:
   an English message on an Arabic page ends with its full stop on the right (the QA iteration). */
blockquote.message, textarea { unicode-bidi: plaintext; }
ul.files { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.75rem; }
/* stylelint-disable-next-line no-descending-specificity -- the files are never a list */
ul.files li { overflow-wrap: anywhere; }
img.att { display: block; max-width: 100%; height: auto; margin-bottom: 0.25rem; border-radius: 8px; }
ul.files audio { display: block; width: 100%; max-width: 28rem; margin-bottom: 0.25rem; }
/* A sample command wraps inside its card rather than hiding its end (BB-A11). */
pre.code { overflow-x: auto; padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; font-size: 0.85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.url { overflow-wrap: anywhere; }
ul.deliveries { list-style: none; padding: 0; margin: 0.5rem 0; font-size: 1rem; }

/* The home page (WEB-UX-8): the banner, the main card with the one main action, the cards beside.
   Below 64rem the picture is left out, so that I'm OK is inside a phone's first screen (D22); while
   an alert is on, the picture and the tagline are left out at every width (D47, DW21). */
.hero { display: flex; flex-direction: column; gap: 0.75rem; }
.hero img { display: none; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin: 0; }
/* stylelint-disable-next-line no-descending-specificity -- the greeting is never in a warning */
.hero p { margin: 0.25rem 0 0; font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.home { display: grid; gap: var(--gap); align-items: start; }
.col { display: grid; gap: var(--gap); min-inline-size: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; min-inline-size: 0; }
.card > h2:first-child { margin-block-start: 0; }
.card > :last-child { margin-block-end: 0; }
.state { text-align: center; }
.state .title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2rem); margin-block: 0.5rem; }
.state .line { font-size: 1.2rem; font-weight: 600; }
.state .title ~ .line { font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.state .line.next-check { color: var(--ok-ink); background: var(--ok-bg); border-radius: 14px; padding: 0.75rem 1rem; font-weight: 600; margin-block-start: 1rem; }
.state form.ok { margin-block: 1.25rem 0.75rem; }
.state details.help { text-align: start; margin-block-start: 1.25rem; }
.badge-ok { display: inline-grid; place-items: center; inline-size: 4rem; block-size: 4rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); }
.badge-ok svg { inline-size: 2.25rem; block-size: 2.25rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.people { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
/* stylelint-disable-next-line no-descending-specificity -- the people are never the alert's steps */
.people li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
/* One avatar colour, the soft blue: never a status colour (D44). */
.avatar { display: inline-grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; flex: none; border-radius: 50%; background: var(--soft); color: var(--soft-ink); font-weight: 700; }
.avatar svg { inline-size: 1.5rem; block-size: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.avatar.waiting { background: transparent; border: 1px dashed var(--field-line); color: var(--muted); }
.people li > .avatar + span { flex: 1 1 10rem; min-inline-size: 0; }
.more { display: inline-flex; align-items: center; gap: 0.25rem; min-block-size: 44px; font-weight: 600; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  /* The daytime picture is dimmed to the night page (DW8). */
  .hero img { filter: brightness(0.85); }
}
@media (min-width: 64rem) {
  /* The greeting on the picture's sky: fixed navy on the light sky, in both themes. */
  .hero:not(.urgent) { position: relative; overflow: hidden; border-radius: 24px; background: #a9c8fb; min-block-size: 13rem; }
  .hero:not(.urgent) img { display: block; position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 45%; }
  .hero:not(.urgent) .hero-text { position: relative; padding: 2rem 2.25rem 4rem; color: #13213c; }
  .hero:not(.urgent) p { color: #13213c; }
  .home { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .card { padding: 2rem; }
}
[hidden] { display: none !important; }

/* The Channels page (docs/08 §3): a channel's changes in a row under it; destructive disclosures
   in the danger ink, apart from links (the review's V27). */
.tools { margin-block-start: 0.5rem; }
.tools form { margin: 0; }
details.confirm.danger summary { color: var(--danger); }
ul.links { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.5rem; }

/* The language form of the signed-out pages: a quiet footer control (DW11). */
/* stylelint-disable-next-line no-descending-specificity -- the language form is no form column */
.lang label { min-block-size: 0; }
/* The list gives way to the label and the button, which keep their words (BB-A8). */
.lang select { flex: 1 1 8rem; min-inline-size: 0; }
.lang button { min-block-size: 44px; padding: 0.4rem 0.9rem; font-weight: 500; background: transparent; color: var(--ink); border-color: var(--field-line); }
/* Why a field was refused, under it (docs/08 Checks, the manual test session's T07 F1). */
.field-reason { margin: 0.25rem 0 0; color: var(--danger); font-weight: 600; }

/* A press on its way (send.js, WEB-SEND-1): the button waits, dimmed, and cannot be pressed again. */
form[aria-busy="true"] button { cursor: progress; opacity: 0.65; }
form[aria-busy="true"] button:hover { filter: none; }
#private-page { min-inline-size: 0; align-items: stretch; }
#private-page > section { min-inline-size: 0; }
#private-page textarea, #private-page input[type="password"] { box-sizing: border-box; inline-size: 100%; max-inline-size: 100%; }
#private-page pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-family: inherit; }
#private-page button { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
#private-status:empty { display: none; }
