:root {
  color-scheme: light;
  --bg: #edf2f7;
  --paper: #fffaf3;
  --paper-2: #fffefd;
  --card: #ffffff;
  --card-soft: #f7f3ff;
  --ink: #17245c;
  --ink-2: #3a4772;
  --muted: #75809f;
  --line: #e4e2ec;
  --violet: #824ae6;
  --violet-dark: #6033c4;
  --violet-pale: #f0e6ff;
  --pink: #ee5aaa;
  --blue: #dff4ff;
  --peach: #fff0e7;
  --mint: #e8f8ef;
  --gold: #f3ba52;
  --danger: #bf3e57;
  --shadow: 0 20px 60px rgba(39, 47, 92, .13);
  --shadow-small: 0 10px 28px rgba(39, 47, 92, .09);
  --radius: 26px;
  --icon-cut: #fff;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #0d1026;
  --paper: #171737;
  --paper-2: #1d1d43;
  --card: #23244d;
  --card-soft: #2a2453;
  --ink: #faf6ff;
  --ink-2: #d8d5ed;
  --muted: #a9aac5;
  --line: #3d3c68;
  --violet: #b989ff;
  --violet-dark: #9a64ef;
  --violet-pale: #302452;
  --pink: #ff80bd;
  --blue: #203b58;
  --peach: #492d3f;
  --mint: #23453e;
  --gold: #ffd17b;
  --danger: #ff8497;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --shadow-small: 0 10px 28px rgba(0, 0, 0, .22);
  --icon-cut: #23244d;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
html { min-height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 9% 0%, rgba(100, 183, 233, .18), transparent 33rem), radial-gradient(circle at 96% 88%, rgba(228, 124, 188, .14), transparent 35rem), var(--bg); font: 15px/1.5 Inter, "Segoe UI", Arial, sans-serif; }
button, input, textarea, select { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(130, 74, 230, .28); outline-offset: 3px; }
button:disabled { cursor: not-allowed; filter: grayscale(.3); opacity: .52; }
.icon { display: inline-block; width: 22px; height: 22px; flex: none; fill: currentColor; vertical-align: middle; }
.app { position: relative; width: min(100%, 980px); min-height: 100dvh; margin: 0 auto; padding-bottom: calc(96px + env(safe-area-inset-bottom)); overflow: hidden; background: var(--paper); box-shadow: 0 0 90px rgba(25, 31, 70, .14); }
.welcome-app, .generating-app { padding-bottom: 0; }
.boot-screen, .fatal-screen { width: min(100%, 620px); min-height: 100dvh; margin: auto; padding: 22vh 28px 60px; text-align: center; background: var(--paper); }
.boot-screen h1, .fatal-screen h1 { margin: 35px 0 8px; font: 700 clamp(29px, 7vw, 46px)/1.08 Georgia, serif; }
.boot-screen p, .fatal-screen p { color: var(--muted); }
.boot-orbit { position: relative; width: 64px; height: 64px; margin: 40px auto -12px; border-radius: 50%; background: var(--violet-pale); animation: breathe 1.6s ease-in-out infinite; }
.boot-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); }
.boot-orbit i:nth-child(1) { top: 5px; left: 26px; }.boot-orbit i:nth-child(2) { right: 8px; bottom: 11px; }.boot-orbit i:nth-child(3) { bottom: 11px; left: 8px; }
@keyframes breathe { 50% { transform: scale(1.08); } }

