@charset "UTF-8";
:root{--ink:#293d32;--text:#354338;--muted:#8b9087;--line:#e7e8df;--paper:#fff;--bg:#f7f8f4;--green:#304b3a;--accent:#c56e4c;--accent-light:#f6e9e1;--serif:"Noto Serif TC","Songti TC","PMingLiU",serif;--sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;--preview-scale:.55}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .18s,color .18s,border-color .18s}button:focus-visible,a:focus-visible{outline:3px solid #bd956a;outline-offset:4px}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button svg,[data-icon] svg{width:18px;height:18px;display:block;flex-shrink:0}input,textarea,select{width:100%;border:1px solid #dedfd6;border-radius:7px;background:#fff;color:var(--text);padding:10px 12px;outline:none;transition:border-color .15s,box-shadow .15s;min-height:41px}input::placeholder,textarea::placeholder{color:#a3a69d;font-size:12px}input:focus,textarea:focus,select:focus{border-color:#8eaa91;box-shadow:0 0 0 3px #e9f0e7}input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#c56e4c}textarea{resize:vertical;line-height:1.7;min-height:83px}select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23757e71' stroke-width='1.7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-position:right 11px center;background-repeat:no-repeat}input[type=number]{font-variant-numeric:tabular-nums}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:11px}.brand-symbol{display:flex;align-items:center;justify-content:center;width:35px;height:35px;background:var(--green);color:#fff;border-radius:9px}.brand-symbol svg{width:23px;height:23px}.brand-name{font-family:var(--serif);font-size:24px;font-weight:600;letter-spacing:3px}.brand-en{font-size:10px;letter-spacing:2.2px;margin-left:6px;align-self:center;color:#6c756a;padding-left:14px;border-left:1px solid #dadfd4}.header-right{display:flex;align-items:center;gap:21px}.local-badge{font-size:11px;letter-spacing:.3px;color:#838b80;display:flex;align-items:center;gap:7px}.local-badge>span{width:5px;height:5px;border-radius:50%;background:#7d9575}.avatar{width:32px;height:32px;background:#eeeee5;border:1px solid #e0e2d7;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#69735e;font-family:var(--serif);font-size:15px}.icon-button{width:32px;height:32px;border:0;border-radius:5px;background:transparent;color:#838b7f;padding:7px}.icon-button:hover{background:#edf0e7;color:var(--green)}.icon-button.active{background:#e9eee4;color:#46613f}.icon-button.bordered{border:1px solid var(--line);height:41px;width:41px}.main{max-width:1424px;margin:0 auto;padding:34px 42px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#9a9d90;margin-bottom:11px}h1{font-family:var(--serif);font-size:29px;font-weight:600;letter-spacing:1px;color:var(--ink)}.page-heading p{font-size:12px;color:#93988d;letter-spacing:.3px;margin-top:10px}.spec-tag{display:flex;gap:12px;align-items:center;background:#eeeee6;border:1px solid #e4e5da;border-radius:8px;padding:12px 16px}.spec-tag>span{color:#89927a}.spec-tag svg{height:32px;width:27px}.spec-tag strong,.spec-tag div>span{display:block}.spec-tag strong{font-size:11px;letter-spacing:.8px;font-weight:500}.spec-tag div>span{font-size:11px;letter-spacing:1.5px;color:#8b9183;margin-top:5px}.workspace-tabs{display:flex;align-items:center;border-bottom:1px solid #dfe3d7;margin-bottom:24px;gap:25px}.workspace-tab{position:relative;height:48px;padding:0 5px 14px;border:0;background:none;color:#8d9588;font-size:12px;gap:8px}.workspace-tab svg{width:16px;height:16px}.workspace-tab.active{color:var(--ink);font-weight:600}.workspace-tab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:#496043;border-radius:3px 3px 0 0}.tab-dot{width:5px;height:5px;background:#c58d62;border-radius:50%;margin-left:0}.workspace-status{margin-left:auto;color:#97a08f;font-size:10px;display:flex;align-items:center;gap:5px;padding-bottom:13px}.workspace-status svg{height:13px;width:13px}.editor-layout{display:grid;grid-template-columns:368px minmax(0,1fr);gap:22px}.form-card,.preview-card{border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden}.form-tabs{height:56px;display:flex;border-bottom:1px solid var(--line);padding:0 22px;gap:19px}.form-tab{border:0;background:none;color:#92978c;font-size:12px;position:relative;flex:1;white-space:nowrap}.form-tab svg{height:15px;width:15px}.form-tab.active{color:var(--green);font-weight:600}.form-tab.active:after{content:"";height:2px;position:absolute;left:0;right:0;bottom:-1px;background:#52664a}.form-content{padding:24px 23px 22px}.form-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:8px}.form-section-title h2{font-size:14px;font-weight:600;letter-spacing:.4px}.text-button{border:0;background:none;color:#849079;padding:0;font-size:11px;gap:4px;white-space:nowrap}.text-button svg{width:14px;height:14px}.text-button:hover{color:#31573d}.field-label{display:block;font-size:11px;font-weight:500;margin-top:19px;margin-bottom:8px;letter-spacing:.4px}.form-section-title+.field-label{margin-top:0}.field-label>span{font-weight:400;color:#a1a799;font-size:10px;letter-spacing:0;margin-left:5px}.field-label>.required{color:#b2856b;font-size:9px}.two-fields{display:grid;grid-template-columns:minmax(0,1fr) 99px;gap:12px}.postcode-input{max-width:132px;font-family:var(--sans);letter-spacing:1px}.field-help{color:#a1a799;font-size:10px;line-height:1.5;margin-top:7px}.form-bottom-actions{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-bottom:23px;border-bottom:1px dashed #e6e8df}.muted{color:#a3a79c}.sample-hint{display:flex;align-items:center;gap:7px;color:#a0a390;font-size:10px;padding-top:18px;line-height:1.6}.sample-hint>span:first-child{color:#ba9d79}.sample-hint svg{width:14px;height:14px}.sample-hint .text-button{color:#a48361;font-size:10px;text-decoration:underline;text-underline-offset:3px;margin-left:4px}.secondary-button,.primary-button{border:1px solid #dfe3d8;border-radius:6px;min-height:40px;padding:10px 16px;font-size:12px;white-space:nowrap;background:white;color:var(--text)}.secondary-button:hover{background:#f3f5ee;border-color:#bbc5af}.secondary-button.small{font-size:10px;min-height:34px;padding:7px 10px;color:#6e7c62}.secondary-button.small svg{width:13px;height:13px}.primary-button{background:var(--accent);color:#fff;border-color:var(--accent);padding:12px 22px;box-shadow:0 3px 6px #ad6c4820;gap:10px}.primary-button:hover{background:#b35d3d;border-color:#b35d3d}.full{width:100%}.preview-toolbar{height:56px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 21px}.preview-title{display:flex;align-items:center;gap:8px}.preview-title h2{font-size:12px;font-weight:500}.live-dot{width:5px;height:5px;border-radius:50%;background:#718b63}.preview-size{font-size:9px;margin-left:8px;letter-spacing:1px;padding-left:15px;border-left:1px solid #dfe4d8;color:#a2a798}.preview-tools{display:flex;align-items:center;gap:5px}.toolbar-divider{height:14px;width:1px;background:#e2e5db;margin:0 5px}.preview-tools #zoom-value{color:#939a8d;font-size:10px;min-width:28px;text-align:center}.preview-tools .icon-button{width:26px;height:26px;padding:5px}.preview-tools svg{width:15px;height:15px}.preview-stage{height:570px;overflow:auto;display:flex;align-items:center;justify-content:center;background-color:#f2f3ee;background-image:radial-gradient(#dfe3d8 .7px,transparent .7px);background-size:14px 14px;padding:33px 42px 17px}.envelope-assembly{position:relative;flex-shrink:0;margin:13px 25px 12px 0}.envelope-wrap{width:calc(120mm * var(--preview-scale));height:calc(252mm * var(--preview-scale));filter:drop-shadow(2px 8px 9px #5d4b3023)}.envelope-paper{width:120mm;height:252mm;position:relative;background:#d9bb85;background-image:linear-gradient(100deg,#e5cca0 0%,#ddc18f 40%,#d5b47b 100%);transform:scale(var(--preview-scale));transform-origin:top left;border-radius:1mm;overflow:hidden;color:#302a22}.envelope-grain{position:absolute;inset:0;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23805f36' filter='url(%23n)' opacity='.65' d='M0 0h150v150H0z'/%3E%3C/svg%3E");pointer-events:none}.flap-line{position:absolute;top:22mm;left:0;right:0;border-top:1px solid #8f6f3e27}.flap-line:after{position:absolute;content:"";left:10mm;right:10mm;top:-22mm;height:22mm;border:1px solid #8f6f3e22;border-radius:0 0 7mm 7mm;border-top:0}.safe-guide{position:absolute;inset:32mm 10mm 10mm;border:1px dashed #7f683a52;display:none}.safe-guide>span{font-size:8px;position:absolute;bottom:3px;left:5px;letter-spacing:1px;color:#8f7448a0}.show-guides .safe-guide{display:block}.stamp-guide{position:absolute;left:11mm;top:33mm;width:22mm;height:28mm;display:flex;align-items:center;justify-content:center;border:1px dashed #896d3a63;color:#9b7e4a;font-size:12px;line-height:2;letter-spacing:2px}.empty-hint{position:absolute;left:10mm;right:10mm;top:90mm;text-align:center;display:flex;align-items:center;flex-direction:column;gap:5mm;color:#937644}.empty-hint>span:not(.empty-envelope-icon){font-family:var(--serif);font-size:14px;letter-spacing:1px}.empty-hint small{font-size:10px;color:#987d51;letter-spacing:.7px}.empty-envelope-icon{width:35px;height:35px;border:1px solid #aa8d554f;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1mm}.empty-envelope-icon svg{width:17px;height:17px}.envelope-mark{position:absolute;bottom:4mm;right:5mm;color:#a88954;font-size:9px;letter-spacing:1.5px}.dimension{position:absolute;color:#8d9686;font-size:9px;font-variant-numeric:tabular-nums;letter-spacing:1px}.dimension-top{left:0;right:0;top:-21px;border-top:1px solid #c8cebe;text-align:center}.dimension-top:before,.dimension-top:after{content:"";position:absolute;top:-4px;height:7px;border-left:1px solid #bfc7b7}.dimension-top:before{left:0}.dimension-top:after{right:0}.dimension-top>span{position:relative;top:-8px;background:#f2f3ee;padding:0 10px}.dimension-side{left:calc(100% + 21px);top:0;bottom:0;border-left:1px solid #c8cebe;width:1px;display:flex;align-items:center;justify-content:center}.dimension-side:before,.dimension-side:after{content:"";position:absolute;width:7px;left:-4px;border-top:1px solid #bfc7b7}.dimension-side:before{top:0}.dimension-side:after{bottom:0}.dimension-side>span{position:absolute;transform:rotate(90deg);white-space:nowrap;background:#f2f3ee;padding:0 10px}.preview-legend{display:flex;align-items:center;justify-content:center;gap:19px;background:#f2f3ee;border-bottom:1px solid var(--line);padding:12px 18px;color:#8f9986;font-size:9px;letter-spacing:.2px}.preview-legend>span{display:flex;align-items:center;gap:5px}.legend-line{width:13px;height:10px;border:1px dashed #a5ae98}.legend-text{font-size:12px;font-family:var(--serif);font-style:normal;color:#696c5e}.preview-only-note{margin-left:auto;font-size:9px;color:#a0a696}.layout-controls{display:flex;align-items:center;padding:18px 22px;gap:28px}.control-label{font-size:9px;letter-spacing:.6px;display:block;color:#a0a795;margin-bottom:8px}.segmented{display:flex;background:#f2f4ed;padding:3px;border-radius:5px;gap:2px}.segmented button{padding:5px 11px;border:0;background:none;border-radius:4px;font-size:10px;color:#98a18d;gap:5px}.segmented button.active{background:white;box-shadow:0 1px 3px #34442a15;color:#4c6140}.writing-symbol{font-family:var(--serif);font-size:11px}.font-control select{font-size:10px;min-height:31px;padding:5px 30px 5px 10px;max-width:125px;border-color:#e6e9de}.layout-hint{margin-left:auto;font-size:9px;color:#a6ad9e;display:flex;align-items:center;gap:5px}.layout-hint svg{height:12px;width:12px}.print-action-bar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:19px 23px;background:white;border:1px solid var(--line);border-radius:9px;gap:16px}.print-ready{display:flex;align-items:center;gap:13px}.ready-icon{width:38px;height:38px;background:#f1f3ec;border:1px solid #e9ecdf;color:#859279;border-radius:8px;display:flex;align-items:center;justify-content:center}.ready-icon svg{height:19px;width:19px}.print-ready strong{font-size:11px;font-weight:500;letter-spacing:.6px}.print-ready p{font-size:10px;color:#a1a795;margin-top:5px;line-height:1.5}.print-ready p.warning{color:#b26f4d}.print-action-buttons{display:flex;gap:11px}.print-action-buttons .primary-button{min-width:157px}.print-action-buttons .primary-button svg:last-child{width:14px;margin-left:8px}.footer{display:flex;justify-content:space-between;padding:28px 0;color:#a1a795;font-size:9px;letter-spacing:.7px}.footer-separator{margin:0 13px;color:#c0c6b7}.footer>span:last-child{display:flex;align-items:center;gap:5px}.footer svg{width:11px;height:11px}.section-description{font-size:11px;color:#8d9786;line-height:1.9;margin-bottom:14px}.switch-row{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:24px;font-size:11px;cursor:pointer}.switch-row input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.switch{position:relative;width:32px;height:19px;border-radius:20px;background:#d4dbc9;flex-shrink:0}.switch:after{content:"";position:absolute;width:15px;height:15px;border-radius:50%;background:white;top:2px;left:2px;transition:transform .2s}.switch-row input:checked+.switch{background:#627d51}.switch-row input:checked+.switch:after{transform:translateX(13px)}.switch-row input:focus-visible+.switch{outline:3px solid #bd956a}.inline-note{background:#f5f6ef;border:1px solid #e9ecdf;border-radius:6px;padding:12px;display:flex;align-items:flex-start;gap:8px;margin-top:23px;color:#929b86}.inline-note svg{width:13px;height:13px;margin-top:2px}.inline-note p{font-size:10px;line-height:1.9}.calibration-intro{text-align:center;padding:21px 0 33px}.section-kicker{font-size:9px;letter-spacing:2px;color:#a2a791}.calibration-intro h2{font-family:var(--serif);font-size:27px;letter-spacing:1px;margin:14px 0 12px;font-weight:500}.calibration-intro p{font-size:12px;color:#929b89;line-height:1.8}.calibration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.settings-card{padding:25px;background:white;border:1px solid var(--line);border-radius:10px}.step-heading{display:flex;align-items:center;gap:11px;margin-bottom:16px}.step-heading>span{background:#f0f2e8;color:#8c987c;width:31px;height:31px;border:1px solid #e5e8da;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:11px;font-family:Georgia,serif}.step-heading h3{font-weight:500;font-size:14px;letter-spacing:.5px}.profile-row{display:flex;gap:8px}.profile-row select{flex:1;min-width:0}.calibration-grid .two-fields{grid-template-columns:1fr 1fr;gap:10px}.calibration-diagram{display:flex;align-items:center;justify-content:center;gap:22px;background:#f6f5ef;border-radius:6px;padding:15px;margin-bottom:16px}.mini-envelope{height:160px;width:76px;background:#dfc391;position:relative;border:1px solid #cfb584;box-shadow:2px 3px 4px #7d643b14;flex-shrink:0}.mini-cross{position:absolute;left:12.5%;top:16.6667%;transform:translate(-50%,-50%);font-size:16px;font-weight:300;color:#705836}.mini-x{position:absolute;left:1px;top:-7px;font-size:7px;color:#937d55;transform:translateY(-4px);white-space:nowrap}.mini-y{position:absolute;left:-24px;top:4px;font-size:7px;color:#937d55}.mini-bottom{position:absolute;bottom:7px;width:100%;text-align:center;font-size:7px;color:#ac8a51;letter-spacing:.5px}.calibration-diagram strong{font-size:10px;font-weight:500}.calibration-diagram p{font-size:10px;line-height:2.3;color:#8e967f;margin:8px 0}.calibration-diagram b{font-weight:500;color:#59654a}.mini-note{font-size:8px;color:#a6ad97}.calculate-button{margin-top:17px;min-height:30px}.stepper{display:flex;border:1px solid #dfe3d7;border-radius:6px;overflow:hidden;align-items:center;height:44px}.stepper button{height:44px;width:42px;border:0;background:#f7f8f3;color:#829373;flex-shrink:0}.stepper button:hover{background:#e7ecdf}.stepper input{border:0;text-align:center;box-shadow:none;height:42px;border-radius:0;padding:0 6px}.stepper input::-webkit-inner-spin-button{appearance:none}.calibration-result{display:flex;align-items:center;gap:10px;padding:16px 12px;background:#f3f5ed;border:1px solid #e7ebdc;border-radius:6px;margin:23px 0 20px;color:#80906f}.calibration-result strong{font-size:10px;font-weight:500}.calibration-result p{font-size:9px;line-height:1.7;margin-top:5px;color:#9da78e}.reset-calibration{width:100%;margin-top:17px}.paper-settings-note{display:flex;gap:12px;align-items:flex-start;margin-top:22px;background:#f0f1e8;border:1px solid #e4e7d9;padding:21px;border-radius:8px;color:#899678}.paper-settings-note>span{padding-top:2px}.paper-settings-note strong{font-size:11px;font-weight:500;color:#677757}.paper-settings-note p{font-size:10px;line-height:1.9;margin-top:6px;color:#97a089;max-width:750px}.paper-settings-note .text-button{margin-left:auto;align-self:center}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.guide-card{border:1px solid var(--line);border-radius:8px;background:white;padding:28px}.guide-number{font-size:9px;letter-spacing:1.8px;color:#b19778}.guide-card h3{font-family:var(--serif);font-size:19px;font-weight:500;margin:18px 0 13px}.guide-card p,.guide-details p{font-size:12px;line-height:2;color:#8b9681}.guide-details{display:grid;grid-template-columns:1.6fr 1fr;gap:65px;padding:40px 10px}.guide-details h3{font-size:13px;font-weight:500;margin-bottom:10px}.guide-details h3:not(:first-child){margin-top:23px}.data-tools{padding:24px;background:#eeefe6;border-radius:8px}.data-tools p{font-size:10px;margin-bottom:18px}.data-tools .secondary-button{margin-top:10px}.danger{color:#b27a67;display:flex;margin:20px auto 0}dialog{border:1px solid #e2e5d7;border-radius:13px;box-shadow:0 20px 100px #29332a28;padding:28px;width:480px;max-width:calc(100vw - 30px);max-height:85vh;color:var(--text);background:#fff}dialog::backdrop{background:#25372e55;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:18px}.dialog-header .eyebrow{margin-bottom:7px}.dialog-header h2{font-family:var(--serif);font-size:23px;font-weight:500;letter-spacing:.8px}dialog>p{font-size:12px;color:#8c9784;line-height:1.9}.dialog-footnote{font-size:10px!important;color:#9ca491!important;text-align:center;margin-top:17px}.contact-item{border:1px solid var(--line);padding:15px;margin-bottom:9px;border-radius:7px;display:flex;align-items:center;gap:11px}.contact-item>div{flex:1;min-width:0}.contact-item h3{font-size:13px;font-weight:500}.contact-item p{font-size:10px;color:#98a08c;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.contact-item .text-button{color:#7b8c68}.empty-contacts{text-align:center;padding:30px 10px;color:#99a48f;line-height:2;font-size:12px}.print-checklist{list-style:none;padding:0;margin:23px 0}.print-checklist li{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid var(--line)}.print-checklist li>span{font-family:Georgia,serif;font-size:16px;color:#ba9b76;padding-top:2px}.print-checklist strong{font-size:12px;font-weight:500}.print-checklist p{font-size:10px;color:#9aa38e;margin-top:6px;line-height:1.6}.print-profile-note{margin-bottom:18px;padding:10px;background:#f1f4e9;border-radius:5px;color:#7a8a68;font-size:10px}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#304936;color:#fff;padding:13px 22px;border-radius:7px;box-shadow:0 6px 30px #25362a25;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw;line-height:1.6}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#98634a}.print-content{position:absolute;inset:0;transform-origin:center}.content-inner{position:absolute;inset:0}.text-block{position:absolute;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line;line-height:1.65;font-weight:500}.envelope-font-serif{font-family:var(--serif)}.envelope-font-sans{font-family:var(--sans)}.vertical-text{writing-mode:vertical-rl;text-orientation:upright;text-combine-upright:none;letter-spacing:.6mm;line-height:1.7}.recipient-name-text{letter-spacing:1mm}.salutation{font-size:.65em;margin-top:5mm;letter-spacing:.6mm;font-weight:400}.horizontal-text .salutation{margin-top:0;margin-left:3mm}.postcode-block{letter-spacing:1.5mm;white-space:nowrap;overflow:visible}.sender-phone{font-family:var(--sans);letter-spacing:.1mm}.fit-error .safe-guide{border-color:#bb604e}.fit-error .safe-guide>span{color:#a44934}.empty-postcode{border:1px solid #8d754c5c;width:6mm;height:7mm;display:inline-block;margin-right:1mm}.print-page{position:relative;width:120mm;height:252mm;margin:0;background:white;color:#000;overflow:hidden}.print-page .text-block{color:#000}.cal-cross{position:absolute;width:6mm;height:6mm}.cal-cross:before,.cal-cross:after{content:"";position:absolute;background:#000}.cal-cross:before{height:.2mm;width:6mm;left:0;top:calc(3mm - .1mm)}.cal-cross:after{height:6mm;width:.2mm;top:0;left:calc(3mm - .1mm)}.cal-label{position:absolute;font-family:var(--sans);font-size:8pt;line-height:1.7}.cal-line{position:absolute;width:50mm;height:.2mm;background:#000}.cal-line:before,.cal-line:after{content:"";position:absolute;height:3mm;width:.2mm;background:#000;top:-1.4mm}.cal-line:before{left:0}.cal-line:after{right:0}#print-root{display:none}

.recipient-mode-control{display:flex;gap:4px;background:#f2f4ed;padding:4px;border:1px solid #e7eadf;border-radius:7px}.recipient-mode-control button{flex:1;min-width:0;min-height:35px;border:0;border-radius:5px;background:transparent;color:#8a9680;font-size:11px;gap:6px;padding:6px 8px;white-space:nowrap}.recipient-mode-control button.active{background:#fff;color:#3e5b37;box-shadow:0 1px 4px #34442a12}.recipient-mode-control button svg{width:14px;height:14px}.mode-token{font-size:9px;letter-spacing:.5px;opacity:.65}.mode-description{font-size:10px;color:#95a08a;line-height:1.7;margin:10px 0 19px}#recipient-company-field>.field-label{margin-top:0}

.flap-zone{position:absolute;left:0;right:0;top:0;height:22mm;display:flex;justify-content:center;align-items:center;background:repeating-linear-gradient(135deg,#967a4511 0,#967a4511 1px,transparent 1px,transparent 8px);color:#8b6e40;font-size:16px;letter-spacing:.4px}.flap-zone span{padding:5px 11px;border:1px solid #a58a5c40;border-radius:4px;background:#dfc28f99}.typography-panel{border-top:1px solid var(--line);padding:18px 22px;background:#fdfefb}.typography-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.typography-heading h3{font-size:11px;letter-spacing:.5px;font-weight:500}.typography-row{display:grid;grid-template-columns:minmax(0,1fr) 124px;gap:13px;max-width:430px}.typography-row select{min-height:37px;font-size:11px;padding-top:8px;padding-bottom:8px}.font-size-stepper,.font-size-stepper button{height:37px}.font-size-stepper button{width:31px}.font-size-stepper button svg{width:14px;height:14px}.font-size-stepper input{height:35px;min-height:0;font-size:12px;min-width:0}.auto-fit-option{display:flex;align-items:center;gap:7px;font-size:10px;color:#819172;margin-top:13px;cursor:pointer}.auto-fit-option input{width:13px;height:13px;min-height:0;margin:0;accent-color:#627d51}.font-size-hint{font-size:10px;line-height:1.7;color:#97a28b;margin-top:9px}.paper-format-hint{font-size:9px;line-height:1.7;color:#a3ab96;margin-top:8px;padding-top:9px;border-top:1px dashed #e7eadf}

.position-panel{border-top:1px solid var(--line);padding:18px 22px;background:#f9fbf6}.position-panel .typography-heading h3>span{font-size:9px;font-weight:400;color:#a0aa92;margin-left:8px}.position-target-row{max-width:430px;margin-bottom:13px}.position-target-row select{font-size:11px;min-height:37px;padding-top:8px;padding-bottom:8px}.position-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;max-width:430px}.position-fields input{font-size:12px;min-height:37px;padding:8px 11px}.position-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:13px;max-width:530px}.position-step-control{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;color:#8a987d}.position-step-control select{width:86px;min-height:33px;font-size:10px;padding:5px 24px 5px 8px;background-position:right 7px center}.nudge-controls{display:flex;gap:4px}.nudge-controls button{width:31px;height:33px;border:1px solid #dfe5d5;border-radius:5px;background:white;color:#6c825b;font-size:16px;padding:0}.nudge-controls button:hover{background:#eaf0e2}.position-actions>.text-button{margin-left:auto}.position-help{font-size:10px;line-height:1.8;margin-top:9px;color:#9aa58f}.position-fields input:disabled{color:#aab29f;background:#f0f3e9}.position-editing .text-block{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;outline:1px dashed #9b7c4b80;outline-offset:-1px}.position-editing .text-block.is-selected{outline:3px solid #c56e4c;background:#c56e4c12}.position-dragging .text-block{cursor:grabbing}#preview-content:focus{outline:none}#preview-envelope.position-editing:focus-within .safe-guide{border-color:#c18a60}#print-root .text-block{outline:none!important;background:none!important}

.vertical-phone{font-family:var(--sans);line-height:1.25;letter-spacing:.3mm;text-orientation:upright;text-combine-upright:none}.frame-size-controls{margin-top:15px;padding-top:13px;border-top:1px dashed #e0e7d7}.frame-size-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#7d8d6f;margin-bottom:10px}.frame-size-controls .position-help{font-size:9px}.frame-size-controls+.position-actions{margin-top:14px}
@media(min-width:1400px){.main{padding-top:38px}.page-heading{margin-bottom:34px}.editor-layout{grid-template-columns:385px minmax(0,1fr)}.form-content{padding:26px}.form-tabs{padding:0 26px;gap:23px}}
@media(max-width:1100px){.main{padding:27px 25px 0}.topbar{padding:0 25px}.editor-layout{grid-template-columns:335px minmax(0,1fr);gap:17px}.form-content{padding:23px 20px}.form-tabs{padding:0 15px;gap:11px}.preview-toolbar{padding:0 14px}.preview-size{display:none}.layout-controls{gap:15px;padding:18px 16px}.layout-hint{display:none}.preview-only-note{font-size:8px}.preview-legend{gap:11px}.calibration-grid{gap:13px}.settings-card{padding:20px}.calibration-diagram{gap:18px;padding:14px 8px}.calibration-diagram strong{font-size:9px}}
@media(max-width:850px){.main{padding:23px 20px 0}.topbar{height:66px;padding:0 20px}.brand-en{font-size:9px}.local-badge{display:none}h1{font-size:25px}.page-heading p{font-size:11px}.spec-tag{padding:10px}.spec-tag strong{font-size:9px}.spec-tag div>span{font-size:9px}.spec-tag svg{width:22px;height:28px}.editor-layout{grid-template-columns:310px minmax(0,1fr);gap:14px}.form-content{padding:21px 18px}.form-tabs{padding:0 12px;gap:8px}.form-tab{font-size:11px;gap:5px}.form-section-title h2{font-size:12px}.form-section-title .text-button{font-size:9px}.preview-stage{padding:33px 25px 17px}.preview-title h2{font-size:11px}.preview-tools{gap:1px}.preview-tools .toolbar-divider{margin:0 3px}.preview-legend>span:nth-child(2){display:none}.layout-controls{gap:14px;padding:16px 12px}.segmented button{padding:6px 9px}.print-action-bar{padding:16px}.print-ready strong{font-size:10px}.print-ready p{font-size:9px}.print-action-buttons{gap:7px}.print-action-buttons button{padding:11px 13px}.print-action-buttons .primary-button{min-width:130px}.calibration-grid{grid-template-columns:1fr}.settings-card{padding:24px}.calibration-diagram{justify-content:flex-start;padding-left:40px}.guide-grid{grid-template-columns:1fr;gap:14px}.guide-card{padding:24px}.guide-details{gap:30px}.paper-settings-note{flex-wrap:wrap}.paper-settings-note .text-button{margin-left:30px}.footer{letter-spacing:0;font-size:8px}}
@media(max-width:680px){.main{padding:23px 16px 0}.topbar{padding:0 16px}.header-right{gap:10px}.brand-name{font-size:22px}.brand-en{letter-spacing:1.5px}.page-heading{align-items:flex-start;gap:15px;margin-bottom:21px}.page-heading h1{font-size:23px;letter-spacing:.4px}.page-heading p{max-width:235px;line-height:1.9;font-size:11px}.eyebrow{font-size:8px;letter-spacing:1.5px}.spec-tag{padding:8px;border-radius:7px;gap:5px;align-items:flex-start;margin-top:24px}.spec-tag>span{display:none}.spec-tag strong{font-size:8px;white-space:nowrap;letter-spacing:0}.spec-tag div>span{font-size:8px;letter-spacing:.5px}.workspace-tabs{gap:21px;margin-bottom:16px}.workspace-tab{font-size:11px;gap:6px;height:43px}.workspace-status{display:none}.editor-layout{grid-template-columns:1fr;gap:16px}.form-tabs{padding:0 22px;gap:30px}.form-tab{font-size:12px}.form-content{padding:23px}.form-section-title h2{font-size:14px}.form-section-title .text-button{font-size:11px}.preview-toolbar{padding:0 20px}.preview-title h2{font-size:12px}.preview-size{display:block;font-size:8px}.preview-stage{height:570px;padding:33px 30px 17px}.preview-legend>span:nth-child(2){display:flex}.preview-only-note{font-size:8px}.layout-controls{padding:18px 23px;gap:26px}.print-action-bar{flex-direction:column;align-items:stretch;padding:18px;gap:17px}.print-ready strong{font-size:11px}.print-ready p{font-size:10px}.print-action-buttons{justify-content:stretch;gap:10px}.print-action-buttons .primary-button{flex:1}.print-action-buttons button{min-height:44px}.footer{align-items:center;gap:12px;font-size:8px;line-height:1.8;padding:24px 0}.footer>span:first-child{max-width:200px}.footer-separator{margin:0 5px}.calibration-intro{padding:19px 5px 27px}.calibration-intro h2{font-size:25px}.calibration-intro p{font-size:11px}.calibration-grid{gap:16px}.guide-details{grid-template-columns:1fr;padding:28px 3px;gap:23px}.section-kicker{font-size:8px;letter-spacing:1.5px}.paper-settings-note{padding:17px}.paper-settings-note p{font-size:10px}.toast{width:max-content;max-width:calc(100vw - 32px);font-size:11px;bottom:18px}.dialog-header h2{font-size:21px}dialog{padding:23px}.contact-item{gap:7px;padding:12px}.contact-item .text-button{font-size:10px}}
@page{size:120mm 252mm;margin:0}
@media print{html,body{width:120mm!important;height:252mm!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:hidden!important}.app-shell,dialog,.toast{display:none!important}#print-root{display:block!important;width:120mm!important;height:252mm!important;margin:0!important;padding:0!important}.print-page{width:120mm!important;height:252mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;break-inside:avoid;page-break-inside:avoid}.preview-only{display:none!important}.text-block{color:#000!important}.print-content{margin:0!important}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.boxed-postcode{display:flex;justify-content:flex-end;align-items:center;direction:ltr;writing-mode:horizontal-tb;text-align:right;letter-spacing:0;line-height:1;overflow:hidden}.postcode-row{display:flex;flex:none;direction:ltr;align-items:center;width:max-content;height:9mm;letter-spacing:0}.postcode-cell{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 6mm;width:6mm;height:9mm;margin-right:1mm;line-height:1;font-variant-numeric:tabular-nums}.postcode-cell:last-child{margin-right:0}.postcode-cell.postcode-group-end{margin-right:9mm}.show-guides .postcode-cell:before{content:"";position:absolute;inset:0;border:.2mm solid #8d754c70;pointer-events:none}.show-guides .postcode-group-end:after{content:"";position:absolute;left:100%;top:50%;width:9mm;border-top:.2mm solid #8d754c70;pointer-events:none}@media print{.postcode-cell:before,.postcode-group-end:after{display:none!important}}

.sender-postcode{justify-content:flex-start;text-align:left}.sender-postcode .postcode-row{height:6mm}.sender-postcode .postcode-cell{flex-basis:4mm;width:4mm;height:6mm}.sender-postcode .postcode-group-end{margin-right:3mm}.show-guides .sender-postcode .postcode-group-end:after{width:3mm}

/* Keep preview beside editing controls while each side can scroll independently. */
@media screen and (min-width:701px){
.main{max-width:1680px;padding-left:24px;padding-right:24px}.editor-layout{grid-template-columns:270px minmax(300px,1fr) 320px;gap:18px;align-items:start}.form-card{min-width:0}.form-content{padding:20px 17px}.form-tabs{padding:0 13px;gap:8px}.form-tab{font-size:11px;gap:5px}.form-section-title{flex-wrap:wrap}.preview-card{position:sticky;top:16px;min-width:0}.preview-toolbar{padding:0 16px}.preview-stage{height:570px;padding:30px 28px 16px}.preview-size{display:none}.preview-legend{padding-left:15px;padding-right:15px;gap:10px}.preview-only-note{font-size:8px}.adjustment-card{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:11px;background:#fff;min-width:0}.adjustment-title{padding:15px 16px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.adjustment-title h2{font-size:13px;font-weight:600}.adjustment-title>span{font-size:9px;color:#8a987f}.adjustment-card .layout-controls{padding:13px 15px;gap:14px;flex-wrap:wrap}.adjustment-card .layout-hint{display:none}.adjustment-card .position-panel,.adjustment-card .typography-panel{padding:15px}.adjustment-card .typography-heading{gap:8px;margin-bottom:12px;flex-wrap:wrap}.adjustment-card .typography-heading h3>span{display:block;margin:4px 0 0}.adjustment-card .typography-row{grid-template-columns:minmax(0,1fr) 116px;gap:9px}.adjustment-card .position-fields{gap:10px}.adjustment-card .control-label{font-size:10px;letter-spacing:0}.adjustment-card .position-actions{gap:9px}.adjustment-card .position-actions>.text-button{margin-left:0}.adjustment-card .paper-format-hint{display:none}.adjustment-card .font-size-hint{font-size:10px;color:#7c8b71}.adjustment-card .position-help{font-size:9px}.adjustment-card .frame-size-heading{font-size:10px}.adjustment-card .text-button{font-size:10px}.adjustment-card .nudge-controls{gap:3px}.adjustment-card .nudge-controls button{width:28px}.adjustment-card .position-step-control select{width:79px}.print-action-bar{grid-column:1/-1}
}
@media screen and (min-width:701px) and (max-width:960px){.editor-layout{grid-template-columns:minmax(300px,1fr) 304px;gap:14px}.form-card{grid-column:1/-1;max-height:330px;overflow-y:auto}.form-content{padding:20px}.preview-stage{padding-left:15px;padding-right:15px}.preview-only-note{display:none}}
@media screen and (max-width:700px){.adjustment-card{border:1px solid var(--line);border-radius:11px;background:white;overflow:hidden}.adjustment-title{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.adjustment-title h2{font-size:13px}.adjustment-title>span{font-size:10px;color:#8a987f}.adjustment-card .layout-hint{display:none}}
