/* Typed checklist task recipes. Moved byte-for-byte from demo/gc/vpfinance/checklists/typed-tasks-shell.css at 729e1c9e8. */

/* C1 Task answer block */
.kb-section-label { font-family: var(--font-mono); font-size: var(--font-size-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.kb-add-row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; box-sizing: border-box; padding: var(--space-3) var(--space-4); border: 1px dashed var(--border-color); border-radius: var(--radius-md); background: transparent; color: var(--cyan-500); font-family: inherit; font-size: var(--font-size-body-md); font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none; transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.kb-add-row:hover, .kb-add-row:focus-visible, .kb-add-row.is-hover { border-color: var(--cyan-500); background: var(--cyan-400-12); }
.kb-add-row.kb-add-row--static { cursor: default; }
.kb-add-row.kb-add-row--static:hover, .kb-add-row.kb-add-row--static.is-hover { border-color: var(--border-color); background: transparent; }
.kb-add-row svg { width: 16px; height: 16px; flex-shrink: 0; }
.kb-supplier .kb-ff:last-child, .kb-supplier .checklist-answer__group:last-child { margin-bottom: 0; }
.kb-supplier .checklist-answer__group { margin-bottom: 0; }
.checklist-item .kb-supplier .status-message-strip, .checklist-item .checklist-answer > .status-message-strip { width: auto; margin: 0; }
.kb-onfile { display: flex; flex-direction: column; gap: var(--kb-px-2); margin-bottom: var(--space-3); }
.kb-onfile .kb-fv { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.kb-onfile-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--teal-50); color: var(--teal-600); font-size: var(--font-size-label); font-weight: 600; }
.kb-file { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--kb-px-14); border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--white); }
.kb-file svg { width: 20px; height: 20px; color: var(--text-secondary); flex-shrink: 0; }
.kb-file-name { font-size: var(--font-size-body-sm); font-weight: 500; color: var(--text-primary); }
.kb-file-meta { font-size: var(--font-size-caption); color: var(--text-secondary); margin-top: var(--kb-px-2); }
.kb-drop { padding: 0; }
.kb-drop-target { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; border-radius: var(--radius-md); }
.kb-drop-target:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 2px; }
.checklist-answer { padding: 0 var(--space-5) var(--space-5) var(--kb-px-52); display: flex; flex-direction: column; gap: var(--space-4); }
.checklist-answer__group { border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: var(--space-4); }
.checklist-answer__group > :last-child { margin-bottom: 0 !important; }
.checklist-answer__group-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); row-gap: var(--kb-px-2); align-items: center; font-size: var(--font-size-body-md); font-weight: 600; color: var(--slate-700); margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0; padding: var(--kb-px-10) var(--space-4); border-bottom: 1px solid var(--border-color); }
.checklist-answer__group-head > :first-child { grid-column: 1; grid-row: 1; }
.checklist-answer__group-meta { grid-column: 1; grid-row: 2; font-weight: 400; color: var(--text-secondary); }
.checklist-answer__group-meta:empty { display: none; }
.checklist-answer .toggle-row { margin-bottom: var(--kb-px-14); }
.checklist-answer .toggle-row__label { font-size: var(--font-size-body-sm); }
.checklist-answer__hint { display: block; font-size: var(--font-size-caption); color: var(--text-secondary); margin-top: var(--kb-px-2); line-height: 1.4; }
.checklist-answer__dependent { margin: calc(-1 * var(--kb-px-2)) 0 var(--kb-px-14); }
.checklist-answer__flag { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--kb-px-14); }
.checklist-answer__flag:has(.checklist-answer__flag-control) { grid-template-columns: auto minmax(0, 1fr) minmax(0, 44%); }
.checklist-answer__flag .toggle-row__label { display: flex; flex-direction: column; gap: var(--kb-px-2); }
.checklist-answer__flag-control { width: 100%; }
.checklist-answer__flag .toggle-row__label { min-width: 0; }
.checklist-answer__flag .form-field__label { white-space: normal; line-height: 1.2; }
.checklist-answer__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: 0 calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) calc(-1 * var(--kb-px-52)); padding: var(--kb-px-11) var(--space-5) var(--kb-px-11) var(--kb-px-52); border-top: 1px solid var(--border-color); }
.checklist-answer__caption { font-size: var(--font-size-body-md); color: var(--text-secondary); }
.checklist-answer__actions { display: flex; flex-wrap: nowrap; flex-shrink: 0; gap: var(--space-3); margin-left: auto; }
.checklist-answer__actions .kb-btn { white-space: nowrap; }
.checklist-answer__values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--kb-px-14) var(--space-6); }
.checklist-answer__values--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checklist-answer__values .kb-fv { margin-top: var(--space-1); overflow-wrap: anywhere; }
.checklist-answer__toggle { display: inline-flex; align-items: center; gap: var(--kb-px-6); padding: 0; border: none; background: none; font-family: inherit; font-size: var(--font-size-body-md); font-weight: 500; color: var(--cyan-600); cursor: pointer; }
.checklist-answer__toggle svg { width: 16px; height: 16px; }
.checklist-answer--collapsed { padding-top: 0; }
.kb-supplier--defs .checklist-answer__values { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--kb-px-10); }
.kb-supplier--defs .checklist-answer__values > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); align-items: baseline; grid-column: auto !important; }
.kb-supplier--defs .checklist-answer__values > div > .fontstyle-label-uppercase { margin: 0; }
.kb-supplier--defs .checklist-answer__values > div > .kb-fv { margin: 0; }
.checklist-answer .date-field { max-width: var(--field-width-date); }
.checklist-answer .form-row:has(.date-field) { grid-template-columns: repeat(2, max-content); }
.kb-notes { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--kb-px-6); }
.kb-notes .kb-section-label { margin-bottom: var(--kb-px-2); }
.kb-headed { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.kb-headed .fontstyle-label-uppercase { color: var(--text-muted); }
.kb-headed .kb-ff { margin-bottom: 0; }
.form-row > .kb-headed { margin-bottom: 0; }
.checklist-answer .form-row:has(.kb-headed) { grid-template-columns: repeat(2, max-content); }
.checklist-answer__group > .kb-headed:last-child { margin-bottom: 0; }
.checklist-answer .form-row.kb-row--fill { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kb-row--fill .kb-ff, .kb-row--fill .kb-headed .kb-ff { max-width: none; }
.checklist-answer .form-row:has(.kb-headed) { align-items: end; }
.checklist-answer .kb-ff, .checklist-answer .kb-headed, .checklist-answer .kb-onfile, .checklist-answer .form-row, .checklist-answer .toggle-row, .checklist-answer .file-drop-zone__field { margin-bottom: 0; }
.checklist-answer__group { display: flex; flex-direction: column; gap: var(--space-4); }   /* the owner, 2026-11-12: the fields in a group sit as close as the address set */
.checklist-answer__group .kb-ff { margin-bottom: 0; }
.checklist-answer__group + .checklist-answer__group { margin-top: var(--space-3); }
.checklist-answer .form-field__message { margin-top: var(--space-1); }
.kb-drop-line { position: relative; height: 0; margin: calc(-1 * var(--kb-px-5)) 0; }
.kb-drop-line::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: var(--kb-radius-1); background: var(--cyan-500); }
.checklist-answer__group-head { background: var(--slate-50); border-radius: var(--kb-radius-7) var(--kb-radius-7) 0 0; }
.kb-build-answer .kb-build-field > .kb-ff, .kb-build-answer .kb-build-field > .kb-headed, .kb-build-answer .kb-build-field > .toggle-row, .kb-build-answer .kb-build-field > .file-drop-zone__field { margin: 0; }
.kb-build-answer .kb-drop-line { margin: calc(-1 * var(--space-2)) 0; }
.kb-supplier--defs .checklist-answer__values > div:has(> .file-preview) { align-items: start; }
.kb-supplier--defs .checklist-answer__values > div:has(> .file-preview) > .fontstyle-label-uppercase { margin-top: var(--space-3); }
.checklist-answer .form-row.kb-addr-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.kb-ta-sub { font-size: var(--font-size-caption); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-add-row--sm { padding: var(--space-2) var(--space-3); font-size: var(--font-size-body-md); border-radius: var(--radius-sm); }
.kb-onfile-tag--edited { background: var(--slate-100); color: var(--slate-600); }
.kb-onfile-edit .kb-ff { margin-bottom: 0; }
.kb-diverged .kb-link { font-size: var(--font-size-caption); }
.checklist-answer__group .kb-addr-row { grid-template-columns: 1.8fr 1.2fr 1fr; }
.kb-rq-group .checklist-answer__group-head + .kb-rq { border-top: 0; }   /* the owner, 2026-11-12: no rule between the head and the first requirement */
.kb-rq-group .checklist-answer__group-meta { grid-column: 2; grid-row: 1; justify-self: end; }   /* the owner, 2026-11-12: the counter sits on the title row, right-aligned */
.checklist-answer .kb-supplier + .kb-supplier, .kb-fields .kb-supplier + .kb-supplier { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border-color); }   /* the owner, 2026-11-16 (R-0066): task section lines are the standard light gray */
.kb-file-empty { padding: var(--space-3) var(--space-4); border: 1px dashed var(--border-color); border-radius: var(--radius-md); font-size: var(--font-size-body-md); color: var(--text-muted); }
.kb-rg-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text-muted); cursor: pointer; }
.kb-rg-remove:hover, .kb-rg-remove:focus-visible { color: var(--danger-foreground); background: var(--danger-surface); outline: none; }
.kb-build-answer .kb-build-field > .kb-build-sec, .kb-build-answer .kb-build-field > .kb-build-note, .kb-build-answer .kb-build-field > .checklist-answer__group { margin: 0; }
.checklist-answer .kb-sec-title { white-space: normal; overflow: visible; text-overflow: clip; }
.kb-onfile--file { animation: none; }
.kb-notfound { margin-top: var(--space-2); }
.kb-ta-keep span { color: var(--cyan-600); font-weight: 500; }
.checklist-answer .kb-eo { justify-content: space-between; gap: var(--space-2) var(--space-4); flex-wrap: wrap; }
.kb-eo-ctl { display: flex; align-items: center; gap: var(--kb-px-10); flex-shrink: 0; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }   /* DSE M-L1 (PR 915): at 390 the word, the toggle and Clear wrap inside the row instead of running past it */
.kb-eo-ctl > .segment-toggle { min-width: 0; max-width: 100%; }
/* Either / or two-choice (R-0058, SSOT §4.48): .segment-toggle in .kb-eo-ctl, nothing .active at rest; required and unanswered gets the 1px --error ring. */
.kb-eo.kb-eo--error .segment-toggle { box-shadow: 0 0 0 1px var(--error); }
.kb-eo-word { font-size: var(--font-size-body-sm); color: var(--text-muted); }   /* the owner, 2026-11-12: the unlit word matches the empty Title hint (slate-400) */
.kb-eo-word--on { color: var(--text-primary); font-weight: 500; }
.kb-eo-ctl > .kb-eo-word { display: none; order: -1; }
.kb-eo-ctl > .kb-eo-word--on, .kb-eo-ctl > .kb-eo-word--none { display: inline; }

