/* Report import: the four binder tabs. Tokens and components come from /styles/binder.css. */
.tab[aria-current="page"] .tab-count { color: var(--ink); }

/* ---------- the company's cases ---------- */
.cases-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.cases-head h1 { margin-bottom: 0.25rem; }
.cases-head .lede { margin: 0; }
.cases-tools { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; padding: 1.125rem 1.25rem; margin-bottom: 1.25rem; background: var(--tint); border-radius: var(--radius); }
.cases-tools .case-search { flex: 1 1 20rem; margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--target); padding: 0.4rem 1rem; border: 2px solid var(--rule); border-radius: 0.5rem; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.filter-button:hover { background: var(--info-bg); }
.filter-button[aria-pressed="true"] { background: var(--shell); border-color: var(--shell); color: #fff; }
.case-count { margin: 0 0 0.5rem; }
.case-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-soft); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem 1.5rem; align-items: center; padding: 1.125rem 0.25rem; border-bottom: 2px solid var(--rule-soft); }
.case p { margin: 0; }
.case-name { font-size: var(--step-1); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.case-meta { color: var(--ink-soft); }
.case-side { display: grid; gap: 0.25rem; justify-items: start; }
.case-status-label { font-weight: 600; font-size: var(--step--1); color: var(--ink-soft); }
.case-status { width: auto; min-width: 12rem; }
.case-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; justify-content: flex-end; }
.empty-cases { display: grid; justify-items: start; gap: 0.75rem; padding: 1.5rem 1.25rem; background: var(--tint); border-radius: var(--radius); margin: 0; }
.empty-cases p { margin: 0; }
.cases-privacy { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1.5rem; max-width: 60ch; }
.cases-privacy .icon { margin-top: 0.2em; }
#rescue .notice { margin-bottom: 1.25rem; }
.rescue-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.rescue-list li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid currentColor; }
.rescue-list p { margin: 0; color: var(--ink); }
.back-row { margin: 0 0 0.75rem; }
.rename-form { display: grid; gap: 0.25rem; max-width: 34rem; }
.rename-form .field { margin: 0; }
.rename-form .actions { margin-top: 0.5rem; }
.confirm-delete { grid-column: 1 / -1; padding: 1rem 1.125rem; border: 2px solid var(--bad); border-radius: var(--radius); background: var(--bad-bg); }
.confirm-delete p { margin: 0; }
.confirm-delete .actions { margin-top: 0.75rem; }
.case-name-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0 0 1rem; padding: 0.75rem 1rem; background: var(--tint); border-radius: var(--radius); }
.case-name-row > p { margin: 0; font-size: var(--step-1); }
.case-name-label { color: var(--ink-soft); font-size: var(--step-0); }
.back-row .button { margin-inline-start: -0.75rem; }
nav[hidden] + .sheet { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
@media (width < 48rem) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-actions { justify-content: flex-start; }
  .cases-tools { padding: 1rem; }
}