.brand { color: #224294; font: 700 25px/1.1 "Segoe Print", "Bradley Hand", cursive; letter-spacing: -.05em; }
:root[data-theme="night"] .brand { color: #f9f4ff; }
.brand b { display: inline-block; margin-left: 4px; color: var(--pink); font-size: 13px; vertical-align: middle; }
.eyebrow { margin: 0 0 8px; color: var(--violet); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.scene { position: relative; margin: 0; overflow: hidden; border-radius: 30px; background: #263a75; box-shadow: var(--shadow); }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.compact-scene { aspect-ratio: 2.25/1; margin: 18px 0 24px; }
.screen-head .scene { aspect-ratio: 2.35/1; margin: 16px 0 22px; }

.welcome { min-height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 88% 10%, rgba(214, 121, 255, .25), transparent 30%), linear-gradient(155deg, #122c6d 0%, #263c8f 48%, #58449d 100%); color: white; }
.welcome .brand { color: white; text-shadow: 0 3px 15px rgba(0, 0, 0, .22); }
.welcome-scene { aspect-ratio: 1.75/1; margin: 18px 0 20px; box-shadow: 0 20px 50px rgba(3, 9, 39, .35); }
.welcome-copy { max-width: 680px; margin: auto; text-align: center; }
.welcome-copy .eyebrow { color: #e1c3ff; }
.welcome-copy h1 { margin: 0; font: 700 clamp(33px, 7vw, 56px)/1.02 Georgia, serif; letter-spacing: -.04em; text-wrap: balance; }
.welcome-copy > p:last-child { max-width: 610px; margin: 14px auto 0; color: rgba(255, 255, 255, .8); font-size: 16px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; margin: 26px auto 0; }
.benefit-grid > div { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; background: rgba(255, 255, 255, .09); backdrop-filter: blur(13px); }
.benefit-grid > div > .icon { width: 28px; height: 28px; padding: 5px; color: #ffe6a6; border-radius: 9px; background: rgba(255, 255, 255, .12); }
.benefit-grid p { display: grid; gap: 3px; margin: 0; }.benefit-grid b { font-size: 13px; }.benefit-grid span { color: rgba(255, 255, 255, .68); font-size: 11px; }
.welcome .button { max-width: 510px; margin: 24px auto 0; color: #1c3477; background: linear-gradient(100deg, #bdefff, #ddd4ff 52%, #ffc9e8); box-shadow: 0 16px 34px rgba(7, 13, 54, .32); }
.privacy-note, .demo-note, .version { margin: 13px auto 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.welcome .privacy-note { max-width: 560px; color: rgba(255, 255, 255, .56); }

.content-page { padding: calc(18px + env(safe-area-inset-top)) 24px 35px; }
.screen-head { margin: -18px -24px 0; padding: calc(17px + env(safe-area-inset-top)) 24px 18px; background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.back-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px 7px 5px; border: 0; color: var(--violet-dark); background: transparent; font-weight: 800; cursor: pointer; }.back-button .icon { width: 18px; height: 18px; }
.screen-head h1, .title-block h1, .home-greeting h1, .story-title h1, .generating-copy h1 { margin: 12px 0 7px; font: 700 clamp(31px, 5.4vw, 48px)/1.06 Georgia, "Times New Roman", serif; letter-spacing: -.035em; text-wrap: balance; }
.screen-head > p, .title-block > p:last-child, .home-greeting > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; }
.title-block { max-width: 680px; margin: 0 auto 21px; text-align: center; }
.title-block h1 { margin-top: 0; }
.step-progress { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.step-progress > div { display: grid; grid-auto-flow: column; gap: 5px; flex: 1; max-width: 260px; }.step-progress i { height: 5px; border-radius: 9px; background: var(--line); }.step-progress i.on { background: linear-gradient(90deg, var(--violet), var(--pink)); }

.button { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; padding: 12px 18px; border: 0; border-radius: 18px; font-weight: 900; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease; }.button:active:not(:disabled) { transform: translateY(1px) scale(.995); }.button.large { min-height: 62px; font-size: 16px; }.button .icon { width: 21px; height: 21px; }
.button.primary { color: white; background: linear-gradient(110deg, #9a51ec, #7547df 55%, #6647cc); box-shadow: 0 12px 28px rgba(111, 72, 214, .28); }
.button.secondary { color: var(--violet-dark); border: 1px solid #d8cff0; background: var(--violet-pale); }.button.soft { border: 1px solid var(--line); color: var(--ink); background: var(--card); }.button.soft.blue { background: var(--blue); }.button.soft.lilac { background: var(--violet-pale); }.button.soft.peach { background: var(--peach); }.button.danger { color: var(--danger); border: 1px solid rgba(191, 62, 87, .25); background: transparent; }
.text-button, .inline-link { display: block; margin: 16px auto 0; padding: 8px; border: 0; color: var(--violet-dark); background: transparent; font-weight: 800; cursor: pointer; }
.sticky-cta { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 6; }

.form-card, .builder-section, .settings-card, .subscription-card, .revive-section, .payment-card { max-width: 760px; margin: 18px auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-small); }
.form-card > label:not(.check-row), .profile-story label, .gift-fields > label, .form-grid label { display: grid; gap: 7px; margin: 0 0 16px; color: var(--ink-2); font-size: 13px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper-2); }
input { height: 50px; padding: 0 14px; } textarea { min-height: 116px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
fieldset { min-width: 0; margin: 4px 0 20px; padding: 0; border: 0; } legend { margin-bottom: 9px; color: var(--ink-2); font-size: 13px; font-weight: 900; }
.field-help { margin: -4px 0 10px; color: var(--muted); font-size: 12px; }
.choice-chips, .segmented-wrap, .quick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chips label { cursor: pointer; }.choice-chips input, .avatar-picker input, .voice-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-chips span, .segmented-wrap button, .quick-chips button, .interest-chip, .filter-row button { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--paper-2); font-size: 13px; font-weight: 800; cursor: pointer; }
.choice-chips input:checked + span, .segmented-wrap button.selected, .interest-chip.selected, .filter-row button.active { color: var(--violet-dark); border-color: var(--violet); background: var(--violet-pale); box-shadow: inset 0 0 0 1px var(--violet); }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; color: var(--ink-2); font-size: 13px; }.check-row input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--violet); }
.form-grid { display: grid; gap: 12px; }.form-grid.two { grid-template-columns: 1fr 1fr; }
.profile-story { margin: 22px -5px 5px; padding: 20px; border-radius: 20px; background: var(--card-soft); }.profile-story h2 { margin: 0; font: 700 24px/1.12 Georgia, serif; }.profile-story > p { margin: 5px 0 18px; color: var(--muted); }
.case-details { margin: 18px 0; padding: 15px; border-radius: 16px; background: var(--paper); }.case-details summary { color: var(--violet-dark); font-weight: 900; cursor: pointer; }.case-details > p { color: var(--muted); font-size: 12px; }
.avatar-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }.avatar-picker label { cursor: pointer; }.avatar-picker span { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border: 3px solid transparent; border-radius: 18px; background: var(--paper); }.avatar-picker img { width: 100%; height: 100%; object-fit: cover; }.avatar-picker input:checked + span { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-pale); }

.summary-strip, .quality-card, .voice-quota, .series-memory, .notice-card, .paid-success { display: flex; align-items: flex-start; gap: 14px; max-width: 760px; margin: 14px auto; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: var(--card-soft); }.summary-strip > .icon, .quality-card > .icon, .voice-quota > .icon, .series-memory > .icon, .notice-card > .icon, .paid-success > .icon { width: 42px; height: 42px; padding: 10px; color: var(--violet); border-radius: 14px; background: var(--card); }.summary-strip p, .quality-card p, .voice-quota p, .series-memory p, .notice-card p, .paid-success p { display: grid; gap: 3px; flex: 1; margin: 0; }.summary-strip span, .quality-card span, .voice-quota span, .series-memory span, .notice-card span, .paid-success span { color: var(--muted); font-size: 12px; }
.empty-card { max-width: 760px; margin: 15px auto; padding: 35px 25px; border: 1px dashed #cfc8de; border-radius: 24px; text-align: center; background: var(--paper-2); }.empty-card > .icon { width: 58px; height: 58px; padding: 14px; color: var(--violet); border-radius: 20px; background: var(--violet-pale); }.empty-card h2, .empty-card h3 { margin: 15px 0 4px; font: 700 25px/1.1 Georgia, serif; }.empty-card p { margin: 0 auto; color: var(--muted); }
.people-list, .action-stack { display: grid; gap: 10px; max-width: 760px; margin: 15px auto; }.person-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--card); box-shadow: var(--shadow-small); text-align: left; cursor: pointer; }.person-row > span:not(.avatar) { display: grid; gap: 2px; flex: 1; }.person-row b { font-size: 15px; }.person-row small { color: var(--muted); }.person-row em { max-width: 540px; overflow: hidden; color: var(--ink-2); font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.person-row > .icon { width: 38px; height: 38px; padding: 10px; color: var(--violet); border-radius: 13px; background: var(--violet-pale); }
.avatar { display: inline-block; flex: none; overflow: hidden; border: 3px solid var(--card); border-radius: 50%; background: var(--violet-pale); box-shadow: 0 3px 11px rgba(34, 42, 84, .15); }.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }.avatar-medium { width: 58px; height: 58px; }.avatar-large { width: 72px; height: 72px; }.avatar-xlarge { width: 88px; height: 88px; }
.avatar-svg { display: block; width: 100%; height: 100%; background: linear-gradient(155deg, #e9dcff, #d9f4ff); }
.person-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-small); }.person-card .person-row { border: 0; border-radius: 0; box-shadow: none; }.avatar-edit-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 39px; border: 0; border-top: 1px solid var(--line); color: var(--violet-dark); background: var(--violet-pale); font-size: 12px; font-weight: 900; cursor: pointer; }.avatar-edit-button .icon { width: 17px; height: 17px; }
.avatar-customizer { background: radial-gradient(circle at 90% 9%, rgba(246, 183, 221, .22), transparent 19rem), var(--paper); }.avatar-studio { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 18px; max-width: 900px; margin: 18px auto; }.avatar-live-preview { position: sticky; top: 18px; display: grid; align-content: start; justify-items: center; gap: 10px; align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(155deg, var(--card), var(--violet-pale)); box-shadow: var(--shadow); text-align: center; }.avatar-live-preview > .avatar-svg { width: min(100%, 250px); border: 7px solid var(--card); border-radius: 34%; box-shadow: 0 17px 35px rgba(55, 43, 104, .19); }.avatar-live-preview h2 { margin: 0; font: 700 28px Georgia, serif; }.avatar-live-preview p { margin-bottom: 4px; }.avatar-live-preview span { color: var(--muted); }.avatar-live-preview button { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 10px 14px; border: 0; border-radius: 14px; color: var(--violet-dark); background: var(--card); font-weight: 900; cursor: pointer; }.avatar-live-preview button .icon { width: 18px; height: 18px; }.avatar-controls { display: grid; gap: 11px; }.avatar-option-group { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }.avatar-option-group legend { padding: 0 6px; color: var(--ink-2); font-weight: 900; }.avatar-option-group > div { display: flex; flex-wrap: wrap; gap: 7px; }.avatar-option { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-2); background: var(--paper); font-size: 11px; font-weight: 800; cursor: pointer; }.avatar-option.selected { border-color: var(--violet); color: var(--violet-dark); background: var(--violet-pale); box-shadow: inset 0 0 0 1px var(--violet); }.avatar-option i { width: 22px; height: 22px; border: 2px solid var(--card); border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px var(--line); }.avatar-option .icon { width: 16px; height: 16px; color: var(--violet); }.avatar-note { display: flex; gap: 12px; max-width: 900px; margin: 16px auto; padding: 15px; border-radius: 18px; color: var(--ink-2); background: var(--mint); }.avatar-note > .icon { width: 38px; height: 38px; flex: none; padding: 8px; border-radius: 12px; color: #2f8066; background: var(--card); }.avatar-note p { display: grid; gap: 2px; margin: 0; }.avatar-note span { color: var(--muted); font-size: 12px; }

.ready-avatar-layout { display: grid; grid-template-columns: minmax(215px, .62fr) minmax(0, 1.38fr); gap: 18px; max-width: 980px; margin: 18px auto; }
.ready-avatar-preview { position: sticky; top: 18px; display: grid; justify-items: center; gap: 11px; align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(155deg, var(--card), var(--violet-pale)); box-shadow: var(--shadow); text-align: center; }
.ready-avatar-preview > img { width: min(100%, 260px); aspect-ratio: 1; object-fit: cover; border: 7px solid var(--card); border-radius: 28%; box-shadow: 0 17px 35px rgba(55,43,104,.2); }
.ready-avatar-preview h2, .ready-avatar-choice h2 { margin: 0; font: 700 27px Georgia, serif; }
.ready-avatar-preview p { margin-bottom: 3px; }.ready-avatar-preview span, .ready-filter-head p, .avatar-empty span { color: var(--muted); }
.ready-avatar-preview button, .ready-filter-head button, .avatar-empty button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 0; border-radius: 12px; color: var(--violet-dark); background: var(--card); font-size: 11px; font-weight: 900; cursor: pointer; }
.ready-avatar-preview button .icon { width: 17px; height: 17px; }
.ready-avatar-choice { min-width: 0; }.ready-filter-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.ready-filter-head p { margin: 5px 0 0; font-size: 12px; }
.ready-avatar-filters { display: grid; gap: 8px; }.ready-filter-group { margin: 0; padding: 11px 13px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }.ready-filter-group legend { padding: 0 5px; color: var(--ink-2); font-size: 12px; font-weight: 900; }.ready-filter-group > div { display: flex; flex-wrap: wrap; gap: 6px; }.ready-filter-group button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); background: var(--paper); font-size: 11px; font-weight: 800; cursor: pointer; }.ready-filter-group button.selected { border-color: var(--violet); color: var(--violet-dark); background: var(--violet-pale); box-shadow: inset 0 0 0 1px var(--violet); }
.ready-avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }.ready-avatar-card { position: relative; overflow: hidden; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-small); cursor: pointer; }.ready-avatar-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }.ready-avatar-card:hover img { transform: scale(1.03); }.ready-avatar-card.selected { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-pale), var(--shadow-small); }.ready-avatar-card > .icon { position: absolute; top: 7px; right: 7px; width: 25px; height: 25px; padding: 3px; color: white; border-radius: 50%; background: var(--violet); }
.avatar-empty { grid-column: 1/-1; display: grid; justify-items: center; gap: 7px; padding: 28px; border: 1px dashed var(--line); border-radius: 18px; background: var(--card); text-align: center; }.avatar-empty button { background: var(--violet-pale); }