/* C7 Address field group */
.kb-addr { gap: var(--space-4); }
.kb-addr > .kb-ff { margin-bottom: 0; }
.kb-addr-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 0; }

/* C2 Task field builder */
.kb-type-card { display: flex; flex-direction: column; gap: var(--kb-px-6); text-align: left; padding: var(--kb-px-14); border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--white); font-family: inherit; cursor: pointer; }
.kb-type-card.selected { border-color: var(--cyan-500); box-shadow: var(--shadow-focus-ring); background: var(--cyan-500-04); }
.kb-drag { width: 20px; height: 20px; color: var(--slate-300); flex-shrink: 0; margin-top: var(--kb-px-2); }
.kb-fields { display: flex; flex-direction: column; gap: var(--space-2); }
.kb-field-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 150px 110px 32px; align-items: center; gap: var(--space-3); padding: var(--kb-px-10) var(--space-3); border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--white); }
.kb-field-row.selected { border-color: var(--cyan-500); box-shadow: var(--shadow-focus-ring); }
.kb-field-row.in-group { margin-left: var(--space-6); }
.kb-field-row .kb-field-note { display: none; }
.kb-field-row:hover, .kb-field-row:focus-within, .kb-field-row.is-hover { background: var(--cyan-400-12); }
.kb-field-row:hover .kb-field-note, .kb-field-row:focus-within .kb-field-note, .kb-field-row.is-hover .kb-field-note { display: block; }
.kb-kind { display: inline-flex; justify-self: start; width: max-content; align-items: center; height: 26px; padding: 0 var(--status-badge-pad-x, var(--kb-px-10)); border-radius: var(--radius-pill); background: var(--status-badge-slate-bg, var(--slate-200)); color: var(--status-badge-slate-text, var(--text-secondary)); font-size: var(--font-size-caption); font-weight: var(--font-weight-medium, 500); line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.kb-panel { background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--slate-200); padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.kb-panel-title { margin: 0; font-size: var(--font-size-h4); font-weight: 600; }
.kb-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.kb-kind-opt { padding: var(--space-2) var(--kb-px-10); border: 1px solid var(--border-color); border-radius: var(--radius-xs); background: var(--white); font-family: inherit; font-size: var(--font-size-body-md); color: var(--slate-700); text-align: left; cursor: pointer; }
.kb-kind-opt.selected { border-color: var(--cyan-500); color: var(--cyan-600); font-weight: 600; background: var(--cyan-500-04); }
.kb-preview-toggle { display: flex; align-items: center; gap: var(--kb-px-10); font-size: var(--font-size-body-md); color: var(--slate-600); }
.kb-panel-rule { height: 1px; background: var(--slate-200); margin: var(--space-1) calc(-1 * var(--space-6)); }
.kb-toggle-line { display: flex; align-items: center; gap: var(--space-3); margin: 0; font-size: var(--font-size-body-sm); color: var(--slate-700); cursor: pointer; }
.kb-toggle-line .toggle-switch { flex-shrink: 0; }
/* Set up head row (board 20-C1, source :77): title, kind chip, then the Required switch pushed right. */
.kb-build-setup-head { display: flex; align-items: center; gap: var(--kb-px-10); min-width: 0; }
.kb-build-setup-head .kb-toggle-line { margin-left: auto; }
.kb-drag-btn { display: flex; align-items: center; padding: 0; border: 0; background: transparent; color: inherit; cursor: grab; flex-shrink: 0; }
.kb-drag-btn:active { cursor: grabbing; }
.kb-drag-btn .kb-drag { margin-top: 0; }
/* Builder field row head and field state (play/07-D2 :6673; .kb-field-row__main per DSE merged-specs 07-D2 section 3). The .kb-tpl-item family lives in thread-comments-pattern.css beside .checklist-title (section-css-scope). */
.kb-field-row__main { display: flex; align-items: center; gap: var(--space-3); width: 100%; }
.kb-field-state { font-size: var(--font-size-caption); margin-top: var(--kb-px-2); color: var(--text-secondary); }
.kb-builder-body { display: grid; grid-template-columns: minmax(0, 776px) minmax(0, 1fr); min-width: 0; overflow-x: hidden; gap: var(--space-6); padding: var(--space-6); align-items: start; flex: 1; min-height: 0; overflow-y: auto; background: var(--slate-50); }
.kb-build-stage { min-width: 0; }
.kb-build-card { width: min(776px, 100%); }
.kb-build-head .kb-owner--static, .kb-build-head .kb-item-chev, .kb-build-head .kb-kebab { pointer-events: none; }   /* the owner, 2026-11-11: the done checkbox takes its own click */
.kb-title-edit { width: 100%; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; font: inherit; font-size: var(--font-size-body-sm); font-weight: 500; color: var(--text-primary); outline: none; }
.kb-title-edit:hover { border-bottom-color: var(--border-color); }
.kb-title-edit:focus { border-bottom-color: var(--cyan-500); }
.kb-build-field { position: relative; border-radius: var(--radius-sm); }
.kb-build-answer--build .kb-build-field { cursor: pointer; }
.kb-build-answer--build .kb-build-field:hover { background: var(--cyan-400-12); }
.kb-build-answer .kb-build-field.selected { box-shadow: 0 0 0 1px var(--cyan-500), var(--shadow-focus-ring); }
.kb-build-answer .kb-build-field.selected, .kb-build-answer--build .kb-build-field:hover { padding: var(--space-2); margin: calc(-1 * var(--space-2)); }
/* Marked field block (board 5.1): 1px --error ring around the field and its line. Same ring as .selected. */
.kb-build-answer .kb-build-field.has-error {
    box-shadow: 0 0 0 1px var(--error);
    padding: var(--space-2);
    margin: calc(-1 * var(--space-2));
}
.kb-build-answer .kb-build-field.selected.has-error {
    box-shadow: 0 0 0 1px var(--error);
}
.kb-build-marks { position: absolute; top: -14px; right: 8px; display: none; align-items: center; gap: var(--kb-px-2); padding: var(--kb-px-2); background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-xs); box-shadow: 0 2px 6px var(--slate-900-08); z-index: 2; }
.kb-build-card .kb-build-head .checklist-item__head { display: block; align-self: stretch; width: 100%; }   /* one more class than the flex head in thread-comments-pattern.css (and no .checklist-content, which would unscope that sheet in section-css-scope), so the typed title head stays a block in either sheet order (DSE M6) */
.kb-title-edit { display: block; }
.kb-build-field:hover .kb-build-marks, .kb-build-field.selected .kb-build-marks { display: flex; }
.kb-build-handle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--text-muted); cursor: grab; }
.kb-build-handle:active { cursor: grabbing; }
.kb-build-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text-muted); cursor: pointer; }
.kb-build-remove:hover { color: var(--danger-foreground); background: var(--danger-surface); }
.kb-build-tools { position: sticky; top: 0; }
.kb-build-tools .kb-panel-rule { margin: var(--space-1) 0; }
.kb-build-answer--build .kb-build-field > :not(.kb-build-marks) :is(input, textarea, button), .kb-build-answer--build .kb-build-field > :is(input, textarea, button) { pointer-events: none; }
.kb-build-card { overflow: visible; }   /* the body keeps overflow-y: auto (the owner, 2026-11-11): a long card scrolls inside the modal; open menus extend the scroll area instead of spilling past the foot */
.kb-build-answer .select-menu__panel { z-index: 7; }
.kb-opt-row .kb-build-remove { flex-shrink: 0; }
.kb-build-sec { display: flex; flex-direction: column; padding-top: var(--space-3); border-top: 1px solid var(--border-color); }   /* the owner, 2026-11-16 (R-0066): standard light gray. 2026-11-12: the rule belongs to the section below it: 32px above the line, 12px below */
.kb-build-sec--first { padding-top: 0; border-top: 0; }
.kb-build-sec .kb-owner--static { margin-left: 0; }   /* the owner, 2026-11-11: the chip sits right after the checkbox, no title */
.kb-build-note { margin: 0; padding: var(--kb-px-2) 0 var(--kb-px-2) var(--space-3); border-left: 3px solid var(--border-color); }
.kb-build-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--kb-px-6); font-size: var(--font-size-caption); color: var(--text-secondary); }
.kb-build-meta .kb-state--on { color: var(--teal-600); }
.kb-tb-set { gap: var(--space-2); margin-bottom: 0; }
.kb-tb-menu .select-menu__panel { z-index: 8; }
.kb-tb-hint { margin: 0; font-size: var(--font-size-caption); color: var(--text-secondary); }
.kb-title-edit::placeholder { color: var(--text-muted); font-weight: 400; }
.kb-build-empty { padding: 0 var(--space-5) var(--kb-px-18) var(--kb-px-52); }
.kb-build-empty__text { margin: 0; font-size: var(--font-size-body-md); line-height: 1.5; color: var(--text-secondary); }
.kb-build-title { display: inline-block; max-width: 100%; padding: var(--kb-px-2) var(--kb-px-6); margin: calc(-1 * var(--kb-px-2)) calc(-1 * var(--kb-px-6)); border-radius: var(--radius-xs); cursor: pointer; }
.kb-build-title--empty { color: var(--text-muted); font-weight: 400; }
.kb-build-title--static { cursor: default; }
.kb-build-head .kb-build-title:not(.kb-build-title--static):hover { background: var(--cyan-400-12); }
.kb-build-title.selected { box-shadow: 0 0 0 1px var(--cyan-500), var(--shadow-focus-ring); }
/* Marked title: the same 1px --error ring as a marked field block (board 5.1, .kb-build-field.has-error). */
.kb-build-title.has-error, .kb-build-title.selected.has-error { box-shadow: 0 0 0 1px var(--error); }
.kb-build-sec { gap: var(--space-2); }
.kb-build-answer .kb-build-field > .kb-build-sec:not(.kb-build-sec--first) { margin-top: var(--space-4); }