/* ---------- a new case: the three starting points ---------- */
.start-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--gap); margin: 1.25rem 0; }
.start-choice { display: grid; align-content: start; gap: 0.5rem; text-align: left; padding: 1.125rem 1.25rem; min-height: 9rem; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.start-choice strong { font-size: var(--step-1); line-height: 1.25; }
.choice-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 0.75rem; background: var(--info-bg); color: var(--shell); }
.choice-icon .icon { width: 1.75rem; height: 1.75rem; }
.start-choice[aria-pressed="true"] .choice-icon { background: var(--shell); color: #fff; }
.start-choice .tag { justify-self: start; margin-top: 0.25rem; }
.start-choice:hover { background: var(--tint); }
.start-choice[aria-pressed="true"] { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -4px; background: var(--info-bg); }
.start-panel { border-top: 2px solid var(--rule-soft); padding-top: 1.25rem; }
.start-panel h2 { margin-top: 0; }

/* ---------- tab 1: report ---------- */
.dropzone { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; display: grid; justify-items: center; gap: 0.75rem; margin-top: var(--gap); }
.dropzone.over { border-color: var(--shell); background: var(--info-bg); }
.dropzone p { margin: 0; }
.dropzone-title { font-size: var(--step-1); font-weight: 600; }
.pdf-status { font-weight: 600; min-height: 1.5em; }
#pdf:focus-visible + .dropzone-title + label { outline: 3px solid var(--focus); outline-offset: 3px; }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0 2rem; }
.rates input { max-width: 10rem; }
details.model { border: 2px solid var(--rule-soft); border-radius: var(--radius); margin: 0 0 1rem; }
details.model > summary { min-height: var(--target); padding: 0.75rem 1.125rem; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; background: var(--tint); border-radius: calc(var(--radius) - 2px); }
details.model[open] > summary { border-bottom: 2px solid var(--rule-soft); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.model-name { font-weight: 800; }
details.model .table-wrap { border: 0; border-radius: 0; max-height: 70vh; }
table.cashflow th[scope="row"] { position: sticky; left: 0; background: var(--sheet); min-width: 15rem; z-index: 1; }
table.cashflow thead th:first-child { left: 0; z-index: 3; }
table.cashflow td { white-space: nowrap; }
table.cashflow tr.total th, table.cashflow tr.total td { font-weight: 800; background: var(--tint); }
td.flagged { background: var(--bad-bg); }
.cell-flag { display: block; font-weight: 800; color: var(--bad); }
/* Figures read by AI: shaded until the writer has compared them with the PDF (title gives page and words). */
td.ai-read { background: var(--info-bg); }
td.ai-read.flagged { background: var(--bad-bg); }
.ai-key { display: inline-block; width: 1.5em; height: 1em; vertical-align: -0.1em; background: var(--info-bg); border: 1px solid var(--rule); }
details.model > summary .tag { margin-inline-start: 0.5rem; }
.ai-review { padding: 1rem 1.125rem 1.25rem; border-top: 2px solid var(--rule-soft); display: grid; gap: 0.75rem; }
.ai-review > p { margin: 0; max-width: 70ch; }
.ai-review .field { margin: 0; }
.ai-review select { max-width: 12rem; }
.source-list li { padding-block: 0.5rem; }

/* ---------- tab 2: checks ---------- */
.verdict { font-size: var(--step-1); line-height: 1.45; max-width: 44ch; }
.figure.inline { font-size: 2.5rem; vertical-align: -0.15em; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .ask { color: var(--ask); }
.group > .section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.group-meta { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.findings { list-style: none; margin: 0; padding: 0; }
.finding { padding: 1.125rem; border-bottom: 1px solid var(--rule-soft); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.finding:last-child { border-bottom: 0; }
.finding.filing { opacity: 0; transform: translateY(-0.5rem) scale(0.98); }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.4rem; }
.finding-number { font-weight: 800; font-size: var(--step-1); }
.finding-text { font-size: var(--step-0); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin: 0 0 0.75rem; max-width: 46rem; }
.pair-side { display: grid; gap: 0.1rem; padding: 0.6rem 1rem; border: 2px solid var(--rule); background: #fff; }
.pair-side:first-child { border-radius: 0.5rem 0 0 0.5rem; }
.pair-side:last-child { border-radius: 0 0.5rem 0.5rem 0; text-align: right; }
.pair-side strong { font-size: var(--step-1); }
.pair-line { display: flex; align-items: center; padding: 0 1rem; border-block: 2px solid var(--bad); background: var(--bad-bg); color: var(--bad); font-weight: 800; text-align: center; }
.decide { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
details.decided { border-top: 2px solid var(--rule-soft); }
details.decided > summary { min-height: var(--target); padding: 0.6rem 1.125rem; cursor: pointer; font-weight: 600; display: flex; align-items: center; }
details.decided .rows { padding: 0 1.125rem; }
.decided-row { align-items: end; }
.decided-row .row-main { flex: 1 1 22rem; }
.decided-label { display: inline-flex; align-items: center; gap: 0.4rem; }
.decided-row .field { margin: 0; flex: 1 1 20rem; }
.aside-title { margin-top: 0; }
.figure-of { font-size: var(--step-1); font-weight: 600; }
.open-list { padding-left: 1.25rem; margin: 0; }
.open-list li { margin-bottom: 0.4rem; }

/* ---------- tab 3: components ---------- */
table.components { font-size: var(--step-0); }
table.components th, table.components td { padding-inline: 0.6rem; }
table.components thead th, table.components thead th.num, table.components td.num { white-space: normal; }
table.components thead th { vertical-align: bottom; }
table.components td.derived { min-width: 7.5rem; }
table.components tr.category th { background: var(--tint); font-weight: 800; font-size: var(--step--1); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }
table.components tbody th[scope="row"] { min-width: 10rem; max-width: 14rem; }
.component-number { display: block; font-weight: 800; color: var(--tab-components); }
.component-name { display: block; font-weight: 800; }
table.components tbody th .small { display: block; }
table.components tbody th .button.ghost { white-space: nowrap; padding-inline: 0.4rem; margin-inline-start: -0.4rem; }
.input-cell .cell { display: grid; gap: 0.25rem; justify-items: end; }
.input-cell input { width: 7.5rem; text-align: right; }
.input-cell input.short { width: 4.75rem; }
.cell-note { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 0.5rem; max-width: 9rem; }
.cell-note .field-error { font-size: var(--step--1); text-align: left; }
input.changed { border-color: var(--info); background: var(--info-bg); font-weight: 600; }
td.derived { background: var(--tint); }
td.derived strong { display: block; font-size: var(--step-0); }
td.derived .small { display: block; }
.key-figure { font-size: var(--step-1) !important; }
.match { color: var(--ok); }
.differs { color: var(--bad); font-weight: 600; }
tr.working[hidden] { display: none; }
tr.working > td { background: var(--info-bg); padding: 1.25rem; }
.working-body { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr); gap: 2rem; }
.working-body h3 { margin-top: 0; }
.build-fields { display: grid; gap: 0.5rem; }
.build-fields .cell { justify-items: start; }
.build-fields input { width: 10rem; }
.build-fields .cell-note { justify-content: flex-start; }
.steps { margin: 0; padding-left: 1.5rem; display: grid; gap: 0.75rem; }
.steps li { display: grid; gap: 0.1rem; }
.formula { color: var(--ink-soft); }
.with b { font-size: var(--step-1); }
tfoot th, tfoot td { border-top: 2px solid var(--ink); font-weight: 800; }

/* ---------- tab 4: export ---------- */
.files .row-main { flex: 1 1 26rem; }

/* ---------- phone (Q6L: computer first; the phone shows report and checks) ---------- */
.phone-only { display: none; }
@media (width < 48rem) {
  .phone-only { display: grid; }
  .wide-only { display: none; }
  #count-report { display: none; }
  /* Checks: the review summary right after the verdict, before 19 findings. */
  .checks-main { display: contents; }
  .checks-main > h1, .checks-main > .verdict { order: 0; }
  #checks .sheet-grid > aside { order: 1; border-top: 0; padding-top: 0; border-bottom: 2px solid var(--rule-soft); padding-bottom: 1rem; margin-bottom: 1rem; }
  .checks-main > :not(h1, .verdict) { order: 2; }
  .pair { grid-template-columns: 1fr; }
  .pair-side, .pair-side:first-child, .pair-side:last-child { border-radius: 0; text-align: left; }
  .pair-side:first-child { border-radius: 0.5rem 0.5rem 0 0; }
  .pair-side:last-child { border-radius: 0 0 0.5rem 0.5rem; }
  .pair-line { border-block: 0; border-inline: 2px solid var(--bad); padding: 0.4rem 1rem; }
  .working-body { grid-template-columns: 1fr; }
}

/* ---------- a new building: details and adding components ---------- */
.building-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0 2rem; }
/* The fields in a row line up label with label, box with box and hint with hint, however their labels
   wrap: each field takes four rows of the grid (label, box, hint, error) and shares them (subgrid). */
.building-grid .field { max-width: none; grid-row: span 4; grid-template-rows: subgrid; }
.building-grid input.short { max-width: 14rem; }
.add-components { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 2px solid var(--rule-soft); border-radius: var(--radius); }
.add-components h2 { margin-top: 0; }
.add-components > .actions { margin-top: 0.5rem; }
.add-components [aria-expanded="true"] { background: var(--shell); color: #fff; }
.add-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid var(--rule-soft); }
.add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1.5rem; }
.add-grid .field { max-width: none; }
.common-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem 2rem; }
.common-group { border: 0; margin: 0; padding: 0; }
.common-group legend { font-weight: 800; font-size: var(--step-1); padding: 0; margin-bottom: 0.25rem; }
.common-group .check { font-weight: 400; }
.paste-field { max-width: 60rem; }
.paste-field textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--step--1); min-height: 10rem; }
.paste-preview { margin-top: 1rem; }
.paste-problems { margin: 0.25rem 0 1rem; }
table.components .todo-tag { display: inline-flex; margin: 0.25rem 0; }
.cell-note .todo { color: var(--ask); font-weight: 600; }
.cell-note .ai-source { flex-basis: 100%; text-align: right; color: var(--ink-soft); overflow-wrap: anywhere; } /* where AI read the figure (ai-merge.js) */
.build-fields .cell-note .ai-source { text-align: left; }

