@font-face{font-family:DocumentSans;src:url('assets/NimbusSans-Regular.otf') format('opentype');font-display:swap}
@font-face{font-family:DocumentSerif;src:url('assets/NimbusRoman-Regular.otf') format('opentype');font-display:swap}
:root{--ink:#173344;--muted:#7a8a94;--line:#e3e9ed;--bg:#f5f7f9;--teal:#089db1;--teal-dark:#077e93;--nav:#133244;--yellow:#f5c94b;--sidebar:234px;--shadow:0 4px 20px #17334405}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:98px}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button{color:inherit}a{color:inherit;text-decoration:none}button,input,textarea,select{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #73cbd8;outline-offset:3px}button,textarea,input,select{transition:border-color .15s,background .15s,box-shadow .15s}h1,h2,h3,p{margin:0}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}span[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}[hidden]{display:none!important}
.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:var(--nav);color:#dce6eb;padding:34px 18px 0;z-index:30;display:flex;flex-direction:column;border-right:1px solid #234657}.brand{display:flex;align-items:center;gap:12px;padding:0 14px}.brand-icon{width:40px;height:45px;background:var(--teal);border-radius:9px;box-shadow:inset 0 0 0 1px #ffffff16}.brand-icon svg{width:25px;height:25px;stroke-width:1.7;color:white}.brand strong{display:block;font-size:25px;letter-spacing:1.2px;line-height:1.2;color:#fff}.brand-dot{color:var(--yellow)}.brand small{display:block;color:#97b0bd;letter-spacing:2.7px;font-size:8.5px;margin-top:4px;font-weight:600}.unit-mark{margin:26px 14px 30px;display:flex;align-items:center;gap:12px;padding-top:22px;border-top:1px solid #355161}.unit-mark img{height:32px;width:25px;object-fit:contain}.unit-mark span{font-size:12px;font-weight:600;line-height:1.6;color:#f1f4f6}.unit-mark small{display:block;font-size:10px;font-weight:400;color:#8fa9b8}.nav-caption{font-size:9px;font-weight:600;letter-spacing:1.8px;color:#7994a5;margin:0 14px 12px}.nav-item{display:flex;align-items:center;gap:12px;border:0;border-radius:7px;background:transparent;width:100%;padding:13px 14px;text-align:left;font-size:12px;color:#a9bfcc;margin-bottom:5px}.nav-item:hover{background:#214458;color:#fff}.nav-item.active{background:#089db1;color:white;box-shadow:0 3px 10px #091f2b28}.nav-item svg{width:17px;height:17px}.nav-plus{margin-left:auto;font-size:20px;line-height:1}.nav-count{margin-left:auto;font-size:10px;min-width:22px;text-align:center;background:#2b4a5d;border-radius:4px}.workflow-nav{margin-top:39px}.workflow-nav a{display:flex;align-items:center;gap:13px;padding:10px 14px;color:#8eacbd;font-size:11px}.workflow-nav a:hover,.workflow-nav a.active{color:#fff}.step-number{color:#577a90;font-size:10px;letter-spacing:1px;font-weight:600}.workflow-nav a.active .step-number{color:#49c5d4}.sidebar-bottom{margin-top:auto;padding-top:30px}.guide-button{border:1px solid #2c4d60;border-radius:7px;background:#1b3b4e;color:#afc5d0;display:flex;align-items:center;gap:8px;width:100%;padding:12px;font-size:11px}.guide-button span:last-child{margin-left:auto;color:#6f91a5}.guide-button:hover{background:#24495f}.guide-button svg{width:16px;height:16px}.workspace-label{display:flex;align-items:center;gap:9px;border-top:1px solid #2d4b5d;margin-top:24px;padding:22px 0;font-size:11px;font-weight:500;color:#d8e3ea}.workspace-label small{display:block;color:#6f91a5;font-size:9px}.workspace-avatar{width:30px;height:30px;border:1px solid #436373;background:#2c4f62;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;color:#add3df}.workspace-label .status-dot{margin-left:auto}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#34b595;flex-shrink:0}
.app-shell{margin-left:var(--sidebar)}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:20}.breadcrumb{display:flex;align-items:center;gap:13px;color:#96a2ab;font-size:11px}.breadcrumb strong{font-weight:500;color:#526773}.breadcrumb-home svg{width:15px;height:15px;color:#8ea2ae}.breadcrumb-divider{color:#ccd5db}.topbar-right{display:flex;align-items:center;gap:24px}.privacy-pill{color:#6c7e89;font-size:10px;display:flex;align-items:center;gap:6px}.privacy-pill svg{width:13px;height:13px}.topbar-avatar{border-radius:50%;background:#e8f5f7;color:#07869a;border:1px solid #d4edf0;width:31px;height:31px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}main{max-width:1540px;margin:0 auto;padding:32px 38px 20px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:650;color:var(--teal);margin-bottom:8px}h1{font-size:27px;line-height:1.3;letter-spacing:-.6px;font-weight:650}.page-heading p{font-size:12px;color:#7b8c97;margin-top:7px}.heading-actions{display:flex;align-items:center;gap:9px}.button{border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;font-size:11px;font-weight:600;border:1px solid transparent;white-space:nowrap;min-height:40px}.button svg{width:16px;height:16px}.button.primary{background:var(--teal);border-color:var(--teal);color:#fff;box-shadow:0 3px 5px #07889b12}.button.primary:hover{background:var(--teal-dark);border-color:var(--teal-dark)}.button.secondary{background:white;border-color:#dce4e9;color:#415966;box-shadow:0 2px 4px #17334403}.button.secondary:hover{background:#f1f6f8;border-color:#b6cbd5}.button.danger{background:#be3947;color:#fff;border-color:#be3947}.button.full{width:100%;margin-top:20px}.document-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #dce8eb;border-left:3px solid var(--teal);background:#f1f8f9;padding:15px 18px;border-radius:5px;margin-bottom:25px}.template-label{display:flex;align-items:center;gap:12px}.template-icon{color:var(--teal);background:#dff1f4;width:32px;height:36px;border-radius:5px}.template-icon svg{width:18px;height:18px}.template-label strong{display:block;font-weight:600;font-size:11px}.template-label div>span{font-size:10px;color:#8a9ba5;display:block;margin-top:2px}.a4-badge{font-size:8px;letter-spacing:.4px;font-weight:600;padding:2px 5px;background:white;color:#8398a4;border:1px solid #dae7eb;border-radius:3px;margin-left:6px}.save-status{font-size:10px;color:#6f8792;display:flex;align-items:center;gap:7px;white-space:nowrap}.save-status.error{color:#b34247}.save-status.error .status-dot{background:#b34247}.save-status.saving .status-dot{background:#e1aa34}
.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:24px;align-items:start}.form-column{min-width:0}.form-card{border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:20px;box-shadow:var(--shadow);scroll-margin-top:95px}.section-heading{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eaf0f2;padding:20px 22px}.section-number{font-size:10px;font-weight:700;color:var(--teal);background:#ebf7f8;width:29px;height:29px;border-radius:5px;display:flex;align-items:center;justify-content:center;letter-spacing:.5px}.section-heading h2{font-size:14px;font-weight:650;line-height:1.3}.section-heading p{font-size:10px;color:#899ba6;margin-top:4px}.required-caption{margin-left:auto;font-size:9px;color:#9aabb5;white-space:nowrap}.card-body{padding:22px}.field{margin-bottom:18px;min-width:0}.field label,.editor-label label{display:block;font-size:11px;font-weight:600;color:#3a5463;margin-bottom:7px}.field label>span,.editor-label label>span{color:#df9673;margin-left:2px}input,textarea,select{color:#244454;border:1px solid #dce5e9;border-radius:5px;background:#fff;padding:10px 11px;width:100%;min-width:0;font-size:11px}input{height:40px}textarea{resize:vertical;min-height:59px;line-height:1.6}input::placeholder,textarea::placeholder{color:#a7b5bf;opacity:1}input:focus,textarea:focus,select:focus{border-color:#70bfcb;box-shadow:0 0 0 3px #069db10a}input.invalid,textarea.invalid,.rich-editor.invalid{border-color:#d57676;box-shadow:0 0 0 2px #be39470a}.field-grid{display:grid;gap:15px}.field-grid.two{grid-template-columns:1fr 1fr}.field-grid.three{grid-template-columns:1.25fr 1fr 1fr}.field-hint{font-size:9px;color:#97a7b1;display:block;line-height:1.6;margin-top:5px}.input-suffix{position:relative}.input-suffix input{padding-right:50px}.input-suffix>span{position:absolute;right:11px;top:10px;font-size:11px;color:#94a4ae;pointer-events:none}.segmented{display:flex;gap:8px;max-width:420px}.segmented label{flex:1;position:relative;margin:0;font-weight:500}.segmented input{position:absolute;width:100%;height:100%;inset:0;margin:0;opacity:0;cursor:pointer}.segmented label>span{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border:1px solid #dfe6ea;border-radius:5px;color:#889ca9;background:#fff;font-size:10px;pointer-events:none}.segmented svg{width:16px;height:16px}.segmented input:checked+span{color:#0c8da0;background:#eff9fa;border-color:#8dccd6;box-shadow:0 0 0 1px #089db115}.segmented input:focus-visible+span{outline:3px solid #73cbd8;outline-offset:2px}.document-options{border-top:1px dashed #dfe6eb;margin-top:6px;padding-top:15px}.document-options summary{font-size:10px;cursor:pointer;list-style:none;display:flex;gap:8px;align-items:center;color:#6d8391;user-select:none}.document-options summary::-webkit-details-marker{display:none}.document-options summary svg{width:14px;height:14px}.document-options summary>span:last-child{margin-left:auto}.document-options[open] summary>span:last-child{transform:rotate(180deg)}.optional{font-size:9px;font-weight:400;color:#a0afb8;background:#f5f7f8;border-radius:3px;padding:1px 5px;white-space:nowrap}.options-body{padding-top:18px}.options-body .field:last-child{margin-bottom:0}
.editor-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.editor-label label{margin:0}.editor-label>span{font-size:9px;color:#9aaab4}.rich-editor{border:1px solid #dce5e9;border-radius:5px;overflow:hidden}.rich-editor:focus-within{border-color:#73c1cc;box-shadow:0 0 0 3px #089db10a}.editor-toolbar{background:#f9fbfc;border-bottom:1px solid #e1e9ed;padding:8px;display:flex;align-items:center;gap:2px;flex-wrap:wrap}.editor-toolbar select{font-size:10px;width:93px;height:29px;margin-right:5px;border-color:transparent;padding:4px;background:transparent;color:#607885}.toolbar-button{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#657c8a;border-radius:3px;font-family:Arial,sans-serif;font-size:13px}.toolbar-button:hover,.toolbar-button.active{background:#dfedf1;color:#078fa3}.toolbar-button svg{width:16px;height:16px}.toolbar-divider{width:1px;height:15px;background:#dce5e9;margin:0 4px}.editable{min-height:265px;padding:19px 20px;outline:none;line-height:1.75;color:#3e5460;font-size:12px;word-wrap:break-word;overflow-wrap:anywhere}.editable:empty:before{content:attr(data-placeholder);color:#afbbc3;pointer-events:none;font-size:11px}.editable p{margin:0 0 9px}.editable h1,.editable h2,.editable h3{font-size:14px;font-weight:650;line-height:1.5;margin:12px 0 8px;letter-spacing:0}.editable ul,.editable ol{padding-left:24px;margin:8px 0 12px}.editable li{padding-left:3px;margin-bottom:5px}.editable table{width:100%;border-collapse:collapse;margin:12px 0;table-layout:fixed}.editable td,.editable th{border:1px solid #afbdc7;min-width:40px;padding:7px 9px;vertical-align:top;font-size:11px;word-break:break-word}.editable th{background:#e9f3f5;font-weight:600;text-align:left}.editable blockquote{border-left:3px solid #b8d9de;padding-left:14px;margin-left:5px;color:#70858e}.editor-footnote{background:#fcfdfd;border-top:1px solid #edf1f3;padding:8px 14px;display:flex;align-items:center;gap:6px;font-size:9px;color:#9baab3}.editor-footnote svg{width:12px;height:12px}.conclusion-label{margin-top:24px}.rich-editor.compact .editable{min-height:150px}.table-tools{display:flex;gap:5px;align-items:center;background:#eff7f8;border-top:1px solid #dcebef;padding:6px 9px;flex-wrap:wrap}.table-tools button{border:1px solid #cde1e6;background:white;border-radius:3px;font-size:9px;padding:4px 6px;color:#4b7c89}.table-tools button:hover{background:#e0f3f6}.count-badge{margin-left:auto;font-size:9px;color:#7d909e;padding:3px 7px;background:#f1f5f7;border:1px solid #e7edf0;border-radius:4px}
.attachment-section{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid #edf1f4}.attachment-section.last{border:0;padding-bottom:0;margin-bottom:16px}.attachment-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.attachment-heading h3{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:#486371}.attachment-heading h3 svg{width:16px;height:16px;color:#8099a6}.small-mode{font-size:9px;font-weight:500;background:#eff6f8;color:#6990a0;border-radius:3px;padding:1px 5px;margin-left:5px}.upload-zone{display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px dashed #cbd9e0;border-radius:6px;padding:21px;background:#fcfdfd;cursor:pointer;transition:.2s}.upload-zone:hover,.upload-zone.dragging{border-color:var(--teal);background:#f0f9fa}.upload-symbol{background:#eef5f7;width:35px;height:35px;border-radius:7px;color:#6b98a8;margin-bottom:8px}.upload-symbol svg{width:19px;height:19px}.upload-zone strong{font-weight:500;font-size:11px;color:#6e8896}.upload-zone>span:last-child{font-size:9px;color:#a7b5bd;margin-top:3px}.upload-zone.small{padding:17px}.upload-zone.small .upload-symbol{height:29px;width:29px}.file-list:empty{display:none}.file-list{margin-top:10px}.file-item{border:1px solid #e1e9ed;background:#fff;padding:10px;border-radius:5px;display:flex;gap:10px;align-items:center;margin-top:7px}.file-thumb{width:37px;height:42px;background:#f3f7fa;display:flex;align-items:center;justify-content:center;border-radius:3px;color:#7f9ba8;overflow:hidden;flex-shrink:0;cursor:pointer}.file-thumb img{width:100%;height:100%;object-fit:cover}.file-pdf-tag{color:#b95965;font-size:9px;border:1px solid #ead1d5;border-radius:3px;padding:3px 4px;background:#fdf5f5;font-weight:650}.file-info{flex:1;min-width:0}.file-name{font-size:10px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px;display:block;background:none;border:0;padding:0;text-align:left;cursor:pointer}.file-info small{font-size:9px;color:#9cabb5}.file-caption{height:31px;font-size:10px;margin-top:6px;padding:5px 7px}.file-actions{display:flex;gap:1px;align-self:center}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border:0;background:transparent;border-radius:4px;color:#8ba2b0}.icon-button:hover{background:#edf3f6;color:#2b6075}.icon-button svg{width:15px;height:15px}.icon-button.remove:hover{background:#fceff0;color:#b54f5b}.attachment-limit{display:flex;align-items:flex-start;gap:6px;color:#93a6b1;font-size:9px;margin-top:12px}.attachment-limit svg{width:12px;height:12px;margin-top:2px}.qr-input{display:flex;align-items:flex-start;gap:14px}.qr-input .field{flex:1}.qr-panel{width:117px;height:117px;flex-shrink:0;display:flex;justify-content:center;align-items:center;background:#fafcfd;border:1px solid #e0e8ed;border-radius:6px;margin-top:1px;padding:5px}.qr-panel canvas{width:105px;height:105px}.qr-panel #qrEmpty{display:flex;align-items:center;flex-direction:column;color:#bacbd4;gap:7px}.qr-panel svg{width:39px;height:39px;stroke-width:1.2}.qr-panel small{font-size:8px;text-align:center;line-height:1.5}.qr-actions{display:flex;gap:16px;margin-bottom:15px}.text-button{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;font-size:10px;font-weight:500;color:#078da3}.text-button svg{width:13px;height:13px}.text-button:hover{color:#055970}.inline-note{display:flex;align-items:flex-start;gap:7px;border-radius:5px;background:#eff7f9;border:1px solid #e0eef2;padding:10px 12px;color:#7193a3;font-size:10px;line-height:1.65;margin-bottom:14px}.inline-note svg{width:14px;height:14px;margin-top:2px}.field-error{color:#bd5e64;font-size:9px;margin-top:5px}
.ready-badge{font-size:9px;margin-left:auto;color:#a8a080;background:#faf7ed;border:1px solid #eee7d4;border-radius:4px;padding:3px 7px}.ready-badge.ready{color:#36937b;background:#ecf8f3;border-color:#d8eee5}.checklist{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px;font-size:10px;color:#97a7b1}.check-item{display:flex;align-items:center;gap:6px}.check-item svg{width:14px;height:14px;color:#c4d0d7}.check-item.done{color:#5b7a85}.check-item.done svg{color:#2ea895}.output-order{display:flex;align-items:center;gap:12px;background:#f6f9fa;padding:15px;border-radius:5px;margin:20px 0}.output-order>span{width:30px;height:30px;color:#70a4b4;background:#eaf3f6;border-radius:5px}.output-order strong{font-size:10px;font-weight:600}.output-order p{font-size:9px;color:#97a9b3;margin-top:3px}.finish-actions{display:flex;justify-content:flex-end;gap:8px}.finish-card .card-body{padding-top:18px}.local-storage-note{display:flex;gap:6px;justify-content:center;color:#9aa9b3;font-size:9px;margin:15px 0 18px;line-height:1.7}.local-storage-note svg{width:12px;height:12px;margin-top:2px}.app-footer{display:flex;justify-content:space-between;align-items:center;color:#a0aeb7;font-size:9px;border-top:1px solid #e2e8ed;margin-top:24px;padding-top:18px}.app-footer span>span{color:#d0d9df;margin:0 7px}
.preview-sticky{position:sticky;top:102px}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;padding:0 1px}.preview-heading h2{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:600;color:#58717f}.preview-heading svg{width:16px;height:16px;color:#839ba9}.live-badge{display:flex;align-items:center;gap:4px;font-size:7px;font-weight:600;letter-spacing:1px;color:#80a395}.live-badge>span{width:4px;height:4px;background:#4eb391;border-radius:50%}.preview-stage{height:445px;background:#fff;border:1px solid #dfe7ec;box-shadow:0 4px 18px #2338460a;position:relative;overflow:hidden;border-radius:2px}.mini-document{width:595.28px;min-height:841.89px;background:white;color:#000;padding:38px 35px 42px 48px;transform:scale(var(--preview-scale,.532));transform-origin:top left;font-family:DocumentSerif,'Times New Roman',serif;font-size:12px;line-height:1.25;pointer-events:none}.mini-document p{margin:0 0 6px}.mini-document table{border-collapse:collapse;width:100%;margin:6px 0}.mini-document td,.mini-document th{border:1px solid #333;padding:3px 5px;font-size:11px;word-wrap:break-word;overflow-wrap:anywhere}.mini-document th{background:#f8d1b5}.mini-kop{font-family:DocumentSans,Arial,sans-serif;font-size:9px;line-height:1.25;border:1px solid #000;margin-bottom:9px}.mini-kop-main{display:flex;align-items:center}.mini-kop-main img{width:38px;max-height:55px;object-fit:contain;margin:7px 11px}.mini-kop-copy{flex:1;border-left:1px solid #000;padding:6px;text-align:center;min-height:68px}.mini-kop-copy strong{font-size:9.5px;display:block}.mini-kop-copy p{font-size:8.5px;margin:2px 0}.mini-kop-meta{display:flex;border-top:1px solid #000;text-align:center;font-size:8.5px;font-weight:bold}.mini-kop-meta>div{flex:1;padding:4px 2px;min-height:27px;border-left:1px solid #000;overflow:hidden}.mini-kop-meta>div:first-child{border-left:0}.mini-info{font-family:DocumentSans,Arial,sans-serif;font-size:10px!important;margin:10px 0 16px!important}.mini-info td{font-size:10px;padding:2.5px 4px}.mini-info .mini-title{font-size:19px;font-weight:bold;text-align:center;width:45%}.mini-info .mini-info-label{width:16%}.mini-info .mini-agenda{font-family:DocumentSerif,serif;font-size:12px;font-weight:bold;padding:4px}.mini-section-heading{font-size:13px;font-weight:bold;margin:12px 0 4px}.mini-document h1,.mini-document h2,.mini-document h3{font-family:DocumentSerif,serif;font-size:12px;font-weight:bold;letter-spacing:0;margin:8px 0 5px}.mini-document ul,.mini-document ol{padding-left:26px;margin:4px 0 8px}.mini-document li{margin-bottom:4px}.mini-placeholder{color:#aaa;font-style:italic}.preview-bottom-fade{position:absolute;bottom:0;inset-inline:0;height:64px;background:linear-gradient(transparent,#fff 65%);display:flex;justify-content:center;align-items:flex-end;padding-bottom:14px;pointer-events:none}.preview-bottom-fade span{font-size:8px;color:#a2b1ba;background:#fff;padding:3px 8px;border:1px solid #edf1f3;border-radius:10px}.preview-meta{display:flex;align-items:center;justify-content:space-between;padding:13px 1px;color:#93a3ad;font-size:9px}.preview-meta>span{display:flex;align-items:center;gap:5px}.preview-meta svg{width:12px;height:12px}.preview-note{margin-top:10px;display:flex;gap:9px;padding:14px;border:1px solid #dfebef;border-radius:5px;background:#f3f8fa}.preview-note>span{color:var(--teal);margin-top:1px}.preview-note svg{width:15px;height:15px}.preview-note strong{font-size:10px;color:#5d7e8c;font-weight:500}.preview-note p{font-size:9px;line-height:1.7;color:#97acb7;margin-top:3px}.quick-actions{margin-top:17px;border:1px solid #e1e8ed;background:#fff;border-radius:5px;overflow:hidden}.quick-actions button{display:flex;align-items:center;gap:8px;background:transparent;border:0;border-bottom:1px solid #edf1f3;padding:12px;width:100%;color:#7f96a4;font-size:9px;text-align:left}.quick-actions button:last-child{border-bottom:0}.quick-actions button span:last-child{margin-left:auto;color:#b2c1c9}.quick-actions svg{width:13px;height:13px}.quick-actions button:hover{background:#f3f9fa;color:#008fa5}
.archive-toolbar{display:flex;gap:16px;align-items:center;margin-bottom:20px}.search-field{position:relative;flex:1}.search-field>span{position:absolute;left:13px;top:11px;color:#95a9b5}.search-field input{padding-left:39px}.search-field svg{width:17px;height:17px}.archive-container{border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden}.archive-empty{padding:75px 30px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9cafba;text-align:center}.archive-empty>span{width:70px;height:70px;border-radius:18px;background:#eff7f9;color:#8bbac8;margin-bottom:20px}.archive-empty svg{width:32px;height:32px}.archive-empty h2{font-size:17px;color:#4f7081}.archive-empty p{margin-top:6px;font-size:12px}.archive-empty .button{margin-top:23px}.archive-row{display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #edf2f4}.archive-row:last-child{border-bottom:0}.archive-row .archive-icon{display:flex;width:40px;height:46px;align-items:center;justify-content:center;background:#eff8fa;color:#5c9eaf;border-radius:5px}.archive-row .archive-info{min-width:0;flex:1}.archive-title{font-size:13px;font-weight:600;color:#38576a;margin-bottom:5px;text-align:left;border:0;background:none;padding:0;display:block}.archive-title:hover{color:#048ca1}.archive-info small{font-size:10px;color:#90a4b1}.archive-mode{background:#f0f5f7;border-radius:3px;font-size:9px;padding:2px 6px;white-space:nowrap;color:#7c99aa}.archive-actions{display:flex;gap:5px}
dialog{border:1px solid #dce5eb;border-radius:10px;padding:0;box-shadow:0 20px 100px #0624313b;color:var(--ink);max-width:calc(100vw - 30px)}dialog::backdrop{background:#0b25356e;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid #e2e9ed;background:white}.modal-heading h2{font-size:16px;font-weight:600}.modal-heading p{font-size:10px;color:#8da1ad;margin-top:3px;max-width:650px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modal-heading-actions{display:flex;gap:12px;align-items:center}.pdf-dialog{width:1100px;height:calc(100vh - 50px);max-height:1000px;overflow:hidden}.pdf-dialog[open]{display:flex;flex-direction:column}.pdf-dialog iframe{flex:1;border:0;background:#e7ecf1;width:100%;min-height:200px}.pdf-modal-footer{display:flex;justify-content:space-between;align-items:center;font-size:10px;padding:10px 22px;color:#8da1ad;background:white;border-top:1px solid var(--line)}.pdf-modal-footer a{color:#0a91a6;display:flex;align-items:center;gap:4px}.pdf-modal-footer svg{width:12px;height:12px}.small-dialog{width:460px}.dialog-body{padding:23px}.dialog-body>p{font-size:12px;color:#7b909e;margin-bottom:20px}.checkbox-field{display:flex;gap:9px;align-items:center;font-size:11px;color:#7992a1;margin:4px 0}.checkbox-field input{width:14px;height:14px;accent-color:var(--teal)}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:24px}.help-dialog{width:540px}.help-steps{counter-reset:help;list-style:none;margin:0 0 25px;padding:0}.help-steps li{counter-increment:help;position:relative;padding-left:44px;margin-bottom:20px}.help-steps li::before{content:counter(help,decimal-leading-zero);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:5px;background:#ebf7f9;color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600}.help-steps strong{font-size:12px;font-weight:600}.help-steps p{font-size:11px;color:#8da1ad;margin-top:4px;line-height:1.8}.busy-overlay{position:fixed;inset:0;background:#102f4277;backdrop-filter:blur(4px);z-index:150;display:flex;align-items:center;justify-content:center}.busy-card{border:1px solid #dce8ed;border-radius:12px;box-shadow:0 20px 100px #092d4540;background:white;padding:38px;min-width:350px;text-align:center}.spinner{width:32px;height:32px;border:3px solid #deeff3;border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 18px}.busy-card h2{font-size:17px;font-weight:600}.busy-card p{font-size:12px;color:#7090a1;margin-top:10px}.busy-card>span{display:block;font-size:10px;color:#a2b4bf;margin-top:8px}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:24px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%);z-index:200;background:#183c4f;border:1px solid #35586d;color:#e0edf3;padding:13px 20px;border-radius:7px;box-shadow:0 6px 40px #193b5625;font-size:11px;display:flex;align-items:center;gap:9px;max-width:600px}.toast svg{width:17px;height:17px;color:#5dd8c0}.toast.error svg{color:#f5b1b4}
@media(min-width:1500px){.workspace-grid{grid-template-columns:minmax(0,1fr) 350px;gap:30px}.preview-stage{height:494px}.preview-sticky{top:102px}.card-body{padding:26px}.section-heading{padding:21px 26px}.form-card{margin-bottom:24px}}
@media(max-width:1190px){:root{--sidebar:207px}.sidebar{padding-inline:13px}.topbar{padding-inline:26px}main{padding-inline:26px}.workspace-grid{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.preview-stage{height:380px}.card-body{padding:18px}.section-heading{padding:18px}.section-heading p{max-width:270px}.required-caption{display:none}.page-heading{gap:10px}h1{font-size:24px}.heading-actions .button{padding:10px 12px}.field-grid{gap:11px}.quick-actions button{font-size:8.5px;padding:11px}}
@media(max-width:1020px){.workspace-grid{grid-template-columns:1fr}.preview-column{display:none}.topbar{height:68px}.page-heading{margin-bottom:23px}.document-strip{margin-bottom:22px}.editable{min-height:250px}.field-grid.three{grid-template-columns:1.25fr 1fr 1fr}.section-heading p{max-width:none}.required-caption{display:block}.local-storage-note{justify-content:flex-start}.form-card{scroll-margin-top:86px}}
@media(max-width:740px){:root{--sidebar:0px}.sidebar{position:sticky;inset:0;height:auto;flex-direction:row;padding:13px 16px;align-items:center;width:100%;justify-content:space-between;border-bottom:1px solid #2b4f60}.brand{padding:0;gap:8px}.brand-icon{width:28px;height:32px;border-radius:6px}.brand-icon svg{width:18px;height:18px}.brand strong{font-size:18px;letter-spacing:1px}.brand small{font-size:6px;letter-spacing:1.8px}.unit-mark,.sidebar>.nav-caption,.workflow-nav,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:5px}.nav-item{padding:8px;font-size:10px;width:auto;margin:0;gap:6px}.nav-item svg{width:14px;height:14px}.nav-plus,.nav-count{display:none}.app-shell{margin:0}.topbar{height:47px;position:static;padding:0 20px}.breadcrumb{font-size:10px;gap:9px}.topbar-avatar{display:none}.topbar-right{gap:0}.privacy-pill{font-size:9px}.privacy-pill svg{width:11px;height:11px}main{padding:24px 16px 18px}.page-heading{align-items:flex-start;gap:15px;flex-direction:column;margin-bottom:20px}h1{font-size:24px}.eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:6px}.page-heading p{font-size:11px}.heading-actions{width:100%;justify-content:flex-end}.heading-actions .button{min-height:36px;font-size:10px;padding:8px 13px}.document-strip{padding:13px 12px;flex-wrap:wrap;gap:8px}.template-label{gap:8px}.template-label strong{font-size:10px}.template-label div>span{font-size:8px}.template-icon{width:27px;height:31px}.save-status{font-size:8px;margin-left:35px}.a4-badge{margin-left:2px}.section-heading{padding:16px;gap:9px}.section-heading h2{font-size:13px}.section-heading p{font-size:9px}.section-number{width:25px;height:25px;font-size:9px}.required-caption{font-size:8px}.card-body{padding:17px}.field-grid.two{gap:12px}.field-grid.three{gap:9px}.field-grid.three .field label{font-size:10px}.field-grid.three input{font-size:10px;padding:8px}.field label{font-size:10px}.field{margin-bottom:16px}.editable{padding:15px;min-height:240px;font-size:12px}.toolbar-button{width:26px;height:26px}.editor-toolbar{padding:6px;gap:1px}.editor-toolbar select{width:85px;font-size:9px}.toolbar-divider{margin:0 3px}.conclusion-label{margin-top:22px}.qr-input{gap:10px}.qr-panel{width:99px;height:99px}.qr-panel canvas{width:87px;height:87px}.qr-panel small{font-size:7px}.upload-zone{padding:18px 10px}.upload-zone strong{font-size:10px}.upload-zone>span:last-child{font-size:8px}.attachment-limit{font-size:8px}.file-name{max-width:180px;font-size:9px}.file-item{gap:7px}.file-actions .icon-button{width:24px}.checklist{font-size:9px;gap:9px}.finish-actions .button{font-size:10px;padding:9px 12px}.output-order{padding:12px;gap:9px}.output-order p{font-size:8px}.local-storage-note{font-size:8px}.app-footer{font-size:8px;gap:15px}.app-footer>span:last-child{display:none}.pdf-dialog{height:calc(100dvh - 24px)}.modal-heading{padding:14px 15px;gap:10px}.modal-heading h2{font-size:14px}.modal-heading p{max-width:180px;font-size:9px}.modal-heading-actions{gap:4px}.modal-heading .button{font-size:9px;padding:8px 10px;min-height:33px}.small-dialog{width:calc(100vw - 32px)}.toast{left:50%;max-width:calc(100vw - 32px);width:max-content;font-size:10px;bottom:18px}.busy-card{min-width:290px;max-width:calc(100vw - 32px);padding:30px}.archive-row{padding:16px 13px;gap:9px}.archive-title{font-size:11px}.archive-info small{font-size:8px}.archive-mode{display:none}.archive-icon{display:none!important}.archive-toolbar{gap:8px}.archive-toolbar .button{font-size:9px;padding:9px}.archive-empty{padding:55px 15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}.spinner{animation-duration:1.6s}}

/* Corporate palette and restrained application styling. */
:root{--ink:#213b50;--muted:#6e7d88;--line:#dce1e5;--bg:#f3f4f5;--teal:#245d84;--teal-dark:#184a70;--nav:#fff;--yellow:#dfb52b;--shadow:none}
body{font-family:Arial,'Segoe UI',sans-serif}.sidebar{background:#fff;color:#334d61;border-color:#d5dce1}.brand strong{color:#1e3b52}.brand-icon{background:#1e3b52;box-shadow:none;border-radius:4px}.brand small{color:#7f8e98;letter-spacing:1.8px}.unit-mark{border-color:#dfe4e8}.unit-mark span{color:#294459}.unit-mark small{color:#758694}.nav-caption{color:#909aa2;letter-spacing:1px}.nav-item{color:#607482;border-radius:3px;font-size:12px}.nav-item.active{background:#eaf0f5;color:#1a4e77;box-shadow:none;border-left:3px solid #1a4e77;padding-left:11px}.nav-item:hover{background:#f0f3f5;color:#204767}.nav-count{background:#e9edf0;color:#6a7c89}.workflow-nav a{color:#6c7e8a}.workflow-nav a:hover,.workflow-nav a.active{color:#174a72}.workflow-nav a.active .step-number{color:#9c7c16}.step-number{color:#9aa5ad}.guide-button{background:#f5f6f7;border-color:#dce2e6;color:#647987;border-radius:3px}.guide-button:hover{background:#eaf0f3}.workspace-label{border-color:#dce2e6;color:#334d61}.workspace-label small{color:#7b8a95}.workspace-avatar{background:#eaf0f4;border-color:#d6e0e8;color:#32556f}.topbar-avatar{background:#eaf0f5;color:#234f70;border-color:#d3dde5}.topbar{height:68px}.privacy-pill{font-size:11px}.eyebrow{color:#6d7d88;letter-spacing:1px}.page-heading h1{font-weight:600;font-size:27px;letter-spacing:-.3px}.page-heading p{font-size:12px;letter-spacing:0}.button{border-radius:4px;font-size:12px;font-weight:500;box-shadow:none!important}.button.primary{background:#245d84;border-color:#245d84}.button.primary:hover{background:#184a70;border-color:#184a70}.form-card{border-radius:4px}.section-heading{padding-block:18px}.section-heading h2{font-size:15px;font-weight:600}.section-heading p{font-size:11px}.section-number{background:#f8f2df;color:#8b701c;border-radius:3px}.field label,.editor-label label{font-size:12px}.field label>span,.editor-label label>span{color:#a9862f}input,textarea,select{font-size:12px;border-radius:3px}.field-hint{font-size:10px}.segmented label>span{border-radius:3px;color:#6c7e8a;font-size:11px}.segmented input:checked+span{color:#1b4e73;background:#eef3f7;border-color:#9db6c9;box-shadow:none}.document-strip{background:#fff;border-color:#dce1e5;border-left:3px solid #dfb52b;border-radius:3px}.template-icon{color:#385b76;background:#edf1f4;border-radius:3px}.template-label strong{font-size:12px;font-weight:600}.save-status{font-size:10px}.rich-editor{border-radius:3px}.editable{font-size:13px;line-height:1.7}.editor-toolbar{background:#f5f6f7}.toolbar-button:hover,.toolbar-button.active{background:#e0e9f0;color:#1d527a}.editable th{background:#edf1f4}.upload-zone{background:#fafbfb;border-color:#cbd3d9;border-radius:3px}.upload-zone:hover,.upload-zone.dragging{background:#f3f6f8;border-color:#7995aa}.upload-symbol{background:#eef1f4;color:#608198;border-radius:3px}.upload-zone strong{font-size:11px}.attachment-heading h3{font-size:12px}.count-badge,.small-mode{border-radius:3px;background:#f0f2f4;color:#718391}.inline-note{background:#f2f5f7;border-color:#dde5eb;color:#698193;border-radius:3px}.preview-note{background:#f5f7f8;border-color:#dce4e9;border-radius:3px}.preview-note strong{color:#49677b}.preview-heading h2{font-size:12px}.quick-actions button{font-size:10px;color:#677e8f}.quick-actions button:hover{color:#1e4e72;background:#f0f4f7}.output-order{background:#f4f6f7;border-radius:3px}.output-order>span{background:#e9eef2;color:#557b96}.finish-card .section-number{background:#eaf1ec;color:#508366}.app-footer{padding-top:15px}.storage-banner{display:flex;align-items:center;gap:12px;border:1px solid #dce3e8;background:#fff;border-radius:3px;padding:14px 17px;margin-bottom:22px;color:#57748a}.storage-banner>span{color:#4b7f69}.storage-banner strong{font-size:12px;color:#35576c;font-weight:600}.storage-banner p{font-size:10px;color:#82919d;margin-top:2px}.storage-banner>div{flex:1}.storage-banner .button{font-size:10px;min-height:32px;padding:7px 10px}.storage-banner.offline{border-color:#e3d7bd;background:#fdfbf5}.storage-banner.offline>span{color:#aa8d47}.local-draft-list{max-height:320px;overflow:auto}.local-draft-option{display:flex;align-items:center;gap:11px;border-bottom:1px solid #e1e5e8;padding:11px 0}.local-draft-option input{width:15px;height:15px;accent-color:#245d84}.local-draft-option strong{display:block;font-size:12px;font-weight:500}.local-draft-option small{display:block;color:#8b9ba5;font-size:10px;margin-top:3px}.file-caption:disabled,input:disabled,textarea:disabled{background:#f7f8f9;color:#7d8c95}.editable[contenteditable="false"]{background:#fcfcfd}.storage-banner #localDraftCount{padding:1px 5px;background:#eef2f5;border-radius:3px;color:#58748a}
@media(max-width:740px){.sidebar{border-bottom-color:#d9e0e5}.brand strong{font-size:18px}.nav-item{font-size:10px}.nav-item.active{padding-left:8px;border-left:0;border-bottom:2px solid #1a4e77}.topbar{height:46px}.storage-banner{padding:12px;flex-wrap:wrap;gap:9px}.storage-banner>div{min-width:220px}.storage-banner p{font-size:9px}.storage-banner .button{margin-left:auto}.field-grid.three .field label{font-size:10px}.field-grid.three input{font-size:10px}.page-heading h1{font-size:24px}.section-heading h2{font-size:14px}.section-heading p{font-size:10px}.field label,.editor-label label{font-size:11px}.preview-column{display:none}}
