/* Scoped OCR review dialog. Business data is never edited here. */
body.sy-ocr-open{overflow:hidden}
.sy-ocr-overlay{position:fixed;inset:0;z-index:16000;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(19,31,50,.48);box-sizing:border-box;color:var(--sy-text,#344054);font:13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.sy-ocr-overlay *{box-sizing:border-box}
.sy-ocr-dialog{display:flex;flex-direction:column;width:min(1180px,100%);max-height:calc(100dvh - 56px);min-height:360px;border:1px solid var(--sy-border,#e3e8f0);border-radius:14px;background:var(--sy-surface,#fff);box-shadow:0 24px 72px #10213a30;overflow:hidden;outline:none}
.sy-ocr-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 24px 16px;border-bottom:1px solid var(--sy-border,#e7ebf2)}
.sy-ocr-header h2{font-size:18px;font-weight:600;line-height:1.5;margin:0 0 4px;color:var(--sy-text,#24344b)}
.sy-ocr-header p,.sy-ocr-footer p{margin:0;color:var(--sy-muted,#77849a);font-size:12px}
.sy-ocr-dialog button,.sy-ocr-dialog a{font:inherit}
.sy-ocr-dialog button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:34px;height:34px;border:1px solid var(--sy-border,#dce3ed);border-radius:6px;padding:0 12px;white-space:nowrap;color:var(--sy-text,#46556d);background:var(--sy-surface,#fff);cursor:pointer;margin:0}
.sy-ocr-dialog button:hover:not(:disabled){background:var(--sy-surface-alt,#f5f7fb);border-color:#b8c9e8}
.sy-ocr-dialog button:disabled{cursor:default;opacity:.48}
.sy-ocr-dialog button:focus-visible,.sy-ocr-dialog a:focus-visible,.sy-ocr-dialog summary:focus-visible,.sy-ocr-dialog input:focus-visible,.sy-ocr-attachment:focus-visible{outline:2px solid #3b82f6;outline-offset:3px}
.sy-ocr-dialog .sy-ocr-close{flex:none;width:32px;height:32px;min-height:32px;padding:0;border:0;background:transparent;font-size:24px;line-height:1;color:#8590a2}
.sy-ocr-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px 24px}
.sy-ocr-modes{display:flex;gap:4px;padding:3px;border-radius:8px;background:var(--sy-surface-alt,#f0f3f8)}
.sy-ocr-modes button{border-color:transparent;background:transparent;min-width:82px;height:32px;min-height:32px}
.sy-ocr-modes button[aria-pressed=true]{background:var(--sy-surface,#fff);border-color:#dce4ef;color:#2563c4;box-shadow:0 1px 3px #263d6010}
.sy-ocr-file-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.sy-ocr-file-controls label{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px}
.sy-ocr-file-controls input{width:68px;height:34px;min-height:34px;margin:0;padding:5px 8px;border:1px solid var(--sy-border,#dce3ed);border-radius:6px;font:inherit;background:var(--sy-surface,#fff);color:inherit}
.sy-ocr-dialog button.sy-ocr-primary{background:#2563c4;border-color:#2563c4;color:#fff;min-width:92px}
.sy-ocr-dialog button.sy-ocr-primary:hover:not(:disabled){background:#1d54af}
.sy-ocr-status,.sy-ocr-error,.sy-ocr-notice{flex:none;margin:0 24px 12px;padding:9px 12px;border:1px solid var(--sy-border,#e5eaf2);border-radius:7px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.sy-ocr-status{background:var(--sy-surface-alt,#f7f9fc);color:var(--sy-muted,#718096)}
.sy-ocr-status.is-ready{color:#26735a;background:#f2faf5;border-color:#d9eee3}
.sy-ocr-status.is-warn,.sy-ocr-compare.is-warn,.sy-ocr-warnings{background:#fffbf1;border-color:#f0e1bd;color:#88642a}
.sy-ocr-status button{margin-left:10px;height:28px;min-height:28px;font-size:12px}
.sy-ocr-status small{display:block}
.sy-ocr-error{background:#fff5f4;border-color:#f4d8d5;color:#b34d48}
.sy-ocr-notice{background:#f1f7ff;border-color:#dce8fb;color:#35649d}
.sy-ocr-body{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:20px;min-height:180px;flex:1;overflow:auto;padding:4px 24px 20px;overscroll-behavior:contain}
.sy-ocr-preview,.sy-ocr-result{min-width:0}
.sy-ocr-preview{align-self:start;border:1px solid var(--sy-border,#e5eaf2);border-radius:9px;overflow:hidden;background:var(--sy-surface-alt,#f6f8fb)}
.sy-ocr-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--sy-border,#e5eaf2);background:var(--sy-surface,#fff)}
.sy-ocr-preview-head>div{min-width:0}.sy-ocr-preview-head strong{display:block;font-weight:500;overflow-wrap:anywhere;font-size:12px}.sy-ocr-preview-head span{display:block;font-size:11px;color:var(--sy-muted,#8491a4)}
.sy-ocr-dialog a{color:#326cc0;text-decoration:none;white-space:nowrap;font-size:12px}.sy-ocr-dialog a:hover{text-decoration:underline}
.sy-ocr-image{padding:14px;max-height:60vh;overflow:auto;text-align:center}.sy-ocr-image img{display:block;width:auto;max-width:100%;height:auto;margin:0 auto;background:#fff;box-shadow:0 2px 8px #263d6010}
.sy-ocr-no-file,.sy-ocr-pdf{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:270px;gap:10px;padding:36px 24px;text-align:center;color:var(--sy-muted,#77849a)}
.sy-ocr-no-file>span,.sy-ocr-pdf>span{font-size:28px;color:#9aa9be}.sy-ocr-pdf>span{font-size:18px;font-weight:600;border:1px solid #cdd7e5;padding:14px 10px;border-radius:6px;background:#fff}
.sy-ocr-no-file strong,.sy-ocr-pdf strong{font-weight:500;color:var(--sy-text,#46556d)}.sy-ocr-no-file p,.sy-ocr-pdf p{font-size:12px;max-width:280px;margin:0}
.sy-ocr-result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:270px;padding:36px;text-align:center;border:1px dashed var(--sy-border,#dbe3ef);border-radius:9px;color:var(--sy-muted,#7e8ba0)}
.sy-ocr-result-empty strong{font-size:14px;font-weight:500;color:var(--sy-text,#4c5d76)}.sy-ocr-result-empty p{font-size:12px;max-width:300px;margin:10px 0 0}
.sy-ocr-result-heading h3{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:600}.sy-ocr-result-heading h3 span{font-size:11px;font-weight:400;padding:2px 7px;color:#88642a;background:#fff5df;border-radius:4px}.sy-ocr-result-heading p{font-size:11px;color:var(--sy-muted,#8491a4);margin:6px 0 12px;overflow-wrap:anywhere}
.sy-ocr-compare{padding:10px 12px;margin-bottom:14px;border:1px solid #dce8f5;border-radius:7px;background:#f6f9fd;color:#526a8d;font-size:12px;overflow-wrap:anywhere}.sy-ocr-compare strong{font-size:12px;font-weight:500}.sy-ocr-compare p{font-size:12px;margin:5px 0}.sy-ocr-compare b{font-weight:500}.sy-ocr-compare small{display:block;margin-top:5px;font-size:11px}
.sy-ocr-warnings{padding:10px 12px 10px 28px;border:1px solid #f0e1bd;border-radius:7px;font-size:12px;margin:0 0 12px}
.sy-ocr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sy-ocr-field{display:block;min-width:0}.sy-ocr-field>span{display:block;font-size:12px;margin-bottom:6px}.sy-ocr-field small{font-size:11px;font-weight:400;color:var(--sy-muted,#8793a7);overflow-wrap:anywhere}.sy-ocr-field>small{display:block;margin-top:5px;line-height:1.6}
.sy-ocr-field input{width:100%;height:34px;min-height:34px;margin:0;padding:6px 9px;border:1px solid var(--sy-border,#dce3ed);border-radius:6px;font:inherit;line-height:1.5;color:inherit;background:var(--sy-surface,#fff)}
.sy-ocr-original{margin-top:18px;border-top:1px solid var(--sy-border,#e7ebf2);padding-top:12px}.sy-ocr-original summary{font-size:12px;color:#61728c;cursor:pointer}.sy-ocr-original pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px;line-height:1.9;color:var(--sy-text,#57677f);margin:10px 0 0;padding:12px;background:var(--sy-surface-alt,#f6f8fb);border-radius:6px;max-height:260px;overflow:auto}
.sy-ocr-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 24px;border-top:1px solid var(--sy-border,#e7ebf2);background:var(--sy-surface,#fff)}.sy-ocr-footer>div{display:flex;align-items:center;gap:8px}
.sy-ocr-copy-helper{position:fixed;left:-10000px;top:0}
.is-file-card .sy-ocr-attachment{flex:none;width:auto;min-width:0;height:30px;min-height:30px;margin:0 0 0 6px;padding:0 10px;border:1px solid #dce5f2;border-radius:6px;background:#f4f8ff;color:#416da9;font-size:12px;white-space:nowrap}
.sy-ocr-issue-entry{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:12px 0;min-width:0}
.sy-ocr-issue-entry button{flex:none;width:auto;min-width:0;min-height:34px;height:34px;margin:0;padding:0 12px;border:1px solid var(--sy-border,#d3dff0);border-radius:6px;background:var(--sy-surface,#fff);color:#3769ac;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.sy-ocr-issue-entry button:hover:not(:disabled){background:var(--sy-surface-alt,#f4f8ff)}.sy-ocr-issue-entry button:focus-visible{outline:2px solid #3b82f6;outline-offset:3px}.sy-ocr-issue-entry button:disabled{cursor:default;opacity:.5}
.sy-ocr-issue-entry span{font-size:12px;line-height:1.7;color:var(--sy-muted,#7d8ba0);overflow-wrap:anywhere;min-width:0}
.sy-ocr-integration-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:16px 18px;border:1px solid var(--sy-border,#e1e8f2);border-radius:9px;background:var(--sy-surface-alt,#f7f9fc);color:var(--sy-text,#46556d)}
.sy-ocr-integration-entry h3,.sy-ocr-integration-entry strong{font-size:13px;font-weight:500;margin:0 0 4px}.sy-ocr-integration-entry p,.sy-ocr-integration-entry small{display:block;margin:4px 0 0;font-size:12px;line-height:1.7;color:var(--sy-muted,#7d8ba0)}
.sy-ocr-integration-entry button{flex:none;min-height:34px;height:34px;padding:0 12px;border:1px solid #d3dff0;border-radius:6px;background:var(--sy-surface,#fff);color:#3769ac;font:inherit;font-size:13px;cursor:pointer}.sy-ocr-integration-entry button:focus-visible{outline:2px solid #3b82f6;outline-offset:3px}
@media(max-width:1100px){.sy-ocr-overlay{padding:20px}.sy-ocr-dialog{max-height:calc(100dvh - 40px)}.sy-ocr-body{gap:16px}.sy-ocr-fields{grid-template-columns:1fr}.sy-ocr-footer{align-items:flex-start}.sy-ocr-footer p{max-width:220px}.sy-ocr-file-controls{gap:8px}}
@media(max-width:640px){.sy-ocr-overlay{padding:10px;align-items:center}.sy-ocr-dialog{max-height:calc(100dvh - 20px);border-radius:11px;min-height:0}.sy-ocr-header{padding:16px;gap:10px}.sy-ocr-header h2{font-size:16px}.sy-ocr-header p{font-size:11px}.sy-ocr-toolbar{padding:12px 16px;gap:12px;align-items:flex-start}.sy-ocr-modes{width:100%}.sy-ocr-modes button{flex:1}.sy-ocr-file-controls{justify-content:flex-start;width:100%;gap:8px}.sy-ocr-file-controls>button{flex:1}.sy-ocr-file-controls label{order:2;width:100%;font-size:12px}.sy-ocr-file-controls input{width:76px}.sy-ocr-status,.sy-ocr-error,.sy-ocr-notice{margin:0 16px 10px;padding:8px 10px}.sy-ocr-status button{margin:6px 6px 0 0}.sy-ocr-body{display:block;padding:2px 16px 16px;min-height:160px}.sy-ocr-preview{margin-bottom:16px}.sy-ocr-image{max-height:260px;padding:10px}.sy-ocr-no-file,.sy-ocr-pdf{min-height:180px;padding:22px 16px}.sy-ocr-result-empty{min-height:180px;padding:24px 16px}.sy-ocr-fields{grid-template-columns:1fr;gap:12px}.sy-ocr-footer{display:block;padding:12px 16px}.sy-ocr-footer p{font-size:11px;max-width:none;margin-bottom:10px}.sy-ocr-footer>div{gap:6px;flex-wrap:wrap}.sy-ocr-footer button{padding:0 9px;font-size:12px}.sy-ocr-footer button:last-child{margin-left:auto}.is-file-card{flex-wrap:wrap}.is-file-card .sy-ocr-attachment{margin-left:0}.sy-ocr-preview-head{gap:8px}}

/* V217: compact empty state; one file chooser and one close entry. */
.sy-ocr-dialog{width:min(1000px,100%);min-height:0;border-radius:10px}
.sy-ocr-dialog.is-empty{width:min(760px,100%)}
.sy-ocr-header{padding:14px 20px;gap:12px}
.sy-ocr-header h2{font-size:16px;margin-bottom:2px}
.sy-ocr-toolbar{padding:12px 20px;gap:12px}
.sy-ocr-status,.sy-ocr-error,.sy-ocr-notice{margin:0 20px 10px;padding:8px 10px}
.sy-ocr-body{padding:0 20px 16px;gap:16px;min-height:0}
.sy-ocr-dialog.is-empty .sy-ocr-body{display:block;flex:none}
.sy-ocr-dialog.is-empty .sy-ocr-result{display:none}
.sy-ocr-dialog.is-empty .sy-ocr-no-file{min-height:170px;padding:20px;gap:8px}
.sy-ocr-dialog.is-empty .sy-ocr-no-file>span{font-size:26px;margin:0}
.sy-ocr-dialog.is-empty .sy-ocr-no-file strong{font-size:14px}
.sy-ocr-dialog.is-empty .sy-ocr-no-file p{max-width:none;margin:0;font-size:12px;line-height:20px}
.sy-ocr-dialog.is-empty .sy-ocr-footer{display:none}
.sy-ocr-footer{padding:12px 20px;gap:12px}
.sy-ocr-dialog [hidden]{display:none!important}
@media(max-width:650px){.sy-ocr-overlay{padding:12px}.sy-ocr-header,.sy-ocr-toolbar{padding:12px 14px}.sy-ocr-body{padding:0 14px 14px}.sy-ocr-status,.sy-ocr-error,.sy-ocr-notice{margin-left:14px;margin-right:14px}.sy-ocr-footer{padding:12px 14px}}