.interest-profile { max-width: 760px; margin: 20px auto; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-small); }.person-title { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; }.person-title h2 { margin: 0; font: 700 24px Georgia, serif; }.person-title p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }.interest-cloud { display: flex; flex-wrap: wrap; gap: 7px; }.interest-chip { min-height: 36px; padding: 7px 11px; }.inline-add { display: flex; gap: 8px; margin-top: 14px; }.inline-add input { flex: 1; }.inline-add button { padding: 0 14px; border: 0; border-radius: 14px; color: white; background: var(--violet); font-weight: 900; }

.home-page { padding: calc(20px + env(safe-area-inset-top)) 24px 35px; }.home-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }.theme-switch { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }.theme-switch button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 9px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }.theme-switch button.active { color: var(--violet-dark); background: var(--violet-pale); }.theme-switch .icon { width: 14px; height: 14px; }.home-scene { aspect-ratio: 1.7/1; }.home-greeting { max-width: 720px; margin: 25px auto 18px; text-align: center; }.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 820px; margin: auto; }.feature-card { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 15px; border: 1px solid var(--line); border-radius: 23px; color: var(--ink); background: var(--card); box-shadow: var(--shadow-small); text-align: left; cursor: pointer; }.feature-card:first-child { grid-column: 1/-1; }.feature-icon { display: grid; width: 54px; height: 54px; flex: none; place-items: center; border-radius: 18px; color: var(--violet); background: var(--violet-pale); }.feature-icon .icon { width: 28px; height: 28px; }.feature-card > span:last-child { display: grid; gap: 2px; }.feature-card small { color: var(--violet-dark); font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }.feature-card b { font: 700 18px/1.2 Georgia, serif; }.feature-card em { color: var(--muted); font-size: 12px; font-style: normal; }.continue-card { background: linear-gradient(135deg, var(--violet-pale), var(--card)); }.memory-card .feature-icon { color: #c94286; background: var(--peach); }.home-shelf { max-width: 820px; margin: 32px auto 0; }.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 13px; }.section-title h2 { margin: 0; font: 700 27px Georgia, serif; }.section-title button { border: 0; color: var(--violet-dark); background: transparent; font-weight: 900; cursor: pointer; }.empty-inline { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px dashed var(--line); border-radius: 20px; }.empty-inline > .icon { width: 42px; height: 42px; padding: 10px; color: var(--violet); border-radius: 13px; background: var(--violet-pale); }.empty-inline p { display: grid; margin: 0; }.empty-inline span { color: var(--muted); font-size: 12px; }
.theme-switch .auto-letter { display: inline-grid; width: 16px; height: 16px; place-items: center; border: 1.5px solid currentColor; border-radius: 5px; font: 900 11px/1 Arial, sans-serif; }

.builder-section { margin-top: 16px; }.builder-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }.builder-title > span { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--violet), var(--pink)); font-weight: 900; }.builder-title h2 { margin: 0; font: 700 23px/1.1 Georgia, serif; }.builder-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }.hero-chooser { display: flex; gap: 10px; padding: 3px 2px 8px; overflow-x: auto; }.hero-choice { position: relative; display: grid; min-width: 96px; justify-items: center; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--paper-2); font-weight: 800; cursor: pointer; }.hero-choice.selected { border-color: var(--violet); background: var(--violet-pale); box-shadow: inset 0 0 0 1px var(--violet); }.hero-choice > .icon { position: absolute; top: 3px; right: 4px; width: 24px; height: 24px; color: var(--violet); }.option-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.option-card { position: relative; display: flex; align-items: center; gap: 10px; min-height: 82px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--paper-2); text-align: left; cursor: pointer; }.option-card > span { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 14px; color: var(--violet); background: var(--violet-pale); }.option-card > span .icon { width: 24px; height: 24px; }.option-card p { display: grid; gap: 2px; margin: 0; }.option-card small { color: var(--muted); font-size: 11px; }.option-card.selected { border-color: var(--violet); background: var(--card-soft); box-shadow: inset 0 0 0 1px var(--violet); }.option-card > .icon { position: absolute; top: 6px; right: 6px; width: 21px; height: 21px; color: var(--violet); }.quick-chips { margin-bottom: 12px; }.quick-chips button { cursor: pointer; }.textarea-label { display: grid; gap: 7px; margin-top: 13px; color: var(--ink-2); font-weight: 900; }.textarea-label span small { color: var(--muted); font-weight: 500; }.field-heading { margin: 18px 0 8px; color: var(--ink-2); font-size: 13px; }.segmented-wrap button, .quick-chips button { border: 1px solid var(--line); }.duration-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.duration-pills button { display: grid; gap: 2px; padding: 11px 8px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper-2); cursor: pointer; }.duration-pills small { color: var(--muted); font-size: 10px; }.duration-pills button.selected { border-color: var(--violet); background: var(--violet-pale); box-shadow: inset 0 0 0 1px var(--violet); }.creation-summary { max-width: 760px; margin: 18px auto; padding: 23px; border-radius: var(--radius); color: white; background: linear-gradient(135deg, #263c89, #6b3e9b); box-shadow: var(--shadow); }.creation-summary .eyebrow { color: #e5ccff; }.creation-summary h2 { margin: 0 0 7px; font: 700 26px Georgia, serif; }.creation-summary p:not(.eyebrow) { margin: 0 0 8px; }.creation-summary small { color: rgba(255,255,255,.7); }

.story-grid, .mini-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.story-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-small); }.story-open { display: flex; width: 100%; gap: 12px; padding: 12px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }.story-open > span:last-child { display: grid; align-content: center; gap: 4px; flex: 1; min-width: 0; }.story-open small { color: var(--violet-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; }.story-open b { display: -webkit-box; overflow: hidden; font: 700 16px/1.25 Georgia, serif; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.story-open em { color: var(--muted); font-size: 11px; font-style: normal; }.story-thumb { position: relative; width: 102px; flex: none; overflow: hidden; aspect-ratio: .78/1; border-radius: 15px; }.story-thumb img { width: 100%; height: 100%; object-fit: cover; }.story-thumb .icon { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; padding: 5px; color: #fff; border-radius: 50%; background: rgba(91, 39, 133, .75); }.card-actions { display: flex; gap: 6px; padding: 0 10px 10px; }.card-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-height: 36px; border: 0; border-radius: 12px; color: var(--violet-dark); background: var(--violet-pale); font-size: 11px; font-weight: 900; cursor: pointer; }.card-actions .icon { width: 15px; height: 15px; }.filter-row { display: flex; gap: 7px; margin: 10px 0 17px; padding-bottom: 5px; overflow-x: auto; }.filter-row button { white-space: nowrap; }.search-box { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; padding: 0 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }.search-box input { border: 0; background: transparent; }.search-box .icon { color: var(--muted); }.library-empty { margin-top: 22px; }

.generating-page { min-height: 100dvh; padding: 9vh 24px 40px; background: var(--paper); }.generating-scene { max-width: 780px; aspect-ratio: 1.8/1; margin: auto; }.generating-copy { max-width: 620px; margin: 28px auto 0; text-align: center; }.spark-loader { display: grid; width: 58px; height: 58px; margin: auto auto 15px; place-items: center; border-radius: 20px; color: white; background: linear-gradient(135deg, var(--violet), var(--pink)); animation: breathe 1.3s ease-in-out infinite; }.spark-loader .icon { width: 31px; height: 31px; }.generating-copy > p:not(.eyebrow) { color: var(--muted); }.writing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 25px; }.writing-steps span { padding: 9px; border-radius: 12px; color: var(--muted); background: var(--card); font-size: 11px; }.writing-steps span.done { color: #257956; background: var(--mint); }.writing-steps span.active { color: var(--violet-dark); background: var(--violet-pale); }

.story-app { max-width: 820px; }.story-page { padding: 0 24px 38px; }.story-hero { position: relative; margin: 0 -24px; overflow: hidden; aspect-ratio: 1.78/1; border-radius: 0 0 32px 32px; }.story-hero > img { width: 100%; height: 100%; object-fit: cover; }.round-back { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 20px; display: grid; width: 45px; height: 45px; place-items: center; border: 0; border-radius: 50%; color: #213468; background: rgba(255,255,255,.9); box-shadow: var(--shadow-small); cursor: pointer; }.ready-badge { position: absolute; right: 18px; bottom: 15px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(45, 33, 113, .86); font-size: 12px; font-weight: 900; backdrop-filter: blur(8px); }.ready-badge .icon { width: 17px; height: 17px; }.story-title { max-width: 700px; margin: 30px auto 20px; text-align: center; }.story-title > p:last-child { color: var(--muted); }.story-wish { display: flex; gap: 12px; max-width: 700px; margin: 0 auto 25px; padding: 17px; border: 1px solid #ead1a5; border-radius: 20px; background: #fff7e8; color: #4d3c55; }.story-wish > span { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 13px; color: #a7641c; background: #ffe3b1; }.story-wish small { color: #a7641c; font-weight: 900; text-transform: uppercase; }.story-wish p { margin: 3px 0 0; }.story-text { max-width: 680px; margin: auto; font: 18px/1.83 Georgia, "Times New Roman", serif; }.story-text p { margin: 0 0 1.25em; }.story-primary-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 700px; margin: 28px auto 15px; }.story-primary-actions button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 74px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; color: var(--violet-dark); background: var(--card); box-shadow: var(--shadow-small); cursor: pointer; }.story-primary-actions > button:nth-child(3) { color: #965324; background: #fff5e5; }.story-primary-actions .icon { width: 27px; height: 27px; }.story-primary-actions span { display: grid; text-align: left; }.story-primary-actions small { color: var(--muted); font-size: 10px; }.more-actions { max-width: 700px; margin: 12px auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }.more-actions summary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; color: var(--ink-2); font-weight: 900; cursor: pointer; list-style: none; }.more-actions > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 12px 12px; }.more-actions button, .settings-link, .preview-actions button { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 12px; color: var(--ink-2); background: var(--paper); font-size: 12px; font-weight: 800; cursor: pointer; }.more-actions .icon, .settings-link .icon, .preview-actions .icon { width: 18px; height: 18px; color: var(--violet); }.danger-link { color: var(--danger) !important; }

.voice-list { display: grid; gap: 10px; max-width: 760px; margin: 16px auto; }.voice-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); cursor: pointer; }.voice-card:has(input:checked) { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }.voice-portrait { display: grid; width: 56px; height: 56px; flex: none; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink)); }.voice-portrait.sage { background: linear-gradient(135deg, #284a75, #6d6e9d); }.voice-portrait.grandma { background: linear-gradient(135deg, #ce6f55, #b64880); }.voice-card > span:nth-of-type(2) { display: grid; flex: 1; }.voice-card small { color: var(--muted); }.voice-card button { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 0; border-radius: 11px; color: var(--violet-dark); background: var(--violet-pale); font-size: 11px; font-weight: 900; cursor: pointer; }.voice-card button .icon { width: 14px; height: 14px; }.range-label { display: grid; gap: 6px; max-width: 760px; margin: 17px auto; font-weight: 900; }.range-label input { accent-color: var(--violet); }

.avatar-builder, .product-cards { display: grid; gap: 9px; }.avatar-build-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--paper); }.avatar-build-card > div { display: grid; flex: 1; }.avatar-build-card small { color: var(--muted); }.avatar-build-card button { display: inline-flex; align-items: center; gap: 6px; padding: 9px; border: 0; border-radius: 11px; color: var(--violet-dark); background: var(--violet-pale); font-size: 11px; font-weight: 900; cursor: pointer; }.avatar-build-card button .icon { width: 16px; height: 16px; }.product-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: var(--paper-2); text-align: left; cursor: pointer; }.product-card.selected { border-color: var(--violet); background: var(--violet-pale); box-shadow: inset 0 0 0 1px var(--violet); }.product-card > span { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 15px; color: var(--violet); background: var(--card); }.product-card p { display: grid; flex: 1; margin: 0; }.product-card small { color: var(--muted); }.product-card strong { color: var(--violet-dark); }.product-card > .icon { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; color: var(--violet); }.page-counter { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 13px; border-radius: 17px; background: var(--paper); }.page-counter > div { display: grid; flex: 1; }.page-counter small { color: var(--muted); }.page-counter button { width: 38px; height: 38px; border: 0; border-radius: 12px; color: var(--violet-dark); background: var(--violet-pale); font-size: 20px; font-weight: 900; cursor: pointer; }.page-counter strong { min-width: 28px; text-align: center; }.toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }.toggle-row input { position: absolute; opacity: 0; }.toggle-row > span { position: relative; width: 46px; height: 26px; border-radius: 20px; background: var(--line); }.toggle-row > span::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; content: ""; transition: transform .2s ease; }.toggle-row input:checked + span { background: var(--violet); }.toggle-row input:checked + span::after { transform: translateX(20px); }.gift-fields { display: none; margin-top: 18px; }.gift-fields.visible { display: block; }.price-summary { max-width: 760px; margin: 18px auto; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #1e347b, #713c91); box-shadow: var(--shadow); }.price-summary p { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 8px; }.price-summary b { font-size: 24px; }.price-summary small { color: rgba(255,255,255,.7); }

.preview-stage { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px; max-width: 850px; margin: 18px auto; padding: 26px; border-radius: 28px; background: linear-gradient(145deg, #25285d, #744b8e); box-shadow: var(--shadow); }.book-cover { position: relative; overflow: hidden; aspect-ratio: .76/1; border-radius: 8px 16px 16px 8px; box-shadow: 10px 14px 25px rgba(0,0,0,.35); }.book-cover > img { width: 100%; height: 100%; object-fit: cover; }.book-cover > span { position: absolute; top: 10px; right: 10px; display: inline-flex; gap: 5px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(19,20,60,.74); font-size: 10px; font-weight: 900; }.book-cover > span .icon { width: 13px; height: 13px; }.book-cover > div { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 4px; padding: 35px 14px 15px; color: white; background: linear-gradient(transparent, rgba(19, 20, 64, .92)); }.book-cover b { font: 700 19px/1.05 Georgia, serif; }.book-cover small, .book-cover em { font-size: 10px; font-style: normal; }.book-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-self: center; overflow: hidden; aspect-ratio: 1.6/1; border-radius: 7px 13px 13px 7px; background: #fffdf7; box-shadow: 12px 16px 27px rgba(0,0,0,.28); transform: perspective(900px) rotateY(-4deg); }.book-spread > div { overflow: hidden; padding: 14px; border-right: 1px solid #e5dece; }.book-spread img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }.book-spread p { margin: 0; color: #2a315b; font: 10px/1.55 Georgia, serif; }.watermark { position: absolute; top: 50%; left: 50%; color: rgba(90, 49, 130, .2); font-size: 28px; font-weight: 900; transform: translate(-50%,-50%) rotate(-18deg); }.preview-actions { display: flex; justify-content: center; gap: 9px; max-width: 760px; margin: auto; }.payment-card > div:first-child { display: flex; align-items: center; gap: 12px; }.payment-card > div:first-child > .icon { width: 46px; height: 46px; padding: 10px; color: var(--violet); border-radius: 15px; background: var(--violet-pale); }.payment-card p { display: grid; margin: 0; }.payment-card p b { font-size: 24px; }.payment-card p small { color: var(--muted); }.payment-card ul, .subscription-card ul, .modal ul { padding-left: 20px; color: var(--ink-2); }
.book-generation { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; margin-top: 16px; padding: 15px; border-radius: 18px; background: var(--violet-pale); }.book-generation > .icon { width: 46px; height: 46px; padding: 10px; color: var(--violet); border-radius: 14px; background: var(--card); }.book-generation p { gap: 3px; }.book-generation p b { font-size: 15px; }.book-generation p span { color: var(--muted); font-size: 12px; }.book-generation > i { grid-column: 1/-1; height: 8px; overflow: hidden; border-radius: 99px; background: var(--card); }.book-generation > i b { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink)); animation: breathe 1.2s ease-in-out infinite; }

.settings-card h2, .subscription-card h2 { margin: 0 0 13px; font: 700 25px Georgia, serif; }.settings-card > p { color: var(--muted); }.settings-link { width: 100%; margin-top: 8px; background: var(--paper); }.subscription-card { color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255, 123, 190, .28), transparent 16rem), linear-gradient(140deg, #1c347f, #684299); }.subscription-card .eyebrow { color: #ecd5ff; }.subscription-card > p:not(.eyebrow), .subscription-card li { color: rgba(255,255,255,.78); }.subscription-card > div { display: flex; align-items: baseline; gap: 8px; }.subscription-card > div b { font-size: 34px; }.subscription-card > div span { color: rgba(255,255,255,.68); }.subscription-card .button { color: #26366f; background: linear-gradient(100deg,#c7efff,#e0d4ff,#ffcce8); }.version { margin-top: 25px; }

.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 980px); min-height: calc(72px + env(safe-area-inset-bottom)); margin: auto; padding: 7px 12px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 92%, transparent); box-shadow: 0 -8px 28px rgba(27, 35, 78, .08); backdrop-filter: blur(16px); }.bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }.bottom-nav button.active { color: var(--violet); }.bottom-nav .icon { width: 22px; height: 22px; }.bottom-nav .nav-create .icon { width: 48px; height: 48px; margin-top: -25px; padding: 13px; border: 4px solid var(--paper); border-radius: 50%; color: white; background: linear-gradient(135deg, var(--violet), var(--pink)); box-shadow: 0 8px 19px rgba(126, 71, 220, .34); }

