:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#1d2939;background:#f4f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px}.app-shell{min-height:100vh}.app-header{height:58px;background:#172a3a;border-bottom:1px solid #0e1c27;color:#e8eef3}.header-inner,.content-shell{max-width:1320px;margin:auto;padding-inline:28px}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#fff;font-weight:600;font-size:14px}.brand-mark{display:grid;place-items:center;width:28px;height:28px;background:#e7edf2;color:#1e374a;border-radius:3px;font-size:10px;font-weight:800}.header-context{display:flex;align-items:center;gap:11px;color:#b8c5ce;font-size:12px}.header-context strong{font-weight:500;color:#edf2f5}.context-divider{height:16px;border-left:1px solid #456073}.service-status{display:flex;align-items:center;gap:5px;color:#c9d6de}.service-status i,.status-dot{width:7px;height:7px;border-radius:50%;background:#54a577;display:inline-block}.content-shell{padding-top:23px;padding-bottom:30px}.page-title{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:19px}.breadcrumb{color:#697b8a;font-size:12px;margin:0 0 5px}.page-title h1{font-size:22px;font-weight:600;letter-spacing:-.02em;margin:0}.page-title p:not(.breadcrumb){margin:5px 0 0;color:#607080;font-size:13px}.page-status{border:1px solid #d5dde3;background:#fff;padding:8px 10px;border-radius:4px;color:#395468;font-size:12px;display:flex;align-items:center;gap:7px}.workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr);gap:16px;align-items:stretch}.panel,.result-panel{background:#fff;border:1px solid #dfe5e9;border-radius:5px;box-shadow:0 1px 2px #1c344008}.work-panel{padding:21px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start}.panel-heading h2,.result-panel h2{margin:0;color:#22394d;font-size:16px;font-weight:600}.panel-heading p{margin:5px 0 0;color:#687987;font-size:12px}.step{color:#516979;background:#f4f7f8;border:1px solid #e0e6ea;border-radius:3px;padding:5px 7px;font-size:10px;font-weight:600}.mode-tabs{display:flex;gap:0;border-bottom:1px solid #e0e5e8;margin-top:19px}.mode-tabs button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:#607080;padding:10px 14px 9px 0;margin-right:22px;font:600 12px Inter,Segoe UI,Arial;cursor:pointer}.mode-tabs button.active{color:#1e5578;border-bottom-color:#27719c}.dropzone,.canvas-wrap{height:214px;margin-top:17px;border:1px dashed #bdc8d0;border-radius:4px;background:#fbfcfd}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;color:#657987}.dropzone input{display:none}.dropzone strong{font-size:13px;color:#324a5c;font-weight:600}.dropzone small,.hint{font-size:11px}.upload-icon{font-size:20px;color:#49718b}.mail-preview{height:214px;margin-top:17px;background:#f1f4f6;border:1px solid #dfe5e9;border-radius:4px;overflow:hidden;position:relative;display:grid;place-items:center}.mail-preview img{max-width:100%;max-height:100%;object-fit:contain}.mail-preview button,.clear-button{position:absolute;right:8px;top:8px;background:#fff;color:#365064;border:1px solid #d5dfe5;border-radius:3px;padding:6px 8px;font:600 11px Inter,Segoe UI,Arial;cursor:pointer}.input-error{font-size:11px;color:#ae4034}.file-name{font-size:11px;color:#2d7a5c;margin:8px 0 0}.canvas-wrap{position:relative;overflow:hidden;border-style:solid}.canvas-wrap canvas{position:relative;z-index:1;width:100%;height:100%;touch-action:none;cursor:crosshair}.canvas-guide{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#a7b5bf;font-size:13px;pointer-events:none}.clear-button{z-index:2}.clear-button:disabled{opacity:.45}.action-row{display:flex;align-items:center;gap:13px;margin-top:16px}.primary-button{border:1px solid #245d80;background:#2a6d93;color:#fff;border-radius:3px;height:36px;padding:0 15px;font:600 12px Inter,Segoe UI,Arial;cursor:pointer}.primary-button:hover:not(:disabled){background:#235d7e}.primary-button:disabled{opacity:.7;cursor:wait}.hint{color:#71818e;margin:0}.alert{margin-top:13px;border:1px solid #ebc5bd;border-left:3px solid #c65340;background:#fff7f5;padding:9px 11px;color:#8e382c;font-size:12px;display:flex;gap:8px}.alert strong{white-space:nowrap}.result-panel{padding:21px;min-height:365px;color:#253d50;background:#fff}.empty-result,.loading-result{display:flex;justify-content:center;flex-direction:column;text-align:left}.empty-result-content{display:flex;align-items:flex-start;gap:12px}.empty-result h2{margin:2px 0 7px}.empty-result p,.loading-result p{max-width:270px;color:#70818e;line-height:1.55;font-size:12px}.empty-result p{margin:0}.empty-result-label{font-size:10px!important;font-weight:700;color:#778b99!important;letter-spacing:.06em}.empty-result-footer{border-top:1px solid #edf0f2;margin-top:22px;padding-top:11px;color:#81909a;font-size:11px;display:flex;align-items:center;gap:7px}.empty-result-footer .status-dot{background:#aebbc4;width:6px;height:6px}.result-icon{width:38px;height:38px;flex:0 0 auto;border:1px solid #d6e0e6;border-radius:4px;display:grid;place-items:center;font-size:19px;color:#638096}.result-label{display:flex;justify-content:space-between;align-items:center;color:#677987;font-size:11px}.status{padding:4px 6px;border-radius:3px;font-size:10px;font-weight:700}.status.review{color:#865226;background:#fff2df;border:1px solid #efd4ad}.status.success{color:#286447;background:#e9f5ed;border:1px solid #b9ddc6}.result-ready h2{margin-top:18px}.postal-code{display:flex;gap:6px;margin:18px 0}.postal-code span{display:grid;place-items:center;width:44px;height:52px;background:#f4f7f9;border:1px solid #d3dce2;border-radius:3px;font:600 25px ui-monospace,SFMono-Regular,Consolas,monospace;color:#1d384d}.postal-code span.uncertain{border-color:#d69057;background:#fffaf4;color:#8c5225}.confidence>div{height:6px;border-radius:3px;background:#e7ecef;overflow:hidden}.confidence>div span{height:100%;display:block;background:#3d829f}.confidence p{font-size:11px;color:#607382;margin:7px 0 14px}.digit-list{display:flex;gap:5px;margin-bottom:15px}.digit-list span{border:1px solid #dbe2e6;border-radius:3px;padding:4px 6px;font:500 12px ui-monospace,SFMono-Regular,Consolas,monospace}.digit-list small{font-size:10px;color:#718390;margin-left:4px}.review-callout{border:1px solid #ecd3af;border-left:3px solid #c9823d;padding:8px 10px;margin:8px 0 15px;background:#fffaf3}.review-callout b{font-size:12px;color:#765027}.review-callout p{font-size:11px;line-height:1.5;margin:4px 0 0;color:#6e6256}.secondary-button{width:100%;height:35px;border:1px solid #b6c3cc;background:#fff;color:#31546b;border-radius:3px;font:600 12px Inter,Segoe UI,Arial;cursor:pointer}.correction{margin:18px 0}.correction input{width:100%;font:600 23px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em;border:1px solid #9bb0be;border-radius:3px;padding:8px;color:#1d384d}.correction button{margin-top:8px;background:#2a6d93;border:0;color:#fff;padding:8px 11px;border-radius:3px;font:600 11px Inter,Segoe UI,Arial;cursor:pointer}.correction small{display:block;color:#718390;margin-top:6px;font-size:10px}.spinner{display:inline-block;width:12px;height:12px;border:2px solid #ffffff80;border-top-color:#fff;border-radius:50%;vertical-align:-2px;margin-right:6px;animation:spin .7s linear infinite}.spinner.large{width:24px;height:24px;margin:0;border-color:#d3e0e7;border-top-color:#2d718f;border-width:3px}.skeleton{height:9px;width:78%;background:#e7edf1;border-radius:3px;margin-top:19px}.skeleton.short{width:48%;margin-top:8px}@keyframes spin{to{transform:rotate(360deg)}}.recent-panel{margin-top:16px;padding:17px 21px}.empty-history{display:flex;align-items:center;gap:9px;border-top:1px solid #edf0f2;margin-top:14px;padding-top:13px;color:#748492;font-size:12px}.empty-history span{color:#8ba3b2;font-size:16px}.empty-history p{margin:0}.empty-history small{margin-left:auto;color:#94a1aa;font-size:11px}.result-meta{border-top:1px solid #edf0f2;margin:16px 0 0;padding-top:11px;color:#83929c;font-size:10px}.review-summary{margin:8px 0 14px;padding:8px 10px;border:1px solid #c8dfd0;background:#f2faf5;border-radius:3px;color:#315f45;font-size:11px}.review-summary span{display:block;color:#527463;font-size:10px}.review-summary strong{display:inline-block;margin-top:2px;font:600 15px ui-monospace,SFMono-Regular,Consolas,monospace}.review-summary small{display:block;margin-top:3px;color:#667c70}.review-error{margin:7px 0 0;color:#a53d31;font-size:11px}@media(max-width:800px){.header-inner,.content-shell{padding-inline:18px}.header-context>span:first-child,.context-divider{display:none}.workspace{grid-template-columns:1fr}.page-title{align-items:flex-start;gap:12px;flex-direction:column}.result-panel{min-height:330px}}@media(max-width:520px){.header-context strong{display:none}.content-shell{padding-top:18px}.work-panel,.result-panel{padding:17px}.panel-heading{gap:10px}.action-row{align-items:stretch;flex-direction:column}.hint{line-height:1.4}.primary-button{width:100%}.empty-history{align-items:flex-start;flex-wrap:wrap}.empty-history small{margin-left:27px}.page-status{font-size:11px}}
