.create-page {
  --create-serif: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "Noto Serif CJK SC", serif;
  min-height: 100dvh;
  background: var(--bg, #fbf8f4);
  color: var(--ink, #302c2a);
}

.create-page *, .create-page *::before, .create-page *::after { box-sizing: border-box; }
.create-page .serif { font-family: var(--create-serif); font-weight: 400; }
.create-page [hidden] { display: none !important; }
.create-page button, .create-page input, .create-page select, .create-page textarea { font: inherit; }
.create-page button, .create-page a, .create-page input, .create-page select, .create-page textarea { -webkit-tap-highlight-color: transparent; }
.create-page button:focus-visible, .create-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.create-page h1, .create-page h2, .create-page p, .create-page figure { margin: 0; }
.create-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 50px; white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 12px 20px; color: white; background: var(--accent); }
.skip-link:focus { top: 12px; }
.create-header { position: relative; min-height: 84px; border-bottom: 1px solid var(--line); }
.create-header > .create-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.create-header .brand { display: inline-flex; align-items: center; gap: 17px; color: var(--accent); font: 32px/1 var(--create-serif); text-decoration: none; }
.create-header .brand-small { border-left: 1px solid #c9bfb6; padding-left: 17px; color: var(--muted); font: 11px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .08em; }
.create-header-actions { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.home-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; }
.home-link:hover { color: var(--accent); }
.clear-draft { font-size: 13px; min-height: 44px; }
.create-layout { display: grid; grid-template-columns: 246px minmax(0, 1fr); column-gap: 66px; align-items: start; padding-block: 58px 80px; }
.writing-guide { position: sticky; top: 36px; padding-top: 3px; }
.guide-intro .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .08em; margin-bottom: 19px; }
.guide-title { font-size: 36px; line-height: 1.5; letter-spacing: -.02em; }
.guide-description { margin-top: 18px !important; color: var(--muted); font-size: 14px; line-height: 1.95; }
.step-navigation { margin-top: 35px; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { position: relative; }
.step-list li + li { margin-top: 8px; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 54px; width: 1px; height: 21px; background: var(--line); }
.step-link { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; min-height: 68px; padding: 8px 0; border: 0; background: transparent; text-align: left; color: var(--muted); cursor: pointer; }
.step-number { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; font: 14px/1 Georgia, serif; background: var(--bg); transition: color .15s, background .15s, border-color .15s; }
.step-copy { display: flex; flex-direction: column; gap: 3px; }
.step-copy strong { font-size: 15px; font-weight: 500; line-height: 1.5; }
.step-copy small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.step-link:hover { color: var(--accent); }
.step-link[aria-current="step"], .step-link.is-active { color: var(--accent); }
.step-link[aria-current="step"] .step-number, .step-link.is-active .step-number { background: var(--accent); border-color: var(--accent); color: white; }
.step-link.is-complete .step-number, .step-link[data-complete="true"] .step-number { border-color: #c49c91; color: var(--accent); }
.step-link:disabled { cursor: default; opacity: .6; }
.guide-note { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 23px; }
.note-character { color: var(--accent); font-size: 33px; line-height: 1; }
.guide-note p { color: var(--muted); font-size: 11px; line-height: 1.9; }
.draft-note { margin-top: 23px; color: var(--muted); font-size: 11px; line-height: 1.9; }
#storage-status { margin-top: 9px; color: var(--accent-dark); }
#storage-status:empty { display: none; }
.writing-area { min-width: 0; }
.writing-paper { position: relative; margin: 0; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 8px 36px #51433607; }
.writing-paper::before { content: ""; display: block; height: 3px; margin: -1px -1px 0; background: var(--accent); }
.step-panel { padding: 39px 43px 0; }
.paper-heading { margin-bottom: 31px; }
.paper-kicker { margin-bottom: 16px !important; font-size: 11px; line-height: 1.5; color: var(--accent); letter-spacing: .12em; }
.paper-heading h1, .paper-heading h2 { font-size: clamp(29px, 2.6vw, 37px); line-height: 1.5; letter-spacing: -.025em; outline: none; }
.paper-heading h1:focus-visible, .paper-heading h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.paper-heading > p:last-child { margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.mobile-break { display: none; }
.form-group { padding: 0; margin: 0; border: 0; min-width: 0; }
.field-label { display: block; padding: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.7; margin-bottom: 12px; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.85; }
.group-hint { margin-top: -5px !important; margin-bottom: 14px !important; }
.package-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.option-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 17px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: background .15s, border-color .15s; }
.option-card:hover { border-color: #c79b8e; background: #fcf6f1; }
.option-card:has(input:checked), .option-card.is-selected { border-color: var(--accent); background: #faf0e9; box-shadow: inset 0 0 0 1px var(--accent); }
.option-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.option-card input[type="radio"] { flex: 0 0 15px; width: 15px; height: 15px; margin: 4px 0 0; accent-color: var(--accent); cursor: pointer; }
.option-content { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.option-title { display: block; color: var(--ink); font: 20px/1.45 var(--create-serif); }
.option-description { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.option-price { display: block; margin-top: 16px; color: var(--accent-dark); font: 24px/1.2 Georgia, serif; }
.option-price small { margin-left: 3px; color: var(--muted); font: 11px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.style-group { margin-top: 29px; }
.style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.style-options .option-card { padding: 15px 12px; gap: 8px; }
.style-options .option-title { font-size: 18px; }
.style-options .option-description { margin-top: 6px; }
.style-options .option-card img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.occasion-row { margin-top: 30px; }
.form-field { min-width: 0; }
.form-field > .field-label { margin-bottom: 10px; }
.optional { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: 11px; }
.required-mark { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #cfc5bc; border-radius: 2px; background: #fffefa; color: var(--ink); padding: 12px 13px; font-size: 14px; line-height: 1.6; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.form-field input, .form-field select { min-height: 48px; }
.form-field select { padding-right: 28px; }
.form-field input[type="date"] { appearance: auto; -webkit-appearance: auto; }
.form-field textarea { resize: vertical; min-height: 224px; line-height: 2; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #81776f; opacity: 1; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); outline: 2px solid #bf473b24; outline-offset: 2px; }
.form-field [aria-invalid="true"] { border-color: var(--accent-dark); background: #fff9f5; }
.form-field > .field-hint:last-child { margin-top: 8px; }
.field-error { color: var(--accent-dark); font-size: 12px; line-height: 1.7; margin-top: 8px !important; }
.field-error:empty { display: none; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 25px 0 27px; border-top: 1px solid var(--line); }
.step-footer-note { font-size: 11px; line-height: 1.85; color: var(--muted); max-width: 180px; }
.step-actions .button { flex-shrink: 0; font-size: 13px; padding-inline: 23px; }
.back-button { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; border: 0; color: var(--muted); font-size: 13px; }
.back-button:hover { color: var(--accent); }
.story-field { margin-top: 28px; }
.story-hint { margin-top: -3px !important; margin-bottom: 13px !important; }
.lyrics-field { margin-top: 27px; }
.lyrics-hint { margin-top: -3px !important; margin-bottom: 13px !important; }
.lyrics-field textarea { min-height: 150px; }
.story-field-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; min-height: 28px; }
.story-count { margin-top: 7px !important; margin-left: auto !important; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.story-prompt { margin-top: 25px; padding: 18px 21px; background: var(--soft); display: flex; gap: 17px; align-items: center; }
.story-prompt > span { font-size: 29px; color: var(--accent); }
.story-prompt p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.story-prompt strong { font-weight: 400; color: var(--ink); }
.upload-zone { position: relative; border: 1px dashed #c99a8b; background: #fbf5f0; }
.upload-zone:hover { border-color: var(--accent); background: #f9f0e8; }
.upload-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 5px; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.upload-label { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 29px 25px 27px; cursor: pointer; }
.photo-outline { display: grid; place-items: center; width: 50px; height: 42px; margin-bottom: 19px; border: 1px solid #c5a69b; transform: rotate(-5deg); background: var(--paper); box-shadow: 4px 4px 0 #eadbd2; }
.photo-outline span { font: 25px/1 var(--create-serif); color: var(--accent); transform: rotate(5deg); }
.upload-label > strong { font: 23px/1.6 var(--create-serif); }
.upload-label > span:not(.photo-outline):not(.music-outline):not(.upload-button) { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 5px; }
.upload-button { margin-top: 18px; min-height: 40px; border: 1px solid var(--accent); padding: 9px 25px; color: var(--accent); background: var(--paper); font-size: 12px; line-height: 1.7; }
.photo-guidance-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-top: 13px; }
.photo-count { flex-shrink: 0; color: var(--accent-dark); font-size: 11px; line-height: 1.85; font-variant-numeric: tabular-nums; }
.photo-status { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 12px !important; }
.photo-status:empty { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 24px; }
.photo-grid:empty { display: none; }
.photo-item { position: relative; min-width: 0; padding: 6px 6px 0; border: 1px solid var(--line); background: #fffefa; box-shadow: 0 3px 10px #51433608; }
.photo-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-item figcaption { padding: 9px 32px 10px 3px; color: var(--muted); font-size: 10px; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-remove { position: absolute; bottom: 0; right: 2px; min-width: 44px; min-height: 44px; padding: 5px; border: 0; background: transparent; color: var(--accent-dark); font-size: 12px !important; cursor: pointer; }
.photo-remove:hover { text-decoration: underline; }
.photo-privacy { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 28px; }
.photo-privacy > p { color: var(--muted); font-size: 11px; line-height: 1.9; }
.music-material { margin-top: 31px; padding-top: 27px; border-top: 1px solid var(--line); }
.music-material-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.music-material-heading .field-label { margin-bottom: 7px; }
.music-local-tag { flex: 0 0 auto; border: 1px solid #d7bcac; padding: 4px 8px; color: var(--accent-dark); background: #fcf2eb; font-size: 10px; line-height: 1.6; white-space: nowrap; }
.music-upload-zone { margin-top: 17px; }
.music-upload-label { padding-block: 25px 23px; }
.music-outline { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 15px; border: 1px solid #c5a69b; border-radius: 50%; color: var(--accent); background: var(--paper); box-shadow: 4px 4px 0 #eadbd2; font: 29px/1 Georgia, serif; }
.music-status { min-height: 1.7em; margin-top: 11px !important; color: var(--muted); font-size: 12px; line-height: 1.8; }
.music-status:empty { display: none; }
.music-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 13px 17px; margin-top: 17px; padding: 17px; border: 1px solid #decfc2; background: #fffaf5; }
.music-preview-copy { min-width: 0; }
.music-preview-title { overflow-wrap: anywhere; color: var(--ink); font: 18px/1.55 var(--create-serif); }
.music-preview .field-hint { margin-top: 3px !important; }
.music-preview audio { grid-column: 1 / -1; display: block; width: 100%; height: 38px; accent-color: var(--accent); }
.music-remove { align-self: start; min-height: 40px; border-bottom-color: #ceaa99; font-size: 12px; white-space: nowrap; }
.music-consent { grid-column: 1 / -1; margin-top: 0; }
.music-local-note { margin-top: 14px !important; color: var(--muted); font-size: 11px; line-height: 1.9; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; color: var(--ink); font-size: 12px; line-height: 1.85; cursor: pointer; }
.consent-label input { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 16px; accent-color: var(--accent); }
.consent-label input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.restore-notice, .app-notice { border: 1px solid #d7bcac; padding: 13px 16px; background: #f6ece3; color: var(--ink); font-size: 12px; line-height: 1.85; }
.restore-notice { margin-bottom: 20px !important; }
.app-notice { margin-bottom: 18px !important; }
.app-notice:empty { display: none; }
.app-notice a { color: var(--accent); text-underline-offset: 3px; }
.review-heading { margin-bottom: 27px; }
.letter-summary { border: 1px solid #e0d2c6; background: #fcf6ef; padding: 28px; }
.summary-head { position: relative; padding-bottom: 20px; border-bottom: 1px solid #decfc2; }
.summary-head h2, .summary-head h3 { font: 27px/1.55 var(--create-serif); color: var(--accent-dark); margin: 0; overflow-wrap: anywhere; }
.summary-head p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.summary-meta { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 14px 20px; margin: 24px 0 0; font-size: 12px; line-height: 1.8; }
.summary-meta > div { min-width: 0; }
.summary-meta dt { color: var(--muted); font-size: 11px; }
.summary-meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.summary-story { margin: 24px 0; color: var(--ink); font: 18px/2 var(--create-serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-story h3, .summary-photos h3 { font-size: 12px; font-weight: 500; margin: 0 0 11px; color: var(--muted); }
.summary-story blockquote { margin: 0; color: var(--ink); font: 18px/2.1 var(--create-serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-lyrics { margin-top: 22px; padding-top: 18px; border-top: 1px solid #decfc2; }
.summary-lyrics h3 { font-size: 12px; font-weight: 500; margin: 0 0 10px; color: var(--muted); }
.summary-lyrics p { color: var(--ink); font: 15px/2 var(--create-serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-music { margin-top: 22px; padding-top: 18px; border-top: 1px solid #decfc2; }
.summary-music h3 { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.summary-music p { color: var(--ink); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.summary-music small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.summary-photo-note { margin-top: 24px !important; font-size: 11px; line-height: 1.9; color: var(--muted); }
.summary-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.summary-photos h3, .summary-photos > p { width: 100%; }
.summary-photos img { display: block; width: calc((100% - 24px) / 3); aspect-ratio: 1; object-fit: cover; border: 5px solid var(--paper); box-shadow: 0 2px 8px #5143360d; }
.summary-photos figure { width: calc((100% - 24px) / 3); min-width: 0; }
.summary-photos figure img { width: 100%; }
.summary-photos .photo-item { padding: 0; border: 0; background: transparent; box-shadow: none; }
.summary-photos figcaption { margin-top: 6px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-edit { display: flex; flex-wrap: wrap; gap: 7px 22px; padding-top: 19px; margin-top: 24px; border-top: 1px solid #decfc2; }
.summary-edit button, [data-edit-step] { min-height: 44px; padding: 4px 0; border: 0; border-bottom: 1px solid #ceaa99; background: transparent; color: var(--accent-dark); font-size: 12px !important; cursor: pointer; }
.confirmation-note { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 23px !important; }
.success-panel { padding: 55px 48px 39px; text-align: center; }
.success-panel::before { position: absolute; top: 0; left: 0; right: 0; margin: 0; }
.success-envelope { position: relative; width: 125px; height: 82px; border: 1px solid #cfb5a5; margin: 3px auto 34px; background: linear-gradient(31deg, transparent 49.4%, #cfb5a5 49.8%, #cfb5a5 50.2%, transparent 50.6%), linear-gradient(-31deg, transparent 49.4%, #cfb5a5 49.8%, #cfb5a5 50.2%, transparent 50.6%), #f5eade; }
.success-envelope span { position: absolute; top: 25px; left: 42px; display: grid; place-items: center; width: 41px; height: 41px; background: var(--accent); border: 3px double #f1c6ad; border-radius: 50%; color: #fff4df; font-size: 14px; transform: rotate(-10deg); }
.success-panel h1 { font-size: 36px; line-height: 1.6; }
.success-description { margin-top: 18px !important; color: var(--muted); font-size: 13px; line-height: 2; }
.success-clarification { padding: 17px 20px; margin-top: 27px !important; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.9; text-align: left; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.success-actions .button { font-size: 13px; }
.success-home { display: inline-flex; align-items: center; gap: 24px; margin-top: 25px; font-size: 12px; }
.create-footer { border-top: 1px solid var(--line); padding-block: 22px; }
.create-footer-inner { display: flex; align-items: center; gap: 20px; }
.create-footer-inner > .serif { color: var(--accent); font-size: 23px; }
.create-footer-inner p { color: var(--muted); font-size: 11px; }
.footer-local { margin-left: auto; color: var(--muted); font-size: 11px; }
.clear-dialog { width: min(450px, calc(100% - 36px)); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px #352c2726; }
.clear-dialog::backdrop { background: #30282366; }
.clear-dialog h2 { font-size: 28px; line-height: 1.6; }
.clear-dialog > p:not(.paper-kicker) { margin-top: 14px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.dialog-actions { display: flex; gap: 13px; margin-top: 26px; justify-content: flex-end; }
.dialog-actions .button { font-size: 13px; min-height: 44px; padding-inline: 18px; }

@media (max-width: 1100px) {
  .create-layout { grid-template-columns: 210px minmax(0, 1fr); column-gap: 36px; }
  .guide-title { font-size: 32px; }
  .step-panel { padding-inline: 29px; }
  .package-options { gap: 8px; }
  .option-card { padding-inline: 10px; gap: 7px; }
  .option-title { font-size: 18px; }
  .style-options .option-card { padding-inline: 9px; gap: 6px; }
  .style-options .option-title { font-size: 16px; }
  .field-row { gap: 16px; }
  .step-actions { gap: 15px; }
  .step-actions .button { gap: 15px; padding-inline: 18px; }
  .step-footer-note { max-width: 140px; }
}

@media (max-width: 767px) {
  .create-header, .create-header > .create-nav { min-height: 69px; }
  .create-header .brand { font-size: 29px; }
  .create-header .brand-small { display: none; }
  .create-header-actions { gap: 20px; font-size: 12px; }
  .clear-draft { font-size: 12px; }
  .create-layout { display: block; padding-block: 27px 43px; }
  .writing-guide { position: static; padding-top: 0; }
  .guide-intro { display: none; }
  .step-navigation { margin-top: 0; }
  .step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .step-list li + li { margin: 0; }
  .step-list li:not(:last-child)::after { left: calc(50% + 21px); right: calc(-50% + 21px); top: 16px; width: auto; height: 1px; }
  .step-link { flex-direction: column; gap: 8px; padding: 0; min-height: 66px; text-align: center; }
  .step-number { position: relative; z-index: 1; width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
  .step-copy { gap: 0; }
  .step-copy strong { font-size: 11px; line-height: 1.7; }
  .step-copy small { display: none; }
  .guide-note { display: none; }
  .draft-note { margin: 14px 0 24px; font-size: 10px; line-height: 1.8; text-align: center; }
  .draft-note > p:first-child { max-width: 390px; margin: 0 auto; }
  #storage-status { margin-top: 5px; }
  .step-panel { padding: 28px 23px 0; }
  .paper-kicker { margin-bottom: 12px !important; font-size: 10px; }
  .paper-heading { margin-bottom: 27px; }
  .paper-heading h1, .paper-heading h2 { font-size: 29px; line-height: 1.48; }
  .paper-heading > p:last-child { font-size: 14px; margin-top: 12px; line-height: 1.9; }
  .mobile-break { display: block; }
  .field-label { font-size: 14px; }
  .package-options { grid-template-columns: 1fr; gap: 9px; }
  .package-options .option-card { padding: 15px 16px; gap: 13px; }
  .package-options .option-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 15px; align-items: baseline; }
  .package-options .option-title { grid-column: 1; font-size: 21px; }
  .package-options .option-description { grid-column: 1; grid-row: 2; margin: 1px 0 0; font-size: 11px; }
  .package-options .option-price { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; font-size: 24px; }
  .style-group { margin-top: 25px; }
  .style-options { gap: 7px; }
  .style-options .option-card { display: block; padding: 12px 10px 11px; }
  .style-options .option-card input[type="radio"] { margin: 0 0 8px; width: 14px; height: 14px; }
  .style-options .option-title { font-size: 17px; line-height: 1.5; }
  .style-options .option-description { font-size: 12px; line-height: 1.8; }
  .field-row { grid-template-columns: 1fr; gap: 21px; }
  .occasion-row { margin-top: 26px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; padding: 12px; }
  .form-field input::placeholder, .form-field textarea::placeholder { font-size: 13px; }
  .form-field select { font-size: 14px; }
  .step-actions { padding-block: 21px 23px; margin-top: 25px; gap: 15px; }
  .step-actions .button { min-height: 48px; padding-inline: 16px; font-size: 14px; gap: 13px; }
  .first-step-actions { display: flex; flex-direction: column-reverse; gap: 13px; }
  .first-step-actions .button { width: 100%; justify-content: space-between; padding-inline: 22px; }
  .step-footer-note { max-width: none; font-size: 10px; text-align: center; }
  .back-button { font-size: 12px; gap: 8px; white-space: nowrap; }
  .story-field { margin-top: 25px; }
  .lyrics-field { margin-top: 24px; }
  .form-field textarea { min-height: 240px; line-height: 1.9; }
  .story-prompt { padding: 16px 14px; gap: 13px; margin-top: 20px; }
  .story-prompt p { font-size: 11px; }
  .story-prompt > span { font-size: 26px; }
  .upload-label { padding: 28px 13px 25px; }
  .upload-label > strong { font-size: 21px; }
  .upload-label > span:not(.photo-outline):not(.music-outline):not(.upload-button) { font-size: 10px; }
  .photo-guidance-row { gap: 13px; margin-top: 12px; }
  .photo-guidance-row .field-hint { font-size: 10px; }
  .photo-count { font-size: 10px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .photo-privacy { margin-top: 23px; padding-top: 17px; }
  .photo-privacy > p { font-size: 10px; }
  .music-material { margin-top: 25px; padding-top: 22px; }
  .music-material-heading { gap: 10px; }
  .music-material-heading .field-hint { font-size: 10px; }
  .music-local-tag { padding: 3px 6px; font-size: 9px; }
  .music-upload-label { padding: 23px 13px 21px; }
  .music-outline { width: 44px; height: 44px; margin-bottom: 14px; font-size: 27px; }
  .music-status, .music-preview-title { font-size: 11px; }
  .music-preview { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 14px; }
  .music-remove { justify-self: start; }
  .music-preview audio { height: 36px; }
  .music-local-note { font-size: 10px; }
  .consent-label { font-size: 11px; line-height: 1.9; }
  .restore-notice, .app-notice { font-size: 11px; padding: 12px 13px; }
  .letter-summary { padding: 22px 18px; }
  .summary-head h2, .summary-head h3 { font-size: 24px; }
  .summary-meta { grid-template-columns: 86px minmax(0, 1fr); gap: 13px 13px; font-size: 13px; }
  .summary-story, .summary-story blockquote { font-size: 17px; line-height: 2; }
  .summary-photos { gap: 7px; }
  .summary-photos img, .summary-photos figure { width: calc((100% - 14px) / 3); }
  .summary-photos img { border-width: 3px; }
  .summary-photos figure img { width: 100%; }
  .summary-edit { gap: 5px 18px; padding-top: 15px; margin-top: 19px; }
  .confirmation-note { font-size: 12px; }
  .success-panel { padding: 36px 24px 28px; }
  .success-envelope { margin-bottom: 28px; }
  .success-panel h1 { font-size: 31px; }
  .success-description { font-size: 12px; }
  .success-clarification { padding: 15px; font-size: 11px; }
  .success-actions { flex-direction: column; gap: 12px; margin-top: 25px; }
  .success-actions .button { width: 100%; }
  .create-footer { padding-block: 19px; }
  .create-footer-inner { gap: 13px; flex-wrap: wrap; }
  .create-footer-inner > .serif { font-size: 23px; }
  .create-footer-inner p { font-size: 10px; margin-left: auto; }
  .footer-local { display: none; }
  .clear-dialog { padding: 26px 23px; }
  .clear-dialog h2 { font-size: 26px; }
}

@media (max-width: 374px) {
  .create-header-actions { gap: 13px; }
  .step-panel { padding-inline: 18px; }
  .paper-heading h1, .paper-heading h2 { font-size: 27px; }
  .style-options { gap: 6px; }
  .style-options .option-card { padding-inline: 8px; }
  .style-options .option-title { font-size: 15px; }
  .step-actions { gap: 10px; }
  .step-actions .button { gap: 9px; padding-inline: 12px; }
  .package-options .option-card { padding-inline: 12px; gap: 10px; }
  .package-options .option-content { column-gap: 10px; }
  .package-options .option-title { font-size: 19px; }
  .package-options .option-price { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .create-page *, .create-page *::before, .create-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.cloud-save-block { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; padding: 24px 0; border-block: 1px solid var(--line); }
.cloud-save-block p { flex-basis: 100%; font-size: 14px; overflow-wrap: anywhere; }
.cloud-save-block p:empty { display: none; }
.order-consent { flex-basis: 100%; padding: 13px 15px; background: var(--soft); border: 1px solid var(--line); }
.order-consent .consent-label { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); }
.order-consent .consent-label input { margin-top: 3px; flex: 0 0 auto; }
.order-consent a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.order-consent .field-error { margin: 8px 0 0 24px; }
.footer-legal-link { color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 480px) { .cloud-save-block .button { width: 100%; } }
