/* The letter artwork uses the established site palette. Layout dimensions below
   are specific to the approved desktop mockup, with responsive rules at the end. */
.workflow {
  --letter-night: #101a2d;
  --letter-cream: #fff7e8;
  --letter-border: #c3a36d;
  --letter-ornament: #b58136;
  min-height: 100vh;
  background: var(--letter-night) url('/checkout-letter/winter-background.webp') center 56px / max(100%, 1419px) auto no-repeat;
}
.workflow .site-header { background: #101728f2; }
.workflow .header-inner { max-width: 1040px; min-height: 56px; }
.workflow .flow { width: min(1120px, calc(100% - 64px)); max-width: 1120px; padding: 0 0 28px; }
.workflow .letter-title { text-align: center; margin: 0; padding: 17px 0 0; color: var(--letter-cream); }
.workflow .letter-title .letter-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 0 0 3px; color: var(--gold); font-size: .81rem; font-weight: 700;
  line-height: 1.5; letter-spacing: .25em; text-transform: uppercase;
}
.letter-eyebrow > span { font-size: 1.4rem; line-height: 1; }
.workflow .letter-title h1 { margin: 0; font-size: clamp(2.4rem, 4.3vw, 3.85rem); letter-spacing: -.045em; line-height: 1.03; }
.workflow .letter-title > p:last-child { margin: 0; color: var(--letter-cream); font-size: 1.1rem; }
.workflow .flow-progress {
  width: min(720px, 100%); display: flex; gap: 0; align-items: center;
  margin: 8px auto 10px; min-height: 40px; color: var(--letter-cream);
}
.workflow .flow-progress li {
  display: flex; flex: 1; align-items: center; gap: 10px; position: relative;
  color: var(--letter-cream); border: 0; padding: 0; font-size: .88rem; white-space: nowrap;
}
.workflow .flow-progress li:not(:last-child)::after {
  content: ''; height: 1px; flex: 1; margin: 0 14px 0 2px; background: #f0cd9080;
}
.workflow .flow-progress li:last-child { flex: 0; }
.letter-step-number {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border: 1px solid #fff7e8b3; border-radius: 50%; font-size: .95rem;
}
.flow-progress [aria-current] .letter-step-number { background: var(--red); border-color: var(--letter-cream); box-shadow: 0 0 12px #f2b28875; }
.letter-sheet {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 308px; gap: 30px;
  padding: 32px 40px 24px 64px; border: 1px solid #dfc28a; border-radius: 12px;
  background: #fffbf4 url('/christmas-reference/paper-texture.webp') center / 620px;
  background-blend-mode: multiply;
  box-shadow: 0 10px 45px #030a2180, inset 0 0 25px #d7ad6640;
}
/* A deckled edge is a separate layer, so focus rings and resized fields remain visible. */
.letter-sheet::before, .letter-sheet::after {
  content: ''; position: absolute; z-index: -1; left: 8px; right: 8px; height: 6px;
  background: #fffbf4 url('/christmas-reference/paper-texture.webp') center / 620px;
  background-blend-mode: multiply;
  clip-path: polygon(0 40%,1% 10%,2% 45%,3% 25%,4% 55%,5% 20%,6% 40%,7% 10%,8% 45%,9% 25%,10% 50%,11% 10%,12% 40%,13% 20%,14% 50%,15% 15%,16% 40%,17% 10%,18% 50%,19% 25%,20% 50%,21% 10%,22% 40%,23% 20%,24% 45%,25% 10%,26% 40%,27% 15%,28% 50%,29% 20%,30% 45%,31% 10%,32% 40%,33% 20%,34% 50%,35% 10%,36% 45%,37% 20%,38% 50%,39% 15%,40% 45%,41% 10%,42% 40%,43% 20%,44% 50%,45% 15%,46% 40%,47% 10%,48% 50%,49% 20%,50% 40%,51% 10%,52% 50%,53% 20%,54% 45%,55% 10%,56% 40%,57% 20%,58% 50%,59% 15%,60% 45%,61% 10%,62% 40%,63% 20%,64% 50%,65% 10%,66% 40%,67% 20%,68% 50%,69% 15%,70% 45%,71% 10%,72% 40%,73% 20%,74% 50%,75% 10%,76% 45%,77% 20%,78% 50%,79% 15%,80% 40%,81% 10%,82% 50%,83% 20%,84% 45%,85% 10%,86% 40%,87% 20%,88% 50%,89% 15%,90% 45%,91% 10%,92% 40%,93% 20%,94% 50%,95% 10%,96% 45%,97% 20%,98% 50%,99% 15%,100% 40%,100% 100%,0 100%);
}
.letter-sheet::before { top: -3px; }
.letter-sheet::after { bottom: -3px; transform: rotate(180deg); }
.letter-content { min-width: 0; }
.letter-corners { position: absolute; inset: 10px; pointer-events: none; color: var(--letter-ornament); }
.letter-corner { position: absolute; width: 36px; height: 36px; }
.letter-corner.top-left { left: 0; top: 0; }
.letter-corner.top-right { right: 0; top: 0; transform: rotate(90deg); }
.letter-corner.bottom-left { left: 0; bottom: 0; transform: rotate(-90deg); }
.letter-corner.bottom-right { right: 0; bottom: 0; transform: rotate(180deg); }
.letter-details h2, .letter-details legend { font-family: var(--heading); font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.letter-details h2 { margin: 0 0 18px; }
.letter-details h3 { margin: 20px 0 9px; font-size: clamp(1.4rem, 2.1vw, 1.8rem); letter-spacing: -.035em; }
.workflow .select-characters { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 24px; }
.workflow .choice-card { position: relative; border-color: #b7a88e; background: #fffcf380; border-radius: 10px; }
.workflow .select-characters .choice-card { max-width: none; padding: 3px; }
.workflow .select-characters .choice-card img { aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: contain; object-position: center; border-radius: 6px 6px 0 0; }
.workflow .choice-card:has(:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.workflow .choice-card > input[type="radio"] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.workflow .choice-card > .letter-character-name { display: block; padding: 5px 2px 4px; text-align: center; font-size: .85rem; line-height: 1.3; overflow-wrap: anywhere; }
.workflow .choice-card > .letter-choice-check {
  display: none; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; padding: 4px;
  background: var(--red); color: var(--letter-cream); border: 2px solid var(--letter-cream); border-radius: 50%;
}
.letter-choice-check svg { width: 100%; height: 100%; }
.workflow .choice-card:has(:checked) .letter-choice-check { display: block; }
.workflow .voice-choices { margin: 0; }
.workflow .voice-choices legend { margin-bottom: 2px; }
.workflow .voice-choices > .hint { margin: 0; font-size: .85rem; }
.workflow .select-voices { margin: 9px 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.workflow .voice-card { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 9px 20px; color: var(--green); }
.workflow .voice-card > span { padding: 0; }
.workflow .voice-card .letter-voice-name { font-size: .95rem; overflow-wrap: anywhere; }
.workflow .voice-card:has(:checked) { color: var(--red); }
.letter-voice-play { display: grid !important; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; }
.letter-voice-play svg { width: 20px; height: 20px; }
.voice-card:has(:checked) .letter-voice-play { background: var(--red); color: var(--letter-cream); border-color: var(--red); }
.letter-voice-check { display: none !important; margin-left: auto; flex: none; }
.letter-voice-check svg { width: 24px; height: 24px; }
.voice-card:has(:checked) .letter-voice-check { display: flex !important; }
.workflow .voice-card > .letter-no-preview { margin: 0 0 0 auto; padding: 0; font-size: .7rem; }
.workflow .voice-preview { margin-top: 10px; background: #e6d7bf66; padding: 8px 12px; }
.workflow .voice-preview p { margin-bottom: 4px; font-size: .8rem; }
.workflow .voice-preview audio { height: 32px; }
.workflow [data-preview-status]:empty { display: none; }
.message-templates { margin: 10px 0 20px; }
.template-intro { margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.template-categories { display: flex; gap: 22px; border-bottom: 1px solid #d9cbb6; margin-bottom: 16px; }
.template-categories button { min-height: 44px; padding: 8px 0 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 600 .85rem var(--body); }
.template-categories [aria-pressed="true"] { color: var(--red); border-bottom-color: var(--red); }
.template-label { margin: 4px 0 18px; color: var(--ink); font: 600 clamp(1.2rem, 1.6vw, 1.4rem)/1.35 var(--heading); letter-spacing: -.02em; }
.template-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 10px; }
.template-choice { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 17px; border: 1px solid #a4654e; border-radius: 999px; background: #f8e7d0; box-shadow: 0 3px 0 #cdb18d; color: var(--red); text-align: left; font: 600 .8rem/1.4 var(--body); transition: background-color .12s, transform .12s, box-shadow .12s; }
.template-choice:hover { background: #f2d7b3; border-color: var(--red); }
.template-choice:active { transform: translateY(2px); box-shadow: 0 1px 0 #cdb18d; }
.template-choice[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--letter-cream); box-shadow: 0 3px 0 var(--wine); }
.template-indicator { display: grid; place-items: center; flex: none; width: 18px; height: 18px; }
.template-arrow, .template-check { grid-area: 1 / 1; }
.template-arrow { font-size: 1.1rem; line-height: 1; }
.template-check { visibility: hidden; width: 18px; height: 18px; }
.template-check svg { display: block; width: 100%; height: 100%; }
.template-choice[aria-pressed="true"] .template-check { visibility: visible; }
.template-choice[aria-pressed="true"] .template-arrow { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .template-choice { transition: none; } }
.template-own { min-height: 42px; padding: 9px 0 0; border: 0; background: transparent; color: var(--muted); text-align: left; font: 400 .8rem var(--body); text-decoration: underline; text-underline-offset: 3px; }
.template-own[aria-pressed="true"] { color: var(--red); }
.template-details { margin-top: 14px; padding-top: 18px; border-top: 1px solid #d9cbb6; }
.template-details h4 { margin: 0 0 12px; font: 600 .85rem var(--body); }
.template-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.template-fields label { display: block; min-width: 0; margin: 0; font-size: .8rem; }
.template-fields label:first-child { grid-column: 1 / -1; }
.template-fields input { min-width: 0; min-height: 44px; width: 100%; margin: 6px 0 0; padding: 10px 12px; border: 1px solid #bbaa94; border-radius: 6px; background: #fffdf8; color: var(--ink); font: 400 1rem/1.5 var(--body); }
.template-confirm { margin-top: 12px; padding-block: 12px; border-block: 1px solid #d9cbb6; font-size: .8rem; }
.template-confirm p { margin: 0; }
.template-confirm > div { display: flex; flex-wrap: wrap; gap: 18px; }
.template-confirm button { min-height: 44px; font-size: .8rem; }
.template-error { margin: -8px 0 18px; color: var(--red); font-size: .8rem; }
.workflow .message-templates [hidden] { display: none; }
.workflow .message-templates button:focus-visible, .template-fields input:focus-visible { outline: 3px solid var(--letter-ornament); outline-offset: 3px; }
.letter-details .letter-message textarea { min-height: 180px; overflow: hidden; }
.letter-details > label { font-size: .85rem; line-height: 1.45; }
.letter-details :is(textarea, input[type="email"]) { background: #fffdf8c9; font-size: .82rem; border-color: #bbaa94; margin: 3px 0 0; padding: 7px 10px; }
.letter-details textarea { display: block; height: 96px; min-height: 96px; line-height: 1.5; }
.letter-details textarea::placeholder, .letter-details input::placeholder { color: #615e59; opacity: 1; }
.letter-message-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; margin: 4px 0 12px; }
.letter-message-help small, .letter-details #delivery-email-help { font-size: .74rem; line-height: 1.55; }
.letter-message-help small:last-child { margin-left: auto; white-space: nowrap; }
.letter-details #delivery-email-help { margin: 4px 0 0; }
.workflow .letter-details .actions { margin-top: 18px; }
.letter-details .actions .button { width: 100%; min-height: 45px; padding: 8px 18px; border: 1px solid #a94b40; border-radius: 15px; background: linear-gradient(110deg, #8f2925, var(--red)); font-size: 1.1rem; font-weight: 600; }
.letter-details .actions .button:hover { background: var(--wine); }
.letter-details .actions .button > span { margin-left: 5px; font-size: 1.4rem; line-height: 1; }
.letter-reassurance { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: .74rem; }
.letter-reassurance svg { width: 15px; height: 15px; color: var(--green); }
.letter-aside { position: relative; padding-left: 28px; min-width: 0; }
.letter-aside::before { content: ''; position: absolute; top: 30px; bottom: 24px; left: 0; width: 1px; background: #c8ac7770; }
.letter-postmark { display: block; width: 200px; height: 104px; margin: -22px -5px -1px auto; color: #9d332b; transform: rotate(-9deg); }
.letter-envelope { width: calc(100% + 38px); max-width: none; height: auto; margin: 0 -19px -10px; }
.letter-divider { display: flex; align-items: center; gap: 6px; margin: 16px 0; color: var(--letter-ornament); }
.letter-divider > span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--letter-ornament)); }
.letter-divider > span:last-child { transform: rotate(180deg); }
.letter-divider svg { width: 13px; height: 13px; }
.letter-aside h2 { font-size: 1.65rem; letter-spacing: -.035em; line-height: 1.2; margin: 20px 0 24px; white-space: nowrap; }
.letter-benefits { padding: 0; margin: 0 0 25px; list-style: none; }
.letter-benefits li { display: flex; align-items: center; gap: 17px; margin-bottom: 16px; font-size: .95rem; }
.letter-benefits svg { width: 32px; height: 32px; flex: none; color: var(--green); }
.letter-cottage { width: calc(100% + 20px); max-width: none; height: auto; margin: 23px -10px 0; }
.workflow .form-status { margin: 12px 0 0; font-size: .9rem; }
.workflow .form-status:empty { display: none; }
.letter-review h2 { font-size: 2rem; }
.letter-review .review div { grid-template-columns: minmax(95px, 1fr) 3fr; }
.letter-review .actions { margin-top: 28px; }
.letter-sheet:has([data-step="3"]:not([hidden])) {
  grid-template-columns: minmax(0, 1fr); max-width: 650px; margin-inline: auto;
  padding: 32px 38px 24px; border-radius: 16px;
}
.letter-sheet:has([data-step="3"]:not([hidden])) .letter-aside { display: none; }
.letter-sheet:has([data-step="3"]:not([hidden])) .letter-corners { display: none; }
.letter-sheet:has([data-step="3"]:not([hidden]))::before,
.letter-sheet:has([data-step="3"]:not([hidden]))::after { display: none; }
.workflow .inline-payment .payment-layout { max-width: none; }
.workflow .payment-essential { padding: 0; }
.payment-essential .payment-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.payment-essential .payment-heading > div { min-width: 0; }
.payment-essential .payment-heading h2 { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.04em; }
.payment-essential .payment-heading > div > p { max-width: 280px; margin: 9px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.payment-essential .payment-total { display: block; flex: none; padding: 0; margin: 0; border: 0; text-align: right; }
.payment-essential .payment-total span { display: block; margin-bottom: 4px; font-size: .72rem; color: var(--muted); }
.payment-essential .payment-total strong { font-size: 2rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.payment-essential .payment-summary { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: .8rem; }
.payment-essential .payment-summary > div { min-width: 0; }
.payment-essential .payment-summary > div:last-child { text-align: right; }
.payment-essential .payment-summary dt { margin: 0 0 4px; font-weight: 600; }
.payment-essential .payment-summary dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.payment-essential .payment-delivery { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 20px; color: var(--green); font-size: .75rem; line-height: 1.5; }
.payment-essential svg { width: 17px; height: 17px; flex: none; }
.payment-essential .payment-delivery svg { margin-top: 1px; }
.payment-essential .payment-panel { min-width: 0; }
.payment-essential [data-payment-status] { margin: 0 0 16px; font-size: .82rem; }
.payment-essential [data-payment-status]:empty { display: none; }
.payment-essential .payment-methods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 18px; }
.payment-essential .payment-methods .button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 8px; border-radius: 10px; border-color: #ddcdb6; background: #fffdf8; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.payment-essential .payment-methods .button[aria-pressed="true"] { background: #f9eee4; border-color: var(--red); color: var(--red); }
.payment-essential .payment-method-hint { margin: 0 0 18px; font-size: .72rem; line-height: 1.5; }
.payment-essential .payment-panel label { font-size: .78rem; font-weight: 600; }
.payment-essential .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 16px; }
.payment-essential .payment-field { margin-bottom: 15px; }
.payment-essential .secure-input { height: 45px; margin-top: 7px; padding-inline: 12px; border-color: #cebea9; background: #fffdfa; }
.payment-essential .payment-panel input:not([type="hidden"]) { height: 45px; margin: 7px 0 15px; padding: 0 12px; border-color: #cebea9; background: #fffdfa; font-size: .88rem; }
.payment-essential .payment-panel input::placeholder { color: #857465; }
.payment-essential .payment-panel form > .button { min-height: 49px; margin-top: 7px; padding: 13px 16px; border-radius: 9px; font-size: .88rem; }
.payment-essential .payment-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; text-align: center; }
.payment-essential .payment-security strong { font-weight: 600; }
.payment-essential .payment-test { margin: 16px 0 0; font-size: .72rem; color: var(--muted); text-align: center; }
.payment-essential .payment-pix-intro { display: flex; align-items: start; gap: 12px; margin: 8px 0 22px; }
.payment-essential .payment-pix-intro > svg { width: 23px; height: 23px; color: var(--green); margin-top: 3px; }
.payment-essential .payment-pix-intro h3 { margin: 0 0 5px; font: 600 .94rem var(--body); }
.payment-essential .payment-pix-intro p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.payment-essential :is([data-payment-success], [data-price-review], [data-challenge], [data-pix-result]) h2 { font-size: 1.7rem; }
.inline-payment > .actions { justify-content: center; font-size: .82rem; }
.workflow > .flow > .notice { max-width: 720px; margin: 24px auto; }

@media (max-width: 640px) {
  .payment-essential .payment-heading { flex-wrap: wrap; gap: 16px; }
  .payment-essential .payment-heading h2 { font-size: 1.75rem; }
  .payment-essential .payment-total { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
  .payment-essential .payment-total span { margin: 0; font-size: .78rem; }
  .payment-essential .payment-summary { flex-direction: column; gap: 12px; }
  .payment-essential .payment-summary > div:last-child { text-align: left; }
  .payment-essential .payment-panel input:not([type="hidden"]) { font-size: 1rem; }
  .payment-essential .field-row { gap: 10px; }
  .payment-essential .payment-methods .button { font-size: .76rem; }
}

@media (min-width: 1600px) {
  .workflow { background-size: 100% auto; }
}
@media (max-width: 1100px) {
  .workflow .flow { width: calc(100% - 48px); }
  .letter-sheet { grid-template-columns: minmax(0, 1fr) 250px; padding: 30px 28px 26px 36px; gap: 24px; }
  .letter-aside { padding-left: 20px; }
  .workflow .select-characters { gap: 10px; }
  .workflow .select-voices { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow .voice-card { padding-inline: 12px; gap: 9px; }
  .letter-aside h2 { font-size: 1.4rem; }
}
@media (max-width: 850px) {
  .workflow { background-size: auto 1200px; }
  .workflow .header-inner { width: calc(100% - 40px); }
  .workflow .primary-nav { gap: 14px; }
  .workflow .primary-nav a { font-size: .73rem; }
  .workflow .brand { font-size: 1rem; }
  .workflow .flow { width: calc(100% - 40px); max-width: 720px; }
  .letter-sheet { grid-template-columns: minmax(0, 1fr); padding: 30px; }
  .letter-aside { display: none; }
  .workflow .letter-title { padding-top: 24px; }
  .workflow .letter-title .letter-eyebrow { font-size: .63rem; gap: 10px; letter-spacing: .18em; }
  .workflow .letter-title > p:last-child { font-size: .95rem; }
  .workflow .flow-progress { max-width: 600px; }
  .letter-details h2, .letter-details legend { font-size: 1.75rem; }
  .letter-details h3 { font-size: 1.6rem; }
}
@media (max-width: 520px) {
  .template-categories { gap: 18px; }
  .template-categories button { font-size: .8rem; }
  .template-choice { min-height: 44px; padding: 10px 14px; font-size: .8rem; }
  .template-fields { grid-template-columns: minmax(0, 1fr); }
  .workflow .header-inner { width: calc(100% - 24px); min-height: 62px; gap: 8px; }
  .workflow .brand { gap: 5px; font-size: .95rem; }
  .workflow .brand-santa { width: 32px; height: 36px; }
  .workflow .languages a { padding: 4px 6px; }
  .workflow .flow { width: calc(100% - 24px); padding-bottom: 30px; }
  .workflow .letter-title { padding: 24px 6px 0; }
  .workflow .letter-title .letter-eyebrow { font-size: .57rem; gap: 7px; letter-spacing: .12em; }
  .letter-eyebrow > span { font-size: 1rem; }
  .workflow .letter-title h1 { margin: 9px 0; font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .workflow .letter-title > p:last-child { font-size: .85rem; max-width: 30ch; margin-inline: auto; }
  .workflow .flow-progress { margin: 20px auto; }
  .workflow .flow-progress li { gap: 6px; font-size: .69rem; }
  .workflow .flow-progress li:not(:last-child)::after { margin-inline: 6px; }
  .letter-step-number { width: 26px; height: 26px; font-size: .8rem; }
  .letter-sheet, .letter-sheet:has([data-step="3"]:not([hidden])) { padding: 25px 20px 22px; gap: 0; border-radius: 8px; }
  .letter-corners { inset: 7px; }
  .letter-corner { width: 22px; height: 22px; }
  .letter-details h2, .letter-details legend { font-size: 1.45rem; }
  .letter-details h3 { font-size: 1.4rem; }
  .workflow .select-characters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
  .workflow .select-characters .choice-card img { aspect-ratio: 9 / 16; }
  .workflow .choice-card > .letter-character-name { font-size: .75rem; padding-block: 6px; }
  .workflow .choice-card > .letter-choice-check { width: 26px; height: 26px; right: 8px; top: 8px; }
  .workflow .select-voices { grid-template-columns: minmax(0, 1fr); }
  .workflow .voice-card { min-height: 48px; padding-inline: 14px; }
  .letter-details :is(textarea, input[type="email"], select) { font-size: 1rem; }
  .letter-details textarea { min-height: 144px; }
  .letter-message-help { display: block; margin-bottom: 16px; }
  .letter-message-help small:last-child { text-align: right; }
  .letter-details #delivery-email-help { font-size: .75rem; }
  .letter-details .actions .button { min-height: 48px; font-size: .95rem; border-radius: 12px; }
  .letter-review h2 { font-size: 1.65rem; }
  .letter-review .review div { grid-template-columns: minmax(0, 1fr); }
  .letter-review .actions { gap: 16px; }
  .letter-review .actions .button { width: 100%; }
  .workflow .suggestion { flex-direction: column; }
  .workflow .suggestion label, .workflow .suggestion .button { width: 100%; }
}
