:root{--bg:#e9edf2;--panel-bg:#ffffff;--border:#d8dbe0;--text:#1f2328;--text-sub:#6b7280;--accent:#2563eb;--accent-soft:rgba(37,99,235,0.12);--danger:#e5484d;--warn:#d97706;--ok:#30a46c;--toolbar-w:156px;--pagelist-w:286px;--result-w:500px;--statusbar-h:30px;--topbar-h:46px}*{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;background:var(--bg);font-family:Hiragino Sans,Noto Sans JP,Yu Gothic UI,system-ui,sans-serif;font-size:13px}body,button,html{color:var(--text)}button{font:inherit;cursor:pointer;border:1px solid var(--border);background:#fff;border-radius:6px;padding:6px 10px;transition:border-color .15s,color .15s,background .15s,box-shadow .15s}button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.danger{border-color:rgba(229,72,77,.35);color:var(--danger)}button.danger:hover:not(:disabled){background:rgba(229,72,77,.08);border-color:var(--danger);color:var(--danger)}button.primary:hover:not(:disabled){color:#fff;opacity:.9}.ui-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;min-width:22px;height:22px;border-radius:6px;background:rgba(31,35,40,.08);color:currentColor;font-size:12px;font-weight:800;line-height:1;letter-spacing:0}button.primary .ui-icon{background:rgba(255,255,255,.22)}input[type=range]{width:100%}input[type=password],input[type=text],textarea{font:inherit;width:100%;border:1px solid var(--border);border-radius:7px;padding:7px 8px;resize:vertical;background:#fff}input[type=password]:focus,input[type=text]:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.paragraph-editor{max-height:60vh;overflow-y:auto}.app-shell{display:grid;grid-template-columns:var(--toolbar-w) 6px var(--pagelist-w) 6px 1fr 6px var(--result-w);grid-template-rows:var(--topbar-h) 1fr var(--statusbar-h);height:100vh;overflow:hidden;min-width:calc(var(--toolbar-w) + var(--pagelist-w) + var(--result-w) + 18px + 380px)}@media (max-height:620px),(max-width:1000px){body,html{height:auto;min-height:100%;overflow:visible;-webkit-overflow-scrolling:touch}.app-shell{min-height:620px;height:100vh}}.top-bar{grid-row:1;grid-column:3/-1;gap:12px;padding:0 14px;background:#ffffff;border-top:2px solid #2188d9;border-bottom:1px solid #cfd6df;overflow-x:auto}.top-bar,.top-bar-brand{display:flex;align-items:center}.top-bar-brand{gap:8px;min-width:max-content;padding-right:4px;margin-right:auto;color:#1f4f77;font-weight:800}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:var(--accent);color:#fff;font-weight:850}.top-bar-group{display:flex;align-items:center;gap:8px;flex:none}.top-bar-divider{width:1px;height:28px;background:#e4e7ec;flex:none}.top-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;white-space:nowrap;font-weight:650}a.top-action{min-height:34px;padding:6px 10px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);text-decoration:none;transition:border-color .15s,color .15s,background .15s,box-shadow .15s}a.top-action:hover{border-color:var(--accent);color:var(--accent)}.top-action.compact{min-width:94px}.top-settings.compact{min-width:38px;padding:0 10px;flex:none}.settings-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:flex-start;justify-content:center}.settings-backdrop{position:absolute;inset:0;background:rgba(17,21,26,.42)}.settings-card{position:relative;margin-top:56px;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 96px);display:flex;flex-direction:column;background:#fff;color:var(--text);border:1px solid #e1e6ec;border-radius:12px;box-shadow:0 18px 48px rgba(31,35,40,.28);overflow:hidden}.settings-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}.settings-head h3{margin:0;font-size:15px;font-weight:800}.settings-close{width:30px;min-width:30px;height:30px;padding:0;border-radius:8px}.settings-body{padding:8px 16px 16px;overflow-y:auto}.settings-group{padding:14px 0;border-bottom:1px solid #eef1f5}.settings-group:last-child{border-bottom:none}.settings-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.settings-label>span{font-size:13px;font-weight:700}.settings-label p{margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--text-sub)}.settings-sep{border:none;border-top:1px solid var(--border);margin:6px 0 0}.switch{position:relative;flex:none;width:42px;height:24px;cursor:pointer}.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.switch-track{position:absolute;inset:0;border-radius:999px;background:#cfd6df;transition:background .15s ease}.switch-track:after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s ease}.switch input:checked+.switch-track{background:var(--accent)}.switch input:checked+.switch-track:after{transform:translateX(18px)}.segmented{display:inline-flex;margin-top:10px;border:1px solid var(--border);border-radius:8px;overflow:hidden}.segmented button{min-width:72px;padding:7px 12px;border:none;border-right:1px solid var(--border);border-radius:0;background:#fff;color:var(--text-sub);font-size:12px;font-weight:700}.segmented button:last-child{border-right:none}.segmented button.active{background:var(--accent-soft);color:var(--accent)}.settings-dpi{display:flex;align-items:center;gap:10px;margin-top:10px}.settings-dpi input[type=range]{flex:1 1}.settings-dpi input[type=number]{width:72px}.settings-unit{font-size:12px;color:var(--text-sub)}.toolbar{grid-row:1/span 2;grid-column:1;background:#3b4250;color:#dbe3ee;position:relative;overflow:visible;padding:10px 0;display:flex;flex-direction:column;gap:10px}.page-rail{grid-row:2;grid-column:3;background:#ffffff;border-left:1px solid #ccd3dc;border-right:1px solid #ccd3dc;overflow-y:auto;padding:12px 10px 10px}.panel-title{margin:0 0 10px;font-size:12px;color:var(--text-sub);font-weight:700}.panel-resizer{grid-row:2;position:relative;z-index:40;cursor:col-resize;background:transparent}.panel-resizer:before{content:"";position:absolute;top:0;bottom:0;left:2px;width:2px;background:transparent;transition:background .15s}.is-resizing-panel .panel-resizer:before,.panel-resizer:hover:before{background:var(--accent)}.toolbar-resizer{grid-column:2;grid-row:1/span 2}.pages-resizer{grid-column:4}.result-resizer{grid-column:6}.image-stage-wrap{grid-row:2;grid-column:5;position:relative;overflow:hidden;background:#e9edf2}.hover-tooltip{position:absolute;z-index:20;transform:translateY(calc(-100% - 6px));background:#1f2328;color:#fff;font-size:12px;padding:3px 7px;border-radius:4px;white-space:nowrap;pointer-events:none;box-shadow:0 2px 6px rgba(0,0,0,.25)}.result-pane{grid-row:2;grid-column:7;background:var(--panel-bg);border-left:1px solid var(--border);flex-direction:column}.result-pane,.status-bar{display:flex;overflow:hidden}.status-bar{grid-row:3;grid-column:1/-1;align-items:center;gap:16px;padding:0 12px;background:#21262c;color:#d0d5db;font-size:12px;white-space:nowrap}.status-bar .engine-note{color:#8ee59b}.result-loupe-slot{flex:none;display:flex;align-items:center;justify-content:center;height:216px;padding:8px;border-bottom:1px solid var(--border);background:#f7f9fb}.result-loupe-slot .loupe{width:100%;height:100%;object-fit:contain;margin:0;border-radius:8px}.result-loupe-empty{display:flex;width:100%;height:100%;padding:0 16px;border:1px dashed var(--border);border-radius:8px;background:#fff;color:var(--text-sub);text-align:center;line-height:1.5}.io-action,.result-loupe-empty{align-items:center;justify-content:center;font-size:12px}.io-action{display:inline-flex;gap:6px;min-width:0;min-height:34px;padding:5px 7px;font-weight:700;white-space:nowrap}.tool-panel-tabs{flex-direction:column;gap:2px;padding:0;flex:none}.tool-panel-tabs,.tool-panel-tabs button{display:flex;border:none;border-radius:0;background:transparent}.tool-panel-tabs button{align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:38px;padding:8px 14px;color:#dbe3ee;font-size:13px;font-weight:700}.tool-panel-tabs button.active{background:#505765;color:#ffffff;box-shadow:inset 3px 0 0 #39a0e6}.view-switch{display:flex;flex-direction:column;gap:2px;margin-top:12px;padding-top:10px;border-top:1px solid #4a515e;flex:none}.view-switch-label{padding:0 14px 4px;font-size:10px;font-weight:700;letter-spacing:.04em;color:#9aa5b3}.view-switch button{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:34px;padding:6px 14px;border:none;border-radius:0;background:transparent;color:#dbe3ee;font-size:13px;font-weight:700}.view-switch button.active{background:#505765;color:#ffffff;box-shadow:inset 3px 0 0 #39a0e6}.tool-card{display:flex;flex-direction:column;gap:12px;position:absolute;top:10px;left:100%;z-index:45;width:306px;max-height:calc(100vh - 22px);overflow-y:auto;overscroll-behavior:contain;color:var(--text);padding:12px;border:1px solid #e1e6ec;border-radius:0 8px 8px 0;background:#fff;box-shadow:0 8px 26px rgba(31,35,40,.18)}.tool-card:before{content:"";position:absolute;top:0;bottom:0;left:-16px;width:16px}.files-card{width:334px}.tool-card h3{margin:0;font-size:13px;font-weight:750}.tool-card p{margin:3px 0 0}.tool-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.tool-card-head p{color:var(--text-sub);font-size:11px;line-height:1.45}.tool-card .row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.metric-pill,.sub-panel-meta{flex:none;padding:3px 8px;border-radius:999px;background:#eef2f7;color:var(--text-sub);font-size:10px;font-weight:700}.bundle-format,.tool-card label.check{display:flex;align-items:center;justify-content:center;min-height:40px;gap:7px;padding:7px 8px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text-sub);font-size:12px;font-weight:650;text-align:center}.bundle-format:has(input:checked),.tool-card label.check:has(input:checked){border-color:rgba(37,99,235,.5);background:var(--accent-soft);color:var(--accent)}.bundle-format input,label.check input{accent-color:var(--accent)}.check-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.threshold-row{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:11px;color:var(--text-sub)}.threshold-row input[type=range]{flex:1 1;min-width:0}.threshold-row .threshold-value{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;min-width:30px;text-align:right}.group-label{font-size:11px;font-weight:700;color:var(--text-sub);margin-bottom:6px}.group-label.inline{width:100%;margin-bottom:2px}.group-sub{font-size:11px;color:var(--text-sub)}.group-note{font-size:10px;color:var(--text-sub);margin:6px 10px 10px;line-height:1.5}.group-note,.group-note code{overflow-wrap:anywhere}.sub-panel-pad{display:flex;flex-direction:column;gap:8px;padding:10px}.sub-panel-pad .group-note.flush{margin:0}.mask-search-input{flex:1 1;min-width:0}.mask-action{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:40px;padding:8px 12px;font-size:13px;font-weight:700;text-align:left}.toggle-dot-spacer{width:16px;min-width:16px;height:16px}.mask-clear-all{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:36px;font-weight:700}.sub-panel{border:1px solid #e4e7ec;border-radius:9px;background:#fbfcfd;overflow:hidden}.sub-panel summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;cursor:pointer;font-size:12px;font-weight:750;list-style:none}.sub-panel summary::-webkit-details-marker{display:none}.sub-panel[open] summary{border-bottom:1px solid #e8ebef;background:#fff}.action-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px;padding:10px}.action-grid.single-col{grid-template-columns:1fr}.action-grid button,.format-grid .bundle-format{width:100%}.export-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;min-width:0;text-align:center}.action-grid.single-col .export-action{justify-content:flex-start;text-align:left;min-height:38px}.action-stack,.format-panel{display:flex;flex-direction:column;gap:8px;padding:10px}.format-panel{padding-top:0}.format-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.format-grid.single-col{grid-template-columns:1fr}.format-grid.single-col .bundle-format{justify-content:flex-start;text-align:left;min-height:36px}.combine-option{width:100%}.files-action-grid,.project-action-grid{display:grid;grid-gap:8px;gap:8px;padding:10px}.files-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.files-sub-panel .io-action{flex-direction:column;gap:5px;min-height:68px;padding:9px 6px;border-radius:8px;white-space:normal;line-height:1.2}.files-sub-panel .project-action-grid .io-action{flex-direction:row;min-height:44px}.files-sub-panel .io-action .ui-icon{background:rgba(31,35,40,.06)}.files-sub-panel .io-action.primary .ui-icon{background:rgba(255,255,255,.22)}.page-list{display:flex;flex-direction:column;gap:6px}.page-item{display:flex;gap:8px;align-items:center;border:1px solid var(--border);border-radius:8px;cursor:pointer;background:#fff;text-align:left;position:relative;padding:6px 34px 6px 6px}.page-item.active{border-color:var(--accent);background:var(--accent-soft)}.page-item .thumb{width:44px;height:56px;object-fit:contain;background:#eceef1;border-radius:3px;flex:none}.page-item .thumb.placeholder{display:flex;align-items:center;justify-content:center;color:var(--text-sub);font-size:10px}.page-item .meta{min-width:0;flex:1 1}.page-item .name{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-mini-action{min-height:20px;margin-left:6px;padding:0 6px;border-radius:999px;font-size:10px}.page-delete{position:absolute;top:6px;right:6px;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;padding:0;border-radius:999px;color:var(--text-sub);line-height:1;opacity:0}.page-item:focus-within .page-delete,.page-item:hover .page-delete{opacity:1}.page-delete:hover:not(:disabled){border-color:var(--danger);background:rgba(229,72,77,.08);color:var(--danger)}.badge{display:inline-block;font-size:10px;border-radius:8px;padding:1px 7px;color:#fff}.badge.queued{background:#9ca3af}.badge.running{background:var(--accent)}.badge.done{background:var(--ok)}.badge.error{background:var(--danger)}.stage-viewport{position:absolute;inset:0;overflow:hidden;cursor:-webkit-grab;cursor:grab}.stage-content{position:absolute;top:0;left:0;transform-origin:0 0}.stage-content>canvas,.stage-content>svg{position:absolute;top:0;left:0;display:block}.stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;color:#aeb4bc;font-size:15px;text-align:center;line-height:1.9;pointer-events:none}.stage-empty.clickable{pointer-events:auto;cursor:pointer;margin:18px;border:2px dashed var(--border);border-radius:10px;transition:border-color .15s,color .15s}.stage-empty.clickable:focus-visible,.stage-empty.clickable:hover{border-color:var(--accent);color:var(--text-sub);outline:none}.stage-empty-title{font-size:17px;font-weight:600}.stage-empty-sub{font-size:13px}.stage-empty-note{font-size:11px}.stage-display-panel{position:absolute;top:12px;left:12px;z-index:26;display:flex;align-items:center;gap:6px;padding:6px;border:1px solid rgba(255,255,255,.38);border-radius:10px;background:rgba(31,35,40,.72);box-shadow:0 10px 24px rgba(0,0,0,.22)}.stage-display-panel button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff}.stage-display-panel button.active{border-color:rgba(255,255,255,.78);background:#fff;color:var(--accent)}.stage-display-panel .ui-icon{background:transparent}.stage-threshold{display:flex;align-items:center;gap:5px;width:38px;height:38px;padding:0 8px;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#fff;background:rgba(255,255,255,.08);overflow:hidden;transition:width .15s}.stage-threshold:focus-within,.stage-threshold:hover{width:128px}.stage-threshold input{width:0;min-width:0;opacity:0;transition:opacity .15s,width .15s}.stage-threshold:focus-within input,.stage-threshold:hover input{width:82px;opacity:1}svg .ov-block,svg .ov-cell,svg .ov-figure-para,svg .ov-word{stroke-opacity:clamp(0,var(--overlay-strength,1),1)}svg .ov-word{fill:rgb(37 99 235/calc(.08 * var(--overlay-strength, 1)));stroke:#3b82f6;vector-effect:non-scaling-stroke;stroke-width:1.2;cursor:pointer}svg .ov-word.low{fill:rgb(229 72 77/calc(.15 * var(--overlay-strength, 1)));stroke:var(--danger)}svg .ov-word.high{fill:rgb(48 164 108/calc(.12 * var(--overlay-strength, 1)));stroke:var(--ok)}svg .ov-block.figure.masked,svg .ov-word.masked{fill:rgba(0,0,0,.92);stroke:#000}svg .ov-block.figure.masked{stroke-dasharray:none}svg .ov-block{fill:transparent;stroke:#a855f7;stroke-dasharray:6 4;vector-effect:non-scaling-stroke;stroke-width:1.4;cursor:pointer}svg .ov-block.table{stroke:#d97706}svg .ov-block.figure{stroke:#0e9888}svg .ov-figure-para{fill:rgb(14 152 136/calc(.06 * var(--overlay-strength, 1)));stroke:#0e9888;stroke-dasharray:3 3;stroke-width:1}svg .ov-cell,svg .ov-figure-para{vector-effect:non-scaling-stroke;cursor:pointer}svg .ov-cell{fill:transparent;stroke:rgba(217,119,6,.75);stroke-width:1}svg .ov-partial{fill:rgba(59,130,246,.12);stroke:#60a5fa;vector-effect:non-scaling-stroke;stroke-width:1}svg .copy-pick,svg .delete-pick,svg .editing-target,svg .hovered,svg .ov-block.figure.masked,svg .ov-word.masked,svg .ov-word.range-hit,svg .selected{stroke-opacity:1}svg .selected{stroke:#f59e0b!important;fill:rgba(245,158,11,.18)}svg .hovered,svg .selected{stroke-width:2.5}svg .copy-pick{stroke:#16a34a!important;stroke-width:2.5;fill:rgba(22,163,74,.22)!important}svg .delete-pick{fill:rgba(229,72,77,.24)!important}svg .delete-pick,svg .ov-word.range-hit{stroke:var(--danger)!important;stroke-width:2.5}svg .ov-word.range-hit{fill:rgba(229,72,77,.3)!important}svg .ov-rubber{fill:rgba(37,99,235,.14);stroke:var(--accent);stroke-dasharray:5 3;vector-effect:non-scaling-stroke;stroke-width:1.5;pointer-events:none}svg .ov-rubber.delete{fill:rgba(229,72,77,.16);stroke:var(--danger)}svg .ov-edit-outline{fill:none}svg .ov-corner,svg .ov-edit-outline{stroke:var(--accent);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}svg .ov-corner{fill:#fff}svg .ov-edge{fill:var(--accent);stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}svg .ov-edge.v{cursor:ns-resize}svg .ov-edge.h{cursor:ew-resize}svg .ov-add-line{fill:none;stroke:var(--accent);stroke-dasharray:5 3;stroke-width:1.5}svg .ov-add-guide,svg .ov-add-line{vector-effect:non-scaling-stroke;pointer-events:none}svg .ov-add-guide{stroke:var(--accent);stroke-dasharray:3 3;stroke-width:1;opacity:.8}svg .ov-add-guide.close{opacity:.45}.stage-viewport.tool-add-rect,.stage-viewport.tool-range-delete{cursor:crosshair}.stage-viewport.tool-edit-rect,.stage-viewport.tool-select-delete{cursor:pointer}svg .editing-target{stroke:var(--danger)!important;stroke-width:3;fill:rgba(229,72,77,.12);animation:pulse 1s ease-in-out infinite}@keyframes pulse{0%,to{stroke-opacity:1}50%{stroke-opacity:.35}}svg .order-arrow{stroke:#f43f5e;fill:none;vector-effect:non-scaling-stroke;stroke-width:2;opacity:.85}svg .order-badge-bg{fill:#f43f5e}svg .order-badge.selected .order-badge-bg{fill:#f59e0b;stroke:#fff;stroke-width:1.5}svg .order-badge-text{fill:#fff;font-weight:700;text-anchor:middle;dominant-baseline:central;-webkit-user-select:none;-moz-user-select:none;user-select:none}svg .order-badge-halo{fill:none;stroke:#f43f5e;stroke-width:2;opacity:.55;vector-effect:non-scaling-stroke}svg .order-badge.selected .order-badge-halo{stroke:#f59e0b;opacity:.8}.copy-action{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;font-size:12px;font-weight:650}.pane-body{flex:1 1;overflow-y:auto;padding:10px}.pane-empty{color:var(--text-sub);text-align:center;padding:40px 10px}.word-edit-dock{flex:none;border-top:1px solid var(--border);background:#fbfcfd;max-height:45%;overflow-y:auto}.word-edit-dock .word-editor{margin:10px}.conf-nav{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#fbfcfd;flex:none}.word-edit-dock .conf-nav{border-bottom:1px solid var(--border)}.conf-nav .count{color:var(--danger);font-weight:600}.word-editor{border:1px solid var(--accent);border-radius:6px;padding:8px;margin-bottom:12px;background:#f8faff}.word-editor.flash{animation:flash-highlight .6s ease-in-out 2}@keyframes flash-highlight{0%,to{box-shadow:0 0 0 0 rgba(37,99,235,0)}50%{box-shadow:0 0 0 4px var(--accent-soft)}}.word-editor .score{font-size:11px;color:var(--text-sub);margin:4px 0}.word-editor .actions{display:flex;gap:6px;margin-top:6px}.icon-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0}.icon-action .ui-icon{background:transparent}.loupe{display:block;max-width:100%;border:1px solid var(--border);border-radius:4px;background:#fff;margin-bottom:6px}.doc-block{border:1px solid transparent;border-radius:4px;padding:7px 42px 7px 40px;margin-bottom:6px;white-space:pre-wrap;word-break:break-all;cursor:pointer;position:relative}.doc-block:hover{background:#f2f5f9}.doc-block.selected{border-color:var(--accent);background:var(--accent-soft)}.doc-block.hovered{background:#e4ecfd;box-shadow:inset 3px 0 0 0 var(--accent)}.doc-block.dirty:after{content:"修正済";position:absolute;top:3px;right:34px;font-size:9px;color:var(--warn)}.doc-block.heading{font-size:16px;font-weight:700}.figure-group{margin-bottom:6px}.figure-empty{color:var(--text-sub);cursor:default}.inline-delete{position:absolute;top:5px;right:5px;width:26px;height:26px;padding:0;border-radius:999px;color:var(--text-sub);line-height:1}.inline-delete .ui-icon{width:16px;min-width:16px;height:16px;background:transparent;font-size:11px}.inline-delete:hover:not(:disabled){border-color:var(--danger);background:rgba(229,72,77,.08);color:var(--danger)}.figure-heading{display:flex;align-items:center;gap:8px;margin-bottom:4px;padding:3px 6px;border-radius:4px;color:var(--text-sub);font-size:11px;font-weight:700;cursor:pointer}.figure-heading.selected{background:var(--accent-soft)}.figure-heading.hovered{background:#e4ecfd;box-shadow:inset 3px 0 0 0 var(--accent)}.figure-thumb{display:block;flex:none;width:72px;height:54px;border:1px solid var(--border);border-radius:4px;background:#fff}.figure-toggle{display:inline-flex;align-items:center;gap:6px;margin-right:auto;padding:2px 4px;border:none;background:transparent;color:var(--text);font-size:12px;font-weight:700}.figure-toggle:hover:not(:disabled){color:var(--accent);background:transparent}.figure-toggle .ui-icon{width:16px;min-width:16px;height:16px;background:transparent;font-size:11px}.figure-size{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:500}.figure-hint{font-weight:500;color:var(--text-sub);opacity:.8}.doc-table-block{margin-bottom:12px}.doc-table-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:6px}.doc-table-label{margin-right:auto;font-size:11px;font-weight:700;color:var(--text-sub)}.doc-table-toolbar .copy-action{padding:3px 9px;font-size:11px;font-weight:600}.doc-table-toolbar .copy-action .ui-icon{width:15px;min-width:15px;height:15px;font-size:10px}.doc-table{border-collapse:collapse;margin-bottom:0;width:100%;table-layout:fixed}.doc-table td{border:1px solid var(--border);padding:3px 5px;vertical-align:top;cursor:pointer;overflow-wrap:anywhere;word-break:break-word}.doc-table td.selected{outline:2px solid var(--accent);background:var(--accent-soft)}.doc-table td.hovered{box-shadow:inset 3px 0 0 0 var(--accent);background:#e4ecfd}.doc-table td.dirty{background:#fef6e7}.doc-table td .cell-editor{display:block;width:100%;box-sizing:border-box;border:none;outline:2px solid var(--accent);padding:2px 3px;resize:vertical;line-height:1.4;white-space:pre-wrap;word-break:break-word}.order-list{display:flex;flex-direction:column;gap:4px}.order-item{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:5px;padding:5px 8px;background:#fff;cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.footer-links{display:inline-flex;align-items:center;gap:14px;font-size:11px}.footer-links>a{color:#cfd6df;text-decoration:none}.footer-links>a:hover{text-decoration:underline}.license-note{color:var(--text-sub);font-size:11px}.license-note a{color:inherit;text-decoration:underline}.tool-list{display:flex;flex-direction:column;gap:6px}.tool-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:40px;padding:8px 12px;font-size:13px;font-weight:700;text-align:left}.tool-item.active{border-color:rgba(37,99,235,.55);background:var(--accent-soft);color:var(--accent)}.tool-item-label{min-width:0}.kbd-hint{margin-left:auto;flex:none;min-width:20px;padding:1px 6px;border:solid var(--border);border-width:1px 1px 2px;border-radius:4px;background:#f6f8fb;color:var(--text-sub);font-family:inherit;font-size:11px;font-weight:700;line-height:1.5;text-align:center}.toggle-button.active .kbd-hint,.tool-item.active .kbd-hint{color:var(--accent);border-color:rgba(37,99,235,.4)}.toggle-button{display:inline-flex;align-items:center;gap:8px;font-weight:700}.toggle-button.active{border-color:rgba(37,99,235,.55);background:var(--accent-soft);color:var(--accent)}.toggle-dot{width:16px;height:16px;border-radius:999px;border:1px solid;background:#fff;box-shadow:inset 0 0 0 4px #fff}.toggle-button.active .toggle-dot{background:var(--accent)}.engine-options{display:flex;flex-direction:column;gap:8px}.engine-options .bundle-format{justify-content:flex-start;text-align:left}.engine-options .export-action{width:100%;justify-content:flex-start}.engine-settings{display:flex;flex-direction:column;gap:8px;margin-top:8px}.engine-note-sub{font-size:10px;color:var(--text-sub);line-height:1.5;margin:0}.order-item.hovered{background:#e4ecfd;box-shadow:inset 3px 0 0 0 var(--accent)}.order-item.selected{border-color:var(--accent);background:var(--accent-soft,#eef3ff)}.order-item.drop-before{box-shadow:0 -2px 0 var(--accent)}.order-item.drop-after{box-shadow:0 2px 0 var(--accent)}.order-item .no{flex:none;width:22px;height:22px;border-radius:50%;background:#f43f5e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.order-table-glyph,.order-thumb{flex:none;width:54px;height:38px;border-radius:4px;background:#fff;pointer-events:none}.order-thumb{border:1px solid var(--border);object-fit:contain}.order-item .snippet{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-item .kind{flex:none;font-size:10px;color:var(--text-sub)}.progress-overlay{position:absolute;left:12px;bottom:12px;right:12px;max-width:460px;background:rgba(20,24,28,.88);color:#e5e9ee;border-radius:8px;padding:10px 12px;font-size:12px;pointer-events:none}.progress-overlay .bar{height:6px;border-radius:3px;background:rgba(255,255,255,.18);overflow:hidden;margin-top:4px}.progress-overlay .bar>div{height:100%;background:var(--accent);transition:width .2s}.progress-overlay .model-row{display:flex;justify-content:space-between;gap:8px;margin-top:4px}.dropzone-overlay{inset:0;z-index:50;background:rgba(37,99,235,.14);border:3px dashed var(--accent);justify-content:center;font-size:20px;color:var(--accent);pointer-events:none}.dropzone-overlay,.restore-banner{position:fixed;display:flex;align-items:center}.restore-banner{left:50%;transform:translateX(-50%);z-index:60;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.14);padding:10px 14px;gap:12px}.restore-banner,.toast-stack{top:calc(var(--topbar-h) + 12px)}.toast-stack{position:fixed;right:12px;z-index:70;display:flex;flex-direction:column;gap:8px;max-width:360px}.toast{background:#21262c;color:#fff;border-radius:6px;padding:8px 12px;font-size:12px;cursor:pointer}.toast.warn{background:var(--warn)}.toast.error{background:var(--danger)}