/* Shared components for the professional modules. Same tokens and rhythm as styles.css. */

/* ---------- Status colours for the new value lists ---------- */
.v-confirmed, .v-approved, .v-signed, .v-fixed-verified, .v-fixed, .v-valid, .v-published, .v-acknowledged, .v-achieved, .v-detected, .v-received, .v-won, .v-completed, .v-imported, .v-validated { color: var(--good); border-color: #2b6b5d; }
.v-pending-review, .v-in-review, .v-under-review, .v-fix-claimed, .v-retest-requested, .v-partially-fixed, .v-partially-achieved, .v-partially-detected, .v-scheduled, .v-qa, .v-reporting, .v-scoping, .v-prepared, .v-pending, .v-processing, .v-needs-more-info, .v-needs-review, .v-candidate, .v-sent, .v-proposal-sent, .v-negotiation, .v-waiting-for-client, .v-requested { color: var(--warn); border-color: #6b5a39; }
.v-changes-requested, .v-still-vulnerable, .v-blocked, .v-expired, .v-revoked, .v-not-detected, .v-lost, .v-not-achieved, .v-missed, .v-critical, .v-urgent, .v-notified, .v-restricted { color: var(--bad); border-color: #774153; }
.v-in-report, .v-delivered, .v-authorized, .v-planned, .v-observed, .v-qualified, .v-discovery, .v-internal, .v-confidential, .v-in-progress, .v-retesting { color: var(--accent); }
.v-rejected, .v-superseded, .v-false-positive, .v-accepted-risk, .v-not-retested, .v-not-submitted, .v-not-tested, .v-unverified, .v-unknown, .v-cancelled, .v-retired, .v-rolled-back, .v-not-applicable, .v-withdrawn, .v-original, .v-public, .v-draft, .v-new-lead, .v-prospect, .v-inactive, .v-not-attempted { color: var(--muted); }
.v-annotated, .v-redacted, .v-inferred, .v-informative { color: var(--violet); border-color: #4f4a7a; }
.ok-text { color: var(--good); } .bad-text { color: var(--bad); } .warn-text { color: var(--warn); }
.chip.v-blocked[aria-pressed=true], .chip.v-still-vulnerable[aria-pressed=true], .chip.v-changes-requested[aria-pressed=true], .chip.v-false-positive[aria-pressed=true] { background: #3a1822; border-color: var(--bad); color: var(--bad); }
.chip.v-fixed[aria-pressed=true], .chip.v-approved[aria-pressed=true], .chip.v-confirmed[aria-pressed=true], .chip.v-valid[aria-pressed=true] { background: #0f3a33; border-color: var(--good); color: var(--good); }
.chip.v-partially-fixed[aria-pressed=true], .chip.v-pending-review[aria-pressed=true], .chip.v-fix-claimed[aria-pressed=true], .chip.v-accepted-risk[aria-pressed=true], .chip.v-inconclusive[aria-pressed=true] { background: #3a3220; border-color: var(--warn); color: var(--warn); }
.test-tile.res-blocked { border-left-color: var(--warn); }
.test-tile.res-inconclusive, .test-tile.res-needs-review { border-left-color: var(--violet); }

/* ---------- Navigation: "More" menu, alerts and status button ---------- */
.nav-more { display: none; }
.nav-more-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-height: 52px; padding: 6px 2px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: .68rem; }
.nav-more-btn.is-current { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.nav-more-btn b { font-weight: 500; }
.bell { position: relative; font-size: 1.1rem; }
.dot-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: var(--deep); font: 700 10px/18px var(--mono); text-align: center; }
.alerts-menu { width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; }
.menu-title { padding: 8px 12px 6px; color: var(--accent); font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.menu-more { padding: 8px 12px; }
.alert-item { align-items: flex-start !important; line-height: 1.45; }
.alert-item.seen { color: var(--muted) !important; }
.alert-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.lvl-bad .alert-dot { background: var(--bad); } .lvl-warn .alert-dot { background: var(--warn); } .lvl-info .alert-dot { background: var(--accent); }
.status-button { cursor: pointer; font-size: 11px; }
.status-button:hover { border-color: var(--accent); }
.menu [role=menuitem][aria-current=true] { color: var(--accent); }
.menu [role=menuitem] small { margin-left: auto; }

/* ---------- Banners ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px var(--pad-sm); border: 1px solid #2c5874; border-left: 3px solid var(--accent); border-radius: var(--radius); background: #0b2335; font-size: .9rem; }
.banner.tone-bad { border-color: #774153; border-left-color: var(--bad); background: #2a1520; }
.banner.tone-warn { border-color: #6b5a39; border-left-color: var(--warn); background: #2a2417; }
.banner b { margin-right: 6px; }
.calm-box { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }

/* ---------- Data tables (stack into cards on phones) ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #061421; }
.dtable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.dtable th { padding: 11px 16px; background: #0a1f30; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.dtable td { padding: 11px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle; min-width: 0; }
.dtable tbody tr:hover { background: #0e263a; }
.dtable td:first-child { width: 38%; }
.cell-link { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.cell-link:hover .cell-main b, .cell-link:focus-visible .cell-main b { color: var(--accent); }
.cell-check { width: 44px; text-align: center; }
.check-cell { display: inline-flex; padding: 6px; cursor: pointer; }
.trail { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cvss-mini { font: 11px var(--mono); color: var(--muted); }
.inline-select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .8rem; }
.bulk-row { flex: 1 1 auto; }
.bulk-row select { min-width: 180px; }

/* ---------- Cards, facts and detail tabs ---------- */
.rcard { display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--ink); font: inherit; }
button.rcard { cursor: pointer; }
button.rcard:hover { border-color: var(--accent); box-shadow: 0 10px 30px #00000030, 0 0 0 1px #7ecfff22; }
.rcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.rcard-head .row { gap: 4px; flex: none; }
.rcard h3 { font-size: 1.02rem; min-height: 2.8em; }
.rcard p { font-size: .85rem; min-height: 4.5em; }
.rcard-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid #203c51; font-size: .75rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; margin: 0; }
.facts div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #071827; }
.facts dt { color: var(--muted); font-size: .72rem; }
.facts dd { margin-top: 3px; font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.dtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dtabs a:hover { color: var(--ink); }
.dtabs a[aria-current=page] { color: var(--accent); border-bottom-color: var(--accent); }
.fx-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fx-side .chips .chip { min-height: 30px; padding: 3px 10px; font-size: .75rem; }
.fx-tab { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fx-block { display: flex; flex-direction: column; gap: 10px; }
.fx-block h3 { font-size: .85rem; color: var(--accent); }
.fx-block .panel-head { min-height: 0; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.form-foot > .hint { margin-right: auto; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.field-label-row label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.form-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.toggle-field { justify-content: center; }
.check-chips .chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chips .chip { position: relative; }
.check-chips .chip:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stepper-cards.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.list-row.as-link { width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; font: inherit; text-align: left; cursor: pointer; }
dialog > .modal-form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.list-row.as-link:hover b { color: var(--accent); }
.list-row.as-link:last-child { border-bottom: 0; }
code.ref, .hash { font: 12px var(--mono); color: var(--accent); overflow-wrap: anywhere; }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #12324a; color: var(--accent); font: 700 10px var(--mono); }
.kcard.is-blocked { border-color: #774153; box-shadow: inset 3px 0 var(--bad); }
.code-block { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--deep); color: #c6dcee; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.clamp-code-lg { max-height: 18em; overflow: hidden; }

/* ---------- Editable rows inside forms ---------- */
.rows-widget { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { padding: 4px 6px; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.mini-table td { padding: 4px 6px 4px 0; vertical-align: middle; }
.mini-table input:not([type=checkbox]), .mini-table select { min-height: 38px; padding: 6px 8px; font-size: .85rem; }
.mini-table td:last-child { width: 40px; }

/* ---------- Authorization and scope guard ---------- */
.auth-state { display: flex; align-items: center; gap: 14px; padding: var(--pad-sm) var(--pad); border: 1px solid var(--line); border-left: 3px solid var(--good); border-radius: var(--radius); background: #071827; }
.auth-state.bad { border-left-color: var(--bad); background: #1d121a; }
.auth-state b { font-size: 1rem; }
.auth-state p { font-size: .85rem; margin-top: 2px; }
.auth-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #0f3a33; color: var(--good); font-size: 1.1rem; }
.auth-state.bad .auth-icon { background: #3a1822; color: var(--bad); }
.auth-fields { margin-top: 14px; }
.guard { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; white-space: nowrap; }
.guard.ok { color: var(--good); } .guard.warn { color: var(--warn); } .guard.bad { color: var(--bad); }

/* ---------- Schedule (timeline) ---------- */
.gantt { display: flex; flex-direction: column; gap: 10px; }
.gantt-scale { display: flex; justify-content: space-between; margin-left: 200px; color: var(--muted); font: 11px var(--mono); }
.gantt-body { position: relative; display: flex; flex-direction: column; gap: 6px; }
.gantt-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 28px; }
.gantt-label { font-size: .82rem; color: var(--ink); }
.gantt-track { position: relative; height: 22px; border-radius: 6px; background: #071a29; }
.gantt-bar { position: absolute; top: 3px; height: 16px; padding: 0; border: 0; border-radius: 5px; background: var(--accent); cursor: pointer; }
.gantt-bar.is-project { background: linear-gradient(90deg, #2a6f99, var(--accent)); cursor: default; }
.gantt-bar.st-done { background: var(--good); } .gantt-bar.st-review { background: var(--warn); } .gantt-bar.st-backlog { background: #4f6f86; }
.gantt-dot { position: absolute; top: 3px; width: 16px; height: 16px; margin-left: -8px; padding: 0; border: 2px solid var(--deep); border-radius: 3px; background: var(--accent); transform: rotate(45deg); cursor: pointer; }
.gantt-dot.ms-done { background: var(--good); } .gantt-dot.ms-missed { background: var(--bad); }
.gantt-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--warn); opacity: .6; pointer-events: none; }

/* ---------- Red team ---------- */
.attack-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.attack-cell { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font: 12px var(--mono); background: #071827; }
.attack-cell.seen { border-color: #2b6b5d; color: var(--good); }
.attack-cell.gap { border-color: #774153; color: var(--bad); }
.attack-cell.untested { color: var(--muted); }

/* ---------- Imports ---------- */
.import-summary { display: flex; flex-direction: column; gap: 10px; padding: var(--pad-sm); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #061421; }
.import-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; }
.import-list li { display: flex; align-items: baseline; gap: 8px; }
#scan-preview, #rem-preview { margin-top: 12px; }

/* ---------- Notes ---------- */
.notes-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap); }
.notes-nav { display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #061421; align-self: start; }
.note-item { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); font-size: .86rem; text-decoration: none; }
.note-item:hover { background: #0e263a; }
.note-item[aria-current=true] { background: #12324a; box-shadow: inset 3px 0 var(--accent); }
.note-item.quick { font-weight: 600; }
.note-item.depth-1 { padding-left: 24px; } .note-item.depth-2 { padding-left: 38px; } .note-item.depth-3 { padding-left: 52px; }
.notes-editor { display: flex; flex-direction: column; gap: 12px; }
.notes-editor textarea { min-height: 380px; font-size: .92rem; }

/* ---------- Audit ---------- */
.audit-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #061421; overflow: hidden; }
.audit-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: .85rem; }
.audit-row:first-child { border-top: 0; }
.audit-time { color: var(--muted); font: 12px var(--mono); }

/* ---------- CVSS calculator and risk ---------- */
.cvss { display: flex; flex-direction: column; gap: 14px; padding: var(--pad-sm); border: 1px solid var(--line); border-radius: var(--radius); background: #061421; }
.cvss-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cvss-score { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.cvss-score b { font-size: 1.4rem; color: var(--ink); }
.cvss-score.sev-critical, .cvss-score.sev-high { border-color: #774153; } .cvss-score.sev-critical b, .cvss-score.sev-high b { color: var(--bad); }
.cvss-score.sev-medium { border-color: #6b5a39; } .cvss-score.sev-medium b { color: var(--warn); }
.cvss-score.sev-low b { color: var(--accent); }
.cvss-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px 20px; }
.cvss-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cvss-metric { display: flex; flex-direction: column; gap: 4px; }
.cvss-name { font-size: .8rem; color: var(--ink); cursor: help; }
.cvss-name small { color: var(--muted); font: 10px var(--mono); }
.cvss-metric .chip { min-height: 28px; padding: 2px 10px; font-size: .74rem; }
.cvss-badge { color: var(--ink); }
.risk-form { display: flex; flex-direction: column; gap: 16px; }
.risk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.risk-matrix { display: grid; grid-template-columns: 70px repeat(5, minmax(0, 1fr)); gap: 3px; font-size: .62rem; color: var(--muted); }
.rm-axis { grid-column: 1 / -1; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rm-xt { text-align: right; }
.rm-label { display: flex; align-items: center; min-height: 26px; line-height: 1.2; }
.rm-x { justify-content: center; text-align: center; }
.rm-cell { min-height: 26px; border-radius: 4px; opacity: .55; }
.rm-low { background: #1d4d43; } .rm-medium { background: #5c4d22; } .rm-high { background: #6a2c33; } .rm-critical { background: #8e2f3e; }
.rm-cell.is-here { opacity: 1; outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- Review, comments and writing checks ---------- */
.lint-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .86rem; }
.lint-list li { display: flex; align-items: flex-start; gap: 8px; }
.lint-box summary { cursor: pointer; font-size: .85rem; font-weight: 600; margin-top: 10px; }
.lint-box[open] summary { margin-bottom: 10px; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.comment { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #071827; }
.comment.reply { margin-left: 24px; }
.comment.resolved { opacity: .65; }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: .82rem; }
.comment-head .btn, .comment-head .badge { margin-left: auto; }
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-form .row { justify-content: flex-end; }
.comment-form select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .8rem; }

/* ---------- Attack scenarios ---------- */
.chain-card { display: flex; flex-direction: column; gap: 10px; }
.chain-steps { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; }
.chain-steps li.potential { color: var(--muted); font-style: italic; }
.chain-steps li::marker { color: var(--accent); }

/* ---------- Evidence vault additions ---------- */
.evidence-grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ev-badges { min-height: 22px; gap: 4px; }

/* ---------- Report builder ---------- */
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.report-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 360px; }
.report-title h2 { font-size: 1.3rem; }
.report-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.flow-step { padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; }
.flow-step.done { border-color: #2b6b5d; color: var(--good); }
.flow-step.current { border-color: var(--accent); color: var(--accent); background: #12324a; }
.flow-sep { color: var(--line); }
.report-builder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.section-list { display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #061421; }
.section-list > .btn { align-self: flex-start; margin-top: 6px; }
.section-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 2px 4px; border-radius: var(--radius-sm); }
.section-item.current { background: #12324a; box-shadow: inset 3px 0 var(--accent); }
.section-item.off .section-name { color: var(--muted); }
.section-item .toggle { min-height: 30px; justify-content: center; color: var(--muted); }
.section-name { display: flex; flex-direction: column; padding: 6px 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.section-name small { font-size: .68rem; }
.section-move { display: flex; }
.section-move .btn { min-width: 26px; min-height: 26px; }
.report-editor { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: var(--pad); border: 1px solid #203c51; border-radius: var(--radius); background: var(--surface); }
.section-form { display: flex; flex-direction: column; gap: 14px; }
.section-form .field + .field { margin-top: 0; }
.vars summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.vars[open] summary { margin-bottom: 8px; }
.vars .badge { cursor: pointer; background: #091a2a; }

/* ---------- Responsive ---------- */
@media (max-width: 1250px) {
  .stepper-cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .risk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .report-builder, .notes-layout { grid-template-columns: 1fr; }
  .notes-nav { flex-direction: row; flex-wrap: wrap; }
  .note-item[class*=depth-] { padding-left: 10px; }
  .gantt-row { grid-template-columns: 130px minmax(0, 1fr); }
  .gantt-scale { margin-left: 140px; }
}
@media (max-width: 720px) {
  .nav-secondary { display: none !important; }
  .nav-more { display: block; flex: 1; }
  .nav-more .menu { right: 0; bottom: calc(100% + 8px); top: auto; }
  .table-wrap { border: 0; background: none; overflow: visible; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable thead { display: none; }
  .dtable tr { margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #071827; }
  .dtable td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 0; }
  .dtable td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; flex: none; }
  .dtable td:first-child { width: 100%; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
  .dtable td:first-child::before { display: none; }
  .dtable td.cell-check { justify-content: flex-start; }
  .mini-table thead { display: none; }
  .mini-table, .mini-table tbody, .mini-table tr, .mini-table td { display: block; width: 100%; }
  .mini-table tr { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  .mini-table td { padding: 3px 0; }
  .mini-table td:last-child { width: auto; }
  .choice-cards.four, .form-grid.five { grid-template-columns: 1fr 1fr; }
  .stepper-cards.six { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
  .gantt-row { grid-template-columns: 1fr; gap: 4px; }
  .gantt-scale { margin-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .report-head .row { width: 100%; }
}