/* ---------- tab 4: funding plans ---------- */
.plan-chooser .button[aria-pressed="true"] { background: var(--shell); border-color: var(--shell); color: #fff; }
.plan-editor .year-block { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-soft); }
.plan-editor .year-block h3 { margin-top: 0; }
.year-list { list-style: none; margin: 0.5rem 0; padding: 0; }
.year-list li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--rule-soft); max-width: 40rem; }
.year-add { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: flex-end; margin-top: 0.5rem; }
.year-add .field { margin: 0; }
.year-add input.short, .year-add select { width: 10rem; }
table.compare tr.short th, table.cashflow-years tr.short th { color: var(--bad); }
table.compare th .tag { margin-inline-start: 0.5rem; }
table.cashflow-years td.key { font-weight: 800; }
table.cashflow-years tr.short td.key { color: var(--bad); }
table.compare thead th, table.cashflow-years thead th { white-space: normal; vertical-align: bottom; }
table.compare th, table.compare td, table.cashflow-years th, table.cashflow-years td { padding-inline: 0.55rem; }
table.cashflow-years tbody th { display: grid; justify-items: start; gap: 0.1rem; white-space: nowrap; }
table.cashflow-years tbody th .year { font-weight: 800; }
table.cashflow-years tbody th .button { padding-inline: 0.4rem; margin-inline-start: -0.4rem; }
table.compare .small.block, table.cashflow-years .small.block { display: block; }
.spending-list .row-main { display: grid; gap: 0.15rem; }
.event-editor { display: grid; gap: 0.5rem; padding: 1rem; border: 2px solid var(--shell); border-radius: var(--radius); }

