.st-platform,
.st-story {
    color: #202124;
    font-family: inherit;
}

body.st-virtual-platform {
    background: #f3f0e8;
    margin: 0;
}

.st-platform {
    line-height: 1.6;
}

.st-plugin-header {
    align-items: center;
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid #d8d4c8;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    left: 0;
    padding: 0.8rem clamp(1rem, 3vw, 2rem);
    position: sticky;
    right: 0;
    top: 0;
    z-index: 100;
}

.st-plugin-brand {
    align-items: center;
    color: #202124;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.08rem;
    font-weight: 900;
    gap: 0.55rem;
    letter-spacing: 0;
    line-height: 1.1;
    max-width: min(42vw, 320px);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.st-plugin-brand:hover,
.st-plugin-brand:focus {
    color: #b76b16;
}

.st-plugin-brand-mark {
    align-items: center;
    background: #b76b16;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.st-plugin-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.st-plugin-nav a,
.st-plugin-user {
    align-items: center;
    border-radius: 8px;
    color: #253041;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    gap: 0.38rem;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    text-decoration: none;
}

.st-nav-badge {
    align-items: center;
    background: #c42b1c;
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.74rem;
    font-weight: 800;
    height: 1.55rem;
    justify-content: center;
    line-height: 1;
    margin-left: 0;
    padding: 0;
    width: 1.55rem;
}

.st-plugin-nav a:hover,
.st-plugin-nav a:focus,
.st-plugin-nav a.is-active {
    background: #fff;
    box-shadow: 0 8px 18px rgba(54, 45, 34, 0.08);
    color: #b76b16;
}

.st-plugin-nav .st-plugin-nav-strong {
    background: #b76b16;
    color: #fff;
}

.st-plugin-nav .st-plugin-nav-strong:hover,
.st-plugin-nav .st-plugin-nav-strong:focus {
    background: #8f4f0e;
    color: #fff;
}

.st-plugin-user {
    color: #667085;
    font-weight: 700;
}

.st-virtual-shell {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1120px;
    padding: 2rem 1rem 4rem;
}

.st-virtual-shell-editor {
    max-width: none;
    padding: 0;
}

.st-virtual-shell-map {
    max-width: min(1560px, 100%);
}

.st-virtual-shell-reader {
    max-width: none;
    padding: 0;
}

.st-book-reader {
    background: #fbfaf7;
    color: #171717;
    min-height: 100vh;
}

.st-book-page {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 760px;
    padding: 8vh 1.25rem 10vh;
}

.st-book-page h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0 0 2rem;
}

.st-book-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.85;
}

.st-book-text p {
    margin: 0 0 1.45rem;
}

.st-reader-tools {
    display: grid;
    gap: 0.65rem;
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 50;
}

.st-reader-icon {
    align-items: center;
    background: rgba(32, 33, 36, 0.28);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease;
    width: 42px;
}

.st-reader-icon:hover,
.st-reader-icon:focus {
    background: rgba(32, 33, 36, 0.62);
    color: #fff;
    transform: translateY(-1px);
}

.st-reader-rating {
    position: relative;
}

.st-reader-rating summary {
    list-style: none;
}

.st-reader-rating summary::-webkit-details-marker {
    display: none;
}

.st-rating-popover {
    background: #fff;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
    min-width: 230px;
    padding: 0.85rem;
    position: absolute;
    right: 48px;
    top: 0;
}

