/* Site shell, navigation, and shared controls. Generated from main.css by tools/split-discovery-css.php. */

:root {
    --paper: #f8f6f0;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --ink: #18202b;
    --muted: #667085;
    --line: #ded8ca;
    --green: #2f6f5e;
    --wine: #7a2848;
    --gold: #d99a2b;
    --blue: #285c7e;
    --plum: #4b314f;
    --shadow: 0 18px 48px rgba(24, 32, 43, 0.12);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}

body.chaptertrail-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--paper);
    background-image: var(--chaptertrail-site-bg, none);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.chaptertrail-site .site-header {
    background: rgba(255, 253, 248, 0.82);
    border-bottom-color: rgba(122, 40, 72, 0.12);
}

body.chaptertrail-site .site-main {
    flex: 1 0 auto;
    width: min(1480px, calc(100% - 40px));
    margin: 12px auto 28px;
    padding: 22px 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.78) 0%, rgba(248, 244, 236, 0.58) 100%);
    backdrop-filter: blur(16px) saturate(118%);
    -webkit-backdrop-filter: blur(16px) saturate(118%);
    box-shadow:
        0 22px 54px rgba(24, 32, 43, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.chaptertrail-site .site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: rgba(24, 32, 43, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 6px 40px;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(122, 40, 72, 0.14);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 850;
    color: var(--ink);
    text-decoration: none;
}

.site-logo__image {
    display: block;
    width: 75px;
    height: 50px;
    object-fit: contain;
}

.site-logo__dashboard-logo {
    display: block;
    width: 176px;
    max-width: min(176px, 42vw);
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

.site-logo__mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    place-items: center;
    color: var(--wine);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
}

.site-logo__mark img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.site-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(122, 40, 72, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    cursor: pointer;
}

.site-menu-toggle span:not(.sr-only) {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a,
.site-nav-trigger,
.site-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 750;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav-trigger:hover,
.site-account-trigger:hover,
.site-nav-menu:focus-within .site-nav-trigger,
.site-nav-menu:focus-within .site-account-trigger,
.site-nav-menu:hover .site-nav-trigger,
.site-nav-menu:hover .site-account-trigger {
    background: rgba(122, 40, 72, 0.09);
    color: var(--wine);
}

.site-nav-menu {
    position: relative;
}

.site-nav-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    right: -12px;
    left: -12px;
    height: 18px;
}

.site-nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 245px;
    padding: 10px;
    border: 1px solid rgba(122, 40, 72, 0.14);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 24px 54px rgba(43, 31, 24, 0.16);
}

.site-nav-menu:hover .site-nav-dropdown,
.site-nav-menu:focus-within .site-nav-dropdown {
    display: grid;
    gap: 2px;
}

.site-nav-dropdown a {
    justify-content: flex-start;
    min-height: 40px;
    border-radius: 10px;
    color: var(--ink);
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a:focus {
    background: rgba(47, 111, 94, 0.11);
    color: var(--green);
}

.site-account-trigger {
    min-height: 48px;
    padding: 0 13px 0 7px;
    border: 1px solid rgba(122, 40, 72, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.site-account-menu .site-nav-dropdown {
    right: 0;
    left: auto;
    min-width: 240px;
}

.site-account-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    overflow: hidden;
    place-items: center;
    border-radius: 999px;
    background: var(--green);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.site-account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-account-copy {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.site-account-copy span:first-child {
    max-width: 124px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-account-copy span:last-child {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.site-account-dropdown a:nth-child(3),
.site-account-dropdown a:nth-child(6),
.site-account-dropdown a:nth-child(7) {
    border-top: 1px solid rgba(122, 40, 72, 0.1);
}

.site-search {
    display: flex;
    align-items: center;
    width: min(230px, 22vw);
    min-width: 150px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(47, 111, 94, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
}

.site-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 4px 0 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    outline: 0;
}

.site-search button {
    display: grid;
    width: 42px;
    height: 100%;
    place-items: center;
    border: 0;
    background: var(--green);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
}

.site-account-link {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--wine);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
}

.button--primary {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
}

.button--secondary {
    background: rgba(255, 255, 255, 0.5);
}

.maintenance-notice {
    width: min(1480px, calc(100% - 40px));
    margin: 10px auto 0;
}

.maintenance-notice__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(217, 154, 43, 0.35);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(217, 154, 43, 0.16), rgba(255, 249, 235, 0.92));
    overflow: hidden;
}

.maintenance-notice__label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a6118;
}

.maintenance-notice__marquee {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.maintenance-notice__track {
    display: flex;
    width: max-content;
    animation: maintenance-notice-scroll 36s linear infinite;
}

.maintenance-notice__text {
    padding-right: 48px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--ink);
}

@keyframes maintenance-notice-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
.maintenance-notice__track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }

.maintenance-notice__text:last-child {
        display: none;
    }
}

