.postal-form-page { box-sizing: border-box; width: min(1320px, calc(100% - 48px)); margin: 28px auto 70px; padding: clamp(14px, 2vw, 24px); border: 1px solid #cde7d5; border-radius: 18px; }
.postal-form-page .account-save-alert { display: flex; margin-bottom: 18px; padding: 13px 16px; align-items: center; gap: 12px; border: 1px solid #bfe8d0; border-radius: 11px; background: #eefaf2; color: #246748; font-size: 13px; }
.postal-form-page .account-save-alert > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d7f2e1; font-weight: 800; }
.postal-form-page .account-save-alert p { flex: 1; margin: 0; }
.postal-form-page .account-save-alert a, .postal-form-page .account-save-result a { color: #087f78; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.postal-form-page .account-save-result { margin: 0 0 16px; padding: 12px 15px; border: 1px solid #bfe8d0; border-radius: 10px; background: #eefaf2; color: #246748; font-size: 13px; }
.postal-form-page .account-save-result.error { border-color: #f2c7c5; background: #fff3f2; color: #9b302c; }
.postal-form-toolbar { display: flex; width: 100%; margin: 0 auto 20px; align-items: center; justify-content: space-between; gap: 24px; }
.postal-form-toolbar h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.8px; }
.postal-form-toolbar p:last-child { margin: 6px 0 0; color: var(--muted); }
.postal-print-button { min-height: 43px; flex: 0 0 auto; padding: 0 16px; border: 0; border-radius: 10px; background: #087f78; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.postal-print-button:hover { background: #066761; }
.postal-print-sheet { box-sizing: border-box; width: min(100%, 520px); min-height: 700px; margin: 0 auto; padding: 22px; border: 1px solid #242424; border-radius: 18px; background: #fff; color: #171717; box-shadow: 0 8px 24px rgb(26 43 66 / 8%); font: 12px/1.25 Arial, Helvetica, sans-serif; }
.postal-form-heading { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.postal-wordmark { display: flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 400; white-space: nowrap; }
.postal-mark { font-size: 26px; font-weight: 800; line-height: 1; }
.postal-number-row { display: flex; margin: 8px 0 15px; align-items: end; gap: 5px; }
.postal-print-sheet input[type="text"] { box-sizing: border-box; min-width: 0; height: 24px; padding: 2px 3px; border: 0; border-bottom: 1px dotted #333; border-radius: 0; background: transparent; color: #111; font: inherit; outline: 0; }
.postal-number-row input { flex: 1; }
.postal-address { display: grid; margin: 0 0 10px; grid-template-columns: 74px minmax(0, 1fr); align-items: start; gap: 6px; }
.postal-address > strong { padding-top: 5px; }
.postal-address-lines { display: grid; gap: 5px; }
.postal-address-lines > input { width: 100%; }
.postal-city-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; }
.postal-city-row label { display: grid; min-width: 0; }
.postal-city-row small { margin-top: 1px; text-align: center; font-size: 9px; }
.postal-option-box { display: grid; margin: 0 0 10px; padding: 7px; gap: 8px; border: 1px solid #333; }
.postal-check-line, .postal-services > label, .postal-size label { display: flex; align-items: center; gap: 7px; }
.postal-print-sheet input[type="checkbox"], .postal-print-sheet input[type="radio"] { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: #222; }
.postal-inline-field { display: flex; min-width: 0; align-items: end; gap: 4px; }
.postal-inline-field input { flex: 1; }
.postal-services { display: grid; margin: 9px 0 10px; grid-template-columns: auto auto 1fr 60px; align-items: center; gap: 7px 14px; }
.postal-size { display: flex; min-width: 0; margin: 0; padding: 0; border: 0; align-items: center; gap: 10px; }
.postal-size legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.postal-stamp { width: 54px; height: 54px; grid-column: 4; grid-row: 1 / span 2; border: 1px solid #333; border-radius: 50%; }
.postal-bottom-fields { display: grid; margin-top: 7px; grid-template-columns: 1fr 1fr; gap: 12px; }
.postal-bottom-fields label { display: flex; min-width: 0; align-items: end; gap: 4px; white-space: nowrap; }
.postal-bottom-fields input { width: 44px; }
.postal-bottom-fields label:first-child input { width: 48px; }
.postal-form-footer { display: flex; margin-top: 9px; align-items: center; justify-content: space-between; }
.postal-form-footer small { font-size: 8px; }
.postal-editor-actions { display: flex; margin: 18px 0 0; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.postal-print-button-secondary { border: 1px solid #cde7d5; background: #fff; color: #087f78; }
.postal-print-button-secondary:hover { background: #eefaf2; }
.postal-reset-button { display: inline-flex; min-height: 43px; padding: 0 16px; align-items: center; justify-content: center; border: 1px solid #d5deea; border-radius: 10px; background: #fff; color: #354860; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 720px) {
  .postal-form-page { width: calc(100% - 28px); margin-top: 17px; }
  .postal-form-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .postal-print-sheet { min-height: 0; padding: 16px; }
  .postal-services { grid-template-columns: 1fr 1fr; }
  .postal-size { grid-column: 1 / -1; }
  .postal-stamp { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .postal-bottom-fields { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { min-width: 0 !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body * { visibility: hidden !important; }
  .postal-form-page, .postal-form-page * { visibility: visible !important; }
  .postal-form-page { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .postal-form-toolbar, .postal-editor-actions, .postal-form-page > .account-save-alert, .postal-form-page > .account-save-result { display: none !important; }
  .postal-print-sheet { width: 130mm !important; min-height: 183mm !important; margin: 0 auto !important; padding: 7mm !important; border: .3mm solid #222 !important; border-radius: 0 !important; box-shadow: none !important; font-size: 8pt !important; line-height: 1.15 !important; print-color-adjust: exact; }
  .postal-form-heading { min-height: 9mm !important; font-size: 8.5pt !important; }
  .postal-wordmark { font-size: 12pt !important; }
  .postal-mark { font-size: 18pt !important; }
  .postal-number-row { margin: 2mm 0 4mm !important; }
  .postal-print-sheet input[type="text"] { height: 6mm !important; padding: 0 1mm !important; font-size: 8pt !important; }
  .postal-address { margin-bottom: 3mm !important; grid-template-columns: 20mm minmax(0, 1fr) !important; gap: 1.5mm !important; }
  .postal-address > strong { padding-top: 1mm !important; }
  .postal-address-lines { gap: 1mm !important; }
  .postal-city-row { grid-template-columns: 27mm minmax(0, 1fr) !important; gap: 5mm !important; }
  .postal-city-row small { font-size: 6.5pt !important; }
  .postal-option-box { margin-bottom: 3mm !important; padding: 2mm !important; gap: 1.5mm !important; }
  .postal-print-sheet input[type="checkbox"], .postal-print-sheet input[type="radio"] { width: 4mm !important; height: 4mm !important; }
  .postal-print-sheet input:disabled { opacity: 1 !important; }
  .postal-services { margin: 2mm 0 3mm !important; grid-template-columns: auto auto 1fr 15mm !important; gap: 1.5mm 3mm !important; }
  .postal-size { grid-column: auto !important; gap: 2.5mm !important; }
  .postal-stamp { width: 14mm !important; height: 14mm !important; grid-column: 4 !important; }
  .postal-bottom-fields { margin-top: 2mm !important; grid-template-columns: 1fr 1fr !important; gap: 3mm !important; }
  .postal-bottom-fields label { gap: 1mm !important; }
  .postal-bottom-fields input { width: 12mm !important; }
  .postal-bottom-fields label:first-child input { width: 13mm !important; }
  .postal-form-footer { margin-top: 2mm !important; }
  .postal-form-footer small { font-size: 6pt !important; }
}
