.company-mark{display:inline-flex;align-items:center;gap:13px;min-width:0}.company-mark-image{display:grid;place-items:center;width:44px;height:44px;flex:none;background:#fff;border:1px solid #dde5e9;border-radius:12px;overflow:hidden;color:var(--company-primary,#17212d);font-weight:800;font-size:20px}.company-mark-image img{width:100%;height:100%;object-fit:contain;padding:5px}.company-mark-label{display:grid;gap:4px;min-width:0}.company-mark-label strong{overflow:hidden;text-overflow:ellipsis;font-size:15px}.company-mark-label small{color:#647581;font-size:12px}.workspace-switch .company-mark-image{width:36px;height:36px;border-radius:9px}.company-desk-heading{padding:0 0 22px;margin-bottom:20px;border-bottom:1px solid #dee5e8}.company-desk-heading .company-mark-image{width:52px;height:52px}.company-desk-heading .company-mark-label strong{font-size:20px}.settings-tabs{display:flex;gap:6px;border-bottom:1px solid #dbe3e7;margin:0 0 28px;flex-wrap:wrap}.settings-tabs a{padding:14px 18px;color:#596a77;font-weight:700;border-bottom:3px solid transparent;text-decoration:none}.settings-tabs a[aria-current]{color:#17212d;border-color:#34bed5}.settings-tabs a:hover{background:#edf4f5}.branding-studio{display:grid;grid-template-columns:minmax(290px,.75fr) minmax(0,1.25fr);gap:32px;align-items:start}.branding-controls{display:grid;gap:22px;min-width:0;align-items:start}.branding-controls .form-section{display:grid;gap:18px}.brand-upload-preview{padding:22px;background:#f4f7f8;border:1px dashed #bfced5;border-radius:12px}.brand-colors{grid-template-columns:1fr 1fr}.color-control{display:flex;gap:8px;align-items:center}.color-control input[type=color]{width:45px;height:44px;padding:4px;flex:none;border:1px solid #cdd9df;border-radius:8px;cursor:pointer}.color-control input:not([type=color]){min-width:0;width:100%;font-family:monospace}.template-options{gap:10px!important}.template-option{display:flex;align-items:center;gap:12px;border:1px solid #dbe4e8;padding:14px;border-radius:10px;cursor:pointer;transition:border-color .15s,background .15s}.template-option:has(input:checked){background:#f0f8fa;border-color:#288698;box-shadow:0 0 0 1px #288698}.template-option input{width:17px!important;flex:none;accent-color:#17212d}.template-option strong,.template-option small{display:block}.template-option small{line-height:1.5;color:#566b78;margin-top:3px;font-size:13px}.template-thumbnail{width:42px;height:51px;display:grid;gap:4px;padding:7px 5px;border:1px solid #bdcbd2;background:white;flex:none}.template-thumbnail i{display:block;background:#dce5e9;height:3px}.template-thumbnail i:first-child{height:10px;background:#17212d}.template-thumbnail-editorial{border-left:5px solid #34bed5}.template-thumbnail-editorial i:first-child{background:#34bed5;width:60%}.template-thumbnail-classic i:first-child{height:3px;background:#17212d}.branding-preview{position:sticky;top:90px;min-width:0;padding:24px;background:#e9eef1;border-radius:18px;border:1px solid #dce4e9}.brand-preview-toolbar{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:22px}.brand-preview-toolbar strong,.brand-preview-toolbar small{display:block}.brand-preview-toolbar strong{font-size:15px}.brand-preview-toolbar small{margin-top:5px;font-size:12px;color:#61747f;line-height:1.5}.brand-preview-tabs{display:flex;background:#fff;padding:3px;border-radius:8px;border:1px solid #d4dfe4}.brand-preview-tabs button{border:0;border-radius:5px;background:none;padding:8px 10px;cursor:pointer;color:#596b77;font-weight:700;font-size:13px}.brand-preview-tabs [aria-pressed=true]{background:#17212d;color:#fff}.brand-fiscal-note{display:flex;gap:12px;padding:20px;background:#edf7f6;border-radius:12px;color:#255c5d}.brand-fiscal-note svg{flex:none}.brand-fiscal-note p{font-size:13px;line-height:1.6;margin:5px 0 0}.branding-history{font-size:13px;line-height:1.7;color:#62717c}.branding-save{position:sticky;bottom:16px;z-index:4;background:#fff;padding:16px;border:1px solid #d6e1e7;box-shadow:0 8px 24px #17212d12;border-radius:12px;display:grid;gap:10px}.branding-save [role=status]{font-size:12px;color:#526775}.branding-save [role=status]:empty{display:none}
.commercial-paper{--company-primary:#17212d;--company-accent:#34bed5;--company-ink:#fff;background:#fff;color:#17212d;border:1px solid #dce3e8;border-radius:5px;box-shadow:0 12px 40px #17212d08;overflow:hidden;width:100%;min-width:0;max-width:920px;margin:0 auto;font-family:Lato,Arial,sans-serif;overflow-wrap:anywhere;container-type:inline-size}.commercial-paper.font-arial{font-family:Arial,sans-serif}.commercial-paper.font-georgia{font-family:Georgia,serif}.commercial-paper [hidden]{display:none!important}.commercial-header{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;padding:38px 40px;border-bottom:4px solid var(--company-accent)}.commercial-identity{display:flex;gap:17px;align-items:flex-start;min-width:0;flex:1}.commercial-logo{width:82px;height:72px;object-fit:contain;flex:none;background:#fff;padding:5px;border-radius:4px}.commercial-company{font-size:22px;font-weight:800;line-height:1.25;display:block}.commercial-legal{font-size:12px;display:block;margin-top:6px}.commercial-identity p{font-size:12px;line-height:1.65;margin:10px 0 0;white-space:pre-line}.commercial-heading{text-align:right;max-width:44%;flex-shrink:0}.commercial-kicker{text-transform:uppercase;font-weight:700;font-size:12px;letter-spacing:.15em}.commercial-heading h2{font-family:inherit;font-size:24px;line-height:1.2;margin:10px 0}.commercial-heading p{font-size:12px;margin:8px 0 0;line-height:1.5}.commercial-body{padding:32px 40px 25px}.commercial-parties{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:30px}.commercial-parties h3{font-family:inherit;font-size:16px;margin:8px 0;font-weight:700}.commercial-parties p{font-size:13px;line-height:1.7;margin:0;white-space:pre-line}.commercial-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#60717f}.commercial-parties dl{margin:0;display:grid;gap:12px;align-content:start}.commercial-parties dl>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.commercial-parties dt{color:#60717f}.commercial-parties dd{margin:0;font-weight:700}.commercial-message{font-size:14px;line-height:1.75;border-left:3px solid var(--company-accent);padding:5px 0 5px 16px;margin:0 0 26px;white-space:pre-line}.commercial-lines{width:100%;border-collapse:collapse;font-size:13px;table-layout:auto}.commercial-lines th{background:#f2f5f7;color:#435767;font-size:11px;text-transform:uppercase;letter-spacing:.04em;text-align:left;padding:13px 10px;border-bottom:1px solid #dfe6eb}.commercial-lines td{padding:18px 10px;border-bottom:1px solid #e7ecf0;vertical-align:top;line-height:1.6}.commercial-lines th:first-child,.commercial-lines td:first-child{padding-left:0;width:46%}.commercial-lines th:last-child,.commercial-lines td:last-child{text-align:right;padding-right:0}.commercial-lines td:nth-last-child(-n+2){white-space:nowrap;font-variant-numeric:tabular-nums}.commercial-lines small{display:block;color:#647783}.commercial-summary{max-width:340px;margin:28px 0 30px auto;display:grid;gap:10px}.commercial-summary>div{display:flex;justify-content:space-between;gap:15px;font-size:12px}.commercial-summary .commercial-total{background:var(--company-primary);color:var(--company-ink);padding:20px;border-radius:4px;align-items:center;font-size:13px}.commercial-total strong{font-size:23px;font-variant-numeric:tabular-nums;white-space:nowrap}.commercial-notes h3,.commercial-terms h3{font-family:inherit;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#526876;margin:0 0 8px}.commercial-notes p,.commercial-terms p{font-size:12px;line-height:1.8;white-space:pre-line;margin:0}.commercial-notice{font-size:11px;color:#61737f;line-height:1.7}.commercial-closing{display:grid;gap:25px;margin:26px 0}.commercial-signature{font-size:16px;font-style:italic;margin:0}.commercial-footer{border-top:1px solid #dce5ea;padding-top:16px;display:flex;justify-content:space-between;gap:20px;line-height:1.6;font-size:10px;color:#61737f}.commercial-footer>span{max-width:55%;white-space:pre-line}.commercial-powered{white-space:normal!important;text-align:right}.commercial-powered b{display:block;font-weight:400}.template-signature .commercial-header{background:var(--company-primary);color:var(--company-ink)}.template-editorial .commercial-header{border-bottom:1px solid #dce5ea;border-left:8px solid var(--company-accent)}.template-editorial .commercial-heading{border-top:3px solid var(--company-accent);padding-top:10px}.template-editorial .commercial-kicker{font-size:16px;letter-spacing:.07em}.template-classic .commercial-header{border-top:5px solid var(--company-primary);border-bottom:1px solid #dce5ea}.template-classic .commercial-summary .commercial-total{background:none;color:#17212d;border-top:3px solid var(--company-accent);border-bottom:1px solid #dde5e8;padding-left:0;padding-right:0}.commercial-paper .emecef-security{margin:24px 0;background:#f5f8fa}.commercial-paper .fiscal-test{margin:0;border-radius:0;font-size:12px}.commercial-paper .fiscal-footer{font-size:11px;line-height:1.7}.commercial-paper .fiscal-totals{margin-top:26px}.commercial-paper .fiscal-totals .grand-total{border-color:var(--company-accent)}.commercial-paper .fiscal-table th{background:var(--company-primary);color:var(--company-ink)}.commercial-print-body{padding:28px;background:#edf1f4;color:#17212d}.commercial-print-tools{max-width:920px;margin:0 auto 22px;display:flex;justify-content:space-between;gap:16px}
@container(max-width:650px){.commercial-header{padding:26px 24px;gap:18px}.commercial-body{padding:26px 24px}.commercial-company{font-size:18px}.commercial-logo{width:56px;height:56px}.commercial-heading h2{font-size:20px}.commercial-identity{gap:12px}.commercial-parties{gap:20px}.commercial-lines{font-size:12px}.commercial-total strong{font-size:20px}}
@container(max-width:430px){.commercial-header{display:grid;padding:24px}.commercial-heading{max-width:none;text-align:left}.commercial-heading h2{font-size:23px}.commercial-identity{max-width:100%}.commercial-parties{grid-template-columns:1fr;gap:20px}.commercial-lines thead{display:none}.commercial-lines tbody,.commercial-lines tr,.commercial-lines td{display:block;width:100%!important}.commercial-lines tr{padding:12px 0;border-bottom:1px solid #e0e7eb}.commercial-lines td{padding:4px 0;border:0;text-align:right;display:flex;justify-content:space-between;gap:12px}.commercial-lines td:first-child{display:block;text-align:left;padding-bottom:10px;font-size:14px}.commercial-lines td:not(:first-child):before{content:attr(data-label);color:#627582;font-weight:400}.commercial-lines small{display:inline}.commercial-summary{max-width:none}.commercial-footer{display:grid;gap:12px}.commercial-footer>span{max-width:100%}.commercial-powered{text-align:left}.commercial-paper .emecef-security{padding:18px;grid-template-columns:1fr}.commercial-paper .emecef-security img{width:132px;height:132px}}
@media(max-width:1199px){.branding-studio{grid-template-columns:minmax(270px,.85fr) minmax(0,1.15fr);gap:20px}.branding-preview{padding:16px}.brand-preview-toolbar{flex-direction:column}.brand-colors{grid-template-columns:1fr}}
@media(max-width:950px){.branding-studio{grid-template-columns:1fr}.branding-preview{position:static;padding:18px}.branding-controls{grid-template-columns:1fr 1fr}.branding-controls> :last-child,.branding-controls>.branding-history,.branding-controls>.brand-fiscal-note{grid-column:1/-1}.brand-preview-toolbar{flex-direction:row}.brand-colors{grid-template-columns:1fr 1fr}.branding-preview .commercial-paper{max-width:720px}}
@media(max-width:600px){.branding-controls{grid-template-columns:1fr}.branding-preview{padding:12px;margin:0 -4px}.brand-preview-toolbar{flex-direction:column}.settings-tabs a{padding:12px 9px;font-size:13px}.commercial-print-body{padding:12px}.brand-colors{grid-template-columns:1fr}.branding-save{bottom:8px}.company-desk-heading .company-mark-label strong{font-size:18px}.commercial-print-tools{flex-wrap:wrap}.branding-preview{grid-row:auto}.branding-studio{gap:22px}.commercial-paper{border-radius:4px}}
@media(prefers-reduced-motion:reduce){.template-option{transition:none}}
@media print{@page{size:A4;margin:12mm}.commercial-print-body{background:white!important;padding:0!important}.commercial-paper{box-shadow:none;border:0;border-radius:0;max-width:none;width:100%;container-type:normal;print-color-adjust:exact;-webkit-print-color-adjust:exact}.commercial-header{padding:18px 0 24px;display:flex}.template-signature .commercial-header{padding:24px}.commercial-body{padding:24px 0}.commercial-parties{grid-template-columns:1fr 1fr}.commercial-lines{display:table!important}.commercial-lines thead{display:table-header-group!important}.commercial-lines tbody{display:table-row-group!important}.commercial-lines tr{display:table-row!important;break-inside:avoid}.commercial-lines th,.commercial-lines td{display:table-cell!important;width:auto!important}.commercial-lines td:before{display:none!important}.commercial-summary,.commercial-closing,.commercial-footer,.emecef-security{break-inside:avoid}.commercial-header,.commercial-parties{break-inside:avoid}.commercial-notes,.commercial-terms{break-inside:auto}.shared-header,.shared-intro,.shared-response,.shared-footer,.no-print{display:none!important}.shared-main{padding:0!important;margin:0!important;max-width:none!important}.shared-body{background:white!important}}

.brand-preview-jump{display:none}#branding-preview,#branding-controls{scroll-margin-top:95px}@media(max-width:950px){.brand-preview-jump{display:block;font-size:13px;font-weight:700;margin:5px 0}}
