/* Screen frame */
.el-screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s7) var(--s8); min-width: 0; }
.el-screen > * { min-width: 0; margin: 0; }
.el-screen--narrow { width: 100%; max-width: 34rem; margin-inline: auto; }
.el-screen p, .el-screen ul, .el-screen ol, .el-screen dl, .el-screen dd, .el-screen h1, .el-screen h2, .el-screen h3 { margin: 0; }
.el-btn { min-height: var(--tap); }
/* A link inside a sentence gets a 44 px tap area that does not move the lines. */
.el-link { padding-block: var(--s3); }
.mf-small .el-link { padding-block: var(--s4); }

/* Two columns on a laptop, one below 1024 px. Columns stretch to one height. */
.el-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); align-items: stretch; }
.el-col { display: grid; gap: var(--s6); align-content: stretch; min-width: 0; }
@media (max-width: 1023px) { .el-cols { grid-template-columns: minmax(0, 1fr); } }

/* Card: one outer border, nothing drawn inside */
.el-card { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s6) var(--inset); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.el-card > * { margin: 0; }
.el-card-foot { margin-top: auto; }

/* Page head: title, one line, one main action */
.el-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6); }
.el-head-text { display: grid; gap: var(--s2); min-width: 0; flex: 1 1 min(20em, 100%); overflow-wrap: anywhere; }
.el-head-text > * { margin: 0; }

/* Step layout: counter, bar, title, one line, content, one main action, one quiet link */
.el-step { display: grid; gap: var(--s6); }
.el-step-top { display: grid; gap: var(--s3); }
.el-step-top > * { margin: 0; }
.el-step-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s1); max-width: calc(var(--side) + var(--s7)); margin: 0; padding: 0; list-style: none; }
.el-step-bar > li { height: var(--s2); border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--panel); }
.el-step-bar > li[data-state="done"] { border-color: var(--text-2); background: var(--text-2); }
.el-step-bar > li[data-state="now"] { border-color: var(--accent-strong); background: var(--accent); }
.el-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
/* Finished step: one short row with its Done chip. */
.el-step-done { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--tap); padding: var(--s2) var(--inset); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.el-step-done > span:first-child { font-weight: 600; }
.el-step-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.el-step-stack { display: grid; gap: var(--s3); }
/* Numbered help steps, all open. */
.el-numbered { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; counter-reset: el-n; }
.el-numbered > li { display: grid; grid-template-columns: var(--s7) minmax(0, 1fr); gap: var(--s3); align-items: center; min-height: var(--s7); counter-increment: el-n; }
.el-numbered > li::before { content: counter(el-n); display: grid; place-items: center; width: var(--s7); height: var(--s7); border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-weight: 600; font-family: var(--mono); }

/* Notice and error: icon, short title, at most one line, optional action */
.el-notice { display: grid; grid-template-columns: var(--s6) minmax(0, 1fr); column-gap: var(--s3); row-gap: var(--s1); align-items: start; padding: var(--s4) var(--inset); border: 1px solid var(--line); border-left-width: var(--s1); border-radius: var(--radius); background: var(--paper); }
.el-notice::before { content: "i"; grid-row: 1 / span 3; display: grid; place-items: center; width: var(--s6); height: var(--s6); border-radius: 50%; background: var(--text); color: var(--panel); font-weight: 700; font-family: var(--mono); line-height: 1; }
.el-notice > * { grid-column: 2; margin: 0; min-width: 0; }
.el-notice-title { font-weight: 700; }
.el-notice-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.el-notice-list .el-link { display: inline-flex; align-items: center; min-height: var(--tap); padding-block: 0; }
.el-notice-action { margin-top: var(--s2); }
.el-notice--info { border-color: var(--line); background: var(--paper); }
.el-notice--wait { border-color: var(--accent-strong); background: var(--accent-soft); }
.el-notice--wait::before { content: ""; box-sizing: border-box; border: var(--s1) solid var(--accent-strong); border-right-color: transparent; background: transparent; animation: el-spin 1s linear infinite; }
.el-notice--ok { border-color: var(--green); background: var(--green-soft); }
.el-notice--ok::before { content: "\2713"; background: var(--green); color: var(--panel); }
.el-notice--warn { border-color: var(--accent-text); background: var(--accent-soft); }
.el-notice--warn::before { content: "!"; background: var(--accent-text); color: var(--panel); }
.el-notice--error { border-color: var(--danger); background: var(--danger-soft); }
.el-notice--error::before { content: "!"; background: var(--danger); color: var(--on-danger); }
.el-notice--error .el-notice-title { color: var(--danger); }
@keyframes el-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .el-notice--wait::before { animation: none; } }