@keyframes trend-card-foil-shimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.landing-fiction-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.landing-fiction-rating__score,
.landing-fiction-rating__count {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.chaptertrail-reader-shelf {
    border-top: 1px solid rgba(222, 216, 202, 0.72);
}

.landing-shelf-empty {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.chaptertrail-feed-columns {
    align-items: stretch;
}

.chaptertrail-list-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.chaptertrail-feed-columns > .chaptertrail-list-panel {
    display: flex;
    min-height: 520px;
    max-height: 520px;
    flex-direction: column;
}

.chaptertrail-feed-columns .rise-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding-right: 6px;
    scrollbar-color: rgba(45, 120, 96, 0.48) rgba(239, 230, 210, 0.55);
}

.rise-list {
    display: grid;
    gap: 2px;
    max-height: 760px;
    margin: 14px 0 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.rise-list li,
.rise-list__item {
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(222, 216, 202, 0.72);
}

.rise-list li > span,
.rise-list__rank {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #efe6d2;
    color: #725115;
    font-size: 0.82rem;
    font-weight: 900;
}

.rise-list__cover {
    width: 42px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    background: #e7dfd0;
}

.rise-list__body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.rise-list a,
.rise-list__title {
    display: grid;
    gap: 3px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.rise-list strong,
.rise-list__title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rise-list small,
.rise-list__title small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.discovery-public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.discovery-public-links a {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-weight: 800;
}

.user-role-badge {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    line-height: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.user-role-badge--crown {
    background: radial-gradient(circle at 30% 20%, #fff6cf 0%, #f0c84b 42%, #c8941a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 3px rgba(154, 114, 9, 0.28);
}

.user-role-badge--gavel {
    background: linear-gradient(160deg, #f6ece2 0%, #dbc4a8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 3px rgba(93, 64, 55, 0.18);
}

.cms-columns {
    display: grid;
    gap: 32px;
}

.cms-columns--one {
    grid-template-columns: 1fr;
}

.cms-columns--two_equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shelf--quiet {
    padding-top: 24px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.text-link {
    color: var(--green);
    font-weight: 850;
    text-decoration: none;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-list a {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    text-decoration: none;
    font-weight: 850;
}

.ranking-list span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.pricing-card,
.principle-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.pricing-card {
    padding: 28px;
    box-shadow: var(--shadow);
}

.pricing-card span {
    color: var(--wine);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-card strong {
    display: block;
    margin: 10px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.5rem;
    line-height: 1;
}

.pricing-card p,
.principle-card p {
    color: var(--muted);
    line-height: 1.65;
}

.principle-card {
    min-height: 210px;
    padding: 22px;
}

.principle-card h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.08;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 36px 56px;
    background: var(--ink);
    color: #ffffff;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 420px;
}

.site-footer__logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(190px, 25vw);
    max-height: 50px;
    object-fit: contain;
}

.site-footer__brand p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 750;
}

.message-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.message-tabs a {
    padding: 9px 13px;
    border: 1px solid rgba(31, 54, 93, 0.14);
    border-radius: 999px;
    color: #1f365d;
    text-decoration: none;
    font-weight: 850;
}

.message-tabs a.is-active {
    background: #1f365d;
    color: #ffffff;
}

.message-layout {
    display: grid;
    gap: 18px;
}

.message-list,
.message-compose,
.message-detail {
    padding: 20px;
}

.message-list {
    display: grid;
    gap: 0;
}

.message-compose form,
.message-detail + .message-compose form {
    display: grid;
    gap: 14px;
}

.message-compose label,
.message-compose-field__label {
    display: grid;
    gap: 8px;
    font-weight: 850;
}

.message-compose-field {
    display: grid;
    gap: 8px;
}

.message-compose input[type="text"] {
    padding: 11px 12px;
}

.message-compose-to {
    margin: 0;
    color: #1f365d;
}

.message-body {
    color: #172026;
    font-size: 1.04rem;
    line-height: 1.75;
}

.message-parent {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(31, 54, 93, 0.12);
    border-radius: 8px;
    background: rgba(239, 227, 198, 0.55);
}

.message-parent summary {
    cursor: pointer;
    color: #1f365d;
    font-weight: 900;
}

.author-work-list {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

.fiction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.fiction-tags span {
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    padding: 7px 11px;
    color: #2c3940;
    font-size: 0.88rem;
    font-weight: 850;
}

@media (max-width: 760px) {
.site-header {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

.site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

.site-nav {
        display: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        padding: 8px 0 4px;
    }

.site-header.is-menu-open .site-nav {
        display: flex;
    }

.site-nav-menu,
    .site-search {
        width: 100%;
    }

.site-nav a,
    .site-nav-trigger,
    .site-account-trigger {
        width: 100%;
        justify-content: space-between;
    }

.site-nav-dropdown {
        position: static;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
    }

.site-search {
        max-width: none;
    }

.chaptertrail-feed-columns > .chaptertrail-list-panel {
        order: 1;
    }

.chaptertrail-feed-columns > .chaptertrail-rise-panel {
        order: 2;
    }

body.chaptertrail-site .site-main {
        width: min(100% - 24px, 1480px);
        margin: 8px auto 20px;
        padding: 16px 14px 18px;
        border-radius: 14px;
    }

.cms-columns--two_equal {
        grid-template-columns: 1fr;
    }

.site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

.site-footer__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

.site-login-link {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.52);
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
}

.login-modal.is-open {
    display: grid;
}

.login-modal [hidden],
.login-modal__form[hidden],
.login-modal__error[hidden],
.login-modal__notice[hidden],
.login-modal__switch[hidden] {
    display: none;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 32, 43, 0.44);
    backdrop-filter: blur(10px);
}

.login-modal__panel {
    position: relative;
    width: min(460px, 100%);
    padding: 30px;
    border: 1px solid rgba(222, 216, 202, 0.96);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 28px 80px rgba(24, 32, 43, 0.28);
}

.login-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.login-modal__intro h2 {
    max-width: 10ch;
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.7rem;
    line-height: 0.98;
}

.login-modal__intro p:last-child {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.65;
}

.login-modal__error {
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid rgba(122, 40, 72, 0.28);
    border-radius: 8px;
    background: rgba(122, 40, 72, 0.08);
    color: var(--wine);
    font-weight: 750;
}

.login-modal__notice {
    margin-bottom: 16px;
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 750;
}

.login-modal__notice.is-success {
    border: 1px solid rgba(47, 111, 94, 0.24);
    background: rgba(47, 111, 94, 0.1);
    color: var(--green);
}

.login-modal__social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.login-modal__social a,
.login-modal__social button,
.login-modal__social-link {
    display: grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.login-modal__social-link--google:not(:disabled) {
    border-color: rgba(66, 133, 244, 0.35);
    color: #1a73e8;
}

.login-modal__social-link--facebook:not(:disabled) {
    border-color: rgba(24, 119, 242, 0.35);
    color: #1877f2;
}

.login-modal__social button:disabled,
.login-modal__social-link:disabled {
    opacity: 0.54;
    cursor: not-allowed;
}

.login-modal__form {
    display: grid;
    gap: 14px;
}

.login-modal__form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
}

.login-modal__form input {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.login-modal__form input:focus {
    outline: 3px solid rgba(47, 111, 94, 0.18);
    border-color: var(--green);
}

.login-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.login-modal__actions .button {
    justify-content: center;
}

.login-modal__submit {
    justify-content: center;
    margin-top: 4px;
    cursor: pointer;
}

.login-modal__submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.login-modal__switch {
    display: block;
    width: 100%;
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    text-align: center;
}

.login-modal-open {
    overflow: hidden;
}

.avatar-settings {
    display: grid;
    gap: 14px;
}

.banner-settings {
    display: grid;
    gap: 14px;
}

.avatar-current {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: var(--green);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
}

.avatar-current img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-current {
    display: grid;
    width: min(100%, 640px);
    aspect-ratio: 4 / 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 78% 30%, rgba(207, 168, 94, 0.2), transparent 34%),
        linear-gradient(135deg, #17283a 0%, #2f6f5e 55%, #f6ead3 100%);
    color: rgba(255, 255, 255, 0.84);
    font-weight: 850;
}

.banner-current img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-current.is-empty {
    border-style: dashed;
}

.avatar-crop-help {
    font-size: 0.92rem;
}

.avatar-crop-help.is-error {
    color: var(--wine);
    font-weight: 850;
}

.avatar-cropper {
    position: relative;
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111827;
}

.banner-cropper {
    position: relative;
    width: min(720px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111827;
}

.avatar-cropper img,
.banner-cropper img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

.avatar-crop-box,
.banner-crop-box {
    position: absolute;
    border: 2px solid #ffffff;
    background: rgba(47, 111, 94, 0.16);
    box-shadow: 0 0 0 999px rgba(17, 24, 39, 0.56);
    cursor: move;
    touch-action: none;
}

@media (max-width: 760px) {
.login-modal__panel {
        padding: 24px;
    }

.login-modal__social {
        grid-template-columns: 1fr;
    }
}

.fiction-cover-scores {
    display: grid;
    gap: 18px;
    text-align: center;
}

.fiction-cover-scores__overall {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.fiction-cover-scores__rows {
    display: grid;
    gap: 14px;
}

.fiction-cover-scores__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.fiction-cover-scores__cell {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.fiction-cover-scores__label {
    color: #516169;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fiction-cover-scores__label--overall {
    color: #172026;
    font-size: 0.88rem;
}

.fiction-cover-scores__meta {
    margin: 0;
    color: #516169;
    font-size: 0.82rem;
    font-weight: 750;
}

.fiction-quick-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 18px 0 0;
}

.fiction-quick-rating__form {
    display: inline-flex;
    align-items: center;
}

.fiction-quick-rating__login,
.fiction-quick-rating__review-link {
    color: #1f365d;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
}

.fiction-quick-rating__login:hover,
.fiction-quick-rating__review-link:hover {
    text-decoration: underline;
}

.fiction-quick-rating__muted {
    margin: 0;
    color: #516169;
    font-size: 0.92rem;
    font-weight: 750;
}

.fiction-reviews-panel {
    margin-top: 54px;
}

.fiction-reviews-empty {
    margin: 18px 0 0;
    color: #516169;
    font-weight: 750;
}

.fiction-reviews-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}