/* C3 Library catalog two-pane */
.kb-catalog.side-nav { overflow-y: auto; min-height: 0; }
.kb-catalog .side-nav-section { position: sticky; top: 0; z-index: 1; background: var(--slate-50); margin-top: 0; padding-top: var(--kb-px-10); padding-bottom: var(--kb-px-6); }
.kb-catalog .side-nav-item { align-items: flex-start; height: auto; min-height: 34px; padding-top: var(--kb-px-7); padding-bottom: var(--kb-px-7); }
.kb-catalog .side-nav-item .side-nav-icon { margin-top: var(--kb-px-1); }
.kb-catalog .side-nav-item .side-nav-label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.kb-catalog-find { position: relative; margin: var(--space-1) var(--space-3) var(--kb-px-10); }
.kb-catalog-find__icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); display: inline-flex; }
.kb-catalog-find__input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 var(--space-3) 0 var(--kb-px-34); border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--white); font-family: inherit; font-size: var(--font-size-body-sm); color: var(--text-primary); }
.kb-catalog-find__input:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 3px var(--cyan-400-12); }
.kb-catalog-empty { margin: var(--space-1) var(--space-4); font-size: var(--font-size-body-md); color: var(--text-secondary); }
.kb-catalog-sec { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; cursor: pointer; text-align: left; }
.kb-catalog-sec:hover, .kb-catalog-sec:focus-visible { color: var(--cyan-500); background: var(--cyan-400-12); outline: none; }
.kb-catalog-sec:hover .kb-catalog-sec__chev, .kb-catalog-sec:focus-visible .kb-catalog-sec__chev { color: var(--cyan-500); }
.kb-catalog-sec:active { color: inherit; background: var(--slate-50); }
.kb-catalog-sec__chev { display: inline-flex; color: var(--text-muted); transition: transform var(--duration-fast, 120ms) var(--ease-out, ease-out); }
.kb-catalog-sec__chev.kb-chev--closed { transform: rotate(-90deg); }
.kb-catalog-sec__chev.kb-chev--closed svg { transform: none; }
.kb-catalog .kb-row--added .side-nav-label { color: var(--text-muted); }
.kb-catalog .side-nav-item { align-items: center; }
.kb-catalog .side-nav-item .side-nav-icon { align-self: center; margin-top: 0; }
.kb-catalog .kb-catalog-own { margin-bottom: var(--kb-px-6); }
/* Build my own task reads as the board's link row (06-D1: a.kb-nav-link inherits the slate-900 text), icon slate-400; via the text role tokens. */
.kb-catalog .kb-catalog-own { color: var(--text-primary); }
.kb-catalog .kb-catalog-own .side-nav-icon { color: var(--text-muted); }
/* SSOT 4.50 spec pane for a picked catalog row, inside the §4.27 .side-nav-layout--catalog (kuhlman-components.css), whose detail pane has no padding.
   Values: source/04-J2b :97 and source/06-D1 :69 (same inline). Request step 2 lays out its own pane (.task-setup) and does not use this. */
