*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:#f4f6f9;color:#172c46;font:400 1rem/1.55 Inter,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #439cef;outline-offset:2px}.wrap{width:min(1456px,94%);margin:auto}header{background:white;border-bottom:1px solid #dce2e9}.top{height:72px;display:flex;align-items:center;gap:clamp(22px,5vw,80px)}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#122c48;white-space:nowrap}.brand img{width:38px;height:38px}.brand b{font-size:23px;letter-spacing:.04em}.brand span{font-size:18px;letter-spacing:-.06em;font-weight:650}nav,.buttons,.actions,.status,.cardhead,.precontrols,.section-title,.row,.dhead{display:flex;align-items:center}nav{align-self:stretch;gap:12px}nav button,.tabs button{border:0;background:none;display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:#617080}nav button{position:relative;padding:0 11px}nav button.on{color:#1d5793}nav button.on:after{position:absolute;bottom:0;left:8px;right:8px;height:3px;background:#2869a8;content:""}.workspace{margin-left:auto;font-size:14px;font-weight:600;white-space:nowrap}.workspace span{display:inline-grid;place-items:center;border-radius:50%;background:#e1ebf7;color:#204872;width:30px;height:30px;margin-right:9px}svg.ico{width:18px;height:18px;display:inline-block;flex:none}#symbols{position:absolute;width:0;height:0}.hero{margin-top:24px;background:linear-gradient(105deg,#152f4e 10%,#20405f 72%,#264d70);color:white;position:relative;overflow:hidden;border-radius:14px;padding:26px 34px;display:flex;align-items:center;min-height:158px}.hero>div{position:relative;z-index:1}.kicker{font:600 11px/1.3 Inter,Arial,sans-serif;letter-spacing:.18em;color:#b8d3ef;display:flex;align-items:center;gap:9px}.kicker em{width:24px;border-top:2px solid #81b9e6}.hero h1{font-size:clamp(30px,2.8vw,43px);line-height:1.2;letter-spacing:.05em;margin:10px 0 7px}.hero p{margin:0;color:#d8e5f2;font-size:15px}.hero img{position:absolute;right:3%;height:113%;width:40%;object-fit:contain}.actions{justify-content:space-between;gap:12px;padding:19px 0}.buttons,.status{gap:10px}.draft,.save-status{display:inline-flex;align-items:center;gap:7px;font-size:13px}.draft{padding:3px 10px;background:#e5ebf3;color:#415b79;border:1px solid #d4deea;border-radius:20px;font-weight:650}.draft i{background:#647d9b;width:6px;height:6px;border-radius:50%}.save-status{color:#576a7b}.save-status svg{color:#537969}.btn,.iconbtn,.mini{border:1px solid #d1dbe6;border-radius:7px;background:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600}.btn{padding:9px 15px;font-size:14px;min-height:41px}.primary{background:#205b98;border-color:#205b98;color:white}.btn:hover,.mini:hover,.iconbtn:hover{filter:brightness(.96)}.columns{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:22px;align-items:start;padding-bottom:32px}.card{background:white;border:1px solid #d8e0e8;border-radius:13px;overflow:hidden;box-shadow:0 2px 5px #17365306}.cardhead{padding:17px 22px;gap:10px;border-bottom:1px solid #e0e6ed;height:65px}.headicon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:#245c94;background:#e9f0f8}.cardhead h2,.dhead h2{margin:0;font-size:19px}.tabs{display:flex;margin:0 22px;border-bottom:1px solid #dde4eb;gap:22px}.tabs button{padding:14px 3px 11px;border-bottom:3px solid transparent}.tabs button.on{color:#235e99;border-color:#3478b6}.block{padding:23px 24px}.block+.block{border-top:1px solid #e3e8ed}.section-title{gap:9px;margin:0 0 16px;font-size:16px;letter-spacing:.025em}.section-title svg{color:#55789a}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wide{grid-column:1/-1}label{display:grid;gap:5px;color:#4c6076;font-size:14px;font-weight:550;min-width:0}input,textarea,select{width:100%;min-width:0;border:1px solid #cdd7e2;border-radius:6px;padding:9px 10px;color:#1b3047;background:#fff;line-height:1.45;font-size:15px}input:focus,textarea:focus,select:focus{outline:2px solid #91b9df;outline-offset:1px}textarea{resize:vertical}select{appearance:none;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23517191'/%3E%3C/svg%3E") no-repeat right 10px center/16px;padding-right:32px}.precontrols{margin-left:auto;gap:12px;color:#596c7e;font-size:13px}.iconbtn{width:32px;height:32px}.iconbtn .ico{width:16px}.canvas{background-color:#eaf0f5;background-image:radial-gradient(#b7c6d6 .8px,transparent .9px);background-size:13px 13px;padding:25px clamp(16px,3.1vw,56px) 34px}.sheet{background:#fff;box-shadow:0 3px 11px #243c5320;border:1px solid #d0d9e2;container-type:inline-size;min-width:0;overflow-wrap:anywhere}.doc{min-height:139cqw;display:flex;flex-direction:column;font-size:2.8cqw;color:#21364b}.docbanner{position:relative;isolation:isolate;overflow:hidden;background:#183652;color:white;padding:5.4cqw 6.3cqw 5cqw}.docbanner:after{content:"";position:absolute;z-index:-1;inset:0 0 0 48%;background:repeating-linear-gradient(135deg,transparent 0 10px,#94b6d12b 10px 11px,transparent 11px 18px);clip-path:polygon(42% 0,100% 0,100% 100%,0 100%)}.docbanner small{font:600 2.2cqw/1.4 Arial,sans-serif;letter-spacing:.2em;color:#bfd6e8}.docbanner h3{font-size:6.6cqw;letter-spacing:.09em;margin:.8cqw 0;line-height:1.3}.docbanner span{font-size:2.5cqw;letter-spacing:.08em;color:#d7e4ef}.docmain{padding:5.7cqw 6.3cqw 3cqw}.parties{display:grid;grid-template-columns:1fr 1fr;gap:4cqw}.doclabel{display:block;color:#6386a8;font:600 2.25cqw/1.5 Arial,sans-serif;letter-spacing:.1em}.parties b{display:block;font-size:3.25cqw;margin:.8cqw 0}.parties small,.line-note{display:block;color:#617080;font-size:2.5cqw;white-space:pre-line}.dates{margin:4.4cqw 0 3cqw;border-top:1px solid #dce4eb;padding-top:2.5cqw;display:flex;justify-content:space-between;gap:2cqw;color:#51657a;font-size:2.45cqw}.project{font-weight:700;margin-bottom:2cqw;font-size:3.05cqw}.doc table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:2.6cqw}.doc th,.doc td{text-align:right;padding:2cqw 1cqw;border-bottom:1px solid #e1e7ed;vertical-align:top}.doc th{background:#edf2f7;color:#46617c;font-weight:600}.doc th:first-child,.doc td:first-child{text-align:left;width:49%;padding-left:2cqw}.doc th:nth-child(2){width:11%}.doc td:first-child{font-weight:600}.doc .line-note{font-size:2.15cqw;font-weight:400;margin-top:.5cqw}.sums{margin:3cqw 0 0 auto;width:58%;font-size:2.65cqw}.sumrow,.grand{display:flex;justify-content:space-between;gap:8px}.sumrow{padding:.5cqw 0}.grand{margin-top:2cqw;padding:2.8cqw 3cqw;background:#eaf1f7;color:#193d60;font-weight:700;align-items:center}.grand strong{font-size:4.4cqw}.notes{font-size:2.55cqw;color:#566a7c;margin-top:4cqw;white-space:pre-wrap}.notes b{color:#233f5b}.signature{margin-top:5cqw;color:#617487}.docfoot{margin:auto 6.3cqw 0;padding:2.6cqw 0;border-top:1px solid #d8e0e8;display:flex;justify-content:space-between;gap:2cqw;font-size:2.1cqw;color:#73859a}.itembox{background:#f8fafc;border:1px solid #dbe4ee;padding:14px;border-radius:8px;margin:0 0 12px}.row{gap:8px;flex-wrap:wrap}.row.between,.dhead{justify-content:space-between}.itembox .row{margin-bottom:9px}.mini{padding:5px 9px;font-size:13px}.secondary{padding:24px;margin:22px 0}.record{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #dce4ec;padding:17px 0}.record p{margin:3px 0 0;color:#607284;font-size:14px}.record strong{overflow-wrap:anywhere}.record .row{justify-content:flex-end}.dhead{gap:10px;padding-bottom:12px}.muted{color:#62768a;font-size:14px}.empty{padding:22px 0}.switch{display:flex;align-items:center;gap:9px}.switch input{width:auto}dialog{border:1px solid #cad6e3;box-shadow:0 20px 64px #182c4945;border-radius:14px;width:min(510px,93vw);padding:24px;max-height:91dvh;color:#19334f}dialog::backdrop{background:#10283f75}dialog.zoom{width:min(720px,96vw);background:#edf2f7}dialog .grid{margin:12px 0 18px}.option{display:flex;align-items:center;gap:12px;width:100%;padding:15px;margin:8px 0;text-align:left;background:#f7f9fc;border:1px solid #dce4ee;border-radius:8px}.option:hover{background:#eaf2fb}.option span{display:grid}.option small{color:#586e82}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#142e4c;color:white;border-radius:8px;padding:9px 17px;box-shadow:0 4px 16px #152c4729;z-index:20;font-size:14px}#toast:empty{display:none}[hidden]{display:none!important}
@media(min-width:1550px){.hero{min-height:180px}}@media(max-width:960px){.workspace{display:none}.columns{gap:12px;grid-template-columns:1fr 1fr}.block{padding:17px}.canvas{padding:16px 12px}.tabs{gap:13px}.hero img{right:0;width:45%}}
@media(max-width:760px){.wrap{width:calc(100% - 28px)}.top{height:auto;flex-wrap:wrap;padding-top:11px;gap:5px}.brand img{width:31px;height:31px}.brand b{font-size:20px}.brand span{font-size:16px}nav{order:2;width:100%;justify-content:space-between;gap:0}nav button{padding:10px 5px}.workspace{display:block;font-size:12px}.workspace span{width:24px;height:24px}.columns{grid-template-columns:1fr}.hero{margin-top:15px;padding:20px;min-height:138px}.hero img{right:-13%;width:55%;opacity:.52}.hero p{max-width:75%;font-size:14px}.hero h1{font-size:29px}.buttons{gap:6px}.btn{padding:8px 10px}.actions{padding:13px 0}.save-status span{display:none}.canvas{padding:17px 6%}.tabs{justify-content:space-between}.record{align-items:flex-start;flex-wrap:wrap}.secondary{padding:15px}.grid{gap:12px}.precontrols{gap:7px}}
@page{size:A4;margin:13mm}@media print{body,main.wrap{margin:0!important;padding:0!important;width:100%!important;background:white}header,.hero,.actions,.editor,.preview>.cardhead,#secondary,dialog,#toast{display:none!important}#editor,.columns,.preview,.canvas,#paper,.sheet,.doc{display:block!important;border:0!important;box-shadow:none!important;background:white;padding:0;margin:0;overflow:visible}.sheet{container-type:normal}.doc{min-height:0;font-size:11pt}.docbanner,.grand,th{-webkit-print-color-adjust:exact;print-color-adjust:exact}tr,.parties,.sums,.grand,.signature{break-inside:avoid}.docfoot{margin-top:12mm}.docbanner{padding:8mm 10mm}.docmain{padding:8mm 10mm}.docbanner h3{font-size:28pt}.doc table{font-size:10pt}.doc tr{page-break-inside:avoid}}
nav button{align-self:stretch}.mobile-preview{display:none}@media(max-width:760px){.mobile-preview{display:block;margin:0 0 12px}.mobile-preview button{width:100%}}@media print{.mobile-preview{display:none!important}}
.workspace.account{display:flex;gap:12px;align-items:center}.account a,.discussion a,.plan-card a{text-decoration:none}.plan-btn{border:0;border-radius:6px;background:#eaf1fb;color:#24568b;font-size:14px;font-weight:700;padding:9px 12px}.discussion{margin:0 0 18px}.discussion-body{padding:2px 23px 22px}.discussion-body>.muted{margin:17px 0}.comment-login,.plan-card,.comment-fields{padding:17px;border:1px solid #d9e3ed;background:#f6f9fc;border-radius:8px}.comment-login{display:flex;justify-content:space-between;gap:12px;align-items:center}.comment-login span{display:grid;gap:3px}.comment-login small,.comment small{color:#5a6e81}.comment-fields{display:grid;gap:12px;margin-bottom:10px}.comment-fields input{max-width:300px}.comment{border-top:1px solid #e0e7ee;padding:14px 0}.comment small{margin-left:10px}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.empty-comments{font-size:14px;color:#5a6e81;margin:20px 0 0}.plan-card{margin:10px 0}.plan-card b{font-size:15px;color:#45637d}.plan-card strong{display:block;margin-top:3px;font-size:22px}.plan-card p{font-size:15px}.plan-card.premium{border-color:#aac4e0;background:#edf4fb}.benefit{color:#23644d;font-weight:700}footer{text-align:center;color:#5d7287;font-size:13px;padding:7px 0 22px}.discussion{scroll-margin-top:20px}#comment-list{margin-top:16px}
@media(max-width:760px){.account{order:1}.workspace.account{gap:5px}.account .btn,.plan-btn{font-size:13px;padding:5px 9px;min-height:33px}.top nav{order:3}.cloud-btn{font-size:13px}.actions{flex-wrap:wrap}.discussion-body{padding:1px 15px 16px}.comment-login{align-items:flex-start}.comment-login a{white-space:nowrap}.status{gap:4px}}
@media print{.discussion,footer{display:none!important}}
.export-file{padding:10px 0}.export-file img{display:block;width:100%;height:auto;margin:14px 0;border:1px solid #cfdae6}.export-file a{text-decoration:none}.plan-tiers{display:grid;grid-template-columns:1fr 1fr;gap:9px}.plan-tier{padding:13px;border:1px solid #c5d4e3;background:white;border-radius:8px}.plan-tier strong{font-size:19px}.plan-tier small{display:block;color:#4a657d;margin:5px 0 9px}.plan-admin{border-top:1px solid #d4dfeb;padding-top:14px}.plan-admin summary{cursor:pointer;font-weight:bold}.plan-admin form{margin-top:12px}.plan-admin .btn{margin-top:10px}@media(max-width:420px){.plan-tiers{grid-template-columns:1fr}}
.letterhead{display:grid;grid-template-columns:0.95fr 1.35fr;gap:5cqw;align-items:start;padding:1cqw 0 4cqw;border-bottom:2px solid #233d56;background:white}.docmark img{display:block;max-width:100%;max-height:19cqw;width:auto;height:auto}.docmark strong{font-size:7cqw;letter-spacing:.08em;color:#152e47}.vendor{text-align:right}.vendor b,.customer b{font-size:3.3cqw;display:block;margin:.7cqw 0}.vendor small,.customer small{display:block;font-size:2.45cqw;white-space:pre-line}.doc .project{text-align:center;font-size:4.4cqw;line-height:1.35;margin:4.2cqw 0 1.4cqw}.doc .dates{border:0;padding:0;justify-content:center;flex-wrap:wrap;gap:3cqw;margin:0 0 4.1cqw}.customer{padding:2cqw 0 3cqw}.support-strip{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #c8d8e6;border-radius:13px;background:#e8f0f7;padding:24px;margin:0 0 22px}.support-strip h2{font-size:18px;line-height:1.6;margin:0}.support-strip p{margin:6px 0 0;color:#445e74;font-size:14px}.support-strip button{flex:none}.benefits{padding-left:1.3em}.pipeline-select{width:108px}.pipeline-filter{margin:12px 0;max-width:180px}.fund-record{border-top:1px solid #d7e1ec;padding:10px 0}.fund-record p{overflow-wrap:anywhere}footer a{color:#24587e}@media(max-width:720px){.support-strip{display:grid;gap:14px;padding:18px}.support-strip h2{font-size:16px}.hero h1{letter-spacing:0}.workspace.account{gap:4px}}@media print{.support-strip{display:none!important}}
main .hero{border:1px solid #cfdae6;background:#fff;color:#17334f}main .hero p{color:#425c70}main .hero img{height:100%;opacity:.85}main .hero h1{margin-top:0}.support-strip{flex-direction:column;text-align:center;gap:14px}.draft[data-status="已接受"]{color:#175840;background:#e5f2e9}.draft[data-status="已拒絕"]{color:#803c39;background:#fae9e9}.draft[data-status="已發送"]{color:#255a88;background:#e6f0fb}
@media(max-width:520px){main .hero img{opacity:.17;width:56%}.workspace.account a{font-size:12px}.support-strip>button{justify-self:center}}

/* The quote uses page-relative type and spacing so previews and A4 exports match. */
.sheet{border:0}
.sheet .doc{min-height:141.42cqw;font-size:1.86cqw;line-height:1.4;color:#192e43}
.sheet .docmain{padding:6.3cqw 6.4cqw 5cqw}
.sheet .letterhead,.quote-parties,.sheet .signature{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5cqw}
.sheet .letterhead{align-items:center;padding:0;border:0}
.docmark img{display:block;width:auto;height:auto;max-width:28cqw;max-height:9cqw}
.docmark strong{font-size:4.6cqw;line-height:1.2;letter-spacing:.06em;color:#16334e}
.quote-dates{justify-self:end;font-size:1.72cqw;color:#51667b}
.quote-dates div{display:flex;justify-content:space-between;gap:2cqw;align-items:baseline}
.quote-dates b{font-weight:550;color:#24374b;font-variant-numeric:tabular-nums}
.sheet .project{text-align:center;margin:4.4cqw 0 1.9cqw;padding-bottom:1.7cqw;border-bottom:1px solid #9aabbc;font-size:3.9cqw;line-height:1.25;letter-spacing:.025em;color:#142b43}
.quote-parties{margin:0 0 3cqw}
.quote-parties section{min-width:0}
.party-label{display:block;margin:0 0 .35cqw;color:#506c85;font-size:1.6cqw;font-weight:600;letter-spacing:.08em}
.party-company{display:block;font-size:2.24cqw;line-height:1.35;color:#1b3046}
.party-fields{font-size:1.68cqw;line-height:1.4;color:#475a6d;margin-top:.25cqw;white-space:pre-line}
.sheet .doc table{width:100%;border:0;border-spacing:0;table-layout:fixed;font-size:1.91cqw;line-height:1.32;font-variant-numeric:tabular-nums}
.sheet .doc th,.sheet .doc td{padding:.87cqw 1.25cqw;border:0}
.sheet .doc th{background:#eaf0f6;color:#254765;font-size:1.72cqw;font-weight:650}
.sheet .doc td{vertical-align:top}
.sheet .doc tbody tr+tr td{border-top:1px solid #dce3e9}
.sheet .doc th:first-child,.sheet .doc td:first-child{width:51%;padding-left:1.2cqw;white-space:pre-line}
.sheet .doc th:nth-child(2){width:10%}
.sheet .doc th:last-child,.sheet .doc td:last-child{width:22%}
.sheet .doc td:last-child{font-weight:650}
.sheet .doc .line-note{color:#536577;font-size:1.62cqw;line-height:1.35;margin-top:.12cqw}
.closing-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,40%);gap:5cqw;align-items:start;border-top:1px solid #bccad6;margin-top:1.2cqw;padding-top:1.55cqw}
.quote-totals{grid-column:2;grid-row:1;font-size:1.78cqw;font-variant-numeric:tabular-nums}
.quote-totals .sumrow{display:flex;align-items:baseline;justify-content:space-between;gap:1cqw;padding:.23cqw 1.25cqw}
.sumrow b{text-align:right;font-weight:550}
.quote-totals .final-total{margin:.6cqw 0 .35cqw;background:#eaf0f6;color:#163d60;padding:.72cqw 1.25cqw;font-weight:700}
.final-total b{font-size:2.85cqw;font-weight:700;line-height:1.22}
.sheet .notes{grid-column:1;margin:0;padding:0;font-size:1.66cqw;line-height:1.5;color:#4b5f71}
.notes b{display:block;margin-bottom:.38cqw;font-size:1.72cqw;color:#28445c}
.sheet .signature{margin:5.5cqw 0 0;font-size:1.65cqw;color:#486177}
.signature div{padding-bottom:4cqw;border-bottom:1px solid #9cacba}
.dense-quote .docmain{padding:4.1cqw 5.3cqw}
.dense-quote .project{margin:2.2cqw 0 .9cqw;padding-bottom:.9cqw}
.dense-quote .quote-parties{margin-bottom:1.7cqw}
.sheet.dense-quote .doc td{padding-top:.45cqw;padding-bottom:.45cqw}
.dense-quote .signature{margin-top:2.6cqw}
@page{size:A4 portrait;margin:8mm}
@media print{
  .sheet{container-type:inline-size}
  .sheet .doc{min-height:0}
  .sheet .docmain{padding:0}
  .letterhead,.quote-parties,.quote-totals,.signature{break-inside:avoid}
  .sheet thead{display:table-header-group}
  .final-total{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

input::placeholder,textarea::placeholder{color:#66737e;opacity:1;font-weight:400}

.grid.phone-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}

/* Editor navigation, document controls and the original brand palette. */
.skip-link{position:fixed;z-index:50;inset:8px auto auto 8px;padding:8px 14px;border-radius:6px;background:#193c61;color:white;transform:translateY(-160%)}.skip-link:focus{transform:none}
.top nav a{display:inline-flex;align-items:center;justify-content:center;gap:7px;position:relative;padding:0 11px;color:#506276;text-decoration:none;font-size:.9rem;font-weight:650;min-height:44px;white-space:nowrap}
.top nav a[aria-current="page"]{color:#1d5793}.top nav a[aria-current="page"]::after{content:"";position:absolute;bottom:0;left:8px;right:8px;height:3px;background:#2869a8}
i[data-i]{display:inline-block;width:18px;height:18px;flex:none}
:root{--mark-width:28cqw;--mark-height:9cqw}
.docmark{width:var(--mark-width);height:var(--mark-height);display:flex;align-items:center;position:relative}
.docmark img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:left center}
@media screen{.with-logo-guide .docmark::after{content:"";position:absolute;inset:0;outline:1px dashed #3874a9;outline-offset:1px;pointer-events:none}}
.logo-guide{display:flex;align-items:center;gap:16px;margin-bottom:13px}.logo-map{flex:0 0 67px}.mini-page{position:relative;aspect-ratio:210/297;background:white;border:1px solid #a7bacb;box-shadow:0 2px 5px #20374c0d;container-type:inline-size}
.mini-page i{position:absolute;display:block}.mini-mark{left:6.4%;top:4.45%;width:28%;height:6.36%;background:#deedfa;outline:1px solid #326a98}.mini-dates{right:6%;top:5%;height:6%;width:18%;background:#ccd7e2}.mini-title{top:18%;left:30%;width:40%;height:3%;background:#8298ad}.mini-table{top:33%;left:7%;width:86%;height:34%;background:repeating-linear-gradient(to bottom,#cad7e1 0 1px,transparent 1px 6px);border-top:3px solid #9fbbd0}
.logo-guide-copy{min-width:0}.logo-guide-copy strong{font-size:1rem;color:#203e5c}.logo-guide-copy p,.preview-note{color:#465c70;font-size:.9rem;margin:.25rem 0}
.logo-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:.85rem;color:#526778;margin:12px 0}
.logo-fit{width:min(188px,100%);aspect-ratio:28/9;outline:1px dashed #4278a5;background:#f6f9fc;display:flex;align-items:center;overflow:hidden;color:#193953;font-size:1.4rem;font-weight:700}
.logo-fit img{width:100%;height:100%;object-fit:contain;object-position:left center}.logo-fit span{padding-left:2px}
.upload-label input{background:#fff;padding:.45rem}.upload-label input::file-selector-button{font:inherit;color:#204a70;background:#edf4fa;border:1px solid #c6d8e7;border-radius:4px;margin-right:9px;padding:4px 9px;cursor:pointer}
#logo-formats,#logo-status{display:block;margin-top:.35rem;color:#516779;font-size:.84rem}#logo-status:empty{display:none}.logo-actions{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-top:12px}
.logo-actions label{font-size:.86rem}.logo-actions input{min-height:0;width:1rem;height:1rem}.switch{cursor:pointer;min-height:44px}
.btn,.mini,.iconbtn,.plan-btn{min-height:44px}.iconbtn{min-width:44px}.tabs button{min-height:44px}
input,textarea,select{font-size:1rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wrap,.columns>*,.workspace,.buttons,.tabs,.cardhead,.hero>div,.site-footer>div{min-width:0}
main .hero img{pointer-events:none;object-fit:contain}.hero>div{max-width:68%}
#paper{aspect-ratio:210/297}.editor #form{min-height:620px}.site-footer{border-top:1px solid #d5dee8;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 2px 28px;text-align:left}.site-footer h2{font-size:1.02rem;color:#294560;margin:0 0 .2em}.site-footer p{margin:0;font-size:.88rem}
.footer-links{display:flex;gap:5px 14px;flex-wrap:wrap;align-items:center}.footer-links a{display:inline-flex;align-items:center;min-height:44px;font-size:.9rem}.footer-links .contact-link{background:#205b98;color:#fff;border-radius:6px;padding:7px 15px;text-decoration:none;font-weight:650}
.service-intro{padding:22px 24px;margin-top:18px}.service-intro h2{font-size:1.16rem;margin:0 0 6px}.service-intro p{margin:.35rem 0;color:#465c70}.service-intro a{color:#205b98}
.preview-notice{padding:8px 12px;border-left:3px solid #477da5;background:#e9f1f9;margin:12px 0 0;color:#2e4b65;font-size:.875rem}
#toast{width:max-content;max-width:calc(100% - 24px)}.cardhead{height:auto;min-height:65px}.record{overflow-wrap:anywhere}.record>div{min-width:0}
@media(max-width:1100px){.top{gap:16px}.top nav{gap:0}.top nav a{padding:0 8px}.workspace.account{gap:6px}}
@media(min-width:761px) and (max-width:900px){.columns{grid-template-columns:minmax(0,1fr)}.canvas{padding:22px max(7%,20px)}.top{flex-wrap:wrap;height:auto;padding-top:8px;gap:5px}.top nav{order:3;width:100%}.top nav a{padding:8px 18px}.workspace.account{margin-left:auto}}
@media(max-width:760px){.top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px}.top nav{grid-column:1/-1;width:100%;justify-content:space-between}.top nav a{padding:8px 4px;gap:5px}.workspace.account{justify-self:end;flex-wrap:wrap;justify-content:flex-end;margin:0}.account .btn,.account .plan-btn{min-height:44px}.buttons{flex-wrap:wrap}.hero>div{max-width:88%}.hero p{max-width:100%}.site-footer{display:grid}.footer-links{gap:2px 14px}.editor #form{min-height:670px}.tabs{margin-inline:12px;gap:6px}.tabs button{font-size:.9rem}.status{min-height:26px}.save-status{max-width:100%}.hero img{inset-inline-end:0!important}.mobile-preview .btn{min-height:44px}}
@media(max-width:480px){.grid{grid-template-columns:minmax(0,1fr)}.grid.phone-row{grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr)}.actions{align-items:flex-start}.actions .buttons{gap:5px}.record .row{justify-content:flex-start}.top nav a{font-size:.85rem}.top nav .ico{width:16px}.site-footer{padding-inline:2px}.switch{align-content:center}.account .btn,.plan-btn{font-size:.8rem}.logo-actions{gap:5px 10px}.hero>div{max-width:100%}}
@media print{.skip-link,.preview-notice,.service-intro,.site-footer{display:none!important}.docmark::after{display:none!important}#paper{aspect-ratio:auto}.docmark{break-inside:avoid}}

/* Let native date controls shrink inside the editor's grid on iOS. */
#form .grid > label:not(.switch) { grid-template-columns: minmax(0, 1fr); }
#form input[type="date"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
#form input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }

#back-to-top {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 5;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: #193c60;
  color: white;
  font: 650 13px/1 system-ui, sans-serif;
  cursor: pointer;
}
@media print { #back-to-top { display: none; } }
