html { letter-spacing: 0; }
.hero h1, .section-head h2 { letter-spacing: 0; }
.hero-note { color: #cfe1f5; }
.wizard { height: min(850px, calc(100dvh - 32px)); border-radius: 8px; }
.wizard-main, .timeline { min-height: 0; }
.wizard-top, .wizard-actions { flex-shrink: 0; }
.step-panel { min-height: 0; overscroll-behavior: contain; }
.step-panel h2 { font-size: 32px; letter-spacing: 0; }
.choice { border-radius: 8px; min-height: 122px; padding: 16px 36px 16px 16px; display: grid; grid-template-columns: 100px minmax(0,1fr); column-gap: 14px; align-content: center; }
.choice img { width: 100px; height: 100px; object-fit: contain; grid-column: 1; grid-row: 1 / 5; border-radius: 4px; background: #eef2f6; }
.choice strong,.choice span,.choice .price-tag { grid-column: 2; }
.choice .price-tag { justify-self: start; font-size: 12px; }
.choice:focus-within { outline: 3px solid #00b7d6; outline-offset: 3px; }
.choice input { width: 22px; height: 22px; top: 12px; right: 10px; z-index: 2; }
.choice:after { pointer-events: none; }
.choice img.monochrome { filter: grayscale(1); }
.print-options { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.print-options legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 750; color: var(--navy); }
.choice:not(:has(img, .option-photo, .finishing-preview)) { display: block; }
.choice .option-photo { grid-column: 1; grid-row: 1 / 5; width: 100px; height: 100px; display: block; background-image: url('/mailing/assets/print-finishing-options.png'); background-size: 300% 200%; margin: 0; border-radius: 4px; }
.photo-single { background-position: 0 0; }
.photo-double { background-position: 50% 0; }
.photo-portrait { background-position: 100% 0; }
.photo-landscape { background-position: 0 100%; }
.photo-corner { background-position: 50% 100%; }
.finishing-preview { grid-column: 1; grid-row: 1 / 5; display: grid !important; place-items: center; width: 100px; height: 100px; margin: 0 !important; background: #edf2f7; border-radius: 4px; }
.finishing-preview i { display: block; position: relative; width: 53px; height: 72px; background: repeating-linear-gradient(to bottom,#fff 0 12px,#dce4ee 12px 14px,#fff 14px 20px); border: 1px solid #bbc8d6; box-shadow: 3px 3px 0 #fff,4px 4px 0 #cbd5df; }
.staple-corner i::before,.staple-edge i::before,.staple-edge i::after { content: ''; position: absolute; width: 13px; height: 3px; border: 1px solid #65788a; background: #d5dfe7; left: 3px; top: 5px; }
.staple-corner i::before { transform: rotate(-40deg); }
.staple-edge i::before { transform: rotate(90deg); left: -2px; top: 18px; }
.staple-edge i::after { transform: rotate(90deg); left: -2px; top: 50px; }
.finishing-options .choice { min-height: 126px; }
.choice-cell { position: relative; min-width: 0; }
.choice-cell .choice { height: 100%; }
.help-button { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid #879eb5; border-radius: 50%; background: #fff; color: #15395b; font-size: 14px; font-weight: 750; cursor: pointer; margin-left: 8px; flex-shrink: 0; }
.choice-cell .help-button { position: absolute; bottom: 12px; right: 12px; }
.help-dialog, .window-dialog { border: 1px solid #bed0df; border-radius: 8px; padding: 24px; width: min(560px,calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; color: #182b42; background: #fff; }
.help-dialog::backdrop, .window-dialog::backdrop { background: rgba(5,15,30,.6); }
.help-dialog h2,.window-dialog h2 { font-size: 22px; margin: 0 0 12px; }
.help-dialog p { margin: 0 0 20px; }
.window-dialog { width: min(720px,calc(100vw - 24px)); }
.window-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto auto; gap: 12px; height: min(760px,calc(100dvh - 32px)); overflow: hidden; }
.window-dialog > h2, .window-dialog > .field, .window-dialog > p { margin: 0; }
.window-dialog > button { justify-self: start; }
.window-dialog #proofResult { font-size: 14px; line-height: 1.45; max-height: 110px; overflow: auto; }
.proof-page { width: min(100%,500px); margin: 14px auto; max-height: max(150px,min(360px,calc(100dvh - 360px))); overflow: auto; }
.window-dialog .proof-page { margin: 0 auto; max-height: none; min-height: 0; height: 100%; }
.proof-paper { position: relative; }
.proof-page canvas { display: block; width: 100%; height: auto; border: 1px solid #c7d4e0; }
.proof-region { position: absolute; border: 2px dashed #057d6d; background: rgba(0,165,124,.12); pointer-events: none; }
.proof-region.return { border-color: #2858b8; background: rgba(35,80,170,.12); }
.proof-note { font-size: 13px; color: #56677a; }
.estimate-pill { max-width: 55%; overflow-wrap: anywhere; }
.step-link:disabled { opacity: .4; cursor: default; }
.field input:focus,.field select:focus { outline: 2px solid #007dad; outline-offset: 2px; }
.wizard-error { margin: 0 26px; padding: 10px 14px; background: #fff1f0; color: #a01c26; border-radius: 4px; font-size: 14px; }
.wizard-error:empty { display: none; }
.file-pill { gap: 12px; }
.file-pill { background: #fff; border: 1px solid #d6e1ed; border-radius: 6px; padding: 14px; }
.file-position,.recipient-number { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #edf3fb; color: #244b84; font-size: 13px; font-weight: 700; }
.file-pill strong { display: block; font-size: 14px; }
.file-pill small { display: block; color: #617086; margin-top: 3px; }
.file-pill > span:nth-child(2) { flex: 1; }
.upload-order,.page-count-status { color: #52677e; font-size: 14px; }
.page-count-status { font-weight: 650; }
.address-card { align-items: flex-start; border-radius: 6px; padding: 16px; background: #fff; }
.address-card p { flex: 1; line-height: 1.65; overflow-wrap: anywhere; }
.address-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.address-actions button { font-size: 13px; padding: 6px 0; }
.address-actions [data-delete] { color: #9a3341; }
.template-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.bulk-addresses { background: #f5f8fc; border: 1px solid #d9e4ef; border-radius: 6px; padding: 16px; }
.file-pill span { min-width: 0; overflow-wrap: anywhere; }
.file-pill button,.address-card button { flex-shrink: 0; }
.summary-card { overflow-wrap: anywhere; }
.step-link small { white-space: normal; }
.mail-card { transform: none; }
.legal-brand { color: #c8d8e8; font-size: 14px; margin-top: 18px; }
.return-fields { margin-top: 16px; }
.recipient-actions { display: flex; justify-content: flex-end; }
.packing-result { font-size: 15px; font-weight: 650; margin: 12px 0 22px; }
.bulk-addresses { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bulk-addresses a { display: inline-block; margin: 0 0 10px; }
.bulk-addresses p:empty, .address-status:empty { display: none; }
.address-status { font-size: 14px; }
#next.address-pending { background: #dcecff; color: #45658b; opacity: 1; cursor: not-allowed; }
#next:not(.address-pending) { background: #1546bd; color: #fff; }
[hidden] { display: none !important; }
.btn:disabled { opacity: .5; cursor: wait; }
@media(max-width:900px) {
  .wizard { width: calc(100vw - 20px); height: calc(100dvh - 20px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .timeline { display: block; padding: 10px 14px; }
  #steps { display: flex; gap: 8px; overflow-x: auto; }
  .step-link { flex: 0 0 auto; }
  .wizard-brand,.timeline h2,.timeline>p,.step-link strong,.step-link small { display: none; }
  .choice { grid-template-columns: 76px minmax(0,1fr); }
  .choice img { width: 76px; height: 90px; }
  .choice .option-photo { width: 76px; height: 76px; }
  .finishing-preview { width: 76px; height: 90px; }
}
@media(max-width:620px) {
  .wizard { width: 100vw; height: 100dvh; border-radius: 0; }
  .step-panel { padding: 20px 16px; }
  .step-panel h2 { font-size: 26px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 88px minmax(0,1fr); min-height: 112px; }
  .choice img { width: 88px; height: 88px; }
  .choice .option-photo { width: 88px; height: 88px; }
  .finishing-preview { width: 88px; height: 88px; }
  .address-card { flex-wrap: wrap; gap: 10px; }
  .address-actions { width: 100%; padding-left: 38px; }
  .wizard-top { gap: 8px; padding: 12px; }
  .wizard-top span { font-size: 13px; }
  .wizard-actions { padding: 12px; }
  .wizard-error { margin: 0 12px; }
}
.postage-summary { margin: 16px 0 22px; padding: 14px 16px; border-left: 3px solid #008395; background: #f0f9fa; color: #12313c; font-size: 14px; line-height: 1.5; }
.postage-summary > strong { display: block; font-size: 15px; }
.postage-summary p { margin: 6px 0; }
.postage-summary summary { cursor: pointer; margin-top: 10px; font-weight: 600; }
.postage-summary a { text-decoration: underline; }
.postage-warning { background: #fff8e7; border-left-color: #a66b00; color: #563800; }