#toast-zone { position: fixed; right: 18px; bottom: 92px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100% - 36px)); }.toast { padding: 13px 16px; border-radius: 15px; color: #fff; background: #293567; box-shadow: var(--shadow); font-weight: 800; }.toast.error { background: #a93652; }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(15, 17, 45, .68); backdrop-filter: blur(6px); }.modal { position: relative; width: min(100%, 620px); max-height: 85dvh; overflow: auto; padding: 26px; border-radius: 26px; color: var(--ink); background: var(--card); box-shadow: 0 28px 70px rgba(0,0,0,.35); }.modal h2 { margin: 0 38px 14px 0; font: 700 28px Georgia, serif; }.modal p, .modal li { color: var(--ink-2); }.modal-close { position: absolute; top: 15px; right: 15px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 12px; color: var(--ink-2); background: var(--paper); cursor: pointer; }.modal-close .icon { width: 17px; height: 17px; }.modal-editor { min-height: 55dvh; font: 16px/1.65 Georgia, serif; }

/* Responsive structure: illustrations decorate the layout; they never position controls. */
.duration-pills button { min-height: 58px; }
.back-button, .inline-link, .text-button, .card-actions button, .ready-avatar-preview button, .ready-filter-head button, .ready-filter-group button, .avatar-edit-button { min-height: 44px; }