/* ---------- the start screen: make a report, or check one (2026-11-29) ---------- */
.home-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--gap); margin: 0 0 2rem; }
.home-action { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 1rem; align-content: start; text-align: left; padding: 1.25rem 1.375rem; min-height: 8.5rem; border: 2px solid var(--rule); border-inline-start: 0.5rem solid var(--tab-final); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: background-color 150ms var(--ease); }
.home-action .choice-icon { grid-row: span 2; background: var(--tab-final); color: #fff; }
.home-action strong { font-size: var(--step-2); line-height: 1.2; }
.home-action > span:not(.choice-icon) { color: var(--ink-soft); }
#check-report { border-inline-start-color: var(--tab-checks); }
#check-report .choice-icon { background: var(--ask-bg); color: var(--ask); }
.home-action:hover { background: var(--tint); }
.cases-list-title { margin: 0 0 0.75rem; }

/* ---------- a five-year update ---------- */
.year-form { max-width: 40rem; margin-top: 0.75rem; padding: 1rem 1.125rem; border: 2px solid var(--rule-soft); border-radius: var(--radius); background: #fff; color: var(--ink); }
.year-form > p:first-child { margin-top: 0; }
.year-form .actions { margin-bottom: 0; }
.case-year { grid-column: 1 / -1; }
.since .rows .row-main .tag { justify-self: start; margin-top: 0.25rem; }
.since-actions { align-items: center; }
.since-actions select { width: auto; min-width: 7rem; }
.since-cost { font-weight: 600; }
.since-actions input.short { width: 10rem; }
.year-form input.short { max-width: 10rem; }
.since-actions .field-error { flex-basis: 100%; margin: 0; }
.inspection-pick { display: grid; justify-items: start; gap: 0.5rem; }
.inspection-ages h3 { margin-top: 1rem; }
.phone-inspections h3, .zip-inspection h3 { margin: 1.5rem 0 0.5rem; }
.phone-inspections .rows .row-main .tag { justify-self: start; margin-top: 0.25rem; }
.phone-inspections .confirm-delete { flex: 1 1 100%; }
.library-save-body:not(:empty) { margin-top: 0.75rem; }
.since-costs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule-soft); }
.small.brought { color: var(--ask); font-weight: 600; }

/* The made-up report to try StrataBinder on (sample-case.js): offered on the home screen, and said at the top while it is open. */
.sample-offer { margin: 0 0 2rem; }
.sample-offer .actions, .sample-banner .actions { margin: 0.5rem 0 0; }
.sample-banner { margin: 0 0 var(--gap); }

/* The reserve fund chart (js/import/balance-chart.js). The series colours are the dataviz skill's
   categorical slots in their fixed order, validated against the sheet colour (#fdfdfb): every check
   passes for lines; orange and aqua sit under 3:1, so every figure is also in the tables beside it. */