.side-nav-layout--catalog > .side-nav-detail.kb-catalog-detail { display: flex; flex-direction: column; gap: var(--kb-px-14); padding: var(--space-5) var(--space-6) var(--space-6); }
.kb-catalog-detail > .kb-ff { margin-bottom: 0; }   /* the pane gap spaces a Title field like every other block (06-D1 :7267 margin-bottom 0) */
/* SSOT 4.50 spec list: a picked item's name and the tasks it holds (04-J2b detail, 06-D1 detail, 08-J5 huddle chooser). Moved byte-for-byte from typed-tasks-shell.css :80-85. */
.kb-spec-title { display: flex; flex-direction: column; align-items: flex-start; gap: var(--kb-px-2); }
.kb-spec-group { border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: var(--kb-px-10) var(--space-3); }
.kb-spec-head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--font-size-body-md); font-weight: 600; color: var(--slate-700); margin: calc(-1 * var(--kb-px-10)) calc(-1 * var(--space-3)) var(--kb-px-6); padding: var(--space-2) var(--space-3); background: var(--slate-50); border-radius: var(--kb-radius-7) var(--kb-radius-7) 0 0; border-bottom: 1px solid var(--border-color); }
.kb-spec-meta { font-weight: 400; color: var(--text-secondary); }
.kb-spec-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--kb-px-5) 0; font-size: var(--font-size-body-md); color: var(--slate-700); border-top: 1px solid var(--border-color); }
.kb-spec-head + .kb-spec-row, .kb-spec-row:first-child, .kb-spec-head + * > .kb-spec-row:first-child { border-top: 0; }
/* Add task picker, Pre-filled group and By who (board D1 :113-114, spec rules 9-10). The chip takes the gold shell's .kb-state--ok color (typed-tasks-shell.css :110), scoped to the spec meta so the recipe and the shell never define the same selector; a supplier keeps to the right of its field label. */
.kb-spec-meta.kb-state--ok { color: var(--teal-600); }
.kb-spec-by { flex-shrink: 0; text-align: right; white-space: nowrap; }
.kb-spec-title__name { margin: 0; font-size: var(--font-size-h3); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.kb-spec-title__sub { margin: var(--kb-px-2) 0 0; font-size: var(--font-size-body-sm); color: var(--text-secondary); }
/* SSOT 4.54 'In your library' mark in a catalog footer (04-J2b, source :102). Moved byte-for-byte from typed-tasks-shell.css :286-287. */
.kb-added { display: inline-flex; align-items: center; gap: var(--kb-px-6); margin-right: auto; font-size: var(--font-size-body-md); color: var(--teal-600); }
.kb-added svg { color: var(--teal-500); }

/* C4 Requirements review list */
.kb-rq-group .kb-rq { display: block; padding: var(--kb-px-10) 0; border-top: 1px solid var(--border-color); }
.kb-rq-group .kb-rq:last-of-type { padding-bottom: 0; }
.kb-rq .toggle-row { margin-bottom: 0 !important; }
.kb-rq .toggle-row__label { font-weight: 500; color: var(--text-primary); }
.kb-rq-note { margin: var(--kb-px-10) 0 0; }
.kb-rq-row { justify-content: space-between; gap: var(--space-4); }   /* the owner, 2026-11-12: the requirement left; "Yes [switch]" or "No [switch]" right; the word swaps with the state */
.kb-rq-word { font-size: var(--font-size-body-sm); font-weight: 500; color: var(--text-primary); min-width: 28px; text-align: right; white-space: nowrap; }
.kb-rq-word--none { font-weight: 400; color: var(--text-muted); }   /* the owner, 2026-11-12: Not answered reads as the empty hint; nothing lit */
.kb-rq-meta { display: inline-flex; align-items: center; gap: var(--kb-px-6); white-space: nowrap; }
.kb-rq-markall, .kb-eo-clear { background: none; border: 0; padding: 0; font: inherit; font-size: var(--font-size-body-md); font-weight: 500; color: var(--cyan-600); cursor: pointer; }   /* quiet text button: Mark all, and Clear on an optional Either / or */
.kb-rq-markall:hover, .kb-eo-clear:hover { text-decoration: underline; }
.kb-rq-markall:focus-visible, .kb-eo-clear:focus-visible { text-decoration: underline; outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.kb-rq-dot { color: var(--slate-300); }
.kb-rq-group { gap: 0 !important; }

/* C5 Supplier and on-file document row */
.kb-supplier { display: flex; flex-direction: column; gap: var(--kb-px-14); padding: var(--kb-px-14) var(--space-4) var(--space-6); border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--white); }
.kb-supplier + .kb-supplier { margin-top: var(--kb-px-2); }
.kb-supplier__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: calc(-1 * var(--kb-px-14)) calc(-1 * var(--space-4)) var(--kb-px-2); padding: var(--kb-px-10) var(--space-4); background: var(--slate-50); border-bottom: 1px solid var(--border-color); border-radius: var(--kb-radius-9) var(--kb-radius-9) 0 0; font-size: var(--font-size-body-sm); font-weight: 600; color: var(--slate-800); }
.kb-supplier__who { font-size: var(--font-size-caption); font-weight: 500; color: var(--text-secondary); }
.checklist-item.resolved .kb-supplier--done { background: transparent; border: 0; border-radius: 0; padding: 0 0 var(--space-4); gap: var(--kb-px-10); }
.checklist-item.resolved .kb-supplier--done:last-of-type { padding-bottom: 0; }
.checklist-item.resolved .kb-supplier--done { margin-top: 0; padding-top: var(--kb-px-6); border-top: 1px solid var(--border-color); }
.checklist-item.resolved .kb-supplier--done .kb-supplier__head { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; color: var(--text-primary); }
.checklist-item.resolved .kb-supplier--done .kb-supplier__who { color: var(--text-primary); }
.kb-supplier__head--assign { align-items: center; padding-top: var(--kb-px-6); padding-bottom: var(--kb-px-6); }
.kb-supplier__head--assign { display: flex; align-items: center; justify-content: flex-start; }
.kb-supplier--checked { background: var(--success-light); border-color: var(--success-30); }
.kb-supplier--checked .kb-supplier__head { background: transparent; border-bottom-color: var(--teal-800-16); }
.kb-supplier { padding: 0; border: 0; border-radius: 0; background: transparent; gap: var(--space-3); }
.kb-supplier__head, .kb-supplier__head--assign { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.kb-supplier--checked { background: transparent; border: 0; }
.kb-supplier--checked > :not(.kb-supplier__head) { background: var(--success-light); padding: var(--kb-px-10) var(--space-3); border-radius: var(--radius-sm); }
.kb-supplier--checked > .kb-prefill-note { display: none; }
.kb-step { display: flex; flex-direction: column; gap: var(--space-2); }
.kb-step + .kb-step { margin-top: var(--space-2); }
.kb-step__label { display: flex; align-items: center; gap: var(--kb-px-10); font-size: var(--font-size-body-sm); font-weight: 600; color: var(--text-primary); }
.kb-step__n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--slate-100); color: var(--slate-600); font-size: var(--font-size-caption); font-weight: 600; flex-shrink: 0; }
.kb-step__hint { margin: 0; font-size: var(--font-size-body-md); line-height: 1.4; color: var(--text-secondary); }
.kb-step .file-preview, .kb-step .file-drop-zone__field { margin: 0; }
.kb-sec-title { flex: 1; min-width: 0; font-size: var(--font-size-body-sm); font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-supplier__head--nested { flex-wrap: wrap; row-gap: var(--space-2); }
.kb-supplier__head--nested > .kb-sec-title { flex: 1 1 8rem; }
.kb-supplier:not(.kb-supplier--checked) > .kb-supplier__head--nested ~ .checklist-answer { padding: 0; }   /* a nested task's answers sit flush with its head (SSOT 4.56); the builder's section answers keep the .checklist-answer inset */
.checklist-answer:has(+ .checklist-answer[data-nested-tasks]) { padding-bottom: var(--space-4); }   /* the seam between a parent's own answers and its nested tasks is one 16px flow gap, as on board 14 (SSOT 4.56) */

/* B modifiers */
.file-drop-zone--compact { display: flex; align-items: center; gap: var(--kb-px-14); width: 100%; box-sizing: border-box; padding: var(--kb-px-14) var(--space-4); border: 2px dashed var(--border-color); border-radius: var(--radius-md); background: var(--slate-50); color: var(--slate-600); font-family: inherit; text-align: left; cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.file-drop-zone--compact:hover, .file-drop-zone--compact:focus-visible { border-color: var(--cyan-500); background: var(--cyan-500-04); outline: none; }
.file-drop-zone--compact.dragging { border-style: solid; border-color: var(--cyan-500); background: var(--cyan-500-08); }
.file-drop-zone--compact .file-drop-zone-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--text-muted); display: inline-flex; }
.file-drop-zone--compact:hover .file-drop-zone-icon { color: var(--cyan-500); }
.file-drop-zone--compact.file-drop-zone--static { cursor: default; }
.file-drop-zone--compact.file-drop-zone--static:hover { border-color: var(--border-color); background: var(--slate-50); }
.file-drop-zone--compact.file-drop-zone--static:hover .file-drop-zone-icon { color: var(--text-muted); }
.file-drop-zone--compact .file-drop-zone-icon svg { width: 28px; height: 28px; }
.file-drop-zone--compact .file-drop-zone-title { display: block; font-size: var(--font-size-body-sm); font-weight: 500; color: var(--slate-700); }
.file-drop-zone--compact .file-drop-zone-hint { display: block; font-size: var(--font-size-caption); color: var(--text-secondary); margin-top: var(--kb-px-2); }
/* Inside .wizard-form-modal-overlay (task builder) the overlay's full-size zone (wizard-form-modal.css, 0,2,0 to 0,4,0) outranks this modifier: restate compact one class stronger. Hover, focus and dragging keep the overlay's values, which match compact. */
.wizard-form-modal-overlay .file-drop-zone.file-drop-zone--compact { margin-bottom: 0; padding: var(--kb-px-14) var(--space-4); border-radius: var(--radius-md); color: var(--slate-600); text-align: left; }
.wizard-form-modal-overlay .file-drop-zone--compact.file-drop-zone--static { cursor: default; }
.wizard-form-modal-overlay .file-drop-zone--compact:not(:hover, :focus-visible, .dragging), .wizard-form-modal-overlay .file-drop-zone--compact.file-drop-zone--static:hover { border-color: var(--border-color); background: var(--slate-50); }
.wizard-form-modal-overlay .file-drop-zone--compact .file-drop-zone-icon { width: 28px; height: 28px; margin: 0; }
.wizard-form-modal-overlay .file-drop-zone--compact:not(:hover, :focus-visible, .dragging) .file-drop-zone-icon, .wizard-form-modal-overlay .file-drop-zone--compact.file-drop-zone--static:hover .file-drop-zone-icon { color: var(--text-muted); }
.wizard-form-modal-overlay .file-drop-zone--compact .file-drop-zone-icon svg { width: 28px; height: 28px; }
.wizard-form-modal-overlay .file-drop-zone--compact .file-drop-zone-title { font-size: var(--font-size-body-sm); color: var(--slate-700); margin-bottom: 0; }
.wizard-form-modal-overlay .file-drop-zone--compact .file-drop-zone-hint { font-size: var(--font-size-caption); }
.kb-added-mark { display: inline-flex; margin-left: auto; padding-left: var(--space-2); color: var(--text-muted); flex-shrink: 0; align-self: center; }
.kb-prefill-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); border: 1px solid var(--teal-800-16); border-radius: var(--radius-sm); background: var(--success-light); font-size: var(--font-size-body-sm); line-height: 1.4; color: var(--slate-700); }
.kb-prefill-strip strong { color: var(--text-primary); font-weight: 600; }
.kb-prefill-strip .kb-btn { flex-shrink: 0; }
.kb-prefilled { animation: kb-prefill-in 1.4s ease-out both; margin-left: calc(-1 * var(--space-2)); margin-right: calc(-1 * var(--space-2)); padding: var(--space-1) var(--space-2); border-radius: var(--radius-xs); }
.kb-prefilled[role="button"] { cursor: text; }
.kb-prefilled[role="button"]:hover, .kb-prefilled[role="button"]:focus-visible { background: var(--cyan-400-12); outline: none; }
.kb-prefilled .kb-owner-pencil { width: 14px; height: 14px; color: var(--text-muted); opacity: 0; transition: opacity 120ms ease-out; }
.kb-prefilled[role="button"]:hover .kb-owner-pencil, .kb-prefilled[role="button"]:focus-visible .kb-owner-pencil { opacity: 1; }
.kb-diverged { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--warning-light); border: 1px solid var(--warning-15); font-size: var(--font-size-caption); color: var(--slate-800); }   /* the owner, 2026-11-11: the data-collision notice is the DS warning strip */
.kb-strip { border-radius: var(--radius-sm); }
.kb-strip-close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text-secondary); cursor: pointer; flex-shrink: 0; }
.kb-strip-close:hover, .kb-strip-close:focus-visible { color: var(--cyan-500); background: var(--cyan-400-12); outline: none; }

