#document-capture-dialog,#document-bundle-dialog{width:calc(100vw - 40px);max-width:1500px;height:calc(100vh - 50px);max-height:1100px;padding:0;overflow:hidden;border-radius:6px}#document-capture-dialog header,#document-bundle-dialog header{height:78px;padding:18px 24px;border-bottom:1px solid #dce5df;position:relative}#document-capture-dialog h2,#document-bundle-dialog h2{font-size:20px;margin:0}.doc-note{font:11px/1.6 Arial;color:#73847c;margin:7px 0}.doc-capture-layout{height:calc(100% - 78px);display:grid;grid-template-columns:320px 1fr}.doc-capture-layout>form{padding:20px;overflow:auto;border-right:1px solid #dce5df}.doc-capture-preview{padding:20px;overflow:hidden;background:#edf1ee;display:flex;align-items:center;justify-content:center}.doc-capture-preview svg{width:100%;height:100%;touch-action:none}.doc-capture-preview:has(+*){cursor:crosshair}.doc-frame-values{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.doc-frame-values label{font-size:10px;color:#71837b}.doc-frame-values input{width:100%;padding:6px;border:1px solid #dce5df}.doc-capture-layout details{margin:16px 0}.doc-capture-layout details summary,.doc-meta-dialog summary{font-size:12px;cursor:pointer}.doc-bundle-layout{display:grid;grid-template-columns:240px 1fr;height:calc(100% - 138px)}.doc-bundle-layout>nav{padding:12px;overflow:auto;border-right:1px solid #dce5df;background:#f5f7f5}.doc-sheet-row{display:block;width:100%;text-align:left;padding:12px;margin:0 0 8px;background:white;border:1px solid #dce5df;color:#345b4b;font-size:12px}.doc-sheet-row.selected{border-color:#24786d;background:#eaf3ee}.doc-sheet-row small{display:block;font-size:10px;color:#82938a;margin-bottom:6px}.doc-bundle-layout>section{padding:16px;overflow:auto;background:#edf1ee}.doc-sheet-tools{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.doc-sheet-tools .button{padding:7px 9px;font-size:11px}.doc-sheet-preview svg{display:block;width:100%;height:auto;max-height:65vh;background:white;box-shadow:0 2px 12px #18332a15}#document-bundle-dialog footer{height:60px;padding:10px 20px;display:flex;justify-content:flex-end;gap:10px}#document-bundle-dialog footer a{font-size:10px;margin-right:auto;color:#577b69}.doc-empty{padding:60px;text-align:center;color:#73847c}.doc-meta-dialog{max-height:90vh;overflow:auto}.doc-meta-dialog h2{font-size:20px}[data-doc-error]{color:#ac3142;font-size:12px;line-height:1.6}@media(max-width:800px){.doc-capture-layout{grid-template-columns:260px 1fr}.doc-bundle-layout{grid-template-columns:180px 1fr}}
#document-kit-dialog{width:min(1050px,94vw);max-height:90dvh;overflow:auto}#document-kit-dialog :is(details,ol){margin:8px 0}.kit-choice{display:block;padding:4px}.kit-review{display:grid;grid-template-columns:minmax(150px,25%) minmax(0,1fr);gap:10px;margin:10px 0}.kit-review>div,.kit-review>section{overflow:auto;max-height:50dvh;border:1px solid #d5dfdf;padding:6px}.kit-review>div button{display:block;text-align:left;width:100%;margin-bottom:4px}.kit-review>section svg{width:100%;height:auto}.kit-review td{padding:4px;border:1px solid #d5dfdf;white-space:pre-wrap}@media(max-width:620px){.kit-review{grid-template-columns:1fr}.kit-review>div{max-height:20dvh}}

.document-actions{position:relative}.document-actions>div{display:grid;gap:4px;min-width:170px;padding:6px;background:white;border:1px solid #d5dfdf;border-radius:6px}.document-actions summary{list-style:none}.length-register-table{overflow:auto;max-height:55vh}.length-register-table table{border-collapse:collapse;font-size:12px}.length-register-table :is(th,td){padding:5px 8px;border:1px solid #d5dfdf;white-space:nowrap}.length-register-table th{position:sticky;top:0;background:#eef4f1}

.skeleton-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px 12px;border-bottom:1px solid #d5dfdf}.skeleton-controls[hidden]{display:none}.skeleton-workspace .canvas-caption,.skeleton-workspace .canvas-wrap .legend{display:none}.skeleton-workspace #canvas [data-node]{cursor:grab}
#editor-startup:not([hidden]) .vfl-fiber { display:block; margin:0 auto .35rem; overflow:visible; }
.app-load-failed #editor-startup:not([hidden]) .vfl-fiber { display:none; }
.vfl-fiber path { fill:none; stroke:#82938f; stroke-width:1.4; }
.vfl-fiber rect { fill:none; stroke:#82938f; animation:vfl-connector 1.8s linear infinite; }
.vfl-fiber circle { fill:#fff1f1; stroke:#d51c35; stroke-width:2; filter:drop-shadow(-3px 0 2px #d51c35); offset-path:path("M6 24 H40 C61 24 66 10 87 10 H139"); animation:vfl-travel 1.8s ease-in-out infinite; }
.vfl-ring { display:inline-block; position:relative; box-sizing:border-box; width:1em; height:1em; margin-inline-end:.5em; vertical-align:-.12em; border:1px solid currentColor; border-right-color:transparent; border-radius:50%; animation:vfl-spin .9s linear infinite; }
.vfl-ring::after { content:""; position:absolute; top:-2px; left:50%; width:4px; height:4px; background:#ffe5e5; border-radius:50%; box-shadow:0 0 0 1px #d51c35,-3px 0 3px #d51c35; }
@keyframes vfl-travel { 0% { offset-distance:0%; opacity:0; } 12% { opacity:1; } 82%,100% { offset-distance:100%; } 100% { opacity:0; } }
@keyframes vfl-connector { 0%,78%,100% { stroke:#82938f; } 85% { stroke:#d51c35; } }
@keyframes vfl-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .vfl-fiber circle,.vfl-fiber rect,.vfl-ring { animation:none; } }
.title-preview { background:white; color:#223938; padding:1.25rem; margin-block:1rem; border:1px solid #aebdba; }
.title-preview p { white-space:pre-line; margin:.35rem 0; }
.title-preview-heading { font-size:1.35rem; font-weight:700; color:#214c49; }
.title-preview table { border-collapse:collapse; width:100%; }
.title-preview td { border:1px solid #aebdba; padding:.25rem .5rem; }
