@font-face{font-family:Manrope;src:url('ux-assets/manrope-latin-wght-normal.woff2') format('woff2');font-weight:200 800;font-display:swap}
:root{--ink:#2b302f;--muted:#6b6b62;--red:#8c2427;--cream:#fcf8ef;--line:#e3dccf;--gold:#b98a44;--focus:#177a8a}*{box-sizing:border-box}body{margin:0;background:#f5f1e8;color:var(--ink);font:14px Manrope,Arial,sans-serif}button,input,select,a{font:inherit}button,.button{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:40px;padding:9px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink);font-weight:500;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}button:hover:not(:disabled),.button:hover{background:#eee7da}button:disabled,input:disabled,select:disabled{opacity:.44;cursor:not-allowed}button:disabled{background:transparent}select,input[type=number]{border:1px solid var(--line);border-radius:6px;min-height:36px;background:#fffdf8;color:var(--ink);padding:6px 9px}a{color:var(--red)}.icon{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;align-items:center;justify-content:center}.icon-button{width:40px;padding:8px}.primary{background:var(--red);color:#fffaf0;box-shadow:0 2px 3px #61231e12}.primary:hover:not(:disabled){background:#6e171b}.primary:disabled{background:#ece3d8;color:#6a5d55;opacity:.7}.download{background:#eef3e9;border-color:#bdcbb6;color:#385233}.quiet{color:var(--muted)}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.brand-header{height:91px;padding:16px 34px;display:flex;align-items:center;gap:30px;background:var(--cream);border-bottom:1px solid #c5a56b;position:relative}.brand-header:before{content:'';position:absolute;top:6px;left:22px;right:22px;border-top:1px solid #cfac74}.cream-brand{--w:264px;display:block;flex-shrink:0;width:var(--w);height:calc(var(--w)*.190909);background:url('ux-assets/header-reference.png') no-repeat;background-size:calc(var(--w)*3.8) auto;background-position:calc(var(--w)*-.03636) calc(var(--w)*-.052273)}.editor-heading{display:flex;align-items:center;gap:12px;padding-left:26px;border-left:1px solid #d9c8ab}h1{font-size:21px;font-weight:600;margin:0;letter-spacing:-.6px}.preview-badge{font-size:10px;color:#786343;background:#f2eadb;border:1px solid #e3d2b3;border-radius:4px;padding:3px 6px;white-space:nowrap}.signature{margin:0 0 0 auto;font-size:11px;color:#80685a;text-align:right}.signature strong{display:block;color:var(--red);font-size:13px;font-weight:600}
.editor-app{max-width:1500px;margin:22px auto 0;border:1px solid #dbd1c1;border-radius:12px;background:#fffdfa;box-shadow:0 5px 24px #47372406;overflow:clip}.document-bar{padding:14px 20px;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line)}.document-info{display:flex;gap:10px;align-items:center;min-width:0;flex:1}.document-info>span{color:var(--red)}.document-info strong{display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.document-info div span{display:block;font-size:11px;color:var(--muted);margin-top:3px}.file-actions,.save-actions{display:flex;align-items:center;gap:6px}.save-actions{margin-left:auto}.file-actions #open{border-color:var(--line);background:white}.toolbar{display:flex;align-items:center;padding:9px 12px;background:#fcfaf5;border-bottom:1px solid var(--line);overflow-x:auto}.tool-group{display:flex;align-items:center;gap:6px;padding:0 12px;border-right:1px solid var(--line);flex-shrink:0}.tool-group:first-child{padding-left:0}.tool-caption{font-size:12px;color:var(--muted)}.add-text{color:var(--red);font-weight:600}.add-text[aria-pressed=true]{background:#f4e4df;border-color:#c89b8e}.size-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;background:#fffdf8;padding-right:8px}.size-field input{width:49px;border:0;padding:7px 5px 7px 9px;background:transparent;appearance:textfield;min-height:34px}.size-field input::-webkit-inner-spin-button{appearance:none}.size-field span{font-size:10px;color:var(--muted)}#color{width:108px;font-size:12px}.color-caption{display:flex;align-items:center;padding:0 2px 0 10px}#custom-color{width:30px;height:32px;min-width:30px;border:1px solid var(--line);border-radius:5px;padding:5px;background:#fffdf8;cursor:pointer}#custom-color::-webkit-color-swatch-wrapper{padding:0}#custom-color::-webkit-color-swatch{border:none;border-radius:2px}#apply:not(:disabled){color:#385d40;background:#eef3e8}.selection-label{padding:0 16px;color:#777367;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notice-row{display:flex;gap:8px;align-items:center;min-height:41px;padding:8px 20px;border-bottom:1px solid var(--line);font-size:11px;background:#fffdf8}.status-dot{width:5px;height:5px;flex-shrink:0;background:var(--gold);border-radius:50%}#status{margin:0;line-height:1.6;color:#5c5a51;flex:1}.notice-row.error{background:#fff3ee}.notice-row.error #status{color:#942b27}.notice-row.success .status-dot{background:#5c8157}.local-note{display:flex;align-items:center;gap:5px;color:#727469;font-size:10px;white-space:nowrap}.local-note .icon{width:13px;height:13px}
#viewport{position:relative;overflow:auto;height:calc(100dvh - 337px);min-height:390px;max-height:900px;padding:32px 30px 50px;background:#eae7df;background-image:radial-gradient(#6b625207 .7px,transparent .7px);background-size:7px 7px;scrollbar-color:#b7b1a4 transparent;overscroll-behavior:contain}#sheet{position:relative;margin:auto;background:white;box-shadow:0 3px 12px #393b3820;display:none}body.has-document #sheet{display:block}#render canvas{display:block;width:100%;height:100%}#areas{position:absolute;inset:0}.area{position:absolute;border:1px solid #2b83954d;background:transparent;padding:0;min-height:0;border-radius:2px}.area:hover,.area:focus-visible{background:#2b83950b;outline:1px solid #23788a;border-color:#23788a}.area.restricted{border:1px dashed #ac695680;background:transparent}.editor{position:absolute;outline:1.5px solid #23788a;white-space:pre;min-width:8px;padding:0;margin:0;border:0;background:transparent;line-height:1;overflow:visible;transform-origin:0 0;caret-color:#111}.editor.invalid{outline-color:#bd3b30}.editor:empty{min-width:36px;min-height:20px}.mover{position:absolute;min-height:26px;padding:3px 8px;cursor:move;touch-action:none;font-size:11px;background:#f3fafb;color:#246071;border:1px solid #70a0ab;border-radius:5px}.placing,#sheet.placing .area{cursor:crosshair}.placing{outline:2px dashed #b99867;outline-offset:9px}
#empty-state{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px 20px 20px}body.has-document #empty-state{display:none}.empty-icon{width:66px;height:70px;display:grid;place-items:center;color:var(--red);background:#fffaf1;border:1px solid #e0d0b4;border-radius:17px;box-shadow:3px 3px 0 #d7c4a53b;margin-bottom:15px}.empty-icon .icon{width:31px;height:31px;stroke-width:1.25}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:600;color:#907243;margin:0 0 10px}#empty-state h2{font-size:29px;font-weight:500;line-height:1.25;letter-spacing:-.8px;margin:0 0 13px}#empty-state p:not(.eyebrow){color:#736d60;font-size:12px;line-height:1.8;margin:0 0 18px}#empty-state .primary{padding:10px 24px;min-height:42px}.text-button{color:var(--red);font-size:11px}.empty-note{font-size:10px;color:#807b6e;margin-top:12px;max-width:350px;line-height:1.6}.document-footer{display:flex;align-items:center;gap:16px;padding:8px 15px;border-top:1px solid var(--line);background:#fcfaf5;min-height:54px}.page-controls,.zoom-controls{display:flex;gap:8px;align-items:center;font-size:11px}.page-controls .icon{width:15px;color:#847762}#page{min-height:30px;padding:4px 18px 4px 8px;min-width:43px}.page-hint{font-size:10px;color:#827b6e;margin:auto}.zoom-controls{margin-left:auto;gap:2px}.zoom-controls button{min-height:34px}.zoom-controls .icon-button{width:33px}#zoom{border-color:transparent;background:transparent;font-size:11px;min-height:30px;padding:3px;max-width:77px}.fit-button{font-size:11px;border-left:1px solid var(--line);border-radius:0;margin-left:9px;padding-left:13px}.fit-button .icon{width:15px}.support-footer{max-width:1500px;margin:12px auto 18px;display:flex;gap:18px;align-items:flex-start;font-size:10px;color:#887b67;padding:0 4px}.support-footer details{margin-left:auto;max-width:640px;text-align:left;color:#756d60}.support-footer summary{cursor:pointer}.support-footer p{line-height:1.8;font-size:12px}.preview-note{white-space:nowrap}.support-footer #metrics{font-size:10px}
@media(max-width:1535px){.editor-app,.support-footer{margin-left:24px;margin-right:24px}}@media(max-width:1100px){.signature,.selection-label{display:none}.document-info strong{max-width:170px}.file-actions #sample{font-size:11px}.document-bar{gap:10px;padding:12px}.local-note,.page-hint{display:none}.support-footer>span:first-child{display:none}}
@media(max-width:700px){.brand-header{height:76px;padding:12px 14px;gap:12px}.brand-header:before{left:12px;right:12px}.cream-brand{--w:206px}.editor-heading{margin-left:auto;padding-left:12px;gap:4px;flex-direction:column;align-items:flex-start}h1{font-size:15px;letter-spacing:-.3px}.preview-badge{font-size:8px;padding:2px 4px}.editor-app{margin:10px 8px 0;border-radius:9px}.document-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:10px}.document-info{grid-column:1;grid-row:1}.document-info strong{font-size:11px;max-width:155px}.document-info div span{font-size:9px}.save-actions{grid-column:2;grid-row:1 / span 2;flex-direction:column;align-items:stretch;gap:5px}.save-actions button,.save-actions a{font-size:11px;padding:8px 10px;min-height:40px}.file-actions{grid-column:1;grid-row:2;gap:1px;flex-wrap:wrap}.file-actions button{font-size:10px;min-height:34px;padding:5px 7px}.file-actions #sample{font-size:9px;padding:4px}.toolbar{padding:7px 8px;scrollbar-width:thin}.tool-group{padding:0 8px;gap:4px}.toolbar button{font-size:12px;min-height:42px}.toolbar .tool-caption{display:none}.toolbar .icon-button{width:38px}.toolbar #apply span:not([data-icon]){display:none}.notice-row{padding:8px 11px;min-height:46px;align-items:flex-start}.status-dot{margin-top:7px}#status{font-size:10px}#viewport{height:calc(100dvh - 370px);min-height:330px;padding:20px 10px 40px}.document-footer{padding:6px;gap:5px;flex-wrap:wrap}.page-controls{gap:4px;font-size:10px}.page-controls>span[data-icon]{display:none}.zoom-controls{gap:0}.zoom-controls .icon-button{width:30px}.fit-button{margin-left:2px;padding:5px 8px}.fit-button span:not([data-icon]){display:none}.support-footer{margin:10px 12px 18px;font-size:9px;gap:10px}.preview-note{display:none}#empty-state{padding:10px 6px}.empty-icon{width:49px;height:52px;margin-bottom:12px;border-radius:12px}#empty-state h2{font-size:24px}.empty-note{font-size:9px}.mover{min-height:30px;padding:5px 10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.mobile-privacy{display:none}@media(max-width:1100px){.mobile-privacy{display:block;margin:10px 16px 0;text-align:center;font-size:11px;color:#625e55}}
.style-button{font-weight:700;font-size:16px}.italic-button{font-style:italic}.style-button[aria-pressed=true]{background:#f1dfd8;color:var(--red);border-color:#c3998b}.mover{font-weight:600;cursor:grab;box-shadow:0 1px 4px #0002}.mover:active{cursor:grabbing}.responsible{max-width:1500px;margin:14px auto;padding:12px 16px;border:1px solid #dfd1bb;border-left:3px solid #b98a44;border-radius:7px;background:#fcf8ef;font-size:12px;line-height:1.7;color:#5b5143}.responsible>strong{color:#6e3326}.responsible p{margin:4px 0 0}.responsible p strong{font-weight:700}@media(max-width:1535px){.responsible{margin-left:24px;margin-right:24px}}@media(max-width:700px){.responsible{margin:12px 8px;font-size:12px}}
@media(max-width:700px){.toolbar{flex-wrap:wrap;row-gap:6px;overflow:visible}.style-group{margin-right:auto}.format-group{padding-left:0;border:0}.toolbar .selection-label{display:none}.toolbar .tool-group:last-of-type{border:0;padding-left:0}.style-button{min-width:42px}.toolbar #apply span:not([data-icon]){display:inline}}

.mover:disabled,.mover:disabled:active{cursor:default;box-shadow:none;opacity:.55;touch-action:auto}

.editor{line-height:1.2;min-height:1em}.offpage{position:static;white-space:pre-wrap;max-width:100%;text-align:left;padding:6px 10px}.offpage:not(:last-child){margin-right:8px}#offpage-blocks:empty{display:none}#offpage-blocks{max-height:100px;overflow:auto;padding:6px 12px;background:#fcfaf5}.editor{max-width:none}

textarea.editor{resize:none;overflow:hidden;box-shadow:none;border-radius:0;appearance:none;font-family:Arial,sans-serif}

/* Compact integrated shell; PDF rendering and editing geometry are unchanged. */
body.integrated .document-bar{padding:8px 12px;gap:12px}
body.integrated .toolbar{padding-top:6px;padding-bottom:6px}
body.integrated .notice-row{min-height:30px;padding:4px 12px;gap:5px}
body.integrated .local-note{display:flex}
body.integrated .mobile-privacy{display:none}
body.integrated #viewport{padding-top:16px;padding-bottom:24px}
@media(max-width:700px){body.integrated .document-bar{padding:8px;gap:6px}body.integrated .save-actions{grid-row:1;flex-direction:row}body.integrated .notice-row{flex-wrap:wrap}body.integrated .local-note{flex-basis:100%;padding-left:10px;font-size:10px}body.integrated #viewport{padding-top:12px}}

body.integrated .brand-header,body.integrated .support-footer{display:none}body.integrated .editor-app{margin:0;max-width:none}body.integrated #viewport{min-height:330px;max-height:none}body.integrated .responsible{margin:12px 0}body.integrated .mobile-privacy{margin-bottom:12px}