/* Form field, and its error */
.el-form { display: grid; gap: var(--s4); }
.el-field { display: grid; gap: var(--s2); min-width: 0; }
.el-field > * { margin: 0; }
.el-field > label, .el-field > legend { font-weight: 600; padding: 0; }
.el-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.el-field--error { padding-left: var(--s3); border-left: var(--s1) solid var(--danger); }
.el-field-error { color: var(--danger); font-weight: 700; }
.el-field fieldset, fieldset.el-field { margin: 0; padding: 0; border: 0; min-width: 0; }
@media (max-width: 359px) { .el-field-pair { grid-template-columns: minmax(0, 1fr); } }

/* Tick box with its sentence: the whole row is the tap area. */
.el-tick { display: grid; grid-template-columns: var(--s6) minmax(0, 1fr); gap: var(--s3); align-items: start; min-height: var(--tap); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; }
.el-tick input { width: var(--s6); height: var(--s6); margin: 0; accent-color: var(--accent-strong); }

/* Summary box: title, facts rows, one total row */
.el-summary { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s6) var(--inset); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.el-summary > * { margin: 0; }
.el-summary-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s4) var(--inset); border-radius: var(--radius-sm); background: var(--paper); }
.el-summary-total > * { margin: 0; }
.el-summary-action { margin-top: auto; }
.el-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); align-items: stretch; }
@media (max-width: 759px) { .el-pair { grid-template-columns: minmax(0, 1fr); } }

/* Facts row: label left, value right, no lines */
.el-facts { display: grid; gap: var(--s3); margin: 0; }
.el-facts-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s4); }
.el-facts-row > dt { color: var(--text-2); }
.el-facts-row > dd { margin: 0; font-weight: 600; text-align: right; }
/* In a narrow box, a list with a long value stacks every row: label on its own line, value under it, left aligned. Short lists keep label left, value right. */
.el-facts--stack { container-type: inline-size; }
@container (max-width: 440px) {
  .el-facts--stack > .el-facts-row { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: var(--s1); }
  .el-facts--stack > .el-facts-row > dd { text-align: left; }
}

/* Groups, bullets and points */
.el-group { display: grid; gap: var(--s2); }
.el-group > * { margin: 0; }
.el-bullets { display: grid; gap: var(--s2); margin: 0; padding-left: var(--s5); }
.el-bullets > li::marker { color: var(--accent-strong); }
.el-points { display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.el-points > li { display: grid; gap: var(--s1); padding-left: var(--s4); border-left: var(--s1) solid var(--accent-strong); }
.el-points-title { color: var(--text); }
.el-points-line { color: var(--text-2); }

/* Choice card */
.el-choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); align-items: stretch; }
.el-choice-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.el-choice-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .el-choice-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .el-choice-row, .el-choice-row--4 { grid-template-columns: minmax(0, 1fr); } }
/* Six cards: three across on a laptop, two on a tablet, one on a phone. */
@media (max-width: 1023px) { .el-choice-row--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .el-choice-row--6 { grid-template-columns: minmax(0, 1fr); } }
/* Cards with a copy box: each card has exactly three children (title, one line, action). The cards of one row share their rows, so the copy boxes start and end level. */
.el-choice-row--copy > .el-choice { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: var(--s2); }
.el-choice-row--copy .el-choice-action { display: grid; margin-top: 0; }
.el-choice-row--copy .el-copy--long { grid-template-rows: 1fr auto; align-items: start; }
.el-choice { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding: var(--s4) var(--inset); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.el-choice > * { margin: 0; }
.el-choice-title { font-weight: 600; }
.el-choice-action { margin-top: auto; padding-top: var(--s2); }
/* A choice that is picked by a radio: the whole card is the label. */
.el-choice--pick { flex-direction: row; align-items: center; gap: var(--s3); min-height: var(--tap); padding-block: var(--s3); cursor: pointer; }
.el-choice--pick input { width: var(--s5); height: var(--s5); margin: 0; accent-color: var(--accent-strong); }
.el-choice--pick:has(input:checked) { border-color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-strong); }

