:root{font-family:Inter,Microsoft YaHei,PingFang SC,sans-serif;color:#3b221d;background:#fff;font-synthesis:none;font-size:14px;--brand:#b5402a;--border:#ebe1df;--muted:#9a7e78}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input{border:1px solid var(--border);border-radius:6px;background:#fff;color:inherit;min-height:36px;padding:7px 12px}button{cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#f6f1f0;border-color:#bd9b94}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}button.primary{color:#fff;background:var(--brand);border-color:var(--brand)}button.primary:hover:not(:disabled){background:#5e2419}button.active{background:#f2e7e5;color:#63261a;border-color:#9d5345}h1,h2,p{margin:0}h2{font-size:18px;font-weight:650}p{line-height:1.8}label{display:block;font-size:13px;color:#73524c;margin-bottom:9px}small{display:block;font-size:12px;line-height:1.7;color:var(--muted)}.muted{color:var(--muted);font-size:12px}.inline{display:flex;gap:8px;align-items:center}header{height:80px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:20px}.brand{display:flex;align-items:center;gap:16px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--brand);color:#fff;border-radius:8px;font-family:serif;font-size:29px}.brand strong{font-size:29px;letter-spacing:3px}.brand-sub{border-left:1px solid var(--border);padding-left:16px;font-size:16px;color:#7c5a54}main{display:grid;grid-template-columns:250px minmax(340px,1fr) 320px;height:calc(100dvh - 132px);min-height:580px}.order-panel,.review-panel{overflow:auto;background:#fff}.order-panel{padding:24px 16px;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:18px}.order-panel>label{margin-bottom:-8px}.segmented{display:flex;gap:8px}.segmented button{flex:1}.hint{background:#f8f3f2;padding:13px 14px;color:#88655e;font-size:12px;line-height:1.9;border-radius:6px}.order-list{display:flex;flex-direction:column;gap:9px}.order-row{display:flex;border:1px solid var(--border);border-radius:6px;background:#fff;overflow:hidden;min-height:58px}.order-row.current{border-color:#aa7b72;background:#f5ecea}.row-text{border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;flex:1;min-width:0;padding:8px}.row-text>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.number{color:#732c1e;min-width:20px;text-align:center;font-variant-numeric:tabular-nums}.row-arrows{display:flex;flex-direction:column;padding:2px}.row-arrows button{border:0;background:transparent;font-size:12px;min-height:24px;padding:0 7px}.group-actions{border-top:1px solid var(--border);padding-top:16px;display:grid;gap:8px}.group-actions label{margin:0}.check{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5}.check input{accent-color:var(--brand);min-height:auto;width:15px;height:15px}.sample-button{margin-top:auto}.workspace{display:flex;flex-direction:column;min-width:0;background:#f0eae9}.toolbar{display:flex;justify-content:space-between;padding:12px 14px;background:#fbf8f8;border-bottom:1px solid var(--border);gap:6px;flex-wrap:wrap}.toolbar button{padding:7px 10px}.ocr-bar{display:flex;gap:10px;align-items:center;padding:9px 14px;background:#fff;border-bottom:1px solid var(--border);flex-wrap:wrap}.ocr-bar button,.ocr-bar select{font-size:12px;min-height:32px}.canvas-scroll{flex:1;overflow:auto;padding:24px;min-height:0}.paper{margin:auto;box-shadow:0 3px 18px #45292318;background:#fff;line-height:0}.paper svg{width:100%;height:auto;-webkit-user-select:none;user-select:none}.glyph{cursor:pointer}.glyph rect{fill:transparent;stroke-width:1.5;vector-effect:non-scaling-stroke}.glyph.reliable rect{stroke:#aa6f64}.glyph.confirmed rect{stroke:#732c1e;fill:#732c1e0c}.glyph.selected rect{stroke:#ab422e;stroke-width:2.5;fill:#ab422e10}.line-number{font-size:19px;fill:#92726c;font-family:Arial}.edit-toolbar{border-top:1px solid var(--border);background:#fbf8f8;padding:10px 14px;display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.edit-toolbar>span{font-size:11px;color:#92746e}.edit-toolbar button{font-size:12px;padding:5px 8px;min-height:30px}.split-count{width:52px;min-height:30px;padding:4px}.review-panel{border-left:1px solid var(--border)}.inspector-section,.text-preview{padding:22px 20px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:10px}.section-head button{padding:3px 9px;min-height:30px;font-size:22px}.section-head .inline{gap:5px}.crop-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.crop{width:100%;height:120px;background:#faf8f2;border:1px solid #e0d4d2;border-radius:4px}.recognized{font-size:34px;background:#f9f5f4;border:1px solid var(--border);border-radius:6px;display:grid;place-items:center;width:68px;height:64px;margin-bottom:8px}.tag{display:inline-block;border-radius:4px;padding:3px 6px;font-size:11px;margin-bottom:6px}.tag.uncertain{background:#fff1d9;color:#a76909}.tag.unknown{background:#fce8e9;color:#bc4754}.tag.reliable,.tag.confirmed{background:#f3e7e5;color:#7d3224}.candidates{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.candidates button{font-size:24px;padding:6px 12px;min-width:44px}form input{width:100%;font-size:22px;margin-bottom:6px}.confirm{width:100%;margin-top:16px;height:43px}.secondary-actions{margin:12px 0 18px}.secondary-actions button{font-size:12px;flex:1;padding:6px}.inspector-section details{font-size:12px;color:#866963;border-top:1px solid var(--border);padding-top:12px}summary{cursor:pointer;margin-bottom:10px}details select{width:100%}.box-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:10px}.box-fields input{width:100%;padding:4px;font-size:12px}.text-preview{border-top:1px solid var(--border)}.text-preview .section-head{margin-bottom:14px}.preview-content{background:#f9f6f5;border:1px solid var(--border);border-radius:6px;min-height:160px;padding:16px;margin:14px 0 10px;font-family:SimSun,serif;font-size:20px;line-height:2}.preview-content button{font:inherit;border:0;border-bottom:2px solid transparent;padding:0 1px;background:transparent;border-radius:0;min-height:0;color:#452924}.preview-content button.uncertain{border-color:#e5a330}.preview-content button.unknown{color:#cf525c}.preview-content button.confirmed{border-color:#732c1e}.preview-content button.selected{background:#f2deda}.empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:32px;text-align:center;gap:16px;background:radial-gradient(ellipse at 50% 35%,#fff,#f4efee 70%)}.empty-icon{font-size:46px;color:#732c1e;border:1px solid #cbafaa;border-radius:12px;width:82px;height:90px;display:grid;place-items:center;font-family:serif}.empty h1{font-size:24px;margin-top:9px}.empty p{color:#947771}.text-button{background:transparent;border:0;color:#732c1e}.empty-small{color:#a68e89;line-height:2.2;min-height:160px;padding:20px 0}footer{height:52px;display:flex;align-items:center;gap:18px;padding:0 22px;border-top:1px solid var(--border);font-size:11px;color:#8a6b65}.file-name{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-message{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.counts{white-space:nowrap;color:#684741}.save-status{white-space:nowrap}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#33161066;display:flex;align-items:center;justify-content:center;padding:20px;z-index:5;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:#fff;border-radius:12px;padding:28px;width:480px;box-shadow:0 15px 80px #33161044;display:flex;flex-wrap:wrap;gap:15px}.modal h2,.modal p,.modal label,.modal input,.modal select{width:100%}.modal label{margin:0}.modal p{font-size:13px}.modal>button:last-child{margin-left:auto}@media(min-width:1550px){main{grid-template-columns:280px minmax(340px,1fr) 350px}.canvas-scroll{padding:30px 42px}}@media(max-width:1150px){main{grid-template-columns:210px minmax(300px,1fr) 285px}.brand-sub{display:none}.inspector-section,.text-preview{padding:18px 14px}.order-panel{padding:18px 12px}.ocr-bar .muted{display:none}.header-actions{gap:5px}.header-actions button{font-size:12px;padding:7px 9px}.edit-toolbar .inline{gap:4px}}@media(max-width:850px){header{height:auto;min-height:76px;padding:14px 16px;flex-wrap:wrap;gap:12px}.brand strong{font-size:24px}.header-actions{flex-wrap:wrap}main{height:auto;min-height:0;grid-template-columns:190px minmax(0,1fr)}.workspace{height:760px}.review-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--border)}.text-preview{border-top:0;border-left:1px solid var(--border)}.order-panel{max-height:760px}.canvas-scroll{padding:12px}.toolbar{padding:8px}.toolbar button{font-size:12px}.counts,.save-status{display:none}footer{position:sticky;bottom:0;background:#fff}.modal{max-height:90vh;overflow:auto}}@media(max-width:550px){main{display:flex;flex-direction:column}.order-panel{max-height:280px;gap:10px}.order-panel .hint{display:none}.order-list{display:grid;grid-template-columns:1fr 1fr}.order-row{min-width:0}.group-actions{display:none}.sample-button{align-self:start}.workspace{height:620px}.review-panel{display:block}.text-preview{border-left:0;border-top:1px solid var(--border)}.brand-sub{display:inline;font-size:13px}.brand{gap:10px}.header-actions button{min-height:32px}.empty h1{font-size:21px}.edit-toolbar{padding:8px}.file-name{max-width:100px}.status-message{white-space:normal;line-height:1.4}.crop-row{grid-template-columns:130px 1fr}}.alignment-warning{font-size:12px;background:#fff3dd;color:#8e651a;padding:10px;border-radius:5px;margin-bottom:15px}main{overflow:hidden}.workspace{min-height:0}@media(max-width:850px){main{overflow:visible}}.engine-readings{background:#f8f4f3;padding:10px;margin-bottom:14px;display:grid;gap:8px}.engine-readings>div{display:flex;justify-content:space-between;gap:10px}.engine-readings strong{font-size:20px}.context-readings{margin:14px 0}.context-readings p{margin:10px 0;word-break:break-all}.historical-reference{padding:20px;border-bottom:1px solid var(--border)}.historical-reference p{white-space:pre-wrap;font-size:13px;line-height:1.9;margin:10px 0}.historical-reference details{margin:14px 0}.historical-reference li{font-size:12px;line-height:1.9}.historical-region{padding:10px 0;border-bottom:1px solid var(--border)}.history-overlay rect{fill:none;stroke:#895fc0;stroke-width:2;stroke-dasharray:8 5;vector-effect:non-scaling-stroke}.history-overlay text{fill:#6d3fa8;paint-order:stroke;stroke:#fff;stroke-width:2px}.modal label select{margin-top:8px}.hidden{display:none!important}header{height:56px;padding:0 16px;gap:12px}.brand{gap:9px}.brand-mark{width:31px;height:33px;font-size:23px}.brand strong{font-size:22px}.brand-sub{font-size:12px;padding-left:10px}.header-actions{gap:6px}.header-actions button{font-size:12px;min-height:32px;padding:5px 10px}main.compact-main{height:calc(100dvh - 88px);min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:44px minmax(0,1fr);overflow:hidden}.compact-main .workspace{grid-column:1;grid-row:1/3;height:auto;min-height:0}.compact-main .toolbar{padding:7px 10px;gap:8px;flex-shrink:0}.compact-main .toolbar button{font-size:12px;min-height:32px;padding:5px 10px}.compact-main .toolbar select{font-size:12px;min-height:32px;padding:5px 8px}.compact-main .toolbar>.inline:last-child{margin-left:auto}.compact-main .canvas-scroll{padding:10px;scrollbar-gutter:stable}.compact-main .ocr-bar{padding:8px 10px}.compact-main .edit-toolbar{padding:7px 10px}.compact-main .order-panel{grid-column:2;grid-row:2;border-right:0;border-left:1px solid var(--border);padding:14px;max-height:none;gap:12px}.compact-main .order-panel .hint{display:none}.compact-main .review-panel{grid-column:2;grid-row:2;display:block;min-height:0;border-top:0}.panel-tabs{grid-column:2;grid-row:1;display:flex;align-items:stretch;background:#fff;border-left:1px solid var(--border);border-bottom:1px solid var(--border);padding:0 6px;gap:0}.panel-tabs button{flex:1;min-width:0;min-height:0;border:0;border-radius:0;padding:4px;font-size:12px;background:transparent;color:#947771}.panel-tabs button.active{border-bottom:2px solid var(--brand);color:var(--brand);font-weight:600}.compact-main:not([data-panel=order]) .order-panel,.compact-main[data-panel=order] .review-panel{display:none}.compact-main:not([data-panel=review]) .inspector-section,.compact-main:not([data-panel=reference]) .historical-reference,.compact-main:not([data-panel=text]) .text-preview{display:none}.compact-main.panel-hidden{grid-template-columns:minmax(0,1fr)}.compact-main.panel-hidden .panel-tabs,.compact-main.panel-hidden .order-panel,.compact-main.panel-hidden .review-panel{display:none}.compact-main .inspector-section,.compact-main .text-preview,.compact-main .historical-reference{padding:16px}.compact-main h2{font-size:16px}.compact-main .section-head{margin-bottom:14px}.compact-main .crop-row{gap:12px;margin-bottom:14px}.compact-main .crop{height:108px}.compact-main .recognized{height:52px;width:58px;font-size:30px}.compact-main .candidates{margin-bottom:12px;gap:6px}.compact-main .candidates button{font-size:24px;min-height:42px;padding:3px 10px}.compact-main .confirm{margin-top:10px}.compact-main .secondary-actions{margin:10px 0}.compact-main .alignment-warning{padding:8px;font-size:12px;margin-bottom:12px}.compact-main .historical-reference{border-bottom:0}.compact-main .text-preview{border:0}.compact-main .order-list{gap:6px}.compact-main .order-row{min-height:49px}.compact-main .engine-details{margin-top:12px}.compact-main .engine-readings{margin-top:10px}footer{height:32px;padding:0 14px;gap:12px}.status-message{font-size:11px}@media(max-width:1000px){.brand-sub{display:none}main.compact-main{grid-template-columns:minmax(0,1fr) 280px}.compact-main .toolbar>.inline{gap:4px}.compact-main .toolbar button{padding:5px 7px}}@media(max-width:700px){header{height:auto;min-height:52px;padding:8px 10px;flex-wrap:wrap}.brand-sub{display:none}.header-actions{gap:4px;flex-wrap:wrap}.header-actions button{padding:4px 7px;font-size:11px}main.compact-main{height:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:65dvh 44px auto;overflow:visible}.compact-main .workspace{grid-row:1;grid-column:1;height:65dvh;min-height:350px}.panel-tabs{grid-row:2;grid-column:1;min-height:44px;border-top:1px solid var(--border)}.compact-main .review-panel,.compact-main .order-panel{grid-row:3;grid-column:1;max-height:70dvh}.compact-main .order-list{display:flex}.compact-main .group-actions{display:grid}.compact-main.panel-hidden{grid-template-rows:calc(100dvh - 150px)}.compact-main.panel-hidden .workspace{height:calc(100dvh - 150px)}footer{position:sticky;bottom:0}.status-message{white-space:nowrap}.compact-main .toolbar{gap:5px;padding:6px}.compact-main .toolbar .inline{flex-wrap:wrap}.drawing-tools{order:3;width:100%}}body{overflow:hidden}header{position:fixed;inset:0 auto 32px 0;width:210px;height:auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:16px 12px;gap:16px;overflow-y:auto;border-right:1px solid var(--border);border-bottom:0;background:#fff;z-index:3}.brand{justify-content:flex-start}.brand-sub{display:none}header .header-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}header .header-actions button:first-child,header .header-actions button:last-child{grid-column:1/-1}header .header-actions button{padding:6px 5px;min-height:34px}header .toolbar{display:flex;flex-direction:column;padding:0;border:0;background:none;gap:10px}header .toolbar>.inline{display:flex;flex-wrap:wrap;gap:6px}header .toolbar>.inline:first-child{display:grid;grid-template-columns:1fr 1fr}header .toolbar>.inline:first-child>button:first-child{grid-column:1/-1}header .toolbar button{font-size:12px;padding:6px 9px}header .toolbar select{width:100%;font-size:12px}header .toolbar>.inline:last-child>button{flex:1}header .ocr-bar{padding:0;gap:7px;border:0}header .ocr-bar select{width:100%}header .ocr-bar .muted{display:none}header .panel-tabs{display:grid;grid-template-columns:1fr 1fr;border:0;border-top:1px solid var(--border);padding:12px 0 0;gap:6px}header .panel-tabs button{min-height:36px;border:1px solid var(--border);border-radius:5px}header .panel-tabs button.active{background:#f2e7e5;color:var(--brand);border-color:#bb928a}header .edit-toolbar{padding:0;border:0;background:none;display:block}header .edit-toolbar>.inline{flex-wrap:wrap;margin-top:8px}header .canvas-help{font-size:12px;line-height:1.9;color:#947872}main.compact-main.scan-first,main.compact-main.scan-first.panel-hidden{position:fixed;left:210px;right:0;top:0;bottom:32px;width:auto;height:auto;display:block;overflow:hidden;min-height:0}.scan-first .workspace{height:100%!important;width:100%;display:flex;position:relative}.scan-first .canvas-scroll{padding:0!important;scrollbar-gutter:auto;background:#e6dddb;overscroll-behavior:contain;touch-action:none}.scan-first .paper{box-shadow:none}.pan-enabled{cursor:grab}.pan-enabled .glyph{cursor:pointer}.panning,.panning .glyph{cursor:grabbing!important}.scan-first .review-panel,.scan-first .order-panel{position:absolute;top:12px;bottom:auto;right:14px;left:auto;width:290px;max-height:calc(100% - 24px);height:auto;background:#fff;border:1px solid #dfd0cd!important;border-radius:10px;box-shadow:0 8px 32px #491d1533;z-index:2;overflow:auto}.scan-first .order-panel,.scan-first:not([data-panel=review]) .review-panel{left:12px;right:auto;width:310px}.scan-first[data-panel=review]:not(.has-selection) .review-panel{display:none}.close-panel{position:sticky;top:6px;float:right;margin:6px 6px -34px 0;z-index:3;min-height:26px;width:26px;padding:0;border:0;background:#f5efee;font-size:20px}.scan-first .inspector-section>.section-head{padding-right:22px}.scan-first .inspector-section,.scan-first .text-preview,.scan-first .historical-reference{padding:14px}.scan-first .crop{height:88px}.scan-first .crop-row,.scan-first .section-head{margin-bottom:10px}.scan-first .empty-small{min-height:0}footer{position:fixed;left:0;right:0;bottom:0;background:#fff;z-index:4}@media(max-width:700px){header{width:150px;padding:10px 7px;gap:12px}header .brand strong{font-size:20px}header .header-actions{grid-template-columns:1fr}header .toolbar>.inline:first-child{grid-template-columns:1fr}header .panel-tabs{grid-template-columns:1fr}main.compact-main.scan-first,main.compact-main.scan-first.panel-hidden{left:150px;display:block}.scan-first .review-panel,.scan-first .order-panel,.scan-first:not([data-panel=review]) .review-panel{width:min(290px,calc(100% - 12px));right:6px;left:auto;top:6px;max-height:calc(100% - 12px)}header .drawing-tools{width:auto}header .canvas-help{font-size:11px}}.scan-first .paper{position:relative}.scan-first.has-selection:not(.panel-hidden)[data-panel=review] .canvas-scroll{scroll-padding-right:320px}.scan-first.has-selection:not(.panel-hidden)[data-panel=review] .paper:after{content:"";position:absolute;left:100%;top:0;width:310px;height:1px;pointer-events:none}.local-connection{border-block:1px solid #e5dcda;padding:10px 0;margin:8px 0;font-size:12px}.local-connection>button{width:100%}.local-connection progress{width:100%;margin-top:8px}.local-connection small{display:block;line-height:1.5}.connection-details{display:grid;gap:8px;margin-top:8px}.connection-details input{width:100%;box-sizing:border-box}.connection-details p{margin:0;overflow-wrap:anywhere}.connection-details a{color:#6d3227}.connection-details [role=alert]{color:#a33}#root{display:block;height:100dvh;overflow:hidden;padding:0}.project-app{height:100dvh;display:grid;grid-template-columns:108px minmax(0,1fr);background:#f9f7f7}.app-nav{display:flex;flex-direction:column;padding:24px 10px 16px;border-right:1px solid #eae2e0;background:#fff;gap:22px}.app-brand{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:0 0 8px;align-items:center}.app-brand strong{font-size:18px;letter-spacing:1px;white-space:nowrap;color:#3d1f19}.app-logo{width:40px;height:40px;display:block;border-radius:8px;margin:0}.menu-icon{width:18px;height:18px;flex-shrink:0;display:block}.app-nav nav button{display:flex;align-items:center;gap:8px;padding-left:12px;padding-right:10px}.project-symbol .menu-icon{width:25px;height:25px}.empty-project-mark .menu-icon{width:54px;height:54px;stroke-width:1.2}.app-nav nav{display:grid;gap:9px}.app-nav button{border:0;background:none;text-align:left;padding:10px 12px;font-size:13px;min-height:40px}.app-nav button.selected{background:#f2e7e5;color:#64271b;font-weight:650}.app-nav .nav-bottom{margin-top:auto}.app-nav>small{font-size:11px;text-align:center}.app-content{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto}.project-list-view{padding:48px 5%;width:100%;max-width:1320px;margin:0 auto}.list-heading,.project-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.list-heading h1,.settings-view h1{font-size:30px;margin-bottom:10px;letter-spacing:1px}.list-heading p{color:#7f6e6b}.project-list{margin-top:35px;display:grid;gap:12px}.project-row{width:100%;display:flex;align-items:center;gap:22px;padding:22px 24px;text-align:left;background:#fff;border:1px solid #e9e1e0;border-radius:9px}.project-row strong{font-size:17px}.project-row small{margin-top:7px}.project-symbol{width:45px;height:50px;background:#f5f1f0;color:#7e3527;display:grid;place-items:center;font:25px serif;border-radius:7px}.project-date{margin-left:auto;color:#938684;font-size:12px}.project-row>span:last-child{font-size:13px;color:#732c1e}.project-empty{flex:1;min-height:350px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:45px;text-align:center}.project-list-view .project-empty{min-height:65vh}.project-empty h2{font-size:23px}.project-empty p{color:#7f6e6b}.project-empty button{padding:11px 24px}.empty-project-mark{font:50px serif;color:#c9b8b5;margin-bottom:12px}.project-heading{padding:18px 24px;background:#fff;border-bottom:1px solid #eae2e0;flex-shrink:0}.project-heading h1{font-size:20px;max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-title{display:flex;align-items:center;gap:12px}.project-title button{border:0;color:#897976;font-size:12px}.project-heading .text-button{padding:0;min-height:24px;font-size:12px}.project-actions{display:flex;gap:8px}.project-heading small{font-size:11px}.project-notice{padding:6px 24px;color:#744137;font-size:12px;background:#f6efee}.page-navigation{display:flex;align-items:center;gap:12px;padding:10px 24px;border-bottom:1px solid #eae2e0;background:#fff;flex-shrink:0}.page-navigation label{margin:0;display:flex;align-items:center;gap:8px}.page-navigation select{max-width:350px;min-width:200px}.page-navigation>span{font-size:12px;color:#877673}.page-navigation>small{margin-left:auto}.page-editor{flex:1;min-height:420px;display:flex;flex-direction:column;overflow:hidden;background:#fff}.page-editor>header{position:static!important;width:auto!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:8px 18px!important;overflow:visible!important;grid-area:auto!important;border:0;border-bottom:1px solid var(--border);flex-shrink:0}.page-editor>header .toolbar{display:flex!important;flex:1;flex-direction:row!important;padding:0!important;border:0!important;background:transparent!important;gap:8px}.page-editor>header .toolbar>.inline{display:flex;flex-wrap:wrap}.page-editor .editor-export{order:2}.page-editor>header .ocr-bar,.page-editor>header .edit-toolbar{flex-basis:100%;padding:6px!important}.page-editor>header .panel-tabs{display:flex!important;grid-template-columns:none!important;margin:0!important;gap:4px;border:0!important}.page-editor>header .panel-tabs button{font-size:12px;padding:6px 8px;min-height:32px}.page-editor>header .toolbar button{min-height:32px;font-size:12px}.page-editor>header .hidden{display:none!important}.page-editor>main.compact-main.scan-first{position:relative!important;inset:auto!important;flex:1;min-height:0!important;height:auto!important;margin:0!important;width:100%!important;grid-column:auto!important;grid-row:auto!important;display:flex!important;overflow:hidden}.page-editor .workspace{flex:1;width:100%;height:auto!important;min-width:0;min-height:0}.page-editor .canvas-scroll{height:100%;min-height:0;padding:0!important}.page-editor>footer{position:static!important;margin:0!important;width:100%!important;height:32px;min-height:32px;grid-column:auto!important;padding:0 14px;gap:10px}.page-editor .order-panel,.page-editor .review-panel{z-index:3}.page-editor .modal-backdrop{position:absolute;z-index:6}.app-content .modal-backdrop{top:0;right:0;bottom:0;left:0}.page-editor .review-panel{max-height:100%}.settings-view{padding:40px 48px;max-width:900px;display:flex;flex-direction:column;gap:20px}.settings-view>p{color:#796561}.settings-view>button{align-self:flex-start}.settings-view section{padding:22px;background:#fff;border:1px solid #e9e1e0;border-radius:9px}.settings-view h2{margin-bottom:15px}.settings-view .local-connection{width:100%;margin:0}.settings-view .local-connection>button{width:100%;text-align:left}.settings-view .connection-details{display:flex;flex-direction:column;gap:12px}.settings-view .connection-details input{width:100%}.settings-view .connection-details label{margin:0}.preference-form label{display:flex;justify-content:space-between;align-items:center;margin:14px 0}.preference-form select{min-width:230px}.project-dialog-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#2e171344;z-index:10;display:grid;place-items:center;padding:24px}.project-dialog{background:#fff;padding:30px;width:min(460px,100%);border-radius:12px;box-shadow:0 20px 60px #3c1e1822}.project-dialog h2{margin-bottom:25px}.project-dialog input{font-size:18px}.project-dialog .inline{justify-content:flex-end;margin-top:24px}.app-error{padding:12px 20px;color:#9e392b;background:#fff1e9;display:flex;gap:15px;align-items:center;flex-shrink:0}.app-error button{margin-left:auto}.loading-message{padding:40px;color:#826b67}@media(max-width:1000px){.project-app{grid-template-columns:108px minmax(0,1fr)}.app-nav{padding:24px 10px}.app-nav button{padding:12px}.project-heading,.page-navigation{padding:12px 16px}.project-actions{flex-wrap:wrap;justify-content:flex-end}.page-navigation>small{display:none}.project-heading h1{max-width:35vw}.settings-view{padding:25px}.page-editor>header .toolbar{flex-basis:100%}.page-editor .editor-export{order:0}.page-editor>footer .counts{display:block}}@media(max-width:650px){.project-app{grid-template-columns:64px minmax(0,1fr)}.app-nav{padding:20px 7px}.app-logo{margin:0 auto 10px;width:36px}.app-nav button{font-size:14px;padding:10px}.app-nav>small{display:none}.list-heading,.project-heading{align-items:flex-start;flex-direction:column}.list-heading .inline{flex-wrap:wrap}.project-list-view{padding:25px 18px}.project-empty{padding:25px}.project-row{padding:16px;gap:12px;flex-wrap:wrap}.project-date{display:none}.project-heading h1{max-width:60vw}.page-navigation{flex-wrap:wrap}.page-navigation select{min-width:100px;max-width:180px}.page-editor .review-panel{width:min(320px,100%)!important}.settings-view{padding:20px}.preference-form label{display:block}.preference-form select{min-width:0;width:100%}}@media(max-width:1000px){.app-brand{padding-left:4px;padding-right:0}.app-brand strong{font-size:16px;letter-spacing:0}.app-nav nav button{gap:8px;padding-left:10px}}@media(max-width:650px){.app-brand{align-items:center;padding:0;gap:4px}.app-brand strong{font-size:12px}.app-brand .app-logo{width:36px;height:36px;margin:0}.app-nav nav button{flex-direction:column;padding:9px 4px;gap:4px;font-size:12px}}@media(max-width:650px){.project-app{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.app-content{grid-row:1;grid-column:1}.app-nav{grid-row:2;grid-column:1;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border-right:0;border-top:1px solid #eae2e0}.app-nav .app-brand{display:none}.app-nav nav{display:flex;gap:8px}.app-nav .nav-bottom{margin-top:0}.app-nav nav button{width:64px;min-height:48px;align-items:center;justify-content:center;padding:5px 4px;gap:4px;font-size:12px}}:root{--brand:#b5402a;--border:#e6ddd8;--muted:#87766f}.app-nav button.app-brand{display:flex;align-items:center;justify-content:center;padding:0 0 8px;background:transparent;border:0;min-height:40px}.app-nav button.app-brand:hover:not(:disabled){background:#fbefeb}.app-nav button.selected{color:#a13523;background:#f9e9e3}.home-view{width:100%;max-width:1180px;margin:0 auto;padding:56px 6% 40px;color:#382b27}.home-eyebrow{font-size:12px;letter-spacing:2px;color:var(--brand);font-weight:650}.home-download{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0;padding:24px;background:#fff6f1;border:1px solid #ead4c8;border-radius:12px}.home-download h2{font-size:19px;margin:0 0 8px}.home-download p{font-size:14px;margin:0 0 8px;color:#705e55}.home-download small{font-size:12px;color:#806f67}.home-download-button{display:flex;flex-shrink:0;flex-direction:column;gap:5px;align-items:center;padding:13px 24px;border-radius:8px;background:var(--brand);color:#fff;text-decoration:none;font-size:15px;font-weight:600}.home-download-button:hover{background:#96351f;color:#fff}.home-download-button span{font-size:12px;font-weight:400}.home-download-button:focus-visible{outline:3px solid #633529;outline-offset:3px}@media(max-width:650px){.home-download{flex-direction:column;align-items:stretch;padding:20px;gap:18px}.home-download-button{width:100%}}.home-intro h1{font-size:clamp(28px,3.4vw,46px);line-height:1.4;letter-spacing:1px;margin:20px 0 16px;font-weight:650}.home-intro>p{max-width:680px;color:#806f67;font-size:15px}.home-paths{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:32px 0 38px}.home-path{display:flex;flex-direction:column;align-items:flex-start;padding:26px;background:#fff;border:1px solid #e6ddd8;border-radius:12px;gap:14px}.home-path>.menu-icon{width:28px;height:28px;color:var(--brand)}.home-path p{color:#806f67;font-size:14px;flex:1}.home-path small{font-size:11px}.home-path button{margin-top:3px}.home-workflow h2{font-size:19px}.home-workflow ol{padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin:24px 0 0}.home-workflow b{font-size:12px;color:var(--brand);letter-spacing:2px}.home-workflow h3{font-size:14px;margin:10px 0 8px}.home-workflow p{font-size:12px;color:#806f67}.glyph.reliable rect{stroke:#64aa86}.glyph.uncertain rect{stroke:#e5a330}.glyph.unknown rect{stroke:#e4666b;fill:#e4666b0a}.glyph.confirmed rect{stroke:#247d58;fill:#247d580c}.glyph.selected rect{stroke:#b5402a;fill:#b5402a10}.tag.reliable,.tag.confirmed{background:#e5f3ec;color:#247d58}.preview-content button.confirmed{border-color:#247d58}@media(max-width:650px){.home-view{padding:28px 20px}.home-intro h1{font-size:28px}.home-paths{grid-template-columns:1fr;gap:14px;margin:24px 0}.home-path{padding:22px}.home-workflow ol{grid-template-columns:1fr 1fr;gap:20px}.app-nav{gap:4px}.app-nav nav{gap:4px}.app-nav nav button{width:54px}.app-nav button.app-brand{display:flex;width:40px;min-width:40px;min-height:48px;padding:6px;margin-right:4px}.app-nav .app-brand .app-logo{width:28px;height:28px;border-radius:6px}}.app-content.scan-layout{display:grid;grid-template-columns:190px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;height:100%;gap:0}.scan-layout>.project-heading{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:10px;min-width:0;border-right:1px solid var(--border)}.scan-layout .project-title{flex-wrap:wrap;gap:4px}.scan-layout .project-heading h1{font-size:16px;max-width:164px}.scan-layout .project-heading small{display:block;line-height:1.6}.scan-layout .project-actions{display:grid;gap:6px}.scan-layout .project-actions button{width:100%;font-size:12px;padding:6px}.scan-layout>.page-navigation{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;padding:10px 12px;gap:6px;min-width:0;border-right:1px solid var(--border)}.scan-layout .page-navigation label{order:-1;width:100%;display:block}.scan-layout .page-navigation select{display:block;width:100%;min-width:0;max-width:100%;margin-top:6px}.scan-layout .page-navigation button{flex:1;font-size:11px;padding:5px}.scan-layout .page-navigation>small{display:none}.scan-layout>.page-editor{display:contents}.scan-layout>.page-editor>header{grid-column:1;grid-row:3;align-self:stretch;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;padding:12px!important;gap:12px!important;overflow:auto!important;border-right:1px solid var(--border);border-bottom:0}.scan-layout>.page-editor>header .toolbar{flex:none;display:flex!important;flex-direction:column!important;gap:10px}.scan-layout>.page-editor>header .toolbar>.inline{display:flex;flex-wrap:wrap}.scan-layout>.page-editor>header .toolbar>.inline:first-child>button:first-child{width:100%}.scan-layout>.page-editor>header .toolbar select,.scan-layout>.page-editor>header .ocr-bar select{width:100%;min-width:0}.scan-layout>.page-editor>header .ocr-bar{display:flex;flex-direction:column;flex-basis:auto;padding:0!important}.scan-layout>.page-editor>header .edit-toolbar{flex-basis:auto;padding:0!important}.scan-layout .editor-export{display:grid;grid-template-columns:1fr;gap:6px;order:2}.scan-layout>.page-editor>main.compact-main.scan-first{grid-column:2!important;grid-row:1 / 5!important;position:relative!important;width:100%!important;height:100%!important;min-height:0!important;display:flex!important;padding-right:88px;box-sizing:border-box}.scan-layout .scan-panel-switcher{position:absolute;top:0;bottom:0;right:0;width:88px;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;padding:12px 6px;background:#fff;border-left:1px solid var(--border);z-index:4}.scan-layout .scan-panel-switcher button{flex:none;min-height:40px;padding:7px 3px;border:1px solid var(--border);border-radius:5px;font-size:12px}.scan-layout .scan-panel-switcher button.active{background:#f9e9e3;color:var(--brand)}.scan-layout .scan-first .review-panel,.scan-layout .scan-first .order-panel,.scan-layout .scan-first:not([data-panel=review]) .review-panel{right:96px;left:auto;max-height:calc(100% - 16px);top:8px}.scan-layout .scan-first.panel-hidden .scan-panel-switcher{display:flex!important}.scan-layout>.page-editor>footer{grid-column:1;grid-row:4;display:flex;flex-direction:column;align-items:flex-start;height:auto;min-height:0;padding:10px 12px;gap:5px;border-right:1px solid var(--border);font-size:11px;overflow:hidden}.scan-layout footer span{max-width:100%;white-space:normal;overflow-wrap:anywhere}.scan-layout footer .counts{display:block}.scan-layout .status-message{white-space:normal;line-height:1.5}.scan-layout>.project-notice,.scan-layout>.app-error{position:absolute;left:198px;right:96px;top:8px;z-index:8;border-radius:6px;max-height:25%;overflow:auto}@media(max-width:850px){.app-content.scan-layout{grid-template-columns:156px minmax(0,1fr)}.scan-layout .project-heading h1{max-width:130px}.scan-layout>.page-editor>main.compact-main.scan-first{padding-right:64px}.scan-layout .scan-panel-switcher{width:64px;padding:8px 4px}.scan-layout .scan-panel-switcher button{font-size:11px}.scan-layout .scan-first .review-panel,.scan-layout .scan-first .order-panel,.scan-layout .scan-first:not([data-panel=review]) .review-panel{right:70px;width:min(290px,calc(100% - 78px))!important}.scan-layout>.project-notice,.scan-layout>.app-error{left:162px;right:70px}}.scan-layout>.page-editor>header .hidden{display:none!important}.project-heading+.preference-form{margin:0 20px;padding:12px;display:flex;flex-wrap:wrap;gap:14px;align-items:center}.project-heading+.preference-form h2{font-size:14px}.project-heading+.preference-form label{margin:0;gap:8px}.project-heading+.preference-form select{min-width:0}.ocr-progress-dialog{margin:auto;width:min(460px,90vw);padding:32px;border:1px solid #e9e1e0;border-radius:12px;color:#493d38}.ocr-progress-dialog::backdrop{background:#0000007a}.ocr-progress-dialog progress{width:100%;margin:20px 0}.ocr-progress-dialog p{margin-top:12px}.project-ocr-settings summary{cursor:pointer;font-size:13px;padding:8px 0}.project-ocr-settings .preference-form label{display:block;font-size:12px;margin:10px 0}.project-ocr-settings select{display:block;width:100%;min-width:0;margin-top:5px}.scan-layout>.project-heading{max-height:40vh;overflow:auto}.home-download-button.secondary{background:#fff;color:var(--brand);border:1px solid #dcb5a6}.home-download-button.secondary:hover{background:#f9e9e3}.home-assistant-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.home-download .assistant-version{font-size:13px;color:#76665f}.home-download .assistant-update{color:var(--brand);font-weight:600}.home-assistant-actions .home-download-button{white-space:normal;text-align:center}.assistant-project-state{font-size:13px;line-height:1.6;margin:12px 0;padding:10px;border-radius:8px;background:#f8ebe6;color:#91422c}.assistant-project-state strong,.assistant-project-state span{display:block}.assistant-project-state.online{background:#eff7f0;color:#326342}.batch-progress{padding:32px;align-self:start;min-width:0;grid-column:2;grid-row:1 / 4;overflow:auto}.batch-progress h2{margin-bottom:20px}.batch-progress p{margin:14px 0;overflow-wrap:anywhere}.batch-progress progress{width:min(100%,560px);accent-color:#b53e29}.batch-result{background:#fff5ed;padding:12px 18px;border:1px solid #ead8cc;border-radius:8px;z-index:12}.scan-layout>.batch-result{position:absolute;left:198px;right:96px;top:8px;max-height:30%;overflow:auto}.batch-result button{margin-left:12px}.batch-result p{overflow-wrap:anywhere}.scan-layout>.project-heading{max-height:65vh}@media(max-width:850px){.scan-layout>.batch-result{left:162px;right:70px}.batch-progress{padding:20px}}.home-download{flex-wrap:wrap}.home-connection-management{flex-basis:100%;width:100%;border-top:1px solid #ead8cc;padding-top:16px}.home-connection-details{display:grid;gap:14px;margin-top:16px}.home-connection-details .inline{flex-wrap:wrap}.home-connection-details input{max-width:240px}.home-connection-details p{margin:0}.project-dialog .inline{flex-wrap:wrap}.app-nav .nav-connection{display:flex;align-items:center;gap:8px;padding:10px 12px;min-height:40px;font-size:13px;white-space:nowrap}.nav-connection.connected{color:#32754b}.nav-connection.disconnected{color:#a04a37}@media(max-width:1000px){.app-nav .nav-connection{padding:12px 10px}}@media(max-width:650px){.app-nav .nav-connection{width:64px;min-height:48px;flex-direction:column;justify-content:center;padding:5px 4px;gap:4px;font-size:12px}}@media(max-width:650px){.app-nav .app-brand{display:flex;width:48px;min-width:48px;min-height:48px;padding:6px;align-items:center;justify-content:center}.app-nav .app-brand .app-logo{width:32px;height:32px;margin:0}.app-nav{gap:4px}.app-nav nav{gap:4px}.app-nav nav button,.app-nav .nav-connection{width:56px}}.create-project-dialog{width:min(560px,100%);max-height:calc(100dvh - 48px);overflow:auto}.new-project-images{margin:22px 0;display:grid;gap:12px}.new-images-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.new-images-heading label{margin:0}.new-images-heading span{font-size:13px;color:#796561}.new-images-list{list-style:none;margin:0;padding:0;max-height:200px;overflow:auto;border:1px solid #e9e1e0;border-radius:8px}.new-images-list li{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #f1eae7}.new-images-list li:last-child{border-bottom:0}.new-images-list li>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-images-list small{white-space:nowrap;margin:0}.new-images-list button{font-size:12px;padding:5px 8px}.creation-error{color:#a23527;margin:14px 0}.project-card{cursor:default;align-items:flex-start}.project-card-info{flex:1;min-width:0}.project-card-info>strong{display:block;overflow-wrap:anywhere}.project-card-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.project-card-actions button{white-space:nowrap}.project-recognition-state{display:inline-block;margin-top:12px;color:#8d7467;font-size:13px}.project-recognition-state.ready{color:#32754b}.delete-project-button{color:#a34030}.card-ocr-settings{margin-top:12px;font-size:13px}.card-ocr-settings summary{cursor:pointer}.card-ocr-settings label{display:flex;align-items:center;gap:10px;margin-top:10px}.project-ocr-dialog{max-height:85vh;overflow:auto}.project-ocr-dialog p{overflow-wrap:anywhere}@media(max-width:850px){.project-card-actions{width:100%;justify-content:flex-start}.project-card{flex-wrap:wrap}.project-card-info{min-width:180px}}.review-workflow{display:grid;gap:10px;font-size:13px;line-height:1.6}.review-workflow p{color:#796561;margin:0}.review-workflow button{white-space:normal}.scan-layout>.page-editor>main.compact-main.scan-first{flex-direction:column}.scan-layout .scan-first .workspace{flex:1;min-height:0;height:auto!important;width:100%}.scan-layout .scan-first .live-text{display:flex!important;flex-direction:column;flex:none;width:100%;height:30%;min-height:160px;overflow:auto;border-top:1px solid var(--border);background:#fff;padding:14px 18px;box-sizing:border-box}.scan-layout .live-text .section-head{margin-bottom:8px}.scan-layout .live-text .preview-content{flex:1;min-height:36px;overflow:auto;margin-bottom:8px}.text-output-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.text-output-actions span{flex:1;font-size:12px;color:#796561}.text-output-actions button{font-size:12px}.scan-layout .scan-first .review-panel,.scan-layout .scan-first .order-panel,.scan-layout .scan-first:not([data-panel=review]) .review-panel{max-height:calc(70% - 16px)}.handwriting-help{font-size:12px;line-height:1.7;padding:10px;background:#faf2ed}.handwriting-help a{display:block;color:var(--brand)}@media(max-width:700px){.scan-layout .scan-first .live-text{padding:10px;min-height:180px}.text-output-actions span{flex-basis:100%}.scan-layout .scan-first .review-panel,.scan-layout .scan-first .order-panel{max-height:calc(100% - 196px)}}.scan-layout .scan-first .order-panel>.close-panel{position:absolute;right:6px;top:6px;margin:0}.scan-layout .scan-first .order-panel>h2{padding-right:30px}.handwriting-input{margin:12px 0;padding:10px;border:1px solid #dfd0cd;border-radius:8px;background:#fffcf8}.handwriting-input p{font-size:12px;line-height:1.6;margin:0 0 8px}.handwriting-pad{display:block;width:100%;aspect-ratio:1;background:#fff;border:1px solid #d4b8b0;touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;border-radius:4px}.handwriting-guide{stroke:#e6d5cf;stroke-width:3;stroke-dasharray:12 12;fill:none}.handwriting-stroke{stroke:#422c25;stroke-width:14;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}.handwriting-input>.inline{gap:5px;flex-wrap:wrap;margin:8px 0}.handwriting-input>.inline button{font-size:11px;padding:5px 7px;min-height:30px}.handwriting-input .handwriting-status{margin:8px 0;color:#796561}.handwriting-input .handwriting-candidates{margin-bottom:6px}.handwriting-input>small{font-size:10px}.handwriting-input{position:fixed;z-index:12;left:50%;top:50%;transform:translate(-50%,-50%);width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:0;padding:16px;box-sizing:border-box;box-shadow:0 10px 50px #491d1540}.handwriting-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.handwriting-heading button{padding:0;min-height:28px;width:28px;font-size:22px}.handwriting-input .handwriting-pad{max-height:280px}.scan-layout>.page-editor>main.compact-main.scan-first.direct-review{padding-right:0!important}.scan-layout .direct-review .review-panel{right:12px!important;left:auto!important;top:12px!important;width:300px;max-height:calc(100% - 24px)!important;overflow:visible;display:flex;flex-direction:column}.scan-layout .direct-review .review-panel>.close-panel{position:absolute;right:6px;top:6px;margin:0}.compact-inspector{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 48px);box-sizing:border-box}.compact-inspector>.section-head{flex:none;height:32px;margin-bottom:8px!important;white-space:nowrap}.compact-inspector .confirm-anchor{flex:none;height:50px;padding:0 0 8px;background:#fff}.compact-inspector .confirm-anchor .confirm{margin:0!important;width:100%;height:42px}.compact-inspector .inspector-body{overflow:auto;min-height:0;padding-right:2px}.compact-inspector .inspector-body>.check{margin:4px 0 12px}.review-workflow>.inline{flex-wrap:wrap}.review-workflow>.inline button{font-size:12px}.glyph-caption rect{fill:#fffaf0;stroke:#a77b47;stroke-width:1;opacity:.96}.glyph-caption text{fill:#805528;font-family:serif;font-weight:600}.glyph-caption.confirmed rect{fill:#f0fff4;stroke:#21834e}.glyph-caption.confirmed text{fill:#146a3c}@media(max-width:700px){.scan-layout .direct-review .review-panel{right:6px!important;width:min(300px,calc(100% - 12px))!important}.compact-inspector>.section-head h2{font-size:14px}}.scan-layout .scan-first .free-canvas{position:relative;display:block;overflow:hidden!important;scrollbar-gutter:auto;scroll-behavior:auto;-webkit-user-select:none;user-select:none;touch-action:none}.scan-layout .scan-first .free-canvas .paper{position:absolute;left:0;top:0;margin:0!important;flex:none;will-change:transform;transition:none!important;transform-origin:0 0}.scan-layout .scan-first .free-canvas .paper:after{display:none!important}.scan-layout .scan-first .free-canvas .paper>svg{display:block;width:100%;height:auto;overflow:visible}.home-assistant-status{display:flex;align-items:center;gap:10px}.assistant-running-dot{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#1ea541}.glyph-caption.selected rect{stroke:#b5402a;stroke-width:2}.ocr-settings-dialog>label{display:grid;gap:8px;margin:16px 0}.ocr-settings-dialog select{width:100%}.inspector-text-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.recognized-fulltext-dialog{margin:auto;width:min(800px,92vw);max-height:90dvh;padding:24px;border:1px solid #e9e1e0;border-radius:12px;background:#fff;color:#493d38;overflow:auto}.recognized-fulltext-dialog::backdrop{background:#24171388}.recognized-fulltext-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.recognized-fulltext-heading h2{margin:0;font-size:20px}.recognized-fulltext-dialog>p{margin:12px 0;overflow-wrap:anywhere}.recognized-fulltext-dialog textarea{display:block;width:100%;height:55dvh;min-height:180px;padding:16px;resize:vertical;border:1px solid #e9e1e0;border-radius:8px;background:#fffdfb;color:#3b221d;font:16px/1.9 Microsoft YaHei,sans-serif;white-space:pre-wrap}.recognized-fulltext-dialog>small{display:block;margin-top:12px;color:#796561}.project-app:has(.home-view){background:#fffaf2}.home-view{max-width:none;padding:0;color:#3a2923;--brand:#b6422d}.home-brand{display:flex;align-items:center;gap:16px;max-width:1120px;margin:auto;padding:26px 24px}.home-brand img{width:56px;height:56px;object-fit:contain}.home-brand h1{margin:0;font-size:25px;font-weight:650;letter-spacing:3px;line-height:1.4}.home-brand p{margin:3px 0 0;font-size:14px;color:#74665e;letter-spacing:1px}.home-intro{min-height:350px;padding:66px max(24px,calc((100% - 1072px)/2));background:linear-gradient(90deg,#fffaf2 0%,#fffaf2d9 28%,#fffaf230 65%,transparent),url(/brand/home-heritage.webp) center 57%/cover no-repeat}.home-intro h2{margin:0 0 22px;font-size:clamp(32px,3.6vw,52px);line-height:1.35;letter-spacing:-1px;font-weight:650}.home-intro>p{margin:0;color:#66564c;font-size:16px;line-height:1.9}.home-download{max-width:1072px;margin:26px auto 0;padding:20px 24px;background:#f9ece780;border-color:#e5dbd1;border-radius:6px}.home-paths{max-width:1072px;margin:24px auto 32px;gap:24px}button.home-path{position:relative;min-width:0;text-align:left;font:inherit;gap:14px;padding:25px 28px;border:1px solid #e5dbd1;border-radius:6px;background:#ffffffa6;color:#3a2923;cursor:pointer;transition:background .15s,border-color .15s}button.home-path:hover:not(:disabled){background:#f9ece7;border-color:#b6422d}button.home-path:focus-visible{outline:2px solid #b6422d;outline-offset:4px}button.home-path h2{font-size:20px;margin:0;font-weight:600}button.home-path p{margin:0;line-height:1.8;color:#74665e}button.home-path small{color:#74665e;line-height:1.7}.home-path-entry{display:flex;align-items:center;gap:24px;color:#b6422d;font-size:14px;margin-top:auto;padding-top:4px}.ocr-home-footer{max-width:1072px;margin:0 auto;padding:16px 0 24px;border-top:1px solid #e5dbd1;color:#74665e;font-size:12px}@media(min-width:651px){.project-app:has(.home-view) .app-nav{background:#fffaf2;border-color:#e5dbd1}}@media(max-width:1250px){.home-download,.home-paths,.ocr-home-footer{margin-left:24px;margin-right:24px}}@media(max-width:650px){.home-brand{padding:22px 20px}.home-brand img{width:46px;height:46px}.home-brand h1{font-size:22px}.home-intro{min-height:330px;padding:42px 24px;background-position:60% center;background-image:linear-gradient(90deg,#fffaf2ed,#fffaf29e 65%,#fffaf250),url(/brand/home-heritage.webp)}.home-paths{grid-template-columns:1fr;gap:16px}.home-download{align-items:stretch;flex-direction:column;padding:18px}.home-download,.home-paths,.ocr-home-footer{margin-left:20px;margin-right:20px}button.home-path{padding:22px}.ocr-home-footer{padding-bottom:24px}}.project-app{display:flex;flex-direction:column;overflow:hidden}.project-app>.app-content{flex:1;width:100%}.site-heading{flex:none;width:100%;background:#fffaf2;border-bottom:1px solid #e5dbd1}.site-brand{display:flex;align-items:center;gap:16px;width:100%;max-width:1120px;margin:0 auto;padding:18px 24px;color:#3a2923}.site-logo-button{display:grid;place-items:center;flex:none;padding:0;border:0;border-radius:8px;background:transparent;min-height:56px;width:56px}.site-logo-button img{display:block;width:56px;height:56px;object-fit:contain}.site-logo-button:hover:not(:disabled){background:#f9ece7}.site-brand h1{margin:0;font-size:25px;font-weight:650;letter-spacing:3px;line-height:1.4}.site-brand p{margin:3px 0 0;font-size:14px;color:#74665e;letter-spacing:1px}.project-app.is-home{overflow:auto;background:#fffaf2}.project-app.is-home>.app-content{flex:1 0 auto;overflow:visible}.home-view .ocr-home-footer{position:static;inset:auto;display:block;width:auto;height:auto;min-height:0;flex:none;transform:none}@media(max-width:650px){.site-brand{padding:16px 20px;gap:12px}.site-logo-button,.site-logo-button img{width:46px;height:46px;min-height:46px}.site-brand h1{font-size:22px}}.project-app{--brand:#b6422d;--border:#e5dbd1;--muted:#74665e;background:#fffaf2;color:#2f2925;overflow:auto}.project-app>.site-heading{position:static;inset:auto;display:block;height:auto;min-height:0;padding:0;border:0;background:#fffaf2;flex:none}.project-app>.app-content{flex:1 0 auto;overflow:visible}.project-app.is-editor{overflow:hidden}.project-app.is-editor>.app-content{flex:1 1 0;overflow:hidden}.site-brand{padding-top:24px;padding-bottom:24px}.project-app>.site-footer{position:static;inset:auto;display:block;flex:none;width:100%;height:auto;min-height:0;padding:0 24px;border:0;background:#fffaf2;color:#74665e;font-size:12px}.site-footer-inner{width:100%;max-width:1072px;margin:0 auto;border-top:1px solid #e5dbd1;padding-top:16px}.site-footer-brand{display:flex;align-items:center;gap:12px;padding-bottom:16px}.site-footer-brand img{width:36px;height:36px;object-fit:contain}.site-footer-brand strong{color:#3a2923;font-size:14px;font-weight:600}.site-footer-brand p{margin:3px 0 0;font-size:12px;line-height:1.6}.site-footer-copyright{border-top:1px solid #e5dbd1;padding:10px 0 18px;line-height:1.7}.project-app button{border-radius:6px}.project-app button.primary,.home-download-button{background:#b6422d;border-color:#b6422d;color:#fff;border-radius:6px}.project-app button.primary:hover:not(:disabled),.home-download-button:hover{background:#9c3524;border-color:#9c3524}.project-app button.primary:active:not(:disabled),.home-download-button:active{background:#842c1e;border-color:#842c1e}.home-download-button.secondary{background:transparent;border:1px solid #b6422d;color:#b6422d}.home-download-button.secondary:hover{background:#f9ece7}.project-app button:focus-visible,.home-download-button:focus-visible{outline:2px solid #b6422d;outline-offset:3px}.project-app.is-editor .site-brand{padding-top:12px;padding-bottom:12px}.project-app.is-editor .site-footer-brand{display:none}.project-app.is-editor .site-footer-inner{padding-top:0}.project-app.is-editor .site-footer-copyright{border-top:0;padding:8px 0}@media(max-width:650px){.site-brand{padding:18px 20px}.project-app>.site-footer{padding:0 20px}.home-assistant-actions{flex-wrap:wrap}.home-download-button{max-width:100%}}.project-app{--page-width:1072px;--page-gutter:24px}.project-app .site-brand,.project-app .site-footer-inner,.project-app .home-download,.project-app .home-paths,.project-app .project-list-view,.project-app .settings-view{width:calc(100% - 2 * var(--page-gutter));max-width:var(--page-width);margin-left:auto;margin-right:auto}.project-app .site-brand{padding-left:0;padding-right:0}.project-app>.site-footer{padding-left:0;padding-right:0}.project-app .project-list-view,.project-app .settings-view{padding:32px 0 40px}.project-app .settings-view{gap:16px}.project-app .list-heading h1,.project-app .settings-view h1{font-size:30px;font-weight:650;line-height:1.4;letter-spacing:1px;color:#3a2923;margin:0 0 10px}.project-app .settings-view h2{font-size:20px;font-weight:600;line-height:1.6;margin:0;color:#3a2923}.project-app .list-heading p,.project-app .settings-view>p,.project-app .project-empty p{color:var(--muted);font-size:14px;line-height:1.8}.project-app .project-row{border-color:var(--border);border-radius:6px;background:#ffffffa6}.project-app .project-symbol{background:#f9ece7;color:var(--brand);border-radius:6px}.project-app .home-intro{padding-left:max(var(--page-gutter),calc((100% - var(--page-width))/2));padding-right:max(var(--page-gutter),calc((100% - var(--page-width))/2))}@media(max-width:650px){.project-app{--page-gutter:20px}.project-app .project-list-view,.project-app .settings-view{padding-top:24px;padding-bottom:32px}.project-app .list-heading h1,.project-app .settings-view h1{font-size:26px}}.site-logo-button{overflow:hidden;border-radius:10px!important}.site-logo-button img{border-radius:10px}.site-brand>div{min-width:0}.site-brand p{white-space:normal;overflow-wrap:anywhere}.site-footer-inner{padding-top:0}.site-footer-copyright{border-top:0}.home-entry-buttons{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0 0 24px}.project-app button.home-entry-pill{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-height:44px;padding:10px 20px;border:1px solid #b6422d;border-radius:999px;background:#f9ece7e6;color:#b6422d;font-size:15px;font-weight:500;white-space:normal;text-align:left;line-height:1.5}.project-app button.home-entry-pill:hover:not(:disabled){background:#f6e7df;border-color:#9c3524;color:#9c3524}.project-app button.home-entry-pill:active:not(:disabled){background:#efd9cf;color:#842c1e}.home-entry-pill .menu-icon{width:20px;height:20px}.home-view{padding-bottom:32px}.home-view>.home-download{margin-top:0;margin-bottom:24px}.site-footer-copyright{text-align:center}.home-running-pill{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:36px;margin-bottom:20px;padding:7px 16px;border:1px solid #74665e66;border-radius:999px;background:transparent;color:#74665e;font-size:14px;line-height:1.5}.image-url-entry{display:flex;gap:8px}.image-url-entry input{min-width:0;flex:1}.image-url-entry button{flex-shrink:0}.new-image-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0}.new-image-thumbnails li{min-width:0;border:1px solid #e9e1e0;border-radius:8px;padding:8px;display:grid;gap:6px}.new-image-thumbnails img{width:100%;height:100px;object-fit:contain;background:#f5f2ef;border-radius:4px}.new-image-thumbnails span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.new-image-thumbnails button{padding:4px 8px;font-size:12px}@media(max-width:420px){.image-url-entry{flex-direction:column}.new-image-thumbnails{gap:6px}.new-image-thumbnails img{height:80px}}.create-project-dialog{width:min(480px,100%);padding:20px}.create-project-dialog h2{font-size:20px;margin:0 0 14px}.create-project-dialog>label{margin:0 0 6px}.create-project-dialog .optional-label{font-size:12px;font-weight:400;color:#796561}.create-project-dialog input{padding:8px 10px}.create-project-dialog .new-project-images{margin:14px 0;gap:8px}.create-project-dialog .new-project-images>label{margin:2px 0 0;font-size:13px}.create-project-dialog .new-images-heading label{font-size:13px}.create-project-dialog .new-project-images>button{justify-self:start;padding:7px 12px}.create-project-dialog .new-project-images small{font-size:11px;margin:0}.create-project-dialog .new-image-thumbnails{gap:8px}.create-project-dialog .new-image-thumbnails:empty{display:none}.create-project-dialog .new-image-thumbnails li{padding:6px;gap:4px}.create-project-dialog .new-image-thumbnails img{height:80px}.create-project-dialog>.inline{margin-top:14px;gap:8px}.create-project-dialog .creation-error{margin:8px 0;font-size:12px}.ocr-settings-dialog{width:min(560px,100%);max-height:calc(100dvh - 48px);overflow:auto;padding:20px}.ocr-settings-dialog>p{margin:8px 0}.ocr-page-settings{display:grid;gap:10px;margin:14px 0}.ocr-page-setting{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px;border:1px solid #e5dbd1;border-radius:8px}.ocr-page-setting>img{width:96px;height:112px;object-fit:contain;background:#f5f2ef}.ocr-page-setting>div{min-width:0}.ocr-page-setting strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ocr-page-setting label{display:block;margin:8px 0 4px;font-size:12px}.ocr-page-setting select{padding:6px}.ocr-page-setting small{display:block;font-size:11px;margin-top:6px;line-height:1.4}.scan-layout .direct-review .review-panel.floating-review-window{position:fixed;inset:auto;right:var(--window-right,16px)!important;left:var(--window-left,auto)!important;top:var(--window-top,160px)!important;bottom:auto;width:min(320px,calc(100vw - 16px))!important;max-height:calc(100dvh - 176px)!important;z-index:8;border-radius:10px;box-shadow:0 12px 40px #491d1540;overflow:visible}.floating-window-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#f8f1eb;border-bottom:1px solid #e5dbd1;border-radius:10px 10px 0 0;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;flex-shrink:0;font-size:14px}.floating-window-heading:active{cursor:grabbing}.floating-window-heading:focus-visible{outline:2px solid #b6422d;outline-offset:-2px}.floating-window-heading button{cursor:pointer;min-height:26px;width:26px;padding:0;border:0;background:transparent;font-size:20px}.floating-review-window>.compact-inspector{max-height:calc(100dvh - 220px);padding:12px}.floating-review-window .compact-inspector>.section-head{justify-content:flex-end;padding:0}.floating-review-window .compact-inspector>.section-head h2{display:none}.handwriting-input>.floating-window-heading{margin:-16px -16px 12px;padding:9px 12px}.handwriting-input{z-index:9}.app-content.scan-layout{display:block;position:relative}.scan-layout>.page-editor>main.compact-main.scan-first{width:100%!important;height:100%!important;grid-column:auto!important;grid-row:auto!important}.scan-layout>.page-editor>header.floating-tools-window{position:fixed!important;left:var(--window-left,16px)!important;top:var(--window-top,110px)!important;right:auto!important;bottom:auto!important;width:min(260px,calc(100vw - 16px));height:auto!important;max-height:calc(100dvh - 126px);padding:0!important;gap:0!important;overflow:hidden!important;display:flex!important;border:1px solid #dfd0cd;border-radius:10px;box-shadow:0 12px 40px #491d1540;background:#fff;z-index:7}.floating-tools-window>.floating-window-heading{width:100%;box-sizing:border-box}.floating-tools-content{padding:12px;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:12px}.floating-tools-content .tools-project-name{font-size:14px;margin:0;overflow-wrap:anywhere}.floating-tools-content .page-navigation{padding:0;border:0;display:block}.floating-tools-content .page-navigation select{margin:0;width:100%;max-width:100%}.floating-tools-content .review-workflow{padding:0;border:0}.floating-tools-content .review-workflow p{font-size:12px;margin:6px 0 0}.floating-tools-content .edit-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px}.floating-tools-content .edit-toolbar>span{font-size:12px;line-height:1.5;white-space:normal}.floating-tools-status{border-top:1px solid #e5dbd1;padding-top:10px;display:flex;flex-direction:column;gap:5px;font-size:11px;line-height:1.5;color:#796561}.floating-tools-status span{white-space:normal;overflow-wrap:anywhere}.floating-tools-status .counts{display:block}.tools-window-heading img{width:28px;height:28px;object-fit:contain;flex:none}.tools-window-heading strong{flex:1;white-space:nowrap}.tools-window-heading a{font-size:12px;color:#a63a28;text-decoration:none;white-space:nowrap;cursor:pointer}.tools-window-heading a:hover{text-decoration:underline}.tools-window-heading a[aria-disabled=true]{opacity:.5;cursor:default}.scan-layout>.page-editor>header.floating-tools-window{top:var(--window-top,16px)!important;max-height:calc(100dvh - 32px)}.scan-layout .direct-review .review-panel.floating-review-window{top:var(--window-top,16px)!important;max-height:calc(100dvh - 32px)!important}.floating-review-window>.compact-inspector{max-height:calc(100dvh - 76px)}.floating-tools-window .floating-tools-content{padding:10px;gap:8px}.floating-tools-window .review-workflow{gap:0}.floating-tools-window .review-workflow .check{margin:0;font-size:12px}.scan-layout>.page-editor>header.floating-tools-window .toolbar{gap:6px!important}.floating-tools-window .toolbar>strong{font-size:12px}.scan-layout>.page-editor>header.floating-tools-window .toolbar>.inline{display:flex!important;gap:5px;flex-wrap:wrap}.floating-tools-window .toolbar>.inline button{flex:none;min-height:30px;padding:4px 7px}.floating-tools-window .toolbar>.inline:not(.drawing-tools) button[title]{width:32px}.floating-tools-window .edit-toolbar{gap:0}.floating-tools-window .edit-toolbar>span{font-size:11px;color:#796561}.floating-tools-window .page-navigation select{padding:6px 8px;font-size:12px}.floating-review-window>.compact-inspector{padding:10px}.compact-inspector .confirm-anchor{height:auto;padding:0 0 8px}.compact-inspector .confirm-anchor .confirm{height:34px;min-height:34px;font-size:13px}.compact-inspector .inspector-body>.check{margin:0 0 8px;font-size:12px}.correction-preview{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;margin-bottom:8px}.compact-inspector .correction-preview label{font-size:12px;margin:0 0 5px}.compact-inspector .correction-crop .crop{display:block;width:84px;height:84px}.compact-inspector .correction-candidates .candidates{margin:0;gap:4px}.compact-inspector .correction-candidates .candidates button{font-size:22px;min-height:34px;padding:2px 8px}.compact-inspector .correction-candidates .candidates p{font-size:12px;margin:0;line-height:1.5}.compact-inspector #character-correction>label{font-size:12px;margin:0 0 5px}.compact-inspector #correction{height:38px;padding:4px 8px;font-size:22px}.compact-inspector .inspector-text-actions{gap:6px;margin-top:8px}.compact-inspector .inspector-text-actions button{min-height:30px;padding:4px 10px;font-size:12px}.compact-inspector .correction-preview{grid-template-columns:minmax(0,1fr);gap:8px}.correction-input-row{display:flex;align-items:center;gap:6px}.compact-inspector .correction-input-row #correction{flex:1;min-width:0;width:0}.correction-input-row>button{flex:none;white-space:nowrap;min-height:38px;padding:6px 10px;font-size:12px}.correction-bottom-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-top:10px;padding-top:8px;border-top:1px solid #e5dbd1}.correction-bottom-actions>button{min-height:34px;padding:6px 10px;font-size:12px;white-space:nowrap}.compact-inspector .correction-bottom-actions .confirm{flex:1;width:auto;margin:0!important}.compact-inspector .correction-input-row #correction{margin:0}.compact-inspector .correction-bottom-actions>button{height:34px;min-height:34px;padding:6px 10px;line-height:20px}.scan-layout>.page-editor>header.floating-tools-window,.scan-layout .direct-review .review-panel.floating-review-window{width:min(244px,calc(100vw - 16px))!important;min-width:0;box-sizing:border-box}.compact-inspector .correction-input-row #correction{flex:0 1 104px;width:104px;max-width:104px}.compact-inspector .correction-bottom-actions .confirm{flex:none;width:auto;padding:6px 9px}.correction-bottom-actions{justify-content:space-between}.scan-layout>.page-editor>header.floating-tools-window{left:var(--window-left,auto)!important;right:var(--window-right,16px)!important}.floating-tools-content{flex:1 1 auto}.merged-character-review{border-top:1px solid #e5dbd1;padding-top:8px;min-width:0}.merged-character-review>strong{display:block;font-size:12px;margin-bottom:8px}.merged-character-review>.compact-inspector{padding:0;max-height:none;overflow:visible}.merged-character-review .inspector-body{overflow:visible;padding:0}.merged-character-review .correction-bottom-actions{margin-top:8px}.review-selection-hint{font-size:12px;color:#796561;margin:0;line-height:1.5}.floating-tools-window .floating-window-heading{padding:6px 9px;gap:8px}.tools-window-heading img{width:24px;height:24px}.floating-tools-window .floating-tools-content{padding:8px;gap:6px}.floating-tools-window .tools-project-name{font-size:13px}.floating-tools-window .page-navigation select{height:28px;padding:3px 6px}.scan-layout>.page-editor>header.floating-tools-window .toolbar{gap:5px!important}.scan-layout>.page-editor>header.floating-tools-window .toolbar>.inline{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.scan-layout>.page-editor>header.floating-tools-window .toolbar>.inline button{width:100%!important;min-width:0;min-height:27px;height:27px;padding:3px 2px;font-size:11px;line-height:19px}.floating-tools-window .drawing-tools{border:1px solid #ddc9c0;border-radius:6px;gap:0!important;overflow:hidden}.floating-tools-window .drawing-tools button{border:0;border-right:1px solid #e5dbd1;border-radius:0;background:#fffaf6}.floating-tools-window .drawing-tools button:last-child{border-right:0}.floating-tools-window .drawing-tools button[aria-checked=true]{background:#b6422d;color:#fff;font-weight:600}.merged-character-review{padding-top:6px}.merged-character-review>strong{margin-bottom:5px}.merged-character-review .inspector-body>.check{margin:0 0 5px}.merged-character-review .correction-preview{gap:5px;margin-bottom:6px}.merged-character-review .correction-crop .crop{width:64px;height:64px}.merged-character-review .correction-preview label{margin-bottom:3px}.merged-character-review .correction-candidates .candidates{gap:4px}.merged-character-review .correction-candidates .candidates button{height:28px;min-height:28px;min-width:28px;padding:1px 5px;font-size:20px;line-height:24px}.merged-character-review #character-correction>label{margin-bottom:3px}.merged-character-review .correction-input-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.merged-character-review .correction-input-row #correction{width:100%;max-width:none;height:30px;padding:2px 6px;font-size:20px}.merged-character-review .correction-input-row>button{width:100%;height:30px;min-height:30px;padding:3px 5px;font-size:12px}.merged-character-review .correction-bottom-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px;padding-top:6px}.merged-character-review .correction-bottom-actions>button,.merged-character-review .correction-bottom-actions .confirm{width:100%;height:28px;min-height:28px;padding:3px 2px;font-size:11px;line-height:20px}.floating-tools-window .page-navigation select,.floating-tools-window .merged-character-review .correction-input-row #correction,.floating-tools-window .merged-character-review .correction-input-row>button{height:28px;min-height:28px;max-height:28px;box-sizing:border-box;margin:0;padding:3px 6px;line-height:20px}.tools-window-heading a{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:28px;padding:3px 5px;border:1px solid #d8ada0;border-radius:5px;background:#fffaf6;font-size:12px;font-weight:500;line-height:20px;box-sizing:border-box}.tools-window-heading a svg{flex:none}.tools-window-heading a:hover{background:#f6e7df;text-decoration:none}.tools-window-heading a:focus-visible{outline:2px solid #b6422d;outline-offset:2px}.fulltext-export-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}.fulltext-export-actions>span{flex:1;min-width:120px;font-size:12px;color:#796561}.fulltext-export-actions>button{min-height:28px;padding:4px 12px;font-size:12px;white-space:nowrap}.recognized-fulltext-dialog{position:fixed;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:min(760px,calc(100vw - 16px));height:min(600px,calc(100dvh - 32px));max-height:calc(100dvh - 16px);padding:12px;box-sizing:border-box;overflow:hidden}.recognized-fulltext-dialog[open]{display:flex;flex-direction:column;gap:7px}.recognized-fulltext-dialog>.recognized-fulltext-heading{flex:none;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;gap:12px;padding:0 0 7px;border-bottom:1px solid #e5dbd1}.recognized-fulltext-heading:active{cursor:grabbing}.recognized-fulltext-heading:focus-visible{outline:2px solid #b6422d;outline-offset:2px}.recognized-fulltext-heading h2{font-size:17px}.recognized-fulltext-heading button{cursor:pointer;min-height:26px;height:26px;width:26px;padding:0}.recognized-fulltext-dialog>p{flex:none;margin:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recognized-fulltext-dialog textarea{flex:1 1 0;height:0;min-height:0;overflow:auto;resize:none;margin:0;padding:10px;font-size:15px;line-height:1.7;box-sizing:border-box}.recognized-fulltext-dialog>small{flex:none;margin:0;font-size:11px;line-height:1.4}.recognized-fulltext-dialog>.fulltext-export-actions{flex:none;margin:0;padding-top:7px;border-top:1px solid #e5dbd1;background:#fff}.recognized-fulltext-dialog .fulltext-export-actions>button{height:28px;min-height:28px}
