.upstream-strip,.analysis-notice { display:flex;align-items:center;gap:9px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;color:#777b7e;margin-bottom:18px;flex-wrap:wrap }
.upstream-strip>span:first-of-type,.analysis-notice>span { flex:1;min-width:180px }
.upstream-strip>.badge { font-size:10px }
.analysis-notice { color:#976d2f;background:#fff9ec;padding:10px 12px;border-color:#f1e1bf }
.review-toolbar { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;font-size:12px;color:#767d82 }
.review-toolbar select { font-size:12px;max-width:min(550px,100%);flex:1;min-width:160px }
.review-toolbar .review-boundary { margin-left:auto;font-size:11px;color:#92989b }
.review-loading,.review-empty { padding:30px 18px;text-align:center;color:#8d969b;font-size:12px }
.review-loading button { margin-left:16px }
.proof-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff }
.proof-pane { min-width:0;display:flex;flex-direction:column }
.proof-pane+.proof-pane { border-left:1px solid var(--line) }
.proof-pane-head { display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:12px 18px;border-bottom:1px solid var(--line);background:#fcfbfa;flex-wrap:wrap }
.proof-pane-head h2,.proof-history h2 { display:flex;align-items:center;gap:8px;font-size:14px }
.proof-pane-head h2 svg { color:var(--brand-red) }
.proof-pane-head .badge { font-size:10px }
.proof-source-meta { padding:14px 18px;display:flex;flex-direction:column;gap:5px;font-size:12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere }
.proof-source-meta .mono { font-size:10px;color:#959c9f }
.proof-tools { display:flex;align-items:center;gap:8px;min-height:44px;padding:5px 18px;border-bottom:1px solid var(--line);font-size:11px;color:#8d9598 }
.proof-tools input { width:70px;height:30px;padding:3px 8px;font-size:12px }
.proof-tools .icon-btn { width:28px;height:28px;min-height:28px;padding:5px }
.proof-original-scroll { overflow:auto;max-height:650px;min-height:360px;flex:1;background:#fbfcfc }
.proof-original-text { padding:16px 0;min-width:0 }
.proof-original-line { display:grid;grid-template-columns:42px minmax(0,1fr);font-size:12px;line-height:1.9;min-height:26px;padding:2px 16px 2px 0;white-space:pre-wrap;overflow-wrap:anywhere }
.proof-original-line>span:first-child { color:#adb3b6;text-align:center;font-size:10px;user-select:none }
.proof-original-line.highlight { background:#fff0d1 }
.proof-image { width:100%;min-height:360px;padding:12px }
.proof-image img { display:block;width:100%;height:auto }
.proof-image.zoom-75 { width:75% }.proof-image.zoom-125 { width:125% }.proof-image.zoom-150 { width:150% }.proof-image.zoom-175 { width:175% }.proof-image.zoom-200 { width:200% }
.proof-version { display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);font-size:11px;color:#7e878d }
.proof-version select { font-size:11px;flex:1;min-width:0 }
#proofreading-form { display:flex;flex-direction:column;flex:1;min-width:0 }
#proof-text { width:100%;height:290px;min-height:240px;resize:vertical;border:0;border-radius:0;padding:18px;font-size:13px;line-height:1.95;color:#4c5960;background:#fff;outline-offset:-2px }
#proof-text:read-only { background:#fafbfc;color:#7b858b }
.proof-text-meta { display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 18px;border-top:1px solid var(--line);font-size:10px;color:#929c9f }
.proof-save-fields { padding:12px 18px;border-top:1px solid var(--line) }
.proof-save-fields>label { display:block;font-size:12px;color:#737c81;margin-bottom:7px }
#proof-note { min-height:64px;max-height:160px;resize:vertical;font-size:12px;line-height:1.7 }
.proof-save-fields .proof-ack { display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#939b9f;margin:11px 0 }
.proof-ack input { flex:none;margin:3px 0 0;accent-color:var(--brand-red) }
.proof-save-row { display:flex;align-items:center;justify-content:space-between;gap:14px }
.proof-save-row>span { font-size:10px;color:#a3a9aa;flex:1 }
.proof-save-row button { font-size:12px;flex:none }
.proof-readonly { padding:15px 18px;font-size:12px;color:#919a9f }
#proof-error { margin:0;padding:0 18px 12px;font-size:11px;min-height:18px }
.proof-history { margin-top:25px }
.proof-history h2 { padding-bottom:14px }
.proof-history h2 span { color:#a2a8aa;font-size:11px;font-weight:400 }
.proof-history th:first-child { width:80px }.proof-history th:last-child { width:200px }
.proof-history td { font-size:12px }
.matters-layout { display:grid;grid-template-columns:220px minmax(0,1fr);border-top:1px solid var(--line);min-height:550px }
.matter-list { padding:0 15px 0 0;border-right:1px solid var(--line);max-height:820px;overflow:auto }
.matter-list-item { border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;width:100%;display:flex;flex-direction:column;align-items:stretch;text-align:left;white-space:normal;gap:9px;padding:16px 10px;color:#8d969b;font-size:11px;line-height:1.8 }
.matter-list-title { display:flex;align-items:center;gap:8px;color:#505b62;font-size:13px }
.matter-list-title small { color:#a0a8ac;font-size:10px }
.matter-list-item.active { background:var(--brand-tint);box-shadow:inset 3px 0 var(--brand-red) }
.matter-list-item.active .matter-list-title { color:var(--brand-red) }
.matter-list-meta { display:flex;justify-content:space-between;gap:4px;font-size:10px;flex-wrap:wrap }
.matter-list-meta b { font-weight:400;color:#a38a5f }
.matter-detail-layout { display:grid;grid-template-columns:minmax(0,1fr);min-width:0 }
.matter-detail-layout.with-source { grid-template-columns:minmax(0,1fr) minmax(280px,40%) }
.matter-detail { padding:22px 0 24px 24px;min-width:0 }
.with-source .matter-detail { padding-right:20px }
.matter-detail-head { display:flex;align-items:flex-start;justify-content:space-between;gap:10px }
.matter-detail-head h2 { font-size:20px;line-height:1.6 }
.matter-detail-head p { font-size:12px;color:#919b9f;margin-top:7px;overflow-wrap:anywhere }
.matter-detail-head .badge { flex:none;font-size:10px }
.matter-relation { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;color:#8d969a;font-size:11px }
.matter-tabs { display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:19px;overflow:auto }
.matter-tabs button { border:0;border-bottom:2px solid transparent;border-radius:0;font-size:12px;padding:10px 0;background:none;color:#929a9e }
.matter-tabs button[aria-selected=true] { color:var(--brand-red);border-bottom-color:var(--brand-red) }
.matter-section-title { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 12px }
.matter-section-title h2 { font-size:13px }
.matter-section-title>span { font-size:10px;color:#9aa2a6 }
.matter-matrix table { min-width:450px;table-layout:fixed }
.matter-matrix th:first-child { width:76px }
.matter-matrix th { background:#f9fafb }
.matter-matrix td { padding:14px 12px;vertical-align:top }
.matter-claim+.matter-claim { border-top:1px solid var(--line);margin-top:14px;padding-top:14px }
.matter-claim>div:first-child { display:flex;gap:5px;flex-wrap:wrap }
.matter-claim .badge { font-size:9px }
.matter-claim p { font-size:12px;color:#57656d;line-height:1.9;margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere }
.matter-claim p.matter-question { font-size:11px;color:#9aa3a8 }
.matter-claim small { font-size:10px;color:#ad8d5f;line-height:1.7 }
.matter-claim-actions { display:flex;justify-content:flex-end;gap:3px;margin-top:10px }
.matter-check,.matter-task { border-bottom:1px solid var(--line);padding:15px 0 }
.matter-check>div:first-child,.matter-task>div { display:flex;align-items:center;justify-content:space-between;gap:10px }
.matter-check h3,.matter-task h3 { font-size:12px }
.matter-check p,.matter-task p { color:#78858d;font-size:12px;line-height:1.9;margin-top:9px;overflow-wrap:anywhere }
.matter-check strong { font-weight:500;color:#56616a }
.matter-check-actions { display:flex;justify-content:flex-end;margin-top:8px }
.matter-task>div:last-child { font-size:11px;color:#9ba2a6;margin-top:12px }
.matter-material { display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:18px 0 }
.matter-material>svg { color:#7f9eae }
.matter-material>div { flex:1;min-width:0;overflow-wrap:anywhere }
.matter-material strong { font-size:12px;font-weight:500;display:block }
.matter-material span { font-size:10px;display:block;color:#9aa4a9;margin-top:6px }
.matter-detail-layout>.source-panel { max-height:850px;position:sticky;top:110px;margin-left:10px }
.workspace-tabs { overflow-x:auto }
.workspace-tabs button { flex:none }
@media(max-width:1350px) {
  .matter-detail-layout.with-source { grid-template-columns:minmax(0,1fr) }
  .matter-detail-layout>.source-panel { position:relative;top:auto;max-height:550px;margin:15px 0 0 20px;border:1px solid var(--line) }
  .with-source .matter-detail { padding-right:0 }
}
@media(max-width:1000px) {
  .proof-layout { grid-template-columns:minmax(0,1fr) }
  .proof-pane+.proof-pane { border-left:0;border-top:1px solid var(--line) }
  .proof-original-scroll { max-height:340px;min-height:230px }
  .matters-layout { grid-template-columns:190px minmax(0,1fr) }
  .matter-detail { padding-left:18px }
}
@media(max-width:760px) {
  .upstream-strip,.analysis-notice { font-size:11px;line-height:1.8 }
  .review-toolbar { gap:8px;font-size:11px }
  .review-toolbar .review-boundary { margin-left:0 }
  .review-toolbar select { flex-basis:70%;font-size:11px }
  .proof-pane-head { padding:12px }
  .proof-pane-head h2 { font-size:13px }
  .proof-source-meta,.proof-version { padding:12px }
  #proof-text { height:330px;padding:12px;font-size:12px }
  .proof-save-fields { padding:12px }
  .proof-save-row { flex-wrap:wrap }
  .proof-save-row>span { flex-basis:100% }
  .proof-history th:last-child { width:130px }
  .proof-history th:first-child { width:55px }
  .matters-layout { display:block }
  .matter-list { display:flex;gap:8px;border:0;border-bottom:1px solid var(--line);max-height:none;padding:10px 0;overflow:auto }
  .matter-list-item { flex:0 0 190px;border:1px solid var(--line);border-radius:5px;padding:12px }
  .matter-detail { padding:20px 0 }
  .matter-detail-head h2 { font-size:18px }
  .matter-detail-layout>.source-panel { margin:0;max-height:500px }
  .matter-material { flex-wrap:wrap }
  .matter-material>div { flex-basis:65% }
  .workspace-tabs { gap:21px }
  .workspace-version { display:none }
}
.proof-head-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.proof-reanalyze{display:inline-flex;align-items:center;gap:4px;border:1px solid #d71914;border-radius:5px;padding:5px 8px;background:#d71914;color:#fff;font-size:11px;cursor:pointer}.proof-reanalyze svg{width:13px;height:13px}.proof-native-file{display:flex;flex-direction:column;gap:8px;height:100%;min-height:520px;background:#f7f8f8}.proof-native-file iframe{width:100%;min-height:470px;border:0;background:#fff}.proof-native-file a,.proof-format-empty a{display:inline-flex;align-items:center;gap:4px;padding:0 12px 12px;color:#c52621;font-size:11px}.proof-format-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:28px 22px;color:#766a64;line-height:1.8}.proof-format-empty strong{font-size:15px;color:#493b38}.proof-format-empty span{font-size:12px}.report-export-actions{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.report-export-actions button{font-size:11px}