/* Companion looks */
.kb-table { font-size: var(--font-size-body-sm); }
.kb-table td { padding: var(--kb-px-14) var(--space-4); border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--slate-700); }
.kb-table td:first-child { color: var(--text-primary); font-weight: 600; }
.kb-pair { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px dashed var(--border-color); border-radius: var(--radius-sm); font-size: var(--font-size-body-md); color: var(--slate-700); }   /* board 06-D1 :75 pair line; recipe from gold typed-tasks-shell.css:110 */
.kb-pair .kb-btn.active { border-color: var(--cyan-500); color: var(--cyan-600); background: var(--cyan-400-12); }
.huddle-actions .kb-kebab { width: 40px; height: 40px; min-width: 40px; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--white-10); border: 1px solid transparent; border-radius: var(--radius-sm, var(--radius-sm)); cursor: pointer; color: var(--white); font-family: inherit; }
.huddle-actions .kb-kebab:hover, .huddle-actions .kb-kebab:focus-visible { background: var(--summary-metric-accent-hover-bg); border-color: var(--cyan-500); color: var(--cyan-500); }
.huddle-actions .kb-kebab svg { width: 20px; height: 20px; display: block; }
/* Answers fold (E4, the owner's ruling of Nov 13, 2026, 10:32 AM PT): the row is the control; the chevron shows the state. */
.kb-item-main--toggle { --thread-toolbar-count: 2; cursor: pointer; transition: background-color var(--duration-fast); }
.kb-item-main--toggle:hover:not(:has(.kb-kebab:hover)) { background: var(--cyan-400-12); }
.kb-item-main--toggle:hover:not(:has(.kb-kebab:hover)) .kb-item-chev { color: var(--cyan-500); }
.checklist-item:has(> .kb-item-main--toggle:hover):not(:has(.kb-kebab:hover)) { box-shadow: 0 0 0 1px var(--cyan-500); }
.kb-cl-group .kb-table, .kb-tasks .kb-table { table-layout: fixed; width: 1088px; min-width: 100%; }
.kb-cl-group .kb-table td, .kb-tasks .kb-table td { white-space: nowrap; }
.kb-cl-group .kb-table td.kb-cell-name, .kb-tasks .kb-table td.kb-cell-name { overflow: hidden; text-overflow: ellipsis; }
.kb-cl-group .kb-table th:nth-child(4), .kb-cl-group .kb-table td:nth-child(4),
.kb-cl-group .kb-table th:nth-child(5), .kb-cl-group .kb-table td:nth-child(5),
.kb-tasks .kb-table th:nth-child(4), .kb-tasks .kb-table td:nth-child(4) { text-align: center; }
.kb-cl-group .kb-table th:nth-child(6), .kb-cl-group .kb-table td:nth-child(6),
.kb-tasks .kb-table th:nth-child(5), .kb-tasks .kb-table td:nth-child(5) { text-align: left; }
.kb-cl-group .kb-table th:not(:first-child), .kb-cl-group .kb-table td:not(.kb-cell-name),
.kb-tasks .kb-table th:not(:first-child), .kb-tasks .kb-table td:not(.kb-cell-name) { padding-left: var(--space-3); padding-right: var(--space-3); }
.kb-cl-group .kb-table th, .kb-tasks .kb-table th { box-sizing: border-box; }
.kb-cl-group .kb-table td:last-child, .kb-tasks .kb-table td:last-child { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.kb-empty .kb-btn { margin-top: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); }
/* SSOT 4.55 field width by kind (rulings row 21, B10). The card sets data-kind to the field's kind. :where keeps a fill row (.kb-row--fill) full width. */
.kb-ff:where([data-kind="short_text"], [data-kind="email"], [data-kind="organization"], [data-kind="person"]),
.kb-headed:where([data-kind="choice"]) { max-width: var(--field-width-name); }
.kb-ff:where([data-kind="money"], [data-kind="percent"], [data-kind="number"]) { max-width: var(--field-width-money); }
.kb-ff:where([data-kind="phone"]) { max-width: var(--field-width-phone); }
.kb-ff:where([data-kind="date"]) { max-width: var(--field-width-date); }
/* SSOT 4.53 phone (DSE PR-779 M4): at 480px and below the address row goes to one column. Copied from the DSE-stamped Gold
   M05 390 board (dse/reviews/gold-m05-2026-11-16/snapshot-1358, M05-guarantee-of-completion--open-390.html :20 and :25). */
