:root {
  color-scheme: light;
  --paper: #faf7ef;
  --sheet: #fffdf8;
  --ink: #24382d;
  --text: #2d382f;
  --muted: #596256;
  --line: #e5dfd1;
  --leaf: #214b3c;
  --yellow: #ffcf6b;
  --gold: #9a6f29;
  --red: #9e392b;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-press: 90ms;
  --dur-fast: 160ms;
  --dur-mid: 240ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid #297d5e; outline-offset: 4px; }
.visually-hidden { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 10; background: #fffdf8f2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner, .shell, .site-footer { max-inline-size: 75rem; margin-inline: auto; padding-inline: 1.5rem; }
.header-inner { min-block-size: 3.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-progress-bar { height: 3px; width: 100%; background: #ede6d6; overflow: hidden; }
.top-progress-fill { position: relative; height: 100%; background: linear-gradient(90deg, var(--leaf), #46866a); transition: width .35s var(--ease-out); }
.top-progress-fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, transparent, #ffdf8c); opacity: .85; }
.brand { display: inline-flex; align-items: center; gap: .625rem; min-block-size: 2.8rem; color: var(--ink); font: 800 1.18rem/1.1 var(--serif); letter-spacing: .075em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: .5rem; background: var(--leaf); color: #ffde87; font: 1.3rem/1 Georgia, serif; transform: rotate(-9deg); transition: transform .25s ease; }
.brand:hover .brand-mark { transform: rotate(0deg) scale(1.04); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); font-size: .875rem; }
.site-nav > * { display: inline-flex; align-items: center; gap: .38rem; min-block-size: 2.8rem; padding: .25rem; background: none; border: none; text-decoration: none; transition: color .18s ease; }
.site-nav [aria-current], .site-nav > *:hover { color: var(--leaf); }
.site-nav [aria-current] { font-weight: 750; text-decoration: underline; text-underline-offset: .45em; text-decoration-color: #bd8d30; }
.nav-badge { display: inline-grid; place-items: center; min-inline-size: 1.25rem; block-size: 1.25rem; padding-inline: .32rem; border-radius: 999px; background: var(--leaf); color: #fff4ce; font-size: .72rem; font-weight: 750; line-height: 1; }

.shell { min-block-size: 75vh; padding-block: 1.5rem 2.6rem; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.98fr) minmax(17.5rem, 1fr); align-items: start; gap: 1.45rem; }
.editor, .preview { min-width: 0; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--sheet); }
.editor { padding: 1.5rem; }
.step-header, .preview-header { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.step-header { margin-bottom: 1.15rem; }
.step-title-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.step-kicker span { color: #9b937f; font-weight: 600; }
.step-tagline { display: block; margin-block-start: .28rem; font-size: .78rem; color: #8c6b3f; }
.step-header h1, .step-header h2 { color: var(--ink); font: 800 clamp(1.48rem, 2.6vw, 1.85rem)/1.28 var(--serif); }
.step-header p { color: var(--muted); font-size: .875rem; margin-top: .28rem; }

.dock-preview-trigger, .dock-preview-backdrop, .dock-preview-sheet { display: none; }

/* Transitions */
.step-fade-enter-active, .step-fade-leave-active { transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.step-fade-enter-from { opacity: 0; transform: translateY(6px); }
.step-fade-leave-to { opacity: 0; transform: translateY(-4px); }
.page-next-enter-active, .page-next-leave-active,
.page-prev-enter-active, .page-prev-leave-active { transition: opacity .18s var(--ease-out), transform .2s var(--ease-out); }
.page-next-enter-from { opacity: 0; transform: translateX(16px); }
.page-next-leave-to { opacity: 0; transform: translateX(-16px); }
.page-prev-enter-from { opacity: 0; transform: translateX(-16px); }
.page-prev-leave-to { opacity: 0; transform: translateX(16px); }
.backdrop-fade-enter-active, .backdrop-fade-leave-active { transition: opacity .2s ease; }
.backdrop-fade-enter-from, .backdrop-fade-leave-to { opacity: 0; }
.sheet-pop-enter-active, .sheet-pop-leave-active { transition: opacity .22s var(--ease-out), transform .24s var(--ease-spring); }
.sheet-pop-enter-from, .sheet-pop-leave-to { opacity: 0; transform: translateY(14px) scale(.97); }

/* Category tabs & Themes */
.category-tabs { display: flex; flex-wrap: nowrap; gap: .42rem; margin-bottom: .9rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: .18rem; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-pill { flex: none; white-space: nowrap; padding: .38rem .85rem; min-block-size: 2.2rem; border: 1px solid #dfd5bd; border-radius: 999px; background: #fbf6e9; color: #545d4f; font-size: .8125rem; font-weight: 600; box-shadow: 0 2px 0 #e6dcc4; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.category-pill:not(.is-active):hover { border-color: #b79856; color: var(--ink); }
.category-pill:active:not(:disabled) { transform: translateY(1.5px); box-shadow: 0 0 0 #e6dcc4; }
.category-pill.is-active { background: var(--leaf); border-color: var(--leaf); color: #fff6dc; box-shadow: 0 2px 0 #143328; animation: pillPop var(--dur-mid) var(--ease-spring); }
.category-pill.is-active:hover { background: #1a4133; border-color: #1a4133; color: #fff6dc; }
.theme-end { block-size: 1px; }

.plain-fieldset { min-inline-size: 0; padding: 0; border: 0; margin: 0; }
.plain-fieldset legend { margin-bottom: .45rem; padding: 0; font-size: .9375rem; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
.choice { position: relative; min-width: 0; }
.picture-card { position: relative; display: block; height: 100%; padding: .3rem; overflow: hidden; cursor: pointer; border: 1px solid #e8e0d0; border-radius: .94rem; background: #fffefa; box-shadow: 0 2px 0 #ebe3d0; transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out), box-shadow var(--dur-fast) ease; }
.picture-card:hover { border-color: #b79856; transform: translateY(-2px); box-shadow: 0 6px 14px #3c2e1612; }
.picture-card:active { transform: translateY(1px) scale(.985); box-shadow: 0 1px 0 #ebe3d0; }
.picture-card img { width: 100%; height: clamp(6rem, 12vw, 9.15rem); object-fit: cover; object-position: center 52%; border-radius: .65rem; background: #e6e1d3; transition: transform .35s ease; }
.picture-card:hover img { transform: scale(1.03); }
.card-tag, .rec-badge { position: absolute; z-index: 2; top: .62rem; left: .62rem; padding: .18rem .52rem; border-radius: .45rem; font-size: .72rem; font-weight: 700; line-height: 1.35; box-shadow: 0 2px 6px #1c24191f; }
.card-tag { background: #fff7e2ee; color: #3d4332; }
.rec-badge { background: linear-gradient(135deg, #214b3c, #2f6552); color: #ffefb8; }
.card-copy { display: grid; gap: .08rem; padding: .68rem 2.05rem .58rem .62rem; }
.card-copy strong { color: var(--ink); font-size: .9375rem; }
.card-copy small { color: var(--muted); font-size: .8125rem; }
.radio-mark { position: absolute; inset-inline-end: .75rem; inset-block-end: 1.02rem; width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border: 1px solid #8a8c77; border-radius: 50%; background: #fffdf6; transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.choice-input:checked + label { border-color: var(--gold); background: #fff2ce; box-shadow: inset 0 0 0 1px var(--gold), 0 2px 0 #d5bd8a; }
.choice-input:checked + label .radio-mark { background: var(--leaf); border-color: var(--leaf); color: white; transform: scale(1.08); animation: checkPop var(--dur-mid) var(--ease-spring); }
.choice-input:checked + label .radio-mark::after { content: ""; width: .3rem; height: .52rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.choice-input:focus-visible + label { outline: 3px solid #297d5e; outline-offset: 3px; }
.style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.style-grid img { height: auto; aspect-ratio: 1.2; }

/* Desktop Sticky Preview & 3D Book */
.preview { padding: 1rem; position: sticky; top: 1.25rem; }
.preview-header { align-items: center; padding: .2rem .15rem .85rem; }
.preview-header h2 { color: var(--ink); font: 800 1.1rem/1.2 var(--serif); }
.preview-header > span { color: #655a46; font-size: .75rem; background: #f1ead9; padding: .26rem .55rem; border-radius: .38rem; }
.preview-stage { position: relative; display: grid; place-items: center; min-block-size: 19rem; isolation: isolate; border-radius: .8rem; overflow: hidden; background: #f3e8d1; background-image: radial-gradient(circle, #d2ae7760 1px, transparent 1.15px); background-size: 13px 13px; perspective: 640px; }
.preview-stage::before { content: ""; position: absolute; width: 79%; aspect-ratio: 1; border-radius: 50%; background: #f7edd7; }
.stage-star { position: absolute; font-family: Georgia, serif; color: #a87531; line-height: 1; animation: starTwinkle 4.5s ease-in-out infinite; }
.star-one { inset: 14% auto auto 13%; font-size: 1.5rem; }
.star-two { inset: auto 12% 16% auto; font-size: 1.55rem; animation-delay: 1.2s; }
.star-three { inset: auto auto 14% 18%; font-size: .8rem; animation-delay: 2.4s; }
.book {
  --book-rx: 0deg;
  --book-ry: 0deg;
  position: relative; width: 55%; max-width: 13rem; aspect-ratio: .81;
  border-radius: .22rem .5rem .5rem .22rem; background: #214337;
  box-shadow: 6px 4px #c0ab87, 7px 6px #7e675b, 13px 15px 22px #3f301152, inset 4px 0 #fff3;
  transform: rotate(-8deg) rotateX(var(--book-rx)) rotateY(var(--book-ry));
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
  isolation: isolate; overflow: hidden;
}
.book.is-updating { animation: bookPulse .36s cubic-bezier(.22, 1, .36, 1); }
.book::after { content: ""; position: absolute; inset: 0; border-inline-start: .38rem solid #0003; border-radius: inherit; pointer-events: none; }
.book > #book-image, .book > img:first-child { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 46% center; }
.book-ink { position: relative; z-index: 1; padding: .9rem .75rem 1.25rem 1rem; color: #fff6dc; background: linear-gradient(#10281fdd, #10281f99 57%, transparent); min-height: 32%; text-align: center; }
.book-ink strong { display: block; color: #fff5d9; font: 800 clamp(.9rem, 1.7vw, 1.25rem)/1.3 var(--serif); text-wrap: balance; overflow-wrap: anywhere; }
.book-ink span { display: block; color: #fff4d0; font-size: .625rem; letter-spacing: .12em; margin-block-start: .35rem; }
.book-photo { position: absolute; z-index: 2; width: 30%; height: auto; aspect-ratio: 1; object-fit: cover; inset: auto 7% 7% auto; border: 3px solid #fff0be; border-radius: 50%; box-shadow: 0 2px 6px #0006; animation: popIn .28s cubic-bezier(.22, 1, .36, 1); }
.preview-footer { display: flex; align-items: end; justify-content: space-between; gap: .75rem; padding: .95rem .15rem .13rem; }
.preview-footer > div { display: grid; gap: .12rem; }
.preview-footer > div:last-child { text-align: end; }
.preview-footer strong { color: var(--ink); font-size: .9375rem; }
.preview-footer span { color: var(--muted); font-size: .8125rem; }
.preview-footer .preview-price { color: var(--leaf); font: 700 1.28rem/1.2 var(--sans); white-space: nowrap; transition: transform .2s ease, color .2s ease; }
.is-bumping { animation: priceBump .36s cubic-bezier(.22, 1, .36, 1); }
.preview-assure { margin-top: .7rem; padding-top: .65rem; border-top: 1px dashed #e3dac6; color: #655d4a; font-size: .78rem; text-align: center; }

/* Form fields & Hero step */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; align-content: start; gap: .4rem; min-inline-size: 0; }
.field label, .field-label { color: var(--ink); font-weight: 700; font-size: .9375rem; }
.field small, .field label span, .field-label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; min-block-size: 3rem; border: 1px solid #9a927c; border-radius: .8rem; padding: .65rem .8rem; background: #fffdf6; font-size: max(1rem, 1em); transition: border-color .16s ease, box-shadow .18s ease, background .18s ease; }
.field input:focus, .field textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px #214b3c1c; outline: none; }
.field textarea.is-glowing { border-color: var(--leaf); background: #f4faee; box-shadow: 0 0 0 4px #214b3c24; }
.field textarea { resize: vertical; }
.is-shaking { animation: gentleShake .32s var(--ease-out); }
.phone-input-wrap { position: relative; display: flex; align-items: center; min-inline-size: 0; }
.phone-input-wrap input { padding-inline-end: 2.2rem; }
.input-valid-badge { position: absolute; right: .55rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; background: #e1efe3; color: var(--leaf); font-size: .72rem; font-weight: 800; pointer-events: none; animation: checkPop var(--dur-mid) var(--ease-spring); }
.field [aria-invalid="true"], .age-pills[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .8rem; font-weight: 600; margin-top: .15rem; }
.row-error { padding-inline-start: 4.65rem; padding-block-end: .4rem; }
.full { grid-column: 1 / -1; }

.character-card { display: grid; grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr); align-items: start; gap: clamp(1.1rem, 4vw, 2rem); padding: clamp(1rem, 3vw, 1.5rem); background: #f7efdb; border: 1px solid #eadcb9; border-radius: 1.15rem; }
.character-portrait { display: grid; justify-items: center; align-content: center; text-align: center; }
.avatar-frame { inline-size: min(100%, 8.7rem); aspect-ratio: 1; border-radius: 50%; padding: .27rem; background: #fff9eb; border: 2px solid #a6722e; box-shadow: 0 4px 0 #e4cca0; transition: transform .22s ease; }
.avatar-frame.has-photo { border-color: var(--leaf); box-shadow: 0 4px 0 #c4d7ca; }
.avatar-frame img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: inherit; background: #f6dfa7; }
.portrait-actions { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem .35rem; margin-block-start: .52rem; }
.photo-pick, .photo-remove { display: inline-grid; place-items: center; min-block-size: 2.75rem; border: 1px solid #dbca9b; border-radius: 1.75rem; background: #fffaf0; padding: .2rem .75rem; color: var(--leaf); font-size: .77rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 #e5d5ad; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease; }
.photo-remove { border-color: transparent; background: transparent; padding-inline: .4rem; color: var(--red); box-shadow: none; }
.photo-pick:hover, .photo-remove:hover { background: #f5e5bc; }
.photo-pick:active { transform: translateY(1.5px); box-shadow: 0 0 0 #e5d5ad; }
.photo-remove:active { transform: scale(.96); }
.photo-pick:focus-visible, #child-photo:focus-visible + .photo-pick { outline: 3px solid #297d5e; outline-offset: 3px; }
.photo-help { color: #655941; font-size: .74rem; line-height: 1.45; margin-block-start: .3rem; }
.photo-feedback { color: var(--muted); font-weight: 600; }
.photo-feedback.is-error { color: var(--red); }
.character-fields { display: grid; gap: .95rem; min-inline-size: 0; }

.age-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .42rem; padding: .45rem; border: 1px solid #e1d2b0; border-radius: .85rem; background: #fffaf0; }
.age-pill { min-block-size: 2.65rem; padding: .25rem .3rem; border: 1px solid #dfd2b2; border-radius: .6rem; background: #f7eed7; color: var(--leaf); font-size: .8rem; font-weight: 650; box-shadow: 0 2px 0 #e4d5b2; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.age-pill.is-wide { grid-column: span 2; }
.age-pill.age-more { grid-column: 1 / -1; background: transparent; border-style: dashed; color: #5b6355; box-shadow: none; }
.age-pill:not(.is-selected):not(:disabled):hover { border-color: #897347; background: #f5e5bc; }
.age-pill:active:not(:disabled) { transform: translateY(1.5px); box-shadow: 0 0 0 #e4d5b2; }
.age-pill.is-selected { border-color: var(--leaf); background: var(--leaf); color: #fff6dc; box-shadow: 0 2px 0 #143328; animation: pillPop var(--dur-mid) var(--ease-spring); }
.age-pill.is-selected:hover:not(:disabled) { border-color: #1a4133; background: #1a4133; color: #fff6dc; }

/* Magic loader & Sample reader */
.magic-loader { display: grid; justify-items: center; gap: .8rem; padding: 2.5rem 1.5rem; text-align: center; border-radius: 1rem; border: 1px solid #e5d8ba; background: linear-gradient(180deg, #fcf5e3, #f8ecd2); }
.magic-emblem { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #fff9ec; border: 2px solid #dfc896; box-shadow: 0 6px 16px #a8753120; }
.magic-book-icon { font-size: 2rem; animation: floatBook 2.2s ease-in-out infinite; }
.magic-spark { position: absolute; color: #a87531; font-size: 1rem; animation: starTwinkle 2s ease-in-out infinite; }
.magic-spark.s1 { top: .15rem; right: .2rem; }
.magic-spark.s2 { bottom: .2rem; left: .2rem; animation-delay: .8s; }
.magic-loader strong { color: var(--ink); font: 700 1.05rem/1.4 var(--serif); }
.magic-loader p { color: var(--muted); font-size: .82rem; }
.magic-progress-track { width: min(100%, 18rem); height: .45rem; border-radius: 999px; background: #e6dac0; overflow: hidden; }
.magic-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--leaf), #42836a); transition: width .6s ease; }

.reader { padding: clamp(1rem, 3.5vw, 2rem); min-block-size: 16rem; background: #fbefda; border: 1px solid #e6d8bc; border-radius: .95rem; }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #685943; font-size: .8125rem; }
.reader-dots { display: flex; align-items: center; gap: .38rem; }
.reader-dots span { width: .45rem; height: .45rem; border-radius: 50%; background: #d5c5a5; transition: width .2s ease, background .2s ease; }
.reader-dots span.is-active { width: 1.25rem; border-radius: 999px; background: var(--leaf); }
.reader h3 { color: var(--ink); font: 800 1.55rem/1.4 var(--serif); margin-block: .7rem; }
.reader p { line-height: 1.9; white-space: pre-line; min-block-size: 5rem; }
.reader-dedication { margin-block-start: 1rem; padding-inline-start: .8rem; border-inline-start: 2px solid #b58643; font-size: .875rem; }
.reader-dedication blockquote { margin: .25rem 0 0; white-space: pre-line; }
.reader-controls { display: flex; justify-content: space-between; margin-block-start: .85rem; }
.preview-page-illustration { display: block; width: 100%; max-width: 26rem; aspect-ratio: 1 / 1; object-fit: cover; margin: .4rem auto .9rem; border-radius: .75rem; border: 1px solid #e2d4b5; box-shadow: 0 6px 18px #3c2e1614; }
.preview-page-illustration.is-arrived { animation: artFadeIn .35s ease; }
.preview-art-skeleton { max-width: 26rem; aspect-ratio: 1 / 1; margin: .4rem auto .9rem; border-radius: .75rem; }
@keyframes artFadeIn { from { opacity: 0; } to { opacity: 1; } }
.preview-art-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .85rem; padding: .65rem .85rem; border-radius: .75rem; border: 1px solid #e3c888; background: #fff6dc; color: #6a4c1b; font-size: .82rem; }
.preview-expired-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .9rem; padding: .75rem .95rem; border-radius: .85rem; border: 1px solid #d98272; background: #fff2ef; color: #8c2d1f; font-size: .86rem; font-weight: 600; }
.preview-regen-btn { min-block-size: 2.2rem; padding: .42rem .9rem; font-size: .82rem; white-space: nowrap; }
.edition-quality-note { margin-top: .55rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.unlock-teaser { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-radius: .95rem; border: 1px dashed #b98f46; background: linear-gradient(135deg, #fff6df, #fbf0d3); animation: fadeUp .28s var(--ease-out); }
.unlock-teaser-copy { flex: 1 1 16rem; display: grid; gap: .25rem; }
.teaser-badge { justify-self: start; padding: .14rem .5rem; border-radius: .38rem; background: #214b3c; color: #ffefb8; font-size: .72rem; font-weight: 700; }
.unlock-teaser-copy strong { color: var(--ink); font-size: .98rem; }
.unlock-teaser-copy p { color: #5b5341; font-size: .82rem; }

.dedication-field { margin-block-start: 1.1rem; }
.dedication-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.char-count { color: var(--muted); font-size: .78rem; }
.dedication-templates { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .15rem .35rem; }
.tpl-chip { padding: .3rem .7rem; border: 1px solid #dccba6; border-radius: 999px; background: #fff8e6; color: var(--leaf); font-size: .78rem; font-weight: 600; box-shadow: 0 2px 0 #e6d7b4; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.tpl-chip:not(.is-active):hover { border-color: var(--gold); background: #fff0c4; }
.tpl-chip:active { transform: translateY(1.5px); box-shadow: 0 0 0 #e6d7b4; }
.tpl-chip.is-active { background: var(--leaf); border-color: var(--leaf); color: #fff6dc; box-shadow: 0 2px 0 #143328; animation: pillPop var(--dur-mid) var(--ease-spring); }
.tpl-chip.is-active:hover { background: #1a4133; border-color: #1a4133; color: #fff6dc; }

/* Checkout Bundles & Editions */
.section-label { margin-bottom: .5rem; color: var(--ink); font-size: .9375rem; font-weight: 700; }
.section-label small { color: var(--muted); font-size: .75rem; font-weight: 400; margin-inline-start: .3rem; }
.bundle-section { margin-bottom: .9rem; }
.bundle-presets { display: grid; grid-template-columns: minmax(0, 1fr); gap: .68rem; }
.bundle-card { position: relative; display: grid; width: 100%; padding: 0; overflow: hidden; border: 1px solid #dfd3b8; border-radius: .95rem; background: #fffdf6; text-align: start; box-shadow: 0 2px 0 #e9dfc6; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.bundle-card:hover:not(:disabled) { border-color: #b79856; transform: translateY(-1.5px); box-shadow: 0 6px 14px #3c2e1612; }
.bundle-card:active:not(:disabled) { transform: translateY(1.5px) scale(.992); box-shadow: 0 0 0 #e9dfc6; }
.bundle-card.is-active { border-color: var(--gold); background: #fff4d4; box-shadow: inset 0 0 0 1px var(--gold), 0 2px 0 #d5bd8a; }
.bundle-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .78rem; padding: .82rem .88rem; }
.bundle-visual { position: relative; width: 3.6rem; height: 3.6rem; flex: none; }
.bundle-visual.is-stacked { width: 4rem; }
.bundle-art-front { position: relative; z-index: 2; width: 3.45rem; height: 3.45rem; border-radius: .65rem; object-fit: cover; border: 1.5px solid #fffdf7; box-shadow: 0 3px 8px #3c2e161f; }
.bundle-art-back { position: absolute; z-index: 1; right: 0; bottom: 0; width: 2.7rem; height: 2.7rem; border-radius: .55rem; object-fit: cover; border: 1.5px solid #fffdf7; transform: rotate(8deg); opacity: .94; box-shadow: 0 2px 6px #3c2e161a; }
.bundle-body { min-width: 0; display: grid; gap: .28rem; }
.bundle-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; }
.bundle-title-row strong { color: var(--ink); font-size: 1rem; line-height: 1.25; }
.bundle-badge { padding: .12rem .48rem; border-radius: .38rem; background: #f2e4c1; color: #6e4e1c; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.bundle-card.is-active .bundle-badge { background: var(--leaf); color: #ffefb8; }
.bundle-points { display: grid; gap: .12rem; color: var(--muted); font-size: .77rem; line-height: 1.38; }
.bundle-aside { display: grid; justify-items: end; gap: .42rem; flex: none; padding-inline-start: .2rem; }
.bundle-price { display: inline-flex; align-items: baseline; color: var(--leaf); line-height: 1; white-space: nowrap; }
.bundle-price .price-yen { font-style: normal; font-size: .78rem; font-weight: 700; margin-inline-end: 1px; }
.bundle-price b { font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; }
.bundle-price small { font-size: .76rem; font-weight: 700; }
.bundle-check { width: 1.22rem; height: 1.22rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #9b9783; background: #fffdf6; transition: all .16s ease; }
.bundle-card.is-active .bundle-check { border-color: var(--leaf); background: var(--leaf); color: #fff6dc; animation: checkPop var(--dur-mid) var(--ease-spring); }
.bundle-card.is-active .bundle-check::after { content: ""; width: .3rem; height: .52rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.bundle-perk { padding: .42rem .88rem; border-top: 1px dashed #e6d3a5; background: #fcf3d8; color: #6e5224; font-size: .74rem; font-weight: 600; }
.bundle-card.is-active .bundle-perk { background: #faecc4; border-top-color: #d6b672; color: #563e17; }

.edition-selection { display: grid; gap: .9rem; }
.edition-selection legend { color: var(--ink); }
.edition-selection legend small { color: var(--muted); font-size: .75rem; font-weight: 400; margin-inline-start: .3rem; }
.edition-grid { display: grid; gap: .52rem; }
.edition-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .68rem; align-items: center; border: 1px solid #dfd5bd; border-radius: .88rem; padding: .58rem .7rem; background: #fffdf6; box-shadow: 0 2px 0 #ebe3d0; transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out), box-shadow var(--dur-fast) ease; }
.edition-grid .edition-card { grid-template-columns: auto minmax(0, 1fr) auto auto; cursor: pointer; }
.edition-grid .edition-card:hover:not(.is-disabled) { border-color: #b79856; }
.edition-grid .edition-card:active:not(.is-disabled) { transform: translateY(1px) scale(.99); box-shadow: 0 0 0 #ebe3d0; }
.edition-base .edition-card { border-color: #ccd9bc; background: #eff3e7; }
.edition-card img { inline-size: 3.5rem; block-size: 3.5rem; border-radius: .62rem; object-fit: cover; }
.edition-copy { display: grid; gap: .12rem; }
.edition-copy strong { display: flex; flex-wrap: wrap; align-items: center; gap: .38rem; color: var(--ink); font-size: .95rem; }
.edition-copy small { color: var(--muted); font-size: .77rem; line-height: 1.35; }
.included-pill, .popular-pill { font-style: normal; padding: .08rem .42rem; border-radius: .35rem; font-size: .68rem; font-weight: 700; }
.included-pill { background: #d6e4d2; color: var(--leaf); }
.popular-pill { background: #fbe3ae; color: #704b14; }
.edition-tags { display: flex; flex-wrap: wrap; gap: .28rem; margin-top: .15rem; }
.edition-tags span { padding: .08rem .38rem; border-radius: .32rem; background: #f3ecda; color: #545b4c; font-size: .7rem; }
.edition-price { font-weight: 750; color: var(--leaf); white-space: nowrap; font-size: .92rem; }
.edition-card:has(.edition-check:checked), .edition-card.is-checked { border-color: #a5742d; background: #fff1c9; box-shadow: inset 0 0 0 1px #a5742d; }
.edition-card:has(.edition-check:disabled), .edition-card.is-disabled { cursor: default; opacity: .72; }
.edition-card:has(.edition-check:disabled) .edition-price { color: #725f42; }
.edition-check { appearance: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin: 0; flex: none; border: 1.5px solid #6f7965; border-radius: .37rem; background: #fff9eb; cursor: pointer; transition: all .15s ease; }
.edition-check:disabled { opacity: .44; cursor: default; }
.edition-check:checked { background: var(--leaf); border-color: var(--leaf); color: #fff4ce; animation: checkPop var(--dur-mid) var(--ease-spring); }
.edition-check:checked::after { content: ""; inline-size: .28rem; block-size: .53rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding: .75rem .95rem; border-radius: .78rem; background: #f1ebdc; color: var(--ink); font-weight: 700; }
.checkout-total > div { display: grid; gap: .08rem; }
.total-hint { color: var(--muted); font-size: .75rem; font-weight: 400; }
.checkout-total strong { font-size: 1.38rem; color: var(--leaf); }

.checkout-contact { margin-block-start: 1.2rem; }
.contact-card { border: 1px solid #e3d9c2; border-radius: .85rem; padding-inline: .75rem; background: #f8f1df; }
.contact-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); align-items: start; gap: .45rem; padding-block: .25rem; }
.contact-row + .contact-row, #shipping-address + .contact-row { border-block-start: 1px solid #e5d9be; }
.contact-row label, .contact-label { padding-block-start: .76rem; color: var(--ink); font-weight: 700; font-size: .87rem; }
.contact-row input, .contact-row textarea, .region-trigger { min-block-size: 3rem; min-inline-size: 0; inline-size: 100%; border: 1px solid transparent; border-radius: .6rem; padding: .65rem .38rem; text-align: start; color: var(--ink); background: none; font-size: 1rem; }
.contact-row textarea { min-block-size: 3.75rem; resize: vertical; }
.contact-row :is(input,textarea,button)[aria-invalid="true"] { border-color: var(--red); }
.region-trigger { display: flex; align-items: center; justify-content: space-between; gap: .55rem; color: var(--leaf); }
.region-trigger span { min-inline-size: 0; overflow-wrap: anywhere; }
.region-trigger::after { content: ""; flex: none; inline-size: .48rem; block-size: .48rem; border: solid currentColor; border-width: 0 2px 2px 0; margin-inline-end: .3rem; transform: rotate(-45deg); }
.region-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.region-panel { margin-block: .3rem .55rem; padding: .65rem; border: 1px solid #e2cc99; border-radius: .78rem; background: #fffaf0; }
.region-head { display: flex; align-items: start; justify-content: space-between; gap: .4rem; margin-block-end: .42rem; }
.region-head strong { display: block; padding-block-start: .28rem; color: var(--ink); }
.region-head p { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.region-action { flex: none; padding: .3rem .46rem; border: 0; border-radius: .65rem; min-block-size: 2.35rem; background: #f4e9cc; color: var(--leaf); font-weight: 700; font-size: .78rem; box-shadow: 0 2px 0 #dfd0a8; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease; }
.region-search-box { margin-bottom: .5rem; }
.region-search-input { width: 100%; min-block-size: 2.5rem; padding: .42rem .68rem; border: 1px solid #d5c39a; border-radius: .58rem; background: #fffdf7; font-size: .86rem; }
.region-search-list { display: grid; gap: .32rem; max-block-size: 14rem; overflow: auto; }
.region-search-item { text-align: start; padding: .52rem .68rem; border: 1px solid #e1d2ad; border-radius: .58rem; background: #f9f1dd; color: var(--ink); font-size: .84rem; transition: background var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.region-search-item:hover { background: #ebd9ae; }
.region-search-item:active { transform: translateY(1px); }
.region-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; max-block-size: 14rem; overflow: auto; overscroll-behavior: contain; padding: .16rem; }
.region-options button { border: 1px solid #e1d2ad; background: #f6ecd5; color: var(--leaf); border-radius: .62rem; padding: .2rem .32rem; min-block-size: 3rem; font-size: .8rem; overflow-wrap: anywhere; box-shadow: 0 2px 0 #e2d2ab; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease; }
.region-options button:hover, .region-action:hover { background: #ebd9ae; }
.region-options button:active, .region-action:active { transform: translateY(1.5px); box-shadow: 0 0 0 #e2d2ab; }
.region-status { color: var(--muted); font-size: .82rem; }

.value-card { list-style: none; margin: .95rem 0 .25rem; padding: 0; border: 1px solid #e4dac2; border-radius: .92rem; background: #fffdf6; overflow: hidden; }
.value-row { display: flex; align-items: flex-start; gap: .78rem; padding: .78rem .92rem; }
.value-row + .value-row { border-top: 1px solid #efe7d5; }
.value-icon { flex: none; width: 2.15rem; height: 2.15rem; display: grid; place-items: center; border-radius: .65rem; font-size: .95rem; font-weight: 700; margin-top: .08rem; }
.value-icon.is-hero { background: #fbf0cf; color: #9a6d24; }
.value-icon.is-book { background: #e8f1eb; color: #214b3c; }
.value-icon.is-dedication { background: #fbeae7; color: #a74238; }
.value-icon.is-delivery { background: #f2ecdc; color: #6e5529; }
.value-copy { min-width: 0; display: grid; gap: .12rem; }
.value-copy strong { color: var(--ink); font-size: .88rem; line-height: 1.35; }
.value-copy p { color: var(--muted); font-size: .78rem; line-height: 1.42; }
.photo-detail { max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; border-radius: .65rem; }

.actions { display: flex; align-items: center; gap: .5rem; margin-block-start: 1.12rem; }
.actions .button-primary { margin-inline-start: auto; }
.autosave-status { color: var(--muted); font-size: .78rem; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-block-size: 3rem; min-inline-size: 3rem; padding: .61rem .95rem; border-radius: .72rem; border: 1px solid transparent; font-size: .875rem; font-weight: 700; transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out); }
.button:active:not(:disabled) { transform: translateY(1.5px); }
.button:disabled { opacity: .55; }
.button-subtle { background: transparent; color: var(--leaf); }
.button-subtle:not(:disabled):hover { background: #f1ebdd; }
.button-subtle:not(:disabled):active { background: #e8dec8; transform: translateY(1.5px); }
.button-primary { min-inline-size: 9.5rem; background: var(--leaf); color: #fff8e6; border-color: #193b2f; box-shadow: 0 3px 0 #133126, 0 6px 14px rgba(24, 58, 46, .18), inset 0 1px 0 rgba(255, 248, 224, .2); }
.button-primary:not(:disabled):hover { background: #1a4133; transform: translateY(-1px); box-shadow: 0 4px 0 #133126, 0 8px 16px rgba(24, 58, 46, .22), inset 0 1px 0 rgba(255, 248, 224, .24); }
.button-primary:not(:disabled):active { background: #173a2d; transform: translateY(2px); box-shadow: 0 1px 0 #133126, 0 2px 5px rgba(24, 58, 46, .16); }
.button-primary.is-loading::before { content: ""; width: .85rem; height: .85rem; border: 2px solid #fff8e655; border-top-color: #fff8e6; border-radius: 50%; animation: spinDot .7s linear infinite; }
.button-danger { background: var(--red); color: white; box-shadow: 0 3px 0 #6e2218; }
.button-danger:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #6e2218; }
.photo-confirm { padding: .75rem; border-radius: .65rem; background: #f6eee5; }
.photo-confirm p { font-size: .875rem; }
.form-error { color: var(--red); font-size: .875rem; margin-block-end: .75rem; font-weight: 600; }
.initial-status { color: var(--muted); }

/* Order View & Celebration */
.order-celebration { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; padding: .9rem 1.05rem; border-radius: .9rem; border: 1px solid #b9d2bc; background: linear-gradient(135deg, #ecf5eb, #f6f8ec); color: var(--ink); animation: popIn .3s ease; }
.celebration-star { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--leaf); color: #ffefb8; font-size: 1.15rem; flex: none; }
.order-celebration p { color: var(--muted); font-size: .82rem; margin-top: .15rem; }

.order-timeline { list-style: none; margin: 1rem 0; padding: .8rem .6rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; border-radius: .85rem; background: #faf4e6; border: 1px solid #eadec2; }
.order-timeline li { display: grid; justify-items: center; gap: .32rem; text-align: center; color: var(--muted); font-size: .76rem; }
.timeline-dot { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e3d9c1; color: #5b5545; font-size: .74rem; font-weight: 800; }
.order-timeline li.is-done { color: var(--leaf); font-weight: 700; }
.order-timeline li.is-done .timeline-dot { background: var(--leaf); color: #fff6dc; }
.order-timeline li.is-active { color: #8c5c19; font-weight: 700; }
.order-timeline li.is-active .timeline-dot { background: #ffcf6b; color: #36280d; }

.order-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; border-radius: .7rem; padding: 1rem; background: #f2ede1; overflow-wrap: anywhere; }
.order-summary p { color: var(--muted); margin-bottom: .2rem; font-size: .8125rem; }
.workspace.is-order { grid-template-columns: minmax(0, 45rem); }
.order-book { color: var(--ink); font: 800 1.35rem/1.4 var(--serif); margin-block-end: .75rem; }
.order-panel > p { margin-block: .9rem; }
.payment-options { display: flex; flex-wrap: wrap; gap: .55rem; }
.payment-options > p { color: var(--muted); font-size: .875rem; }
.order-delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; margin-block-start: 1rem; }
.order-delivery-card { border: 1px solid #e3d9c2; border-radius: .85rem; padding: .85rem; background: #f8f1df; }
.order-delivery-card h3 { margin-block-end: .5rem; color: var(--ink); font-size: .97rem; }
.order-delivery-fields { display: grid; gap: .34rem; margin: 0; font-size: .85rem; }
.order-delivery-fields > div { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .45rem; }
.order-delivery-fields dt { color: var(--muted); }
.order-delivery-fields dd { margin: 0; overflow-wrap: anywhere; }
#confirm-receipt { margin-block-start: .75rem; }
:is(#receipt-dialog, .composer-info-dialog):modal { overscroll-behavior: contain; }
:is(#receipt-dialog, .composer-info-dialog)::backdrop { overflow: hidden; overscroll-behavior: contain; }
.toast { position: fixed; z-index: 3; max-width: calc(100% - 1.5rem); inset: auto 1rem max(1rem, env(safe-area-inset-bottom, 0px)) auto; background: var(--leaf); color: white; border-radius: .65rem; padding: .7rem 1rem; font-size: .875rem; }
.site-footer {
  container: site-footer / inline-size;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-block-size: 4rem;
  gap: .25rem 1rem;
  color: var(--muted);
  font-size: .8125rem;
  border-top: 1px solid var(--line);
}
.site-footer > span { text-wrap: balance; }
.footer-link { flex: none; max-inline-size: 100%; min-block-size: 2.75rem; padding: .25rem .4rem; background: none; border: 0; color: var(--leaf); text-wrap: balance; text-decoration: underline; text-underline-offset: .25em; }
@container site-footer (max-width: 25rem) {
  .site-footer > span { flex-basis: 100%; text-align: center; }
  .footer-link { margin-inline: auto; }
}

/* Dialogs & Immersive Wide Digital Reader */
dialog { position: fixed; width: min(31rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: 1rem; padding: 1.35rem; }
dialog.composer-info-dialog { inset: 0; margin: auto; block-size: fit-content; max-block-size: calc(100dvh - 2rem); overflow: auto; }
dialog::backdrop { background: #26312780; backdrop-filter: blur(2px); }
dialog h2 { padding-inline-end: 3rem; margin-block-end: .75rem; font: 800 1.5rem/1.5 var(--serif); }
dialog .close { position: absolute; inset: .45rem .55rem auto auto; min-width: 3rem; min-height: 3rem; background: transparent; border: 0; border-radius: .5rem; font-size: 1.5rem; }
dialog details { border-top: 1px solid var(--line); }
dialog details p { padding-block: 0 .75rem; color: var(--muted); }
dialog summary { display: flex; align-items: center; gap: .65rem; padding-block: .72rem; cursor: pointer; min-block-size: 3rem; font-weight: 700; list-style: none; }
dialog summary::-webkit-details-marker { display: none; }
dialog summary::before { content: "+"; display: grid; place-items: center; inline-size: 1.45rem; block-size: 1.45rem; flex: none; border-radius: 50%; background: #f0e5c6; color: var(--leaf); }
dialog details[open] summary::before { content: "−"; }
.saved-order { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding-block: .55rem; border-top: 1px solid var(--line); }
.saved-order > span { overflow-wrap: anywhere; }

dialog.reader-dialog { width: min(56rem, calc(100% - 2rem)); }
.reader-dialog-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-inline-end: 3rem; margin-bottom: .75rem; }
.reader-dialog-head h2 { margin-block-end: 0; padding-inline-end: 0; }
.reader-badge { padding: .2rem .6rem; border-radius: 999px; background: #efe6cf; color: var(--leaf); font-size: .78rem; font-weight: 700; }
.book-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.book-spread.is-text-only { grid-template-columns: minmax(0, 1fr); }
.spread-media { min-width: 0; }
.spread-copy { min-width: 0; display: grid; gap: .65rem; }
.spread-progress-track { height: .3rem; border-radius: 999px; background: #e5d8bc; overflow: hidden; margin-top: .3rem; }
.spread-progress-bar { height: 100%; border-radius: 999px; background: var(--leaf); transition: width .25s ease; }

.digital-cover { position: relative; }
.digital-cover .book-photo { width: 4rem; }
.digital-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .65rem; }
.digital-art[data-generated], .digital-page-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.digital-page-art { border-radius: .65rem; background: #f3e9d3; }
.digital-art-status, .reader .digital-art-status { min-block-size: 0; margin-block-end: .65rem; color: var(--muted); font-size: .875rem; }
.digital-dedication { border-inline-start: 2px solid #b58643; padding-inline-start: .75rem; margin-block-end: .75rem; white-space: pre-line; }
.audiobook-story { margin: -.45rem 0 .85rem; color: var(--muted); overflow-wrap: anywhere; }
.audiobook-status { margin-block: .5rem; color: var(--muted); }
.audiobook-status progress { inline-size: 100%; accent-color: var(--leaf); }
.audiobook-controls { display: grid; gap: .85rem; padding: .85rem; border-radius: .85rem; background: #f3ecdb; }
.audiobook-progress { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.audiobook-progress input { display: block; inline-size: 100%; block-size: 2rem; margin: 0; accent-color: var(--leaf); }
.audiobook-times { display: flex; justify-content: space-between; }
.audiobook-transport, .audiobook-options { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.audiobook-transport { justify-content: center; }
.audiobook-transport .button, .audiobook-options .button { min-block-size: 2.75rem; padding-inline: .7rem; }
.audiobook-transport .button-primary { min-inline-size: 5.6rem; }
.audiobook-options { padding-block-start: .65rem; border-block-start: 1px solid var(--line); }
.audiobook-options select { min-block-size: 2.75rem; padding-inline: .5rem; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: .5rem; }
.audiobook-options a { margin-inline-start: auto; }

/* Warm Paper Shimmer Skeletons */
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #efe7d3 24%, #fbf7eb 48%, #efe7d3 72%);
  background-size: 220% 100%;
  animation: warmShimmer 1.45s ease-in-out infinite;
}
.skeleton-panel { display: grid; gap: .9rem; }
.skeleton-line { height: .95rem; border-radius: .45rem; }
.skeleton-line.is-kicker { width: 5.5rem; height: .78rem; }
.skeleton-line.is-title { width: 13rem; height: 1.65rem; }
.skeleton-line.is-card-title { width: 62%; height: .95rem; margin-top: .4rem; }
.skeleton-line.is-card-desc { width: 88%; height: .75rem; }
.skeleton-line.is-body { width: 100%; height: .9rem; }
.skeleton-line.short { width: 68%; }
.skeleton-pills { display: flex; gap: .45rem; }
.skeleton-pill { width: 4.5rem; height: 2.1rem; border-radius: 999px; }
.skeleton-card { padding: .35rem; border: 1px solid #e8e0d0; border-radius: .94rem; background: #fffefa; display: grid; gap: .38rem; }
.skeleton-thumb { width: 100%; height: 7.5rem; border-radius: .65rem; }
.skeleton-stage { width: 100%; min-block-size: 18rem; border-radius: .8rem; }
.skeleton-box { width: 100%; height: 4.5rem; border-radius: .75rem; }
.order-skeleton { display: grid; gap: .85rem; padding-block: .5rem; }
.magic-skeleton-preview { width: min(100%, 24rem); display: grid; gap: .48rem; padding: .9rem 1rem; margin-top: .35rem; border-radius: .75rem; background: #fffaf0c9; border: 1px solid #eadcbe; }

.art-skeleton-box {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: .65rem; overflow: hidden;
  border: 1px solid #e6d9bc; background: #f3e9d3; display: grid; place-items: center;
}
.art-skeleton-box > .skeleton-shimmer { position: absolute; inset: 0; }
.art-skeleton-badge {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: .35rem;
  padding: .65rem 1rem; border-radius: .75rem; background: #fffdf8de; color: var(--muted); font-size: .82rem; font-weight: 600;
}

/* Step Kicker Overview Popover */
.step-header-wrap { width: 100%; }
.step-kicker-btn {
  display: inline-flex; align-items: center; flex: none; gap: .25rem; min-block-size: 2rem; white-space: nowrap;
  padding: .24rem .62rem; border: 1px solid #dfd2b2; border-radius: 999px;
  background: #fbf5e4; color: var(--leaf); font-size: .74rem; font-weight: 800; letter-spacing: .08em;
  box-shadow: 0 2px 0 #e6d8b8; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease;
}
.step-kicker-btn:hover { background: #f5e9cb; border-color: #bfa060; }
.step-kicker-btn:active { transform: translateY(1.5px); box-shadow: 0 0 0 #e6d8b8; }
.kicker-caret { font-size: .72rem; color: var(--gold); margin-inline-start: .1rem; }
.step-overview-backdrop { position: fixed; inset: 0; z-index: 19; background: #1e28202b; }
.step-overview-panel {
  position: absolute; inset-block-start: calc(100% + .45rem); inset-inline-end: 0; z-index: 20; width: min(24rem, 100%);
  padding: .85rem; border: 1px solid #dfd0ad; border-radius: 1rem; background: var(--sheet);
  box-shadow: 0 14px 36px rgba(28, 36, 25, .18); animation: fadeUp .18s var(--ease-out);
}
.step-overview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.step-overview-head strong { color: var(--ink); font-size: .9rem; }
.overview-close {
  width: 2rem; height: 2rem; border: 0; border-radius: .5rem; background: #f3ecdb; color: var(--ink); font-size: 1.15rem; line-height: 1;
}
.step-overview-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .42rem; }
.step-overview-item {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem;
  padding: .55rem .65rem; border: 1px solid #e9dfc6; border-radius: .75rem; background: #fffdf8; text-align: start;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.step-overview-item:not(:disabled):hover { border-color: #b79856; background: #fff6dc; }
.step-overview-item:not(:disabled):active { transform: translateY(1px); }
.step-overview-item:disabled { opacity: .62; }
.step-overview-item.is-current { border-color: var(--leaf); background: #eff6ef; opacity: 1; }
.overview-num {
  width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border-radius: 50%;
  background: #ede4cd; color: var(--ink); font-size: .72rem; font-weight: 800;
}
.step-overview-item.is-done .overview-num, .step-overview-item.is-current .overview-num { background: var(--leaf); color: #fff6dc; }
.overview-copy { min-width: 0; display: grid; gap: .06rem; }
.overview-copy strong { color: var(--ink); font-size: .84rem; }
.overview-copy small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-action { color: var(--leaf); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.step-overview-item:disabled .overview-action { color: var(--muted); font-weight: 500; }

/* Step 3 Style Zoom & Lightbox */
.style-zoom-btn {
  position: absolute; z-index: 3; top: .6rem; right: .6rem;
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .22rem .52rem; border: 1px solid #dfd2b2; border-radius: 999px;
  background: #fffaf0eb; backdrop-filter: blur(4px); color: var(--ink); font-size: .72rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(28, 36, 25, .14); transition: transform var(--dur-press) var(--ease-out), background var(--dur-fast) ease;
}
.style-zoom-btn:hover { background: #fff3cf; border-color: var(--gold); }
.style-zoom-btn:active { transform: scale(.95); }
dialog.style-detail-dialog { width: min(35rem, calc(100% - 2rem)); }
.style-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-inline-end: 2.5rem; margin-bottom: .75rem; }
.style-detail-head h2 { margin: 0; padding: 0; }
.rec-badge.is-inline { position: static; }
.style-detail-stage {
  position: relative; border-radius: .9rem; overflow: hidden; border: 1px solid #e3d6b8; background: #f3ead4; cursor: zoom-in;
}
.style-detail-stage.is-macro { cursor: zoom-out; }
.style-detail-stage img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .32s var(--ease-out); }
.style-detail-stage.is-macro img { transform: scale(1.45); }
.style-macro-hint {
  position: absolute; right: .65rem; bottom: .65rem; padding: .24rem .62rem; border-radius: 999px;
  background: rgba(24, 38, 30, .78); color: #fff6dc; font-size: .74rem; pointer-events: none;
}
.style-detail-desc { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.style-detail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; }

/* Step 4 Frontispiece & Name Highlight */
.sample-frontispiece {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center;
  margin-bottom: 1rem; padding: .95rem 1.05rem; border-radius: 1rem;
  border: 1px solid #e4d5b1; background: linear-gradient(135deg, #fffaf0, #f7ecd2);
}
.frontispiece-book {
  position: relative; width: 5.5rem; aspect-ratio: .81; border-radius: .2rem .45rem .45rem .2rem; overflow: hidden;
  box-shadow: 4px 3px #c5b08a, 8px 10px 18px rgba(63, 48, 17, .22); transform: rotate(-4deg); flex: none;
}
.frontispiece-book img:first-child { width: 100%; height: 100%; object-fit: cover; }
.frontispiece-ink {
  position: absolute; inset: 0 0 auto; padding: .5rem .4rem .8rem; text-align: center;
  color: #fff6dc; background: linear-gradient(#10281fdd, #10281f90 62%, transparent);
}
.frontispiece-ink strong { display: block; font: 800 .7rem/1.25 var(--serif); }
.frontispiece-ink span { display: block; font-size: .5rem; letter-spacing: .1em; margin-top: .18rem; opacity: .9; }
.frontispiece-photo {
  position: absolute; right: .35rem; bottom: .35rem; width: 1.9rem; height: 1.9rem; object-fit: cover;
  border-radius: 50%; border: 2px solid #fff0be; box-shadow: 0 2px 5px #0005;
}
.frontispiece-meta { min-width: 0; display: grid; gap: .32rem; }
.frontispiece-top { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.frontispiece-badge {
  padding: .12rem .48rem; border-radius: .38rem; background: var(--leaf); color: #ffefb8; font-size: .7rem; font-weight: 700;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.frontispiece-badge.is-pending, .cover-status-pill.is-pending {
  background: #fff3cf; border: 1px solid #dfc17b; color: #7a571f;
}
.frontispiece-badge.is-ready, .cover-status-pill.is-ready {
  background: var(--leaf); color: #ffefb8;
}
.cover-status-pill {
  padding: .16rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--muted);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.frontispiece-badge.is-pulsing, .cover-status-pill.is-pulsing {
  animation: coverBadgePulse .45s var(--ease-out);
}
.frontispiece-book.is-updating {
  animation: coverBadgePulse .38s var(--ease-out);
}
@keyframes coverBadgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(33, 75, 60, .28); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(33, 75, 60, .12); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(33, 75, 60, 0); }
}
.frontispiece-hero-chip {
  display: inline-flex; align-items: center; gap: .28rem; padding: .12rem .5rem; border-radius: 999px;
  background: #fffdf6; border: 1px solid #dfd1b0; color: var(--ink); font-size: .72rem; font-weight: 700;
}
.frontispiece-hero-chip img { width: 1.15rem; height: 1.15rem; border-radius: 50%; object-fit: cover; }
.frontispiece-title { color: var(--ink); font: 800 1.08rem/1.3 var(--serif); }
.frontispiece-tags { color: var(--muted); font-size: .78rem; }
.frontispiece-dedication {
  margin-top: .15rem; padding: .48rem .68rem; border-radius: .65rem; border-left: 3px solid var(--gold);
  background: #fffdf7d9; transition: background .25s ease, box-shadow .25s ease;
}
.frontispiece-dedication.is-glowing { background: #eff8ed; box-shadow: 0 0 0 3px #214b3c24; }
.dedication-quote-label { display: block; font-size: .68rem; font-weight: 700; color: #8c6b3f; margin-bottom: .1rem; }
.frontispiece-dedication p { font-size: .82rem; color: var(--ink); font-family: var(--serif); line-height: 1.5; }
.frontispiece-dedication.is-empty .dedication-placeholder { color: #857a62; font-family: var(--sans); font-style: italic; }

.hero-name-mark {
  background: rgba(255, 207, 107, .44); color: #1a3b2e; font-weight: 750;
  padding: .04em .26em; border-radius: .28em; box-shadow: inset 0 -2px 0 rgba(154, 111, 41, .3);
}

/* Step 5 Shipping ETA */
.shipping-eta-card {
  display: grid; gap: .32rem; padding: .82rem .95rem; border-radius: .82rem;
  border: 1px dashed #c8ad74; background: #fbf5e4;
}
.eta-badge { justify-self: start; color: #7a571f; font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.eta-copy strong { display: block; color: var(--ink); font-size: .88rem; }
.eta-copy p { color: var(--muted); font-size: .78rem; margin-top: .12rem; line-height: 1.45; }

/* Poster Button & Order Banners */
.preview-poster-btn {
  flex: none; padding: .36rem .72rem; border: 1px solid #d5c295; border-radius: 999px;
  background: #fbf3de; color: var(--leaf); font-size: .76rem; font-weight: 700;
  box-shadow: 0 2px 0 #e3d3ae; transition: transform var(--dur-press) var(--ease-out), background var(--dur-fast) ease;
}
.preview-poster-btn:hover:not(:disabled) { background: #f3e4bd; border-color: var(--gold); }
.preview-poster-btn:active:not(:disabled) { transform: translateY(1.5px); box-shadow: 0 0 0 #e3d3ae; }

.order-art-progress-banner, .order-art-ready-banner, .reader-art-ready {
  display: flex; align-items: center; gap: .55rem; padding: .68rem .85rem; margin-block: .65rem;
  border-radius: .78rem; font-size: .84rem; font-weight: 600;
}
.order-art-progress-banner { background: #fbf4e1; border: 1px solid #e6d3a5; color: #6c5124; }
.order-art-ready-banner, .reader-art-ready { background: #eaf4ea; border: 1px solid #b4d1b7; color: var(--leaf); animation: popIn .28s ease; }
.pulse-dot {
  flex: none; width: .58rem; height: .58rem; border-radius: 50%; background: var(--gold);
  animation: pulseDot 1.6s ease-in-out infinite;
}

/* Saved Order Card List */
dialog.orders-dialog { width: min(34rem, calc(100% - 2rem)); }
.saved-order-list { display: grid; gap: .62rem; margin-top: .4rem; }
.order-history-card {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .78rem;
  padding: .68rem .78rem; border: 1px solid #e3d8be; border-radius: .9rem; background: #fffdf7; text-align: start;
  box-shadow: 0 2px 0 #ebe1c9; transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.order-history-card:hover { border-color: #b79856; background: #fff7e2; }
.order-history-card:active { transform: translateY(1.5px); box-shadow: 0 0 0 #ebe1c9; }
.order-card-thumb {
  width: 3.1rem; height: 3.85rem; flex: none; border-radius: .25rem .48rem .48rem .25rem; overflow: hidden;
  box-shadow: 2px 2px #c8b38c;
}
.order-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card-body { min-width: 0; display: grid; gap: .12rem; }
.order-card-title { color: var(--ink); font-size: .92rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-meta { color: var(--muted); font-size: .78rem; }
.order-card-id { color: #8c826b; font-size: .7rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.order-card-aside { display: grid; justify-items: end; gap: .28rem; flex: none; }
.order-status-pill { padding: .16rem .48rem; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.order-status-pill.tone-amber { background: #fdf0cc; color: #8a5b14; }
.order-status-pill.tone-leaf { background: #e1efe5; color: var(--leaf); }
.order-status-pill.tone-sage { background: #dcebe7; color: #1d574c; }
.order-status-pill.tone-muted { background: #ece8de; color: var(--muted); }
.order-card-go { color: var(--leaf); font-size: .74rem; font-weight: 700; }
.orders-empty { color: var(--muted); padding-block: .6rem; }

/* Reader Toolbar, Jump Drawer, Font Sizes, Mini Audio & Night Mode */
.reader-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem; margin-inline-start: auto; }
.reader-tool-btn {
  padding: .28rem .64rem; border: 1px solid #dcd0b4; border-radius: 999px; background: #fbf5e6;
  color: var(--ink); font-size: .76rem; font-weight: 700;
  transition: transform var(--dur-press) var(--ease-out), background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.reader-tool-btn:hover { border-color: var(--gold); background: #fff0c6; }
.reader-tool-btn.is-active { background: var(--leaf); border-color: var(--leaf); color: #fff6dc; }
.reader-tool-btn:active { transform: scale(.96); }

.page-jump-drawer {
  margin-bottom: .85rem; padding: .85rem; border-radius: .85rem;
  border: 1px solid #dfd2b2; background: #fffaf0; animation: fadeUp .18s var(--ease-out);
}
.page-jump-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .58rem; }
.page-jump-head strong { font-size: .88rem; }
.page-jump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)); gap: .42rem; max-block-size: 14rem; overflow: auto; }
.page-jump-chip {
  display: flex; align-items: center; gap: .42rem; padding: .42rem .55rem; border: 1px solid #e5d8ba;
  border-radius: .58rem; background: #fffdf8; text-align: start; font-size: .78rem;
}
.page-jump-chip:hover { border-color: var(--gold); background: #fff4d2; }
.page-jump-chip.is-current { border-color: var(--leaf); background: var(--leaf); color: #fff6dc; }
.jump-num { font-weight: 800; opacity: .8; flex: none; }
.jump-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.reader.reader-font-sm p { font-size: .95rem; line-height: 1.82; }
.reader.reader-font-md p { font-size: 1.05rem; line-height: 1.92; }
.reader.reader-font-lg p { font-size: 1.22rem; line-height: 2; }

.reader-mini-audio {
  margin-top: .85rem; padding: .72rem .92rem; border-radius: .85rem;
  border: 1px solid #e0d3b5; background: #f8f1df;
}
.mini-audio-idle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.mini-audio-title { color: var(--ink); font-size: .84rem; font-weight: 650; }
.mini-audio-start { min-block-size: 2.35rem; min-inline-size: auto; padding: .35rem .9rem; font-size: .82rem; }
.mini-audio-loading { display: grid; gap: .4rem; font-size: .82rem; color: var(--muted); }
.mini-audio-loading progress { inline-size: 100%; accent-color: var(--leaf); }
.mini-audio-player { display: flex; align-items: center; gap: .75rem; }
.mini-audio-play-btn {
  flex: none; width: 2.55rem; height: 2.55rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid #16372b; background: var(--leaf); color: #fff6dc; font-size: .88rem;
  box-shadow: 0 2px 0 #133126;
}
.mini-audio-play-btn:active { transform: translateY(1.5px); box-shadow: 0 0 0 #133126; }
.mini-audio-track { flex: 1; min-width: 0; display: grid; gap: .18rem; }
.mini-audio-meta { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); font-weight: 600; }
.mini-audio-time { font-variant-numeric: tabular-nums; }
.mini-audio-track input[type="range"] { width: 100%; margin: 0; accent-color: var(--leaf); }
.mini-audio-rate {
  flex: none; min-width: 3.1rem; padding: .35rem .5rem; border: 1px solid #d5c49b; border-radius: .55rem;
  background: #fffdf6; color: var(--ink); font-size: .76rem; font-weight: 700;
}

/* Bedtime Warm Dark Mode */
dialog.reader-dialog.reader-night {
  background: #1c221e; color: #ebe2ce; border-color: #364139;
  transition: background .25s ease, color .25s ease;
}
dialog.reader-dialog.reader-night .close { color: #d9d0bb; }
dialog.reader-dialog.reader-night .reader-badge { background: #2c372f; color: #edd89c; }
dialog.reader-dialog.reader-night .reader-tool-btn { background: #263029; border-color: #3d4b41; color: #e6dec9; }
dialog.reader-dialog.reader-night .reader-tool-btn.is-active { background: #d6a44e; border-color: #d6a44e; color: #1b221d; }
dialog.reader-dialog.reader-night .reader { background: #242b26; border-color: #38433b; color: #ebe2ce; }
dialog.reader-dialog.reader-night .reader h3 { color: #f6eed9; }
dialog.reader-dialog.reader-night .reader-top,
dialog.reader-dialog.reader-night .digital-art-status { color: #a9a28e; }
dialog.reader-dialog.reader-night .reader-dots span { background: #465249; }
dialog.reader-dialog.reader-night .reader-dots span.is-active,
dialog.reader-dialog.reader-night .spread-progress-bar { background: #d6a44e; }
dialog.reader-dialog.reader-night .spread-progress-track { background: #37423a; }
dialog.reader-dialog.reader-night .digital-dedication { border-inline-start-color: #d6a44e; color: #dcd2bc; }
dialog.reader-dialog.reader-night .button-subtle { color: #e2c889; }
dialog.reader-dialog.reader-night .button-subtle:hover:not(:disabled) { background: #2f3a32; }
dialog.reader-dialog.reader-night .page-jump-drawer { background: #222924; border-color: #3b463d; }
dialog.reader-dialog.reader-night .page-jump-chip { background: #2a332d; border-color: #3d4a40; color: #e6dec9; }
dialog.reader-dialog.reader-night .page-jump-chip.is-current { background: #d6a44e; border-color: #d6a44e; color: #1c221e; }
dialog.reader-dialog.reader-night .overview-close { background: #333e36; color: #ebe2ce; }
dialog.reader-dialog.reader-night .reader-mini-audio { background: #262f29; border-color: #3a463d; }
dialog.reader-dialog.reader-night .mini-audio-title { color: #ebe2ce; }
dialog.reader-dialog.reader-night .mini-audio-meta { color: #a9a28e; }
dialog.reader-dialog.reader-night .mini-audio-rate { background: #313c34; border-color: #455448; color: #ebe2ce; }
dialog.reader-dialog.reader-night .digital-page-art,
dialog.reader-dialog.reader-night .digital-art { filter: brightness(.92); }
dialog.reader-dialog.reader-night .art-skeleton-box { background: #2a332d; border-color: #3d4a40; }
dialog.reader-dialog.reader-night .art-skeleton-box .skeleton-shimmer {
  background: linear-gradient(105deg, #2a332d 24%, #354139 48%, #2a332d 72%); background-size: 220% 100%;
}
dialog.reader-dialog.reader-night .art-skeleton-badge { background: #1c221ed9; color: #c7bfa8; }

/* Poster Dialog */
dialog.poster-dialog { width: min(30rem, calc(100% - 2rem)); }
.poster-loading { display: grid; justify-items: center; gap: .75rem; padding-block: .6rem; color: var(--muted); }
.poster-skeleton { width: 100%; max-width: 19rem; aspect-ratio: 750 / 1120; border-radius: .85rem; }
.poster-preview-wrap { display: grid; justify-items: center; gap: .65rem; }
.poster-preview-img { width: 100%; max-width: 21rem; height: auto; border-radius: .75rem; border: 1px solid #dfd3b8; box-shadow: 0 10px 26px rgba(28, 36, 25, .14); }
.poster-hint { color: var(--muted); font-size: .78rem; }
.poster-saved-note { color: var(--leaf); font-size: .84rem; font-weight: 700; }
.poster-preview-wrap .actions { width: 100%; justify-content: flex-end; margin-top: .35rem; }

@keyframes warmShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

@keyframes pulseDot {
  0%, 100% { opacity: .45; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: .6; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes floatBook {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes bookPulse {
  0% { transform: rotate(-8deg) scale(.96); }
  55% { transform: rotate(-5deg) scale(1.04); }
  100% { transform: rotate(-8deg) scale(1); }
}

@keyframes priceBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); color: #9a6f29; }
  100% { transform: scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.86); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes checkPop {
  0% { transform: scale(.65); }
  65% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes pillPop {
  0% { transform: scale(.95); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
  85% { transform: translateX(2px); }
}

@keyframes thumbNudge {
  0% { transform: rotate(0deg) scale(1); }
  40% { transform: rotate(-6deg) scale(1.08); }
  75% { transform: rotate(3deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spinDot {
  to { transform: rotate(360deg); }
}

@media (max-width: 56rem) {
  .workspace { gap: 1rem; }
  .editor { padding: 1.15rem; }
  .preview { padding: .75rem; }
  .preview-stage { min-block-size: 17rem; }
}

@media (max-width: 43rem) {
  html { --composer-dock-clearance: calc(8.5rem + env(safe-area-inset-bottom, 0px)); }
  html:has(.has-composer-dock) { scroll-padding-block-end: var(--composer-dock-clearance); }
  .header-inner, .shell, .site-footer { padding-inline: 1rem; }
  .header-inner { min-block-size: 3.35rem; }
  .site-nav { gap: .65rem; font-size: .8125rem; }
  .site-nav a { display: none; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 1.7rem; font-size: 1.1rem; }
  .shell { padding-block: .85rem 1.25rem; }
  .site-footer { padding-block: .5rem max(.5rem, env(safe-area-inset-bottom, 0px)); }
  .site-footer.has-composer-dock { padding-block-end: var(--composer-dock-clearance); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .preview { display: none; }
  .editor { padding: 0; border: 0; border-radius: 0; background: transparent; }
  .step-header { margin-bottom: .85rem; }
  .step-header h1, .step-header h2 { font-size: clamp(1.2rem, 6vw, 1.45rem); }
  .choice-grid { gap: .55rem; }
  .picture-card { padding: .21rem; border-radius: .73rem; }
  .picture-card img { height: clamp(5.65rem, 23vw, 8.75rem); border-radius: .5rem; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-copy { padding: .48rem 1.3rem .42rem .32rem; }
  .card-copy strong { font-size: .875rem; }
  .card-copy small { font-size: .75rem; }
  .radio-mark { width: .9rem; height: .9rem; inset-inline-end: .4rem; inset-block-end: .7rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .character-card { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .avatar-frame { inline-size: 7.25rem; }
  .age-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sample-frontispiece { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .frontispiece-top { justify-content: center; }
  .frontispiece-dedication { text-align: start; width: 100%; }
  .bundle-main { gap: .62rem; padding: .72rem .75rem; }
  .bundle-visual { width: 3.15rem; height: 3.15rem; }
  .bundle-visual.is-stacked { width: 3.45rem; }
  .bundle-art-front { width: 3rem; height: 3rem; }
  .bundle-art-back { width: 2.35rem; height: 2.35rem; }
  .row-error { padding-inline-start: 0; }
  .book-spread { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  form .actions { position: fixed; z-index: 7; inset: auto 0 0; margin-block-start: 0; padding: .58rem .95rem calc(.58rem + env(safe-area-inset-bottom, 0px)); background: #fffdf8f5; backdrop-filter: blur(8px); border-top: 1px solid var(--line); flex-wrap: nowrap; gap: .6rem; }
  form .actions .autosave-status { display: none; }
  .actions { flex-wrap: wrap; }
  .actions .button { min-inline-size: auto; padding-inline: .85rem; }
  form .actions .back-btn { flex: none; padding-inline: .95rem; border: 1px solid #dfd7c7; background: #fbf7ed; box-shadow: 0 2px 0 #e2dac6; }
  form .actions .back-btn:not(:disabled):active { background: #f1e9d5; transform: translateY(1.5px); box-shadow: 0 0 0 #e2dac6; }
  .dock-preview-trigger { position: fixed; z-index: 8; right: .85rem; bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: .5rem; padding: .36rem .72rem .36rem .42rem; border-radius: 1rem; border: 1.5px solid #dfd0ad; background: #fffbf1f5; backdrop-filter: blur(10px); text-align: start; box-shadow: 0 8px 22px rgba(28, 36, 25, .16), 0 2px 0 #dfd0ad; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease; }
  .dock-preview-trigger:active { transform: translateY(2px); box-shadow: 0 4px 12px rgba(28, 36, 25, .12), 0 0 0 #dfd0ad; }
  .dock-preview-trigger.is-nudging .dock-book-thumb { animation: thumbNudge .38s var(--ease-spring); }
  .dock-book-thumb { position: relative; width: 2.05rem; height: 2.5rem; flex: none; border-radius: .18rem .35rem .35rem .18rem; overflow: hidden; box-shadow: 2px 2px #c8b38c; }
  .dock-book-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .dock-book-photo { position: absolute; right: 1px; bottom: 1px; width: .85rem !important; height: .85rem !important; border-radius: 50%; border: 1.5px solid #fff3ca; }
  .dock-preview-copy { display: grid; line-height: 1.22; }
  .dock-preview-copy strong { color: var(--leaf); font-size: .84rem; white-space: nowrap; }
  .dock-preview-copy small { color: #7a6235; font-size: .68rem; font-weight: 700; white-space: nowrap; }
  .dock-preview-backdrop { display: block; position: fixed; inset: 0; z-index: 8; background: #1e282052; backdrop-filter: blur(2px); }
  .dock-preview-sheet { display: block; position: fixed; z-index: 9; inset: auto .75rem calc(4.7rem + env(safe-area-inset-bottom, 0px)); padding: .95rem; border-radius: 1.05rem; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 12px 32px #1c241930; }
  .dock-preview-sheet .preview-header { padding: 0 0 .6rem; align-items: center; }
  .sheet-close { min-width: 2.2rem; min-height: 2.2rem; border: 0; border-radius: .5rem; background: #f3ecdb; color: var(--ink); font-size: 1.2rem; line-height: 1; }
  .dock-preview-sheet .preview-stage { min-block-size: 14rem; }
  .dock-preview-sheet .book { max-width: 9.6rem; }
  form .actions .button-primary { flex: 1; min-inline-size: 0; margin-inline-start: auto; }
}

/* Welcome Stage (Dual-ribbon flowing books + Editorial typography) */
.shell.is-welcome { max-inline-size: none; padding: 0; min-block-size: calc(100dvh - 3.8rem); display: flex; flex-direction: column; }
.welcome-stage { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1rem, 3vh, 2rem); overflow: hidden; padding-block: clamp(1rem, 3.2vh, 2.2rem) clamp(1.2rem, 3vh, 2rem); background: radial-gradient(62% 48% at 18% 12%, #fff3d6 0%, transparent 72%), radial-gradient(58% 46% at 84% 82%, #e8f1ea 0%, transparent 72%), var(--paper); }
.welcome-ambient { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.welcome-star { position: absolute; color: #b78d3e; opacity: .55; animation: starTwinkle 3.4s ease-in-out infinite; }
.w-star-1 { top: 26%; left: 12%; font-size: 1rem; }
.w-star-2 { top: 34%; right: 14%; font-size: .88rem; animation-delay: 1s; }
.w-star-3 { bottom: 32%; left: 19%; font-size: .82rem; animation-delay: 1.9s; }

.welcome-ribbon-wrap { position: relative; z-index: 1; width: 100%; overflow: hidden; padding-block: .55rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.welcome-ribbon-wrap.is-top { transform: rotate(-2.8deg) scale(1.03); }
.welcome-ribbon-wrap.is-bottom { transform: rotate(-2.8deg) scale(1.03); }
.welcome-ribbon-track { display: flex; width: max-content; will-change: transform; }
.welcome-ribbon-track.is-left { animation: marqueeLeft 46s linear infinite; }
.welcome-ribbon-track.is-right { animation: marqueeRight 50s linear infinite; }
.welcome-book { position: relative; flex: none; width: 6.4rem; height: 8.1rem; margin-inline-end: .95rem; padding: .24rem; border-radius: .3rem .65rem .65rem .3rem; border: 1px solid #fff6e2cc; overflow: hidden; box-shadow: 0 10px 20px rgba(34, 42, 32, .12), 2px 3px 0 #d9cbb0; opacity: .92; }
.welcome-book img { width: 100%; height: 100%; object-fit: cover; border-radius: .18rem .48rem .48rem .18rem; }
.welcome-book-spine { position: absolute; left: .44rem; top: .24rem; bottom: .24rem; width: 1px; background: rgba(255, 250, 236, .45); box-shadow: 1px 0 3px rgba(24, 34, 28, .28); }
.welcome-book-title { position: absolute; left: .24rem; right: .24rem; bottom: .24rem; padding: .35rem .38rem .28rem; border-radius: 0 0 .48rem .18rem; background: linear-gradient(180deg, transparent, rgba(20, 34, 27, .82)); color: #fff4d6; font: 700 .64rem/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }

.welcome-hero { position: relative; z-index: 2; max-inline-size: 38rem; margin-inline: auto; padding-inline: 1.5rem; text-align: center; display: grid; justify-items: center; gap: .78rem; animation: fadeUp .45s var(--ease-out); }
.welcome-hero::before { content: ""; position: absolute; inset: -1.6rem -2.5rem; z-index: -1; border-radius: 999px; background: radial-gradient(closest-side, #fffdf8f2 55%, #fffdf8b8 78%, transparent 100%); pointer-events: none; }
.welcome-eyebrow { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.welcome-title { color: var(--ink); font: 800 clamp(2.15rem, 5.8vw, 3.35rem)/1.18 var(--serif); letter-spacing: -.01em; }
.welcome-title-accent { display: inline-block; margin-top: .16rem; color: #a66d34; font-style: italic; }
.welcome-ellipsis { display: inline-block; letter-spacing: .04em; animation: ellipsisBreath 2.6s ease-in-out infinite; }
.welcome-subtitle { max-inline-size: 27rem; color: var(--muted); font-size: clamp(.92rem, 1.8vw, 1.02rem); line-height: 1.65; }
.welcome-actions { display: grid; justify-items: center; gap: .62rem; margin-top: .35rem; }
.welcome-cta { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-block-size: 3.45rem; padding: .85rem 2.05rem; border: 1px solid #16372b; border-radius: 999px; background: var(--leaf); color: #fff8e6; font-size: 1.02rem; font-weight: 750; letter-spacing: .02em; box-shadow: 0 4px 0 #133126, 0 12px 26px rgba(24, 58, 46, .22), inset 0 1px 0 rgba(255, 248, 224, .22); transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), background var(--dur-fast) ease; }
.welcome-cta:hover { background: #1a4133; transform: translateY(-1.5px); box-shadow: 0 5px 0 #133126, 0 16px 30px rgba(24, 58, 46, .26), inset 0 1px 0 rgba(255, 248, 224, .26); }
.welcome-cta:active { background: #173a2d; transform: translateY(2.5px); box-shadow: 0 1px 0 #133126, 0 4px 10px rgba(24, 58, 46, .18); }
.welcome-cta-arrow { display: inline-block; transition: transform .2s var(--ease-out); }
.welcome-cta:hover .welcome-cta-arrow { transform: translateX(3px); }
.welcome-resume { padding: .3rem .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--leaf); font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: .28em; text-decoration-color: #bd8d30; }
.welcome-resume:hover { color: #16372b; }
.welcome-note { color: #6a7164; font-size: .76rem; letter-spacing: .02em; }

.welcome-colophon { position: relative; z-index: 2; padding: .95rem 1.25rem .4rem; border-top: 1px solid #e9e2d2; text-align: center; display: grid; justify-items: center; gap: .32rem; }
.colophon-brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font: 800 .95rem/1.2 var(--serif); letter-spacing: .06em; }
.colophon-mark { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: .38rem; background: var(--leaf); color: #ffde87; font-size: .88rem; transform: rotate(-8deg); }
.colophon-tagline { color: var(--muted); font-size: .76rem; }
.colophon-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .95rem; margin-top: .15rem; }
.colophon-links button { padding: .2rem .35rem; border: 0; background: none; color: #545d4f; font-size: .76rem; font-weight: 600; }
.colophon-links button:hover { color: var(--leaf); text-decoration: underline; }

@keyframes marqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes ellipsisBreath {
  0%, 100% { opacity: .65; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2px); }
}

@media (max-width: 43rem) {
  .shell.is-welcome { padding: 0; min-block-size: calc(100dvh - 3.35rem); }
  .welcome-book { width: 4.85rem; height: 6.15rem; margin-inline-end: .68rem; }
  .welcome-book-title { font-size: .56rem; }
  .welcome-hero { gap: .62rem; }
  .welcome-subtitle br { display: none; }
  .welcome-cta { min-block-size: 3.25rem; padding: .78rem 1.75rem; font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .welcome-ribbon-track { animation: none !important; }
  .skeleton-shimmer { animation: none !important; }
  .pulse-dot { animation: none !important; }
}

/* Commercial P0 Additions: Copy, Progress, Legal, SMS Auth, Support, Edit Shipping */
.colophon-legal { color: #7a7362; font-size: .72rem; margin-top: .2rem; }
.colophon-legal a { text-decoration: underline; text-underline-offset: .2em; }
.footer-links-group { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.ai-disclosure { margin-top: .65rem; color: #7e745e; font-size: .74rem; text-align: center; }

.guarantee-strip {
  margin-top: .85rem; padding: .52rem .75rem; border-radius: .65rem;
  background: #f4f7f1; border: 1px solid #d4e2d3; color: #2a4f3d;
  font-size: .77rem; font-weight: 600; text-align: center;
}
.terms-agree {
  margin-top: .75rem; padding: .58rem .72rem; border-radius: .72rem;
  border: 1px solid #e4d9bf; background: #fffaf0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .18rem .28rem; font-size: .78rem; color: var(--muted);
}
.terms-agree.is-invalid { border-color: var(--red); background: #fdf3f1; }
.terms-check-label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--ink); font-weight: 600; }
.terms-check-label input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--leaf); cursor: pointer; }
.terms-link {
  padding: .1rem .15rem; border: 0; background: none; color: var(--leaf); font-size: .78rem; font-weight: 700;
  text-decoration: underline; text-underline-offset: .2em;
}

.order-id-line, .tracking-dd { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.inline-copy-btn {
  padding: .14rem .48rem; border: 1px solid #d6c59c; border-radius: 999px;
  background: #fbf4e1; color: var(--leaf); font-size: .72rem; font-weight: 700; line-height: 1.3;
}
.inline-copy-btn:hover:not(:disabled) { background: #f2e2ba; border-color: var(--gold); }
.inline-copy-btn.is-muted { background: #f3efe4; border-color: #d9d1be; color: var(--muted); }
.inline-track-link { color: var(--leaf); font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.copy-toast {
  margin-top: .55rem; padding: .42rem .75rem; border-radius: .58rem;
  background: #eaf4ea; border: 1px solid #b4d1b7; color: var(--leaf); font-size: .8rem; font-weight: 600;
}
.unpaid-hint { margin-top: .35rem; color: #7a5c28; font-size: .8rem; }
.delivery-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block-end: .5rem; }
.delivery-card-head h3 { margin-block-end: 0; }
.card-inline-action {
  padding: .16rem .55rem; border: 1px solid #cbb78a; border-radius: 999px;
  background: #fffaf0; color: var(--leaf); font-size: .74rem; font-weight: 700;
}
.card-inline-action:hover:not(:disabled) { background: #f5e9c9; }

.order-art-progress-banner { display: grid; gap: .45rem; }
.art-progress-head { display: flex; align-items: center; gap: .55rem; }
.mini-progress-track { width: 100%; height: .36rem; border-radius: 999px; background: #e8dbb9; overflow: hidden; }
.mini-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--leaf), #46866a); transition: width .35s ease; }

.dialog-lead { color: var(--muted); font-size: .86rem; line-height: 1.55; margin-bottom: .75rem; }

/* SMS Cross-Device Recovery */
.auth-sync-box {
  margin-bottom: .85rem; padding: .72rem .85rem; border-radius: .82rem;
  border: 1px solid #e3d6b8; background: #fbf5e6; font-size: .82rem;
}
.auth-signed-bar, .auth-promo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.auth-signed-actions { display: flex; align-items: center; gap: .4rem; }
.auth-sms-form { display: grid; gap: .55rem; margin-top: .65rem; padding-top: .65rem; border-top: 1px dashed #dfd0ad; }
.auth-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: center; }
.auth-input-row input {
  min-block-size: 2.55rem; padding: .4rem .68rem; border: 1px solid #b5aa91;
  border-radius: .6rem; background: #fffdf7; font-size: .9rem; min-inline-size: 0;
}
.auth-send-btn, .auth-verify-btn { min-block-size: 2.55rem; min-inline-size: 6.2rem; padding: .35rem .75rem; font-size: .8rem; }
.auth-mock-hint { color: #7a571f; font-size: .78rem; font-weight: 600; background: #fff4d2; padding: .3rem .55rem; border-radius: .45rem; }

/* Legal Dialog */
dialog.legal-dialog { width: min(38rem, calc(100% - 2rem)); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
.legal-meta { color: var(--muted); font-size: .76rem; margin-bottom: .75rem; }
.legal-body { display: grid; gap: .85rem; max-block-size: 52vh; overflow: auto; padding-inline-end: .25rem; }
.legal-section h3 { color: var(--ink); font-size: .94rem; margin-bottom: .25rem; }
.legal-section p { color: var(--text); font-size: .84rem; line-height: 1.65; white-space: pre-line; }

/* Edit Shipping Dialog */
.edit-shipping-card { margin-bottom: .75rem; }

/* Support Dialog */
dialog.support-dialog { width: min(38rem, calc(100% - 2rem)); }
.support-ticket-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.support-ticket-pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem;
  border: 1px solid #dfd2b2; border-radius: 999px; background: #fbf5e4; color: var(--ink); font-size: .76rem; font-weight: 700;
}
.support-ticket-pill.is-active { background: var(--leaf); border-color: var(--leaf); color: #fff6dc; }
.support-ticket-pill small { opacity: .82; font-weight: 600; }
.support-thread { display: grid; gap: .65rem; }
.support-thread-meta { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.support-messages {
  display: grid; gap: .55rem; max-block-size: 16rem; overflow: auto;
  padding: .75rem; border-radius: .82rem; border: 1px solid #e5dac0; background: #faf4e6;
}
.support-msg { display: grid; gap: .15rem; padding: .52rem .72rem; border-radius: .7rem; max-inline-size: 88%; font-size: .84rem; }
.support-msg.is-customer { justify-self: end; background: #e2efe5; color: var(--ink); }
.support-msg.is-admin { justify-self: start; background: #fffdf7; border: 1px solid #e3d8be; color: var(--ink); }
.support-msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.support-msg-who { font-size: .7rem; font-weight: 700; color: var(--muted); }
.support-msg-time { font-size: .68rem; color: var(--muted); opacity: .85; }
.support-order-banner { margin: 0 0 .5rem; padding: .42rem .68rem; border-radius: .55rem; background: #f6eed9; border: 1px solid #e1d0a8; color: var(--ink); font-size: .78rem; font-weight: 600; }
.support-msg p { white-space: pre-wrap; line-height: 1.5; overflow-wrap: anywhere; }
.support-reply-box { display: grid; gap: .4rem; }
.support-reply-box textarea {
  width: 100%; padding: .55rem .72rem; border: 1px solid #a99f86; border-radius: .7rem; background: #fffdf6; resize: vertical;
}
.support-new-form { display: grid; gap: .75rem; }

/* Sprint 3 & 4 Conversion Landing, Appearance, Regen, Copies & Coupons */
.welcome-landing-sections {
  position: relative; z-index: 2; max-inline-size: 64rem; width: 100%;
  margin-inline: auto; padding: 1.4rem 1.5rem 2rem; display: grid; gap: 2.2rem;
}
.landing-block { display: grid; gap: .95rem; }
.landing-head { text-align: center; display: grid; gap: .28rem; }
.landing-kicker { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.landing-head h2 { color: var(--ink); font: 800 clamp(1.35rem, 3vw, 1.8rem)/1.28 var(--serif); }
.landing-head p { color: var(--muted); font-size: .88rem; }

.showcase-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.showcase-card {
  display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); gap: 1.25rem; align-items: center;
  padding: 1.15rem; border-radius: 1.1rem; border: 1px solid #e2d5b7; background: var(--sheet);
  box-shadow: 0 10px 26px rgba(34, 42, 32, .07);
}
.showcase-cover { aspect-ratio: 1; border-radius: .8rem; overflow: hidden; box-shadow: 4px 5px #d4c39e; }
.showcase-cover img { width: 100%; height: 100%; object-fit: cover; }
.showcase-body { display: grid; gap: .52rem; }
.showcase-tag {
  justify-self: start; padding: .16rem .52rem; border-radius: .4rem;
  background: #f5ebd1; color: #70501b; font-size: .74rem; font-weight: 700;
}
.showcase-body h3 { color: var(--ink); font: 800 1.22rem/1.35 var(--serif); }
.showcase-excerpt { color: var(--text); font-size: .92rem; line-height: 1.75; }
.showcase-audio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .25rem; }
.showcase-audio-note { color: var(--muted); font-size: .76rem; }

.sample-audio-btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .88rem;
  border: 1px solid #1a4133; border-radius: 999px; background: var(--leaf); color: #fff6dc;
  font-size: .8rem; font-weight: 700; box-shadow: 0 2px 0 #133126;
}
.sample-audio-btn.is-compact { padding: .28rem .72rem; font-size: .75rem; background: #fbf4e1; color: var(--leaf); border-color: #cbb78a; box-shadow: 0 2px 0 #e2d3ae; }
.sample-audio-btn:hover { opacity: .94; }

.craft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.craft-card {
  padding: .95rem; border-radius: .92rem; border: 1px solid #e4d8bb; background: var(--sheet);
  display: grid; gap: .28rem; align-content: start;
}
.craft-card strong { color: var(--ink); font-size: .9rem; }
.craft-card p { color: var(--muted); font-size: .78rem; line-height: 1.5; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.review-card {
  margin: 0; padding: 1rem; border-radius: .95rem; border: 1px solid #e4d8bb; background: #fffdf7;
  display: grid; gap: .45rem; align-content: start;
}
.review-scene { font-size: .74rem; font-weight: 700; color: #7a571f; }
.review-card p { color: var(--text); font-size: .84rem; line-height: 1.6; }
.review-card footer { color: var(--muted); font-size: .75rem; font-weight: 600; }

.landing-final-cta {
  padding: 1.5rem; border-radius: 1.15rem; border: 1px dashed #bfa162;
  background: linear-gradient(135deg, #fff6df, #f5ebd1);
  display: grid; justify-items: center; gap: .55rem; text-align: center;
}
.landing-final-cta strong { color: var(--ink); font: 800 1.25rem/1.35 var(--serif); }
.landing-final-cta p { color: var(--muted); font-size: .86rem; }

.photo-expectation { margin-top: .2rem; color: var(--leaf); font-size: .72rem; font-weight: 650; }
.appearance-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.reader-top-actions { display: flex; align-items: center; gap: .45rem; }
.preview-versions-bar { display: flex; flex-wrap: wrap; gap: .38rem; margin: .55rem 0 .2rem; }
.edition-card-wrap { display: grid; gap: .35rem; }
.addon-sample-row { display: flex; align-items: center; gap: .55rem; padding-inline-start: .2rem; }

.copies-stepper-card {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .68rem .85rem; border-radius: .82rem; border: 1px solid #dfd5bd; background: #fffdf6;
}
.copies-copy { display: grid; gap: .08rem; }
.copies-copy strong { color: var(--ink); font-size: .9rem; }
.copies-copy small { color: var(--muted); font-size: .75rem; }
.copies-controls { display: inline-flex; align-items: center; gap: .45rem; }
.stepper-btn {
  width: 2rem; height: 2rem; border: 1px solid #d5c49b; border-radius: .5rem;
  background: #fbf4e1; color: var(--leaf); font-weight: 800; font-size: 1rem;
}
.stepper-btn:disabled { opacity: .45; }
.stepper-val { min-inline-size: 2.6rem; text-align: center; font-weight: 700; font-size: .9rem; color: var(--ink); }

.coupon-box {
  padding: .65rem .85rem; border-radius: .82rem; border: 1px dashed #d3c297; background: #fbf6e8; font-size: .82rem;
}
.coupon-toggle-row, .coupon-applied-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; }
.coupon-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; margin-top: .5rem; }
.coupon-input-row input {
  min-block-size: 2.45rem; padding: .35rem .65rem; border: 1px solid #b5aa91;
  border-radius: .55rem; background: #fffdf7; text-transform: uppercase;
}
.coupon-apply-btn { min-block-size: 2.45rem; min-inline-size: 4.5rem; border: 1px solid #cfc09b; background: #fffaf0; }
.checkout-price-stack { display: flex; align-items: baseline; gap: .45rem; }
.price-strike { color: var(--muted); font-size: .88rem; }

@media (max-width: 52rem) {
  .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 43rem) {
  .showcase-card { grid-template-columns: minmax(0, 1fr); }
  .appearance-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
