/* Shared web presentation: the app's green identity with quieter reading surfaces. */
:root {
    --nav: 216px;
    --panel: 376px;
    --muted: #64716c;
    --line: #e5ebe7;
    --surface: #f3f6f4;
    --ink: #202a25;
    --soft-green: #eaf5e9;
}
body {
    background: #fafbf9;
    letter-spacing: -0.02em;
    grid-template-columns: var(--nav) minmax(0, 1fr);
}
body:has(#player-panel:not([hidden])) {
    grid-template-columns: var(--nav) minmax(0, 1fr) var(--panel);
}
[hidden] {
    display: none !important;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #16824a;
    outline-offset: 3px;
}
.navigation {
    background: #fff;
    padding: 36px 20px;
    border-color: var(--line);
}
.brand {
    margin-bottom: 52px;
}
.nav-links {
    gap: 6px;
}
.nav-item {
    padding: 14px;
    font-size: 14px;
    border-radius: 12px;
}
.nav-item.active {
    background: #ecf6ee;
    color: #174b2a;
}
.create {
    margin-top: 26px;
    box-shadow: 0 4px 14px #17ab3310;
    font-size: 13px;
}
.nav-bottom {
    padding: 22px 14px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}
.workspace {
    max-width: 1180px;
    padding: 36px 44px 64px;
}
.greeting {
    margin-bottom: 22px;
    gap: 12px;
}
.greeting .avatar {
    background: #edf6e9;
    width: 38px;
    height: 38px;
}
.greeting h1 {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.6px;
}
.greeting > .text-button {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    font-size: 12px;
}
.greeting > .icon-button {
    width: 36px;
    height: 36px;
}
.library-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 26px;
}
.library-tools > .text-button {
    border: 1px solid #dfe7df;
    border-radius: 10px;
    background: white;
    padding: 10px 14px;
    min-height: 42px;
    font-weight: 600;
    color: #435449;
}
.library-tools > #point-history-open {
    margin-left: auto;
    color: #22743a;
    background: #eff7ec;
    border-color: #dcebd7;
    font-variant-numeric: tabular-nums;
}
.library-management {
    position: relative;
}
.library-management summary {
    cursor: pointer;
    list-style: none;
    min-height: 42px;
    padding: 11px 14px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--line);
    font-size: 13px;
    color: #58665b;
}
.library-management summary:after {
    content: '⌄';
    margin-left: 14px;
}
.library-management summary::-webkit-details-marker {
    display: none;
}
.management-items {
    position: absolute;
    right: 0;
    top: 50px;
    z-index: 12;
    min-width: 210px;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 50px #1b352419;
}
.management-items > .text-button {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    color: #3b4c40;
}
.management-items > .text-button:hover {
    background: #f0f5ee;
}
.creation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 230px;
    padding: 34px 36px;
    border: 1px solid #dae7d6;
    border-radius: 24px;
    background: #edf4e7;
    gap: 24px;
    margin-bottom: 18px;
    overflow: hidden;
}
.creation-banner-copy {
    max-width: 490px;
    position: relative;
    z-index: 1;
}
.eyebrow {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    color: #4b7656;
}
.creation-banner h2 {
    font-size: clamp(24px, 2.25vw, 33px);
    line-height: 1.35;
    letter-spacing: -1.2px;
    margin: 12px 0 10px;
    font-weight: 750;
    text-wrap: balance;
}
.creation-banner p {
    font-size: 14px;
    line-height: 1.8;
    color: #62765f;
    word-break: keep-all;
}
.creation-banner .story-entry {
    margin: 22px 0 0;
    background: #234e32;
    color: #fff;
    padding: 11px 20px;
    width: fit-content;
    min-height: 44px;
    border-radius: 10px;
    font-size: 13px;
}
.creation-banner .story-entry:hover {
    background: #173d26;
}
.creation-banner-art {
    width: 180px;
    height: 170px;
    position: relative;
    flex-shrink: 0;
}
.little-book {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 110px;
    height: 148px;
    border-radius: 3px 10px 10px 3px;
    box-shadow: 8px 12px 22px #2b442423;
    padding: 20px 14px 14px 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    border-left: 5px solid #ffffff29;
}
.little-book small {
    margin-top: auto;
    font-size: 10px;
}
.book-one {
    left: 0;
    top: 2px;
    transform: rotate(-13deg);
    background: #d4aa66;
    color: #443823;
}
.book-two {
    right: 0;
    top: 18px;
    transform: rotate(12deg);
    background: #28553b;
    color: #f5edd3;
}
.announcement {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 30px;
}
.announcement > button:first-child {
    padding: 13px 16px;
}
.announcement small {
    display: inline;
    margin-left: 10px;
    font-size: 12px;
}
.announcement button > span:nth-child(2) {
    font-size: 12px;
    font-weight: 550;
}
.news-label {
    background: #e6eee2;
    color: #486241;
    font-size: 10px;
}
.announcement .icon-button {
    font-size: 19px;
}
.shelf-section {
    margin-top: 28px;
}
.section-title h2 {
    font-size: 21px;
    font-weight: 750;
}
.section-title > select {
    background: transparent;
    color: #6b786e;
}
.filter-row {
    margin-top: 12px;
}
.tabs {
    gap: 6px;
    flex-wrap: wrap;
}
.tabs button {
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 12px;
    min-height: 38px;
    color: #69766a;
}
.tabs button.selected {
    background: #253e2d;
    color: #fff;
}
.tabs button.selected:after {
    display: none;
}
.tabs button:hover:not(.selected) {
    background: #eaf0e6;
}
.search {
    background: white;
    border: 1px solid var(--line);
    border-radius: 11px;
    margin: 16px 0 28px;
    min-height: 46px;
}
.search input {
    font-size: 13px;
}
.book-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 28px 24px;
}
.book-tile {
    min-width: 0;
}
.book-cover {
    aspect-ratio: 3/4;
    box-shadow: 0 3px 8px #24342a0c;
    border-radius: 9px;
    background-position: center;
    background-size: cover;
}
.book-cover h3 {
    font-size: 23px;
}
.book-title {
    font-size: 14px;
    line-height: 1.55;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 43px;
    margin-top: 14px;
}
.book-meta {
    font-size: 11px;
    color: #748174;
    margin-top: 3px;
}
.book-actions {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    padding-top: 2px;
}
.book-actions button {
    font-size: 12px;
    min-height: 40px;
    padding: 7px 9px;
    border-radius: 8px;
    margin: 0;
}
.book-actions button:hover {
    background: #eaf0e6;
    color: #234e32;
}
.book-open-cue {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #fffffff0;
    color: #284c33;
    border: 1px solid #ffffff55;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s;
}
.book-card:hover .book-open-cue,
.book-card:focus-visible .book-open-cue {
    opacity: 1;
}
.book-card:hover .book-cover {
    box-shadow: 0 8px 22px #20482e22;
}
.status {
    font-size: 9px;
    box-shadow: 0 2px 6px #0001;
}
.library-footer {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 40px;
}
.empty {
    background: #f1f5ee;
    border-radius: 18px;
    margin-top: 22px;
}
.empty h3 {
    color: #405440;
}
.player {
    background: white;
}
.player-art.has-cover > * {
    visibility: hidden;
}
.player-heading h2 {
    font-size: 19px;
    line-height: 1.5;
}
.control-panel {
    padding: 24px;
}
.big-play {
    background: var(--green);
    width: 58px;
    height: 58px;
}
.big-play:hover {
    background: #00e945;
}
.voice-row button {
    border: 1px solid var(--line);
    background: #f7f9f5;
}
.transcript {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.transcript .section-title {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.reading-caption {
    font-size: 10px;
    color: #748273;
}
.reading-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 15px;
    font-size: 11px;
    color: #60745e;
}
.reading-tools button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
}
.reading-tools label {
    display: flex;
    align-items: center;
    gap: 4px;
}
.reading-tools input {
    accent-color: #177c3d;
}
.transcript #transcript {
    font-size: 16px;
    line-height: 1.95;
    max-height: 340px;
    overflow: auto;
    white-space: pre-wrap;
    position: relative;
    scrollbar-width: thin;
    padding: 0 4px 16px 0;
}
.transcript-cue {
    font: inherit;
    text-align: left;
    display: inline;
    border-radius: 4px;
    padding: 2px 0;
    white-space: pre-wrap;
    color: #647267;
    min-height: 30px;
    cursor: pointer;
}
.transcript-cue:hover {
    color: #203f2b;
    background: #f1f5eb;
}
.transcript-cue[aria-current='true'] {
    color: #174e2b;
    background: #e1f6db;
    font-weight: 600;
}
dialog {
    border: 1px solid #e0e8df;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 26px 100px #142a2333;
    max-height: 90dvh;
    scrollbar-width: thin;
}
dialog::backdrop {
    background: #172b245c;
    backdrop-filter: blur(5px);
}
dialog h2 {
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: -0.8px;
}
dialog > .muted {
    font-size: 14px;
    line-height: 1.8;
    margin: 10px 0 24px;
    word-break: keep-all;
}
.dialog-top {
    margin-bottom: 14px;
    gap: 14px;
}
.close {
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: #f2f5ef;
    color: #5f6c60;
}
.field {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.7;
}
.field input,
.field textarea,
.field select {
    font-weight: 400;
    border: 1px solid #dce5da;
    border-radius: 11px;
    background: #fcfdfb;
    padding: 13px 14px;
    font-size: 15px;
    line-height: 1.7;
    color: #253629;
}
.field textarea {
    resize: vertical;
}
.field textarea:focus,
.field input:focus {
    border-color: #5b9565;
    background: white;
}
.form-note {
    font-size: 12px;
    line-height: 1.9;
    color: #6c786b;
    border-radius: 10px;
}
.field-counter {
    display: block;
    text-align: right;
    font-size: 11px;
    font-weight: 400;
    color: #7e8a7a;
    margin: 5px 0;
}
.text-import {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin: 18px 0;
    color: #58704f;
    background: #f1f6ec;
    border-radius: 10px;
    padding: 12px;
}
.text-import input {
    font-size: 12px;
    max-width: 100%;
}
.submit {
    margin-top: 18px;
    font-size: 14px;
    border-radius: 11px;
}
.primary {
    color: #143322;
}
.secondary {
    background: #eef3ea;
}
.creation-dialog {
    width: min(640px, calc(100vw - 32px));
}
.creation-options {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.creation-option {
    display: flex;
    align-items: center;
    gap: 17px;
    text-align: left;
    border: 1px solid #dfe7db;
    border-radius: 15px;
    padding: 20px 18px;
    background: #fff;
    min-height: 96px;
    width: 100%;
}
.creation-option:hover {
    border-color: #a2c59b;
    background: #f6faf2;
}
.creation-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 44px;
    border-radius: 10px;
    background: #edf4e6;
    color: #497047;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.creation-option-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.creation-option-copy strong {
    font-size: 15px;
}
.creation-option-copy > span {
    font-size: 12px;
    color: #71806b;
    line-height: 1.7;
    word-break: keep-all;
}
.creation-arrow {
    color: #78926e;
    font-size: 19px;
}
.content-dialog .dialog-top {
    top: -28px;
    padding: 8px 0 12px;
}
.generation-dialog {
    width: min(560px, calc(100vw - 32px));
}
.generation-dialog > .eyebrow {
    margin-bottom: 12px;
}
.language-choices {
    margin: 24px 0 12px;
}
.language-choices label {
    border: 1px solid #dfe7da;
    background: #fafcf8;
    border-radius: 9px;
    padding: 11px 12px;
}
.language-choices label:has(input:checked) {
    background: #eaf6e2;
    border-color: #89af75;
}
.generation-dialog > .form-note {
    background: #f1f5ec;
    padding: 15px;
}
.generation-dialog > .text-button {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}
.voice-library-dialog {
    width: min(760px, calc(100vw - 32px));
}
.voice-search {
    border: 1px solid #dce5d7;
    border-radius: 10px;
    background: #f8faf5;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 14px;
}
.voice-filters {
    display: flex;
    gap: 7px;
    margin: 18px 0;
}
.voice-filters button {
    padding: 8px 14px;
    min-height: 40px;
    border: 1px solid #e0e7db;
    border-radius: 20px;
    font-size: 12px;
}
.voice-filters button[aria-pressed='true'] {
    background: #294f34;
    color: white;
    border-color: #294f34;
}
.voice-library-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.voice-library-card {
    border: 1px solid #e1e9dd;
    border-radius: 16px;
    padding: 18px;
}
.voice-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
}
.voice-card-title h3 {
    font-size: 15px;
}
.voice-avatar {
    background: #eaf2df;
    color: #46663c;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.voice-kind {
    font-size: 10px;
    color: #83907a;
    margin-left: auto;
}
.voice-sampler {
    margin-top: 17px;
}
.field-heading {
    font-size: 12px;
    font-weight: 650;
    color: #4c6147;
}
.voice-sampler .small {
    font-size: 11px;
    color: #7b8774;
    line-height: 1.7;
    margin: 6px 0 12px;
}
.sample-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.sample-button {
    font-size: 12px;
    border: 1px solid #dfe8d7;
    background: #f5f8f1;
    padding: 10px;
    border-radius: 9px;
    min-height: 40px;
}
.sample-button[aria-pressed='true'] {
    background: #244f31;
    color: white;
    border-color: #244f31;
}
.sample-button:hover:not(:disabled) {
    border-color: #8bab78;
}
.sample-status {
    font-size: 11px;
    line-height: 1.6;
    color: #6a7a62;
    margin-top: 10px;
    min-height: 18px;
}
.voice-preview {
    height: 40px;
    margin-bottom: 0;
}
.story-studio {
    padding: 0;
    border-radius: 24px;
}
.story-top {
    padding: 18px 32px;
    background: white;
}
.story-top strong {
    letter-spacing: -0.3px;
}
.story-steps {
    padding: 18px 32px;
    gap: 10px;
    counter-reset: steps;
    background: #f6f8f2;
}
.story-steps > span {
    flex: 1;
    font-size: 11px;
    text-align: center;
    padding: 9px 7px;
    border-radius: 8px;
    color: #84907b;
}
.story-steps > span.active {
    background: white;
    color: #305b38;
    box-shadow: 0 2px 7px #2d512410;
}
.story-body {
    padding: 28px 42px 36px;
}
.story-demo-note {
    border-left: 3px solid #d4e3c6;
    padding: 6px 12px;
    background: #f8faf5;
    border-radius: 0 8px 8px 0;
    color: #78866c;
    font-size: 11px;
    line-height: 1.8;
}
.story-hero {
    margin: 14px 0 30px;
    gap: 35px;
}
.story-hero h2 {
    font-size: 36px;
    line-height: 1.25;
    letter-spacing: -1.3px;
    margin: 12px 0 16px;
}
.story-hero .muted {
    font-size: 14px;
}
.story-hero-art {
    border-radius: 22px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 14px 28px #45663710;
}
.story-choices {
    margin: 24px 0 12px;
}
.story-choices legend {
    font-size: 13px;
    margin-bottom: 10px;
}
.story-choice {
    font-size: 13px;
    border-radius: 11px;
    min-height: 46px;
    padding: 12px 17px;
    margin-right: 8px;
    background: #fbfcf9;
    border-color: #dfe7d9;
}
.story-choice[aria-pressed='true'] {
    border-color: #608957;
    background: #ecf5e6;
    color: #335b2d;
    box-shadow: inset 0 0 0 1px #608957;
}
.story-body > .field {
    margin: 18px 0 8px;
}
.story-body > .form-note {
    margin: 8px 0 20px;
}
.story-details {
    padding: 18px;
    background: #f5f8f0;
    border: 1px solid #e5ebdd;
    border-radius: 12px;
    margin: 24px 0 0;
}
.story-details summary {
    color: #557044;
    font-size: 13px;
    font-weight: 600;
}
.story-details > .form-note {
    margin-top: 12px;
}
.story-foot {
    padding: 18px 32px;
    background: #ffffffed;
    backdrop-filter: blur(10px);
}
.story-next {
    min-width: 160px;
    border-radius: 10px;
    font-size: 14px;
}
.story-editor {
    grid-template-columns: 175px minmax(0, 1fr);
}
.story-scene {
    border: 1px solid #e2e9db;
    border-radius: 17px;
    padding: 22px;
    background: #fff;
}
.story-scene-art {
    max-width: 300px;
    margin: 18px auto;
}
.story-scene textarea {
    border-color: #dce4d4;
    background: #fcfdf9;
    line-height: 1.95;
    min-height: 180px;
}
.story-scene-button {
    background: transparent;
    border: 1px solid transparent;
    color: #748368;
    line-height: 1.7;
}
.story-scene-button[aria-pressed='true'] {
    border-color: #bcd4ad;
    background: #edf5e4;
    color: #3d622d;
}
.story-edit-actions {
    gap: 8px;
}
.story-edit-actions button {
    border-radius: 8px;
    min-height: 38px;
    font-size: 12px;
    padding: 8px 10px;
}
.story-book-preview {
    background: #f5f4ec;
    border: 1px solid #e4e3d6;
    padding: 28px;
    gap: 28px;
}
.story-book-preview p {
    font-size: 17px;
    line-height: 2.1;
    color: #4c5944;
    word-break: keep-all;
}
.story-upload {
    border-radius: 15px;
    border-color: #c5d4b8;
    background: #fafcf7;
    padding: 22px;
}
.story-upload strong {
    font-size: 15px;
}
.share-dialog {
    width: min(600px, calc(100vw - 32px));
}
.share-dialog h3 {
    font-size: 18px;
    margin: 14px 0;
}
.share-preview-text {
    border: 1px solid #e0e8d8;
    background: #f8faf4;
}
.share-url {
    border: 1px solid #dce8d2;
    background: #eef6e7;
}
@media (min-width: 1500px) {
    body:has(#player-panel:not([hidden])) .book-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1200px) {
    :root {
        --nav: 190px;
        --panel: 340px;
    }
    .workspace {
        padding: 28px;
    }
    .creation-banner {
        padding: 28px;
    }
    .creation-banner-art {
        width: 145px;
        transform: scale(0.9);
        transform-origin: right center;
    }
    .creation-banner h2 {
        font-size: 25px;
    }
    .book-grid {
        gap: 24px 18px;
    }
}
@media (max-width: 1100px) {
    body,
    body:has(#player-panel:not([hidden])) {
        grid-template-columns: var(--nav) minmax(0, 1fr);
    }
    .workspace {
        max-width: 960px;
    }
    .creation-banner-art {
        width: 180px;
        transform: none;
    }
    .player {
        position: fixed;
        right: 0;
        bottom: 0;
        z-index: 30;
        max-width: 420px;
        width: 100%;
        height: 100dvh;
        transform: translateX(100%);
        transition: transform 0.2s;
    }
    .player.is-open {
        transform: none;
    }
    .player-top .icon-button {
        display: grid;
    }
    .mini-player {
        display: flex;
        left: var(--nav);
        bottom: 0;
    }
    .workspace {
        padding-bottom: 120px;
    }
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }
}
@media (max-width: 760px) {
    body,
    body:has(#player-panel:not([hidden])) {
        display: block;
    }
    .navigation {
        height: auto;
        position: static;
        padding: 20px 22px 0;
        border: 0;
        background: #fafbf9;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .brand {
        margin: 0;
    }
    .brand img {
        width: 58px;
    }
    .navigation .nav-links {
        display: flex;
        gap: 3px;
    }
    .nav-item {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
    }
    .nav-item svg {
        width: 15px;
        height: 15px;
    }
    .navigation .create,
    .navigation .nav-bottom {
        display: none;
    }
    .workspace {
        padding: 24px 20px 125px;
    }
    .greeting {
        gap: 9px;
        margin-bottom: 18px;
    }
    .greeting .avatar {
        display: none;
    }
    .greeting h1 {
        font-size: 17px;
        flex: 1;
    }
    .greeting > .icon-button {
        margin: 0;
        width: 32px;
        height: 32px;
    }
    .greeting > .text-button {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
        min-height: 36px;
    }
    .library-tools {
        gap: 7px;
        margin-bottom: 20px;
    }
    .library-tools > .text-button {
        font-size: 11px;
        min-height: 38px;
        padding: 8px 10px;
    }
    .library-tools > #point-history-open {
        margin-left: 0;
    }
    .library-management {
        margin-left: auto;
    }
    .library-management summary {
        min-height: 38px;
        padding: 9px 10px;
        font-size: 11px;
    }
    .library-management summary:after {
        margin-left: 8px;
    }
    .management-items {
        top: 45px;
    }
    .creation-banner {
        padding: 26px 22px;
        min-height: 220px;
        border-radius: 19px;
        gap: 6px;
        position: relative;
    }
    .creation-banner-copy {
        max-width: calc(100% - 75px);
    }
    .creation-banner h2 {
        font-size: 25px;
        letter-spacing: -1px;
        line-height: 1.4;
    }
    .creation-banner p {
        font-size: 12px;
    }
    .creation-banner .eyebrow {
        font-size: 9px;
    }
    .creation-banner-art {
        width: 100px;
        height: 150px;
        margin-right: -12px;
        transform: scale(0.75);
        transform-origin: center right;
    }
    .little-book {
        width: 88px;
        height: 128px;
        font-size: 16px;
        padding: 16px 9px 12px 12px;
    }
    .book-one {
        left: -28px;
        top: 5px;
    }
    .book-two {
        right: -10px;
        top: 25px;
    }
    .creation-banner .story-entry {
        font-size: 12px;
        padding: 10px 14px;
        min-height: 42px;
        margin-top: 18px;
        white-space: nowrap;
    }
    .announcement {
        margin-bottom: 23px;
    }
    .announcement small {
        display: none;
    }
    .announcement > button:first-child {
        padding: 10px 12px;
        gap: 9px;
    }
    .announcement button > span:nth-child(2) {
        font-size: 11px;
    }
    .announcement .icon-button {
        width: 30px;
        min-width: 30px;
    }
    .news-label {
        font-size: 9px;
    }
    .section-title h2 {
        font-size: 19px;
    }
    .section-title > select {
        font-size: 11px;
        max-width: 110px;
    }
    .shelf-section {
        margin-top: 23px;
    }
    .tabs {
        gap: 3px;
    }
    .tabs button {
        font-size: 11px;
        padding: 7px 11px;
        min-height: 36px;
    }
    .search {
        margin: 13px 0 23px;
    }
    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 17px;
    }
    .book-cover h3 {
        font-size: 22px;
    }
    .book-title {
        font-size: 13px;
        min-height: 40px;
    }
    .book-open-cue {
        display: none;
    }
    .book-actions button {
        min-height: 38px;
        font-size: 11px;
    }
    .mini-player {
        left: 0;
    }
    .floating-create {
        right: 20px;
        bottom: calc(94px + var(--safe-bottom));
        width: 50px;
        height: 50px;
        border-radius: 16px;
        box-shadow: 0 6px 20px #234c272b;
    }
    .player {
        max-width: none;
    }
    .player-art {
        width: 190px;
    }
    .voice-library-list {
        grid-template-columns: 1fr;
    }
    .voice-library-card {
        padding: 18px;
    }
    .voice-library-dialog,
    .generation-dialog,
    .creation-dialog {
        padding: 24px 20px;
        border-radius: 19px;
    }
    .creation-option {
        padding: 17px 14px;
        gap: 12px;
    }
    .creation-option-copy strong {
        font-size: 14px;
    }
    .creation-option-copy > span {
        font-size: 11px;
    }
    .story-studio {
        height: 100dvh;
        width: 100%;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0;
        border: 0;
    }
    .story-top {
        padding: 16px 20px;
    }
    .story-steps {
        padding: 12px 13px;
        gap: 4px;
    }
    .story-steps > span {
        font-size: 9px;
        padding: 8px 3px;
        white-space: nowrap;
    }
    .story-body {
        padding: 20px;
    }
    .story-hero {
        display: block;
        margin: 18px 0 24px;
    }
    .story-hero h2 {
        font-size: 30px;
    }
    .story-hero-art {
        display: none;
    }
    .story-choices {
        margin: 24px 0 10px;
    }
    .story-choice {
        font-size: 12px;
        padding: 11px 13px;
        min-height: 44px;
        margin: 0 6px 8px 0;
    }
    .story-body .field input,
    .story-body .field textarea {
        font-size: 16px;
    }
    .story-foot {
        padding: 14px 20px calc(14px + var(--safe-bottom));
    }
    .story-next {
        min-width: 140px;
        font-size: 13px;
    }
    .story-editor {
        display: block;
        margin-top: 20px;
    }
    .story-scene-list {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 14px;
    }
    .story-scene-button {
        min-width: 125px;
        padding: 10px;
        font-size: 11px;
    }
    .story-scene {
        padding: 18px;
    }
    .story-scene-art {
        max-width: 270px;
    }
    .story-scene textarea {
        padding: 14px;
    }
    .story-book-preview {
        display: block;
        padding: 20px;
    }
    .story-book-preview p {
        font-size: 16px;
        line-height: 2;
        margin-top: 20px;
    }
    .story-uploads {
        grid-template-columns: 1fr;
    }
    .field-counter {
        font-size: 10px;
    }
    .story-details {
        padding: 15px;
    }
    .share-dialog {
        padding: 24px 20px;
    }
    .voice-kind {
        font-size: 10px;
    }
    .reading-tools {
        font-size: 11px;
    }
    .reading-tools button {
        min-height: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.voice-library-dialog {
    max-width: 760px;
}
.creation-dialog {
    max-width: 640px;
}
.generation-dialog {
    max-width: 560px;
}
.share-dialog {
    max-width: 600px;
}
@media (max-width: 760px) {
    .creation-banner {
        min-height: 235px;
        display: block;
    }
    .creation-banner-copy {
        max-width: 100%;
    }
    .creation-banner h2 {
        max-width: 260px;
        font-size: 25px;
        word-break: keep-all;
    }
    .creation-banner p {
        max-width: 210px;
    }
    .creation-banner-art {
        position: absolute;
        right: 16px;
        bottom: 20px;
        width: 95px;
        height: 140px;
        transform: scale(0.68);
        transform-origin: bottom right;
        margin: 0;
    }
    .floating-create {
        background: var(--green);
        color: #173a21;
        width: 108px;
        gap: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .floating-create:after {
        content: '책 만들기';
        font-size: 12px;
        font-weight: 700;
    }
    .floating-create svg {
        width: 20px;
        height: 20px;
    }
}
.import-thumbnail {
    width: 76px;
    height: 92px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 4px 0 8px;
}
.recording-script {
    margin: 18px 0;
    background: #f3f7ee;
    border-radius: 12px;
    padding: 16px;
    color: #526649;
    font-size: 13px;
}
.recording-script summary {
    cursor: pointer;
    font-weight: 650;
}
.recording-script p {
    white-space: pre-line;
    margin-top: 14px;
    line-height: 1.9;
    font-size: 14px;
}
body:has(dialog[open]) {
    overflow: hidden;
}
.voice-library-dialog .dialog-top {
    position: sticky;
    top: -28px;
    z-index: 2;
    background: white;
    padding: 8px 0;
}

/* September feedback: large, explicit navigation and reachable player controls. */
.volume-row { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 8px; }
.volume { grid-column: 1 / -1; width: 100%; margin: 2px 0 0; gap: 12px; min-height: 44px; }
.volume input { flex: 1; width: 100%; min-width: 0; height: 28px; margin: 0; accent-color: #23874c; }
.volume svg { width: 20px; height: 20px; }
.skip svg { width: 32px; height: 32px; }
.story-outline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; padding: 22px 22px 22px 44px; margin: 24px 0; background: #f4f7f2; border-radius: 14px; }
.story-suggestion { padding: 16px; background: #f2f7ee; border: 1px solid #dce6d7; border-radius: 12px; margin: 16px 0; }
.story-suggestion p { font-size: 14px; line-height: 1.8; margin: 8px 0; white-space: pre-line; }
.story-new { padding: 12px 20px; margin: 18px 0; }
.playback-feedback { padding: 12px 14px; margin-top: 12px; border-radius: 10px; background: #f6f8f4; }
.playback-feedback p { font-size: 13px; line-height: 1.6; }
.playback-feedback button { min-height: 44px; color: #205537; font-weight: 650; }
@media (max-width: 760px) {
 .navigation { flex-wrap: wrap; gap: 20px; padding: 20px 20px 0; }
 .navigation .nav-links { width: 100%; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #eef1eb; border-radius: 14px; gap: 4px; }
 .navigation .nav-item { min-height: 48px; justify-content: center; font-size: 14px; gap: 8px; border-radius: 10px; }
 .navigation .nav-item svg { display: block; width: 19px; height: 19px; }
 .navigation .nav-item.active { background: #fff; color: #205537; box-shadow: 0 2px 6px #1a382b0b; }
 .story-outline { grid-template-columns: 1fr; gap: 10px; }
}

.reading-book-title { font-size: 1.1em; line-height: 1.6; color: #243b2b; margin: 20px 0 24px; overflow-wrap: anywhere; }
.transcript-paragraph-break { display: block; height: 1em; }

/* Isolated payment sandbox follows the library's typography and soft surfaces. */
.payment-test-dialog { width:min(640px,calc(100vw - 32px)); max-height:90dvh; overflow:auto; padding:28px; }
.payment-test-banner { background:#fff5dc; color:#634913; padding:16px 18px; border-radius:14px; font-size:14px; line-height:1.75; }
.payment-plans { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0; }
.payment-plan { display:flex;flex-direction:column;gap:8px;padding:18px 10px;border:1px solid #dedfd9;background:#fff;border-radius:14px;cursor:pointer;color:inherit; }
.payment-plan strong { font-size:18px; }.payment-plan span { font-size:14px;color:#656962; }
.payment-plan[aria-pressed="true"] { border-color:#63744d;background:#f2f5eb;box-shadow:0 0 0 1px #63744d; }
.payment-plan:focus-visible { outline:3px solid #809566;outline-offset:3px; }
.payment-history { margin-top:22px;border-top:1px solid #e5e6e0;padding-top:18px; }.payment-history summary { cursor:pointer;font-weight:600; }
.payment-order { padding:18px 0;border-bottom:1px solid #e5e6e0; }.payment-order p { margin:8px 0; }.payment-order small { display:block;color:#697063;margin-bottom:8px; }
.payment-order button { margin-right:12px;min-height:44px; }
@media(max-width:520px){.payment-test-dialog{padding:20px 16px;}.payment-plans{grid-template-columns:repeat(2,minmax(0,1fr));}.payment-plan strong{font-size:16px;}}

/* Integrated website navigation shares a shell without interrupting playback. */
.nav-links a.nav-item {text-decoration:none;display:flex;align-items:center;min-height:44px;color:inherit;}
.nav-links a[aria-current="page"] {background:#edf8f2;color:#16734e;font-weight:700;}
.account-actions {display:flex;gap:12px;flex-wrap:wrap;margin:24px 0;}
@media(max-width:760px){.nav-links {display:flex;gap:4px;overflow-x:auto;white-space:nowrap;}.nav-links a.nav-item {padding:10px 12px;flex-shrink:0;}}