/* Copy line */
.el-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s2) var(--s2) var(--s2) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.el-copy > code, .el-copy > p { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.el-copy--long { grid-template-columns: minmax(0, 1fr); padding: var(--s3); }
.el-copy--long > p { font-family: var(--sans); }
.el-copy--long .el-btn { justify-self: start; }
/* A long message to copy: one or two lines show, the full words stay in the markup and go to the clipboard. */
.el-copy--clip > p { font-family: var(--sans); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* The status line of a copy box (what the account script writes after a copy): the whole width of the box, not shown while empty. In a long box it sits above the button (the
   markup puts it there), so in a row of copy cards the boxes and their buttons stay level. */
.el-copy > .el-copy-status { grid-column: 1 / -1; font-family: var(--sans); }
.el-copy > .el-copy-status:empty { display: none; }

/* Status chip */
.el-chip { white-space: nowrap; }
.el-chip--done { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.el-chip--required { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-text); }
.el-chip--off { border-style: dashed; color: var(--text-2); }

/* Number tile */
.el-tile { display: grid; gap: var(--s1); align-content: start; padding: var(--s4) var(--inset); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.el-tile > * { margin: 0; }
.el-tile-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.el-tile-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .el-tile-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .el-tile-row, .el-tile-row--4 { grid-template-columns: minmax(0, 1fr); } }

/* Tab bar */
.el-tabs { display: flex; gap: var(--s1); max-width: 100%; width: fit-content; flex-wrap: wrap; padding: var(--s1); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
/* The gap below a tab row: in a screen or a stack it is the grid's gap (--s6); a row placed in a page of its own layout (Your company, Your emails) keeps the same gap as its margin. */
:not(.el-screen, .el-stack) > .el-tabs:not(:last-child) { margin-block-end: var(--s6); }
.el-tabs > a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; color: var(--text-2); }
.el-tabs > a:hover { color: var(--text); }
.el-tabs > a[aria-current="page"] { background: var(--text); color: var(--panel); }

/* Search */
.el-search { display: grid; gap: var(--s2); }
.el-search > label { font-weight: 600; }
/* The search of the cleaner admin's header (headerSearch in src/admin-parts.js, the only header that holds a data-header-search form, so these rules select it by that form and leave
   the owner header's own class to src/admin-parts.js alone): in the header's middle column, its label read out and not drawn (the field's words say the same), and on a
   phone a full-width row under the mark and the menu. */
.site-header > [data-header-search] { grid-column: 2; width: min(360px, 32vw); }
.site-header > [data-header-search] .el-search > label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) { .site-header > [data-header-search] { grid-column: 1 / -1; grid-row: 2; width: 100%; padding-bottom: var(--s3); } }
/* The page's name beside the mark is never cut (owner admin layout fixes, 1 Dec 2026): from 761 px the mark and the name take their whole width first, the menu its own, and the search the
   room between them, up to 360 px, so the search gives way and the name does not. The search stands at the menu's side of that room, so at one width its left edge and width are the same on
   every page whatever the name's length (it stood centred in the room before and moved 70 px from page to page). test/clean-admin-walk-layout.test.mjs walks every cleaner page at 390, 1280
   and 1440 and holds both. */
/* On a phone every field of an owner page is a finger's height (owner admin layout fixes, 1 Dec 2026): the month of the accountant's file on Payments to check was 27 px. */
@media (max-width: 760px) { .owner-console :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select) { min-height: var(--tap); } }
@media (min-width: 761px) {
  .site-header:has(> [data-header-search]) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-header > [data-header-search] { justify-self: end; width: min(360px, 100%); min-width: 0; }
}

/* Fold: a light box, a short title, a short body */
.el-folds { display: grid; gap: var(--s3); }
.el-fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.el-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap); padding: 0 var(--inset); cursor: pointer; font-weight: 600; list-style: none; }
.el-fold > summary::-webkit-details-marker { display: none; }
.el-fold > summary::after { content: ""; width: var(--s2); height: var(--s2); border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg) translateY(-2px); }
.el-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.el-fold-body { display: grid; gap: var(--s3); padding: 0 var(--inset) var(--s4); }
.el-fold-body > * { margin: 0; }