:root { --series-1: #257de0; --series-2: #f47230; --series-3: #00b894; --series-4: #f2a600; --series-5: #ee7fac; --series-6: #008a17; --series-7: #6a4ce2; --series-8: #ec4647; }
.bc-s1 { --c: var(--series-1); } .bc-s2 { --c: var(--series-2); } .bc-s3 { --c: var(--series-3); } .bc-s4 { --c: var(--series-4); }
.bc-s5 { --c: var(--series-5); } .bc-s6 { --c: var(--series-6); } .bc-s7 { --c: var(--series-7); } .bc-s8 { --c: var(--series-8); }
.bc { margin: 0 0 var(--gap); }
.bc-legend { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.bc-legend li, .bc-tip li { display: flex; align-items: center; gap: 0.6rem; }
.bc-key { flex: none; width: 1.75rem; border-top: 3px solid var(--c); border-radius: 2px; }
.bc-short { color: var(--bad); font-weight: 600; }
.bc-plot { position: relative; border-radius: var(--radius); }
.bc-plot:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.bc-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); font-size: 17px; }
.bc-grid line { stroke: var(--rule-soft); stroke-width: 1; }
.bc-zero line { stroke: var(--ink-soft); stroke-width: 1.5; }
.bc-grid text, .bc-year { fill: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bc-zero text { fill: var(--ink); font-weight: 800; }
.bc-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bc-end, .bc-dot { fill: var(--c); stroke: var(--sheet); stroke-width: 2; }
.bc-cross { stroke: var(--ink-soft); stroke-width: 1; }
.bc-tip { position: absolute; top: 0.5rem; left: 0; transform: translateX(1rem); min-width: 16rem; padding: 0.75rem 1rem; background: #fff; border: 2px solid var(--rule); border-radius: var(--radius); box-shadow: 0 4px 14px rgb(0 0 0 / 0.14); pointer-events: none; z-index: 2; }
.bc-tip.left { transform: translateX(calc(-100% - 1rem)); }
.bc-tip-year { margin: 0 0 0.4rem; font-weight: 800; }
.bc-tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.bc-tip li strong { font-variant-numeric: tabular-nums; min-width: 7.5rem; }
.bc-tip li span:last-child { color: var(--ink-soft); }
.bc figcaption { margin-top: 0.5rem; }

/* The reserve fund in past years (Funding tab). */
.history input.short { width: 8.5rem; text-align: right; }
.history td, .history th { vertical-align: top; }

/* What StrataBinder checked (Checks tab): what was recalculated, and what is the writer's to check. */
.scope-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.75rem; }
.scope-list li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; align-items: start; }
.scope-list li > .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; color: var(--ok); }
.scope-list.not li > .icon { color: var(--ink-soft); }
.scope-list .block { display: block; color: var(--ink-soft); }

/* Pasting a report's tables from a spreadsheet (js/import/paste-start.js). */
.paste-open { margin-top: var(--gap); }
.paste-open p { margin: 0 0 0.5rem; }
.paste-box { margin-top: var(--gap); padding: 1.25rem; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; }
.paste-form textarea { width: 100%; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1rem; white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 16; }
.paste-form .field:has(textarea) { max-width: none; } /* a pasted table needs the width of the page */
.paste-form fieldset { border: 0; padding: 0; margin: 0 0 var(--gap); }
.paste-form legend { font-weight: 800; font-size: var(--step-1); padding: 0; margin-bottom: 0.5rem; }
.paste-read p { margin: 0.4rem 0 0; }
.paste-read .ok { color: var(--ok); font-weight: 600; }
.paste-read .bad { color: var(--bad); font-weight: 600; }
.paste-problems { margin: 0.3rem 0 0; padding-left: 1.25rem; }
.paste-plan { padding: 1rem 1.25rem !important; border: 2px solid var(--rule-soft) !important; border-radius: var(--radius); }

/* The report set off the screen while it is read into a Word file (js/import/report-docx.js): the chart's colours come from the page. */
.docx-work { position: absolute; left: -12000px; top: 0; width: 816px; }

/* Who the report is for (doc-tab.js): the whole strata corporation, or one section. */
.scope-choices { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; max-width: 44rem; }
.scope-choice { display: flex; align-items: flex-start; gap: 0.9rem; min-height: 3.25rem; padding: 0.7rem 1rem; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; cursor: pointer; }
.scope-choice input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--shell); }
.scope-choice > span { display: grid; gap: 0.2rem; }
.scope-choice:has(input:checked) { border-color: var(--ink); background: var(--info-bg); }