@media (min-width: 701px) and (max-width: 1023px) {
  .app { width: 100%; }
  .content-page, .home-page { padding-right: clamp(24px, 5vw, 44px); padding-left: clamp(24px, 5vw, 44px); }
  .screen-head { margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; background: transparent; }
  .story-grid, .mini-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .app, .bottom-nav { width: min(100%, 1180px); }
  .content-page, .home-page { padding-right: clamp(32px, 4vw, 56px); padding-left: clamp(32px, 4vw, 56px); }
  .screen-head { margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; background: transparent; }
  .home-scene { max-height: 520px; }
  .library-page .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .create-page > .screen-head, .create-page > .series-memory { max-width: 1120px; margin-right: auto; margin-left: auto; }
  .create-page > .screen-head { padding-right: 0; padding-left: 0; background: transparent; }
  #story-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; max-width: 1120px; margin: 0 auto; }
  #story-form .builder-section { width: 100%; max-width: none; height: 100%; margin: 0; }
  #story-form .creation-summary, #story-form > .sticky-cta { grid-column: 1 / -1; width: 100%; max-width: none; }
  #story-form > .sticky-cta { position: static; max-width: 620px; justify-self: center; }
}

@media (max-width: 700px) {
  .app { width: 100%; }
  .content-page, .home-page { padding-right: 16px; padding-left: 16px; }
  .screen-head { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
  .welcome { padding-right: 16px; padding-left: 16px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .welcome-scene { aspect-ratio: 1.3/1; }.welcome-copy h1 { font-size: 33px; }
  .home-top { align-items: flex-start; }.theme-switch button { width: 34px; padding: 6px; justify-content: center; }.theme-switch button { font-size: 0; }.theme-switch .icon { width: 18px; height: 18px; }.theme-switch .auto-letter { width: 18px; height: 18px; font-size: 12px; }
  .home-scene { aspect-ratio: 1.28/1; }.compact-scene, .screen-head .scene { aspect-ratio: 1.55/1; }
  .home-actions { grid-template-columns: 1fr; }.feature-card:first-child { grid-column: auto; }
  .option-cards, .story-grid, .mini-stories { grid-template-columns: 1fr; }
  .story-open { align-items: center; }.story-thumb { width: 85px; }
  .story-hero { aspect-ratio: 1.25/1; }.story-text { font-size: 17px; line-height: 1.78; }
  .story-primary-actions { gap: 7px; }.story-primary-actions button { display: grid; justify-items: center; }.story-primary-actions span { text-align: center; }.story-primary-actions .icon { width: 24px; height: 24px; }
  .preview-stage { grid-template-columns: 1fr; }.book-cover { width: 60%; justify-self: center; }.book-spread { width: 100%; }
  .avatar-studio, .ready-avatar-layout { grid-template-columns: 1fr; }.avatar-live-preview, .ready-avatar-preview { position: static; }.avatar-live-preview > .avatar-svg, .ready-avatar-preview > img { width: 190px; }.ready-avatar-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 440px) {
  .form-grid.two { grid-template-columns: 1fr; }
  .form-card, .builder-section, .settings-card, .subscription-card, .revive-section, .payment-card { padding: 17px; border-radius: 22px; }
  .screen-head h1, .title-block h1, .home-greeting h1 { font-size: 31px; }
  .story-title h1 { font-size: 32px; }
  .duration-pills small { display: none; }
  .more-actions > div { grid-template-columns: 1fr; }
  .avatar-build-card { align-items: flex-start; flex-wrap: wrap; }.avatar-build-card > div { min-width: 130px; }.avatar-build-card button { margin-left: 100px; margin-top: -35px; }
  .voice-card { flex-wrap: wrap; }.voice-card button { margin-left: 68px; margin-top: -15px; }
  .ready-filter-head { align-items: flex-start; flex-direction: column; }.ready-avatar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.auto-length-note{margin:18px 0;padding:14px 16px;border-radius:16px;background:rgba(166,91,255,.08);line-height:1.45}.auto-length-note b{color:var(--ink,#151557)}

/* v0.10.1 — simplified story constructor */
.story-form-simple { display:grid; gap:18px; max-width:920px; margin:0 auto; }
.story-form-simple .builder-section { width:100%; max-width:none; margin:0; height:auto; }
.story-form-simple .builder-primary { padding:26px; }
.story-form-simple .main-wish textarea { min-height:160px; font-size:15px; }
.story-advanced { overflow:hidden; border:1px solid var(--line); border-radius:24px; background:var(--card); box-shadow:var(--shadow-small); }
.story-advanced > summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; cursor:pointer; list-style:none; }
.story-advanced > summary::-webkit-details-marker { display:none; }
.story-advanced > summary > span { display:grid; grid-template-columns:40px 1fr; column-gap:12px; align-items:center; min-width:0; }
.story-advanced > summary .icon { grid-row:1/3; width:40px; height:40px; padding:10px; border-radius:13px; color:var(--violet); background:var(--violet-pale); }
.story-advanced > summary b { color:var(--ink); font-size:16px; }
.story-advanced > summary small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.story-advanced > summary strong { flex:none; color:var(--violet-dark); font-size:13px; }
.story-advanced[open] > summary { border-bottom:1px solid var(--line); }
.story-advanced-body { display:grid; gap:22px; padding:22px; }
.advanced-field h3 { margin:0 0 4px; color:var(--ink-2); font-size:14px; }
.advanced-field > p { margin:0 0 11px; color:var(--muted); font-size:12px; }
.story-form-simple .creation-summary { width:100%; max-width:none; margin:0; }
.story-form-simple > .sticky-cta { position:static; width:min(100%,620px); margin:0 auto; }
@media (min-width:1024px) {
  #story-form.story-form-simple { display:grid; grid-template-columns:1fr; gap:18px; max-width:920px; }
  #story-form.story-form-simple .builder-section, #story-form.story-form-simple .story-advanced, #story-form.story-form-simple .creation-summary, #story-form.story-form-simple > .sticky-cta { grid-column:1; }
}
@media (max-width:700px) {
  .story-form-simple .builder-primary, .story-advanced-body { padding:17px; }
  .story-advanced > summary { padding:16px; }
  .story-advanced > summary strong { display:none; }
}

/* v0.10.2 — responsive art, serial continuation and illustrated controls */
@media (min-width: 1024px) {
  .home-page { padding-right: clamp(44px, 6vw, 76px); padding-left: clamp(44px, 6vw, 76px); }
  .home-scene { width: 100%; max-height: none; aspect-ratio: 2.15 / 1; border-radius: 32px; }
  .home-scene img { object-fit: cover; object-position: center 45%; }
  .home-greeting { max-width: 800px; margin-top: 32px; }
  .home-actions, .home-shelf { max-width: 920px; }
}
@media (min-width: 1440px) {
  .app, .bottom-nav { width: min(100%, 1320px); }
  .home-page { padding-right: 72px; padding-left: 72px; }
  .home-scene { aspect-ratio: 2.35 / 1; }
}
/* Icons should read as small storybook stickers, not naked template glyphs. */
.feature-icon, .story-primary-actions > button > .icon, .more-actions button > .icon,
.story-advanced > summary .icon, .series-memory > .icon, .empty-inline > .icon {
  border: 1px solid rgba(181,89,235,.16);
  background: radial-gradient(circle at 32% 25%, #fff 0 18%, #f8ddff 38%, #e9d7ff 70%, #d9edff 100%);
  box-shadow: 0 5px 13px rgba(91,55,145,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.story-primary-actions > button > .icon, .more-actions button > .icon { padding: 5px; border-radius: 10px; }
\n\n/* v0.10.6 — technical-only responsive generation/error UI fix */\n@media (min-width: 1024px) {\n  .generating-app { width: min(100%, 1320px); }\n  .generating-page { display: grid; align-content: start; min-height: 100dvh; padding: clamp(52px, 6vh, 86px) clamp(48px, 6vw, 92px) 54px; }\n  .generating-scene { width: min(100%, 980px); max-width: 980px; aspect-ratio: 2.05 / 1; }\n  .generating-copy { width: min(100%, 780px); max-width: 780px; margin-top: 30px; }\n  .generating-copy h1 { font-size: clamp(42px, 4vw, 58px); }\n  .generating-copy > p:not(.eyebrow) { max-width: 680px; margin-right: auto; margin-left: auto; font-size: 16px; }\n  .writing-steps { max-width: 760px; margin-right: auto; margin-left: auto; }\n  .writing-steps span { padding: 11px 12px; font-size: 12px; }\n  .modal { width: min(92vw, 560px); padding: 28px 30px; }\n}\n@media (min-width: 701px) and (max-width: 1023px) {\n  .generating-page { padding: 7vh clamp(28px, 6vw, 58px) 42px; }\n  .generating-scene { width: 100%; max-width: 820px; aspect-ratio: 1.9 / 1; }\n  .generating-copy { max-width: 680px; }\n  .modal { width: min(88vw, 560px); }\n}\n@media (max-width: 700px) {\n  .generating-page { padding: calc(20px + env(safe-area-inset-top)) 16px 28px; }\n  .generating-scene { width: 100%; aspect-ratio: 1.35 / 1; border-radius: 22px; }\n  .generating-copy { margin-top: 22px; }\n  .generating-copy h1 { font-size: clamp(31px, 9vw, 40px); }\n  .writing-steps { grid-template-columns: 1fr; gap: 7px; margin-top: 20px; }\n  .modal-backdrop { padding: 14px; }\n  .modal { width: 100%; max-height: min(86dvh, 680px); padding: 22px 18px 18px; border-radius: 22px; }\n  .modal h2 { margin-right: 42px; font-size: 25px; line-height: 1.08; }\n  .modal .button { width: 100%; }\n}\n
/* v0.11.1 — global fluid responsive system.
   Components adapt to the actual available width; breakpoints below are QA/layout enhancements, not device locks. */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; }
body { overflow-x: clip; }

:where(.app, main, section, article, form, fieldset, details, .content-page, .home-page,
  .form-card, .builder-section, .builder-primary, .story-form-simple, .story-advanced,
  .story-advanced-body, .creation-summary, .settings-card, .subscription-card,
  .revive-section, .payment-card, .home-actions, .home-shelf, .people-list,
  .action-stack, .summary-strip, .quality-card, .voice-quota, .series-memory,
  .notice-card, .paid-success, .person-row, .person-card, .screen-head,
  .title-block, .home-greeting, .advanced-field, .main-wish) { min-width: 0; max-width: 100%; }

:where(.app, .content-page, .home-page, .story-form-simple, .builder-section,
  .story-advanced, .story-advanced-body, .creation-summary, .form-card) > * { min-width: 0; max-width: 100%; }

:where(input, textarea, select, button) { min-width: 0; max-width: 100%; }
:where(textarea, input[type="text"], input[type="email"], input[type="password"], select) { width: 100%; }
:where(img, svg, video, canvas) { max-width: 100%; }

:where(.choice-chips, .segmented-wrap, .quick-chips, .filter-row, .story-primary-actions,
  .duration-pills, .theme-switch) { min-width: 0; max-width: 100%; flex-wrap: wrap; }

:where(.choice-chips span, .segmented-wrap button, .quick-chips button, .interest-chip,
  .filter-row button, .button, .person-row, .story-open) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

:where(.form-grid.two, .option-cards, .story-grid, .mini-stories, .home-actions,
  .preview-stage, .ready-avatar-grid) > * { min-width: 0; }

/* Auto-fit wherever cards may legitimately change column count. */
.ready-avatar-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.avatar-picker { grid-template-columns: repeat(auto-fit, minmax(min(100%, 64px), 1fr)); }

/* Long labels and helper text must wrap instead of widening a card. */
:where(p, li, label, small, strong, b, em, .story-advanced > summary small) {
  overflow-wrap: break-word;
  word-break: normal;
}
.story-advanced > summary small { white-space: normal; text-overflow: clip; }

/* The application may be wide on desktop, but never wider than its host (browser / Mini App). */
.app, .bottom-nav { max-width: 100%; }
.support-note,.support-question,.support-ticket{padding:14px;border:1px solid rgba(91,65,135,.16);border-radius:18px;margin:10px 0;background:rgba(255,255,255,.68)}
.support-faq{display:grid;gap:8px;margin:14px 0}.support-question summary{font-weight:800;cursor:pointer}.support-question p{line-height:1.55}.support-ticket{margin:12px 0}.support-message{padding:10px 12px;border-radius:14px;margin:8px 0}.support-message.user{background:#f7efff}.support-message.admin{background:#eef5ff}.support-status{font-size:.86rem;opacity:.75}

/* v0.11.8 — optional parent insight layer after a story */
.parent-insight { max-width:700px; margin:30px auto 22px; padding:18px; border:1px solid #ead1a5; border-radius:22px; background:#fff7e8; color:#4d3c55; }
.parent-insight-head { display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.parent-insight-head > span { display:grid; width:42px; height:42px; flex:none; place-items:center; border-radius:13px; color:#a7641c; background:#ffe3b1; }
.parent-insight-head small { color:#a7641c; font-size:10px; font-weight:900; letter-spacing:.04em; }
.parent-insight-head h2 { margin:2px 0 0; font:700 20px/1.2 Georgia,"Times New Roman",serif; }
.parent-insight-options { display:grid; gap:7px; }
.parent-insight-option { display:flex; width:100%; min-width:0; align-items:center; justify-content:space-between; gap:12px; padding:12px 4px; border:0; border-top:1px solid rgba(167,100,28,.16); color:inherit; background:transparent; text-align:left; cursor:pointer; }
.parent-insight-option span { display:grid; min-width:0; gap:2px; }
.parent-insight-option b { color:#69451f; font-size:14px; }
.parent-insight-option small { color:#705f69; font-size:12px; line-height:1.45; }
.parent-insight-option strong { flex:none; color:#a7641c; font-size:20px; }
.parent-insight-option:hover b { text-decoration:underline; }
.modal-note { color:var(--muted); font-size:12px; }

/* v0.12.1 — Parent Insight flow + parent library */
.insight-draft { max-width:760px; margin:18px auto; padding:18px 20px; border:1px solid #e8cfa4; border-radius:22px; background:#fff7e8; color:#4d3c55; }
.insight-draft h2 { margin:2px 0 7px; font:700 24px/1.2 Georgia,serif; }
.insight-draft > p:not(.eyebrow) { margin:0 0 13px; color:#705f69; }
.insight-draft > div { display:grid; gap:4px; padding-top:12px; border-top:1px solid rgba(167,100,28,.18); }
.insight-draft small { color:#a7641c; font-weight:900; font-size:10px; letter-spacing:.04em; }
.insight-draft strong { font-size:14px; line-height:1.45; }
.more-menu-grid { max-width:760px; margin:14px auto; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.more-menu-card { max-width:760px; margin:14px auto; border:1px solid var(--line); border-radius:22px; background:var(--card); overflow:hidden; }
.more-menu-card > button, button.more-menu-card { width:100%; min-width:0; display:flex; align-items:center; gap:14px; padding:20px; color:inherit; background:transparent; text-align:left; border:0; cursor:pointer; }
button.more-menu-card { margin:0; border:1px solid var(--line); }
.more-menu-card svg { width:28px; height:28px; flex:none; color:#e763dc; }
.more-menu-card span { display:grid; min-width:0; gap:3px; flex:1; }
.more-menu-card small { color:#e763dc; font-size:10px; font-weight:900; letter-spacing:.04em; }
.more-menu-card b { font:700 20px/1.2 Georgia,serif; }
.more-menu-card em { color:var(--muted); font-style:normal; font-size:12px; line-height:1.4; }
.more-menu-card strong { flex:none; color:#e763dc; font-size:22px; }
.more-menu-card.featured { background:linear-gradient(135deg,rgba(121,75,167,.35),rgba(225,95,209,.16)); }
.parents-intro { max-width:760px; margin:18px auto 22px; padding:22px; display:flex; gap:16px; border:1px solid var(--line); border-radius:24px; background:var(--card); }
.parents-intro > svg { width:34px; height:34px; flex:none; color:#e763dc; }
.parents-intro h2 { margin:3px 0 8px; font:700 26px/1.2 Georgia,serif; }
.parents-intro p { color:var(--muted); }
.parents-topic-grid { max-width:760px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.parents-topic { display:flex; gap:12px; padding:18px; border:1px solid var(--line); border-radius:20px; background:var(--card); }
.parents-topic > span { font-size:24px; }
.parents-topic > img { width:96px; height:96px; flex:none; border-radius:16px; object-fit:cover; }
.parents-topic h3 { margin:0 0 6px; font-size:16px; }
.parents-topic p { margin:0 0 8px; color:var(--muted); font-size:13px; line-height:1.45; }
.parents-topic small { color:#d878d7; font-weight:700; }
@media (max-width:640px) { .more-menu-grid,.parents-topic-grid { grid-template-columns:1fr; } .insight-draft,.parents-intro { padding:16px; } }

/* v0.12.4 parent hub + notifications */
.home-tools{display:flex;align-items:center;gap:8px}.notification-button{position:relative;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:14px;background:var(--paper-2);color:var(--violet);cursor:pointer}.notification-button .icon{width:20px;height:20px}.notification-button span{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#e7639c;color:#fff;font-size:10px;font-weight:900;display:grid;place-items:center}.parent-hub-head{max-width:760px;margin:0 auto 18px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.parent-hub-head h1{margin:4px 0 6px;font:700 36px/1.05 Georgia,serif}.parent-hub-head p{margin:0;color:var(--muted)}.notification-list{max-width:760px;margin:18px auto;display:grid;gap:12px}.notification-item{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--card)}.notification-item.unread{box-shadow:inset 4px 0 0 var(--violet)}.notification-item h3{margin:4px 0;font:700 19px Georgia,serif}.notification-item p{margin:0;color:var(--muted)}.notification-item small{color:var(--muted)}.notification-item button{flex:none;border:0;background:transparent;color:var(--violet-dark);font-weight:900;cursor:pointer}.muted{color:var(--muted)}
@media(max-width:640px){.parent-hub-head h1{font-size:30px}.notification-item{align-items:flex-start;flex-direction:column}.notification-item button{align-self:flex-end}}

/* v0.12.5 subscription architecture */
.subscription-status { max-width:760px; margin:18px auto; padding:18px 20px; display:grid; gap:5px; border:1px solid var(--line); border-radius:20px; background:var(--card); }
.subscription-status.good { background:linear-gradient(135deg,rgba(104,66,153,.20),rgba(199,239,255,.12)); }
.subscription-status b { font:700 21px Georgia,serif; }
.subscription-status span,.renewal-row p,.legal-note { color:var(--muted); }
.plan-card ul { padding-left:20px; color:var(--ink-2); }
.plan-price { display:flex; align-items:baseline; gap:8px; margin:8px 0 16px; }
.plan-price b { font-size:34px; }
.plan-price span { color:var(--muted); }
.renewal-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.renewal-row > div { min-width:0; }
.renewal-row p { margin:5px 0 0; }
.renewal-row .button { width:auto; flex:none; }
.legal-note { font-size:12px; line-height:1.45; }
@media (max-width:640px) { .renewal-row { align-items:stretch; flex-direction:column; } .renewal-row .button { width:100%; } }
/* v0.12.6 — branded first entry */
.welcome-v2{display:flex;flex-direction:column;align-items:center;background:radial-gradient(circle at 50% 28%,rgba(102,117,255,.32),transparent 32%),linear-gradient(180deg,#08133e 0%,#13265f 56%,#382b78 100%);padding-top:calc(20px + env(safe-area-inset-top));overflow:hidden}.welcome-brand{width:min(100%,760px);display:flex;align-items:center;gap:10px;font:700 21px Georgia,serif;color:#fff}.book-mark{font-size:23px}.welcome-visual{width:min(100%,760px);margin-top:16px}.welcome-v2 .welcome-scene{margin:0;aspect-ratio:1.72;border-radius:28px;overflow:hidden;position:relative}.welcome-v2 .welcome-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,19,62,.55),transparent 48%)}.welcome-v2 .welcome-copy{margin-top:-8px;position:relative;z-index:2}.welcome-v2 .welcome-copy h1{font-size:clamp(35px,6vw,54px);color:#fff1ce}.welcome-v2 .welcome-copy>p:last-child{max-width:650px}.welcome-actions{width:min(100%,510px);text-align:center}.welcome-actions .button{margin-top:22px}.welcome-trial{font-size:13px;color:#f4e5c6;margin:12px 0}.welcome-trial span{margin:0 7px;color:#b9bfe0}.welcome-login{appearance:none;border:0;background:transparent;color:#d7daed;font:inherit;padding:10px;cursor:pointer}.welcome-login b{color:#fff;text-decoration:underline;text-underline-offset:3px}.login-page{min-height:100dvh;background:linear-gradient(180deg,#0c1847 0 32%,#fff8ef 32%);padding-top:calc(18px + env(safe-area-inset-top))}.login-page .back-button{color:#fff}.login-hero{max-width:620px;margin:6px auto 0}.login-scene{aspect-ratio:1.7;border-radius:26px;box-shadow:0 22px 55px rgba(8,16,56,.25)}.login-page .title-block{max-width:600px;margin:22px auto 16px;text-align:center}.login-page .title-block h1{font:700 clamp(31px,6vw,45px) Georgia,serif}.login-card{max-width:540px;margin:auto}.login-hint{font-size:12px;color:var(--muted);line-height:1.55;margin:14px 0 0}.subscription-plans{margin:18px 0 22px}.subscription-plans-head{margin-bottom:16px}.subscription-plans-head h2{font:700 28px Georgia,serif;margin:5px 0 8px}.subscription-plans-head>p:last-child{color:var(--muted);line-height:1.55}.subscription-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.subscription-plan{position:relative;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:20px;display:flex;flex-direction:column;min-width:0}.subscription-plan.annual{border:2px solid #e0a83a;background:linear-gradient(160deg,var(--card),rgba(255,222,150,.14))}.subscription-plan small{font-weight:800;color:var(--muted)}.subscription-plan h3{font:700 24px Georgia,serif;margin:9px 0}.subscription-plan p{color:var(--muted);font-size:13px;line-height:1.45}.subscription-plan .button{margin-top:auto}.plan-gift-badge{position:absolute;right:12px;top:-10px;background:#7d43d7;color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900}.annual-gift{background:rgba(255,225,164,.32);border-radius:14px;padding:12px;margin:3px 0 15px}.annual-gift b,.annual-gift span{display:block}.annual-gift b{font-size:13px}.annual-gift span{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.4}@media(max-width:620px){.welcome-v2{padding-left:16px;padding-right:16px}.welcome-v2 .welcome-scene{aspect-ratio:1.12}.welcome-v2 .welcome-scene img{object-fit:cover}.welcome-v2 .welcome-copy h1{font-size:35px}.subscription-plan-grid{grid-template-columns:1fr}.login-page{background:linear-gradient(180deg,#0c1847 0 25%,#fff8ef 25%)}}

/* v0.14.1 ready-flow fixes */
.onboarding-page .compact-scene{aspect-ratio:2.15/1;background:#fff4e7}.onboarding-page .compact-scene img{width:100%;height:100%;object-fit:contain;object-position:center}.simple-avatar-choice{max-width:760px;margin:20px auto}.simple-avatar-choice .ready-avatar-grid{margin-bottom:16px}.legal-check{display:flex!important;align-items:flex-start;gap:10px;margin:12px 0;font-weight:600!important}.legal-check input{width:18px!important;height:18px!important;min-height:0!important;margin-top:2px}.legal-check span{line-height:1.45}.legal-check a{text-decoration:underline}.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted)}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.social-auth{display:grid;gap:8px}.person-form-page .form-grid.two{align-items:start}

/* v0.14.3 — connected account flow */
.auth-page{min-height:100dvh;background:radial-gradient(circle at 18% 12%,rgba(121,102,255,.18),transparent 28%),linear-gradient(145deg,#091540 0%,#17275f 48%,#3c2d79 100%);color:#fff;padding:28px 22px 46px;position:relative}.auth-back{position:absolute;left:24px;top:24px;color:#fff;z-index:2}.auth-shell{width:min(100%,1040px);min-height:calc(100dvh - 74px);margin:auto;display:grid;grid-template-columns:minmax(280px,.9fr) minmax(430px,1.1fr);gap:64px;align-items:center}.auth-brand{position:absolute;top:28px;display:flex;gap:10px;align-items:center;font:700 20px Georgia,serif}.auth-copy{max-width:450px}.auth-copy .eyebrow{color:#e7c9ff}.auth-copy h1{font:700 clamp(38px,5vw,60px)/1.02 Georgia,serif;color:#fff0cd;letter-spacing:-.035em;margin:8px 0 18px}.auth-copy>p:last-child{font-size:16px;line-height:1.6;color:rgba(255,255,255,.76)}.auth-card{background:#fffaf3;color:#16245a;border:1px solid rgba(255,255,255,.5);border-radius:30px;padding:34px;box-shadow:0 30px 70px rgba(4,10,39,.32)}.auth-card h2{font:700 34px Georgia,serif;margin:0 0 8px}.auth-subtitle{color:#777386;line-height:1.5;margin:0 0 24px}.auth-card form>label,.auth-password-grid label,.auth-modal label{display:grid;gap:7px;font-size:13px;font-weight:700;margin:0 0 14px}.auth-card input[type=email],.auth-card input[type=password],.auth-modal input{width:100%;box-sizing:border-box;border:1px solid #ddd5e7;border-radius:14px;background:#fff;padding:13px 14px;font:inherit;color:#17204d;outline:none}.auth-card input:focus,.auth-modal input:focus{border-color:#9d50d6;box-shadow:0 0 0 3px rgba(157,80,214,.12)}.auth-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-consents{border-top:1px solid #e8e0ec;margin-top:8px;padding-top:16px}.auth-card .legal-check{display:grid;grid-template-columns:20px 1fr;gap:9px;align-items:start;font-weight:500;line-height:1.4;margin:9px 0}.auth-card .legal-check input{margin-top:3px}.auth-card a{color:#7438b6}.auth-submit{width:100%;margin-top:18px}.auth-switch{text-align:center;color:#777386;margin:20px 0 0}.auth-switch .text-button,.forgot-link{color:#7438b6;font-weight:800}.forgot-link{display:block;margin:16px auto 0}.auth-modal{max-width:480px}.auth-modal h2{font:700 30px Georgia,serif;margin:6px 0 8px}.auth-modal>p{color:var(--muted);line-height:1.5}.auth-modal form{margin-top:20px}
@media(max-width:780px){.auth-page{padding:72px 16px 32px}.auth-back{left:16px;top:18px}.auth-shell{display:block;min-height:auto}.auth-brand{top:22px;left:64px}.auth-copy{text-align:center;margin:22px auto 24px}.auth-copy h1{font-size:38px}.auth-copy>p:last-child{display:none}.auth-card{max-width:560px;margin:auto;padding:24px;border-radius:24px}.auth-password-grid{grid-template-columns:1fr}}