/* App row inside a card (logo, name, action) */
.el-app { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.el-app-name { flex: 1 1 auto; font-weight: 600; }

/* Parts 13 to 22 (drawn 29 Nov after the first build, appended so no rule above changes) */
/* 13. List row: title, small line, up to two chips, one action at the right edge, no lines between rows. A kind column keeps the rows' left edges level. */
.el-list { display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; min-width: 0; }
.el-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main action"; align-items: center; gap: var(--s2) var(--s4); min-width: 0; min-height: var(--tap); margin: 0; }
.el-list--kind > .el-list-row { grid-template-columns: calc(var(--s9) + var(--s7)) minmax(0, 1fr) auto; grid-template-areas: "kind main action"; }
.el-list-kind { grid-area: kind; align-self: start; min-width: 0; padding-top: var(--s1); }
.el-list-kind > .el-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.el-list-main { grid-area: main; display: grid; gap: var(--s1); min-width: 0; }
.el-list-main > * { margin: 0; }
.el-list-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); font-weight: 600; overflow-wrap: anywhere; }
.el-list-action { grid-area: action; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2); }
@media (max-width: 759px) {
  .el-list-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "action"; align-items: start; }
  .el-list--kind > .el-list-row { grid-template-columns: calc(var(--s9) + var(--s7)) minmax(0, 1fr); grid-template-areas: "kind main" ". action"; }
  .el-list-action { justify-content: flex-start; }
}

/* 14. Fold title with its current value: at the right on one line from 760 px, under the title below. */
.el-fold > summary:has(.el-fold-value) { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; column-gap: var(--s4); }
.el-fold-title { min-width: 0; }
.el-fold-value { min-width: 0; font-weight: 400; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 759px) {
  .el-fold > summary:has(.el-fold-value) { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s1); padding-block: var(--s2); }
  .el-fold > summary:has(.el-fold-value)::after { grid-column: 2; grid-row: 1 / span 2; }
  .el-fold-value { grid-column: 1; grid-row: 2; text-align: left; white-space: normal; }
}