.st-rating-popover form {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.st-combined-rating-popover form {
    border-top: 1px solid var(--st-border);
    padding-top: 0.75rem;
}

.st-combined-rating-popover form:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.st-combined-rating-popover label {
    color: var(--st-ink);
    display: grid;
    font-weight: 700;
    gap: 0.35rem;
}

.st-clean-reading-toggle-form {
    border-top: 1px solid rgba(183, 107, 22, 0.16);
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.st-clean-reading-toggle-label {
    display: grid;
    gap: 0.2rem;
}

.st-clean-reading-toggle-label small {
    color: #6f6a60;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

.st-rating-popover select {
    font: inherit;
    padding: 0.45rem;
}

.st-reader-report-icon {
    background: rgba(198, 126, 43, 0.46);
}

.st-report-popover {
    min-width: min(320px, calc(100vw - 5rem));
}

.st-report-form-toggle {
    display: grid;
    gap: 0.75rem;
}

.st-report-form-toggle summary {
    list-style: none;
}

.st-report-form-toggle summary::-webkit-details-marker {
    display: none;
}

.st-report-form-button {
    justify-content: center;
    width: 100%;
}

.st-report-popover label {
    color: var(--st-muted);
    display: grid;
    font-weight: 650;
    gap: 0.35rem;
}

.st-report-popover input,
.st-report-popover textarea,
.st-report-popover select {
    border: 1px solid var(--st-border);
    border-radius: 8px;
    color: var(--st-ink);
    font: inherit;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.st-report-popover textarea {
    resize: vertical;
}

.st-reader-fanart-toggle {
    border-top: 1px solid rgba(183, 107, 22, 0.16);
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.st-reader-fanart-toggle summary {
    list-style: none;
}

.st-reader-fanart-toggle summary::-webkit-details-marker {
    display: none;
}

.st-reader-fanart-panel {
    display: grid;
    gap: 0.85rem;
}

.st-fanart-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.st-fanart-card {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.55rem;
    margin: 0;
    overflow: hidden;
}

.st-fanart-card img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.st-fanart-card figcaption,
.st-fanart-card-body {
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem;
}

.st-fanart-card figcaption strong,
.st-fanart-card-body strong {
    color: var(--st-ink);
}

.st-fanart-card figcaption span {
    color: var(--st-muted);
    font-size: 0.9rem;
}

.st-fanart-upload-form {
    max-width: none;
}

.st-author-suggestion-entry {
    position: relative;
}

.st-author-suggestion-entry.is-selecting .st-button {
    outline: 3px solid rgba(198, 126, 43, 0.22);
}

.st-author-suggestion-entry.is-selecting .st-reader-icon {
    outline: 3px solid rgba(198, 126, 43, 0.22);
}

.st-author-suggestion-hint {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    box-shadow: var(--st-shadow);
    min-width: 240px;
    padding: 0.7rem;
    position: absolute;
    right: 48px;
    top: 0;
}

.st-suggestion-dialog {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(39, 31, 22, 0.24);
    color: var(--st-ink);
    max-width: min(720px, calc(100vw - 2rem));
    padding: clamp(1rem, 3vw, 1.5rem);
    width: 720px;
}

.st-suggestion-dialog::backdrop {
    background: rgba(34, 28, 22, 0.48);
}

.st-dialog-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.st-dialog-close {
    align-items: center;
    background: rgba(255, 246, 225, 0.86);
    border: 1px solid var(--st-border);
    border-radius: 999px;
    color: var(--st-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.35rem;
    height: 2.35rem;
    justify-content: center;
    line-height: 1;
    width: 2.35rem;
}

.st-suggestion-selection,
.st-reader-suggestion-card blockquote,
.st-dashboard-suggestion blockquote,
.st-editor-suggestion-card blockquote {
    background: rgba(255, 246, 225, 0.86);
    border-left: 4px solid var(--st-accent);
    border-radius: 8px;
    margin: 0;
    padding: 0.8rem 0.95rem;
}

.st-reader-suggestion-card {
    background: rgba(255, 249, 238, 0.94);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    box-shadow: var(--st-shadow);
    display: grid;
    gap: 0.7rem;
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
    padding: clamp(1rem, 3vw, 1.35rem);
}

.st-reader-suggestion-card h2 {
    margin: 0;
}

.st-editor-suggestion-card {
    background: rgba(255, 249, 238, 0.96);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(96, 60, 20, 0.08);
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
}

.st-editor-suggestion-card h2 {
    margin: 0;
}

.st-editor-suggestion-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.st-section {
    border-top: 1px solid #dde2e7;
    margin: 2rem 0 0;
    padding-top: 1.5rem;
}

.st-reader-hero {
    background: #f6f8fa;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.st-reader-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 0.75rem;
}

.st-reader-hero p {
    max-width: 760px;
}

.st-landing-page {
    align-items: stretch;
    background: #fff;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.st-landing-copy {
    display: grid;
    gap: 0.9rem;
}

.st-landing-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
}

.st-landing-copy p,
.st-landing-copy ul {
    max-width: 800px;
}

.st-landing-copy ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.st-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.st-landing-panel {
    align-content: stretch;
    display: grid;
    gap: 0.75rem;
}

.st-landing-panel div {
    background: #f6f8fa;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
}

.st-landing-panel strong {
    color: #202124;
    font-size: 1.05rem;
}

.st-landing-panel span {
    color: #667085;
}

.st-auth-panel {
    margin: 1.25rem 0 2rem;
}

.st-auth-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.st-auth-card,
.st-auth-status {
    background: #fff;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    padding: 1rem;
}

.st-auth-card h2 {
    font-size: 1.25rem;
    letter-spacing: 0;
    margin: 0 0 0.85rem;
}

.st-auth-status {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.st-auth-status p {
    margin: 0;
}

.st-auth-link {
    color: var(--st-primary);
    font-weight: 560;
    justify-self: start;
    text-decoration: none;
}

.st-auth-link:hover,
.st-auth-link:focus {
    color: var(--st-primary-hover);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.st-password-card {
    max-width: 720px;
}

.st-account-page {
    display: grid;
    gap: 1.25rem;
}

.st-account-hero,
.st-author-page-hero {
    align-items: center;
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(54, 45, 34, 0.06);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.st-account-hero h1,
.st-author-page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 0.55rem;
}

.st-account-hero p,
.st-author-page-hero p {
    margin: 0;
    max-width: 820px;
}

.st-become-author-page .st-account-hero {
    align-items: flex-start;
    justify-content: flex-start;
}

.st-become-author-copy {
    display: grid;
    gap: 1.1rem;
    max-width: 980px;
    width: 100%;
}

.st-become-author-copy > :first-child {
    margin-top: 0;
}

.st-become-author-copy > :last-child {
    margin-bottom: 0;
}

.st-become-author-copy h1,
.st-become-author-copy h2,
.st-become-author-copy h3 {
    margin: 0;
    max-width: 12ch;
}

.st-become-author-copy p,
.st-become-author-copy li {
    max-width: 820px;
}

.st-become-author-copy p {
    margin: 0;
}

.st-become-author-copy ul,
.st-become-author-copy ol {
    margin: 0;
    max-width: 820px;
    padding-left: 1.2rem;
}

.st-account-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.st-account-subnav {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(54, 45, 34, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.45rem;
}

.st-account-subnav a {
    border-radius: 7px;
    color: #746f66;
    font-weight: 650;
    padding: 0.62rem 0.8rem;
    text-decoration: none;
}

.st-account-subnav a:hover,
.st-account-subnav a:focus,
.st-account-subnav a.is-active {
    background: #fff4dc;
    color: #b76b16;
}

.st-account-card {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(54, 45, 34, 0.05);
    padding: 1rem;
}

.st-account-card h2 {
    font-size: 1.35rem;
    letter-spacing: 0;
    margin: 0 0 0.8rem;
}

.st-card-title-row {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.st-card-title-row h2 {
    margin: 0;
}

.st-inline-link {
    color: #b76b16;
    font-weight: 680;
    text-decoration: none;
}

.st-inline-link:hover,
.st-inline-link:focus {
    color: #f05a1a;
    text-decoration: underline;
}

.st-settings-section {
    display: grid;
    gap: 0.85rem;
}

.st-settings-section h2 {
    margin-bottom: 0;
}

.st-soft-divider {
    border: 0;
    border-top: 1px solid #e0d6c7;
    margin: 1.2rem 0;
}

.st-notice-info {
    background: #fff4dc;
    border-color: rgba(255, 196, 87, 0.55);
    color: #5f4d26;
}

.st-credit-wallet {
    margin: 0.8rem 0 1.1rem;
}

.st-credit-overview-card {
    background:
        linear-gradient(135deg, rgba(255, 244, 220, 0.98), rgba(255, 253, 247, 0.98)),
        radial-gradient(circle at 90% 10%, rgba(255, 196, 87, 0.2), transparent 38%);
    border-color: rgba(255, 196, 87, 0.42);
}

.st-credit-overview-stats {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.st-credit-overview-stats dd {
    color: #b75f08;
}

.st-family-member-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.st-family-member-card {
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 246, 226, 0.9));
    border-color: rgba(255, 186, 73, 0.36);
}

.st-family-member-card .st-author-stats {
    margin: 0.8rem 0;
}

.st-family-member-edit {
    border-top: 1px solid rgba(216, 212, 200, 0.76);
    margin-top: 0.9rem;
    padding-top: 0.8rem;
}

.st-family-member-edit summary {
    color: #b76b16;
    cursor: pointer;
    font-weight: 700;
}

.st-form.st-family-member-form {
    margin-top: 0.8rem;
    max-width: min(100%, 1120px);
}

.st-family-member-form .st-form-grid {
    align-items: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-family-member-form label {
    align-content: start;
    min-width: 0;
}

.st-family-member-form small {
    color: #6f7680;
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: 34rem;
}

.st-family-member-form .st-family-active-toggle {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    gap: 0.65rem;
    justify-self: start;
    margin: 0.25rem 0 0.35rem;
}

.st-family-member-form .st-family-active-toggle input[type="checkbox"] {
    flex: 0 0 auto;
    height: 1.1rem;
    margin: 0;
    min-height: 0;
    width: 1.1rem;
}

.st-family-member-form .st-family-active-toggle span {
    line-height: 1.25;
}

.st-family-password-reset {
    display: grid;
    gap: 0.85rem;
}

.st-family-password-reset h4 {
    margin: 0.25rem 0 0;
}

.st-family-member-form > .st-button {
    justify-content: center;
    width: min(100%, 760px);
}

@media (max-width: 980px) {
    .st-family-member-form .st-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .st-family-member-form .st-form-grid {
        grid-template-columns: 1fr;
    }

    .st-family-member-form > .st-button {
        width: 100%;
    }
}

.st-credit-package-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 1rem;
}

.st-credit-package {
    align-content: start;
    background: #fffaf0;
    border: 1px solid #e0d6c7;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(72, 50, 24, 0.06);
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
}

.st-credit-package h3 {
    font-size: 1.15rem;
    margin: 0;
}

.st-credit-package p {
    margin: 0;
}

.st-credit-package-price {
    color: #bd6b12;
    font-size: 1.65rem;
    font-weight: 720;
}

.st-credit-referral-preview {
    background: #eef8f2;
    border: 1px solid #b8dcc4;
    border-radius: 8px;
    color: #26563b;
    font-size: 0.92rem;
    font-weight: 720;
    padding: 0.55rem 0.65rem;
}

.st-credit-package .st-button {
    width: 100%;
}

.st-stripe-portal-form {
    margin: 1rem 0 0;
}

.st-reader-invite-panel {
    background: #f7fbff;
    border: 1px solid #cfe1f2;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    margin: 1.1rem 0;
    padding: 1rem;
}

.st-reader-invite-panel h3 {
    margin: 0 0 0.45rem;
}

.st-reader-invite-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
}

.st-reader-invite-list li {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(44, 101, 151, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem;
}

.st-reader-invite-list span,
.st-reader-invite-list small {
    color: #5f6d7a;
    font-size: 0.86rem;
}

@media (max-width: 780px) {
    .st-reader-invite-panel {
        grid-template-columns: 1fr;
    }
}

.st-credit-subscription-box {
    background: rgba(255, 244, 220, 0.72);
    border: 1px solid rgba(255, 196, 87, 0.45);
    border-radius: 8px;
    display: grid;
    gap: 0.5rem;
    margin-top: 0.3rem;
    padding: 0.85rem;
}

.st-credit-package-subscription-price {
    color: #f05a1a;
    font-size: 1.25rem;
}

.st-credit-subscription-badge {
    align-self: start;
    background: #fff0bf;
    border: 1px solid rgba(255, 196, 87, 0.55);
    border-radius: 999px;
    color: #9d4f00;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 720;
    justify-self: start;
    padding: 0.18rem 0.58rem;
}

.st-credit-paywall {
    background: #fffaf0;
    border: 1px solid #e0d6c7;
    color: #2d2924;
    margin: 4rem auto;
    max-width: 760px;
}

.st-credit-paywall h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0.25rem 0 1rem;
}

.st-credit-paywall-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 1rem 0;
}

.st-credit-paywall-grid span {
    background: rgba(183, 107, 22, 0.08);
    border: 1px solid rgba(183, 107, 22, 0.18);
    border-radius: 8px;
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
}

.st-credit-paywall-grid strong {
    color: #7f4c11;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.st-credit-unlock-form {
    margin-top: 1rem;
}

.st-clean-reading-prompt {
    align-items: center;
    background: rgba(255, 250, 240, 0.98);
    border: 1px solid #e0d6c7;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(72, 50, 24, 0.08);
    box-sizing: border-box;
    color: #2d2924;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 1rem auto 0;
    max-width: 760px;
    padding: clamp(1rem, 2.5vw, 1.25rem);
}

.st-clean-reading-prompt h2 {
    font-size: 1.25rem;
    margin: 0.15rem 0 0.35rem;
}

.st-clean-reading-prompt p {
    margin: 0;
}

.st-clean-reading-prompt .st-action-row {
    justify-content: flex-end;
}

.st-credit-paywall .st-clean-reading-prompt {
    box-shadow: none;
    grid-template-columns: 1fr;
    margin: 1rem 0;
    max-width: none;
}

.st-credit-status-bar {
    align-items: center;
    background: rgba(255, 248, 232, 0.96);
    border: 1px solid #e0d6c7;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(72, 50, 24, 0.06);
    color: #2d2924;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    margin: 0 auto 1rem;
    max-width: 1120px;
    padding: 0.8rem 1rem;
}

.st-credit-status-bar > div {
    display: grid;
    gap: 0.12rem;
}

.st-credit-status-bar strong {
    color: #8b520e;
    font-size: 0.95rem;
}

.st-credit-status-bar span {
    color: #716c63;
    font-size: 0.9rem;
}

.st-credit-status-link {
    background: #c97313;
    border-radius: 8px;
    color: #fffefa;
    font-weight: 700;
    padding: 0.62rem 0.85rem;
    text-decoration: none;
}

.st-credit-status-link:hover,
.st-credit-status-link:focus {
    background: #a85e0d;
    color: #fffefa;
}

.st-book-reader > .st-credit-status-bar {
    margin-top: 1rem;
}

.st-reader-credit-toggle {
    margin: 0.7rem 0;
}

.st-report-popover .st-credit-status-bar {
    box-shadow: none;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr;
    margin: 0.7rem 0 0;
    max-width: none;
    padding: 0.75rem;
    width: auto;
}

.st-report-popover .st-credit-status-bar > div {
    min-width: 0;
}

.st-report-popover .st-credit-status-link {
    justify-self: start;
}

.st-report-form-toggle.is-selecting .st-report-selection-button {
    border-color: #d18a24;
    box-shadow: 0 0 0 3px rgba(209, 138, 36, 0.16);
}

.st-report-selection-preview {
    background: #fffdf7;
    border-left: 3px solid #d18a24;
    color: #2d2924;
    font-size: 0.92rem;
    margin: 0.55rem 0;
    max-height: 9rem;
    overflow: auto;
    padding: 0.65rem 0.75rem;
}

.st-credit-state {
    border-radius: 999px;
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    width: fit-content;
}

.st-credit-state-free,
.st-credit-state-unlocked,
.st-credit-state-author {
    background: #eaf6ee;
    color: #237144;
}

.st-credit-state-payable {
    background: #fff4dc;
    color: #9a5d13;
}

.st-credit-state-insufficient,
.st-credit-state-login {
    background: #fff0eb;
    color: #a53a1d;
}

.st-author-profile-editor {
    grid-column: 1 / -1;
}

.st-account-single {
    display: grid;
    gap: 0.9rem;
}

.st-account-friend-requests {
    background: #fff8e8;
    border: 1px solid #f0d7a6;
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
}

.st-author-profile-form {
    max-width: none;
}

.st-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.st-author-avatar {
    aspect-ratio: 1;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: block;
    height: 108px;
    object-fit: cover;
    width: 108px;
}

.st-author-avatar-large {
    flex: 0 0 auto;
    height: 150px;
    width: 150px;
}

.st-author-avatar-placeholder {
    align-items: center;
    background: #fff4dc;
    color: #9f5a12;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 620;
    justify-content: center;
}

.st-author-headline {
    color: #667085;
    font-size: 1.1rem;
}

.st-author-directory {
    display: grid;
    gap: 1.25rem;
}

.st-directory-count {
    background: #fff4dc;
    border: 1px solid #e8c78e;
    border-radius: 999px;
    color: #9f5a12;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
}

.st-author-directory-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.st-author-directory-card {
    align-content: start;
    display: grid;
    gap: 0.85rem;
}

.st-author-card-head {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.st-author-directory-card h2 {
    font-size: 1.28rem;
    margin: 0;
}

.st-author-directory-card h2 a {
    color: inherit;
    text-decoration: none;
}

.st-author-directory-card h2 a:hover,
.st-author-directory-card h2 a:focus {
    color: #b76b16;
}

.st-author-directory-card .st-author-headline,
.st-author-directory-card .st-meta {
    margin: 0.2rem 0 0;
}

.st-author-directory-card .st-author-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.st-author-directory-card .st-author-stats div {
    padding: 0.62rem;
}

.st-author-directory-card .st-author-stats div:nth-child(3),
.st-author-directory-card .st-author-stats div:nth-child(4) {
    grid-column: span 2;
}

.st-author-directory-card .st-author-stats dt,
.st-author-directory-card .st-author-stats dd {
    overflow-wrap: anywhere;
}

.st-author-directory-card .st-button {
    justify-self: start;
}

.st-author-stats {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 1rem 0;
}

.st-author-stats div {
    background: #f7f6f1;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    padding: 0.75rem;
}

.st-author-stats dt {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.st-author-stats dd {
    color: #202124;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0.15rem 0 0;
}

.st-author-inline-link {
    color: inherit;
    font-weight: 800;
}

.st-author-inline-link:hover,
.st-author-inline-link:focus {
    color: #b76b16;
}

.st-author-start-card,
.st-slot-tools,
.st-author-dashboard .st-dashboard-section {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(54, 45, 34, 0.05);
    padding: 1rem;
}

.st-author-start-card {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 1.25rem 0;
}

.st-author-start-card h2,
.st-slot-tools h3,
.st-dashboard-heading h2,
.st-dashboard-item h3 {
    letter-spacing: 0;
    margin: 0;
}

.st-slot-tools {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.st-slot-tool-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.st-slot-form {
    background: #f7f6f1;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    max-width: none;
    padding: 0.85rem;
}

.st-slot-lock-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding-left: 1.15rem;
}

.st-slot-user-lock {
    background: #fff7e7;
    border: 1px solid #f4d69a;
    border-radius: 8px;
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
}

.st-author-dashboard {
    display: grid;
    gap: 1.25rem;
}

.st-dashboard-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.st-dashboard-stats div {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
}

.st-dashboard-stats strong {
    color: #b76b16;
    font-size: 1.35rem;
    line-height: 1.1;
}

.st-dashboard-stats span {
    color: #667085;
    font-weight: 800;
}

.st-dashboard-stat-action {
    padding: 0 !important;
}

.st-dashboard-stat-button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.25rem;
    height: 100%;
    padding: 1rem;
    text-align: left;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}

.st-dashboard-stat-button:hover,
.st-dashboard-stat-button:focus-visible {
    background: #fff7e7;
    box-shadow: inset 0 0 0 2px rgba(255, 93, 20, 0.24);
    outline: 0;
}

.st-dashboard-stat-button strong {
    align-items: center;
    display: inline-flex;
}

.st-dashboard-stat-button strong .st-author-award-dashboard-badge span {
    color: inherit;
}

.st-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.st-dashboard-subnav {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(54, 45, 34, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.45rem;
}

.st-dashboard-subnav a {
    align-items: center;
    border-radius: 7px;
    color: #746f66;
    display: inline-flex;
    font-weight: 650;
    gap: 0.25rem;
    padding: 0.62rem 0.8rem;
    text-decoration: none;
}

.st-dashboard-subnav a:hover,
.st-dashboard-subnav a:focus,
.st-dashboard-subnav a.is-active {
    background: #fff4dc;
    color: #b76b16;
}

.st-dashboard-heading {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.st-dashboard-list {
    display: grid;
    gap: 0.75rem;
}

.st-dashboard-section-link {
    color: inherit;
    display: grid;
    gap: 0.75rem;
    text-decoration: none;
}

.st-dashboard-section-link:hover,
.st-dashboard-section-link:focus {
    border-color: #d48a1f;
    box-shadow: 0 16px 36px rgba(212, 138, 31, 0.12);
    outline: none;
}

.st-dashboard-section-link .st-dashboard-heading {
    margin-bottom: 0;
}

.st-dashboard-more {
    color: #b76b16;
    font-weight: 750;
}

.st-content-preview-counts {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.st-content-preview-counts div {
    background: #fff8e8;
    border: 1px solid #f0d7a6;
    border-radius: 8px;
    padding: 0.7rem;
}

.st-content-preview-counts dt {
    color: var(--st-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.st-content-preview-counts dd {
    color: #b76b16;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0.2rem 0 0;
}

.st-content-story-groups {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.st-dashboard-item-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
}

.st-author-earnings-preview-card .st-author-earning-preview-summary {
    margin: 0;
}

.st-author-earnings-preview-card .st-author-earning-preview-summary dd {
    color: #b76b16;
}

.st-dashboard-item {
    background: #fff;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
}

.st-dashboard-item h3 {
    font-size: 1rem;
}

.st-fanart-chapter-group {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    margin-top: 1rem;
    overflow: hidden;
}

.st-fanart-chapter-group > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 0.95rem 1rem;
}

.st-fanart-chapter-group > summary::-webkit-details-marker {
    display: none;
}

.st-fanart-chapter-group > summary strong,
.st-fanart-chapter-group > summary small {
    display: block;
}

.st-fanart-chapter-group > summary small,
.st-fanart-chapter-group > summary em {
    color: var(--st-muted);
    font-style: normal;
}

.st-fanart-dashboard-grid {
    border-top: 1px solid rgba(216, 212, 200, 0.8);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 1rem;
}

.st-fanart-card-pending {
    border-color: #d48a1f;
}

.st-fanart-card-approved {
    border-color: #87c8a4;
}

.st-fanart-card-rejected {
    opacity: 0.72;
}

.st-fanart-reward-box {
    background: rgba(255, 243, 203, 0.62);
    border: 1px solid rgba(213, 164, 62, 0.42);
    border-radius: 8px;
    margin-top: 0.85rem;
    padding: 0.85rem;
}

.st-fanart-reward-box h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.st-fanart-reward-form {
    display: grid;
    gap: 0.7rem;
}

.st-fanart-reward-form label {
    display: grid;
    gap: 0.35rem;
}

.st-dashboard-fanart-preview {
    display: grid;
    gap: 0.75rem;
}

.st-dashboard-item blockquote {
    border-left: 3px solid #d48a1f;
    color: #4f5664;
    margin: 0;
    padding-left: 0.75rem;
}

.st-dashboard-message-preview {
    display: grid;
    gap: 0.85rem;
}

.st-dashboard-messages {
    display: grid;
    gap: 1rem;
}

.st-dashboard-admin-tools {
    display: grid;
    gap: 1.2rem;
}

.st-dashboard-admin-tools .st-admin-panel {
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow-soft);
    padding: 1rem;
}

.st-dashboard-admin-tools .st-admin-panel h2 {
    font-size: var(--st-font-title);
    margin: 0 0 0.45rem;
}

.st-admin-subtabs {
    align-items: center;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.45rem;
}

.st-admin-subtabs a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--st-muted);
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.85rem;
    text-decoration: none;
}

.st-admin-subtabs a:hover,
.st-admin-subtabs a:focus,
.st-admin-subtabs a.is-active {
    background: #fff7df;
    border-color: rgba(203, 113, 18, 0.28);
    color: var(--st-primary);
}

.st-admin-subtabs a span {
    align-items: center;
    background: rgba(240, 90, 26, 0.12);
    border-radius: 999px;
    color: var(--st-logo-orange, #f05a1a);
    display: inline-flex;
    font-size: 0.78rem;
    justify-content: center;
    min-width: 1.45rem;
    padding: 0.12rem 0.42rem;
}

.st-admin-report-filters {
    background: transparent;
    border-color: rgba(201, 130, 43, 0.18);
    box-shadow: none;
    margin: 0.9rem 0 1rem;
}

.st-dashboard-admin-tools .widefat {
    background: #fffefa;
    border: 1px solid var(--st-border);
    border-collapse: collapse;
    border-radius: 10px;
    display: block;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.st-dashboard-admin-tools .widefat th,
.st-dashboard-admin-tools .widefat td {
    border-bottom: 1px solid rgba(201, 130, 43, 0.18);
    padding: 0.65rem;
    text-align: left;
    vertical-align: top;
}

.st-dashboard-admin-tools .widefat th {
    color: var(--st-ink);
    font-weight: 800;
}

.st-dashboard-admin-tools .button {
    align-items: center;
    background: #fffefa;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    color: var(--st-ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    min-height: 2.35rem;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
}

.st-dashboard-admin-tools .button-primary {
    background: var(--st-accent);
    border-color: var(--st-accent);
    color: #fff;
}

.st-dashboard-admin-tools .button-link-delete {
    color: var(--st-danger);
}

.st-message-thread {
    background: #fff8e8;
    border: 1px solid #f0d7a6;
    border-radius: 8px;
    overflow: hidden;
}

.st-message-bulk-actions,
.st-message-thread-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.st-message-bulk-actions {
    margin: 0 0 1rem;
}

.st-message-thread-actions {
    border-top: 1px solid rgba(240, 215, 166, 0.85);
    padding: 0.75rem 1rem 0;
}

.st-message-thread > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 1rem;
}

.st-message-thread > summary::-webkit-details-marker {
    display: none;
}

.st-message-thread > summary strong,
.st-message-thread > summary small {
    display: block;
}

.st-message-thread > summary strong {
    font-size: 1.05rem;
    font-weight: 650;
    margin: 0;
}

.st-message-thread > summary small,
.st-message-thread > summary em {
    color: var(--st-muted);
    font-style: normal;
}

.st-message-chat {
    border-top: 1px solid rgba(240, 215, 166, 0.85);
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.st-dashboard-friend-form {
    margin-bottom: 0.85rem;
    max-width: none;
}

.st-link-button {
    background: transparent;
    border: 0;
    color: #b76b16;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
    text-decoration: underline;
}

.st-create-story-entry {
    margin: 1.25rem 0;
}

.st-kicker {
    color: #b76b16;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.st-section h2,
.st-story-header h1 {
    letter-spacing: 0;
}

.st-story-list,
.st-character-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.st-card,
.st-branch {
    background: #fff;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    padding: 1rem;
}

.st-card h3,
.st-branch h3 {
    margin-top: 0;
}

.st-story-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.st-story-card p {
    margin: 0;
}

.st-card-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
}

.st-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.st-sort-form {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.st-sort-form label {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.st-sort-form select {
    border: 1px solid #b9c1ca;
    border-radius: 6px;
    font: inherit;
    padding: 0.45rem 0.6rem;
}

.st-meta {
    color: #667085;
    font-size: 0.92rem;
}

.st-form {
    display: grid;
    gap: 1rem;
    max-width: 760px;
}

.st-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.st-form .st-check {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.st-form .st-check input {
    width: auto;
}

.st-form input,
.st-form textarea,
.st-form select {
    border: 1px solid #b9c1ca;
    border-radius: 6px;
    font: inherit;
    padding: 0.65rem 0.75rem;
    width: 100%;
}

.st-form textarea {
    resize: vertical;
}

.st-button {
    align-items: center;
    background: #b76b16;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    text-decoration: none;
}

.st-button:hover,
.st-button:focus {
    background: #8f4f0e;
    color: #fff;
}

.st-back-link {
    color: #b76b16;
    font-weight: 700;
    text-decoration: none;
}

.st-back-link:hover,
.st-back-link:focus {
    text-decoration: underline;
}

.st-reader-view .st-story-header {
    max-width: 780px;
}

.st-reader-view .st-story-header h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
}

.st-reader-view .st-story-header p {
    font-size: 1.05rem;
}

.st-reader-view .st-branch {
    max-width: 820px;
}

.st-reader-view .st-branch > p {
    font-size: 1.06rem;
}

.st-story-map {
    margin: 0 auto;
    max-width: min(1480px, 100%);
}

.st-map-header {
    background: #f6f8fa;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    margin: 1rem 0 1.5rem;
    padding: 1.25rem;
}

.st-map-header h1 {
    letter-spacing: 0;
    margin: 0 0 0.65rem;
}

.st-author-overview-hub {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(54, 45, 34, 0.06);
    display: grid;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 1rem;
}

.st-author-overview-hub[hidden] {
    display: none;
}

.st-author-hub-nav {
    align-items: center;
    background: #f7f6f1;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
}

.st-author-hub-nav button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #667085;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0.65rem 0.85rem;
}

.st-author-hub-nav button.is-active {
    background: #fff;
    box-shadow: 0 8px 18px rgba(54, 45, 34, 0.08);
    color: var(--st-primary, #b76b16);
}

.st-author-hub-panel[hidden] {
    display: none;
}

.st-author-hub-heading {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.st-author-hub-heading h2,
.st-author-hub-detail h3 {
    letter-spacing: 0;
    margin: 0;
}

.st-author-hub-character-grid,
.st-author-hub-world-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.st-author-hub-detail {
    display: grid;
    gap: 1rem;
}

.st-world-orientation {
    background: #f7f6f1;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.st-world-orientation h3 {
    color: #253041;
    letter-spacing: 0;
    margin: 0;
}

.st-world-orientation-detail[hidden] {
    display: none;
}

.st-world-orientation-detail {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
}

.st-world-orientation-detail h4 {
    color: #202124;
    font-size: 1.15rem;
    letter-spacing: 0;
    margin: 0;
}

.st-world-orientation-detail dl {
    display: grid;
    gap: 0.45rem 0.8rem;
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
    margin: 0;
}

.st-world-orientation-detail dt {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 800;
}

.st-world-orientation-detail dd {
    color: #253041;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.st-world-orientation-detail .st-world-info-empty {
    grid-column: 1 / -1;
}

.st-world-orientation-maps[hidden] {
    display: none;
}

.st-world-orientation-maps {
    border-top: 1px solid #e4ded2;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding-top: 0.75rem;
}

.st-world-orientation-maps a {
    background: #ffffff;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    color: #253041;
    display: grid;
    gap: 0.35rem;
    overflow: hidden;
    text-decoration: none;
}

.st-world-orientation-maps span {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.25;
    padding: 0 0.6rem 0.6rem;
}

.st-world-orientation-scroll {
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
}

.st-world-orientation-tree,
.st-world-orientation-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.st-world-orientation-tree {
    align-items: flex-start;
    display: flex;
    gap: 1.4rem;
    min-width: max-content;
}

.st-world-orientation-tree ul {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.25rem;
}

.st-world-orientation-tree ul::before {
    background: #c9c1b3;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0.6rem;
}

.st-world-orientation-tree li {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.st-world-orientation-tree ul > li::before {
    background: #c9c1b3;
    content: "";
    height: 0.65rem;
    left: 50%;
    position: absolute;
    top: -0.65rem;
    width: 1px;
}

.st-world-node {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    color: #253041;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    max-width: 260px;
    min-height: 34px;
    padding: 0.45rem 0.65rem;
    width: fit-content;
}

.st-world-node:hover,
.st-world-node:focus,
.st-world-node.is-active {
    box-shadow: 0 0 0 3px rgba(183, 107, 22, 0.14);
    outline: none;
}

.st-world-node-continent {
    border-color: #b76b16;
    color: #b76b16;
}

.st-world-node-country {
    border-color: #b87a1d;
}

.st-world-node-region {
    background: #fff5dd;
}

.st-world-node-city {
    background: #fffefa;
}

.st-world-node-place {
    background: #f4efe6;
    color: #6b4f23;
}

.st-family-tree-card {
    background: #ffffff;
    border: 1px solid #e4ded2;
    border-radius: 8px;
    padding: 1rem;
}

.st-family-tree-card h3 {
    letter-spacing: 0;
    margin: 0 0 0.85rem;
}

.st-family-tree {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0.25rem;
}

.st-family-row {
    align-items: stretch;
    display: grid;
    gap: 0.75rem;
    justify-content: center;
}

.st-family-row-parents {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    margin: 0 auto;
    max-width: 620px;
    position: relative;
}

.st-family-row-parents::after {
    background: #c7c0b2;
    bottom: -0.55rem;
    content: "";
    height: 1rem;
    left: 50%;
    position: absolute;
    width: 2px;
}

.st-family-row-current {
    grid-template-columns: minmax(220px, 360px);
    position: relative;
}

.st-family-row-current::after {
    background: #c7c0b2;
    bottom: -0.55rem;
    content: "";
    height: 1rem;
    left: 50%;
    position: absolute;
    width: 2px;
}

.st-family-row-relations {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.st-family-node {
    background: #fbfaf6;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.75rem;
}

.st-family-node span {
    color: #667085;
    font-size: 0.8rem;
    font-weight: 800;
}

.st-family-node strong {
    color: #111827;
    font-size: 1rem;
}

.st-family-node-current {
    background: #fff4dc;
    border-color: #e2ad5b;
    text-align: center;
}

.st-progress-tree,
.st-progress-level {
    margin: 0;
    padding: 0;
}

.st-progress-tree {
    overflow-x: auto;
    overflow-y: auto;
    padding: 1.5rem;
    scroll-behavior: smooth;
    --st-tree-zoom: 1;
}

.st-progress-tree > .st-progress-level {
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.18s ease;
    width: max-content;
}

.st-tree-export-form {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.st-tree-export-form[hidden] {
    display: none;
}

.st-tree-export-form .st-button {
    min-height: 40px;
    padding: 0.55rem 0.8rem;
}

.st-tree-export-check {
    align-items: center;
    background: rgba(255, 252, 246, 0.95);
    border: 1px solid var(--st-accent);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(96, 60, 20, 0.12);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.35rem;
    left: 0.5rem;
    line-height: 1;
    padding: 0.4rem 0.55rem;
    position: absolute;
    top: 0.5rem;
    z-index: 4;
}

.st-tree-export-check[hidden] {
    display: none;
}

.st-tree-export-check input {
    accent-color: var(--st-accent);
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.st-progress-tree-exporting .st-progress-card {
    cursor: default;
}

.st-ebook-export {
    background: rgba(255, 252, 246, 0.95);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(96, 60, 20, 0.07);
    margin: 1.25rem 0;
    padding: 0.25rem;
}

.st-ebook-export > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    list-style: none;
    padding: 0.9rem 1rem;
}

.st-ebook-export > summary::-webkit-details-marker {
    display: none;
}

.st-ebook-export > summary::after {
    content: "+";
}

.st-ebook-export[open] > summary::after {
    content: "−";
}

.st-ebook-export-form {
    border-top: 1px solid var(--st-border);
    padding: 1rem;
}

.st-ebook-export-list {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0.8rem 0 1rem;
}

.st-ebook-export-option {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem;
}

.st-ebook-export-option input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.st-ebook-export-option span {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.st-branch-image-tool {
    margin-top: 1rem;
}

.st-branch-image-tool > summary {
    align-items: start;
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
    list-style: none;
    position: relative;
}

.st-branch-image-tool > summary::-webkit-details-marker {
    display: none;
}

.st-branch-image-tool > summary::after {
    align-items: center;
    background: #fff7df;
    border: 1px solid #e1a546;
    border-radius: 999px;
    color: var(--st-primary, #b76b16);
    content: "+";
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    height: 1.75rem;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 0;
    width: 1.75rem;
}

.st-branch-image-tool[open] > summary::after {
    content: "−";
}

.st-branch-image-tool > summary strong {
    color: var(--st-ink, #202124);
    font-size: 1rem;
    line-height: 1.25;
    padding-right: 2.2rem;
}

.st-branch-image-tool > summary span {
    color: var(--st-muted, #667085);
    font-size: 0.86rem;
    line-height: 1.35;
    padding-right: 2.2rem;
}

.st-branch-image-tool-body {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.85rem;
}

.st-branch-image-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0.85rem 0;
}

.st-branch-image-item {
    display: grid;
    gap: 0.55rem;
}

.st-branch-image-list figure {
    background: #fffdfa;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.st-branch-image-list img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.st-branch-image-list figcaption {
    color: var(--st-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 0.55rem;
}

.st-branch-image-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.st-branch-image-item-actions form {
    margin: 0;
}

.st-button-danger {
    border-color: #b42318;
    color: #b42318;
}

.st-button-danger:hover,
.st-button-danger:focus {
    background: #fff0ed;
    border-color: #911c13;
    color: #911c13;
}

.st-branch-image-layout-controls {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.st-branch-image-layout-controls input[type="range"] {
    padding-left: 0;
    padding-right: 0;
}

.st-branch-image-dialog {
    border: 1px solid var(--st-border);
    border-radius: 10px;
    box-shadow: 0 28px 80px rgba(68, 45, 20, 0.22);
    max-height: min(88vh, 920px);
    max-width: min(1120px, 94vw);
    padding: 1.25rem;
    width: 100%;
}

.st-branch-image-dialog::backdrop {
    background: rgba(27, 24, 20, 0.55);
}

.st-branch-image-placement-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    margin: 1rem 0;
}

.st-branch-image-visual-editor {
    grid-template-columns: 1fr;
}

.st-branch-image-drag-preview {
    align-self: start;
    background: #fffaf2;
    border: 1px solid #ead9c0;
    border-radius: 8px;
    cursor: grab;
    margin: 0;
    overflow: hidden;
    position: sticky;
    top: 0;
}

.st-branch-image-visual-editor .st-branch-image-drag-preview {
    block-size: auto;
    box-shadow: 0 18px 45px rgba(76, 52, 24, 0.16);
    contain: paint;
    cursor: move;
    display: inline-flex;
    flex-direction: column;
    height: auto;
    line-height: 1;
    margin-bottom: 1rem;
    margin-top: 1rem;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: var(--st-chapter-image-width, 100%);
}

.st-branch-image-visual-editor .st-branch-image-drag-preview.is-awaiting-position {
    border-color: var(--st-accent);
    border-style: dashed;
}

.st-branch-image-drag-preview:active {
    cursor: grabbing;
}

.st-branch-image-drag-preview img,
.st-branch-image-static-preview img {
    display: block;
    flex: 0 0 auto;
    height: auto;
    margin: 0;
    width: 100%;
}

.st-branch-image-drag-preview figcaption,
.st-branch-image-static-preview figcaption {
    color: var(--st-muted);
    display: block;
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 0;
    padding: 0.65rem;
    text-align: center;
}

.st-branch-image-placement-text .st-branch-image-drag-preview {
    block-size: auto;
    height: auto;
    max-height: none;
}

.st-branch-image-placement-text {
    background: #fffefa;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    display: block;
    max-height: 64vh;
    overflow: auto;
    padding: 1rem;
}

.st-branch-image-placement-text.is-drag-over {
    border-color: var(--st-accent);
    box-shadow: inset 0 0 0 2px rgba(199, 113, 19, 0.16);
}

.st-branch-image-placement-text::after {
    clear: both;
    content: "";
    display: block;
}

.st-branch-image-slot {
    background: rgba(255, 245, 223, 0.72);
    border: 1px dashed var(--st-accent);
    border-radius: 8px;
    color: #8a4d00;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    min-height: 30px;
    margin: 0.45rem 0;
    padding: 0.35rem 0.65rem;
    text-align: center;
    width: 100%;
}

.st-branch-image-slot:hover,
.st-branch-image-slot:focus,
.st-branch-image-slot.is-drag-over,
.st-branch-image-slot.is-selected {
    background: #f5c46b;
    border-style: solid;
    color: #2f2418;
}

.st-branch-image-paragraph-preview {
    color: #2f2921;
    font-family: var(--st-story-font-family, "Source Serif 4", Georgia, "Times New Roman", serif);
    font-size: var(--st-story-font-size, 1.22rem);
    line-height: var(--st-story-line-height, 1.9);
    margin: 0.75rem 0;
    padding: 0 0.25rem;
    white-space: pre-wrap;
}

.st-branch-image-static-preview {
    background: #fffaf2;
    border: 1px solid #ead9c0;
    border-radius: 8px;
    height: auto;
    min-height: 0;
    margin: 1rem auto;
    overflow: hidden;
    width: var(--st-chapter-image-width, 100%);
}

.st-branch-image-resize {
    background: #fffefa;
    border: 2px solid var(--st-accent);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(76, 52, 24, 0.22);
    height: 14px;
    position: absolute;
    width: 14px;
    z-index: 3;
}

.st-branch-image-resize-nw {
    cursor: nwse-resize;
    left: -7px;
    top: -7px;
}

.st-branch-image-resize-ne {
    cursor: nesw-resize;
    right: -7px;
    top: -7px;
}

.st-branch-image-resize-sw {
    bottom: -7px;
    cursor: nesw-resize;
    left: -7px;
}

.st-branch-image-resize-se {
    bottom: -7px;
    cursor: nwse-resize;
    right: -7px;
}

.st-branch-image-drag-preview.is-resizing {
    user-select: none;
}

.st-progress-level {
    align-items: flex-start;
    display: flex;
    gap: 4rem;
    justify-content: center;
    min-width: min-content;
}

.st-progress-node {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 2.5rem;
    min-width: 168px;
    position: relative;
}

.st-progress-node > .st-progress-level {
    margin-top: 0;
    padding-top: 0;
    position: relative;
}

.st-progress-node > .st-progress-level::before {
    background: #b9c1ca;
    content: "";
    height: 1.15rem;
    left: 84px;
    position: absolute;
    top: -2.25rem;
    width: 2px;
}

.st-progress-node > .st-progress-level > .st-progress-node::before {
    background: #b9c1ca;
    content: "";
    height: 1.15rem;
    left: 84px;
    position: absolute;
    top: -1.15rem;
    width: 2px;
}

.st-progress-node > .st-progress-level > .st-progress-node::after {
    background: #b9c1ca;
    content: "";
    height: 2px;
    left: -2rem;
    position: absolute;
    right: -2rem;
    top: -1.1rem;
}

.st-progress-node > .st-progress-level > .st-progress-node.st-progress-first-child::after {
    left: 84px;
}

.st-progress-node > .st-progress-level > .st-progress-node.st-progress-last-child::after {
    right: calc(100% - 84px);
}

.st-progress-node > .st-progress-level > .st-progress-node.st-progress-first-child.st-progress-last-child::after {
    display: none;
}

.st-progress-node > .st-progress-level > .st-progress-node:only-child::before {
    height: 2.25rem;
    top: -2.25rem;
}

.st-progress-card-wrap {
    position: relative;
    width: 168px;
}

.st-progress-card {
    align-content: center;
    aspect-ratio: 1 / 1;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    box-sizing: border-box;
    color: #202124;
    display: grid;
    gap: 0.18rem;
    justify-items: center;
    min-height: 0;
    padding: 0.7rem;
    text-align: center;
    text-decoration: none;
    width: 168px;
}

.st-progress-card[data-st-tree-select-card] {
    cursor: pointer;
}

.st-tree-branch-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #b9c1ca;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
    color: #202124;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: -10px;
    top: -10px;
    width: 28px;
    z-index: 5;
}

.st-tree-branch-toggle:hover,
.st-tree-branch-toggle:focus {
    border-color: #b76b16;
    color: #b76b16;
}

.st-progress-collapsed > .st-progress-level {
    display: none;
}

.st-progress-collapsed > .st-progress-level::before {
    display: none;
}

.st-progress-node.st-progress-collapsed > .st-progress-level::before {
    display: none;
}

.st-progress-card > span:not(.st-progress-ratings),
.st-progress-title-link > span {
    display: -webkit-box;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.st-progress-title-link {
    color: inherit;
    text-decoration: none;
}

.st-progress-title-link:hover,
.st-progress-title-link:focus {
    color: #b76b16;
}

.st-progress-read > .st-progress-card,
.st-progress-read > .st-progress-card-wrap > .st-progress-card {
    background: #fff2d6;
    border-color: #ecc77f;
}

.st-progress-available > .st-progress-card,
.st-progress-available > .st-progress-card-wrap > .st-progress-card {
    background: #f1f3f5;
    color: #667085;
}

.st-progress-current > .st-progress-card,
.st-progress-current > .st-progress-card-wrap > .st-progress-card {
    border-color: #b76b16;
    box-shadow: 0 0 0 3px rgba(183, 107, 22, 0.2);
}

.st-progress-selected > .st-progress-card,
.st-progress-selected > .st-progress-card-wrap > .st-progress-card {
    border-color: #0b3d6f;
    box-shadow: 0 0 0 4px rgba(11, 61, 111, 0.22), 0 18px 38px rgba(9, 34, 56, 0.16);
}

.st-progress-parent > .st-progress-card,
.st-progress-parent > .st-progress-card-wrap > .st-progress-card {
    border-color: #e6b86e;
}

.st-progress-sibling > .st-progress-card,
.st-progress-sibling > .st-progress-card-wrap > .st-progress-card {
    border-style: dashed;
}

.st-progress-own > .st-progress-card,
.st-progress-own > .st-progress-card-wrap > .st-progress-card {
    border-width: 4px;
}

.st-progress-card:hover,
.st-progress-card:focus,
.st-progress-card:focus-within {
    border-color: #b76b16;
    color: #202124;
}

.st-progress-card small {
    color: #667085;
    display: -webkit-box;
    font-size: 0.78rem;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.st-progress-ratings {
    display: grid;
    gap: 0.08rem;
    width: 100%;
}

.st-progress-ratings small {
    display: block;
    font-size: 0.7rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-tree-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin: 0 0 0.75rem;
}

.st-tree-zoom {
    align-items: center;
    background: #fff;
    border: 1px solid #b9c1ca;
    border-radius: 8px;
    color: #202124;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 0.45rem 0.75rem;
}

.st-tree-zoom:hover,
.st-tree-zoom:focus {
    border-color: #b76b16;
}

.st-tile-actions {
    background: #fff;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    width: 180px;
}

.st-tile-close-form,
.st-tile-inline-form {
    margin: 0;
}

.st-tile-link {
    background: transparent;
    border: 0;
    color: #991b1b;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
}

.st-tile-editor-open {
    color: #b76b16;
    text-align: left;
}

.st-tile-link[type="submit"] {
    text-align: left;
}

.st-tile-inline-form .st-tile-link,
.st-tile-invite summary {
    color: #b76b16;
}

.st-tile-link-muted {
    color: #667085;
}

.st-tile-invite {
    display: grid;
    gap: 0.45rem;
}

.st-tile-invite summary {
    cursor: pointer;
    font-weight: 800;
    text-decoration: underline;
}

.st-tile-invite-form {
    background: #f7f6f1;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    gap: 0.5rem;
    max-width: none;
    padding: 0.6rem;
}

.st-tile-invite-form input,
.st-tile-invite-form select {
    min-height: 36px;
    padding: 0.45rem 0.55rem;
}

.st-tile-invite-form .st-button {
    min-height: 36px;
    width: 100%;
}

.st-editor-page {
    background: #f7f8f5;
    box-sizing: border-box;
    color: #202124;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.st-editor-page-header {
    margin: 0 auto 1.25rem;
    max-width: 1220px;
}

.st-editor-page-header h1 {
    letter-spacing: 0;
    margin: 0.15rem 0 0.9rem;
}

.st-editor-parent {
    align-items: center;
    background: #fff;
    border: 1px solid #f3dec1;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    padding: 0.75rem 0.9rem;
}

.st-editor-parent span {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.st-editor-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    margin: 0 auto;
    max-width: 1220px;
}

.st-editor-layout-split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) minmax(300px, 380px);
    max-width: 1600px;
}

.st-editor-main,
.st-editor-aside {
    background: #fff;
    border: 1px solid #f3dec1;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 1rem;
}

.st-editor-main {
    min-width: 0;
}

.st-editor-aside {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    position: sticky;
    top: 1rem;
}

.st-editor-aside h2 {
    letter-spacing: 0;
    margin-top: 0;
}

.st-editor-credit-price {
    background: rgba(255, 243, 203, 0.86);
    border: 1px solid rgba(255, 174, 48, 0.48);
    border-radius: 8px;
    color: var(--st-ink);
    display: grid;
    gap: 0.25rem;
    margin: 0.65rem 0 0.85rem;
    padding: 0.75rem 0.85rem;
}

.st-editor-credit-price strong {
    color: var(--st-blue);
    font-size: 1rem;
    line-height: 1.25;
}

.st-editor-credit-price small {
    color: #6f6a60;
    font-size: 0.84rem;
    line-height: 1.35;
}

.st-editor-aside .st-author-tools {
    border-top: 0;
    margin-top: 0.75rem;
    padding-top: 0;
}

.st-editor-aside .st-author-tools > h2 {
    display: none;
}

.st-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.st-wizard-dialog {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(16, 24, 40, 0.32);
    max-height: min(92vh, 920px);
    max-width: min(860px, 92vw);
    padding: 0;
    width: 820px;
}

.st-wizard-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.st-wizard-window {
    background: #fff;
    box-sizing: border-box;
    padding: 1.25rem;
}

.st-editor-header h2 {
    letter-spacing: 0;
    margin: 0 0 1rem;
}

.st-editor-form {
    max-width: none;
}

.st-editor-form textarea,
.st-editor-highlights {
    font-family: var(--st-story-font-family, "Source Serif 4", Georgia, "Times New Roman", serif);
    font-size: var(--st-story-font-size, 1.22rem);
    font-kerning: none;
    font-variant-ligatures: none;
    line-height: var(--st-story-line-height, 1.9);
    overflow-wrap: break-word;
    tab-size: 4;
    white-space: pre-wrap;
    word-break: normal;
}

.st-editor-text-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.st-editor-autocomplete-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: space-between;
    margin: -0.1rem 0 0.7rem;
}

.st-editor-autocomplete-toggle {
    align-items: center;
    background: rgba(255, 243, 203, 0.72);
    border: 1px solid rgba(201, 130, 43, 0.32);
    border-radius: 999px;
    color: var(--st-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.45rem;
    line-height: 1.2;
    padding: 0.42rem 0.72rem;
}

.st-editor-autocomplete-toggle input {
    accent-color: var(--st-accent);
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.st-editor-text-wrap {
    position: relative;
}

.st-editor-text-wrap textarea {
    box-sizing: border-box;
    min-height: 520px;
    position: relative;
    resize: vertical;
    width: 100%;
    z-index: 2;
}

.st-editor-autocomplete-box {
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(201, 130, 43, 0.36);
    border-radius: 10px;
    bottom: 1rem;
    box-shadow: 0 18px 46px rgba(18, 35, 54, 0.18);
    display: grid;
    gap: 0.2rem;
    left: 1rem;
    max-height: 260px;
    max-width: min(520px, calc(100% - 2rem));
    overflow: auto;
    padding: 0.35rem;
    position: absolute;
    width: 100%;
    z-index: 8;
}

.st-editor-autocomplete-box[hidden] {
    display: none;
}

.st-editor-autocomplete-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--st-ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    text-align: left;
}

.st-editor-autocomplete-option strong {
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-editor-autocomplete-option span {
    color: var(--st-muted);
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
}

.st-editor-autocomplete-option:hover,
.st-editor-autocomplete-option.is-active {
    background: rgba(201, 130, 43, 0.14);
}

.st-editor-highlights {
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    bottom: 0;
    box-sizing: border-box;
    color: transparent;
    left: 0;
    min-height: 520px;
    overflow: hidden;
    padding: 0.65rem 0.75rem;
    pointer-events: none;
    position: absolute;
    right: var(--st-editor-scrollbar-width, 0px);
    top: 0;
    z-index: 1;
}

.st-editor-highlights-inner {
    min-height: 100%;
    will-change: transform;
}

.st-editor-highlights mark {
    background: rgba(255, 214, 102, 0.72);
    border-radius: 3px;
    color: transparent;
    padding: 0;
}

.st-editor-marking-ready textarea {
    background: transparent !important;
    caret-color: #202124;
    color: #202124 !important;
    -webkit-text-fill-color: #202124 !important;
    text-decoration-color: currentColor;
    text-shadow: none;
}

.st-character-assist {
    border-bottom: 1px solid #f3dec1;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.st-character-assist h3 {
    letter-spacing: 0;
    margin: 0 0 0.4rem;
}

.st-character-assist-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.st-character-assist-item {
    background: #f7f8f5;
    border: 1px solid #f3dec1;
    border-radius: 8px;
    padding: 0.7rem;
}

.st-character-assist-item summary {
    cursor: pointer;
    display: grid;
    gap: 0.22rem;
    list-style: none;
}

.st-character-assist-item summary::-webkit-details-marker {
    display: none;
}

.st-character-assist-item strong,
.st-character-assist-item span,
.st-character-assist-item small,
.st-character-assist-item em {
    display: block;
}

.st-character-assist-item em {
    color: #667085;
    font-size: 0.85rem;
    font-style: normal;
}

.st-world-assist {
    margin-top: 1rem;
}

.st-world-assist-item {
    background: #fffaf0;
}

.st-world-mentioned {
    background: #fff5d8;
    border-color: var(--st-logo-gold, #ffc857);
}

.st-world-assist-item-continent.st-world-mentioned {
    background: rgba(154, 118, 202, 0.28);
    border-color: rgba(154, 118, 202, 0.72);
}

.st-world-assist-item-country.st-world-mentioned {
    background: rgba(89, 166, 111, 0.28);
    border-color: rgba(89, 166, 111, 0.72);
}

.st-world-assist-item-region.st-world-mentioned {
    background: rgba(222, 151, 70, 0.3);
    border-color: rgba(222, 151, 70, 0.74);
}

.st-world-assist-item-city.st-world-mentioned {
    background: rgba(66, 150, 190, 0.34);
    border-color: rgba(66, 150, 190, 0.74);
}

.st-world-assist-item-district.st-world-mentioned {
    background: rgba(111, 187, 213, 0.3);
    border-color: rgba(111, 187, 213, 0.74);
}

.st-world-assist-item-place.st-world-mentioned {
    background: rgba(196, 151, 86, 0.28);
    border-color: rgba(196, 151, 86, 0.74);
}

.st-world-assist-details {
    border-top: 1px solid rgba(201, 130, 43, 0.22);
    display: grid;
    gap: 0.25rem;
    margin: 0.65rem 0 0;
    padding-top: 0.6rem;
}

.st-world-assist-details dt {
    color: #6f6a60;
    font-size: 0.78rem;
    font-weight: 700;
}

.st-world-assist-details dd {
    font-size: 0.9rem;
    line-height: 1.42;
    margin: 0 0 0.35rem;
}

.st-world-assist-maps {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.st-world-assist-maps .st-world-map-card {
    min-height: 0;
}

.st-world-assist-maps .st-world-map-card img {
    aspect-ratio: 16 / 9;
    max-height: 110px;
    object-fit: cover;
}

.st-inline-button {
    background: transparent;
    border: 0;
    color: #b76b16;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0.45rem 0 0;
    padding: 0;
    text-align: left;
}

.st-character-sheet-dialog {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 28px 90px rgba(16, 24, 40, 0.28);
    max-height: min(90vh, 940px);
    max-width: min(1180px, 94vw);
    padding: 0;
    width: 1120px;
}

.st-character-sheet-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.st-character-sheet-window {
    background: #fff;
    box-sizing: border-box;
    max-height: min(90vh, 940px);
    overflow-y: auto;
    padding: 1.5rem;
}

.st-character-sheet-section {
    background: #fff;
    border: 1px solid #f3dec1;
    border-radius: 8px;
    margin: 0.7rem 0;
    overflow: hidden;
}

.st-character-sheet-section > summary {
    align-items: center;
    background: #f6f8f7;
    cursor: pointer;
    color: #111827;
    display: flex;
    font-size: 0.98rem;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    padding: 0.85rem 1rem;
}

.st-character-sheet-section > summary::-webkit-details-marker {
    display: none;
}

.st-character-sheet-section > summary::after {
    color: #667085;
    content: "+";
    font-size: 1.2rem;
    line-height: 1;
}

.st-character-sheet-section[open] > summary::after {
    content: "−";
}

.st-character-sheet-fields {
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 1rem;
}

.st-character-sheet-fields label {
    color: #253041;
    display: grid;
    font-size: 0.88rem;
    font-weight: 750;
    gap: 0.38rem;
    line-height: 1.25;
    min-width: 0;
}

.st-character-sheet-fields textarea,
.st-character-sheet-fields input,
.st-character-sheet-fields select {
    box-sizing: border-box;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    min-height: 42px;
    width: 100%;
}

.st-character-sheet-fields textarea {
    min-height: 74px;
    resize: vertical;
}

.st-character-sheet-fields label small {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
}

.st-character-sheet-fields select[multiple] {
    min-height: 118px;
}

.st-world-city-editor {
    display: grid;
    gap: 0.85rem;
    grid-column: 1 / -1;
}

.st-world-city-editor-header {
    display: grid;
    gap: 0.2rem;
}

.st-world-city-editor-header strong {
    color: #253041;
    font-size: 0.95rem;
    font-weight: 800;
}

.st-world-city-editor-header span {
    color: #667085;
    font-size: 0.8rem;
    font-weight: 650;
}

.st-world-entry-picker {
    color: #253041;
    display: grid;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 0.35rem;
}

.st-world-city-row {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0.85rem;
}

.st-world-city-row[hidden] {
    display: none;
}

.st-world-city-row label {
    margin: 0;
}

.st-world-map-uploader {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.85rem;
    grid-column: 1 / -1;
    padding: 0.9rem;
}

.st-world-entry-map-uploader {
    background: #f8f6ef;
    border: 1px dashed #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    grid-column: 1 / -1;
    padding: 0.8rem;
}

.st-world-map-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.st-world-map-card {
    background: #ffffff;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    color: #253041;
    display: grid;
    gap: 0.45rem;
    overflow: hidden;
    text-decoration: none;
}

.st-world-map-card a {
    color: inherit;
    display: grid;
    gap: 0.45rem;
    text-decoration: none;
}

.st-world-map-card img,
.st-world-orientation-maps img {
    aspect-ratio: 16 / 10;
    background: #f4efe6;
    display: block;
    object-fit: cover;
    width: 100%;
}

.st-world-map-card span {
    color: #253041;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    padding: 0 0.65rem 0.6rem;
}

.st-world-map-remove,
.st-world-map-file {
    color: #667085;
    display: grid;
    font-size: 0.82rem;
    font-weight: 750;
    gap: 0.35rem;
}

.st-world-map-remove {
    align-items: center;
    display: flex;
    padding: 0 0.65rem 0.65rem;
}

.st-world-map-remove input {
    min-height: auto;
    width: auto;
}

.st-world-map-locked {
    color: #667085;
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.3;
    padding: 0 0.65rem 0.65rem;
}

.st-world-entry-map-display {
    margin-top: 0.45rem;
}

.st-world-city-description {
    grid-column: 1 / -1;
}

.st-world-city-list {
    display: grid;
    gap: 0.65rem;
}

.st-world-city-item {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
}

.st-world-city-item strong {
    color: #202124;
    font-size: 0.98rem;
}

.st-world-city-item span,
.st-world-city-item p {
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.4;
    margin: 0;
}

.st-field-locked textarea {
    background: #f4f6f8;
    color: #667085;
}

.st-field-locked small {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
}

.st-sheet-details,
.st-sheet-editor {
    border: 1px solid #f3dec1;
    border-radius: 8px;
    margin-top: 0.75rem;
    padding: 0.7rem;
}

.st-sheet-details > summary {
    cursor: pointer;
    font-weight: 800;
}

.st-sheet-editor {
    display: grid;
    gap: 0.5rem;
}

.st-character-sheet-form {
    margin-top: 0.7rem;
    max-width: none;
}

.st-character-sheet-form .st-button {
    margin-top: 0.4rem;
}

.st-character-sheet-view {
    border-top: 1px solid #f3dec1;
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.st-character-sheet-view-section h4 {
    color: #111827;
    font-size: 0.92rem;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
}

.st-character-sheet-view dl {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.st-character-sheet-view dt {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
}

.st-character-sheet-view dd {
    color: #202124;
    font-size: 0.9rem;
    margin: 0;
}

.st-character-card-tabs {
    border-top: 1px solid #f3dec1;
    display: grid;
    gap: 0.75rem;
    margin-top: 0.7rem;
    padding-top: 0.75rem;
}

.st-character-card-tablist {
    align-items: center;
    background: #f7f6f1;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.25rem;
}

.st-character-card-tablist button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #667085;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.55rem 0.45rem;
}

.st-character-card-tablist button.is-active {
    background: #fffefa;
    box-shadow: 0 6px 16px rgba(54, 45, 34, 0.08);
    color: var(--st-primary, #b76b16);
}

.st-character-card-panel[hidden] {
    display: none;
}

.st-character-card-panel .st-character-sheet-view {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.st-character-change-list {
    display: grid;
    gap: 0.65rem;
}

.st-character-change-item {
    background: #ffffff;
    border: 1px solid #e4ded2;
    border-radius: 8px;
    display: grid;
    gap: 0.35rem;
    padding: 0.72rem;
}

.st-character-change-item strong {
    color: #111827;
    font-size: 0.88rem;
    line-height: 1.25;
}

.st-character-change-item span {
    color: #202124;
    font-size: 0.9rem;
    line-height: 1.35;
}

.st-character-change-item small {
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.35;
}

.st-status-source-panel {
    background: #fff;
    border: 1px solid #f3dec1;
    border-radius: 8px;
    box-sizing: border-box;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.st-status-source-panel[hidden] {
    display: none;
}

.st-status-source-panel h2 {
    letter-spacing: 0;
    margin: 0 0 0.5rem;
}

.st-status-source-close {
    align-items: center;
    background: #f1f3f5;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    color: #202124;
    cursor: pointer;
    display: inline-flex;
    float: right;
    font-size: 1.2rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.st-status-source-text {
    color: #202124;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
    margin: 1rem 0;
    white-space: pre-wrap;
}

.st-character-mentioned,
.st-world-mentioned {
    background: #fff8dd;
    border-color: #e5bd38;
}

.st-character-dead-mentioned {
    background: #fff1f1;
    border-color: #dc2626;
}

.st-wizard-progress {
    background: #eef2f6;
    border-radius: 999px;
    height: 9px;
    margin: 0.75rem 0 1.25rem;
    overflow: hidden;
}

.st-wizard-progress span {
    background: #b76b16;
    display: block;
    height: 100%;
    transition: width 0.18s ease;
}

.st-wizard-step h3 {
    letter-spacing: 0;
    margin-top: 0;
}

.st-wizard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.st-wizard-actions [hidden] {
    display: none !important;
}

.st-story-start-guide {
    align-items: center;
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(54, 45, 34, 0.06);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 1.25rem;
    padding: 1rem;
}

.st-story-start-guide h2 {
    letter-spacing: 0;
    margin: 0 0 0.35rem;
}

.st-story-start-guide p {
    margin: 0 0 0.55rem;
}

.st-story-start-guide ul {
    color: #667085;
    margin: 0;
    padding-left: 1.1rem;
}

.st-story-start-guide li + li {
    margin-top: 0.25rem;
}

.st-editor-guide {
    background: linear-gradient(135deg, rgba(255, 243, 203, 0.96), rgba(255, 255, 250, 0.98));
    border: 1px solid rgba(211, 137, 31, 0.28);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(48, 39, 29, 0.08);
    margin: 0 0 1.25rem;
    overflow: hidden;
}

.st-editor-guide > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 1.05rem 1.15rem;
    position: relative;
}

.st-editor-guide > summary::-webkit-details-marker {
    display: none;
}

.st-editor-guide > summary::after {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(211, 137, 31, 0.32);
    border-radius: 999px;
    color: #bf6b12;
    content: "+";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.2rem;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.st-editor-guide[open] > summary::after {
    content: "-";
}

.st-editor-guide-collapsed:not([open]) {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.st-editor-guide-collapsed:not([open]) > summary {
    background: #fff7df;
    border: 1px solid rgba(211, 137, 31, 0.34);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(48, 39, 29, 0.08);
    display: inline-flex;
    gap: 0.7rem;
    justify-content: flex-start;
    padding: 0.65rem 0.8rem 0.65rem 1rem;
}

.st-editor-guide-collapsed:not([open]) summary small {
    margin-bottom: 0;
}

.st-editor-guide-collapsed:not([open]) summary strong {
    font-size: 1rem;
}

.st-editor-guide-collapsed:not([open]) summary em {
    font-size: 0.9rem;
}

.st-editor-guide summary small {
    color: #bf6b12;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.st-editor-guide summary strong {
    color: #102f4d;
    display: block;
    font-size: 1.18rem;
    line-height: 1.25;
}

.st-editor-guide summary em {
    color: #6f756e;
    font-style: normal;
    margin-left: auto;
}

.st-editor-guide-content {
    border-top: 1px solid rgba(211, 137, 31, 0.18);
    padding: 0 1.15rem 1.15rem;
}

.st-editor-guide-content > p {
    color: #4f5661;
    line-height: 1.62;
    margin: 1rem 0;
    max-width: 88rem;
}

.st-editor-guide-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-editor-guide-grid section {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 212, 200, 0.86);
    border-radius: 8px;
    padding: 0.95rem;
}

.st-editor-guide-grid h3 {
    color: #123a5f;
    font-size: 1rem;
    letter-spacing: 0;
    margin: 0 0 0.55rem;
}

.st-editor-guide-grid ul,
.st-editor-guide-grid ol {
    color: #59616a;
    line-height: 1.55;
    margin: 0;
    padding-left: 1.15rem;
}

.st-editor-guide-grid li + li {
    margin-top: 0.35rem;
}

.st-editor-guide-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.st-editor-guide-form label {
    align-items: center;
    color: #4f5661;
    display: inline-flex;
    gap: 0.45rem;
    margin: 0;
    width: auto;
}

@media (max-width: 760px) {
    .st-editor-guide > summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }

    .st-editor-guide > summary::after {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .st-editor-guide summary em {
        margin-left: 0;
        padding-right: 2.6rem;
    }

    .st-editor-guide-grid {
        grid-template-columns: 1fr;
    }

    .st-editor-guide-form {
        align-items: stretch;
        flex-direction: column;
    }

    .st-editor-guide-form .st-button {
        width: 100%;
    }
}

.st-editor-close-form {
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    z-index: 2;
}

.st-editor-close,
.st-author-sidebar-close {
    align-items: center;
    background: #f1f3f5;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    color: #202124;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.st-author-sidebar {
    background: rgba(15, 23, 42, 0.35);
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.18s ease;
    width: 100%;
    z-index: 80;
}

.st-author-sidebar-open {
    opacity: 1;
    pointer-events: auto;
}

.st-author-sidebar-panel {
    background: #fff;
    box-shadow: -18px 0 50px rgba(16, 24, 40, 0.22);
    box-sizing: border-box;
    height: 100%;
    margin-left: auto;
    max-width: min(520px, 92vw);
    overflow-y: auto;
    padding: 1.25rem;
    position: relative;
    transform: translateX(100%);
    transition: transform 0.18s ease;
}

.st-author-sidebar-open .st-author-sidebar-panel {
    transform: translateX(0);
}

.st-author-sidebar-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.st-author-sidebar .st-author-tools {
    border-top: 0;
    margin-top: 1rem;
    padding-top: 0;
}

.st-author-tool-view[hidden] {
    display: none;
}

.st-author-tool-buttons,
.st-author-character-list,
.st-world-dialog-grid {
    display: grid;
    gap: 0.75rem;
}

.st-author-tool-button,
.st-author-character-card {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    color: var(--st-ink, #202124);
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    text-align: left;
    width: 100%;
}

.st-author-tool-button:hover,
.st-author-tool-button:focus,
.st-author-character-card:hover,
.st-author-character-card:focus {
    border-color: var(--st-primary, #b76b16);
    box-shadow: 0 10px 22px rgba(54, 45, 34, 0.08);
    outline: none;
}

.st-author-tool-button strong,
.st-author-character-card strong {
    font-size: 1rem;
    line-height: 1.25;
}

.st-author-tool-button span,
.st-author-character-card small,
.st-author-world-summary span {
    color: var(--st-muted, #667085);
    font-size: 0.86rem;
    line-height: 1.35;
}

.st-author-world-summary,
.st-author-character-detail,
.st-world-card {
    background: #fffefa;
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
}

.st-author-world-summary {
    margin-top: 0.85rem;
}

.st-author-world-summary-button {
    color: var(--st-ink, #202124);
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

.st-author-world-summary-button:hover,
.st-author-world-summary-button:focus {
    border-color: var(--st-primary, #b76b16);
    box-shadow: 0 10px 22px rgba(54, 45, 34, 0.08);
    outline: none;
}

.st-author-back {
    background: transparent;
    border: 0;
    color: var(--st-primary, #b76b16);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    margin: 0 0 0.75rem;
    padding: 0;
    text-align: left;
}

.st-author-tool-view h3,
.st-author-character-detail h3,
.st-world-card h3 {
    letter-spacing: 0;
    margin: 0;
}

.st-author-character-card .st-status,
.st-author-character-detail .st-status {
    justify-self: start;
}

.st-character-location {
    color: var(--st-muted, #667085);
}

.st-character-status-controls {
    background: rgba(255, 243, 203, 0.38);
    border: 1px solid #f3dec1;
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.75rem;
}

.st-author-status-form {
    border-top: 1px solid #e6e0d6;
    margin-top: 0.3rem;
    max-width: none;
    padding-top: 0.75rem;
}

.st-field-label-with-help {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.st-help-dot {
    align-items: center;
    background: #fff7df;
    border: 1px solid #e1a546;
    border-radius: 999px;
    color: #8b4f08;
    cursor: help;
    display: inline-flex;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    height: 1.4rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: relative;
    width: 1.4rem;
}

.st-help-dot::after {
    background: #172b42;
    border-radius: 8px;
    bottom: calc(100% + 0.55rem);
    box-shadow: 0 14px 28px rgba(14, 24, 36, 0.18);
    color: #fff7df;
    content: attr(data-st-tooltip);
    font-size: 0.78rem;
    font-weight: 600;
    left: 50%;
    line-height: 1.35;
    max-width: min(260px, 78vw);
    opacity: 0;
    padding: 0.65rem 0.75rem;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translate(-50%, 0.25rem);
    transition: opacity 0.15s ease, transform 0.15s ease;
    visibility: hidden;
    width: max-content;
    z-index: 20;
}

.st-help-dot:hover::after,
.st-help-dot:focus::after {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.st-world-dialog-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 1rem 0;
}

.st-next-chapters {
    border-top: 1px solid #d8d4c8;
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.st-next-chapters h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0;
}

.st-waiting-notice {
    background: rgba(255, 242, 214, 0.82);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    color: var(--st-ink);
    margin: 0.85rem 0;
    padding: 0.85rem 1rem;
}

.st-next-card {
    border: 1px solid #d8d4c8;
    border-radius: 8px;
    color: #171717;
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0;
    padding: 0.9rem 1rem;
    text-decoration: none;
}

.st-next-card:hover,
.st-next-card:focus,
.st-next-card:focus-within {
    border-color: #b76b16;
}

.st-next-author-card {
    background: #fff6e3;
    border-color: #e8bd73;
}

.st-next-author-card:hover,
.st-next-author-card:focus {
    border-color: #b76b16;
}

.st-next-title {
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.st-next-title:hover,
.st-next-title:focus {
    color: #b76b16;
}

.st-next-rating {
    color: #667085;
    font-size: 0.92rem;
}

.st-button-secondary {
    background: #475467;
}

.st-button-secondary:hover,
.st-button-secondary:focus {
    background: #344054;
}

.st-inline-form {
    margin-top: 0.75rem;
}

.st-author-tools details,
.st-branch-action {
    border: 1px solid #dde2e7;
    border-radius: 8px;
    margin: 0.75rem 0;
    padding: 0.75rem;
}

.st-author-tools summary,
.st-branch-action summary {
    cursor: pointer;
    font-weight: 700;
}

.st-branch-tree,
.st-branch-level {
    margin: 0;
    padding: 0;
}

.st-branch-level {
    list-style: none;
}

.st-branch-node {
    margin: 1rem 0;
}

.st-branch-node .st-branch-level {
    border-left: 3px solid #d0d7de;
    margin-left: 1rem;
    padding-left: 1rem;
}

.st-branch-footer {
    align-items: center;
    border-top: 1px solid #eef1f4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.st-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
}

.st-status-alive {
    background: #fff2d6;
    color: #8f4f0e;
}

.st-status-dead {
    background: #feecec;
    color: #991b1b;
}

.st-status-special {
    background: #fff7dc;
    color: #854d0e;
}

.st-status-closed {
    background: #eef2f6;
    color: #344054;
}

.st-author-award-badge {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    min-width: 0;
    vertical-align: middle;
}

.st-author-award-icon {
    align-items: center;
    background: #fff3cb;
    border: 1px solid rgba(255, 186, 73, 0.78);
    border-radius: 999px;
    color: #8a4b06;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 2.1rem;
    font-weight: 800;
    height: 100px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    vertical-align: middle;
    width: 100px;
}

.st-author-award-icon img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.st-author-award-badge .st-author-award-icon {
    height: 100px;
    width: 100px;
}

.st-author-award-badge span {
    min-width: 0;
}

.st-author-award-dashboard-badge {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.st-author-award-dashboard-badge .st-author-award-icon {
    height: 100px;
    width: 100px;
}

.st-author-award-icon-muted {
    background: #f4f4f1;
    border-color: #c9c7c0;
    color: #1f2933;
    filter: grayscale(1);
}

.st-award-progress-dialog {
    background: #fffaf1;
    border: 0;
    box-sizing: border-box;
    color: #1f2933;
    height: 100dvh;
    margin: 0;
    max-height: none;
    max-width: none;
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 2rem);
    width: 100vw;
}

.st-award-progress-dialog::backdrop {
    background: rgba(13, 24, 36, 0.72);
}

.st-award-progress-window {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 1100px;
    min-height: 100%;
}

.st-award-progress-header {
    align-items: flex-start;
    background: transparent;
    border: 0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0;
}

.st-award-progress-header h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.12;
    margin: 0;
}

.st-award-progress-hero,
.st-award-progress-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.st-award-progress-hero > div,
.st-award-progress-section,
.st-award-progress-item {
    background: #fffefa;
    border: 1px solid #ded4c4;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(53, 39, 22, 0.08);
    padding: 1rem;
}

.st-award-progress-hero > div {
    display: grid;
    gap: 0.45rem;
}

.st-award-progress-hero strong {
    color: #1f2933;
    font-size: 1.1rem;
    line-height: 1.25;
}

.st-award-next-preview {
    align-items: center;
    display: inline-flex;
    gap: 0.85rem;
}

.st-award-next-preview > span {
    display: grid;
    gap: 0.2rem;
}

.st-award-next-preview small {
    color: #746f66;
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
}

.st-award-progress-hero small {
    color: #746f66;
    font-weight: 700;
}

.st-award-progress-section h3 {
    font-size: 1.18rem;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.st-award-progress-item h4 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0.55rem 0 0.35rem;
}

.st-award-progress-item p:last-child,
.st-award-progress-section p:last-child {
    margin-bottom: 0;
}

.st-award-progress-item.is-complete {
    border-color: #b9ddb1;
}

.st-award-progress-item.is-missing {
    border-color: #f2cf87;
}

.st-award-progress-stats {
    margin: 0;
}

.st-notice,
.st-paywall,
.st-empty {
    border-radius: 8px;
    margin: 1rem 0;
    padding: 0.9rem 1rem;
}

.st-notice-success {
    background: #fff2d6;
    color: #8f4f0e;
}

.st-notice-error,
.st-paywall {
    background: #fff1f1;
    color: #991b1b;
}

.st-empty {
    background: #f6f8fa;
    border: 1px solid #dde2e7;
    color: #344054;
}

.st-empty p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .st-author-award-icon,
    .st-author-award-badge .st-author-award-icon,
    .st-author-award-dashboard-badge .st-author-award-icon {
        font-size: 1.6rem;
        height: 80px;
        width: 80px;
    }

    .st-award-next-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .st-book-page {
        padding: 5rem 1rem 4rem;
    }

    .st-reader-tools {
        right: 0.65rem;
        top: 0.65rem;
    }

    .st-rating-popover {
        right: 0;
        top: 48px;
    }

    .st-reader-hero {
        padding: 1rem;
    }

    .st-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .st-story-start-guide {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .st-progress-node {
        min-width: 150px;
    }

    .st-progress-card {
        width: 150px;
    }

    .st-editor-layout {
        grid-template-columns: 1fr;
    }

    .st-editor-layout-split {
        grid-template-columns: 1fr;
    }

    .st-editor-aside {
        max-height: none;
        position: static;
    }

    .st-status-source-panel {
        max-height: none;
        position: static;
    }

    .st-character-sheet-dialog {
        max-height: 94vh;
        max-width: 96vw;
        width: 96vw;
    }

    .st-character-sheet-window {
        max-height: 94vh;
        padding: 1rem;
    }

    .st-character-sheet-fields {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .st-world-city-row {
        grid-template-columns: 1fr;
    }

    .st-progress-node > .st-progress-level::before,
    .st-progress-node > .st-progress-level > .st-progress-node::before {
        left: 75px;
    }

    .st-progress-node > .st-progress-level > .st-progress-node.st-progress-first-child::after {
        left: 75px;
    }

    .st-progress-node > .st-progress-level > .st-progress-node.st-progress-last-child::after {
        right: calc(100% - 75px);
    }

    .st-branch-node .st-branch-level {
        margin-left: 0.35rem;
        padding-left: 0.75rem;
    }

    .st-card,
    .st-branch {
        padding: 0.85rem;
    }
}

/* Geschichtenkünstler.de Theme Layer */
:root {
    --st-bg: #f4f1ea;
    --st-surface: #fffdf8;
    --st-surface-strong: #ffffff;
    --st-ink: #24211c;
    --st-muted: #6f7169;
    --st-border: #ded7cb;
    --st-primary: #b76b16;
    --st-primary-hover: #8f4f0e;
    --st-accent: #c9822b;
    --st-danger: #b42318;
    --st-success: #9a5a12;
    --st-line: #b6aca0;
    --st-shadow: 0 18px 45px rgba(54, 45, 34, 0.1);
}

.st-platform,
.st-story {
    color: var(--st-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.st-platform {
    background: var(--st-bg);
    min-height: 100vh;
}

.st-virtual-shell {
    max-width: 1220px;
    padding: clamp(1rem, 2.4vw, 2rem) 1rem 4rem;
}

.st-virtual-shell-editor {
    max-width: none;
    padding: 0;
}

.st-virtual-shell-map {
    max-width: min(1560px, 100%);
}

.st-virtual-shell:not(.st-virtual-shell-reader) {
    background: var(--st-bg);
}

.st-reader-hero,
.st-landing-page,
.st-map-header,
.st-auth-card,
.st-auth-status,
.st-card,
.st-branch,
.st-editor-main,
.st-editor-aside,
.st-editor-parent,
.st-wizard-window,
.st-rating-popover,
.st-tile-actions {
    background: var(--st-surface);
    border-color: var(--st-border);
    box-shadow: var(--st-shadow);
}

.st-reader-hero {
    display: grid;
    gap: 0.4rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.st-reader-hero h1,
.st-landing-copy h1,
.st-map-header h1,
.st-editor-page-header h1,
.st-story-header h1 {
    color: var(--st-ink);
    font-weight: 800;
}

.st-kicker,
.st-back-link {
    color: var(--st-primary);
}

.st-meta,
.st-next-rating,
.st-progress-card small,
.st-character-assist-item em {
    color: var(--st-muted);
}

.st-button,
.st-tree-zoom[data-st-author-tools-open] {
    background: var(--st-primary);
    border: 1px solid var(--st-primary);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(183, 107, 22, 0.18);
    color: #fff;
}

.st-button:hover,
.st-button:focus,
.st-tree-zoom[data-st-author-tools-open]:hover,
.st-tree-zoom[data-st-author-tools-open]:focus {
    background: var(--st-primary-hover);
    border-color: var(--st-primary-hover);
    color: #fff;
}

.st-button-secondary,
.st-tree-zoom {
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: none;
    color: var(--st-ink);
}

.st-button-secondary:hover,
.st-button-secondary:focus,
.st-tree-zoom:hover,
.st-tree-zoom:focus {
    background: #f8f4ec;
    border-color: var(--st-primary);
    color: var(--st-ink);
}

.st-form input,
.st-form textarea,
.st-form select,
.st-sort-form select {
    background: #fffefa;
    border-color: var(--st-border);
    border-radius: 8px;
    color: var(--st-ink);
}

.st-form input:focus,
.st-form textarea:focus,
.st-form select:focus,
.st-sort-form select:focus {
    border-color: var(--st-primary);
    box-shadow: 0 0 0 3px rgba(183, 107, 22, 0.14);
    outline: none;
}

.st-story-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.st-story-card {
    min-height: 220px;
}

.st-story-card h3 a {
    color: var(--st-ink);
    text-decoration: none;
}

.st-story-card h3 a:hover,
.st-story-card h3 a:focus {
    color: var(--st-primary);
}

.st-book-reader {
    background: #fbf6ea;
    color: #201b15;
}

.st-book-page {
    max-width: 800px;
    padding: 9vh 1.5rem 11vh;
}

.st-book-page h1,
.st-book-text,
.st-next-chapters h2,
.st-next-title {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.st-book-page h1 {
    color: #201b15;
    font-weight: 650;
}

.st-book-text {
    color: #2f2921;
}

.st-reader-icon {
    background: rgba(36, 33, 28, 0.34);
    backdrop-filter: blur(14px);
}

.st-reader-icon:hover,
.st-reader-icon:focus {
    background: rgba(183, 107, 22, 0.78);
}

.st-next-card {
    background: rgba(255, 253, 248, 0.78);
    border-color: var(--st-border);
}

.st-next-card:hover,
.st-next-card:focus,
.st-next-card:focus-within {
    border-color: var(--st-primary);
    box-shadow: 0 10px 26px rgba(54, 45, 34, 0.1);
}

.st-next-author-card {
    background: #fff7e7;
    border-color: #e2ad5b;
}

.st-progress-tree {
    background: #fbf8f1;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
}

.st-progress-node > .st-progress-level::before,
.st-progress-node > .st-progress-level > .st-progress-node::before,
.st-progress-node > .st-progress-level > .st-progress-node::after {
    background: var(--st-line);
}

.st-progress-card {
    background: var(--st-surface-strong);
    border-color: var(--st-border);
    box-shadow: 0 8px 18px rgba(54, 45, 34, 0.08);
}

.st-story-map {
    width: 100%;
}

.st-map-header {
    align-items: start;
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.75rem;
}

.st-map-header .st-action-row {
    align-items: center;
}

.st-tree-toolbar {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(54, 45, 34, 0.06);
    margin-left: auto;
    padding: 0.45rem;
    width: fit-content;
}

.st-progress-tree {
    background: #fffdf8;
    min-height: min(68vh, 760px);
}

.st-progress-card {
    border-radius: 8px;
    font-size: 0.94rem;
}

.st-tree-branch-toggle {
    background: var(--st-surface);
    border-color: var(--st-border);
    color: var(--st-primary);
}

.st-tree-branch-toggle:hover,
.st-tree-branch-toggle:focus {
    background: var(--st-primary);
    border-color: var(--st-primary);
    color: #fff;
}

.st-progress-card > span:not(.st-progress-ratings),
.st-progress-title-link > span {
    font-size: 0.98rem;
}

.st-progress-ratings small {
    font-size: 0.68rem;
}

.st-progress-read > .st-progress-card,
.st-progress-read > .st-progress-card-wrap > .st-progress-card {
    background: #fff4dc;
    border-color: #e2ad5b;
}

.st-progress-available > .st-progress-card,
.st-progress-available > .st-progress-card-wrap > .st-progress-card {
    background: #f2f1ee;
    color: var(--st-muted);
}

.st-progress-current > .st-progress-card,
.st-progress-current > .st-progress-card-wrap > .st-progress-card {
    border-color: var(--st-primary);
    box-shadow: 0 0 0 3px rgba(183, 107, 22, 0.18), 0 12px 28px rgba(54, 45, 34, 0.12);
}

.st-progress-own > .st-progress-card,
.st-progress-own > .st-progress-card-wrap > .st-progress-card {
    border-color: var(--st-accent);
}

.st-tile-link {
    color: var(--st-danger);
}

.st-tile-inline-form .st-tile-link,
.st-tile-invite summary {
    color: var(--st-primary);
}

.st-tile-link-muted {
    color: var(--st-muted);
}

.st-tile-editor-open {
    color: var(--st-primary);
}

.st-editor-page {
    background: var(--st-bg);
    color: var(--st-ink);
    padding: clamp(1rem, 2vw, 2rem);
}

.st-editor-page-header,
.st-editor-layout {
    max-width: none;
    width: 100%;
}

.st-editor-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.st-editor-layout-split {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(320px, 420px);
    max-width: none;
}

.st-editor-text-wrap textarea,
.st-editor-highlights {
    background: #fffefa;
    border-radius: 8px;
}

.st-editor-marking-ready textarea {
    background: transparent !important;
    caret-color: var(--st-ink);
    color: var(--st-ink) !important;
    -webkit-text-fill-color: var(--st-ink) !important;
    text-decoration-color: currentColor;
    text-shadow: none;
}

.st-editor-highlights mark {
    background: rgba(201, 130, 43, 0.28);
}

.st-character-mentioned,
.st-world-mentioned {
    background: #fff8e5;
    border-color: var(--st-accent);
}

.st-character-dead-mentioned {
    background: #fff1ef;
    border-color: var(--st-danger);
}

.st-status-alive,
.st-notice-success {
    background: #fff4dc;
    color: var(--st-success);
}

.st-status-dead,
.st-notice-error,
.st-paywall {
    background: #fff1ef;
    color: var(--st-danger);
}

.st-status-special {
    background: #fff8e5;
    color: #8b5a12;
}

.st-status-closed,
.st-empty {
    background: #f2f1ee;
    color: var(--st-muted);
}

.st-plugin-footer {
    align-items: center;
    border-top: 1px solid var(--st-border);
    color: var(--st-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 3rem;
    padding: 1.25rem 1rem 0;
}

.st-plugin-footer a {
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.st-plugin-footer a:hover,
.st-plugin-footer a:focus {
    color: var(--st-primary);
}

.st-legal-page {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(54, 45, 34, 0.06);
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.st-legal-content {
    color: var(--st-text);
    display: grid;
    gap: 0.65rem;
    line-height: 1.75;
}

.st-legal-content p {
    margin: 0;
}

.st-legal-excerpt {
    background: #f7f4ed;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    color: var(--st-muted);
    margin: 1rem 0;
    padding: 1rem;
}

@media (max-width: 640px) {
    .st-virtual-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .st-story-list {
        grid-template-columns: 1fr;
    }

    .st-landing-page {
        grid-template-columns: 1fr;
    }

    .st-progress-tree {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
}

/* Mobile Author Backend */
@media (max-width: 900px) {
    .st-plugin-header {
        align-items: stretch;
        display: grid;
        gap: 0.7rem;
        position: static;
    }

    .st-plugin-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        -webkit-overflow-scrolling: touch;
    }

    .st-plugin-nav a,
    .st-plugin-user {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
    }

    .st-account-hero,
    .st-author-page-hero {
        align-items: stretch;
        display: grid;
    }

    .st-author-start-card,
    .st-dashboard-heading {
        align-items: stretch;
        display: grid;
    }

    .st-dashboard-grid,
    .st-slot-tool-grid {
        grid-template-columns: 1fr;
    }

    .st-author-avatar-large {
        height: 118px;
        width: 118px;
    }

    .st-story-map {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .st-tree-toolbar {
        background: rgba(244, 241, 234, 0.96);
        border: 1px solid var(--st-border);
        border-radius: 8px;
        box-shadow: var(--st-shadow);
        display: grid;
        gap: 0.45rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0.45rem;
        position: sticky;
        top: 0.5rem;
        z-index: 12;
    }

    .st-tree-toolbar .st-tree-zoom {
        min-height: 44px;
        padding: 0.55rem 0.65rem;
        width: 100%;
    }

    .st-tree-toolbar [data-st-author-overview-toggle] {
        grid-column: 1 / -1;
    }

    .st-author-overview-hub {
        gap: 0.8rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding: 0.75rem;
    }

    .st-author-hub-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.3rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .st-author-hub-nav button {
        flex: 0 0 auto;
        min-height: 44px;
        white-space: nowrap;
    }

    .st-author-hub-heading {
        align-items: stretch;
        display: grid;
        gap: 0.35rem;
    }

    .st-author-hub-character-grid,
    .st-author-hub-world-list {
        grid-template-columns: 1fr;
    }

    .st-author-character-card,
    .st-author-tool-button,
    .st-author-world-summary-button {
        min-height: 64px;
        padding: 0.8rem;
    }

    .st-world-card {
        padding: 0.75rem;
    }

    .st-world-orientation {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding: 0.75rem;
    }

    .st-world-orientation-scroll {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .st-world-orientation-tree {
        gap: 0.9rem;
    }

    .st-world-orientation-tree ul {
        gap: 0.65rem;
        padding-top: 1rem;
    }

    .st-world-node {
        font-size: 0.78rem;
        max-width: 180px;
        min-height: 38px;
        padding: 0.45rem 0.55rem;
    }

    .st-world-orientation-detail dl {
        grid-template-columns: 1fr;
    }

    .st-world-orientation-detail dt {
        margin-top: 0.25rem;
    }

    .st-editor-page {
        padding: 0.75rem;
    }

    .st-editor-page-header {
        margin-bottom: 0.75rem;
    }

    .st-editor-page-header h1 {
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.1;
    }

    .st-editor-parent {
        align-items: stretch;
        display: grid;
        padding: 0.7rem;
    }

    .st-editor-layout,
    .st-editor-layout-split {
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }

    .st-editor-main,
    .st-editor-aside {
        border-radius: 8px;
        padding: 0.75rem;
    }

    .st-editor-aside {
        max-height: none;
        overflow: visible;
        position: static;
    }

    .st-editor-aside h2 {
        font-size: 1.25rem;
    }

    .st-editor-form textarea,
    .st-editor-highlights {
        font-size: 1rem;
        line-height: 1.62;
    }

    .st-editor-text-wrap textarea,
    .st-editor-highlights {
        min-height: 430px;
    }

    .st-editor-actions {
        background: rgba(255, 253, 248, 0.96);
        border-top: 1px solid var(--st-border);
        bottom: 0;
        display: grid;
        gap: 0.5rem;
        grid-template-columns: 1fr;
        margin: 1rem -0.75rem -0.75rem;
        padding: 0.75rem;
        position: sticky;
        z-index: 10;
    }

    .st-editor-actions .st-button {
        min-height: 46px;
        width: 100%;
    }

    .st-character-assist {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .st-character-assist-item {
        padding: 0.65rem;
    }

    .st-author-tool-buttons,
    .st-author-character-list,
    .st-world-dialog-grid {
        grid-template-columns: 1fr;
    }

    .st-author-status-form {
        display: grid;
        gap: 0.6rem;
    }

    .st-author-status-form .st-button,
    .st-author-back {
        min-height: 44px;
    }

    .st-character-sheet-dialog,
    .st-wizard-dialog {
        border-radius: 0;
        height: 100dvh;
        max-height: 100dvh;
        max-width: 100vw;
        width: 100vw;
    }

    .st-character-sheet-window,
    .st-wizard-window {
        min-height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        padding: 1rem 0.85rem 4.5rem;
    }

    .st-editor-close-form {
        position: fixed;
        right: 0.75rem;
        top: 0.75rem;
    }

    .st-character-sheet-fields {
        gap: 0.75rem;
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .st-character-sheet-fields textarea,
    .st-character-sheet-fields input,
    .st-character-sheet-fields select,
    .st-world-entry-picker select {
        font-size: 1rem;
        min-height: 46px;
    }

    .st-character-sheet-section > summary {
        min-height: 48px;
        padding: 0.8rem;
    }

    .st-world-city-row {
        gap: 0.75rem;
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .st-character-card-tablist {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .st-character-card-tablist button {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
    }

    .st-character-sheet-view dl {
        gap: 0.45rem;
    }

    .st-family-tree-card {
        overflow-x: auto;
        padding: 0.75rem;
    }

    .st-author-sidebar {
        align-items: flex-end;
        display: flex;
    }

    .st-author-sidebar-panel {
        border-radius: 16px 16px 0 0;
        height: auto;
        max-height: 88dvh;
        max-width: none;
        padding: 1rem 0.85rem 2rem;
        transform: translateY(100%);
        width: 100%;
    }

    .st-author-sidebar-open .st-author-sidebar-panel {
        transform: translateY(0);
    }

    .st-status-source-panel {
        border-radius: 8px;
        max-height: none;
        position: static;
    }
}

@media (max-width: 480px) {
    .st-tree-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .st-tree-toolbar .st-tree-zoom {
        font-size: 0.9rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .st-author-overview-hub,
    .st-editor-main,
    .st-editor-aside,
    .st-character-sheet-window,
    .st-wizard-window {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .st-editor-text-wrap textarea,
    .st-editor-highlights {
        min-height: 360px;
    }

    .st-world-node {
        max-width: 150px;
    }

    .st-world-orientation-detail h4 {
        font-size: 1rem;
    }

    .st-wizard-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .st-wizard-actions .st-button {
        min-height: 46px;
        width: 100%;
    }
}

/* Luftigere Typografie */
.st-platform,
.st-story {
    color: #2b251f;
    font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.68;
}

.st-platform p,
.st-platform li,
.st-platform dd,
.st-story p,
.st-story li,
.st-story dd {
    line-height: 1.7;
}

.st-platform h1,
.st-platform h2,
.st-platform h3,
.st-platform h4,
.st-story h1,
.st-story h2,
.st-story h3,
.st-story h4 {
    color: #2a251f;
    font-weight: 600;
    line-height: 1.2;
}

.st-plugin-brand {
    font-size: 1.02rem;
    font-weight: 650;
}

.st-plugin-brand-mark {
    font-weight: 650;
}

.st-plugin-nav a,
.st-plugin-user,
.st-button,
.st-tree-zoom,
.st-link-button,
.st-back-link,
.st-inline-button,
.st-author-back,
.st-author-hub-nav button,
.st-character-card-tablist button,
.st-tile-link,
.st-tile-invite summary {
    font-weight: 600;
}

.st-reader-hero h1,
.st-map-header h1,
.st-editor-page-header h1,
.st-story-header h1,
.st-account-hero h1,
.st-author-page-hero h1 {
    font-size: 2.15rem;
    font-weight: 560;
    line-height: 1.18;
}

.st-landing-copy h1 {
    font-size: 3rem;
    font-weight: 560;
    line-height: 1.12;
    max-width: 980px;
}

.st-auth-card h2,
.st-account-card h2,
.st-author-start-card h2,
.st-dashboard-heading h2,
.st-editor-aside h2,
.st-editor-header h2,
.st-story-start-guide h2,
.st-next-chapters h2 {
    font-size: 1.28rem;
    font-weight: 560;
    line-height: 1.25;
}

.st-card h3,
.st-branch h3,
.st-dashboard-item h3,
.st-author-hub-detail h3,
.st-author-tool-view h3,
.st-author-character-detail h3,
.st-world-card h3,
.st-world-orientation h3,
.st-family-tree-card h3,
.st-character-assist h3,
.st-wizard-step h3 {
    font-size: 1.05rem;
    font-weight: 560;
    line-height: 1.28;
}

.st-kicker {
    color: #9a6723;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
}

.st-meta,
.st-next-rating,
.st-author-headline,
.st-author-tool-button span,
.st-author-character-card small,
.st-author-world-summary span,
.st-dashboard-stats span,
.st-world-city-item span,
.st-world-city-item p {
    color: #746f66;
}

.st-card,
.st-branch,
.st-auth-card,
.st-auth-status,
.st-account-card,
.st-author-start-card,
.st-slot-tools,
.st-dashboard-section,
.st-author-overview-hub,
.st-editor-main,
.st-editor-aside,
.st-author-tool-button,
.st-author-character-card,
.st-author-world-summary,
.st-author-character-detail,
.st-world-card {
    padding: 1.1rem;
}

.st-story-list,
.st-character-grid,
.st-auth-grid,
.st-account-grid,
.st-dashboard-grid,
.st-author-hub-character-grid,
.st-author-hub-world-list,
.st-author-tool-buttons,
.st-author-character-list,
.st-world-dialog-grid {
    gap: 1.1rem;
}

.st-form label,
.st-character-sheet-fields label,
.st-world-entry-picker,
.st-editor-text-label {
    font-weight: 560;
    line-height: 1.35;
}

.st-form input,
.st-form textarea,
.st-form select,
.st-character-sheet-fields textarea,
.st-character-sheet-fields input,
.st-character-sheet-fields select,
.st-world-entry-picker select,
.st-sort-form select {
    font-weight: 400;
    line-height: 1.45;
}

.st-character-sheet-section > summary,
.st-sheet-details > summary,
.st-author-tools summary,
.st-branch-action summary {
    font-weight: 560;
}

.st-character-sheet-view dt,
.st-world-orientation-detail dt,
.st-author-stats dt,
.st-world-map-card span,
.st-world-orientation-maps span,
.st-world-city-editor-header strong,
.st-world-city-editor-header span,
.st-world-map-remove,
.st-world-map-file,
.st-world-map-locked,
.st-field-locked small,
.st-character-sheet-fields label small {
    font-weight: 560;
}

.st-author-stats dd,
.st-dashboard-stats strong {
    font-weight: 620;
}

.st-progress-card {
    color: #2d2922;
    font-size: 0.9rem;
    line-height: 1.28;
}

.st-progress-card > span:not(.st-progress-ratings),
.st-progress-title-link > span {
    font-size: 0.94rem;
    font-weight: 560;
    line-height: 1.28;
}

.st-progress-card small {
    font-size: 0.76rem;
    line-height: 1.32;
}

.st-progress-ratings small {
    font-size: 0.68rem;
    line-height: 1.2;
}

.st-world-node,
.st-family-node span,
.st-family-node strong,
.st-status {
    font-weight: 560;
}

.st-tile-actions {
    gap: 0.55rem;
    padding: 0.7rem;
}

.st-tile-link,
.st-tile-invite summary {
    font-size: 0.95rem;
    line-height: 1.25;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.st-book-page h1,
.st-book-text,
.st-next-chapters h2,
.st-next-title,
.st-editor-form textarea,
.st-editor-highlights,
.st-status-source-text {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.st-book-page h1 {
    font-size: 2.65rem;
    font-weight: 500;
    line-height: 1.18;
}

.st-book-text {
    font-size: 1.22rem;
    font-weight: 400;
    line-height: 1.9;
}

.st-next-title {
    font-size: 1.08rem;
    font-weight: 560;
}

.st-editor-form textarea,
.st-editor-highlights {
    font-size: 1.03rem;
    line-height: 1.78;
}

.st-section {
    margin-top: 2.35rem;
    padding-top: 1.75rem;
}

.st-author-suggest-form {
    position: relative;
}

.st-author-suggestions {
    background: #fffdf8;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(54, 45, 34, 0.12);
    display: grid;
    gap: 0.25rem;
    margin-top: -0.55rem;
    padding: 0.35rem;
    position: relative;
    z-index: 5;
}

.st-author-suggestions[hidden] {
    display: none;
}

.st-author-suggestion {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--st-ink);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.1rem;
    padding: 0.6rem 0.7rem;
    text-align: left;
}

.st-author-suggestion:hover,
.st-author-suggestion:focus {
    background: #fff4dc;
    outline: none;
}

.st-author-suggestion strong {
    font-weight: 560;
}

.st-author-suggestion span {
    color: var(--st-muted);
    font-size: 0.86rem;
}

.st-dashboard-pending-friends {
    margin: 0.75rem 0;
}

.st-status-muted {
    background: #f4efe5;
    color: #746f66;
}

.st-danger-link {
    color: #b3261e;
}

.st-danger-link:hover,
.st-danger-link:focus {
    color: #7c1c16;
}

.st-story-filter-form {
    background: #fffdf8;
    border: 1px solid #ded4c4;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(54, 45, 34, 0.08);
    margin: 1rem 0 1.35rem;
    padding: 1rem;
}

.st-bookshelf-group-form {
    max-width: 520px;
}

.st-story-filter-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.st-story-filter-form label {
    color: var(--st-ink);
    display: grid;
    font-weight: 560;
    gap: 0.35rem;
    line-height: 1.35;
}

.st-story-filter-form input,
.st-story-filter-form select {
    background: #fff;
    border: 1px solid #ded4c4;
    border-radius: 8px;
    color: var(--st-ink);
    font: inherit;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
}

.st-story-filter-check {
    align-content: end;
    display: flex !important;
    gap: 0.45rem !important;
    min-height: 44px;
}

.st-story-filter-check input {
    min-height: 0;
    width: auto;
}

.st-story-result-count {
    margin: 0 0 1rem;
}

.st-bookshelf-toggle-form {
    margin: 0;
}

.st-bookshelf-toggle-compact {
    margin: 0;
}

.st-bookshelf-toggle {
    align-items: center;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid #ded4c4;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(54, 45, 34, 0.12);
    color: #b76b16;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    height: 2.15rem;
    justify-content: center;
    line-height: 1;
    width: 2.15rem;
}

.st-bookshelf-toggle:hover,
.st-bookshelf-toggle:focus {
    background: #fff4dc;
    border-color: #c27416;
    outline: none;
}

#st-story-list .st-story-list {
    align-items: end;
    display: grid;
    gap: 2.6rem 2.25rem;
    grid-template-columns: repeat(auto-fill, minmax(196px, 212px));
    justify-content: center;
}

.st-bookshelf-page .st-story-list {
    align-items: end;
    display: grid;
    gap: 2.6rem 2.25rem;
    grid-template-columns: repeat(auto-fill, minmax(196px, 212px));
    justify-content: center;
}

.st-bookshelf-group {
    border-top: 1px solid #ded4c4;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
}

.st-bookshelf-group .st-dashboard-heading {
    margin-bottom: 1rem;
}

.st-story-shelf-card {
    aspect-ratio: 3 / 4.35;
    background:
        linear-gradient(90deg, rgba(183, 107, 22, 0.16), transparent 18%),
        linear-gradient(145deg, #fffdf8 0%, #fff8ea 100%);
    border-color: #ded4c4;
    box-sizing: border-box;
    box-shadow: 0 18px 34px rgba(54, 45, 34, 0.1);
    cursor: pointer;
    gap: 0;
    justify-content: space-between;
    min-height: 250px;
    padding: 1rem 0.95rem;
    position: relative;
    text-align: var(--st-cover-text-align, left);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.st-story-shelf-card::before {
    background: rgba(183, 107, 22, 0.42);
    border-radius: 8px 0 0 8px;
    bottom: 0.6rem;
    content: "";
    left: 0.45rem;
    position: absolute;
    top: 0.6rem;
    width: 4px;
}

.st-story-shelf-card:hover,
.st-story-shelf-card:focus {
    border-color: #c27416;
    box-shadow: 0 24px 42px rgba(54, 45, 34, 0.15);
    outline: none;
    transform: translateY(-3px);
}

.st-story-shelf-card h3 {
    color: var(--st-ink);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.18;
    margin: 0.35rem 0 0;
    overflow-wrap: anywhere;
}

.st-story-shelf-card .st-meta {
    font-size: 0.83rem;
    line-height: 1.3;
}

.st-story-book-genre,
.st-story-book-stats,
.st-story-book-rating {
    color: #746f66;
    display: block;
    font-size: 0.82rem;
    line-height: 1.25;
}

.st-story-book-genre {
    color: #9a6723;
    font-weight: 650;
}

.st-story-book-stats,
.st-story-book-rating {
    margin: 0;
}

.st-story-dialog {
    background: #fffdf8;
    border: 1px solid #ded4c4;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(54, 45, 34, 0.24);
    color: var(--st-ink);
    max-width: min(680px, calc(100vw - 2rem));
    padding: 1.2rem;
    width: 100%;
}

.st-story-dialog::backdrop {
    background: rgba(32, 33, 36, 0.42);
}

.st-story-dialog h3 {
    font-size: 1.55rem;
    font-weight: 560;
    line-height: 1.18;
    margin: 0;
}

.st-story-dialog-description {
    border-top: 1px solid #e2d8c9;
    margin-top: 1rem;
    padding-top: 1rem;
}

.st-story-dialog-description p {
    margin: 0 0 0.85rem;
}

.st-story-dialog-actions {
    justify-content: flex-start;
}

@media (max-width: 760px) {
    #st-story-list .st-story-list {
        gap: 2rem 1.2rem;
        grid-template-columns: repeat(2, minmax(138px, 1fr));
        justify-content: stretch;
    }

    .st-bookshelf-page .st-story-list {
        gap: 2rem 1.2rem;
        grid-template-columns: repeat(2, minmax(138px, 1fr));
        justify-content: stretch;
    }

    .st-story-shelf-frame {
        max-width: 184px;
    }

    .st-story-shelf-frame-has-badges {
        padding-top: 1.45rem;
    }

    .st-story-shelf-card {
        min-height: 220px;
        padding: 0.9rem 0.8rem;
    }

    .st-story-shelf-card h3 {
        font-size: 1rem;
    }

    .st-story-dialog {
        max-height: calc(100vh - 2rem);
        overflow: auto;
    }

    .st-reader-hero h1,
    .st-map-header h1,
    .st-editor-page-header h1,
    .st-story-header h1,
    .st-account-hero h1,
    .st-author-page-hero h1 {
        font-size: 1.85rem;
    }

    .st-landing-copy h1 {
        font-size: 2.15rem;
    }

    .st-book-page h1 {
        font-size: 2rem;
    }

    .st-book-text {
        font-size: 1.08rem;
        line-height: 1.82;
    }

    .st-clean-reading-prompt {
        grid-template-columns: 1fr;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .st-clean-reading-prompt .st-action-row {
        justify-content: stretch;
    }

    .st-clean-reading-prompt .st-action-row form,
    .st-clean-reading-prompt .st-action-row .st-button {
        width: 100%;
    }
}

.st-paywall.st-credit-paywall {
    background: #fffaf0;
    border-color: #e0d6c7;
    color: #2d2924;
}

/* Einheitliche Typografie und stabile Formularfelder */
:root {
    --st-font-sans: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --st-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --st-text-size: 1rem;
    --st-meta-size: 0.9rem;
    --st-h1-size: 2rem;
    --st-h2-size: 1.32rem;
    --st-h3-size: 1.08rem;
    --st-field-height: 46px;
}

.st-platform,
.st-story,
.st-story-dialog,
.st-character-sheet-dialog,
.st-world-dialog,
.st-wizard-dialog {
    color: #2b251f;
    font-family: var(--st-font-sans);
    font-size: var(--st-text-size);
    font-weight: 400;
    line-height: 1.65;
}

.st-platform p,
.st-platform li,
.st-platform dd,
.st-story p,
.st-story li,
.st-story dd,
.st-story-dialog p,
.st-character-sheet-dialog p,
.st-world-dialog p,
.st-wizard-dialog p {
    font-size: var(--st-text-size);
    line-height: 1.65;
}

.st-platform h1,
.st-story h1,
.st-reader-hero h1,
.st-landing-copy h1,
.st-map-header h1,
.st-editor-page-header h1,
.st-story-header h1,
.st-account-hero h1,
.st-author-page-hero h1,
.st-book-page h1 {
    color: #2a251f;
    font-family: var(--st-font-sans);
    font-size: var(--st-h1-size);
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1.2;
}

.st-platform h2,
.st-story h2,
.st-auth-card h2,
.st-account-card h2,
.st-author-start-card h2,
.st-dashboard-heading h2,
.st-editor-aside h2,
.st-editor-header h2,
.st-story-start-guide h2,
.st-next-chapters h2,
.st-story-dialog h2 {
    color: #2a251f;
    font-family: var(--st-font-sans);
    font-size: var(--st-h2-size);
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1.25;
}

.st-platform h3,
.st-platform h4,
.st-story h3,
.st-story h4,
.st-card h3,
.st-branch h3,
.st-dashboard-item h3,
.st-author-hub-detail h3,
.st-author-tool-view h3,
.st-author-character-detail h3,
.st-world-card h3,
.st-world-orientation h3,
.st-family-tree-card h3,
.st-character-assist h3,
.st-wizard-step h3,
.st-story-shelf-card h3,
.st-story-dialog h3 {
    color: #2a251f;
    font-family: var(--st-font-sans);
    font-size: var(--st-h3-size);
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1.3;
}

.st-book-text,
.st-editor-form textarea,
.st-editor-highlights,
.st-status-source-text {
    font-family: var(--st-font-sans);
    font-size: var(--st-text-size);
    line-height: 1.72;
}

.st-meta,
.st-kicker,
.st-next-rating,
.st-author-headline,
.st-author-tool-button span,
.st-author-character-card small,
.st-author-world-summary span,
.st-dashboard-stats span,
.st-world-city-item span,
.st-world-city-item p,
.st-story-book-genre,
.st-story-book-stats,
.st-story-book-rating {
    font-size: var(--st-meta-size);
    line-height: 1.35;
}

.st-button,
.st-plugin-nav a,
.st-account-subnav a,
.st-dashboard-subnav a,
.st-link-button,
.st-inline-button,
.st-back-link,
.st-author-back,
.st-tree-zoom,
.st-tile-link,
.st-tile-invite summary {
    font-family: var(--st-font-sans);
    font-size: var(--st-text-size);
    line-height: 1.25;
}

.st-form label,
.st-story-filter-form label,
.st-character-sheet-fields label,
.st-world-dialog-grid label,
.st-world-entry-picker,
.st-editor-text-label {
    font-size: var(--st-meta-size);
    font-weight: 560;
    line-height: 1.35;
    min-width: 0;
}

.st-form input,
.st-form textarea,
.st-form select,
.st-story-filter-form input,
.st-story-filter-form select,
.st-character-sheet-fields textarea,
.st-character-sheet-fields input,
.st-character-sheet-fields select,
.st-world-dialog-grid input,
.st-world-dialog-grid textarea,
.st-world-dialog-grid select,
.st-world-entry-picker select,
.st-sort-form select,
.st-tile-invite-form input,
.st-tile-invite-form select,
.st-report-popover input,
.st-report-popover textarea,
.st-report-popover select,
.st-rating-popover select {
    box-sizing: border-box;
    display: block;
    font-family: var(--st-font-sans);
    font-size: var(--st-text-size);
    font-weight: 400;
    line-height: 1.4;
    max-width: 100%;
    min-height: var(--st-field-height);
    overflow-wrap: anywhere;
    padding: 0.62rem 0.75rem;
    width: 100%;
}

.st-form textarea,
.st-character-sheet-fields textarea,
.st-world-dialog-grid textarea,
.st-report-popover textarea {
    min-height: 96px;
    resize: vertical;
}

.st-character-sheet-fields select[multiple],
.st-world-dialog-grid select[multiple] {
    min-height: 150px;
}

.st-story-filter-grid {
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.st-character-sheet-fields,
.st-world-dialog-grid {
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
}

.st-story-filter-check {
    align-items: center;
}

.st-story-filter-check input,
.st-form input[type="checkbox"],
.st-form input[type="radio"] {
    display: inline-block;
    min-height: 0;
    width: auto;
}

.st-story-shelf-card h3 {
    margin-top: 0.35rem;
}

.st-story-filter-panel {
    background: #fffdf8;
    border: 1px solid #ded4c4;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(54, 45, 34, 0.08);
    margin: 1rem 0 1.35rem;
    overflow: hidden;
}

.st-story-filter-panel > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    list-style: none;
    padding: 0.9rem 1rem;
}

.st-story-filter-panel > summary::-webkit-details-marker {
    display: none;
}

.st-story-filter-panel > summary::after {
    align-items: center;
    background: #fff8ea;
    border: 1px solid #ded4c4;
    border-radius: 999px;
    color: #b76b16;
    content: "+";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.1rem;
    font-weight: 560;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    width: 2rem;
}

.st-story-filter-panel[open] > summary {
    border-bottom: 1px solid #eadfce;
}

.st-story-filter-panel[open] > summary::after {
    content: "−";
}

.st-story-filter-panel > summary span {
    color: #2a251f;
    font-size: var(--st-h3-size);
    font-weight: 560;
    line-height: 1.2;
}

.st-story-filter-panel > summary small {
    color: #746f66;
    font-size: var(--st-meta-size);
    font-weight: 400;
    margin-left: auto;
}

.st-story-filter-panel .st-story-filter-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 1rem;
}

.st-story-shelf-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.st-story-shelf-frame {
    align-self: end;
    box-sizing: border-box;
    display: grid;
    justify-self: center;
    max-width: 212px;
    min-width: 0;
    position: relative;
    width: 100%;
}

.st-story-shelf-frame-has-badges {
    padding-top: 1.65rem;
}

.st-story-shelf-badges {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 8;
}

.st-story-shelf-badges .st-bookshelf-toggle-form {
    pointer-events: auto;
}

.st-story-shelf-badges .st-bookshelf-toggle-compact {
    position: static;
    right: auto;
    top: auto;
}

.st-story-shelf-badges .st-story-age-symbol,
.st-story-shelf-badges .st-bookshelf-toggle {
    box-shadow: 0 8px 18px rgba(54, 45, 34, 0.12);
}

.st-story-shelf-frame .st-story-shelf-card {
    height: auto;
}

.st-story-cover-text-stack {
    display: flex;
    flex-direction: column;
    gap: var(--st-cover-text-gap, 0.55rem);
    height: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    transform: translate(var(--st-cover-text-offset-x, 0%), var(--st-cover-text-offset-y, 0%));
    width: 100%;
}

.st-story-shelf-card h3,
.st-story-shelf-card .st-meta,
.st-story-book-genre,
.st-story-book-stats,
.st-story-book-rating {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.st-story-shelf-card h3,
.st-story-shelf-card .st-meta,
.st-story-book-genre {
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.st-story-shelf-card h3 {
    -webkit-line-clamp: 3;
}

.st-story-shelf-card .st-meta {
    -webkit-line-clamp: 2;
}

.st-story-cover-text-stack > .st-meta {
    position: relative;
    top: var(--st-cover-meta-offset-y, 0%);
}

.st-story-book-genre {
    -webkit-line-clamp: 2;
}

.st-story-book-stats,
.st-story-book-rating {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-story-cover-text-stack > .st-story-book-stats {
    position: relative;
    top: var(--st-cover-stats-offset-y, 0%);
}

.st-story-cover-text-stack > .st-story-book-rating {
    position: relative;
    top: var(--st-cover-rating-offset-y, 0%);
}

.st-story-age-badge {
    align-items: center;
    align-self: var(--st-cover-badge-align, flex-start);
    background: rgba(255, 243, 203, 0.92);
    border: 1px solid rgba(255, 186, 73, 0.72);
    border-radius: 999px;
    box-sizing: border-box;
    color: #8a4b06;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    padding: 0.38rem 0.62rem;
    width: fit-content;
}

.st-story-age-symbol {
    height: 2.7rem;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    padding: 0;
    width: 2.7rem;
}

.st-story-age-badge-restricted {
    background: rgba(255, 232, 215, 0.96);
    border-color: rgba(244, 111, 47, 0.68);
    color: #9a3a0a;
}

.st-story-age-gate {
    margin: 3rem auto;
    max-width: 760px;
}

.st-story-shelf-card .st-meta a {
    color: inherit;
}

.st-story-shelf-card-has-cover {
    background:
        linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(255, 248, 234, 0.78));
    color: var(--st-cover-text-color, #fff8ea);
    justify-content: flex-start;
}

.st-story-shelf-card-has-cover::after {
    background-image: var(--st-cover-image);
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    opacity: var(--st-cover-opacity, 0.72);
    position: absolute;
    z-index: 0;
}

.st-story-shelf-card-has-cover::before {
    background: rgba(255, 248, 234, 0.48);
    z-index: 1;
}

.st-story-shelf-card-has-cover > * {
    position: relative;
    z-index: 2;
}

.st-story-shelf-card-has-cover .st-meta,
.st-story-shelf-card-has-cover .st-meta a,
.st-story-shelf-card-has-cover .st-story-book-genre,
.st-story-shelf-card-has-cover .st-story-age-badge,
.st-story-shelf-card-has-cover .st-story-book-stats,
.st-story-shelf-card-has-cover .st-story-book-rating {
    color: var(--st-cover-text-color, #fff8ea);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.st-story-shelf-card-has-cover .st-story-age-badge {
    background: rgba(255, 243, 203, 0.82);
    color: #8a4b06;
    text-shadow: none;
}

.st-story-shelf-card-has-cover h3 {
    color: var(--st-cover-title-color, var(--st-cover-text-color, #fff8ea)) !important;
    margin-top: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.st-story-cover-settings {
    display: grid;
    align-items: start;
    column-gap: 2rem;
    gap: 1rem 2rem;
    grid-template-columns: minmax(240px, 340px) minmax(320px, 1fr);
}

.st-story-cover-settings > h3,
.st-story-cover-settings > .st-meta {
    grid-column: 1 / -1;
}

.st-story-cover-form {
    display: contents;
}

.st-story-cover-live {
    display: grid;
    gap: 0.75rem;
    grid-column: 1;
}

.st-story-cover-live h4 {
    font-size: var(--st-h3-size);
    font-weight: 560;
    line-height: 1.25;
    margin: 0;
}

.st-story-cover-live-frame {
    max-width: 188px;
    width: 100%;
}

.st-standard-cover-picker {
    border: 1px solid var(--st-border);
    border-radius: 12px;
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
}

.st-cover-format-controls {
    border: 1px solid var(--st-border);
    border-radius: 12px;
    display: grid;
    gap: 0.85rem;
    grid-column: 2;
    margin: 0;
    padding: 1rem;
}

.st-story-cover-form > label,
.st-story-cover-form > .st-standard-cover-picker,
.st-story-cover-form > .st-check,
.st-story-cover-form > .st-button {
    grid-column: 1 / -1;
}

.st-cover-format-controls legend {
    color: var(--st-ink);
    font-size: var(--st-body-size);
    font-weight: 620;
    padding: 0 0.35rem;
}

@media (max-width: 720px) {
    .st-story-cover-settings {
        grid-template-columns: 1fr;
    }

    .st-story-cover-live,
    .st-cover-format-controls,
    .st-story-cover-form > label,
    .st-story-cover-form > .st-standard-cover-picker,
    .st-story-cover-form > .st-check,
    .st-story-cover-form > .st-button {
        grid-column: 1;
    }
}

.st-standard-cover-picker legend {
    color: var(--st-ink);
    font-size: var(--st-body-size);
    font-weight: 620;
    padding: 0 0.35rem;
}

.st-standard-cover-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.st-standard-cover-option {
    cursor: pointer;
    display: grid;
    gap: 0.45rem;
    position: relative;
}

.st-standard-cover-option input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.st-standard-cover-option img {
    aspect-ratio: 2 / 3;
    border: 2px solid var(--st-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(48, 35, 24, 0.12);
    display: block;
    object-fit: cover;
    width: 100%;
}

.st-standard-cover-option input:checked + img {
    border-color: var(--st-accent);
    box-shadow: 0 0 0 3px rgba(255, 185, 64, 0.28), 0 16px 34px rgba(48, 35, 24, 0.18);
}

.st-standard-cover-option span {
    color: var(--st-muted);
    font-size: 0.9rem;
    font-weight: 560;
    line-height: 1.25;
    text-align: center;
}

.st-story-cover-form input[type="color"] {
    max-width: 140px;
    padding: 0.25rem;
}

.st-story-cover-form input[type="range"] {
    padding-left: 0;
    padding-right: 0;
}

.st-book-text,
.st-editor-text-wrap,
.st-story-text-preview {
    font-family: var(--st-story-font-family, "Source Serif 4", Georgia, "Times New Roman", serif);
    font-size: var(--st-story-font-size, 1.22rem);
    line-height: var(--st-story-line-height, 1.9);
}

.st-book-text img {
    border-radius: 8px;
    display: block;
    height: auto;
    margin: 1.5rem auto;
    max-width: 100%;
}

.st-chapter-image {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center;
    width: var(--st-chapter-image-width, 100%);
}

.st-chapter-image img {
    box-shadow: 0 18px 45px rgba(76, 52, 24, 0.16);
    margin-bottom: 0.6rem;
    width: 100%;
}

.st-chapter-image figcaption {
    color: var(--st-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.st-book-text::after {
    clear: both;
    content: "";
    display: block;
}

.st-chapter-image-align-left {
    margin-left: 0;
    margin-right: auto;
}

.st-chapter-image-align-center {
    margin-left: auto;
    margin-right: auto;
}

.st-chapter-image-align-right {
    margin-left: auto;
    margin-right: 0;
}

.st-chapter-image-align-full {
    width: 100%;
}

.st-chapter-image-flow-block {
    clear: both;
}

.st-chapter-image-flow-float-left {
    float: left;
    margin: 0.4rem 1.5rem 1rem 0;
    max-width: 52%;
}

.st-chapter-image-flow-float-right {
    float: right;
    margin: 0.4rem 0 1rem 1.5rem;
    max-width: 52%;
}

.st-branch-image-placement-text .st-branch-image-drag-preview.st-chapter-image-flow-float-left {
    float: left;
    margin: 0.4rem 1.5rem 1rem 0;
    max-width: 52%;
}

.st-branch-image-placement-text .st-branch-image-static-preview.st-chapter-image-flow-float-left {
    float: left;
    margin: 0.4rem 1.5rem 1rem 0;
    max-width: 52%;
}

.st-branch-image-placement-text .st-branch-image-drag-preview.st-chapter-image-flow-float-right {
    float: right;
    margin: 0.4rem 0 1rem 1.5rem;
    max-width: 52%;
}

.st-branch-image-placement-text .st-branch-image-static-preview.st-chapter-image-flow-float-right {
    float: right;
    margin: 0.4rem 0 1rem 1.5rem;
    max-width: 52%;
}

.st-branch-image-placement-text .st-branch-image-drag-preview.is-resizing {
    float: none;
}

.st-branch-image-placement-text .st-branch-image-static-preview.st-chapter-image-flow-block {
    clear: both;
}

.st-branch-image-drag-preview.st-chapter-image-flow-float-left,
.st-branch-image-drag-preview.st-chapter-image-flow-float-right {
    float: none;
    margin: 0;
    max-width: 100%;
    width: var(--st-chapter-image-width, 100%);
}

.st-story-text-settings {
    display: grid;
    gap: 1rem;
}

.st-story-text-preview {
    background: #fffefa;
    border: 1px solid #ead9c0;
    border-radius: 8px;
    color: #2f2921;
    padding: 1.25rem;
}

.st-story-text-preview h4 {
    color: var(--st-muted);
    font-family: var(--st-font-sans);
    font-size: var(--st-meta-size);
    font-weight: 650;
    margin: 0 0 0.85rem;
}

.st-story-text-preview p {
    font-family: var(--st-story-font-family, "Source Serif 4", Georgia, "Times New Roman", serif);
    font-size: var(--st-story-font-size, 1.22rem);
    line-height: var(--st-story-line-height, 1.9);
    margin: 0 0 1.05rem;
}

.st-story-text-preview p:last-child {
    margin-bottom: 0;
}

.st-price-preview {
    background: #fff9ef;
    border: 1px solid #ead9c0;
    border-radius: 8px;
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
}

.st-price-preview ul {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.st-price-preview li {
    align-items: center;
    border-top: 1px solid rgba(183, 107, 22, 0.16);
    display: flex;
    justify-content: space-between;
    padding-top: 0.35rem;
}

.st-price-preview li:first-child {
    border-top: 0;
    padding-top: 0;
}

@media (max-width: 760px) {
    :root {
        --st-h1-size: 1.65rem;
        --st-h2-size: 1.2rem;
        --st-h3-size: 1.05rem;
        --st-text-size: 0.98rem;
    }

    .st-story-filter-grid,
    .st-character-sheet-fields,
    .st-world-dialog-grid {
        grid-template-columns: 1fr;
    }

    .st-book-text {
        line-height: var(--st-story-line-height, 1.72);
    }

    .st-branch-image-placement-layout {
        grid-template-columns: 1fr;
    }

    .st-branch-image-drag-preview {
        position: static;
    }

    .st-book-text .st-chapter-image,
    .st-book-text .st-chapter-image-flow-float-left,
    .st-book-text .st-chapter-image-flow-float-right,
    .st-branch-image-placement-text .st-branch-image-drag-preview.st-chapter-image-flow-float-left,
    .st-branch-image-placement-text .st-branch-image-drag-preview.st-chapter-image-flow-float-right,
    .st-branch-image-placement-text .st-branch-image-static-preview.st-chapter-image-flow-float-left,
    .st-branch-image-placement-text .st-branch-image-static-preview.st-chapter-image-flow-float-right {
        clear: both;
        display: block;
        float: none !important;
        margin: 1.5rem auto !important;
        max-width: 100% !important;
        width: min(100%, 420px) !important;
    }

    #st-story-list .st-story-list,
    .st-bookshelf-page .st-story-list {
        gap: 2rem 1.2rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-story-shelf-frame {
        max-width: 184px;
    }

    .st-story-shelf-frame-has-badges {
        padding-top: 1.45rem;
    }

    .st-story-shelf-card {
        gap: 0.42rem;
        min-height: 236px;
        padding: 0.85rem 0.72rem;
    }

    .st-bookshelf-toggle {
        font-size: 1rem;
        height: 1.85rem;
        width: 1.85rem;
    }

    .st-story-shelf-card h3 {
        font-size: 0.98rem;
        line-height: 1.2;
        margin-top: 0.2rem;
    }

    .st-story-shelf-card .st-meta,
    .st-story-book-genre,
    .st-story-book-stats,
    .st-story-book-rating {
        font-size: 0.78rem;
        line-height: 1.28;
    }

    .st-credit-status-bar {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .st-credit-status-link {
        text-align: center;
    }
}

/* Logo-inspiriertes Geschichtenkünstler.de Theme ab v1.0.10 */
:root {
    --st-logo-blue: #0b3d6f;
    --st-logo-blue-deep: #092238;
    --st-logo-blue-soft: #dbeaf2;
    --st-logo-orange: #f05a1a;
    --st-logo-orange-deep: #b93f0f;
    --st-logo-gold: #ffc857;
    --st-logo-gold-soft: #fff3cb;
    --st-logo-leaf: #6b9b32;
    --st-logo-mist: #f4efe4;
    --st-logo-paper: #fffaf0;
    --st-bg: #f2ebdd;
    --st-surface: #fffaf0;
    --st-surface-strong: #fffdf7;
    --st-ink: #1f2830;
    --st-text: #1f2830;
    --st-muted: #68706f;
    --st-border: #d9cdbb;
    --st-primary: #f05a1a;
    --st-primary-hover: #bd4311;
    --st-accent: #ffc857;
    --st-danger: #b42318;
    --st-success: #527b25;
    --st-line: #a8b4b8;
    --st-shadow: 0 18px 46px rgba(28, 35, 38, 0.12);
}

body.st-virtual-platform {
    background:
        linear-gradient(180deg, rgba(9, 34, 56, 0.08), rgba(242, 235, 221, 0) 360px),
        var(--st-bg);
}

.st-platform {
    background:
        linear-gradient(180deg, rgba(9, 34, 56, 0.07), rgba(242, 235, 221, 0) 380px),
        var(--st-bg);
    color: var(--st-ink);
}

.st-plugin-header {
    background: linear-gradient(135deg, rgba(9, 34, 56, 0.97), rgba(12, 58, 99, 0.96) 54%, rgba(62, 34, 18, 0.96));
    border-bottom: 1px solid rgba(255, 200, 87, 0.26);
    box-shadow: 0 14px 36px rgba(9, 34, 56, 0.22);
}

.st-plugin-brand {
    color: #fff7dc;
    gap: 0.75rem;
    max-width: min(48vw, 420px);
}

.st-plugin-brand:hover,
.st-plugin-brand:focus {
    color: #ffffff;
}

.st-plugin-brand-logo {
    background: rgba(255, 243, 203, 0.96);
    border: 1px solid rgba(255, 200, 87, 0.38);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(240, 90, 26, 0.22), 0 0 0 3px rgba(255, 200, 87, 0.08);
    box-sizing: border-box;
    flex: 0 0 auto;
    height: 54px;
    object-fit: contain;
    padding: 0.28rem;
    width: 54px;
}

.st-plugin-brand-text {
    display: grid;
    gap: 0.08rem;
    line-height: 1.05;
}

.st-plugin-brand-name {
    color: #fffaf0;
    font-size: clamp(1rem, 1.9vw, 1.28rem);
    font-weight: 760;
}

.st-plugin-brand-tagline {
    color: rgba(255, 243, 203, 0.78);
    font-size: 0.78rem;
    font-weight: 500;
}

.st-plugin-brand-mark {
    background: var(--st-logo-blue);
    box-shadow: 0 8px 18px rgba(9, 34, 56, 0.18);
}

.st-plugin-nav a,
.st-plugin-user {
    color: rgba(255, 250, 240, 0.86);
    font-weight: 620;
}

.st-plugin-nav a:hover,
.st-plugin-nav a:focus,
.st-plugin-nav a.is-active {
    background: rgba(255, 250, 240, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 200, 87, 0.24);
    color: #ffffff;
}

.st-plugin-nav .st-plugin-nav-strong {
    background: linear-gradient(135deg, var(--st-logo-orange), #ff8a28);
    border: 1px solid rgba(255, 200, 87, 0.35);
    box-shadow: 0 10px 24px rgba(240, 90, 26, 0.26);
    color: #fffaf0;
}

.st-plugin-nav .st-plugin-nav-strong:hover,
.st-plugin-nav .st-plugin-nav-strong:focus {
    background: linear-gradient(135deg, var(--st-logo-orange-deep), var(--st-logo-orange));
    color: #fffaf0;
}

.st-nav-badge {
    background: var(--st-logo-orange);
    box-shadow: 0 0 0 2px rgba(255, 250, 240, 0.16);
}

.st-virtual-shell:not(.st-virtual-shell-reader) {
    background: transparent;
}

.st-landing-page {
    background:
        linear-gradient(135deg, rgba(9, 34, 56, 0.97), rgba(11, 61, 111, 0.92) 42%, rgba(74, 40, 20, 0.92)),
        var(--st-logo-blue-deep);
    border: 1px solid rgba(255, 200, 87, 0.28);
    box-shadow: 0 24px 70px rgba(9, 34, 56, 0.24);
    color: #fffaf0;
    overflow: hidden;
}

.st-landing-copy {
    align-content: start;
}

.st-landing-brand {
    align-items: center;
    display: flex;
    margin-bottom: 0.35rem;
}

.st-landing-brand img {
    aspect-ratio: 1 / 1;
    background: rgba(255, 243, 203, 0.96);
    border: 1px solid rgba(255, 200, 87, 0.48);
    border-radius: 24px;
    box-shadow: 0 24px 68px rgba(240, 90, 26, 0.24), 0 0 90px rgba(255, 200, 87, 0.26), 0 0 0 5px rgba(255, 200, 87, 0.12);
    box-sizing: border-box;
    max-width: min(360px, 72vw);
    object-fit: contain;
    padding: clamp(0.8rem, 3vw, 1.6rem);
    width: 100%;
}

.st-landing-copy h1,
.st-landing-copy p,
.st-landing-copy li,
.st-landing-copy .st-kicker {
    color: #fffaf0;
}

.st-landing-copy .st-kicker {
    color: var(--st-logo-gold);
}

.st-landing-copy p,
.st-landing-copy li {
    opacity: 0.92;
}

.st-landing-panel div {
    background: rgba(255, 250, 240, 0.09);
    border: 1px solid rgba(255, 200, 87, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.12);
}

.st-landing-panel strong {
    color: var(--st-logo-gold);
}

.st-landing-panel span {
    color: rgba(255, 250, 240, 0.82);
}

.st-reader-hero,
.st-map-header,
.st-auth-card,
.st-auth-status,
.st-account-hero,
.st-author-page-hero,
.st-account-card,
.st-author-start-card,
.st-dashboard-section,
.st-author-overview-hub,
.st-card,
.st-branch,
.st-editor-main,
.st-editor-aside,
.st-editor-parent,
.st-wizard-window,
.st-story-filter-panel,
.st-story-dialog,
.st-character-sheet-dialog,
.st-world-dialog,
.st-rating-popover,
.st-tile-actions {
    background: var(--st-surface);
    border-color: var(--st-border);
    box-shadow: var(--st-shadow);
}

.st-reader-hero,
.st-map-header,
.st-account-hero,
.st-author-page-hero {
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(255, 243, 203, 0.54)),
        var(--st-surface);
}

.st-platform h1,
.st-platform h2,
.st-platform h3,
.st-platform h4,
.st-story h1,
.st-story h2,
.st-story h3,
.st-story h4 {
    color: var(--st-ink);
}

.st-landing-page .st-landing-copy h1 {
    color: #fffaf0;
    text-shadow: 0 3px 20px rgba(255, 200, 87, 0.16), 0 2px 10px rgba(0, 0, 0, 0.26);
}

.st-kicker,
.st-back-link,
.st-auth-link,
.st-author-inline-link,
.st-story-card h3 a:hover,
.st-story-card h3 a:focus,
.st-plugin-footer a:hover,
.st-plugin-footer a:focus,
.st-story-shelf-card .st-meta a:hover,
.st-story-shelf-card .st-meta a:focus {
    color: var(--st-logo-orange);
}

.st-meta,
.st-next-rating,
.st-progress-card small,
.st-character-assist-item em,
.st-story-filter-panel > summary small {
    color: var(--st-muted);
}

.st-button,
.st-tree-zoom[data-st-author-tools-open],
.st-credit-status-link {
    background: linear-gradient(135deg, var(--st-logo-orange), #ff8a28);
    border: 1px solid rgba(185, 63, 15, 0.65);
    box-shadow: 0 12px 26px rgba(240, 90, 26, 0.22);
    color: #fffaf0;
}

.st-button:hover,
.st-button:focus,
.st-tree-zoom[data-st-author-tools-open]:hover,
.st-tree-zoom[data-st-author-tools-open]:focus,
.st-credit-status-link:hover,
.st-credit-status-link:focus {
    background: linear-gradient(135deg, var(--st-logo-orange-deep), var(--st-logo-orange));
    border-color: var(--st-logo-orange-deep);
    color: #fffaf0;
}

.st-button-secondary,
.st-tree-zoom,
.st-link-button,
.st-author-back,
.st-account-subnav a,
.st-dashboard-subnav a,
.st-author-hub-nav button,
.st-character-card-tablist button {
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: none;
    color: var(--st-logo-blue-deep);
}

.st-button-secondary:hover,
.st-button-secondary:focus,
.st-tree-zoom:hover,
.st-tree-zoom:focus,
.st-account-subnav a:hover,
.st-account-subnav a:focus,
.st-account-subnav a.is-active,
.st-dashboard-subnav a:hover,
.st-dashboard-subnav a:focus,
.st-dashboard-subnav a.is-active,
.st-author-hub-nav button:hover,
.st-author-hub-nav button:focus,
.st-author-hub-nav button.is-active {
    background: #fff4d9;
    border-color: var(--st-logo-gold);
    color: var(--st-logo-blue-deep);
}

.st-form input,
.st-form textarea,
.st-form select,
.st-sort-form select,
.st-story-filter-form input,
.st-story-filter-form select {
    background: #fffdf7;
    border-color: var(--st-border);
    color: var(--st-ink);
}

.st-form input:focus,
.st-form textarea:focus,
.st-form select:focus,
.st-sort-form select:focus,
.st-story-filter-form input:focus,
.st-story-filter-form select:focus {
    border-color: var(--st-logo-orange);
    box-shadow: 0 0 0 3px rgba(240, 90, 26, 0.15);
    outline: none;
}

.st-story-filter-panel > summary::after {
    background: var(--st-logo-gold-soft);
    border-color: rgba(240, 90, 26, 0.24);
    color: var(--st-logo-orange);
}

.st-story-shelf-card:not(.st-story-shelf-card-has-cover) {
    background:
        linear-gradient(90deg, rgba(255, 200, 87, 0.58) 0 6px, transparent 6px),
        linear-gradient(145deg, #fffaf0, #f7e9d0);
    border-color: #d7b77d;
    color: var(--st-ink);
}

.st-story-shelf-card:not(.st-story-shelf-card-has-cover)::before {
    background: linear-gradient(180deg, rgba(11, 61, 111, 0.1), rgba(240, 90, 26, 0.1));
}

.st-story-shelf-card:hover,
.st-story-shelf-card:focus {
    border-color: var(--st-logo-orange);
    box-shadow: 0 20px 42px rgba(9, 34, 56, 0.16);
}

.st-story-shelf-card-has-cover::before {
    background: linear-gradient(90deg, rgba(9, 34, 56, 0.56), rgba(9, 34, 56, 0.18) 52%, rgba(240, 90, 26, 0.22));
}

.st-bookshelf-toggle {
    background: var(--st-logo-gold-soft);
    color: var(--st-logo-orange);
}

.st-bookshelf-toggle.is-active,
.st-bookshelf-toggle:hover,
.st-bookshelf-toggle:focus {
    background: var(--st-logo-orange);
    color: #fffaf0;
}

.st-book-reader {
    background:
        linear-gradient(90deg, rgba(9, 34, 56, 0.06), transparent 20%, transparent 80%, rgba(240, 90, 26, 0.05)),
        #fbf6ea;
    color: #201b15;
    --st-reader-font-scale: 1;
}

.st-book-page {
    background: linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(255, 250, 240, 0.38));
}

.st-book-page h1 {
    color: #172432;
}

.st-book-text {
    color: #2c251d;
    font-size: var(--st-reader-live-font-size, var(--st-story-font-size, 1.22rem));
    line-height: var(--st-story-line-height, 1.9);
}

.st-book-text p,
.st-book-text li,
.st-book-text blockquote {
    font-size: inherit;
}

.st-reader-font-controls {
    display: grid;
    gap: 0.35rem;
}

.st-reader-font-button {
    font-size: 1.05rem;
    height: 34px;
    width: 34px;
}

.st-reader-font-button:disabled {
    cursor: default;
    opacity: 0.48;
    transform: none;
}

.st-reader-icon {
    background: rgba(9, 34, 56, 0.42);
    box-shadow: 0 10px 28px rgba(9, 34, 56, 0.18);
}

.st-reader-report-icon {
    background: rgba(240, 90, 26, 0.58);
}

.st-reader-icon:hover,
.st-reader-icon:focus {
    background: rgba(240, 90, 26, 0.86);
}

.st-rating-popover {
    border-color: rgba(255, 200, 87, 0.36);
}

.st-next-card {
    background: rgba(255, 250, 240, 0.82);
    border-color: var(--st-border);
}

.st-next-card:hover,
.st-next-card:focus,
.st-next-card:focus-within {
    border-color: var(--st-logo-orange);
    box-shadow: 0 12px 32px rgba(9, 34, 56, 0.14);
}

.st-next-author-card,
.st-credit-status-bar,
.st-clean-reading-prompt,
.st-credit-paywall,
.st-price-preview {
    background: #fff5da;
    border-color: rgba(255, 200, 87, 0.48);
    color: var(--st-ink);
}

.st-progress-tree {
    background: linear-gradient(180deg, #fffaf0, #f6eddc);
    border-color: var(--st-border);
}

.st-progress-node > .st-progress-level::before,
.st-progress-node > .st-progress-level > .st-progress-node::before,
.st-progress-node > .st-progress-level > .st-progress-node::after {
    background: #9eabae;
}

.st-progress-card {
    background: #fffdf7;
    border-color: var(--st-border);
    color: var(--st-ink);
}

.st-progress-read > .st-progress-card,
.st-progress-read > .st-progress-card-wrap > .st-progress-card {
    background: #fff2cc;
    border-color: var(--st-logo-gold);
}

.st-progress-available > .st-progress-card,
.st-progress-available > .st-progress-card-wrap > .st-progress-card {
    background: #edf2f4;
    border-color: #c5d2d8;
    color: var(--st-muted);
}

.st-progress-current > .st-progress-card,
.st-progress-current > .st-progress-card-wrap > .st-progress-card {
    border-color: var(--st-logo-orange);
    box-shadow: 0 0 0 3px rgba(240, 90, 26, 0.2), 0 16px 34px rgba(9, 34, 56, 0.16);
}

.st-progress-selected > .st-progress-card,
.st-progress-selected > .st-progress-card-wrap > .st-progress-card {
    border-color: var(--st-logo-blue);
    box-shadow: 0 0 0 4px rgba(11, 61, 111, 0.26), 0 0 0 9px rgba(240, 90, 26, 0.28), 0 20px 42px rgba(9, 34, 56, 0.2);
    position: relative;
    z-index: 2;
}

.st-progress-own > .st-progress-card,
.st-progress-own > .st-progress-card-wrap > .st-progress-card {
    border-color: var(--st-logo-blue);
    box-shadow: inset 0 0 0 2px rgba(11, 61, 111, 0.14);
}

.st-tree-branch-toggle {
    background: #fffaf0;
    border-color: var(--st-border);
    color: var(--st-logo-blue);
}

.st-tree-branch-toggle:hover,
.st-tree-branch-toggle:focus {
    background: var(--st-logo-blue);
    border-color: var(--st-logo-blue);
    color: #fffaf0;
}

.st-tile-link,
.st-button-danger {
    color: var(--st-danger);
}

.st-tile-inline-form .st-tile-link,
.st-tile-invite summary,
.st-tile-editor-open {
    color: var(--st-logo-blue);
}

.st-editor-page {
    background:
        linear-gradient(180deg, rgba(9, 34, 56, 0.06), rgba(242, 235, 221, 0)),
        var(--st-bg);
}

.st-editor-text-wrap textarea,
.st-editor-highlights,
.st-story-text-preview {
    background: #fffdf7;
    border-color: var(--st-border);
}

.st-editor-highlights mark,
.st-character-mentioned,
.st-world-mentioned {
    background: rgba(255, 200, 87, 0.34);
    border-color: var(--st-logo-gold);
}

.st-editor-highlights mark.st-continent-term { background: rgba(154, 118, 202, 0.28); }
.st-editor-highlights mark.st-country-term { background: rgba(89, 166, 111, 0.28); }
.st-editor-highlights mark.st-region-term { background: rgba(222, 151, 70, 0.3); }
.st-editor-highlights mark.st-city-term { background: rgba(66, 150, 190, 0.34); }
.st-editor-highlights mark.st-district-term { background: rgba(111, 187, 213, 0.3); }
.st-editor-highlights mark.st-place-term { background: rgba(196, 151, 86, 0.28); }
.st-editor-highlights mark.st-world-term { background: rgba(255, 200, 87, 0.24); }

.st-character-assist-item.st-world-assist-item-continent.st-world-mentioned { background: rgba(154, 118, 202, 0.28); border-color: rgba(154, 118, 202, 0.72); }
.st-character-assist-item.st-world-assist-item-country.st-world-mentioned { background: rgba(89, 166, 111, 0.28); border-color: rgba(89, 166, 111, 0.72); }
.st-character-assist-item.st-world-assist-item-region.st-world-mentioned { background: rgba(222, 151, 70, 0.3); border-color: rgba(222, 151, 70, 0.74); }
.st-character-assist-item.st-world-assist-item-city.st-world-mentioned { background: rgba(66, 150, 190, 0.34); border-color: rgba(66, 150, 190, 0.74); }
.st-character-assist-item.st-world-assist-item-district.st-world-mentioned { background: rgba(111, 187, 213, 0.3); border-color: rgba(111, 187, 213, 0.74); }
.st-character-assist-item.st-world-assist-item-place.st-world-mentioned { background: rgba(196, 151, 86, 0.28); border-color: rgba(196, 151, 86, 0.74); }

.st-character-dead-mentioned {
    background: rgba(180, 35, 24, 0.08);
    border-color: var(--st-danger);
}

.st-status-alive,
.st-notice-success {
    background: #edf7e6;
    color: var(--st-success);
}

.st-status-special {
    background: var(--st-logo-gold-soft);
    color: #8a5a10;
}

.st-status-dead,
.st-notice-error,
.st-paywall {
    background: #fff0ed;
    color: var(--st-danger);
}

.st-plugin-footer {
    border-top-color: rgba(11, 61, 111, 0.14);
}

.st-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.st-checkbox-card {
    align-items: flex-start;
    background: rgba(255, 253, 247, 0.86);
    border: 1px solid var(--st-border);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    padding: 14px;
}

.st-checkbox-card input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.st-checkbox-card span {
    display: grid;
    gap: 4px;
}

.st-checkbox-card small {
    color: var(--st-muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.st-admin-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.st-admin-stat-grid li {
    background: rgba(255, 243, 203, 0.42);
    border: 1px solid rgba(203, 113, 18, 0.2);
    border-radius: 14px;
    display: grid;
    gap: 6px;
    padding: 16px;
}

.st-admin-stat-grid strong {
    color: var(--st-blue);
    font-size: 1.55rem;
    line-height: 1.1;
}

.st-admin-stat-grid span {
    color: var(--st-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.st-statistics-filter,
.st-dashboard-filter {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.st-dashboard-filter label {
    display: grid;
    gap: 6px;
    min-width: min(220px, 100%);
}

.st-link-button-danger {
    color: var(--st-danger);
}

@media (max-width: 760px) {
    .st-plugin-header {
        align-items: flex-start;
    }

    .st-plugin-brand {
        max-width: 100%;
        width: 100%;
    }

    .st-plugin-brand-logo {
        height: 46px;
        padding: 0.24rem;
        width: 46px;
    }

    .st-plugin-brand-tagline {
        display: none;
    }

    .st-plugin-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .st-landing-page {
        grid-template-columns: 1fr;
    }

    .st-landing-brand img {
        max-width: min(300px, 78vw);
    }
}

.st-reader-tools,
.st-reader-tools button,
.st-reader-tools summary,
.st-reader-tools input,
.st-reader-tools select,
.st-reader-tools textarea {
    font-family: var(--st-font-sans, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: 0;
}

.st-book-page h1,
.st-book-text {
    font-family: var(--st-story-font-family, "Source Serif 4", Georgia, "Times New Roman", serif);
}

.st-report-popover {
    box-sizing: border-box;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    position: fixed;
    right: 4.75rem;
    top: 1rem;
    z-index: 70;
    width: min(420px, calc(100vw - 6rem));
}

.st-report-popover > strong {
    color: var(--st-ink);
    display: block;
    font-size: 1.18rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.st-report-popover .st-button,
.st-report-popover button,
.st-report-popover summary {
    line-height: 1.25;
    min-height: 44px;
}

.st-report-popover form {
    max-width: none;
}

.st-report-popover .st-meta {
    font-size: 0.96rem;
    line-height: 1.5;
}

.st-reader-fanart-toggle {
    border-top: 1px solid rgba(183, 107, 22, 0.16);
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.st-reader-fanart-dialog {
    background: #fffaf1;
    border: 0;
    box-sizing: border-box;
    color: var(--st-ink);
    height: 100dvh;
    margin: 0;
    max-height: none;
    max-width: none;
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 2rem);
    width: 100vw;
}

.st-reader-fanart-dialog::backdrop {
    background: rgba(13, 24, 36, 0.72);
}

.st-reader-fanart-window {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 100%;
}

.st-reader-fanart-dialog .st-reader-fanart-panel {
    display: grid;
    gap: 1.25rem;
}

.st-reader-fanart-dialog .st-fanart-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.st-reader-fanart-dialog .st-fanart-card img {
    aspect-ratio: 4 / 3;
    max-height: 62vh;
}

.st-reader-fanart-dialog .st-fanart-upload-form {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    padding: 1rem;
}

@media (max-width: 640px) {
    .st-book-page {
        max-width: 100%;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: calc(max(1rem, env(safe-area-inset-right)) + 3.2rem);
    }

    .st-reader-tools {
        right: max(0.55rem, env(safe-area-inset-right));
        top: max(0.55rem, env(safe-area-inset-top));
    }

    .st-report-popover {
        max-height: calc(100dvh - 1rem);
        right: 4.05rem;
        top: max(0.55rem, env(safe-area-inset-top));
        width: min(84vw, 420px);
    }

    .st-reader-fanart-dialog {
        padding: 0.9rem;
    }

    .st-reader-fanart-dialog .st-fanart-grid {
        grid-template-columns: 1fr;
    }
}
