.ui-ocr-dialog{width:min(780px,calc(100vw - 40px));max-width:780px;max-height:calc(100vh - 48px);overflow:auto}.ui-ocr-scopes .ui-action{border:1px solid #d6d3cd;border-radius:6px;padding:10px 14px;background:#fff}.ui-ocr-scopes .ui-action:hover{border-color:#d94a38;background:#fff4f0}.ui-ocr-scopes{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ui-ocr-settings{display:flex;gap:18px;align-items:center;margin:14px 0}.ui-ocr-settings label{display:grid;gap:6px;flex:1}.ui-ocr-settings select{width:100%;padding:9px;border:1px solid #d6d3cd;border-radius:6px;background:#fff;color:inherit}.ui-ocr-note{font-size:12px;color:#65625d;line-height:1.5}.ui-ocr-dialog progress{width:100%;accent-color:#d94a38}.ui-ocr-actions{display:flex;gap:8px;align-items:center;margin:12px 0}.ui-ocr-actions input{flex:1;min-width:80px;padding:9px;border:1px solid #d6d3cd;border-radius:6px}.ui-ocr-results{max-height:390px;overflow:auto}.ui-ocr-row{display:grid;grid-template-columns:65px minmax(80px,1fr) 85px 60px;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid #e6e2dc;font-size:12px}.ui-ocr-row input{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d6d3cd;border-radius:5px;padding:7px;font:inherit}.ui-ocr-row[data-uncertain=true] input{border-color:#b97616;background:#fff8e8}.ui-ocr-row small{color:#756a57}.ui-ocr-row button{padding:6px}.ui-ocr-pick{position:absolute;inset:0;z-index:100;cursor:crosshair;touch-action:none;outline:0}.ui-ocr-pick-box{position:absolute;border:1.5px solid #d94a38;background:#d94a3819;pointer-events:none;box-sizing:border-box}.ui-ocr-pick-hint{position:fixed;z-index:2147483000;bottom:48px;left:50%;transform:translateX(-50%);padding:10px 14px;border:1px solid #d6d3cd;border-radius:8px;background:#fffdf9;box-shadow:0 4px 20px #0002;font:13px system-ui;display:flex;gap:14px;align-items:center}.ui-ocr-found{position:absolute;pointer-events:none;background:#f6b93b44;border:2px solid #b97616;z-index:99;box-sizing:border-box}
.ui-ocr-dialog #uiOcrReview[hidden]{display:none}
body.ui-test dialog.ui-ocr-dialog{width:min(780px,calc(100vw - 40px));max-width:780px;box-sizing:border-box}
body.ui-test .ui-ocr-scopes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
body.ui-test .ui-ocr-scopes .ui-ocr-scan{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:154px;height:auto;padding:17px;text-align:left;white-space:normal;border:1.5px solid #a49a8a;border-radius:8px;background:#fff;color:#302d29;box-shadow:0 2px 4px #302d2910;cursor:pointer;font:13px/1.4 Arial}
body.ui-test .ui-ocr-scopes .ui-ocr-scan strong{font-size:15px;line-height:1.3}
body.ui-test .ui-ocr-scopes .ui-ocr-scan span{font-size:12px;opacity:.85}
body.ui-test .ui-ocr-scopes .ui-ocr-scan svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.ui-test .ui-ocr-scopes .ui-ocr-scan[data-ocr-scope=page]{background:#bf422f;color:white;border-color:#bf422f}
body.ui-test .ui-ocr-scopes .ui-ocr-scan:hover{box-shadow:0 0 0 2px #bf422f40;transform:translateY(-1px)}
body.ui-test .ui-ocr-scopes .ui-ocr-scan:disabled{opacity:.5;cursor:wait;transform:none}
body.ui-test #uiOcrStatus{padding:12px 14px;border-radius:6px;background:#f0eee8;color:#35332f;font-size:13px;line-height:1.5}
body.ui-test #uiOcrReview{margin:15px 0;border-top:1px solid #ded9d0;padding-top:13px}
body.ui-test #uiOcrReview summary{cursor:pointer;font-size:12px;color:#605a51}
body.ui-test .ui-ocr-footer{display:flex;align-items:center;gap:8px;margin-top:20px;padding-top:14px;border-top:1px solid #ded9d0}
body.ui-test .ui-ocr-footer>span{flex:1;font-size:12px;color:#65625d;line-height:1.4}
body.ui-test .ui-ocr-footer .ui-action{border:1px solid #c8c0b3;padding:0 15px;height:36px}
@media(max-width:700px){body.ui-test .ui-ocr-scopes{grid-template-columns:1fr}body.ui-test .ui-ocr-scopes .ui-ocr-scan{min-height:90px}}
