/* The founder's cards (founder-cards.js, M8-B9): Today's pages, one card a child, the Engine fold. */
.founder #deskCards { display: grid; gap: 28px; margin-bottom: 24px; }
.founder #deskCards[hidden] { display: none; }
.founder[data-desk-view="cards"] #folders { display: none; }
.founder[data-desk-view="cards"] #fdBack { display: none; }
.founder[data-desk-view="cards"] .fd-layout { display: none; }
.dc-section { display: grid; gap: 8px; min-width: 0; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.dc-row { display: grid; grid-template-columns: minmax(140px, 1.3fr) minmax(120px, 1.5fr) minmax(130px, .9fr) auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--desk-rule); min-width: 0; }
.dc-who { display: grid; gap: 2px; min-width: 0; }
.dc-node { min-width: 0; overflow-wrap: anywhere; }
.dc-reworded-row { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.dc-notes-week { margin: 0 0 6px; overflow-wrap: anywhere; }
.dc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-acts .tool { min-height: 40px; }
.dc-acts .tool:disabled { opacity: .55; cursor: not-allowed; }
.dc-chip { display: inline-block; padding: 2px 8px; border: 1px solid var(--desk-rule); border-radius: 4px; font: 500 12px/1.5 var(--sans); white-space: nowrap; }
.dc-chip[data-status="waiting"] { border-color: #d9a441; }
.dc-chip[data-status="approved"] { border-color: var(--moss, #2f6b4f); color: var(--moss, #2f6b4f); }
.dc-chip[data-status="tagged"] { border-color: var(--oxblood); color: var(--oxblood); }
.dc-tag { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; padding-top: 8px; }
.dc-tag label { display: grid; gap: 4px; font: 500 12px/1.4 var(--sans); color: var(--desk-muted); }
.dc-tag input { min-width: min(320px, 100%); min-height: 40px; }
.dc-tag select { min-height: 40px; }
.dc-family { display: grid; gap: 10px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--desk-rule); margin-bottom: 20px; }
.dc-family-name { margin: 0; font: 600 16px/1.3 var(--sans); }
.dc-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.dc-card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 16px; border: 1px solid var(--desk-rule); border-radius: 6px; background: var(--paper, #fff); }
.dc-card:has(iframe) { grid-column: 1 / -1; }
.dc-card > [data-card-body] { display: grid; gap: 10px; min-width: 0; }
.dc-name { margin: 0; font: 600 18px/1.3 var(--sans); }
.dc-label { display: block; font: 600 12px/1.4 var(--sans); color: var(--desk-muted); }
.dc-line .dc-label { display: inline; margin-right: 6px; }
.dc-today { display: grid; gap: 6px; min-width: 0; }
.dc-title, .dc-line { margin: 0; overflow-wrap: anywhere; font: 400 15px/1.5 var(--sans); }
.dc-title { font-weight: 600; }
.dc-who b { font: 600 15px/1.4 var(--sans); }
.dc-card .dc-node { margin: 0; }
.dc-player { display: grid; gap: 8px; min-width: 0; }
.dc-player header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-player iframe { width: 100%; height: min(78vh, 760px); border: 1px solid var(--desk-rule); border-radius: 6px; background: #fff; }
.dc-engine > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 600 14px/1.4 var(--sans); }
.dc-lane { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font: 400 14px/1.5 var(--sans); }
/* Today's pages under each family folder: that family's rows of the list, two columns, the presses under them. */
.dc-family-pages { display: grid; gap: 4px; min-width: 0; }
.dc-family-pages:empty { display: none; }
.dc-family-pages .dc-label { margin: 0; }
.dc-family-pages .dc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dc-family-pages .dc-row > .dc-acts { grid-column: 1 / -1; }
/* The folders and the pane (founder-book-pane.js): the desk's rules and sizes. Beside each other from 1100 wide; a player on the pane takes the page's whole width, one under a family's rows leaves the two columns standing. */
.dv-layout { display: grid; gap: 24px; min-width: 0; }
.dv-folders, .dv-pane { min-width: 0; }
.dv-pane { container-type: inline-size; outline: none; }
.dv-pane .dc-card { margin: 0; }
.dv-pane #dvSaid { margin: 0 0 8px; }
.dv-pane #dvEmpty { margin: 0; padding: 16px; border: 1px dashed var(--desk-rule); border-radius: 6px; }
.dv-pane #dvEmpty[hidden] { display: none; }
[data-card-own][hidden], [data-card-morning][hidden] { display: none; }
@media (min-width: 1100px) {
  .dv-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .dv-layout:has(.dv-pane iframe) { grid-template-columns: minmax(0, 1fr); }
}
.dv-extras { display: grid; gap: 16px; min-width: 0; }
.dv-section { display: grid; gap: 8px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--desk-rule); }
.dv-head { margin: 0; font: 600 14px/1.4 var(--sans); }
.dv-chapters, .dv-pages, .dv-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.dv-chapter { overflow-wrap: anywhere; font: 400 14px/1.5 var(--sans); }
.dv-pages { gap: 2px; margin-top: 2px; }
.dv-people li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.dv-person { display: grid; min-width: 0; flex: 1 1 200px; }
.dv-address { overflow-wrap: anywhere; font: 400 14px/1.5 var(--sans); }
.dv-people .tool { min-height: 40px; }
.dv-said { margin: 0; overflow-wrap: anywhere; }
.dv-said:empty { display: none; }
.dv-comms { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.dv-comms .small { margin: 0; }
.dm-presses { display: grid; gap: 6px; justify-items: start; flex: 1 1 100%; min-width: 0; }
.dm-presses .small { margin: 0; }
.dm-withdraw { display: grid; gap: 6px; }
.dm-subtitle, .dm-voice { overflow-wrap: anywhere; }
.dm-code { color: var(--ink); }
.dm-path { width: auto; }
/* The morning view (founder-morning.js): the desk's words and rules, no new colour or size. */
.dc-grade { margin: 0; }
.dm { display: grid; gap: 10px; min-width: 0; }
.dm[hidden] { display: none; }
.dm-none { margin: 0; }
.dm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 8px 16px; }
.dm-title { display: grid; gap: 2px; min-width: 0; }
.dm-title .small { margin: 0; }
.dm-title .dc-name { margin-bottom: 4px; }
.dm-cover { display: block; width: min(160px, 100%); height: auto; border-radius: 4px; }
/* The cover stands to the right of the header block (the founder, 2026-11-07), and under it on a narrow pane: by the pane's width, not the window's. */
.dm-head.has-cover { display: grid; grid-template-columns: minmax(0, 1fr) 160px; }
.dm-head.has-cover > .dm-cover { width: 160px; max-width: 100%; }
.dm-head.has-cover > .dm-presses { grid-column: 1 / -1; }
@container (max-width: 480px) {
  .dm-head.has-cover { grid-template-columns: minmax(0, 1fr); }
  .dm-head.has-cover > .dm-cover { width: min(160px, 100%); }
}
.dm-table { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 14px/1.5 var(--sans); }
.dm-table th { padding: 4px 12px 4px 0; text-align: left; font: 600 12px/1.4 var(--sans); color: var(--desk-muted); }
/* The map's column holds the small picture at its drawn size, so its labels read: a plain length, since a table column treats a min() holding a percentage as auto. Under 560 the table stands as lines. */
.dm-table th:last-child { width: 228px; }
.dm-table td { padding: 8px 12px 8px 0; vertical-align: top; overflow-wrap: anywhere; }
.dm-row td { border-top: 1px solid var(--desk-rule); }
.dm-card { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; min-width: 0; }
.dm-card label { display: grid; gap: 4px; flex: 1 1 200px; min-width: 0; font: 500 12px/1.4 var(--sans); color: var(--desk-muted); }
.dm-card input { width: 100%; min-height: 40px; }
.dm-card textarea { width: 100%; min-height: calc(4.5em + 18px); resize: vertical; font: 400 14px/1.5 var(--sans); }
.dm-card .tool[aria-pressed="true"] { border-color: var(--ink); font-weight: 600; }
.dm-said { flex: 1 1 100%; overflow-wrap: anywhere; }
.dm-said:empty { display: none; }
/* The first card's form (first-card-form.js, docs/decisions/2026-11-07-comment-form.md): the kinds, the checks for what it is about under them, then the note. Each check a 40px target, its label the press. */
.dm-card > .dc-acts:first-child, .dm-card > .dm-note { flex: 1 1 100%; }
.dm-aspects { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dm-aspects legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font: 500 12px/1.4 var(--sans); color: var(--desk-muted); }
.dm-card .dm-aspect { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 40px; padding: 0 12px; border: 1px solid var(--desk-rule); border-radius: 999px; font: 500 13px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.dm-card .dm-aspect input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; }
.dm-card .dm-aspect:has(input:checked) { border-color: var(--ink); font-weight: 600; }
.dm-card .dm-aspect:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.dm-card textarea::placeholder { color: var(--desk-muted); opacity: 0.75; }
.dm-aspects-said, .dc-aspects { display: block; flex: 1 1 100%; color: var(--desk-muted); }
.dc-card-said { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.gt-row > .dc-card-said { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .dc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dc-row > .dc-acts { grid-column: 1 / -1; }
}
/* Narrow, each row of the morning's table stands as labelled lines, so nothing scrolls sideways. By the pane's width, not the window's. */
@container (max-width: 560px) {
  .dm-table, .dm-table tbody, .dm-table tr, .dm-table td { display: block; width: 100%; }
  .dm-table thead { display: none; }
  .dm-table td { padding: 4px 0; }
  .dm-row td[data-label]::before { content: attr(data-label); display: block; font: 600 12px/1.4 var(--sans); color: var(--desk-muted); }
  .dm-row td:not(:first-child) { border-top: 0; }
}

/* A showcase book given to her (given-book.js givenPaneHtml): on the founder's card and the tutor's Home pane. */
.given-book { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #e2e8e3; }
.given-book-cover { width: 90px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; flex: none; }
.given-book-words { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.given-book-words .tool { min-height: 44px; display: inline-flex; align-items: center; }
/* "+ Add" on a family's folder (founder-add.js), on the founder's Children page and the tutor's Home: the desk's own type, rules and pills, no new colour. */
.fa-host { display: grid; gap: 10px; min-width: 0; }
.fa-bar, .fa-choices, .fa-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fa-line { margin: 0; color: var(--desk-muted); }
.fa-panel { display: grid; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--desk-rule); border-radius: 6px; background: var(--paper, #fff); }
.fa-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; min-width: 0; margin: 0; }
.fa-wide, .fa-who, .fa-form > p, .fa-form > ul { grid-column: 1 / -1; min-width: 0; }
.fa-who { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; }
.fa-field { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; font: 500 12px/1.4 var(--sans); color: var(--desk-muted); }
.fa-field b, .fa-field [data-fa-grade] { font: 600 15px/1.4 var(--sans); color: var(--ink); }
.fa-label { color: var(--desk-muted); }
.fa-field input:not([type="radio"]), .fa-field select, .fa-field textarea { width: 100%; min-height: 40px; font: 400 14px/1.5 var(--sans); color: var(--ink); }
.fa-field textarea { resize: vertical; }
.fa-length { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fa-length legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; }
.fa-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--desk-rule); border-radius: 999px; font: 500 13px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.fa-choice input { width: 18px; height: 18px; margin: 0; }
.fa-nodes, .fa-roads { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fa-roads { display: flex; flex-wrap: wrap; gap: 8px; }
.fa-node { display: grid; gap: 2px; width: 100%; min-height: 44px; padding: 8px 12px; text-align: left; border: 1px solid var(--desk-rule); border-radius: 6px; background: transparent; color: var(--ink); font: 500 14px/1.4 var(--sans); cursor: pointer; }
.fa-node:hover, .fa-node[aria-selected="true"] { border-color: var(--ink); }
.fa-node .small { color: var(--desk-muted); }
.fa-confirm, .fa-asked-words { margin: 0; font: 400 15px/1.5 var(--sans); color: var(--ink); }
.fa-asked, .fa-first-card { display: grid; gap: 10px; min-width: 0; }
.fa-first-card { padding-top: 10px; border-top: 1px solid var(--desk-rule); }
.fa-first-card > p { margin: 0; }

/* The Children page (founder-tree.js, founder desk v3, unit U1b; docs/decisions/2026-11-18-founder-desk-v3-children.md):
   the folders with the search to their right, the ticked family's tree, each child's road. */
.ft-host { display: grid; gap: 22px; min-width: 0; margin-bottom: 28px; }
.ft-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 12px 18px; align-items: start; min-width: 0; }
.ft-folders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.ft-folder-btn { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; height: 100%; min-height: 64px; padding: 12px 12px 10px; text-align: left; border: 0; border-radius: 8px; background: var(--paper-2, #f2f6f3); color: var(--ink); font: 400 14px/1.35 var(--sans); cursor: pointer; }
.ft-folder-btn:hover { background: #e7efe9; }
.ft-folder-btn[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ft-folder-btn[aria-pressed="true"]::after { content: "\2713"; position: absolute; top: 6px; right: 8px; font: 600 13px/1 var(--sans); color: var(--oxblood, #8a2f43); }
.ft-folder-icon { flex: none; position: relative; width: 22px; height: 16px; margin-top: 2px; border-radius: 2px 3px 3px 3px; background: #c9b37a; }
.ft-folder-icon::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 5px; border-radius: 2px 2px 0 0; background: #c9b37a; }
.ft-folder-btn[aria-pressed="true"] .ft-folder-icon, .ft-folder-btn[aria-pressed="true"] .ft-folder-icon::before { background: #b38f3a; }
.ft-folder-words { display: grid; gap: 2px; min-width: 0; }
.ft-folder-words b { font-weight: 600; overflow-wrap: anywhere; }
.ft-folder-words .small { color: var(--desk-muted); overflow-wrap: anywhere; }
.ft-search { display: grid; gap: 4px; min-width: 0; }
.ft-search-label { font: 600 13px/1.3 var(--sans); color: var(--desk-muted); }
.ft-search input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid #b9c9c0; border-radius: 6px; background: #fff; color: var(--ink); font: 400 15px/1.3 var(--sans); }
.ft-search .small { margin: 0; color: var(--desk-muted); }
.ft-search .small:empty { display: none; }
.ft-none { margin: 0; color: var(--desk-muted); }
.ft-family { display: grid; gap: 16px; min-width: 0; }
.ft-family-name { margin: 0; font: 600 24px/1.2 var(--sans); }

/* The tree: a grid of cells, the lines drawn under the nodes from the tutor's cell to each child's (founder-family-tree.js). */
.ft-trees { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: flex-start; min-width: 0; }
.ft-tree { position: relative; display: grid; grid-template-columns: repeat(var(--ft-cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--ft-rows), 118px); width: min(100%, calc(var(--ft-cols) * 200px)); min-width: 0; margin-bottom: 8px; }
.ft-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ft-lines line { stroke: #9fb3a8; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* A node is its avatar, set on its cell's centre so the lines meet it there; the name and the grade hang under it. */
.ft-node { position: relative; z-index: 1; place-self: center; display: block; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: 400 13px/1.25 var(--sans); text-align: center; }
button.ft-node { cursor: pointer; }
button.ft-node:hover .ft-avatar { box-shadow: 0 0 0 4px #dce4df; }
.ft-node-words { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); display: grid; gap: 1px; width: max-content; max-width: 150px; padding: 0 4px; border-radius: 4px; background: #f8faf9; }
.ft-node-name { font-weight: 600; overflow-wrap: anywhere; }
.ft-node .small { color: var(--desk-muted); font-size: 12px; }
.ft-avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #dbe8e0; color: #24433a; font: 600 15px/1 var(--sans); letter-spacing: .02em; box-shadow: 0 0 0 4px #f8faf9; }
.ft-node-tutor .ft-avatar { background: #24433a; color: #fff; }
.ft-node-none .ft-avatar { background: #f8faf9; border: 2px dashed #9fb3a8; }
.ft-node-none .ft-node-name { color: var(--desk-muted); font-weight: 500; }

/* Each child's road: her heading, her cards with their minus and the plus at the end, the line, the table. */
.ft-roads { display: grid; gap: 26px; min-width: 0; }
.ft-child { display: grid; gap: 10px; min-width: 0; scroll-margin-top: 12px; }
.ft-road-name { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 18px/1.3 var(--sans); }
.ft-road-name .ft-avatar { width: 32px; height: 32px; font-size: 12px; }
.ft-road-name .small { color: var(--desk-muted); font-weight: 400; }
.ft-folder { display: grid; gap: 12px; min-width: 0; padding: 0 0 0 42px; }
.ft-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.ft-card { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 12px; border: 0; border-radius: 8px; background: var(--paper-2, #f2f6f3); }
.ft-card[data-ft-pending] { opacity: .6; }
.ft-open { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
a.ft-open:hover .ft-card-title { text-decoration: underline; }
.ft-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--desk-rule); }
.ft-card-title { font: 600 15px/1.3 var(--sans); }
.ft-card p { margin: 0; overflow-wrap: anywhere; }
.ft-remove, .ft-card .tool { justify-self: start; }
.ft-remove { min-width: 44px; min-height: 44px; padding: 0 12px; font: 500 24px/1 var(--sans); }
.ft-card { position: relative; }
.ft-card .ft-remove { position: absolute; top: 8px; right: 8px; min-width: 36px; min-height: 36px; border-radius: 50%; background: #fff; }
.ft-plus { display: grid; min-height: 120px; }
.ft-plus .ft-add { display: grid; place-content: center; justify-items: center; gap: 4px; width: 100%; height: 100%; border: 1.5px dashed #b9c9c0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.ft-plus .ft-add:hover, .ft-plus .ft-add[aria-expanded="true"] { border-color: var(--ink); background: #fff; }
.ft-add-sign { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2, #f2f6f3); font: 500 26px/1 var(--sans); }
.ft-plus .ft-add .small { color: var(--desk-muted); }
.ft-road-detail { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ft-line { margin: 0; font: 500 15px/1.45 var(--sans); color: var(--ink); }
.ft-table { width: 100%; max-width: 760px; border-collapse: separate; border-spacing: 0 6px; font: 400 14px/1.45 var(--sans); }
.ft-table caption { text-align: left; color: var(--desk-muted); padding-bottom: 2px; }
.ft-table th { width: 92px; padding: 10px 12px; vertical-align: top; text-align: left; font: 600 13px/1.45 var(--sans); color: var(--desk-muted); background: var(--paper-2, #f2f6f3); border-radius: 6px 0 0 6px; }
.ft-table td { padding: 10px 12px; vertical-align: top; background: var(--paper-2, #f2f6f3); border-radius: 0 6px 6px 0; min-width: 0; overflow-wrap: anywhere; }
.ft-table td > * + * { margin-top: 6px; }
.ft-table p { margin: 0; }
.ft-cell-head { font-weight: 600; }
.ft-lines-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ft-lines-list .small, .ft-asks .small { color: var(--desk-muted); }
.ft-quiet { color: var(--desk-muted); }
.ft-needed { margin: 0 0 16px; max-width: 760px; }
.ft-asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 760px; }
.ft-asks li { font: 400 14px/1.45 var(--sans); padding: 8px 12px; border-left: 3px solid #c9b37a; background: #fbf7ec; border-radius: 0 6px 6px 0; }
.ft-picker { display: grid; gap: 10px; max-width: 760px; padding: 14px; border: 1px solid var(--desk-rule); border-radius: 8px; background: #fff; }
.ft-picker-head { margin: 0; font: 600 14px/1.4 var(--sans); }
.ft-ask-card { display: grid; gap: 6px; }
.ft-ask-card textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #b9c9c0; border-radius: 6px; font: 400 14px/1.4 var(--sans); resize: vertical; }
.ft-ask-card .tool { justify-self: start; }
.ft-roads-fold > summary, .founder .dc-today-fold > summary, .founder .desk-accounts > summary { cursor: pointer; }
.ft-roads-fold > summary { display: flex; align-items: center; gap: 6px; min-height: 40px; font: 500 14px/1.4 var(--sans); color: var(--desk-muted); list-style: none; }
.ft-roads-fold > summary::-webkit-details-marker { display: none; }
/* Every fold that stays shows its marker (U1b, item 6): a triangle, turned when open. */
.ft-roads-fold > summary::before, .founder .dc-today-fold > summary::before, .founder .desk-accounts > summary::before { content: "\25B8"; display: inline-block; width: 1em; color: var(--desk-muted); transition: transform .12s; }
.ft-roads-fold[open] > summary::before, .founder .dc-today-fold[open] > summary::before, .founder .desk-accounts[open] > summary::before { transform: rotate(90deg); }
.founder .dc-today-fold > summary, .founder .desk-accounts > summary { list-style: none; }
.founder .dc-today-fold > summary::-webkit-details-marker, .founder .desk-accounts > summary::-webkit-details-marker { display: none; }

/* The board under the family on the tree, open and in no fold: the buttons and their sheets, then consent, then Accounts. */
.ft-board { min-width: 0; }
.ft-board > .founder-board:not([hidden]) { display: flex; flex-direction: column; gap: 16px; }
.ft-board .board-actions { order: 1; }
.ft-board .board-sheet, .ft-board .passcode-card { order: 2; }
.ft-board #consentCard { order: 3; }
.ft-board #accountsFold { order: 4; }
.ft-board #folders, .ft-board #familyDesk { order: 5; }
.founder .accounts-said:empty { display: none; }
.today-pages-host:empty { display: none; }

/* Her road's own column (round 2 on #947): the cards, the picker, Start fresh and the last answer's line together, so
 * Start fresh and "Asked; waiting..." stand under the cards they speak of at every width, never under the table. */
.ft-road-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ft-table-pick { font-size: 13px; min-height: 32px; padding: 4px 10px; }
.ft-table-pick[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Wide: her road's column and her book's line and table side by side. */
@media (min-width: 1100px) {
  .ft-folder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 22px; align-items: start; }
  .ft-folder > .ft-road-main { grid-column: 1; grid-row: 1; }
  .ft-road-main > .ft-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .ft-folder > .ft-road-detail { grid-column: 2; grid-row: 1; }
}
@media (max-width: 900px) {
  .ft-bar { grid-template-columns: minmax(0, 1fr); }
  .ft-search { order: -1; }
  .ft-folders { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .ft-folders li { flex: 0 0 150px; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .ft-folder { padding-left: 0; }
  .ft-tree { grid-template-rows: repeat(var(--ft-rows), 104px); }
  .ft-node-words { max-width: 110px; }
  .ft-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-table th { width: 70px; padding: 8px; }
  .ft-table td { padding: 8px; }
  .ft-family-name { font-size: 21px; }
}
.ft-note { display: flex; gap: 6px; min-width: 0; }
.ft-note input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 10px; border: 1px solid #b9c9c0; border-radius: 6px; background: #fff; font: 400 14px/1.4 var(--sans); }
.ft-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ft-add { justify-self: start; }
.ft-choices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-fresh, .ft-said { margin: 0; }
.ft-said:empty { display: none; }

/* Her Papers card (papers-card.js, M9 IN-D): every control 44 px, the fields two to a row and one on a phone. */
.pp-card { display: grid; gap: 8px; max-width: 760px; padding: 10px 12px; border: 1px solid var(--desk-rule); border-radius: 8px; background: #fff; min-width: 0; }
.pp-card .tool.pp-head { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.pp-head[aria-expanded="true"] { background: var(--paper-2, #f2f6f3); }
.pp-list, .pp-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-list li, .pp-picks li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--paper-2, #f2f6f3); border-radius: 6px; font: 400 14px/1.45 var(--sans); overflow-wrap: anywhere; }
.pp-list li > span, .pp-picks li > span { min-width: 0; flex: 1 1 14em; }
.pp-card .tool.pp-btn { min-height: 44px; min-width: 44px; padding: 0 14px; }
.pp-form { display: grid; gap: 8px; }
.pp-form-head { margin: 0; font: 600 14px/1.4 var(--sans); }
.pp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 12px; align-items: end; }
.pp-field { display: grid; gap: 4px; min-width: 0; font: 400 13px/1.4 var(--sans); color: var(--desk-muted); }
.pp-field select, .pp-field input { min-height: 44px; width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #b9c9c0; border-radius: 6px; background: #fff; font: 400 15px/1.3 var(--sans); color: var(--ink); }
.pp-pair, .pp-ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 6px 10px; margin: 0; padding: 8px 10px; border: 1px solid var(--desk-rule); border-radius: 6px; min-width: 0; }
.pp-pair legend, .pp-ticks legend { font: 600 13px/1.4 var(--sans); color: var(--desk-muted); padding: 0 4px; }
.pp-ticks { grid-column: 1 / -1; }
.pp-tick { display: flex; align-items: center; gap: 8px; min-height: 44px; font: 400 14px/1.3 var(--sans); }
.pp-tick input { width: 22px; height: 22px; margin: 0; }
.pp-picks { grid-column: 1 / -1; }
.pp-save { justify-self: start; }
.pp-said:empty { display: none; }

/* Her first-class sheet's card (first-class-sheet-card.js, M9 IN-G), beside the Papers card: every control 44 px, a row a question. */
.fs-card { display: grid; gap: 8px; max-width: 760px; padding: 10px 12px; border: 1px solid var(--desk-rule); border-radius: 8px; background: #fff; min-width: 0; }
.fs-card .tool.fs-head { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.fs-head[aria-expanded="true"] { background: var(--paper-2, #f2f6f3); }
.fs-make-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.fs-make-row .fs-field { flex: 1 1 16em; }
.fs-key { display: grid; gap: 8px; }
.fs-card .tool.fs-btn, .fs-card .tool.fs-pick { min-height: 44px; min-width: 44px; padding: 0 14px; }
.fs-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px; background: var(--paper-2, #f2f6f3); border-radius: 6px; font: 400 14px/1.45 var(--sans); }
.fs-n { min-width: 2em; font-weight: 600; }
.fs-pick[aria-pressed="true"] { background: var(--ink, #173a32); color: #fff; }
.fs-typed input { min-height: 44px; width: 10em; max-width: 100%; padding: 6px 8px; border: 1px solid #b9c9c0; border-radius: 6px; background: #fff; font: 400 15px/1.3 var(--sans); }
.fs-save, .fs-continue { justify-self: start; }
.fs-next { margin: 0; font: 600 14px/1.45 var(--sans); }
.fs-said:empty { display: none; }
/* The first class result card (first-class-card.js, M9 IN-H): above the Papers card on both desks; every control 44 px. */
.rc-card { display: grid; gap: 8px; max-width: 760px; padding: 10px 12px; border: 1px solid var(--desk-rule); border-radius: 8px; background: #fff; min-width: 0; }
.rc-title { margin: 0; font: 600 15px/1.4 var(--sans); }
.rc-sub { margin: 4px 0 0; font: 600 14px/1.4 var(--sans); }
.rc-start, .rc-done { margin: 0; overflow-wrap: anywhere; }
.rc-queue { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.rc-step { min-height: 44px; padding: 6px 10px; border: 1px solid var(--desk-rule); border-radius: 6px; background: var(--paper-2, #f2f6f3); color: inherit; font: 400 14px/1.35 var(--sans); text-align: left; max-width: 100%; overflow-wrap: anywhere; cursor: pointer; }
.rc-step[aria-expanded="true"] { background: var(--ink, #173a32); color: #fff; }
.rc-reasons { margin: 4px 0 0; padding-left: 18px; font: 400 13px/1.45 var(--sans); overflow-wrap: anywhere; }
.rc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-card .rc-acts .tool, .rc-card .rc-picker .tool { min-height: 44px; }
.rc-picker { display: grid; gap: 8px; }
.rc-picker label { display: grid; gap: 4px; font: 400 14px/1.4 var(--sans); min-width: 0; }
.rc-picker select { min-height: 44px; max-width: 100%; }
.rc-said:empty { display: none; }
/* The drop zone (M9 IN-E): a report's PDF dropped here or chosen with the 44 px button; the file input covers the button, border too, so it is 44 px itself and focusable. */
.pp-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 2px dashed #b9c9c0; border-radius: 8px; background: var(--paper-2, #f2f6f3); min-width: 0; }
.pp-drop > .small { flex: 1 1 16em; min-width: 0; }
.pp-card .tool.pp-file { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.pp-file input { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); margin: 0; opacity: 0; cursor: pointer; }
.pp-file:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A field the reader could not read: said in words ("not read") and drawn so. */
.pp-missing select, .pp-missing input { border: 2px solid #b4462f; background: #fff7f4; }
.pp-need { font-style: normal; font-weight: 600; color: #8f3420; }