/* 15. Board: equal columns, each with a heading and a count, cards at their own height. Two across from 760 to 1023 px, one below. */
.el-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--col-gap); align-items: start; min-width: 0; }
.el-board-col { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.el-board-col > * { margin: 0; }
.el-board-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap); }
.el-board-head > * { margin: 0; }
.el-board-count { flex: 0 0 auto; }
.el-board-col > .el-card { padding: var(--s4) var(--inset); gap: var(--s2); }
@media (max-width: 1023px) { .el-board { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .el-board { grid-template-columns: minmax(0, 1fr); } }

/* 16. Number tile that is a link, and the one now shown: dark fill, a thicker edge and a tick badge, so it differs by more than colour. */
a.el-tile { color: var(--text); text-decoration: none; min-height: var(--tap); }
a.el-tile:hover { border-color: var(--text-2); }
.el-tile[aria-current="page"] { position: relative; border-color: var(--text); background: var(--text); color: var(--panel); box-shadow: inset 0 0 0 1px var(--text); padding-right: calc(var(--inset) + var(--s7)); }
.el-tile[aria-current="page"] > *, .el-tile[aria-current="page"] .el-tile-name { color: var(--panel); text-decoration: none; }
.el-tile[aria-current="page"]::after { content: "\2713"; position: absolute; top: var(--s4); right: var(--inset); display: grid; place-items: center; width: var(--s6); height: var(--s6); border-radius: 50%; background: var(--panel); color: var(--text); font-weight: 700; font-family: var(--mono); line-height: 1; }

/* 17. Late chip: the error colour of el-notice--error. */
.el-chip--late { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }

/* 18. A row of boxes that hold folds: one column below 1024 px. */
@media (max-width: 1023px) { .el-choice-row--folds { grid-template-columns: minmax(0, 1fr); } }

/* 19. Numbered items with a title and one line, the number level with the title. */
.el-numbered--titled { gap: var(--s4); }
.el-numbered--titled > li { align-items: start; }
.el-numbered-text { display: grid; gap: var(--s1); min-width: 0; }
.el-numbered-text > * { margin: 0; }
.el-numbered-title { display: flex; align-items: center; min-height: var(--s7); }

/* 20. Two fixes. The round button of a picked choice keeps its size when the answer wraps; a tick or picked choice directly inside a field keeps its own padding and normal weight. */
.el-choice--pick input { flex: 0 0 auto; }
.el-choice--pick > span { min-width: 0; }
.el-field > .el-tick { padding: var(--s3); font-weight: 400; }
.el-field > .el-choice--pick { padding: var(--s3) var(--inset); font-weight: 400; }

/* 21. Quiet danger button (red words, no box, a red underline, a light red fill on hover), and a logo slot as the first child of el-app or el-choice. */
.el-btn.el-btn--danger-quiet { border-color: transparent; background: transparent; padding: 0 var(--s2); color: var(--danger); text-decoration: underline; text-decoration-color: var(--danger); text-underline-offset: 3px; }
.el-btn.el-btn--danger-quiet:hover { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.el-logo { flex: 0 0 auto; display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); font-weight: 700; font-family: var(--mono); line-height: 1; overflow: hidden; }
.el-logo > img, .el-logo > svg { width: var(--s6); height: var(--s6); }
.el-choice > .el-logo { margin-bottom: var(--s1); }
.el-choice--pick > .el-logo { margin-bottom: 0; }
.el-choice-action > .el-btn--danger-quiet:first-child, .el-actions > .el-btn--danger-quiet:first-child { margin-left: calc(var(--s2) * -1); }

/* 22. Table: a real table from 900 px of the wrap's own width, a block for each row below (title, then label and value for each cell, then the action). It never scrolls sideways. */
.el-table-wrap { container-type: inline-size; min-width: 0; }
.el-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.el-table th, .el-table td { padding: var(--s3) var(--s4); border: 0; text-align: left; vertical-align: middle; font-variant-numeric: tabular-nums; }
.el-table thead th { background: var(--bg); color: var(--text-2); font-weight: 600; white-space: nowrap; }
.el-table thead th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.el-table thead th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.el-table tbody th { font-weight: 600; }
.el-table-title { overflow-wrap: anywhere; }
.el-table-title > .el-chip { margin-left: var(--s2); vertical-align: middle; }
.el-table .el-table-action { text-align: right; white-space: nowrap; }
.el-table-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 899px) {
  .el-table, .el-table tbody, .el-table tr, .el-table th, .el-table td { display: block; }
  .el-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .el-table tbody { display: grid; gap: var(--s6); }
  .el-table tbody tr { display: grid; gap: var(--s2); }
  .el-table tbody th, .el-table tbody td { padding: 0; }
  .el-table tbody td[data-label] { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s4); font-weight: 600; }
  .el-table tbody td[data-label]::before { content: attr(data-label); color: var(--text-2); font-weight: 400; }
  .el-table .el-table-action { text-align: left; padding-top: var(--s1); }
}

/* Parts 23 to 25 (drawn 29 Nov, appended so no rule above changes) */
/* 23. A list whose rows are a short name and one short button keeps the button at the right edge at every width. */
.el-list--tight > .el-list-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main action"; align-items: center; }
.el-list--tight .el-list-action { justify-content: flex-end; }
/* 24. An even number of tabs shares two columns on a phone, so no tab sits alone on a line. */
@media (max-width: 759px) {
  .el-tabs--even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .el-tabs--even > a { justify-content: center; }
}
/* 25. A plain stack for the inside of a tab panel: the screen's gap, no padding. */
.el-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); min-width: 0; }
.el-stack > * { min-width: 0; margin: 0; }

/* Requests 31 to 39 (29 Nov, appended so no rule above changes) */
/* 31. A copy line of kind button: the button alone, no box; the words stay in the page out of sight (the site's sr class). */
.el-copy.el-copy--button { display: grid; justify-items: start; gap: var(--s2); padding: 0; border: 0; border-radius: 0; background: transparent; }
/* 33. The box for an answer of one's own shows only while its answer is picked. */
.el-choice-row:has(.el-other-pick):not(:has(.el-other-pick:checked)) + .el-field--other { display: none; }

