/* Screen-first, readable controls. PDF and print retain their document layout. */
@media screen {
 :root{--primary:#143f8f;--primary-hover:#102f6c;--primary-light:#eff4ff;--slate-900:#162744;--slate-800:#203350;--slate-600:#42536b;--slate-500:#526179;--slate-200:#d1dbea}
 body{background:#f5f7fc;color:#162744;font-size:15px;line-height:1.6}
 .main-wrapper,.header-inner{max-width:1380px;padding-left:28px;padding-right:28px}
 .header-inner{padding-top:10px;padding-bottom:10px;gap:24px}.site-header{border-color:#d1dbea}
 .site-logo{display:block;width:250px;height:63px;object-fit:contain}.header-free{font-size:14px;font-weight:650;color:#244323}
 .header-inner nav a{font-size:14px;font-weight:650;color:#273c5c}.header-inner nav{gap:26px}
 .workspace-heading{border:0;padding:20px 0;gap:16px;flex-wrap:wrap}.workspace-heading>div{flex:1;min-width:250px}
 .workspace-heading h1{font-size:25px;font-weight:700;line-height:1.2;letter-spacing:-.5px;margin-bottom:5px}
 .workspace-heading>div>span{font-size:14px;color:#42536b;font-weight:550}
 .workspace-heading .local-status{font-size:13px;color:#264b31;font-weight:650;max-width:260px;line-height:1.4}
 .app-grid{display:block}.control-panel{display:grid;grid-template-columns:minmax(310px,.8fr) minmax(0,1.4fr);gap:22px;align-items:start}
 .card{border:1px solid #c9d5e7;border-radius:12px;box-shadow:0 2px 6px #21345d06}.card-header{padding:18px 20px 14px;gap:12px}
 .card-header h2{font-size:19px;font-weight:700;color:#142c52;line-height:1.25}.card-header p{font-size:14px;color:#4b5b72;font-weight:500;line-height:1.5;margin-top:5px}
 .step-number{background:#eaf0ff;border-color:#c4d3f0;color:#143f8f;font-size:14px;font-weight:700;min-width:38px;height:38px}
 .card-header>svg{color:#143f8f}.card-body{padding:0 20px 20px}
 .form-group{margin-bottom:14px}.form-label{font-size:14px;font-weight:650;line-height:1.4;color:#203858;margin-bottom:7px}
 .form-input,.form-select{font-size:15px;min-height:48px;padding:10px 12px;border:1px solid #a8bad2;background:#fff;color:#162744;font-weight:550;border-radius:7px}
 .form-input::placeholder,.prompt-textarea::placeholder{color:#526179;opacity:1}.form-input:focus,.form-select:focus,.prompt-textarea:focus{outline:3px solid #255dc7;outline-offset:2px}
 .business-extras{border-color:#d9e1ed;padding-top:10px}.business-extras summary,.syntax-helper summary{font-size:14px;font-weight:700;color:#143f8f;min-height:44px;align-items:center;line-height:1.5;padding:8px 0}
 .extra-fields{margin-top:10px}.logo-upload-wrapper{border-color:#a8bad2;padding:12px;margin:6px 0 16px}.logo-preview-box{height:48px;width:48px;background:#eef3fc;color:#143f8f}.btn-upload-label{font-size:14px;font-weight:650;display:block;min-height:32px;color:#143f8f}.btn-upload-label>span,.logo-help-text{font-size:13px;color:#526179}.btn-link-danger{font-size:14px;font-weight:650;min-height:36px}.logo-help-text{line-height:1.4}
 .label-row{align-items:start}.label-row .form-label{font-size:14px}.label-row .text-button{font-size:14px;min-height:30px;font-weight:700}.text-button{font-size:14px;min-height:44px;font-weight:700;color:#143f8f;padding:7px}.prompt-textarea{font-size:15px;font-weight:550;line-height:1.65;min-height:162px;height:162px;padding:14px;border:1px solid #a8bad2;background:#fbfcff;color:#162744}
 .field-help{font-size:13px;line-height:1.55;color:#42536b;margin-top:8px}.presets-section{margin-top:17px}.presets-label{font-size:14px;color:#203858;font-weight:650;margin-bottom:9px}.preset-chips{gap:7px}.preset-chip{min-height:44px;padding:9px 12px;font-size:14px;font-weight:650;border:1px solid #a8bad2;border-radius:7px;color:#203858;background:white}.preset-chip:hover{background:#eaf0ff;border-color:#143f8f}.preset-chip.active{background:#143f8f;color:#fff;border-color:#143f8f;box-shadow:0 0 0 2px #143f8f20}.syntax-helper{margin-top:12px}.syntax-helper p,.syntax-helper code,.syntax-helper a{font-size:14px;color:#273c5c}.syntax-helper code{background:#edf3ff;line-height:1.7;padding:10px}.syntax-helper a{color:#143f8f;font-weight:650}
 .tax-rate-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.tax-rate-control[hidden]{display:none}.tax-rate-control label{font-size:14px;font-weight:650}.tax-rate-control input{width:100px;min-height:44px;border:1px solid #a8bad2;border-radius:7px;padding:8px;font-size:15px;font-weight:650}.tax-rate-control>span{font-size:13px;color:#42536b}
 .privacy-note{display:none}.preview-panel{max-width:1050px;margin:26px auto 0;padding:0 24px 20px;background:#eaf0f8;border:1px solid #c9d5e7;border-radius:12px}.toolbar-card{padding:14px 0;gap:15px}.toolbar-status{font-size:16px;font-weight:700;color:#203858}.live-pulse{background:#287038;width:8px;height:8px}.preview-format{font-size:13px;color:#42536b;font-weight:550;border-color:#bac8dd}.toolbar-card .text-button{font-size:14px}.preview-scroll-help{font-size:14px;color:#42536b;margin-bottom:12px;font-weight:550}.invoice-sheet-container{border:1px solid #cad5e5;overflow:auto;background:white;scrollbar-color:#738bad #eaf0f8}.invoice-sheet-container:focus-visible{outline:3px solid #255dc7;outline-offset:3px}
 .invoice-sheet:not(.pdf-export){min-width:650px;min-height:770px;padding:40px;font-size:14px;border:0;color:#20334d}.invoice-sheet:not(.pdf-export) .inv-top-bar{min-height:150px}.invoice-sheet:not(.pdf-export) .inv-business-title{font-size:24px;font-weight:700;color:#163d7a}.invoice-sheet:not(.pdf-export) .inv-main-heading{font-size:28px;font-weight:650;color:#163d7a}.invoice-sheet:not(.pdf-export) .inv-details-table{font-size:14px}.invoice-sheet:not(.pdf-export) .inv-sender-meta,.invoice-sheet:not(.pdf-export) .inv-client-details{font-size:14px;color:#465771}.invoice-sheet:not(.pdf-export) .inv-section-title{font-size:13px;font-weight:700;color:#465771}.invoice-sheet:not(.pdf-export) .inv-client-name{font-size:18px;font-weight:650}.invoice-sheet:not(.pdf-export) .inv-client-details{max-width:400px}.invoice-sheet:not(.pdf-export) .inv-client-section{padding:24px 0}.invoice-sheet:not(.pdf-export) .inv-payment-terms>div:last-child{font-size:13px!important;font-weight:700!important;color:#695517!important;background:#fff4d4!important;padding:5px 14px!important}
 .invoice-sheet:not(.pdf-export) .inv-items-table{font-size:14px}.invoice-sheet:not(.pdf-export) .inv-items-table th{font-size:13px;font-weight:650;padding:14px 6px;background:#edf2fb;color:#284772}.invoice-sheet:not(.pdf-export) .inv-items-table td{padding:17px 6px;border-color:#dae2ef}.invoice-sheet:not(.pdf-export) .col-num{color:#526179}.invoice-sheet:not(.pdf-export) .col-desc{width:34%}.invoice-sheet:not(.pdf-export) .col-qty{width:9%}.invoice-sheet:not(.pdf-export) .col-rate{width:18%}.invoice-sheet:not(.pdf-export) .col-amt{width:26%}.invoice-sheet:not(.pdf-export) .col-actions{width:7%}.btn-del-row{font-size:22px;min-width:38px;min-height:44px;color:#9a2c2c}.btn-add-item{font-size:14px;min-height:44px;font-weight:650;color:#143f8f}.inv-add-row-bar{padding-top:10px}.invoice-sheet:not(.pdf-export) .inv-summary-container{grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);gap:28px;margin:28px 0 36px}.invoice-sheet:not(.pdf-export) .inv-notes-terms{font-size:13px;color:#42536b}.invoice-sheet:not(.pdf-export) .inv-notes-title{font-size:13px;font-weight:700;color:#42536b}.invoice-sheet:not(.pdf-export) .totals-table{font-size:14px}.invoice-sheet:not(.pdf-export) .totals-table .t-label{color:#42536b}.invoice-sheet:not(.pdf-export) .tax-badge{font-size:13px;color:#42536b}.invoice-sheet:not(.pdf-export) .grand-total-row td{font-size:20px;font-weight:700;color:#143f8f}.invoice-sheet:not(.pdf-export) .grand-total-row .t-label{font-size:15px}.invoice-sheet:not(.pdf-export) .inv-footer,.invoice-sheet:not(.pdf-export) .inv-brand-link{font-size:12px;color:#526179}.invoice-sheet:not(.pdf-export) .inv-brand-link strong{color:#143f8f;font-weight:700}
 .preview-actions{font-size:13px;font-weight:550;color:#42536b;gap:16px;flex-wrap:wrap;padding:12px 0}.preview-actions .text-button{font-size:14px}.icon-button{min-width:44px;min-height:44px;color:#143f8f}.download-bar{border-color:#c4d2e6;padding:18px;gap:18px;flex-wrap:wrap}.download-bar>div:first-child{display:grid}.download-bar strong{font-size:15px;color:#203858;font-weight:700}.download-bar span{font-size:13px;color:#42536b}.toolbar-buttons{gap:10px;flex-wrap:wrap;width:auto}.btn{min-height:48px;font-size:15px;font-weight:650;padding:11px 17px;border-radius:7px;gap:9px}.btn-primary{background:#143f8f;color:white}.btn-secondary{border:1px solid #a8bad2;color:#143f8f;background:white}.btn-delete{border:1px solid #c79292;color:#972d2d;background:white}.download-caption{font-size:13px;font-weight:600;color:#42536b}.btn:focus-visible,a:focus-visible,summary:focus-visible,button:focus-visible{outline:3px solid #255dc7;outline-offset:3px}
 #historyCount{background:#eaf0ff;color:#143f8f;padding:1px 8px;border-radius:20px;font-size:14px}.history-dialog{width:min(850px,calc(100% - 24px));max-height:85vh;border:1px solid #a8bad2;border-radius:14px;padding:26px;color:#162744;box-shadow:0 18px 60px #14274440;font-size:15px}.history-dialog::backdrop{background:#102b5266}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.history-heading h2{font-size:22px;font-weight:700}.history-dialog>p{margin:15px 0;color:#42536b;line-height:1.6}.history-dialog .form-label{margin-top:20px}.history-list{margin-top:18px}.history-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d1dbea;padding:18px 0;gap:18px;overflow-wrap:anywhere}.history-row>div:first-child{min-width:0}.history-row h3{font-size:16px;font-weight:650}.history-row p{font-size:14px;color:#42536b}.history-row-actions{display:flex;gap:8px;flex-shrink:0}.history-storage-note{font-size:14px}.toast-msg{font-size:14px;line-height:1.5;background:#143f8f;max-width:calc(100% - 24px);bottom:18px;padding:14px 20px;min-width:260px}
 .how-section{margin-top:50px}.section-intro h2,.faq-section h2{font-size:26px;font-weight:650;color:#203858}.eyebrow,.section-intro .eyebrow,.faq-section .eyebrow{font-size:13px;color:#42536b;font-weight:700;letter-spacing:1px}.steps-grid h3{font-size:18px;font-weight:650}.steps-grid p{font-size:15px;color:#42536b}.steps-grid article>span{color:#143f8f;font-weight:700}.feature-strip{background:#eaf0ff;border-color:#c9d5e7}.feature-strip h3{font-size:15px;font-weight:650}.feature-strip p{font-size:14px;color:#42536b}.feature-strip svg{color:#143f8f}.faq-list summary{font-size:15px;font-weight:650;padding-top:20px;padding-bottom:20px;color:#203858}.faq-list p{font-size:15px;color:#42536b}.faq-section>div>a{font-size:15px;font-weight:700;color:#143f8f}.faq-list details{border-color:#c9d5e7}.upgrade-note,.upgrade-note a{font-size:14px;color:#42536b}.footer-inner h4{font-size:15px}.footer-about p,.footer-inner>div>a:not(.brand-container){font-size:14px;color:#42536b}.footer-bottom{font-size:13px;color:#42536b}.footer-inner>div:not(:first-child){min-width:180px}.page-container{max-width:950px;border-color:#c9d5e7}.page-content{font-size:15px;color:#283b55}.page-title{font-size:28px;font-weight:700;color:#162744}.page-subtitle{font-size:14px;color:#42536b}.page-content h2{font-size:22px;font-weight:650}.page-content h3{font-size:18px}.page-content div[style*="font-family: monospace"]{font-size:14px!important}.brand-feature{max-width:720px;margin:10px auto 42px}.brand-feature img{display:block;width:100%;height:auto;border:1px solid #c9d5e7;border-radius:10px}.brand-feature figcaption{font-size:14px;color:#42536b;text-align:center;margin-top:10px}
 @media(max-width:1100px){.control-panel{grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)}.header-free{display:none}.workspace-heading .local-status{flex-basis:100%;max-width:none}.download-bar>div:first-child{display:none}.toolbar-buttons{width:100%}.steps-grid{gap:25px}.faq-section{gap:30px}.feature-strip{grid-template-columns:1fr;gap:20px}.feature-strip>div{padding-left:42px}.feature-strip svg{position:absolute}.footer-inner{flex-wrap:wrap}.footer-about{flex-basis:100%}}
 @media(max-width:760px){.header-inner,.main-wrapper{padding-left:16px;padding-right:16px}.header-inner nav{display:none}.header-inner{justify-content:center}.site-logo{width:230px;height:auto}.workspace-heading{padding:14px 0;gap:10px;align-items:center}.workspace-heading>div{min-width:100%;flex-basis:100%}.workspace-heading h1{font-size:22px}.workspace-heading>div>span{font-size:14px}.workspace-heading .local-status{font-size:13px;flex-basis:auto;flex:1;min-width:100px}.workspace-heading .btn{font-size:14px;min-height:44px;padding:8px 12px}.control-panel{grid-template-columns:1fr;gap:14px}.card-header{padding:14px 14px 10px}.card-header h2{font-size:18px}.card-header p{display:none}.step-number{min-width:32px;width:32px;height:32px;font-size:14px}.card-body{padding:0 14px 14px}.control-panel>.card:first-child .card-body{display:grid;grid-template-columns:1fr 1fr;gap:10px}.control-panel>.card:first-child .form-group{margin-bottom:0}.control-panel>.card:first-child .business-extras{grid-column:1/-1}.form-label{font-size:14px}.form-input,.form-select{font-size:15px;padding:8px;min-height:44px}.business-extras{padding-top:0}.business-extras summary{font-size:14px;padding:6px 0;min-height:38px}.extra-fields .form-group{margin-bottom:14px!important}.label-row .form-label{font-size:14px}.prompt-textarea{font-size:15px;line-height:1.7;height:142px;min-height:142px;padding:10px}.preset-chip{font-size:14px;padding:8px 10px}.presets-label{font-size:14px}.field-help{font-size:13px}.preview-panel{padding:0 12px 16px;margin-top:20px}.toolbar-status{font-size:15px}.toolbar-card .text-button{font-size:14px}.preview-format{display:none}.preview-scroll-help{font-size:13px}.invoice-sheet:not(.pdf-export){padding:28px;min-height:720px}.invoice-sheet:not(.pdf-export) .inv-top-bar{min-height:145px}.invoice-sheet:not(.pdf-export) .inv-items-table{font-size:14px}.invoice-sheet:not(.pdf-export) .inv-business-title{font-size:22px}.invoice-sheet:not(.pdf-export) .inv-main-heading{font-size:25px}.preview-actions{font-size:13px;gap:4px}.preview-actions .text-button{font-size:13px}.btn{font-size:14px;min-height:46px;padding:10px 12px}.toolbar-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}.toolbar-buttons .btn-primary{grid-column:1/-1}.download-caption{font-size:13px}.download-bar{padding:12px}.history-dialog{padding:18px}.history-heading h2{font-size:19px}.history-row{flex-wrap:wrap;gap:12px}.history-row-actions{width:100%}.history-row-actions .btn{flex:1}.history-row p{font-size:14px}.how-section{margin-top:38px}.section-intro h2,.faq-section h2{font-size:24px}.steps-grid{grid-template-columns:1fr;padding:0 8px;gap:25px}.steps-grid h3{font-size:18px}.steps-grid p{font-size:14px}.feature-strip p{font-size:14px}.faq-section{grid-template-columns:1fr;padding:35px 4px;gap:18px}.faq-list summary{font-size:15px}.faq-list p{font-size:14px}.upgrade-note{flex-wrap:wrap;gap:8px;font-size:14px;justify-content:start}.footer-inner>div:not(:first-child){min-width:0}.footer-about p,.footer-inner>div>a:not(.brand-container){font-size:14px}.footer-bottom{font-size:13px;flex-direction:column;gap:8px}.page-container{padding:24px 18px}.page-content{font-size:15px}.page-content h2{font-size:19px}.page-content h3{font-size:18px}.page-title{font-size:25px}.brand-feature{margin:0 auto 30px}.eyebrow,.section-intro .eyebrow,.faq-section .eyebrow{font-size:12px;letter-spacing:.5px}.brand-feature figcaption{font-size:13px}}
 @media(prefers-contrast:more){body{color:#000}.card,.form-input,.form-select,.prompt-textarea,.preset-chip{border-color:#172b4d}.field-help,.card-header p,.form-label{color:#172b4d}}
}

/* Balanced workspace: medium type, controls on the left, document on the right. */
@media screen {
 .header-inner{padding-top:9px;padding-bottom:9px}.site-logo{width:210px;height:auto}.header-inner nav a{font-size:14px;font-weight:600}.header-free{font-size:13px}
 .workspace-heading{padding:17px 0;gap:15px}.workspace-heading h1{font-size:24px}.workspace-heading>div>span{font-size:14px}.workspace-heading .local-status{font-size:13px;flex-basis:auto;max-width:260px}
 .app-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:24px;align-items:start}.control-panel{display:grid;grid-template-columns:1fr;gap:16px}.preview-panel{margin:0;padding:0 18px 16px;width:100%;max-width:none}
 .card-header{padding:16px 17px 12px}.card-header h2{font-size:18px;font-weight:700}.card-header p{font-size:13px}.card-body{padding:0 17px 17px}.step-number{font-size:13px;min-width:32px;width:32px;height:32px}.form-label,.label-row .form-label{font-size:14px;font-weight:650}.form-input,.form-select{font-size:15px;min-height:43px;padding:9px 11px;font-weight:500}.form-group{margin-bottom:12px}.field-help{font-size:13px;line-height:1.5}.business-extras summary,.syntax-helper summary{font-size:14px;min-height:38px;font-weight:600}.business-extras{padding-top:4px}.prompt-textarea{font-size:15px;font-weight:500;line-height:1.8;height:150px;min-height:150px;padding:11px}.card-header>svg{width:18px}.presets-section{margin-top:14px}.presets-label{font-size:14px}.preset-chips{gap:6px}.preset-chip{font-size:13px;font-weight:650;padding:7px 9px;min-height:36px}.syntax-helper{margin-top:8px}.tax-rate-control{gap:8px}.tax-rate-control label,.tax-rate-control>span{font-size:13px}.tax-rate-control input{min-height:40px;font-size:15px;width:83px}
 .toolbar-card{padding:12px 0;gap:10px}.toolbar-status{font-size:16px}.toolbar-card .text-button{font-size:14px}.preview-format{font-size:12px}.preview-scroll-help{font-size:13px;margin-bottom:10px}.text-button{font-size:14px;min-height:38px}.label-row .text-button{font-size:13px}.btn{font-size:14px;font-weight:650;min-height:42px;padding:9px 13px}.workspace-heading .btn{font-size:14px}.download-bar{padding:12px;gap:10px}.download-bar>div:first-child{display:none}.toolbar-buttons{display:flex;flex-wrap:wrap;gap:8px;width:100%}.toolbar-buttons .btn-primary{flex:1}.download-caption{font-size:12px}.preview-actions,.preview-actions .text-button{font-size:13px}
 .invoice-sheet:not(.pdf-export){min-width:550px;min-height:670px;padding:28px;font-size:14px}.invoice-sheet:not(.pdf-export) .inv-top-bar{min-height:120px}.invoice-sheet:not(.pdf-export) .inv-business-title{font-size:24px;font-weight:700}.invoice-sheet:not(.pdf-export) .inv-main-heading{font-size:27px}.invoice-sheet:not(.pdf-export) .inv-details-table,.invoice-sheet:not(.pdf-export) .inv-sender-meta,.invoice-sheet:not(.pdf-export) .inv-client-details{font-size:12px}.invoice-sheet:not(.pdf-export) .inv-section-title{font-size:11px;letter-spacing:.8px}.invoice-sheet:not(.pdf-export) .inv-client-name{font-size:17px}.invoice-sheet:not(.pdf-export) .inv-client-section{padding:20px 0}.invoice-sheet:not(.pdf-export) .inv-payment-terms>div:last-child{font-size:12px!important}.invoice-sheet:not(.pdf-export) .inv-items-table{font-size:13px}.invoice-sheet:not(.pdf-export) .inv-items-table th{font-size:12px;padding:12px 4px}.invoice-sheet:not(.pdf-export) .inv-items-table td{padding:14px 4px}.invoice-sheet:not(.pdf-export) .inv-summary-container{grid-template-columns:minmax(0,1fr) minmax(180px,.85fr);gap:22px}.invoice-sheet:not(.pdf-export) .inv-notes-terms{font-size:12px}.invoice-sheet:not(.pdf-export) .inv-notes-title{font-size:11px}.invoice-sheet:not(.pdf-export) .totals-table{font-size:13px}.invoice-sheet:not(.pdf-export) .grand-total-row td{font-size:21px}.invoice-sheet:not(.pdf-export) .grand-total-row .t-label{font-size:15px}.btn-add-item{font-size:14px}.btn-del-row{font-size:22px;min-width:30px;min-height:36px}
 .invoice-sheet:not(.pdf-export) .invoice-branding{justify-content:center;flex-wrap:wrap;gap:5px 18px;margin-top:auto;padding:14px 6px 0;border-top:1px solid #d1dbea;font-size:11px;color:#526179}.invoice-branding a{color:#143f8f}.invoice-branding strong{font-weight:700}
 @media(min-width:1101px) and (max-width:1250px){.app-grid{grid-template-columns:330px minmax(0,1fr);gap:18px}.preview-panel{padding-left:13px;padding-right:13px}}
 @media(max-width:1100px){.app-grid{grid-template-columns:1fr}.control-panel{grid-template-columns:1fr 1fr;align-items:start}.preview-panel{max-width:900px;margin:0 auto}.workspace-heading .local-status{max-width:none}.invoice-sheet:not(.pdf-export){min-height:690px}.header-free{display:none}}
 @media(max-width:760px){.control-panel{grid-template-columns:1fr}.app-grid{gap:17px}.header-inner{justify-content:space-between}.workspace-heading{padding:14px 0;gap:9px}.workspace-heading>div{min-width:100%}.workspace-heading .btn{font-size:13px;min-height:40px}.workspace-heading .local-status{font-size:12px;min-width:100px}.card-header{padding:13px 14px 10px}.card-body{padding:0 14px 14px}.card-header h2{font-size:18px}.form-input,.form-select,.prompt-textarea{font-size:16px}.form-label{font-size:13px}.control-panel>.card:first-child .card-body{grid-template-columns:1fr 1fr;gap:9px}.control-panel>.card:first-child .business-extras{grid-column:1/-1}.control-panel>.card:first-child .field-help{font-size:12px}.prompt-textarea{height:142px;min-height:142px}.preset-chip{font-size:13px;min-height:38px}.preview-panel{padding:0 10px 14px}.invoice-sheet:not(.pdf-export){min-height:630px}.toolbar-status{font-size:15px}.toolbar-card .text-button{font-size:13px}.preview-scroll-help{font-size:12px}.toolbar-buttons{display:flex}.toolbar-buttons .btn{font-size:13px;padding:9px}.history-dialog{font-size:15px}.history-heading h2{font-size:22px}.history-row h3{font-size:17px}}
}

/* Start the editor directly beneath the header. */
@media screen {
 .builder-section{margin-top:0;padding-top:0}.main-wrapper{padding-top:0}
 .card-header h1{font-size:18px;font-weight:700;line-height:1.4;color:#203858;margin:0;letter-spacing:normal}
 .workspace-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.toolbar-card{flex-wrap:wrap}.preview-format{display:none}
 .business-save-note{grid-column:1/-1;margin-top:8px}.heading-control{display:flex;align-items:center;gap:12px;margin-bottom:12px}.heading-control .form-label{margin:0;flex:1}.heading-control .form-select{width:155px}
 .preview-actions>div{flex-wrap:wrap}.inv-main-heading{text-transform:uppercase;overflow-wrap:anywhere;letter-spacing:1px}
 .shipping-preview{margin:20px 0;border:1px solid #c9d5e7;border-radius:8px}.shipping-slip{padding:22px}
 #shippingSheet{display:none}
 #shippingForm .form-label{margin-top:14px}#shippingForm textarea{resize:vertical}
}
.shipping-slip{color:#203858;background:white;overflow-wrap:anywhere;font:15px/1.6 Arial,sans-serif}
.shipping-slip header{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #143f8f;padding-bottom:16px}.shipping-slip h2{font-size:26px;margin:0;color:#143f8f}.shipping-slip h3{font-size:13px;text-transform:uppercase;letter-spacing:1px;margin:0 0 8px;color:#526179}.shipping-slip p{margin:3px 0;white-space:pre-line}.shipping-addresses{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px 0}.shipping-slip table{width:100%;border-collapse:collapse;table-layout:fixed}.shipping-slip th,.shipping-slip td{text-align:left;padding:10px;border-bottom:1px solid #d1dbea}.shipping-slip th{background:#edf2fb}.shipping-slip th:last-child,.shipping-slip td:last-child{width:90px;text-align:right}.shipping-slip footer{text-align:center;border-top:1px solid #d1dbea;margin-top:36px;padding-top:16px;font-size:11px}.shipping-slip a{color:#143f8f}
@media screen and (max-width:760px){.workspace-actions{gap:12px}.shipping-slip{font-size:13px;padding:14px}.shipping-slip h2{font-size:21px}.shipping-slip header{flex-wrap:wrap;gap:8px}.shipping-addresses{grid-template-columns:1fr;gap:18px}.preview-actions>div{gap:12px}}
#invClientDetails,#invSenderAddress,#invNotes,#invTerms{white-space:pre-line}