@media (max-width: 480px) {
  /* 390 (LEAF-SCOPES Group G): a field's supplier drops onto its own line under the label instead of squeezing it. */
  .kb-spec-row:has(> .kb-spec-by) { flex-wrap: wrap; row-gap: var(--space-1); }
  .kb-spec-row > .kb-spec-by { flex-basis: 100%; text-align: left; white-space: normal; }
  .checklist-answer .form-row.kb-addr-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  /* Board P1 phone doc cards (DSE PASS (WARN) 207d5e76e60c, recipe W4 TYPED-FIELD-LABEL-FIT with PATCH ASK6; OPEN-WORK TYPED-FIELD-LABEL-FIT R4):
     at 480px and below answers keep the 52px indent the board draws; each label sits above its control and wraps at word
     boundaries instead of running past the screen; controls take the column width, except a date, which keeps
     --field-width-date (R-0085). The :has(...) selector matches the shared filled-label rule's weight so the label stays put. */
  .checklist-answer .kb-ff:not([data-kind="date"]), .checklist-answer .kb-headed:not([data-kind="date"]) { max-width: none; }
  .checklist-answer .form-field { display: flex; flex-direction: column; }
  .checklist-answer .form-field:has(input.form-field__control, textarea.form-field__control) > .form-field__label { order: -1; position: static; transform: none; max-width: none; margin: 0 0 var(--space-1); padding: 0; font-size: var(--font-size-body-sm); white-space: normal; overflow-wrap: normal; word-break: normal; text-overflow: clip; overflow: visible; background: transparent; }
  .checklist-answer .form-field > .date-field__trigger { top: auto; bottom: calc(var(--space-12) / 2); transform: translateY(50%); }
  /* 390 (undrawn): an open builder item's head extras (Preview as the responder) wrap under the title; the kebab stays on the title line. .kb-field-row__main renders only when the item is open (TemplateItem.tsx:89). */
  .kb-field-row__main { flex-wrap: wrap; }
  .kb-field-row__main > .kb-preview-toggle { order: 1; flex-basis: 100%; margin-right: 0; padding-left: var(--space-8); }
  /* 390 (DSE recount 4dd39aa1f :59-61): a requirement's word and switch drop under its label instead of pushing the builder card past the dialog edge; field kinds go two across so a long kind name fits its button. */
  .kb-rq-row { flex-wrap: wrap; row-gap: var(--space-1); }
  .kb-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The Requirements head: the title keeps the full line and Mark all met with the count wraps under it, so the title is never squeezed to nothing. */
  .kb-rq-group .checklist-answer__group-head { grid-template-columns: minmax(0, 1fr); }
  .kb-rq-group .kb-rq-meta { grid-column: 1; grid-row: 2; flex-wrap: wrap; white-space: normal; }
  /* The count takes its own line with no dot before it; Mark all met and Clear stay together above it (Designer M1, DSE PR-993 note). */
  .kb-rq-group .kb-rq-meta > .kb-rq-dot:nth-last-child(2) { display: none; }
  .kb-rq-group .kb-rq-meta > :last-child { flex-basis: 100%; }
  /* 390 (undrawn, surface spec :8): every builder body, in the builder modal and in a checklist editor row, stacks its card over Add a field, as the proposed 390 gold D2-composed-editor--split-20-390.png does. One rule for both hosts (DSE W5). */
  .kb-builder-body { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
}

/* In-card file chip (SSOT 4.48, line 76 request page P4): the sender's document row in a task answer block.
   Moved from the gold shell demo/gc/vpfinance/checklists/typed-tasks-shell.css (9.2), text colors as the text tokens
   (--text-primary = --slate-900, --text-secondary = --slate-500), so the app and Gold draw one chip.
   The upload modal keeps its own larger chip under .upload-modal (kuhlman-components.css), so this one is
   scoped to its host, the answer block (line 76 M1), and never reaches another route's .file-preview.
   The name's box takes no width of its own (contain: inline-size), so a long nowrap name never widens the
   card, column or page; the chip's width comes from its host and the name cuts with an ellipsis (M2). */
.checklist-answer .file-preview { display: flex; min-width: 0; align-items: center; gap: var(--space-3); padding: var(--kb-px-10) var(--space-3); background: var(--slate-50); border-radius: var(--radius-sm); }
.checklist-answer .file-preview-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--white); border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.checklist-answer .file-preview-icon svg { width: 20px; height: 20px; color: var(--cyan-500); }
.checklist-answer .file-preview-info { flex: 1; min-width: 0; contain: inline-size; }
.checklist-answer .file-preview-name { font-size: var(--font-size-body-sm); font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checklist-answer .file-preview-meta { font-size: var(--font-size-caption); color: var(--text-secondary); margin-top: var(--kb-px-2); }
.checklist-answer .file-preview-remove { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: var(--radius-xs); color: var(--text-secondary); cursor: pointer; }
.checklist-answer .file-preview-remove:hover { background: var(--slate-100); color: var(--slate-800); }
/* At phone width the whole file name wraps instead of being cut (L76 board P3, DSE S5 spec "File names"). */
@media (max-width: 480px) {
  .checklist-answer .file-preview-name { white-space: normal; overflow-wrap: anywhere; }
}