/* Requests 40 to 49 (29 Nov, appended so no rule above changes) */
/* 40. A board card that opens something: its title link is stretched over the whole card, so the whole card is the tap area; the chips and lines stay plain text. */
.el-board-card { position: relative; }
.el-board-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
/* 41. The picked row of a list: a thick edge at its left and a light fill, so it differs by more than colour. */
.el-list-row--current { padding: var(--s2) var(--s3); border-left: var(--s1) solid var(--text); border-radius: var(--radius-sm); background: var(--paper); }
/* 43. A table row with two actions: side by side, wrapping when the row is narrow. */
.el-table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); }
@container (max-width: 899px) { .el-table-actions { justify-content: flex-start; } }
/* 46. A wider kind column, for kind words such as Client portal. */
.el-list--kind.el-list--kind-wide > .el-list-row { grid-template-columns: calc(var(--s9) + var(--s9) + var(--s4)) minmax(0, 1fr) auto; }
@media (max-width: 759px) { .el-list--kind.el-list--kind-wide > .el-list-row { grid-template-columns: calc(var(--s9) + var(--s9) + var(--s4)) minmax(0, 1fr); } }
/* 47. A side panel beside a list or a board: the main column wide, the panel the site's side column wide, the panel under the main column below 1024 px. */
.el-side { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--col-gap); align-items: start; min-width: 0; }
.el-side-main { display: grid; gap: var(--s6); min-width: 0; }
.el-side-main > * { min-width: 0; margin: 0; }
@media (max-width: 1023px) { .el-side { grid-template-columns: minmax(0, 1fr); } }

/* Requests 50 to 57 (30 Nov, appended so no rule above changes) */
/* 54. A column of cols that keeps its own height beside a taller one. */
.el-col--own { align-self: start; }
/* 53. A status word in a table cell, in the colours of the chip of the same state; a narrow column as wide as its words in the real table; a number column aligned right; the head row in small capitals. */
.el-state { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.el-state--done { color: var(--green); }
.el-state--required { color: var(--accent-text); }
.el-state--off { color: var(--text-2); }
.el-state--late { color: var(--danger); }
.el-table .el-table-num { text-align: right; }
@container (min-width: 900px) { .el-table .el-table-narrow { width: 1%; white-space: nowrap; } }
.el-table--caps thead th { font-family: var(--mono); font-variant-caps: all-small-caps; letter-spacing: .06em; }

/* Requests 59 and 60 (30 Nov, appended so no rule above changes) */
/* 60. A value of a list of facts breaks anywhere when it has no place to break, such as a long sign-in address, so it stays inside its card on a phone, in a row and stacked. */
.el-facts-row > dd { overflow-wrap: anywhere; min-width: 0; }

/* The gaps of 30 Nov (setup-polish-gaps, appended so no rule above changes) */
/* The status line of a copy row (a list row with its words and a Copy button, f31 Ask next) is hidden while empty, as a copy line's (.el-copy > .el-copy-status:empty). The drawing has no
   status line in a list row, so this is that nearest rule. Every other gap (the step as the screen, the heading row, the kicker, the logo tile, the clipped long line) is drawn by rules above
   or by the site's own classes (mf-h1, mf-h3, mf-kicker, mf-label, account-tile). */
.el-list-main > .el-copy-status:empty { display: none; }

/* The gaps-b of 30 Nov (appended so no rule above changes) */
/* A stepper's minus and plus (F9's users) are at least as wide as they are tall, the 44 px tap size of the brief: the drawing draws them as plain buttons, which a sign as narrow as
   "+" leaves about 42 px wide. Their look stays the drawn button's. Every other gap-b part (a field in a summary, bullets before facts, a heading in the h3 look, links in bullets, a
   choice's or a value's attributes) is drawn by the rules above. */
.el-field-pair > .el-actions > .el-btn { min-width: var(--tap); }

/* The findability audit of 1 Dec, N12 (appended so no rule above changes) */
/* On a phone the site hides the address in the account menu's button, which left a lone letter with Sign out inside it. A cleaner screen's header (signedInHeader in src/pages.js with
   the clean option) puts the word Account after the letter; it shows only where the address is hidden (760 px and less, the site's own phone width), so a laptop's button is as before. The
   button keeps the site's 44 px height, and the right padding matches the letter's side. */
.el-account-word { display: none; }
@media (max-width: 760px) { .el-account-word { display: inline; padding-right: 6px; } }
