:root {
  --ink: #1e2b28;
  --muted: #68736e;
  --line: #dfe4df;
  --soft-line: #edf0ec;
  --paper: #fffefa;
  --canvas: #f7f6f2;
  --mint: #d7eee1;
  --mint-strong: #a8d7bc;
  --coral: #ef775f;
  --coral-dark: #d95e4a;
  --yellow: #f6e8a5;
  --shadow: 0 22px 55px rgba(35, 52, 46, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header { height: 78px; display: flex; justify-content: space-between; align-items: center; padding: 0 5.5vw; border-bottom: 1px solid var(--line); background: rgba(247,246,242,.92); }
.site-header .site-nav { display: flex; align-items: center; gap: 22px; order: 2; }
.site-header .site-nav a { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.site-header .site-nav a:hover, .site-header .site-nav a.active { color: var(--ink); }
.site-header .site-nav .nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 6px; color: white; background: var(--coral); }
.site-header .site-nav .nav-cta:hover { color: white; background: var(--coral-dark); }
.site-header .site-nav a:not(.nav-cta) { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.site-header .menu-toggle { display: none; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); padding: 8px 10px; font-size: 11px; font-weight: 700; }
.site-header .menu-toggle span { color: var(--coral-dark); font-size: 16px; margin-left: 5px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; font: 700 19px "Space Grotesk", sans-serif; letter-spacing: -.6px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: var(--ink); background: var(--mint-strong); border-radius: 9px 9px 9px 3px; transform: rotate(-4deg); }
.brand-mark svg { width: 17px; height: 17px; transform: rotate(4deg); stroke-width: 2.5; }
.header-actions, .privacy-note, .button, .autosave, .preview-label, .icon-button, .add-item, .tip { display: flex; align-items: center; }
.header-actions { gap: 24px; }
.privacy-note { color: var(--muted); font-size: 12px; gap: 7px; }
.privacy-note svg { width: 14px; color: #6c9f82; }
.button { border: 0; justify-content: center; gap: 8px; font-weight: 700; border-radius: 7px; padding: 11px 16px; transition: .18s ease; }
.button svg { width: 16px; height: 16px; }
.button-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-ghost:hover { background: white; border-color: #bdc8c0; }
.app-shell { max-width: 1380px; margin: 0 auto; padding: 74px 5.5vw 80px; }
.intro-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; }
.eyebrow, .section-kicker { color: var(--coral-dark); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; margin: 0 0 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 600 clamp(39px, 5vw, 66px)/.99 "Space Grotesk", sans-serif; letter-spacing: -3.4px; margin-bottom: 20px; }
h1 em { color: var(--coral); font-style: normal; }
.intro-copy { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; }
.intro-aside { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; padding-bottom: 8px; }
.status-dot, .live-dot, .save-indicator { width: 7px; height: 7px; background: #5ca979; border-radius: 50%; box-shadow: 0 0 0 4px rgba(92,169,121,.13); }
.document-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.doc-tab { border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); display: flex; gap: 9px; justify-content: center; align-items: center; min-height: 70px; font-weight: 600; transition: .2s ease; position: relative; }
.doc-tab:first-child { border-left: 1px solid var(--line); }
.doc-tab:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.doc-tab.active { color: var(--ink); background: var(--mint); }
.doc-tab.active:after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; background: var(--coral); }
.tab-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 6px; background: rgba(255,255,255,.6); }
.tab-icon svg { width: 15px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, .78fr); gap: clamp(38px, 6vw, 92px); align-items: start; }
.editor-panel { min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font: 600 27px "Space Grotesk", sans-serif; letter-spacing: -1px; margin: 0; }
.autosave { gap: 8px; color: var(--muted); font-size: 11px; padding-top: 5px; }
.form-section { padding: 31px 0 35px; border-bottom: 1px solid var(--line); }
.last-section { border-bottom: 0; padding-bottom: 0; }
.section-title { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 25px; }
.step-number { color: var(--coral-dark); font: 700 11px "Space Grotesk", sans-serif; background: #fde2da; border-radius: 5px; padding: 7px 6px; }
.section-title h3 { margin: 0 0 3px; font: 600 16px "Space Grotesk", sans-serif; }
.section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.optional { color: var(--muted); font: 500 10px "DM Sans", sans-serif; margin-left: 5px; text-transform: uppercase; letter-spacing: .5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.brand-assets { margin-top: 20px; }
.asset-upload { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px; border: 1px dashed var(--line); border-radius: 6px; background: rgba(255,255,255,.3); }
.asset-heading, .signature-heading { display: flex; align-items: center; gap: 10px; }
.asset-heading strong { display: block; font-size: 12px; }
.asset-heading p, .signature-heading p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.asset-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #5d8d70; background: var(--mint); border-radius: 5px; }
.asset-icon svg { width: 16px; }
.upload-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; padding: 9px 11px; white-space: nowrap; }
.upload-button:hover { border-color: var(--mint-strong); background: var(--mint); }
.upload-button svg { width: 14px; }
.upload-button input { display: none; }
.asset-clear { border: 0; background: transparent; color: var(--coral-dark); font-size: 11px; font-weight: 700; padding: 5px; }
.shipping-toggle { margin-top: 17px; }
.check-field { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; cursor: pointer; }
.check-field input { accent-color: var(--coral); width: 15px; height: 15px; }
.shipping-field { margin-top: 15px; }
.document-meta-grid { margin-top: 2px; }
.template-picker { margin: 0 0 25px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.34); }
.template-picker-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: var(--ink); font-size: 11px; font-weight: 700; }
.template-picker-heading small { color: var(--muted); font-size: 10px; font-weight: 500; }
.template-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.template-option { display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid transparent; border-radius: 5px; padding: 8px; color: var(--ink); background: rgba(255,255,255,.45); text-align: left; }
.template-option:hover { border-color: var(--line); background: white; }
.template-option.active { border-color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(35,52,46,.08); }
.template-option strong, .template-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-option strong { font-size: 11px; }
.template-option small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.template-swatch { flex: 0 0 auto; width: 25px; height: 25px; border-radius: 5px; border: 3px solid rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(30,43,40,.13); }
.ledger-swatch { background: linear-gradient(135deg, #a8d7bc 0 50%, #ef775f 50%); }
.ocean-swatch { background: linear-gradient(135deg, #8dc4d8 0 50%, #205d78 50%); }
.terra-swatch { background: linear-gradient(135deg, #e7b08f 0 50%, #a94f3f 50%); }
.slate-swatch { background: linear-gradient(135deg, #aebcc6 0 50%, #293b4a 50%); }
.bank-grid { margin-bottom: 28px; }
.signature-area { border-top: 1px solid var(--soft-line); padding-top: 24px; }
.signature-heading { justify-content: space-between; margin-bottom: 14px; }
.signature-heading h3 { margin: 0; font: 600 14px "Space Grotesk", sans-serif; }
.compact-upload { padding: 8px 10px; }
.signature-pad-wrap { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(0deg, transparent, transparent 29px, #f0f2ee 30px), #fffefa; }
#signaturePad { display: block; width: 100%; height: 110px; cursor: crosshair; touch-action: none; }
.clear-signature { position: absolute; right: 8px; top: 8px; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.85); color: var(--muted); display: grid; place-items: center; }
.clear-signature:hover { color: var(--coral-dark); }
.clear-signature svg { width: 14px; }
.form-section-notes { margin-top: 25px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: var(--muted); font-size: 11px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: rgba(255,255,255,.42); padding: 11px 12px; outline: 0; transition: .18s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(168,215,188,.25); background: white; }
textarea { resize: vertical; line-height: 1.5; }
.items-editor { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 20px; background: rgba(255,255,255,.35); }
.items-header, .item-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px 100px 32px; gap: 8px; align-items: center; padding: 10px 13px; }
.items-header { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; background: #f0f3ef; }
.items-header span:nth-child(2), .items-header span:nth-child(3) { text-align: right; }
.item-row { border-top: 1px solid var(--soft-line); }
.item-row input { padding: 9px 8px; border-color: transparent; background: transparent; }
.item-row input:focus { background: white; border-color: var(--mint-strong); }
.item-row input[type="number"] { text-align: right; }
.remove-item { width: 26px; height: 26px; border: 0; background: transparent; color: #a2aba5; display: grid; place-items: center; border-radius: 4px; }
.remove-item:hover { color: var(--coral-dark); background: #fde2da; }
.remove-item svg { width: 14px; }
.add-item { gap: 6px; width: 100%; border: 0; border-top: 1px dashed var(--line); background: transparent; color: var(--coral-dark); font-size: 12px; font-weight: 700; padding: 13px; }
.add-item:hover { background: #fffaf5; }
.add-item svg { width: 15px; }
.compact-grid { grid-template-columns: 1fr 1fr 1fr; }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 28px; }
.input-with-suffix > span { position: absolute; right: 12px; top: 12px; color: var(--muted); }
.preview-column { position: sticky; top: 24px; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.preview-label { gap: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; font-weight: 700; }
.icon-button { width: 33px; height: 33px; border: 1px solid var(--line); color: var(--ink); background: transparent; justify-content: center; border-radius: 5px; }
.icon-button:hover { background: white; }
.icon-button svg { width: 15px; }
.paper { background: var(--paper); box-shadow: var(--shadow); min-height: 615px; padding: clamp(25px, 3.3vw, 43px); color: #28352f; }
.paper-topline, .paper-head, .paper-parties, .paper-bottom, .paper-footer { display: flex; justify-content: space-between; }
.paper-topline { align-items: center; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.paper-brand-wrap { display: flex; align-items: center; min-height: 29px; }
.paper-brand { font: 700 17px "Space Grotesk", sans-serif; letter-spacing: -.7px; }
.preview-logo { max-width: 110px; max-height: 32px; object-fit: contain; }
.brand-dot { color: var(--coral); }
.paper-type { font: 700 10px "Space Grotesk", sans-serif; letter-spacing: 1.4px; color: var(--coral-dark); }
.paper-head { gap: 20px; padding: 27px 0 22px; }
.paper-head h2 { margin: 0 0 7px; font: 600 21px "Space Grotesk", sans-serif; letter-spacing: -.8px; }
.paper p { margin: 0; color: #78837d; line-height: 1.55; font-size: 10px; }
.document-number { text-align: right; display: flex; flex-direction: column; gap: 4px; color: #87918c; font-size: 9px; }
.document-number strong { color: var(--ink); font-size: 13px; }
.document-number span[id="previewReference"] { color: #758078; }
.paper-parties { border-top: 1px solid var(--soft-line); padding: 17px 0 26px; gap: 20px; }
.paper-parties > div:first-child { min-width: 0; }
.paper-label { display: block; color: #8c958f; font-size: 8px; font-weight: 700; letter-spacing: 1px; margin-bottom: 7px; }
.paper-parties strong { display: block; font-size: 12px; margin-bottom: 2px; }
.due-box { text-align: right; min-width: 100px; }
.due-box strong { color: var(--coral-dark); font-size: 11px; }
.due-box span:last-child { display: block; color: #87918c; font-size: 9px; margin-top: 4px; }
.payment-status { display: inline-block; margin-top: 8px; border-radius: 3px; padding: 4px 5px; color: #996c17 !important; background: #fff1bf; font-size: 7px !important; font-weight: 700; letter-spacing: .7px; }
.payment-status.partial { color: #9a5b24 !important; background: #ffe0ba; }
.payment-status.paid { color: #357253 !important; background: var(--mint); }
.preview-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.preview-table th { text-align: left; background: var(--mint); color: #426053; padding: 9px 8px; font-size: 8px; letter-spacing: .8px; text-transform: uppercase; }
.preview-table th:not(:first-child), .preview-table td:not(:first-child) { text-align: right; }
.preview-table th:first-child { border-radius: 3px 0 0 3px; }
.preview-table th:last-child { border-radius: 0 3px 3px 0; }
.preview-table td { padding: 11px 8px; border-bottom: 1px solid var(--soft-line); }
.preview-table td:first-child { font-weight: 600; color: #35443d; }
.paper-bottom { align-items: end; gap: 24px; padding: 27px 0 28px; }
.paper-note { max-width: 45%; }
.paper-note p { font-size: 9px; }
.payment-block, .signature-block { margin-top: 16px; }
.payment-block p { font-size: 8px; }
.signature-block img { display: block; max-width: 120px; max-height: 38px; object-fit: contain; }
.totals { min-width: 145px; font-size: 10px; }
.totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0; }
.totals small { color: #9aa39e; font-size: 8px; }
.total-line { margin-top: 9px; padding-top: 10px !important; border-top: 1px solid var(--ink); color: var(--coral-dark); font-size: 13px; }
.paid-row { color: #5f7e6e; }
.paper-footer { border-top: 1px solid var(--soft-line); padding-top: 14px; color: #9ba49e; font-size: 8px; }
.template-ocean { --ink: #173b50; --muted: #607d89; --line: #d6e4ea; --soft-line: #e9f1f4; --mint: #dceef4; --coral: #3e91b4; --coral-dark: #216d8d; --paper: #fcfeff; }
.template-terra { --ink: #3d2d29; --muted: #806b62; --line: #e8d8d0; --soft-line: #f2e9e4; --mint: #f7e0d2; --coral: #c5684e; --coral-dark: #a84f3c; --paper: #fffdfa; }
.template-slate { --ink: #263744; --muted: #697783; --line: #d8e0e5; --soft-line: #e9eef1; --mint: #e1e9ee; --coral: #b4873d; --coral-dark: #8b672d; --paper: #fbfcfd; }
.template-ocean .paper-topline { border-bottom-width: 3px; }
.template-terra .paper-topline { border-bottom: 0; padding-bottom: 24px; }
.template-terra .preview-table th { border-radius: 0; }
.template-slate .paper-topline { border-bottom: 1px solid var(--ink); }
.template-slate .preview-table th { background: var(--ink); color: white; }
.template-slate .total-line { border-top-color: var(--coral); }
.preview-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 18px; }
.button-primary { background: var(--coral); color: white; }
.button-primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.button-secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--mint-strong); background: var(--mint); }
.tip { gap: 7px; justify-content: center; color: var(--muted); font-size: 10px; margin: 15px 0 0; }
.tip svg { width: 13px; color: #d2a92d; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 5.5vw; border-top: 1px solid var(--line); color: #8b958f; font-size: 11px; }
.invoice-seo-content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 70px; margin-top: 75px; padding-top: 42px; border-top: 1px solid var(--line); }
.embedded-editor .invoice-seo-content { display: none; }
.invoice-seo-content { display: block; max-width: 1060px; }
.seo-intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 70px; }
.invoice-seo-content h2 { max-width: 760px; margin: 0 0 14px; font: 600 28px/1.1 "Space Grotesk", sans-serif; letter-spacing: -1px; }
.invoice-seo-content h3 { margin: 24px 0 10px; font: 600 16px "Space Grotesk", sans-serif; }
.invoice-seo-content p:not(.section-kicker) { max-width: 780px; color: var(--muted); line-height: 1.7; }
.seo-section { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 42px; }
.seo-section h2 { font-size: 25px; }
.seo-list, .seo-steps { color: var(--muted); line-height: 1.7; padding-left: 21px; }
.seo-list li, .seo-steps li { margin: 7px 0; }
.seo-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; max-width: 780px; }
.seo-list-inline { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-left: 0; list-style-position: inside; }
.seo-note { padding: 15px 17px; border-left: 3px solid var(--mint-strong); background: rgba(215,238,225,.4); }
.comparison-wrap { width: 100%; min-width: 0; max-width: 780px; overflow-x: auto; }
.invoice-comparison { width: 100%; min-width: 560px; border-collapse: collapse; color: var(--muted); font-size: 13px; }
.invoice-comparison th { color: var(--ink); background: var(--mint); text-align: left; font: 600 12px "Space Grotesk", sans-serif; }
.invoice-comparison th, .invoice-comparison td { padding: 13px 15px; border: 1px solid var(--line); }
.seo-faq-list { max-width: 800px; }
.seo-faq-list details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.seo-faq-list summary { cursor: pointer; color: var(--ink); font: 600 14px "Space Grotesk", sans-serif; }
.seo-faq-list details p { margin: 11px 0 0; font-size: 13px; }
.seo-final-cta { margin-top: 50px; padding: 35px; background: var(--mint); }
.seo-final-cta h2 { margin-bottom: 9px; }
.seo-final-cta p { margin-bottom: 20px; }
.related-generators { border-left: 1px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; gap: 10px; align-content: start; }
.related-generators h3 { margin: 0 0 5px; font: 600 15px "Space Grotesk", sans-serif; }
.related-generators a { color: var(--coral-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.related-generators a:hover { text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 11px 16px; border-radius: 6px; font-size: 12px; transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .app-shell { padding: 55px 24px 65px; }
  .workspace { grid-template-columns: 1fr; gap: 55px; }
  .preview-column { position: static; max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 680px) {
  .site-header { height: 67px; }
  .site-header { position: relative; padding: 0 16px; }
  .site-header .site-nav { display: none; position: absolute; z-index: 20; top: 67px; right: 16px; left: 16px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 35px rgba(35,52,46,.12); }
  .site-header .site-nav.open { display: flex; }
  .site-header .site-nav a { padding: 13px 11px; border-bottom: 1px solid var(--soft-line); }
  .site-header .site-nav a:last-child { border-bottom: 0; }
  .site-header .site-nav .nav-cta { justify-content: center; margin-top: 7px; }
  .site-header .menu-toggle { display: block; order: 3; }
  .site-header .header-actions { order: 2; margin-left: auto; margin-right: 10px; }
  .site-header .header-actions .button-ghost { padding: 7px 8px; }
  .privacy-note { display: none; }
  .header-actions { gap: 0; }
  .button-ghost { padding: 8px 10px; font-size: 11px; }
  .app-shell { padding: 40px 16px 50px; }
  .intro-row { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 34px; }
  h1 { font-size: 43px; letter-spacing: -2.2px; }
  .intro-copy { font-size: 14px; }
  .document-tabs { grid-template-columns: repeat(3, 1fr); margin-left: -16px; margin-right: -16px; }
  .doc-tab { min-height: 67px; flex-direction: column; gap: 5px; font-size: 10px; }
  .doc-tab:nth-child(n+4) { border-top: 1px solid var(--line); }
  .doc-tab:nth-child(4) { border-left: 1px solid var(--line); }
  .panel-heading { align-items: center; }
  .panel-heading h2 { font-size: 23px; }
  .template-options { grid-template-columns: 1fr 1fr; }
  .form-grid, .compact-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .items-header, .item-row { grid-template-columns: minmax(0, 1fr) 48px 82px 26px; padding-left: 8px; padding-right: 8px; }
  .paper { padding: 24px 18px; min-height: 560px; }
  .paper-head { flex-direction: column; gap: 17px; }
  .document-number { text-align: left; align-items: flex-start; }
  .paper-bottom { align-items: stretch; flex-direction: column; }
  .paper-note { max-width: 100%; }
  .asset-upload, .signature-heading { align-items: flex-start; flex-direction: column; }
  .asset-upload { gap: 10px; }
  .upload-button { width: fit-content; }
  .site-footer { flex-direction: column; padding: 22px 16px; }
  .invoice-seo-content { display: block; margin-top: 55px; }
  .seo-intro-grid, .seo-columns { display: block; }
  .seo-columns .seo-list + .seo-list { margin-top: 0; }
  .invoice-seo-content h2, .seo-section h2 { font-size: 23px; }
  .seo-final-cta { padding: 25px 20px; }
  .related-generators { border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; padding: 28px 0 0; }
}
@media print {
  body { background: white; }
  .site-header, .app-shell > .intro-row, .document-tabs, .editor-panel, .preview-toolbar, .preview-actions, .tip, .site-footer, .invoice-seo-content { display: none !important; }
  .app-shell { padding: 0; }
  .workspace { display: block; }
  .preview-column { position: static; max-width: none; }
  .paper { box-shadow: none; margin: 0 auto; width: 100%; max-width: 700px; min-height: auto; }
}
