/* /Layout/ReaderLayout.razor.rz.scp.css */
.immersive-layout[b-b3j6ea1ek1] { min-height: 100dvh; overflow-x: hidden; background: #e9e3d8; }
/* /Pages/Reader.razor.rz.scp.css */
.reader-shell[b-g3uut2g4rx] {
    --reader-bg: #efe3c8;
    --reader-paper: #efe3c8;
    --reader-ink: #6a5132;
    --reader-muted: #8b765a;
    --reader-accent: #6a5132;
    position: relative;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
    color: var(--reader-ink);
    background: var(--reader-bg);
    transition: background .25s, color .25s;
}

.generation-screen[b-g3uut2g4rx] {
    min-height: 100dvh;
    box-sizing: border-box;
    padding-top: clamp(2rem,7vh,5rem);
    background: #efe3c8;
}
.generation-art[b-g3uut2g4rx] {
    width: min(42rem,88vw);
    height: auto;
    display: block;
    margin: -2rem auto -5rem;
    filter:
        drop-shadow(0 .65rem .55rem rgba(106, 81, 50, .24))
        drop-shadow(0 1.8rem 2.4rem rgba(106, 81, 50, .32));
}
.generation-screen h1[b-g3uut2g4rx] { position: relative; margin-top: 0; margin-bottom: 2.5rem; color: var(--ink); }
.generation-progress[b-g3uut2g4rx] { width: min(50rem, 90vw); margin: 0 auto; }
.generation-progress-track[b-g3uut2g4rx] { height: 4px; margin: 0 1.25rem -1.15rem; overflow: hidden; border-radius: 10px; background: rgba(111,117,109,.2); }
.generation-progress-track span[b-g3uut2g4rx] { display: block; height: 100%; border-radius: inherit; background: var(--forest); transition: width .6s ease; }
.generation-progress ol[b-g3uut2g4rx] { position: relative; display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; list-style: none; }
.generation-progress li[b-g3uut2g4rx] { display: flex; flex-direction: column; align-items: center; gap: .55rem; color: #8f948d; font-size: .65rem; font-weight: 700; }
.generation-progress li > span[b-g3uut2g4rx] { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; border: 2px solid #d1d1c8; border-radius: 50%; background: var(--cream); font-family: 'Libre Baskerville',serif; transition: .35s ease; }
.generation-progress li small[b-g3uut2g4rx] { font-size: .58rem; font-weight: 600; white-space: nowrap; }
.generation-progress li.complete[b-g3uut2g4rx],
.generation-progress li.active[b-g3uut2g4rx] { color: var(--forest); }
.generation-progress li.complete > span[b-g3uut2g4rx] { color: var(--cream); border-color: var(--forest); background: var(--forest); }
.generation-progress li.active > span[b-g3uut2g4rx] { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(182,138,69,.14); animation: activeStep-b-g3uut2g4rx 1.8s ease-in-out infinite; }

.reader-header[b-g3uut2g4rx] {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 0;
    left: 0;
    height: 4.5rem;
    display: grid;
    grid-template-columns: 1fr minmax(0, auto) 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 clamp(1.25rem, 2.5vw, 3rem);
    pointer-events: none;
}

.reader-back[b-g3uut2g4rx],
.reader-toolbar[b-g3uut2g4rx],
.reader-title[b-g3uut2g4rx] { pointer-events: auto; }
.reader-back[b-g3uut2g4rx] { width: max-content; display: inline-flex; align-items: center; gap: .45rem; color: var(--reader-muted); font-size: .7rem; font-weight: 700; text-decoration: none; opacity: .78; transition: opacity .18s; }
.reader-back:hover[b-g3uut2g4rx] { color: var(--reader-accent); opacity: 1; }
.reader-back svg[b-g3uut2g4rx] { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reader-title[b-g3uut2g4rx] { min-width: 0; text-align: center; opacity: .66; }
.reader-title h1[b-g3uut2g4rx] { max-width: 34rem; margin: 0; overflow: hidden; color: var(--reader-muted); font: 400 .7rem/1.5 'DM Sans', sans-serif; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.reader-toolbar[b-g3uut2g4rx] { display: flex; justify-content: flex-end; align-items: center; gap: .35rem; }
.toolbar-button[b-g3uut2g4rx] { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; padding: 0; color: var(--reader-accent); border: 0; border-radius: 50%; background: transparent; opacity: .72; transition: background .18s, opacity .18s; }
.toolbar-button:hover[b-g3uut2g4rx] { background: rgba(106,81,50,.08); opacity: 1; }
.toolbar-button svg[b-g3uut2g4rx] { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.narration-toolbar.active[b-g3uut2g4rx] { color: var(--reader-bg); background: var(--reader-accent); opacity: .9; }
.narration-toolbar.active:hover[b-g3uut2g4rx] { background: var(--reader-accent); opacity: 1; }
.settings-button[b-g3uut2g4rx] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.settings-button span[b-g3uut2g4rx] { width: 1rem; height: 1px; background: currentColor; }

.reader-stage[b-g3uut2g4rx] {
    position: relative;
    height: 100dvh;
    max-width: none;
    display: block;
    grid-template-columns: none;
    align-items: initial;
    gap: 0;
    margin: 0;
    background: var(--reader-bg);
    filter: brightness(var(--reader-brightness, 1));
    transition: filter .12s;
    user-select: none;
}
.book-spread[b-g3uut2g4rx] { box-sizing: border-box; height: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2.5rem, 5vw, 6.5rem); padding: 0 clamp(2.5rem, 3.8vw, 5rem); transform-origin: center; }
.paper-page[b-g3uut2g4rx] { box-sizing: border-box; position: relative; min-height: 0; height: 100%; overflow: hidden; padding: clamp(5.25rem, 8vh, 7rem) 0 clamp(8.75rem, 14vh, 10.25rem); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.page-text[b-g3uut2g4rx] { box-sizing: border-box; height: calc(100% - 2.2rem); max-height: calc(100% - 2.2rem); overflow: hidden; color: var(--reader-ink); white-space: pre-wrap; overflow-wrap: break-word; hyphens: auto; font-family: 'Libre Baskerville', serif; font-size: calc(clamp(1rem, 1.45vw, 1.8rem) * var(--reader-font-scale, 1)); line-height: 1.58; text-align: justify; text-justify: inter-word; user-select: text; }
.page-text[b-g3uut2g4rx]::first-letter { float: none; padding: 0; color: inherit; font-size: inherit; line-height: inherit; }
.page-number[b-g3uut2g4rx] { position: absolute; bottom: 1.2rem; color: var(--reader-muted); font: 400 .62rem 'DM Sans', sans-serif; opacity: .8; }
.left-page .page-number[b-g3uut2g4rx] { left: 0; }
.right-page .page-number[b-g3uut2g4rx] { right: 0; }

.story-direction[b-g3uut2g4rx] { position: absolute; z-index: 24; right: 50%; bottom: 2.75rem; width: min(36rem, calc(100vw - 3rem)); padding-top: .35rem; color: var(--reader-muted); pointer-events: auto; transform: translateX(50%); }
.story-direction[b-g3uut2g4rx]  form { position: relative; min-height: 5.35rem; overflow: hidden; border: 1px solid color-mix(in srgb, var(--reader-muted) 24%, transparent); border-radius: 1.5rem; background: color-mix(in srgb, var(--reader-bg) 90%, white 10%); box-shadow: 0 12px 36px rgba(62,46,28,.07); opacity: .78; backdrop-filter: blur(12px); transition: opacity .18s, border-color .18s, box-shadow .18s; }
.story-direction[b-g3uut2g4rx]  form:hover,
.story-direction[b-g3uut2g4rx]  form:focus-within { border-color: color-mix(in srgb, var(--reader-accent) 48%, transparent); box-shadow: 0 16px 42px rgba(62,46,28,.14); opacity: 1; }
.story-direction[b-g3uut2g4rx]  textarea { width: 100%; min-height: 5.35rem; max-height: 8rem; resize: none; padding: 1.1rem 1rem 2.85rem; color: var(--reader-ink); border: 0; outline: 0; background: transparent; font: 500 .74rem/1.5 'DM Sans', sans-serif; }
.story-direction[b-g3uut2g4rx]  textarea::placeholder { color: var(--reader-muted); opacity: .72; }
.story-direction[b-g3uut2g4rx]  button { position: absolute; right: .7rem; bottom: .65rem; min-height: 2.1rem; padding: 0 1rem; color: var(--reader-bg); border: 0; border-radius: 99px; background: var(--reader-accent); font: 700 .65rem/1 'DM Sans', sans-serif; }
.story-direction[b-g3uut2g4rx]  button:hover:not(:disabled) { filter: brightness(.92); }
.story-direction[b-g3uut2g4rx]  button:disabled { opacity: .45; }

.continuation-status[b-g3uut2g4rx] { position: absolute; z-index: 20; right: 0; bottom: 0; left: 0; height: 2.8rem; color: var(--reader-muted); pointer-events: none; }
.continuation-label[b-g3uut2g4rx] { position: absolute; right: 0; bottom: .62rem; left: 0; display: flex; align-items: center; justify-content: center; gap: .42rem; font: 600 .58rem/1 'DM Sans', sans-serif; letter-spacing: .04em; opacity: .78; }
.continuation-label > i[b-g3uut2g4rx] { width: .32rem; height: .32rem; border-radius: 50%; background: currentColor; }
.continuation-track[b-g3uut2g4rx] { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; overflow: hidden; background: color-mix(in srgb, var(--reader-muted) 18%, transparent); }
.continuation-track > i[b-g3uut2g4rx] { display: block; height: 100%; background: var(--reader-accent); transform-origin: left; }
.continuation-status.is-writing .continuation-label > i[b-g3uut2g4rx] { animation: writingPulse-b-g3uut2g4rx 1.2s ease-in-out infinite; }
.continuation-status.is-writing .continuation-track > i[b-g3uut2g4rx] { width: 36%; animation: writingProgress-b-g3uut2g4rx 1.7s ease-in-out infinite; }
.continuation-status.is-writing.is-replanning .continuation-track > i[b-g3uut2g4rx] { animation: none; transform: none; transition: width .6s ease; }
.continuation-status.is-writing.is-replanning .continuation-label[b-g3uut2g4rx] { opacity: .94; }
.continuation-status.is-ready .continuation-track > i[b-g3uut2g4rx] { width: 100%; opacity: .55; }
.continuation-status.is-complete[b-g3uut2g4rx] { color: var(--reader-accent); }
.continuation-status.is-complete .continuation-track > i[b-g3uut2g4rx] { width: 100%; opacity: .75; }
.continuation-status.is-end .continuation-label[b-g3uut2g4rx] { opacity: .5; }
.continuation-status.is-end .continuation-track > i[b-g3uut2g4rx] { width: 100%; opacity: .18; }
.continuation-status.is-error[b-g3uut2g4rx] { color: #a1493f; }
.continuation-status.is-error .continuation-label[b-g3uut2g4rx] { opacity: 1; }
.continuation-status.is-error .continuation-track > i[b-g3uut2g4rx] { width: 100%; background: currentColor; opacity: .45; }
.continuation-status > button[b-g3uut2g4rx] { position: absolute; z-index: 1; right: 1rem; bottom: .35rem; padding: .3rem .65rem; color: var(--reader-bg); border: 0; border-radius: 99px; background: var(--reader-accent); font: 700 .58rem/1 'DM Sans', sans-serif; pointer-events: auto; }

.page-turn-button[b-g3uut2g4rx] { position: absolute; z-index: 10; top: 18%; width: 5%; height: 64%; display: grid; place-items: center; padding: 0; color: var(--reader-accent); border: 0; background: transparent; opacity: 0; transition: opacity .18s; }
.previous-turn[b-g3uut2g4rx] { left: 0; }
.next-turn[b-g3uut2g4rx] { right: 0; }
.page-turn-button:hover:not(:disabled)[b-g3uut2g4rx] { opacity: .55; }
.page-turn-button:disabled[b-g3uut2g4rx] { display: none; }
.page-turn-button svg[b-g3uut2g4rx] { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

.brightness-gesture[b-g3uut2g4rx] { position: absolute; z-index: 40; top: 50%; left: 50%; display: flex; align-items: center; gap: .6rem; padding: .7rem .95rem; color: #f5f2ec; border-radius: 99px; background: rgba(24,24,28,.9); opacity: 0; pointer-events: none; transform: translate(-50%,-40%) scale(.94); transition: opacity .15s, transform .15s; }
.brightness-gesture svg[b-g3uut2g4rx] { width: 1.15rem; fill: none; stroke: #b4c5ff; stroke-width: 1.5; stroke-linecap: round; }
.brightness-value[b-g3uut2g4rx] { min-width: 2.5rem; font-size: .72rem; font-weight: 700; }
.reader-shell.is-adjusting-brightness .brightness-gesture[b-g3uut2g4rx] { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.reader-shell.turning-next .book-spread[b-g3uut2g4rx] { animation: turnNext-b-g3uut2g4rx .22s ease; }
.reader-shell.turning-previous .book-spread[b-g3uut2g4rx] { animation: turnPrevious-b-g3uut2g4rx .22s ease; }

.settings-backdrop[b-g3uut2g4rx] { position: fixed; z-index: 90; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.reader-settings[b-g3uut2g4rx] { position: fixed; z-index: 100; top: 4.25rem; right: clamp(1rem, 2.5vw, 3rem); width: min(390px, calc(100vw - 2rem)); padding: 1.25rem; overflow-y: auto; color: #e7e7eb; border: 1px solid #3c3e46; border-radius: 14px; background: #1d1e23; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: settingsIn-b-g3uut2g4rx .18s ease-out; }
.reader-settings > header[b-g3uut2g4rx] { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #34363d; }
.reader-settings > header div[b-g3uut2g4rx] { display: flex; flex-direction: column; gap: .3rem; }
.reader-settings > header span[b-g3uut2g4rx] { color: #9fb2f4; font-size: .56rem; font-weight: 700; letter-spacing: .18em; }
.reader-settings > header strong[b-g3uut2g4rx] { font: 700 1.08rem 'DM Sans', sans-serif; }
.settings-close[b-g3uut2g4rx] { width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0 0 .12rem; color: #b9bbc2; border: 1px solid #444750; border-radius: 50%; background: transparent; font-size: 1.2rem; line-height: 1; }
.setting-section[b-g3uut2g4rx] { padding: 1.05rem 0; border-bottom: 1px solid #34363d; }
.setting-heading[b-g3uut2g4rx] { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; color: #d4d5db; font-size: .72rem; font-weight: 700; }
.setting-heading output[b-g3uut2g4rx] { color: #aebeff; font-size: .68rem; }
.zoom-control[b-g3uut2g4rx] { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; gap: .7rem; }
.zoom-control button[b-g3uut2g4rx] { height: 2.55rem; padding: 0; color: #e5e7ed; border: 1px solid #454750; border-radius: 8px; background: #292a31; font-weight: 700; }
.zoom-control button:hover:not(:disabled)[b-g3uut2g4rx] { border-color: #8397dc; background: #31333c; }
.zoom-control button:disabled[b-g3uut2g4rx] { opacity: .3; }
.zoom-track[b-g3uut2g4rx] { height: 3px; overflow: hidden; border-radius: 3px; background: #3e4048; }
.zoom-track span[b-g3uut2g4rx] { display: block; height: 100%; border-radius: inherit; background: #9fb2f4; transition: width .2s; }
.brightness-control[b-g3uut2g4rx] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; color: #c3c5cc; }
.brightness-control input[b-g3uut2g4rx] { width: 100%; direction: rtl; accent-color: #9fb2f4; }
.display-options[b-g3uut2g4rx] { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.display-option[b-g3uut2g4rx] { min-height: 3.5rem; display: flex; align-items: center; gap: .5rem; padding: .65rem; color: #bfc1c8; border: 1px solid #42444c; border-radius: 8px; background: #25262c; font-size: .68rem; font-weight: 700; }
.display-option.active[b-g3uut2g4rx] { color: #eef1ff; border-color: #8fa3e5; background: #2b3040; box-shadow: inset 0 0 0 1px rgba(159,178,244,.15); }
.display-option span[b-g3uut2g4rx] { width: 1.2rem; height: 1.4rem; border: 1px solid #62646d; border-radius: 3px; }
.light-swatch[b-g3uut2g4rx] { background: #efe3c8; }
.dark-swatch[b-g3uut2g4rx] { background: #16171a; }
.narration-settings[b-g3uut2g4rx] { display: grid; gap: .8rem; }
.narration-settings .setting-heading[b-g3uut2g4rx] { margin-bottom: 0; }
.narration-settings .setting-heading output[b-g3uut2g4rx] { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.narration-note[b-g3uut2g4rx],
.narration-status[b-g3uut2g4rx] { margin: 0; color: #a9acb5; font-size: .64rem; line-height: 1.5; }
.narration-actions[b-g3uut2g4rx] { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.narration-actions button[b-g3uut2g4rx],
.narration-unavailable button[b-g3uut2g4rx],
.narration-secondary-actions button[b-g3uut2g4rx] { min-height: 2.4rem; padding: .45rem .7rem; color: #dfe1e7; border: 1px solid #484b55; border-radius: 8px; background: #292a31; font-size: .66rem; font-weight: 750; }
.narration-actions button:hover:not(:disabled)[b-g3uut2g4rx],
.narration-unavailable button:hover[b-g3uut2g4rx],
.narration-secondary-actions button:hover[b-g3uut2g4rx] { border-color: #8397dc; background: #31333c; }
.narration-actions button:disabled[b-g3uut2g4rx] { opacity: .35; }
.narration-actions .narration-primary[b-g3uut2g4rx] { color: #12131a; border-color: #aebeff; background: #aebeff; }
.narration-field[b-g3uut2g4rx] { display: grid; gap: .45rem; color: #d4d5db; font-size: .66rem; font-weight: 700; }
.narration-field select[b-g3uut2g4rx] { width: 100%; min-height: 2.4rem; padding: 0 .65rem; color: #e5e7ed; border: 1px solid #454750; border-radius: 8px; outline: none; background: #292a31; font: inherit; }
.narration-field select:focus[b-g3uut2g4rx] { border-color: #8fa3e5; }
.narration-rate > span[b-g3uut2g4rx] { display: flex; justify-content: space-between; }
.narration-rate output[b-g3uut2g4rx] { color: #aebeff; }
.narration-rate input[b-g3uut2g4rx] { width: 100%; accent-color: #9fb2f4; }
.narration-unavailable[b-g3uut2g4rx] { display: grid; gap: .55rem; padding: .8rem; border: 1px solid #49423d; border-radius: 9px; background: #2a2727; }
.narration-unavailable strong[b-g3uut2g4rx] { color: #f0d4bf; font-size: .7rem; }
.narration-unavailable p[b-g3uut2g4rx] { margin: 0; color: #b9aaa0; font-size: .63rem; line-height: 1.45; }
.narration-unavailable > div[b-g3uut2g4rx] { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.narration-secondary-actions[b-g3uut2g4rx] { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.voice-help[b-g3uut2g4rx] { padding: .8rem; color: #c7c9d0; border: 1px solid #41444e; border-radius: 9px; background: #24252b; font-size: .63rem; line-height: 1.5; }
.voice-help > strong[b-g3uut2g4rx] { color: #e8eaff; font-size: .68rem; }
.voice-help ol[b-g3uut2g4rx] { margin: .55rem 0; padding-left: 1.15rem; }
.voice-help li + li[b-g3uut2g4rx] { margin-top: .25rem; }
.voice-help p[b-g3uut2g4rx] { margin: .55rem 0 0; color: #9699a3; }
.fullscreen-action[b-g3uut2g4rx] { width: 100%; min-height: 2.85rem; display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: 1rem; color: #111218; border: 0; border-radius: 8px; background: #aebeff; font-size: .72rem; font-weight: 800; }
.fullscreen-action svg[b-g3uut2g4rx] { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.settings-help[b-g3uut2g4rx] { margin: .9rem 0 0; color: #8f929b; font-size: .62rem; line-height: 1.5; text-align: center; }

.reader-night[b-g3uut2g4rx] { --reader-bg: #171819; --reader-paper: #171819; --reader-ink: #c9c2b5; --reader-muted: #929189; --reader-accent: #c9c2b5; }
.reader-night .toolbar-button[b-g3uut2g4rx] { color: #c9c2b5; }
.reader-shell:fullscreen[b-g3uut2g4rx] { position: fixed; inset: 0; width: 100%; height: 100%; min-height: 0; }
.reader-shell:fullscreen .reader-stage[b-g3uut2g4rx],
.reader-shell:fullscreen .book-spread[b-g3uut2g4rx] { width: 100%; height: 100%; }

@keyframes settingsIn-b-g3uut2g4rx { from { opacity: 0; transform: translateY(-8px); } }
@keyframes turnNext-b-g3uut2g4rx { 45% { opacity: .62; transform: translateX(-10px); } }
@keyframes turnPrevious-b-g3uut2g4rx { 45% { opacity: .62; transform: translateX(10px); } }
@keyframes writingPulse-b-g3uut2g4rx { 50% { opacity: .28; transform: scale(.72); } }
@keyframes writingProgress-b-g3uut2g4rx { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(285%); } }
@keyframes activeStep-b-g3uut2g4rx { 50% { box-shadow: 0 0 0 8px rgba(182,138,69,.06); transform: scale(1.04); } }

@media (max-width: 900px) {
    .reader-header[b-g3uut2g4rx] { height: 4rem; padding: 0 .85rem; }
    .reader-back span[b-g3uut2g4rx] { display: none; }
    .reader-title h1[b-g3uut2g4rx] { max-width: 42vw; font-size: .62rem; }
    .book-spread[b-g3uut2g4rx] { display: block; padding: 0; }
    .paper-page[b-g3uut2g4rx] { padding: 4.8rem clamp(1.6rem, 7vw, 3.2rem) 8.4rem; }
    .right-page[b-g3uut2g4rx] { display: none; }
    .left-page .page-number[b-g3uut2g4rx] { left: clamp(1.6rem, 7vw, 3.2rem); }
    .page-text[b-g3uut2g4rx] { font-size: calc(clamp(.95rem, 4vw, 1.2rem) * var(--reader-font-scale, 1)); line-height: 1.65; }
    .page-turn-button[b-g3uut2g4rx] { width: 18%; }
    .reader-settings[b-g3uut2g4rx] { top: auto; right: .55rem; bottom: .55rem; left: .55rem; width: auto; max-height: calc(100dvh - 1.1rem); animation: settingsUp-b-g3uut2g4rx .2s ease-out; }
    .story-direction[b-g3uut2g4rx] { width: min(31rem, calc(100vw - 2rem)); }
    .story-direction[b-g3uut2g4rx]  form,
    .story-direction[b-g3uut2g4rx]  textarea { min-height: 5.2rem; }
}

@media (max-width: 520px) {
    .reader-title[b-g3uut2g4rx] { visibility: hidden; }
    .paper-page[b-g3uut2g4rx] { padding-right: 1.4rem; padding-left: 1.4rem; }
    .left-page .page-number[b-g3uut2g4rx] { left: 1.4rem; }
    .toolbar-button[b-g3uut2g4rx] { width: 2.2rem; height: 2.2rem; }
    .generation-progress li small[b-g3uut2g4rx] { display: none; }
    .generation-progress-track[b-g3uut2g4rx] { margin-right: 1rem; margin-left: 1rem; }
    .generation-progress li > span[b-g3uut2g4rx] { width: 1.8rem; height: 1.8rem; font-size: .7rem; }
    .generation-art[b-g3uut2g4rx] { width: min(36rem,96vw); height: auto; margin: -2rem auto -3rem; }
    .generation-screen h1[b-g3uut2g4rx] { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .generation-progress li.active > span[b-g3uut2g4rx] { animation: none; }
}

@keyframes settingsUp-b-g3uut2g4rx { from { opacity: 0; transform: translateY(18px); } }
