.work-surface { background: var(--panel); border-top: 1px solid var(--line); padding: 20px; min-width: 0; }







.prep-assign-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.prep-assign-filters label,.talent-experience-head label { display:grid; gap:6px; min-width:0; }
.prep-assign-filters > input { flex:1 1 220px; min-width:160px; }
.prep-assign-filters select { width:150px; max-width:100%; }
.prep-assign-filters input[type="date"] { width:158px; max-width:100%; }
.prep-assign-filters :is(input,select,.btn) { height:40px; }
.prep-assign-filters .hint { margin:0 0 10px; white-space:nowrap; }
.prep-manual-panel { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.prep-manual-panel[hidden] { display:none; }
.prep-manual-panel label { display:flex; align-items:center; gap:8px; min-width:0; }
.prep-manual-panel select { width:180px; max-width:100%; }
.prep-manual-panel .work-note { margin:0; }
.prep-manual-actions { display:flex; gap:8px; margin-left:auto; }
.prep-assignment-table [data-manual-auditor] .prep-match-reason { color:var(--brand); }
.work-dialog .prep-assignment-table { width:1100px; min-width:100%; table-layout:fixed; }
.work-dialog .prep-assignment-table td,.work-dialog .prep-assignment-table th { white-space:normal; vertical-align:top; overflow-wrap:anywhere; }
.work-dialog .prep-assignment-table .subline,.work-dialog .talent-history .subline { display:block; margin-top:4px; }
.prep-assignment-table input:not([type=checkbox]),.prep-assignment-table select { width:100%; min-width:0; }
.prep-match-reason { font-size:12px; color:var(--muted); }
.talent-section { padding:12px 0 20px; border-bottom:1px solid var(--line); }
.talent-section h3 { font-size:15px; margin:0 0 12px; }
.work-read-grid.talent-person-info { grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; }
.work-read-grid.talent-person-info > div { border-bottom:0; }
.talent-experience-row { padding:16px 0; border-top:1px solid var(--line); min-width:0; }
.talent-experience-head { display:grid; grid-template-columns:minmax(0,1fr) 110px 36px; align-items:end; gap:12px; }
.talent-remove { width:36px; height:36px; font-size:20px; padding:0; }
.talent-experience-row textarea { width:100%; min-width:0; margin-top:6px; resize:vertical; }
.work-dialog .talent-history { table-layout:fixed; width:900px; min-width:100%; }
.work-dialog .talent-history td,.work-dialog .talent-history th { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .prep-assign-filters label { flex:1 1 125px; }
  .prep-assign-filters select,.prep-assign-filters input[type="date"] { width:100%; }
  .talent-experience-head { grid-template-columns:minmax(0,1fr) 84px 36px; gap:8px; }
}
.work-project-bar{display:flex;align-items:center;flex-wrap:wrap;gap:0 18px;border-bottom:1px solid var(--line);margin-bottom:20px}
.work-summary { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 14px;margin:0 0 0 auto;order:2;padding:8px 0 }
.work-project-bar .work-tabs{order:1;flex:1 1 auto;min-width:0;border-bottom:0;margin-bottom:0}
.work-summary span { color: var(--muted); }
.work-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.work-tabs button { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 13px 17px; background: none; font-weight: 600; }
.work-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); background: var(--brand-soft); }
.organization-surface { padding-top: 8px; }
.organization-viewport { overflow: auto; max-height: calc(100dvh - 250px); min-height: 380px; padding: 24px 12px 32px; }
.organization-chart, .organization-children, .organization-people { list-style: none; margin: 0; padding: 0; }
.organization-chart { display: flex; justify-content: center; gap: 28px; width: max-content; min-width: 100%; }
.organization-node { position: relative; text-align: center; flex: 1 0 236px; padding: 0 14px; }
.organization-node details { min-width: 0; }
.organization-node summary { box-sizing: border-box; display: list-item; list-style-position: inside; position: relative; z-index: 1; cursor: pointer; width: 224px; min-height: 82px; margin: 0 auto; padding: 14px 10px; border: 1px solid var(--line); border-top: 3px solid #426cc2; border-radius: 6px; color: var(--ink); background: var(--panel); overflow-wrap: anywhere; text-align: left; }
.organization-root > details > summary { border-top-color: #118272; background: #f0faf7; }
.organization-heading { display: inline-flex; vertical-align: middle; flex-direction: column; gap: 6px; width: calc(100% - 20px); }
.organization-heading strong { font-size: 16px; }
.organization-heading small, .organization-person small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.organization-manager { color: #087365; font-size: 13px; }
.organization-children { position: relative; display: flex; padding-top: 40px; }
.organization-children::before { content: ''; position: absolute; height: 20px; width: 1px; background: #aebfd5; top: 0; left: 50%; }
.organization-children > .organization-node::before { content: ''; position: absolute; top: -20px; height: 20px; border-top: 1px solid #aebfd5; border-left: 1px solid #aebfd5; width: 50%; left: 50%; }
.organization-children > .organization-node::after { content: ''; position: absolute; top: -20px; border-top: 1px solid #aebfd5; width: 50%; right: 50%; }
.organization-children > .organization-node:first-child::after, .organization-children > .organization-node:last-child::before { border-top: 0; }
.organization-people { width: 224px; margin: 12px auto; text-align: left; }
@media (min-width: 701px) {
  .organization-root > details > .organization-people { display: flex; justify-content: center; width: auto; gap: 12px; }
  .organization-root > details > .organization-people > li { width: 224px; }
}
.organization-person { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 6px; color: var(--ink); background: transparent; text-align: left; border-radius: 0; }
.organization-person:hover { background: var(--brand-soft); }
.organization-person:focus-visible, .organization-node summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.organization-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: #eaf0fa; color: #315ca9; font-weight: 700; }
.organization-person.is-manager .organization-avatar { background: #e2f4ed; color: #087365; }
.organization-person-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.organization-person-text strong { font-size: 15px; }
.organization-empty { font-size: 13px; color: var(--muted); margin: 16px auto; width: 224px; }
.organization-unassigned { margin: 24px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.organization-unassigned h3 { font-size: 14px; }
@media (max-width: 700px) {
  .organization-surface { padding: 12px; }
  .organization-viewport { padding: 12px 0; min-height: 260px; max-height: none; }
  .organization-chart, .organization-children { display: block; min-width: 0; width: auto; }
  .organization-node { padding: 0; text-align: left; }
  .organization-node summary, .organization-people { width: 100%; }
  .organization-children { border-left: 1px solid #aebfd5; margin: 0 0 0 12px; padding: 0 0 0 16px; }
  .organization-children > .organization-node { margin-top: 20px; }
  .organization-children::before, .organization-children > .organization-node::before { display: none; }
  .organization-children > .organization-node::after { top: 35px; width: 16px; left: -16px; right: auto; border-top: 1px solid #aebfd5; }
  .organization-children > .organization-node:first-child::after { border-top: 1px solid #aebfd5; }
  .organization-empty { width: auto; padding: 0 8px; }
}
.work-tabs button:hover { color: var(--brand); }
.work-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.work-toolbar input[type="search"] { flex: 1 1 220px; max-width: 400px; }
.work-toolbar .work-total { margin-left: auto; color: var(--muted); }
.work-finding-toolbar { gap:8px 10px; flex-wrap:nowrap; align-items:center; min-width:0; overflow-x:auto; }
.prep-task-filters { display:flex; flex:1 1 680px; flex-wrap:wrap; gap:10px; align-items:center; min-width:0; }
.prep-task-filters input[type="search"] { min-width:140px; flex:1 1 160px; }
.prep-task-filters select { min-width:110px; max-width:100%; }
.work-finding-filters { display:flex; flex:1 1 auto; flex-wrap:nowrap; gap:8px; align-items:center; min-width:0; }
.work-finding-filters input[type="search"] { min-width:96px; }
.prep-task-filters #prepTaskSearch { flex:0 1 140px; width:140px; max-width:140px; min-width:96px; }
.work-finding-filters #workSearch, .work-finding-filters #workConfirmSearch { flex:0 1 140px; width:140px; max-width:140px; min-width:96px; }
.prep-task-filters select { width:125px; max-width:100%; }
.work-finding-filters select { width:110px; max-width:110px; flex:0 0 auto; }
.work-finding-filters .work-inline { flex-wrap:nowrap; white-space:nowrap; flex:0 0 auto; gap:6px; }
.prep-task-actions { display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.prep-task-toolbar .work-metrics { margin-left:auto; }
.finding-import-toggle { display:grid; place-items:center; width:36px; height:34px; padding:0; }
.finding-import-popup { position:fixed; inset:auto; min-width:132px; max-width:calc(100vw - 16px); margin:0; padding:4px; border:1px solid var(--line); border-radius:6px; background:#fff; box-shadow:0 4px 16px #17203326; }
.finding-import-popup button { display:block; width:100%; padding:9px 12px; border:0; border-radius:3px; color:var(--ink); background:#fff; text-align:left; font:inherit; }
.finding-import-popup button[hidden] { display:none; }
.finding-import-popup button:not(:disabled):hover,.finding-import-popup button:focus-visible { background:var(--brand-soft); color:var(--brand); }
.finding-import-popup button:disabled { color:var(--muted); opacity:.6; cursor:not-allowed; }
.work-finding-actions { display:flex; flex-wrap:nowrap; justify-content:flex-end; gap:8px; align-items:center; margin-left:auto; flex:0 0 auto; }
.work-metrics { display:flex; justify-content:flex-end; align-items:baseline; flex-wrap:nowrap; gap:6px 10px; color:var(--muted); flex:0 1 auto; min-width:0; }
.work-metrics span { white-space:nowrap; font-variant-numeric:tabular-nums; }
.work-finding-actions [data-work="references"] { display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; }
.work-finding-actions [data-work="references"] img { flex:0 0 16px; }
.work-finding-actions > .btn, .work-finding-actions > details { flex:0 0 auto; }
.work-dialog .reference-table { table-layout:fixed; width:1170px; min-width:100%; }
.work-dialog .reference-candidates { width:1299px; }
.work-dialog .reference-table :is(td,th) { white-space:normal; vertical-align:top; overflow-wrap:anywhere; }
.reference-table td > div { margin-top:5px; }
.reference-table td strong { font-weight:600; }
.reference-table-wrap { max-width:100%; overflow:auto; }
.reference-table-wrap:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.reference-ops { display:flex; flex-wrap:wrap; gap:6px; }
.reference-ops .btn { padding:6px 8px; min-height:32px; }
.reference-description { max-height:100px; overflow:auto; white-space:pre-wrap; }
.reference-filters { margin-top:0; gap:10px; }
.reference-filters input[type="search"] { min-width:160px; }
.reference-filters select { max-width:100%; width:140px; }
#referenceSelectedCount { margin-left:auto; color:var(--muted); font-variant-numeric:tabular-nums; }
.reference-pagination { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:16px; font-variant-numeric:tabular-nums; }
.reference-pagination .btn { width:36px; height:36px; padding:0; font-size:22px; }
.reference-detail { min-width:0; }
.reference-detail .work-file { flex-wrap:wrap; }
.reference-detail .work-file .name { min-width:0; overflow-wrap:anywhere; }
.work-dialog[data-layout="references-remove"] { width:min(560px,calc(100vw - 32px)); height:auto; }
@media(max-width:640px) {
  .reference-filters input[type="search"] { flex:1 1 100%; max-width:100%; }
  .reference-filters select { flex:1 1 120px; }
  #referenceSelectedCount { flex-basis:100%; margin-left:0; }
}
@media(max-width:640px) {
  /* Keep finding toolbar on one row; allow horizontal scroll instead of wrapping. */
  .work-finding-toolbar { flex-wrap:nowrap; overflow-x:auto; }
  .work-finding-toolbar .work-metrics { flex-basis:auto; }
  .work-finding-toolbar .work-finding-actions { width:auto; margin-left:auto; }
}
.work-group td { background: var(--page); font-weight: 600; }
.work-table { min-width: 980px; width: 100%; }
.work-table .work-title { min-width: 210px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.work-table .work-ops { min-width: 150px; }
.work-report-table { min-width: 760px; table-layout: fixed; }
.work-report-table th, .work-report-table td { white-space: normal; overflow-wrap: anywhere; }
.work-report-table .work-title { min-width: 0; }
.work-report-table th:first-child { width: 20%; }
.work-report-table th:nth-child(2) { width: 40%; }
.work-report-table th:nth-child(3) { width: 25%; }
.work-report-table th:last-child { width: 15%; }
.work-surface input:not([type="checkbox"]):not([type="file"]), .work-surface select,
.work-dialog input:not([type="checkbox"]):not([type="file"]), .work-dialog select, .work-dialog textarea { border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; color: var(--ink); background: var(--panel); min-width: 0; }
.work-surface input[type="checkbox"], .work-dialog input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }
.work-link { border: 0; background: transparent; color: var(--brand); padding: 4px 0; text-align: left; overflow-wrap: anywhere; }
.work-link:hover { text-decoration: underline; }
.work-dialog { --dialog-backdrop: rgba(23,32,51,.5); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--panel); width: min(1360px,calc(100vw - 48px)); max-width: none; height: min(880px,calc(100vh - 48px)); height: min(880px,calc(100dvh - 48px)); max-height: calc(100dvh - 48px); overflow: hidden; box-shadow: var(--shadow); }
.work-dialog[open] { display: flex; flex-direction: column; }
.work-dialog::backdrop { background: var(--dialog-backdrop); }
.work-dialog[hidden], .work-dialog [hidden] { display: none !important; }
.work-dialog[data-layout="compact"] { width: min(720px,calc(100vw - 48px)); height: auto; }
.work-dialog:is([data-layout="return-edit"],[data-layout="return-result"]) { width:min(640px,calc(100vw - 48px)); height:fit-content; }
.work-dialog:is([data-layout="return-edit"],[data-layout="return-result"]) .work-dialog-body { flex:0 1 auto; }
.work-dialog:has(#workProcessForm), .work-dialog:has(#workPerformanceForm) { height: fit-content; }
.work-dialog:has(#workProcessForm) .work-dialog-body { flex: 0 1 auto; }
#workProcessForm .work-process-options { display: flex; flex-wrap: wrap; gap: 16px 28px; }
#workProcessForm .work-inline { flex-direction: row; align-items: center; gap: 8px; }
#workProcessForm input[type="checkbox"] { flex: 0 0 16px; width: 16px; }
.work-dialog[data-layout="legacy"] { width: min(1080px,calc(100vw - 48px)); height: auto; }
.work-dialog[data-layout="import"] { height: auto; }
.work-fields.prep-import-source { grid-template-columns: minmax(0,2fr) minmax(0,1.4fr) minmax(130px,.6fr); align-items: start; }
.prep-import-source input[type="file"] { width: 100%; max-width: 100%; font: inherit; color: var(--ink); }
.prep-import-status { margin: 12px 0; color: var(--muted); min-height: 20px; }
#prepMappingArea, #prepSampleArea { margin-top: 18px; }
.prep-import-sample { max-height: 250px; overscroll-behavior: contain; }
.prep-import-sample th, .prep-import-sample td { min-width: 150px; max-width: 260px; }
.prep-import-sample th { position: sticky; top: 0; z-index: 1; background: var(--page); }
@media(max-width:760px) { .work-fields.prep-import-source { grid-template-columns: minmax(0,1fr); } }
.prep-selection { max-height: 340px; overflow: auto; border-block: 1px solid var(--line); }
.prep-selection label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
.prep-selection label input { flex: 0 0 auto; margin-top: 3px; }
.prep-selection small { display: block; color: var(--muted); margin-top: 4px; }
.prep-preview td { max-width: 340px; white-space: normal; overflow-wrap: anywhere; }
.prep-preview input, .prep-preview select { max-width: 220px; }
.prep-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; color: var(--muted); }
.prep-read { white-space: pre-wrap; overflow-wrap: anywhere; }
.work-dialog-head { display: flex; align-items: center; gap: 18px; padding: 17px 24px; color: var(--panel); background: var(--brand-strong); flex: 0 0 auto; }
.work-dialog-heading { flex: 1; min-width: 0; }
.work-dialog-heading-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px 20px; }
.work-dialog-heading-row h2 { flex:1 1 auto; }
.work-dialog-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 24px; font-size:13px; }
.work-dialog-meta > div { display:flex; align-items:center; gap:8px; }
.work-dialog-meta span { opacity:.8; }
.work-dialog-meta strong { font-size:13px; white-space:nowrap; }
.work-dialog[data-layout="confirmation"] .work-dialog-heading p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.work-dialog-heading h2 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.work-dialog-heading p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; opacity: .85; }
.work-dialog-nav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.work-dialog-nav:empty { display: none; }
.work-icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 4px; color: inherit; background: transparent; font-size: 26px; line-height: 1; padding: 0; }
.work-icon-button:hover:not(:disabled) { background: rgba(255,255,255,.15); }
.work-dialog-context { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 22px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--page); flex: 0 0 auto; max-height: 24dvh; overflow: auto; }
.work-dialog-context > div { min-width: 0; }
.work-dialog-context span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.work-dialog-context strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.work-dialog-body { flex: 1 1 auto; min-height: 0; padding: 18px 24px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.work-dialog-body > :last-child { margin-bottom: 0; }
.work-dialog-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 13px 24px; border-top: 1px solid var(--line); background: var(--panel); flex: 0 0 auto; max-height: 28dvh; overflow: auto; }
.work-dialog-foot .btn { white-space: normal; min-height: 36px; }
.work-dialog fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.work-dialog legend, .work-section-heading { font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); width: 100%; padding: 8px 0; margin: 0 0 14px; color: var(--ink); }
.work-required { color: var(--red); }
.work-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
.work-fields-four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.work-fields label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); min-width: 0; }
.work-fields .wide { grid-column: 1/-1; }
.work-fields-four .wide { grid-column: span 2; }
.work-fields textarea { resize: vertical; min-height: 96px; }
.work-fields input:disabled, .work-fields textarea:disabled, .work-fields select:disabled { background: var(--page); color: var(--ink); opacity: 1; }
.work-fields input:read-only { background: var(--page); }
.work-fields input, .work-fields textarea, .work-fields select { width: 100%; }
.finding-editor-scroll { width:100%; overflow-x:auto; }
.work-dialog[data-layout="finding"] { width:min(1760px,calc(100vw - 48px)); }
.finding-editor-table { width:100%; min-width:1948px; table-layout:fixed; }
.finding-editor-table td { vertical-align:top; white-space:normal; padding:10px 8px; }
.finding-editor-table th { white-space:nowrap; padding:10px 8px; }
.finding-editor-table td > fieldset { margin:0; }
.finding-editor-table input,.finding-editor-table select,.finding-editor-table textarea { width:100%; min-width:0; }
.finding-edit-row label { display:block; }
.finding-edit-row label > span,.finding-edit-row label:has(select) { font-size:0; }
.finding-edit-row :is(input,select,textarea) { font-size:13px; }
.finding-edit-row textarea { height:38px; min-height:38px; padding:0 10px; line-height:36px; resize:vertical; }
.finding-edit-row strong { display:block; font-size:13px; margin:7px 0; }
.finding-editor-table fieldset:disabled :is(input,select,textarea) { opacity:1; color:var(--ink); background:var(--page); }
.finding-editor-table tbody { border-bottom:1px solid var(--line); }
.finding-common-table { width:100%; min-width:1050px; table-layout:fixed; }
.finding-common-table :is(th,td) { padding:10px 8px; vertical-align:top; }
.finding-common-table fieldset { margin:0; }
.finding-common-table :is(input,select,textarea) { width:100%; min-width:0; }
.finding-common-table textarea { height:38px; min-height:38px; }
.finding-common-table fieldset:disabled :is(input,select,textarea) { opacity:1; background:var(--page); color:var(--ink); }
.feedback-measures-scroll { width:100%; overflow-x:auto; margin-bottom:10px; }
.feedback-measures-table { width:100%; min-width:360px; table-layout:fixed; }
.feedback-measures-table :is(th,td) { padding:8px; vertical-align:top; white-space:normal; overflow-wrap:anywhere; }
.feedback-measures-table th { white-space:nowrap; }
.feedback-measures-table label { display:block; }
.feedback-measures-table label > span { display:none; }
.feedback-measures-table :is(input,textarea) { width:100%; min-width:0; }
.feedback-measures-table textarea { height:72px; min-height:38px; resize:vertical; }
.feedback-measures-table [data-work="measure-remove"] { width:28px; height:30px; padding:0; font-size:20px; }
/* 完成日期列收窄：贴日期宽度，内容列吃满剩余 */
.feedback-measures-table col[style*="width:110px"],
.feedback-measures-table thead th:nth-child(2),
.feedback-measures-table tbody td:nth-child(2) { width:110px; max-width:110px; white-space:nowrap; overflow-wrap:normal; }
.confirmation-measures .feedback-measures-table { min-width:0; width:100%; }
.finding-category-value { line-height:1.8; overflow-wrap:anywhere; }
.finding-category-toggle { display:flex; align-items:center; gap:6px; width:100%; height:38px; padding:0 10px; border:1px solid var(--line); border-radius:4px; background:var(--panel); color:var(--ink); font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.finding-category-toggle span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.finding-category-toggle::after { content:"\25BE"; flex:none; }
.finding-category-toggle:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.finding-category-popup { position:fixed; inset:auto; margin:0; width:200px; max-width:calc(100vw - 16px); max-height:240px; overflow-y:auto; padding:6px; border:1px solid var(--line); border-radius:4px; background:var(--panel); color:var(--ink); box-shadow:0 4px 16px #0002; }
.finding-category-popup label { display:flex; align-items:center; gap:8px; min-height:34px; padding:5px 7px; cursor:pointer; }
.finding-category-popup label:hover { background:var(--page); }
.finding-category-popup label > span { display:block; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.finding-category-popup input[type="checkbox"] { flex:0 0 16px; width:16px; height:16px; min-height:16px; padding:0; margin:0; accent-color:var(--brand); }
.finding-detail-add { margin-top:10px; }
.finding-row-heading { display:flex; align-items:center; gap:6px; min-height:38px; white-space:nowrap; }
.finding-row-heading strong { margin:0; }
.finding-row-heading > * { flex-shrink:0; }
.finding-row-remove { width:24px; min-width:24px; height:28px; padding:0; font-size:20px; line-height:1; }
.finding-row-remove img { display:block; width:16px; height:16px; margin:auto; }
[data-work="measure-add"],[data-work="group-add"] { display:inline-flex; align-items:center; gap:6px; }
[data-work="measure-add"] img,[data-work="group-add"] img { width:16px; height:16px; }
.finding-row-actions { display:flex; flex-direction:column; gap:6px; margin-top:8px; align-items:flex-start; }
.finding-edit-notice { margin:0 0 12px; line-height:1.6; }
.finding-legacy-common { margin-top:8px; }
.finding-legacy-common > summary { cursor:pointer; color:var(--muted); }
.finding-legacy-common label { margin-top:6px; }
.finding-attachments { border-top:1px solid var(--line); padding:16px 0; }
.finding-attachments > h4 { margin:0 0 12px; font-size:13px; }
.finding-attachment-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.finding-attachment-column { min-width:0; }
.finding-attachment-column fieldset { margin:0 0 12px; }
.finding-attachment-column textarea { width:100%; min-height:90px; resize:vertical; }
.finding-attachment-column fieldset:disabled textarea { opacity:1; color:var(--ink); background:var(--page); }
@media (max-width:640px) {
  .work-dialog[data-layout="finding"] { width:calc(100vw - 16px); }
  .finding-attachment-columns { grid-template-columns:minmax(0,1fr); }
}
.prep-project-basic-section { container:project-basic / inline-size; }
#prepProject .prep-project-basic-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#prepProject .prep-project-basic-fields > label:first-child { grid-column:1/-1; }
#prepProject .prep-project-basic-fields :is(input,select) { min-width:0; }
@container project-basic (min-width:1050px) {
  #prepProject .prep-project-basic-fields { grid-template-columns:minmax(240px,1.8fr) minmax(128px,1fr) minmax(144px,1fr) repeat(2,minmax(166px,1fr)); }
  #prepProject .prep-project-basic-fields > label:first-child { grid-column:auto; }
}
@container project-basic (max-width:520px) {
  #prepProject .prep-project-basic-fields { grid-template-columns:minmax(0,1fr); }
}
.work-uploads { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 12px 0; }
.work-uploads label, .work-upload-label { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
.work-dialog input[type="file"] { max-width: 100%; color: var(--muted); }
.work-dialog input[type="file"]::file-selector-button { border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; color: var(--brand); background: var(--brand-soft); font: inherit; cursor: pointer; margin-right: 10px; }
.work-records { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.work-records > summary { font-weight: 600; padding: 6px 0; cursor: pointer; }
.work-review { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 28px; }
.work-review > section { min-width: 0; }
.work-review-feedback { border-left: 1px solid var(--line); padding-left: 28px; }
.work-section-heading span { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.work-section-heading .work-readonly-mark { display:inline-block; padding:2px 6px; background:var(--page); border-radius:3px; }
.work-section-heading .work-entry-hint, .work-batch-item .work-entry-hint { display:inline-block; margin-left:8px; padding:2px 7px; color:var(--brand); background:var(--brand-soft); border-radius:3px; font-size:12px; font-weight:600; }
.work-dialog .work-fact-title { font-size: 17px; margin: 0 0 16px; overflow-wrap: anywhere; }
.work-read-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 20px; padding: 0; gap: 0 20px; }
.work-read-grid > div { padding: 10px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.work-read-grid dt { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.work-read-grid dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.work-review h4 { margin: 18px 0 6px; font-size: 14px; }
.work-dialog[data-layout="confirmation"] { width:min(1760px,calc(100vw - 48px)); height:min(1000px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); }
.work-dialog[data-layout="rectification"] { width:min(1360px,calc(100vw - 48px)); margin:auto; }
.rectification-table { table-layout:fixed; min-width:1520px; width:100%; }
.rectification-table tr[hidden] { display:none; }
.rectification-table .rectification-group-heading td { background:#eef3f9; border-top:1px solid #dce5f1; border-bottom:1px solid #dce5f1; padding-top:10px; padding-bottom:10px; }
.rectification-table .rectification-group-heading > td:first-child { vertical-align:middle; }
.rectification-group-no { flex:none; font-size:13px; font-weight:600; white-space:nowrap; }
.rectification-table:not(.rectification-table-flat) [data-rectification-main] .record-name { padding-left:8px; }
.rectification-table td .record-number,
.rectification-table td .subline { white-space:nowrap; }
.rectification-register :is(select,input:not([type="checkbox"])) { border:1px solid var(--line); border-radius:5px; padding:8px 10px; color:var(--ink); background:var(--panel); min-width:0; }
.rectification-register .table-wrap { background:var(--panel); }
.rectification-table :is(th,td) { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
.rectification-table :is(th,td):last-child { position:sticky; right:0; background:var(--panel); }
.rectification-delivery-modes { display:flex; flex-wrap:wrap; gap:20px; margin-bottom:20px; }
.rectification-delivery-modes legend { margin-bottom:12px; }
.rectification-delivery-table { min-width:720px; table-layout:fixed; }
.rectification-delivery-table th:first-child { width:110px; }
.rectification-delivery-table :is(th,td) { white-space:normal; overflow-wrap:anywhere; }
.rectification-delivery-table :is(input,select) { width:100%; box-sizing:border-box; }
.rectification-delivery-status { margin-top:16px; color:var(--muted); }
@media (max-width:640px) {
  .rectification-delivery-table { display:block; min-width:0; }
  .rectification-delivery-table thead { display:none; }
  .rectification-delivery-table tbody { display:block; }
  .rectification-delivery-table tr { display:block; border-bottom:1px solid var(--line); padding:8px 0; }
  .rectification-delivery-table td { display:grid; grid-template-columns:80px minmax(0,1fr); gap:10px; padding:8px 0; border:0; }
  .rectification-delivery-table td::before { content:attr(data-label); color:var(--muted); }
}
.rectification-table .record-name { text-align:left; white-space:normal; overflow-wrap:anywhere; }
.rectification-summary { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.rectification-source { padding-bottom:16px; }
.rectification-source summary { margin-bottom:12px; }
.rectification-sections { display:grid; gap:24px; }
.rectification-sections > section { min-width:0; }
.rectification-sections > .work-review-feedback { border-left:0; padding-left:0; }
.rectification-sections h4 { margin:16px 0 10px; font-size:14px; }
.rectification-sections .work-fields { margin-bottom:16px; }
.rectification-plan-source label { flex:1; min-width:0; }
.rectification-plan-source select { width:100%; }
.rectification-sections .feedback-measures-table { min-width:0; width:100%; }
.rectification-evidence-group { padding:0 0 12px; border-bottom:1px solid var(--line-soft); }
.rectification-evidence-file { display:flex; align-items:center; gap:12px; padding:8px 0; }
.rectification-evidence-file > span { flex:1; min-width:0; overflow-wrap:anywhere; }
.rectification-evidence-file small { color:var(--muted); }
.rectification-upload { margin-top:18px; }
.rectification-history { border-top:1px solid var(--line); margin-top:20px; padding-top:16px; }
@media(max-width:760px) {
  .work-dialog[data-layout="rectification"] { width:calc(100vw - 16px); }
  .work-dialog[data-layout="rectification"] .work-dialog-body { padding:16px; }
  .work-dialog[data-layout="rectification"] .work-dialog-foot { gap:8px; padding:12px 16px; }
  .rectification-sections .work-fields { grid-template-columns:minmax(0,1fr); }
}
.confirmation-layout { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.confirmation-flow { display:flex; flex-wrap:wrap; list-style:none; gap:12px 24px; margin:0 0 20px; padding:0 0 16px; border-bottom:1px solid var(--line); }
.confirmation-flow li { flex:1 1 180px; min-width:0; display:grid; gap:4px; border-left:3px solid var(--line); padding-left:10px; overflow-wrap:anywhere; }
.confirmation-flow li[aria-current="step"] { border-color:var(--brand); }
.confirmation-flow li[aria-current="step"] strong { color:var(--brand); }
.confirmation-flow small { color:var(--muted); }
.confirmation-layout > section { min-width:0; }
.confirmation-layout .work-review-facts, .confirmation-layout .work-review-feedback, .confirmation-measures { grid-column:span 2; }
.confirmation-layout .work-review-feedback { padding-left:24px; }
.confirmation-layout h4 { margin:12px 0 10px; font-size:14px; }
.confirmation-layout .work-section-heading { margin-top:0; }
.confirmation-layout .work-read-grid > div { padding:8px 0; }
.confirmation-layout .work-read-grid dt { margin-bottom:4px; }
.confirmation-layout .work-review-facts .work-text { margin:6px 0 12px; line-height:1.6; }
.confirmation-layout :is(.confirmation-measures,.confirmation-materials,.confirmation-history) { border-top:1px solid var(--line); padding-top:16px; }
.confirmation-layout fieldset { margin:0; padding:12px 0 0; }
.confirmation-layout legend { padding:0; }
/* confirmation twin: LEFT 事项说明 only | RIGHT stack = 原因分析/改善对策 → 底稿/逐人反馈
   Critical: keep .confirmation-layout as display:grid (never flex-column) so twin columns sit side-by-side.
   Flex column is only for dialog-body / form wrappers that size the grid child. */
.work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) { display:flex; flex-direction:column; overflow:hidden; }
.work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > :not(.confirmation-layout):not(form#workFeedbackForm):not(form#workDecisionForm) { flex:0 0 auto; }
.work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workFeedbackForm,
.work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workDecisionForm { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > .confirmation-layout,
.work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workFeedbackForm > .confirmation-layout,
.work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workDecisionForm > .confirmation-layout { flex:1 1 auto; min-height:0; overflow:hidden; display:grid; }
.confirmation-layout.confirmation-fill-mode { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); grid-template-rows:minmax(0,1fr); gap:20px 28px; align-items:stretch; height:100%; min-height:0; }
.confirmation-layout.confirmation-fill-mode.unit-confirm-group { grid-template-rows:auto minmax(0,1fr); }
.confirmation-layout.confirmation-fill-mode > .work-review-facts { grid-column:1; grid-row:1; overflow-y:auto; min-height:0; overscroll-behavior:contain; padding-right:4px; }
.confirmation-layout.confirmation-fill-mode.unit-confirm-group > .work-review-facts { grid-row:2; }
.confirmation-layout.confirmation-fill-mode > .confirmation-right-stack { grid-column:2; grid-row:1; display:flex; flex-direction:column; gap:0; min-width:0; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-left:4px; }
.confirmation-layout.confirmation-fill-mode.unit-confirm-group > .confirmation-right-stack { grid-row:2; }
.confirmation-layout.confirmation-fill-mode > .unit-confirm-group-head { grid-column:1/-1; grid-row:1; }
/* unit twin parity: never let legacy unit-confirm-matters take a grid track that flips L/R */
.confirmation-layout.confirmation-fill-mode > .unit-confirm-matters { display:none; }
.work-review-fill { border:1px solid #c5d7f5; background:linear-gradient(180deg,#f5f9ff 0%,#fff 48px); border-radius:10px; padding:16px 18px 12px; box-shadow:inset 3px 0 0 #2f6fed; }
.work-review-fill-tail { border:1px solid #c5d7f5; border-top:0; background:#fff; border-radius:0 0 10px 10px; padding:8px 18px 16px; margin-top:-8px; }
.work-review-fill + .work-review-fill-tail { box-shadow:inset 3px 0 0 #2f6fed; }
.confirmation-fill-mode .work-review-feedback { padding-left:18px; border-left:0; }
.confirmation-fill-mode .confirmation-right-stack > .confirmation-measures { border-top:0; padding-top:0; margin-top:0; }
.confirmation-fill-mode.is-review .confirmation-right-stack > .confirmation-measures { padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.confirmation-fill-mode.is-review .confirmation-right-stack > .work-review-feedback { padding:0; border-left:0; }
.confirmation-fill-mode.is-review .confirmation-right-stack > .confirmation-auditor-files,
.confirmation-fill-mode.is-review .confirmation-right-stack > .confirmation-history,
.confirmation-fill-mode.is-review .confirmation-right-stack > .confirmation-materials { border-top:1px solid var(--line); padding-top:14px; margin-top:4px; }
.confirmation-fill-mode .confirmation-right-stack > .confirmation-measures:first-child .work-section-heading { margin-top:0; }
.confirm-opinion legend { font-weight:600; margin-bottom:8px; }
/* compact unit-flow stepper under blue header */
.work-dialog[data-layout="confirmation"] .confirmation-flow { gap:8px 16px; margin:0 0 14px; padding:10px 0 12px; }
.work-dialog[data-layout="confirmation"] .confirmation-flow li { flex:1 1 140px; gap:2px; font-size:13px; }
.work-dialog[data-layout="confirmation"] .confirmation-flow li strong { font-size:13px; }
/* person-by-person feedback rail */
.confirm-feedback-rail { display:flex; flex-wrap:wrap; gap:10px 14px; margin:0 0 10px; }
.confirm-feedback-pill { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px 8px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--page); max-width:100%; }
.confirm-feedback-pill.is-done { background:#f3faf5; border-color:#c6e6d0; }
.confirm-feedback-pill .hint { color:var(--muted); font-size:12px; }
.record-fields-counts.record-values > div { padding:8px 10px; border:1px solid var(--line-soft); border-radius:8px; background:var(--page); border-bottom:1px solid var(--line-soft); }
.record-fields-counts.record-values > div dt { margin-bottom:4px; font-size:12px; }
.record-fields-counts.record-values > div dd { font-size:15px; }
.record-note-lead { display:grid; gap:6px; margin:0 0 12px; position:relative; }
.record-note-lead textarea { width:100%; min-height:120px; height:140px; resize:vertical; padding:10px 12px 22px; box-sizing:border-box; border:1px solid var(--line); border-radius:6px; }
.record-note-lead small { position:absolute; right:10px; bottom:6px; font-size:12px; color:var(--muted); pointer-events:none; }
.record-fields-counts { grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px 12px; margin-bottom:16px; }
.record-fields-counts > label { grid-template-columns:minmax(0,1fr); gap:6px; align-items:start; }
.record-fields-counts > label > span { font-size:12px; line-height:1.35; }
.record-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; }
.record-fields > label { display:grid; grid-template-columns:minmax(110px,.9fr) minmax(90px,1.2fr); gap:8px; align-items:center; min-width:0; }
.record-fields label > span, .record-note > span { font-size:13px; color:var(--muted); }
.record-fields input { height:32px; min-width:0; width:100%; }
.rectification-record .record-note { position:relative; display:grid; gap:6px; min-width:0; }
.record-fields > .record-note { grid-template-columns:minmax(110px,.9fr) minmax(90px,1.2fr); align-items:center; }
.record-note textarea { width:100%; min-height:48px; height:48px; padding-bottom:19px; resize:vertical; }
.record-note small { position:absolute; right:9px; bottom:4px; font-size:12px; color:var(--muted); pointer-events:none; }
.rectification-record > .record-note { margin-top:10px; grid-template-columns:110px minmax(0,1fr); align-items:center; }
.rectification-record > .record-note.record-note-lead { grid-template-columns:minmax(0,1fr); align-items:stretch; }
.rectification-record > .record-note.record-note-lead textarea { width:100%; min-height:120px; height:140px; padding:10px 12px 22px; box-sizing:border-box; }
.record-note .work-text { margin:0; }
.bu-reply-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 16px; margin:0 0 14px; }
.bu-reply-columns .bu-reply-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.bu-reply-columns label { display:flex; flex-direction:column; gap:6px; min-width:0; }
.bu-reply-columns .bu-reply-field > span,
.bu-reply-columns label > span { font-size:14px; font-weight:600; line-height:1.4; color:var(--ink); }
.work-dialog .bu-reply-columns textarea { width:100%; min-height:120px; height:140px; resize:vertical; box-sizing:border-box; padding:10px 12px; line-height:1.6; }
.bu-reply-columns .work-text { margin:0; min-height:120px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--page); line-height:1.6; white-space:pre-wrap; }
.bu-reply-columns .bu-reply-deadline { display:flex; flex-direction:row; align-items:center; gap:8px; margin-top:2px; }
.bu-reply-columns .bu-reply-deadline input { flex:1; height:32px; min-width:0; }
.bu-reply-columns .bu-reply-deadline strong { font-weight:600; }
.record-values { margin-bottom:12px; }
.feedback-opinions { gap:10px 20px; }
.feedback-opinions > label { display:grid; grid-template-columns:110px minmax(0,1fr); gap:8px; align-items:center; }
.feedback-opinions textarea { min-height:56px; height:56px; }
.confirmation-layout .work-response { padding:10px 0; }
.confirmation-layout .work-response summary { cursor:pointer; overflow-wrap:anywhere; }
.confirmation-layout .work-response .work-text { margin:8px 0; }
.recipient-record + .recipient-record { border-top:1px solid var(--line); margin-top:16px; padding-top:8px; }
@media (max-width:1250px) {
  .confirmation-layout { gap:20px; }
  .record-fields > label { grid-template-columns:minmax(0,1fr); gap:5px; }
  .record-fields > .record-note, .feedback-opinions > label { grid-template-columns:minmax(0,1fr); }
  .confirmation-materials, .confirmation-history { grid-column:span 2; }
  .confirmation-measures { grid-column:1/-1; }
  .record-fields-counts { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .confirmation-layout.confirmation-fill-mode { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); }
}
@media (max-width:900px) {
  .confirmation-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
  .confirmation-layout > section { grid-column:1/-1; }
  .confirmation-layout .work-review-feedback { padding-left:0; border-left:0; border-top:1px solid var(--line); padding-top:16px; }
  .confirmation-layout.confirmation-fill-mode { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; height:auto; align-items:start; }
  .confirmation-layout.confirmation-fill-mode.unit-confirm-group { grid-template-rows:auto auto; }
  .confirmation-layout.confirmation-fill-mode > .work-review-facts,
  .confirmation-layout.confirmation-fill-mode > .confirmation-right-stack { grid-column:1/-1; grid-row:auto; overflow:visible; max-height:none; }
  .work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) { overflow:auto; display:block; }
  .work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workFeedbackForm,
  .work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workDecisionForm { display:block; overflow:visible; height:auto; }
  .work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > .confirmation-layout,
  .work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workFeedbackForm > .confirmation-layout,
  .work-dialog[data-layout="confirmation"] .work-dialog-body:has(.confirmation-fill-mode) > form#workDecisionForm > .confirmation-layout { display:grid; overflow:visible; height:auto; }
  .confirmation-fill-mode.is-review .confirmation-right-stack > .work-review-feedback { padding-left:0; border-left:0; }
  .record-fields-counts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bu-reply-columns { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:640px) {
  .work-dialog[data-layout="confirmation"] { width:calc(100vw - 16px); }
  .record-fields { gap:10px 12px; }
}
.work-dialog-open .main { overflow: hidden; }
.work-error { color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: 4px; margin-bottom: 12px; white-space: pre-wrap; }
.work-error:empty { display: none; }
.work-note { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.work-file { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.work-file .name { flex: 1; min-width: 160px; overflow-wrap: anywhere; }
.work-file small { display: block; color: var(--muted); }
.work-file .btn { flex: 0 0 auto; }
.work-file [data-work="file-delete"] { color: var(--red, #b42318); }
.work-people { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 0; }
.work-people label { display: flex; gap: 6px; align-items: center; }
.work-history { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.work-history summary { cursor: pointer; display: list-item; font-weight: 600; }
.work-history pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--muted); }
.work-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; margin: 8px 0 18px; }
.work-response { padding: 14px 0; border-bottom: 1px solid var(--line); }
.work-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.work-surface button:focus-visible, .work-dialog :is(button,input,textarea,select,a,summary):focus-visible, .work-tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.work-dialog-head :focus-visible { outline-color: var(--panel); }
.work-surface button:disabled, .work-dialog button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1000px) {
  .work-fields-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-review { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .work-review-feedback { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 640px) {
  .work-surface { padding: 12px; }
  .work-fields { grid-template-columns: minmax(0,1fr); }
  .work-fields .wide { grid-column: 1/-1; }
  .work-dialog, .work-dialog[data-layout="compact"], .work-dialog[data-layout="legacy"] { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .work-dialog .detail-grid { grid-template-columns: minmax(0,1fr); }
  .work-dialog:not([data-layout="compact"]) { height: calc(100dvh - 16px); }
  .work-dialog-head { gap: 8px; padding: 12px; }
  .work-dialog-heading h2 { font-size: 16px; }
  .work-dialog-heading p { font-size: 12px; }
  .work-dialog-context { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
  .work-dialog-body, .work-dialog-foot { padding: 12px; }
  .work-dialog-foot { gap: 8px; }
  .work-dialog-foot .btn { flex: 1 1 auto; }
  .work-dialog-nav { gap: 2px; font-size: 12px; }
  .work-dialog-nav .work-icon-button { width: 28px; height: 32px; }
  .work-read-grid { gap: 0 12px; }
  .work-tabs button { padding: 12px; }
  .work-toolbar .work-total { margin-left: 0; width: 100%; }
}
.finding-amount-unit { margin-left:4px; font-size:12px; font-weight:400; color:#6e7e98; white-space:nowrap; }
.finding-register { table-layout:fixed; min-width:1192px; }
.finding-register-flat { min-width:1400px; }
.finding-register :is(th,td) { padding-left:8px; padding-right:8px; }
.finding-register th { white-space:normal; line-height:1.5; }
.finding-register :is(th,td):first-child { padding-left:6px; padding-right:6px; }
.finding-register .finding-amount-unit { display:block; margin-left:0; }
.finding-register .finding-pending-items { max-width:72px; overflow:hidden; }
.finding-pending-link { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; width:100%; overflow:hidden; white-space:pre-wrap; overflow-wrap:anywhere; text-align:left; line-height:1.5; }
.record-number { appearance:none; border:0; background:transparent; padding:0; color:#2459e5; font:inherit; text-align:left; cursor:pointer; max-width:100%; overflow-wrap:anywhere; }
.record-number:hover { text-decoration:underline; }
.record-name { font-weight:600; }
.finding-register-wrap { container:finding-register / inline-size; }
.finding-main-info { display:flex; align-items:center; flex-wrap:wrap; gap:8px 24px; width:min(100%,calc(100cqw - 60px)); min-height:32px; white-space:normal; }
.finding-main-heading { display:flex; align-items:center; flex:1 1 420px; gap:10px; min-width:0; }
.finding-main-heading > .record-number:not(.record-name) { flex:none; font-size:13px; font-weight:600; white-space:nowrap; }
.finding-main-count { flex:none; color:var(--muted); font-size:12px; font-weight:400; white-space:nowrap; }
.finding-main-meta { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 18px; margin-left:auto; max-width:100%; color:var(--muted); font-size:12px; font-weight:400; }
.finding-main-links { display:flex; align-items:center; min-width:0; }
.finding-group-toggle { display:inline-flex; align-items:center; justify-content:center; flex:none; width:28px; height:28px; padding:0; border:0; border-radius:4px; background:transparent; cursor:pointer; }
.finding-group-toggle:hover { background:#e0e8f4; }
.finding-group-toggle:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.finding-group-toggle img { opacity:.65; transition:transform .12s; }
.finding-group-toggle[aria-expanded="true"] img { transform:rotate(90deg); }
.finding-register .finding-group-heading td { background:#eef3f9; border-top:1px solid #dce5f1; border-bottom:1px solid #dce5f1; padding-top:10px; padding-bottom:10px; }
.finding-register .finding-group-heading > td:first-child { vertical-align:top; padding-top:18px; }
.finding-register:not(.finding-register-flat) [data-finding-main] .finding-number:not(.finding-fact-link) { padding-left:16px; }
.finding-register [data-finding-main][hidden] { display:none; }
@container finding-register (max-width:1050px) {
  .finding-main-heading { flex-basis:100%; }
  .finding-main-meta { margin-left:38px; justify-content:flex-start; }
}
.finding-linked-tasks { display:flex; align-items:center; gap:8px; min-width:0; }
.finding-linked-task-numbers { display:flex; flex-wrap:wrap; gap:4px 10px; min-width:0; }
.finding-linked-task-numbers .record-number { white-space:nowrap; color:var(--primary,#2563eb); }
.implementation-link-entry { display:inline-flex; align-items:center; justify-content:center; gap:6px; justify-self:start; }
.implementation-link-entry img { width:16px; height:16px; }
.implementation-link-entry.icon-only { width:32px; height:32px; padding:6px; flex:none; }
.implementation-link-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.implementation-link-toolbar input[type="search"] { width:320px; max-width:100%; }
.implementation-link-toolbar label { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.implementation-link-table { min-width:640px; table-layout:fixed; }
.implementation-link-table th:first-child { width:56px; }
.implementation-link-table th:nth-child(2) { width:110px; }
.implementation-link-table th:last-child { width:112px; }
.implementation-link-table.has-assignee { min-width:780px; }
.implementation-link-table.has-assignee th:nth-child(4) { width:100px; }
.implementation-link-table.has-assignee th:nth-child(5) { width:90px; }
.implementation-link-table .implementation-link-title { white-space:normal; overflow-wrap:anywhere; }
.finding-main-info > * { min-width:0; }
.finding-main-date, .finding-main-cycle { white-space:normal; overflow-wrap:anywhere; font-weight:400; line-height:1.6; }
.finding-main-label { margin-right:8px; color:var(--muted); font-size:12px; }
.finding-register .work-group .record-name { min-width:0; color:var(--text,#172b4d); font-size:14px; line-height:1.5; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; overflow-wrap:anywhere; }
.record-number:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
.finding-register td { vertical-align:middle; white-space:nowrap; overflow:hidden; }
.finding-register .finding-cell-line { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:24px; }
.finding-register .finding-number { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#2459e5; }
.finding-register .finding-fact-link { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; text-align:left; }
.finding-register .work-ops { min-width:0; white-space:nowrap; }
.finding-register .work-ops .btn { padding:6px 5px; }
.finding-register .finding-amounts { text-align:right; }
.confirmation-register { table-layout:fixed; min-width:1456px; }
.confirmation-register td { vertical-align:top; white-space:normal; overflow-wrap:anywhere; }
.confirmation-register .work-title { max-width:none; }
.confirmation-register th:last-child, .confirmation-register tr:not(.work-group) td:last-child,
.finding-register th:last-child, .finding-register tr:not(.work-group) td:last-child { position:sticky; right:0; z-index:1; background:#fff; box-shadow:-1px 0 var(--line); }
.confirmation-register th:last-child, .finding-register th:last-child { background:#f6f8fb; }
.work-batch-item { border-top:1px solid var(--line); padding:12px 0; }
.work-batch-item summary { cursor:pointer; overflow-wrap:anywhere; }
.work-batch-item [data-batch-facts] { padding-top:12px; }
.finding-description-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; white-space:pre-wrap; line-height:1.6; }
.finding-description.is-expanded .finding-description-text { display:block; overflow:visible; }
.finding-description-toggle { margin-top:4px; }
.finding-description-toggle[hidden] { display:none; }
.finding-amounts { font-variant-numeric:tabular-nums; line-height:1.7; }
.finding-import-table { table-layout:fixed; min-width:1178px; }
.finding-import-group strong { margin-right:20px; }
.finding-import-group span { color:#60769b; font-weight:normal; }
.finding-import-fact { white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.finding-import-table td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
.finding-import-error { color:#b42318; }
.finding-import-warning { color:var(--muted); margin-top:4px; }
#findingImportEditor[hidden],#findingImportList[hidden] { display:none!important; }
#findingImportEditor h3 { margin:0 0 16px; font-size:16px; }
/* Stable implementation columns; narrow screens scroll the task table. */
.prep-task-table{table-layout:fixed;min-width:1120px;width:100%}
.prep-task-cycle-node { display:grid; grid-template-columns:minmax(0,1fr); gap:2px; white-space:normal; }
.prep-task-cycle-node > span { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:20px; }
.prep-task-node { color:var(--muted); }
.prep-controllers { min-width: 0; }
.prep-controller-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.prep-controller-row { display: grid; grid-template-columns: minmax(0,1fr) 32px; gap: 6px; margin-bottom: 6px; }
.prep-controller-row input { min-width: 0; width: 100%; }
.prep-linked-findings { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:20px; }
.prep-task-row-actions { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.prep-task-row-actions .btn { flex-shrink:0; }
.prep-task-findings fieldset{border:0;border-bottom:1px solid #d6e4f5;padding:18px 0;margin:0}
.prep-task-findings legend{font-weight:600;padding-top:16px}
.prep-task-findings select,.prep-task-findings input{min-width:0;width:100%}
.prep-project-scope { border-bottom:1px solid var(--line); padding:0 0 12px; margin-bottom:16px; }
.prep-research { container:prep-research / inline-size; }
.prep-research-top { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:8px; }
.prep-research-top > * { min-width:0; }
.prep-research-top .prep-project-scope { border:0; padding:0; margin:0; }
.prep-research-top .prep-scope-heading { display:block; position:relative; }
.prep-research-top .prep-scope-heading summary { min-height:32px; padding:6px 92px 6px 0; font-size:14px; }
.prep-research-top .prep-scope-heading > .btn { position:absolute; top:0; right:0; }
.prep-research-top .prep-scope-heading .work-text { overflow-wrap:anywhere; }
@container prep-research (min-width:1080px) {
  .prep-research-top { grid-template-columns:minmax(320px,.7fr) minmax(720px,1.5fr); align-items:start; }
}
.prep-scope-heading { display:flex; align-items:flex-start; gap:12px; }
.prep-scope-heading details { flex:1; min-width:0; }
.prep-scope-heading summary { cursor:pointer; font-weight:600; padding:6px 0; }
.prep-scope-heading .btn { flex:none; }
.prep-scope-search input { flex:1; min-width:140px; }
#prepScopeEditor .work-table { min-width:720px; }
#prepScopeEditor th:first-child { width:36px; }
#prepScopeEditor input[type="checkbox"] { width:16px; height:16px; }
.work-send-item { padding: 10px 12px; border: 1px solid transparent; border-bottom-color: #e6edf7; }
.work-send-item[data-invalid="true"] { border-color: #d93025; background: #fff4f3; }
.work-send-error { color: #b42318; margin: 6px 0 0; font-size: 13px; }
.work-send-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:stretch; }
.work-send-layout h3 { margin:0 0 16px; font-size:15px; }
.work-send-sidebar { display:flex; flex-direction:column; contain:size; min-width:0; min-height:0; border-right:1px solid var(--line); padding-right:16px; }
.work-send-sidebar h3 { display:flex; align-items:center; min-height:32px; margin-bottom:14px; }
/* Let the detail determine height; additional choices scroll within that height. */
#workSendList { display:grid; align-content:start; grid-auto-rows:max-content; flex:1; min-height:0; height:0; gap:8px; overflow:auto; }
.work-send-choice { border:1px solid var(--line); border-radius:6px; padding:8px 10px; min-width:0; }
.work-send-choice[data-active="true"] { border-color:var(--brand); background:var(--brand-soft); }
.work-send-choice > div { display:grid; grid-template-columns:18px minmax(0,1fr); gap:8px; align-items:start; }
.work-send-choice input { margin-top:3px; }
.work-send-focus { border:0; background:transparent; color:var(--ink); text-align:left; padding:0; min-width:0; cursor:pointer; }
.work-send-focus strong,.work-send-focus span { display:block; overflow-wrap:anywhere; }
.work-send-focus span { font-size:12px; margin-top:5px; line-height:1.5; }
.work-send-prefill { margin:10px 0 0; font-size:12px; }
.work-send-detail { min-width:0; }
.work-send-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.work-send-detail-head h3 { margin:0; min-width:0; line-height:24px; padding-top:4px; overflow-wrap:anywhere; }
#workSendNav { display:flex; flex-shrink:0; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
#workSendNav span { min-width:45px; text-align:center; }
#workSendNav button { width:32px; height:32px; padding:0; font-size:22px; }
.work-send-detail .work-send-item { padding:0; border:0; }
.work-send-detail .work-send-item h4 { margin:0 0 10px; font-size:14px; overflow-wrap:anywhere; }
.work-send-tags { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.work-send-detail .work-text { margin:12px 0; }
.work-send-detail .rectification-record > h4 { border-bottom:1px solid var(--line); padding:10px 0; margin:0 0 10px; }
.work-send-detail .rectification-record > .record-fields { margin-bottom:16px; }
.work-send-detail [data-prefill-fields],.work-send-detail .rectification-record > .record-fields:last-child { margin-bottom:0; }
.work-send-recipients { border-top:1px solid var(--line); margin-top:20px; }
.work-send-recipients > .work-fields { grid-template-columns:minmax(0,350px); }
.work-send-recipients > .work-fields > label { display:grid; grid-template-columns:78px minmax(0,1fr); align-items:center; }
.work-send-recipient { flex:1 1 240px; min-width:0; border:1px solid var(--line); border-radius:6px; padding:12px; font-size:13px; overflow-wrap:anywhere; }
.work-send-recipient small { display:block; color:var(--muted); margin:6px 0; }
.work-send-recipient p { margin:6px 0; }
@media(max-width:900px) {
  .work-send-layout { grid-template-columns:200px minmax(0,1fr); gap:16px; }
  .work-send-sidebar { padding-right:16px; }
}
@media(max-width:760px) {
  .work-send-layout { grid-template-columns:minmax(0,1fr); }
  .work-send-sidebar { contain:none; border-right:0; border-bottom:1px solid var(--line); padding:0 0 16px; }
  #workSendList { flex:none; height:auto; grid-auto-flow:column; grid-auto-columns:200px; overflow-x:auto; }
  .work-send-detail .record-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .work-send-recipients > .work-fields { grid-template-columns:minmax(0,1fr); }
  .work-send-recipients > .work-fields > label { grid-template-columns:minmax(0,1fr); }
}
.rectification-plan-source { align-items: end; flex-wrap: wrap; }
.rectification-plan-source label { display: grid; gap: 6px; flex: 1; min-width: 160px; }
.rectification-plan-source select { width: 100%; min-width: 0; }
.recipient-record { border-bottom: 1px solid #d6e4fa; padding: 10px 0; }
.recipient-record > summary { cursor: pointer; font-weight: 600; }
[data-measures-person][hidden] { display: none; }


/* unit-confirm-group-by-main */
.unit-confirm-cards { display:flex; flex-direction:column; gap:12px; }
.unit-confirm-card { border:1px solid var(--line,#d8dee8); border-radius:10px; background:#fff; overflow:hidden; }
.unit-confirm-card-head { display:flex; align-items:flex-start; gap:8px; padding:12px 14px; background:#eef3f9; border-bottom:1px solid #dce5f1; }
.unit-confirm-card-title { min-width:0; flex:1; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.unit-confirm-card-title strong { font-size:14px; line-height:1.5; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.unit-confirm-card-body { padding:4px 8px 10px; }
.unit-confirm-matter-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:start; padding:10px 8px; border-top:1px solid var(--line,#e6ebf2); }
.unit-confirm-matter-row:first-child { border-top:0; }
.unit-confirm-pick { padding-top:4px; }
.unit-confirm-matter-main { min-width:0; display:flex; flex-direction:column; gap:4px; }
.unit-confirm-matter-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.unit-confirm-matter-desc { min-width:0; }
.unit-confirm-matter-status { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.unit-confirm-matter-ops { display:flex; flex-direction:column; gap:6px; align-items:flex-end; }
.confirmation-layout.unit-confirm-group .unit-confirm-group-head { grid-column:1/-1; }
/* siblings live inside .work-review-facts — do not assign grid-column that could span/flip twin */
.unit-confirm-siblings { margin-top:16px; padding-top:14px; border-top:1px solid var(--line,#e6ebf2); }
.unit-confirm-siblings-head { font-size:13px; font-weight:600; color:var(--muted); margin:0 0 8px; }
.unit-confirm-siblings-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.unit-confirm-sibling { min-width:0; }
.unit-confirm-sibling.is-current { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; background:#eef4ff; border:1px solid #c5d7f5; }
.unit-confirm-sibling-btn { display:flex; flex-wrap:wrap; align-items:center; gap:8px; width:100%; padding:8px 10px; border:1px solid var(--line,#e6ebf2); border-radius:8px; background:#fafbfd; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.unit-confirm-sibling-btn:hover { border-color:#c5d7f5; background:#f5f9ff; }
.unit-confirm-sibling-num { font-weight:600; color:#2459e5; flex:0 0 auto; }
.unit-confirm-sibling-title { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.unit-confirm-sibling-mark { font-size:12px; color:var(--brand,#2f6fed); font-weight:600; }
@media (max-width:900px) {
  .unit-confirm-matter-row { grid-template-columns:auto minmax(0,1fr); }
  .unit-confirm-matter-ops { grid-column:2; align-items:flex-start; }
}

/* 整改闭环详情：只收紧本弹窗密度，不改字段含义 */
.work-dialog:has(.rectify-detail) .work-dialog-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 4px;
  row-gap: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a3fa8 0%, #1e4fd6 100%);
}
.work-dialog:has(.rectify-detail):has(.work-dialog-nav:empty) .work-dialog-head { grid-template-columns: minmax(0,1fr) auto; }
.work-dialog:has(.rectify-detail) .work-dialog-heading { display: contents; }
.work-dialog:has(.rectify-detail) .work-dialog-heading-row { grid-column: 1; grid-row: 1; min-width: 0; padding: 14px 8px 10px 20px; }
.work-dialog:has(.rectify-detail) .work-dialog-nav { grid-column: 2; grid-row: 1; }
.work-dialog:has(.rectify-detail) .work-dialog-head > .work-icon-button { grid-column: 3; grid-row: 1; margin-right: 8px; }
.work-dialog:has(.rectify-detail):has(.work-dialog-nav:empty) .work-dialog-head > .work-icon-button { grid-column: 2; }
.work-dialog:has(.rectify-detail) .work-dialog-heading h2 { font-size: 18px; font-weight: 600; }
.work-dialog:has(.rectify-detail) .work-dialog-meta { gap: 6px; padding: 2px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; }
.work-dialog:has(.rectify-detail) .work-dialog-meta strong { font-size: 12px; font-weight: 500; }
.work-dialog:has(.rectify-detail) #workDialogSub { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 10px 20px 12px; background: rgba(0,0,0,.18); opacity: 1; color: rgba(255,255,255,.92); font-size: 12.5px; line-height: 1.65; }
.work-dialog:has(.rectify-detail) #workDialogSub:empty { display: none; }
.work-dialog:has(.rectify-detail) .work-dialog-body { padding: 16px 20px; }
.work-dialog:has(.rectify-detail) .work-dialog-foot { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px 16px; }
.rectify-detail > .rectify-block,
.rectify-detail > .rectify-collapse { padding: 14px 0; border-top: 1px solid var(--line); }
.rectify-detail > .rectify-block:first-child { border-top: 0; padding-top: 0; }
.rectify-detail > :last-child { padding-bottom: 0; }
.rectify-detail .work-section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; width: 100%; margin: 0 0 12px; padding: 0; border-bottom: 0; font-size: 14px; }
.rectify-detail .work-section-heading::before { content: ""; flex: none; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.rectify-detail .rectify-section-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.rectify-detail .rectify-section-meta span { margin-left: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.rectify-detail .rectify-section-meta b { color: var(--ink); font-weight: 500; }
.rectify-detail .rectify-section-meta label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.work-dialog .rectify-detail .rectify-section-meta select { width: auto; max-width: 240px; height: 28px; padding: 2px 8px; }
.rectify-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px 16px; margin: 0 0 12px; }
.rectify-meta-item { min-width: 0; }
.rectify-meta-item > span,
.rectify-meta label.rectify-meta-item { display: block; margin: 0 0 2px; color: var(--subtle); font-size: 12px; font-weight: 400; }
.rectify-meta label.rectify-meta-item { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.rectify-meta-item > strong { display: block; color: var(--ink); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; }
.rectify-meta label.rectify-meta-item input { width: 100%; height: 32px; color: var(--ink); font-size: 13px; }
.rectify-span { grid-column: 1 / -1; }
.rectify-desc { margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 4px; background: #fafbfc; }
.rectify-desc-label { margin-bottom: 4px; color: var(--subtle); font-size: 12px; }
.rectify-desc-text { color: var(--ink); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.rectify-desc-text.is-collapsed { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rectify-link { margin-left: auto; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 12px; cursor: pointer; }
.rectify-desc .rectify-link { display: inline-block; margin: 4px 0 0; }
.rectify-link:hover, .rectify-record-toggle:hover { text-decoration: underline; }
.rectify-link:focus-visible, .rectify-record-toggle:focus-visible, .rectify-collapse > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rectify-type { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--subtle); font-size: 12px; }
.rectify-type-tag { padding: 2px 8px; border-radius: 3px; background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.rectify-facts h4 { margin: 12px 0 6px; font-size: 13px; }
.rectify-facts .work-text { margin: 0 0 8px; }
.work-dialog .rectify-detail .bu-reply-columns .work-text { min-height: 0; background: #fafbfc; }
.work-dialog .rectify-detail .bu-reply-columns textarea { min-height: 72px; height: 88px; background: #fafbfc; }
.work-dialog .rectify-detail .bu-reply-columns .bu-reply-field > span,
.work-dialog .rectify-detail .bu-reply-columns label > span { color: var(--muted); font-size: 12px; font-weight: 500; }
.rectify-detail .bu-reply-date-below { margin-bottom: 10px; }
.rectify-detail .bu-reply-date-below > .bu-reply-field[data-measures],
.rectify-detail .bu-reply-date-below [data-measure-id] { display: contents; }
.rectify-detail .bu-reply-deadline-row { grid-column: 1 / -1; margin-top: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.rectify-detail .bu-reply-deadline-row strong { color: var(--ink); font-weight: 500; }
.work-dialog .rectify-detail .bu-reply-deadline-row input { flex: 0 1 180px; width: 180px; }
.rectify-collapse { margin: 0; }
.rectify-collapse > summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px dashed #d9d9d9; border-radius: 4px; background: #fafbfc; color: var(--muted); font-size: 12.5px; font-weight: 400; list-style: none; cursor: pointer; user-select: none; }
.rectify-collapse > summary::-webkit-details-marker { display: none; }
.rectify-collapse > summary::after { content: "▾"; margin-left: auto; color: var(--subtle); font-size: 11px; }
.rectify-collapse[open] > summary::after { content: "▴"; }
.rectify-collapse > summary:hover { border-color: #91b5ff; background: #f0f5ff; color: var(--brand); }
.rectify-muted, .rectify-dot { color: var(--subtle); }
.rectify-collapse[open] > :not(summary) { margin-top: 10px; }
.rectify-results .rectify-block { padding-top: 12px; border-top: 0; }
.rectify-results .rectify-block + .rectify-block { border-top: 1px solid var(--line); }
.rectify-legacy { margin-top: 10px; }
.rectify-legacy > summary { color: var(--muted); cursor: pointer; }
.rectify-verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 14px; border: 1px solid #d6e4ff; border-radius: 4px; background: linear-gradient(90deg, #f0f5ff 0%, #fafbfc 100%); color: var(--muted); font-size: 12.5px; }
.rectify-verify-bar b { color: var(--ink); font-weight: 500; }
.rectify-verify-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rectify-progress-edit { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.work-dialog .rectify-progress-edit input { width: 72px; height: 28px; padding: 2px 8px; }
.rectify-track { display: inline-block; width: 48px; height: 6px; overflow: hidden; border-radius: 3px; background: #e5e7eb; vertical-align: middle; }
.rectify-track > span { display: block; height: 100%; background: var(--brand); }
.rectify-concl { display: inline-block; padding: 0 6px; border: 1px solid #ffd591; border-radius: 3px; background: #fff7e6; color: #d48806; font-size: 12px; line-height: 1.6; }
.rectify-concl.is-pass { border-color: #b7eb8f; background: var(--green-soft); color: var(--green); }
.rectify-concl.is-return { border-color: #ffa39e; background: var(--red-soft); color: var(--red); }
.rectify-verify-detail { margin-top: 10px; }
.rectify-note { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.work-dialog .rectify-note textarea { width: 100%; min-height: 72px; }
.rectify-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.rectify-foot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rectify-record-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.rectify-record-panel { max-height: 220px; margin-top: 8px; padding-top: 8px; overflow: auto; border-top: 1px solid var(--line); }
.rectify-record-panel .work-records { margin-top: 0; padding-top: 8px; }
.rectify-record-panel .work-records:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) {
  .rectify-meta, .rectify-verify-detail .rectify-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rectify-detail .rectify-section-meta { width: 100%; margin-left: 0; }
}
@media (max-width: 640px) {
  .rectify-foot { align-items: stretch; flex-direction: column; }
  .rectify-verify-bar .rectify-link { margin-left: 0; }
}
