:root {
    --app-accent: var(--brand-action);
    --app-accent-strong: var(--brand-hover);
    --app-ink: #15171b;
    --app-muted: #717680;
    --app-line: #e8eaed;
    --app-soft: #f5f6f7;
    --app-white: #fff;
    --app-radius-sm: 10px;
    --app-radius-md: 14px;
    --app-radius-lg: 18px;
    --app-shadow: 0 12px 36px rgba(18, 24, 34, .08);
    --app-ease: cubic-bezier(.22, .72, .2, 1);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #eef0f3;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #eef0f3;
    color: var(--app-ink);
    font-family: Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

button,
input {
    font: inherit;
}

button,
[role="button"] {
    touch-action: manipulation;
}

button {
    color: inherit;
}

button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0, 133, 62, .24);
    outline-offset: 2px;
}

.icon-sprite {
    position: fixed;
    width: 0;
    height: 0;
    overflow: hidden;
}

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

.app-shell {
    position: relative;
    width: min(100%, 430px);
    min-height: 100dvh;
    margin: 0 auto;
    overflow: clip;
    background: #fff;
    box-shadow: var(--app-shadow);
    isolation: isolate;
}

.app-main {
    min-height: 100dvh;
}

.app-view {
    min-height: 100dvh;
    background: var(--app-white);
}

.app-view.is-entering {
    animation: app-view-in 220ms var(--app-ease) both;
}

@keyframes app-view-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(68px + env(safe-area-inset-top, 0px));
    padding: calc(13px + env(safe-area-inset-top, 0px)) 20px 13px;
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color:var(--brand-text);
    text-decoration: none;
}

.app-brand span {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.8px;
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.icon-button,
.sheet-close,
.bookmark-button,
.bookmark-action,
.mini-play,
.mini-close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 160ms ease, transform 100ms ease, color 160ms ease;
}

.icon-button:active,
.sheet-close:active,
.bookmark-button:active,
.bookmark-action:active,
.mini-play:active,
.mini-close:active {
    transform: scale(.92);
}

.icon-button:hover,
.sheet-close:hover,
.bookmark-button:hover,
.mini-close:hover {
    background: var(--app-soft);
}

.icon-button svg,
.sheet-close svg,
.bookmark-button svg,
.bookmark-action svg,
.mini-play svg,
.mini-close svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    margin: -17px 0 0 17px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--app-accent);
}

.view-content {
    padding: 6px 18px calc(106px + env(safe-area-inset-bottom, 0px));
}

.home-content {
    padding-top: 4px;
}

.manga-banner-carousel {
    position: relative;
    width: 100%;
    margin: 8px 0 14px;
    overflow: hidden;
    border-radius: 18px;
    background: #161a21;
    box-shadow: 0 12px 26px rgba(20, 25, 34, .18);
    touch-action: pan-y;
    user-select: none;
}

.manga-banner-viewport {
    overflow: hidden;
    border-radius: inherit;
}

.manga-banner-track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 420ms cubic-bezier(.22, .72, .2, 1);
    will-change: transform;
}

.manga-top-banner {
    position: relative;
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-height: 132px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #161a21;
    color: #fff;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
}

.manga-top-banner::before,
.manga-top-banner::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.manga-top-banner::before {
    z-index: 1;
    background: linear-gradient(90deg, #161a21 0 41%, rgba(22, 26, 33, .88) 55%, rgba(22, 26, 33, .12) 100%);
}

.manga-top-banner::after {
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.manga-top-banner > img {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 64%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 26%;
    transform: scale(1.03);
    transition: transform 260ms var(--app-ease);
}

.manga-top-banner:active > img {
    transform: scale(1.07);
}

/* Localized artwork includes its own lettering: show the entire banner. */
.manga-top-banner.is-localized { aspect-ratio: 8 / 5; min-height: 0; border-radius: 0; }
.manga-top-banner.is-localized::before { display: none; }
.manga-top-banner.is-localized > img,
.manga-top-banner.is-localized:active > img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; }

.manga-top-banner-copy {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: 132px;
    padding: 18px 18px 15px;
}

.manga-top-banner-copy small {
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .08em;
}

.manga-top-banner-copy strong {
    margin-top: 7px;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.22;
    letter-spacing: -.04em;
}

.manga-top-banner-copy em {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: auto;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.manga-top-banner-copy em svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.manga-banner-indicators {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 99px;
    background: rgba(14, 17, 22, .48);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.manga-banner-indicators button {
    width: 6px;
    height: 6px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .48);
    cursor: pointer;
    transition: width 220ms var(--app-ease), background-color 160ms ease;
}

.manga-banner-indicators button.is-active {
    width: 20px;
    background: #fff;
}

/* Keep the page controls clear of lettering embedded in localized artwork. */
.manga-banner-carousel:has(.is-localized) .manga-banner-indicators {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    margin: 8px auto;
}

.guest-home-feature {
    position: relative;
    min-height: 224px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: var(--app-radius-md);
    background: #17191f;
    color: #fff;
    box-shadow: 0 8px 22px rgba(17, 22, 30, .14);
    touch-action: pan-y;
    user-select: none;
}

.guest-carousel-viewport {
    min-height: 224px;
    overflow: hidden;
}

.guest-carousel-track {
    display: flex;
    min-height: 224px;
    transition: transform 360ms cubic-bezier(.22, .7, .18, 1);
    will-change: transform;
}

.guest-home-slide {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    flex: 0 0 100%;
    min-width: 0;
    min-height: 224px;
}

.guest-home-feature[hidden],
.home-personal-feature[hidden] {
    display: none;
}

.guest-home-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 20px 20px;
}

.guest-home-label {
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 800;
}

.guest-home-copy h2 {
    margin: 8px 0 12px;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.8px;
    line-height: 1.18;
}

.guest-home-copy p {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    font-size: 14px;
    font-weight: 750;
}

.guest-home-copy p small {
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    font-weight: 500;
}

.guest-home-actions {
    display: flex;
    gap: 7px;
    margin-top: auto;
    padding-top: 13px;
}

.guest-home-actions button {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.guest-recommend-button {
    border: 1px solid var(--app-accent);
    background: var(--app-accent);
    color: #fff;
}

.guest-login-button {
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.guest-home-cover {
    position: relative;
    align-self: stretch;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.guest-home-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #17191f 0%, transparent 44%);
    pointer-events: none;
}

.guest-home-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.guest-carousel-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    background: rgba(14, 16, 21, .38);
    color: rgba(255, 255, 255, .9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    cursor: pointer;
}

.guest-carousel-arrow.is-prev {
    left: 0;
    border-radius: 0 12px 12px 0;
}

.guest-carousel-arrow.is-next {
    right: 0;
    border-radius: 12px 0 0 12px;
}

.guest-carousel-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guest-carousel-arrow.is-prev svg {
    transform: rotate(180deg);
}

.guest-carousel-dots {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 12px;
    display: flex;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(12, 14, 18, .55);
    backdrop-filter: blur(5px);
}

.guest-carousel-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    transition: width 180ms ease, background-color 180ms ease;
    cursor: pointer;
}

.guest-carousel-dots button.is-active {
    width: 18px;
    background: var(--app-white);
}

.guest-carousel-arrow:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .guest-home-feature:hover .guest-carousel-arrow {
        opacity: 1;
        pointer-events: auto;
    }
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 12px;
}

.section-heading h1,
.section-heading h2,
.library-content h1,
.explore-content > h1 {
    margin: 0;
    color: var(--app-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.55px;
    line-height: 1.2;
}

.section-heading h2 {
    font-size: 21px;
}

.text-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0 0 10px;
    border: 0;
    background: transparent;
    color: #595f68;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.text-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.continue-feature {
    position: relative;
    min-height: 206px;
    overflow: hidden;
    border-radius: var(--app-radius-md);
    background: #12151c;
    box-shadow: 0 8px 22px rgba(17, 22, 30, .14);
    cursor: pointer;
}

.continue-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 10, 17, .78) 0%, rgba(7, 10, 17, .28) 52%, rgba(7, 10, 17, .04) 78%);
    pointer-events: none;
}

.continue-feature > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 19%;
    transform: scale(1.03);
}

.continue-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
}

.continue-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: calc(100% - 80px);
    padding-bottom: 16px;
}

.continue-copy strong {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.55px;
}

.continue-copy span {
    color: rgba(255,255,255,.84);
    font-size: 14px;
    font-weight: 500;
}

.play-button {
    position: absolute;
    right: 19px;
    bottom: 30px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color:var(--brand-text);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform 120ms ease;
}

.play-button:active {
    transform: scale(.92);
}

.play-button svg {
    width: 26px;
    height: 26px;
    margin-left: 2px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

.progress-track {
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: 20px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.38);
}

.progress-track span,
.library-progress span,
.mini-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--app-accent);
}

.content-section {
    margin-top: 18px;
}

.cover-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 30%;
    gap: 12px;
    margin: 0;
    padding: 2px 4px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
}

.cover-rail::-webkit-scrollbar,
.genre-tabs::-webkit-scrollbar {
    display: none;
}

.cover-card {
    min-width: 0;
    scroll-snap-align: start;
}

.cover-card button,
.discover-card > button,
.novel-row-main,
.update-main,
.library-row-main {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.cover-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: var(--app-radius-sm);
    background: var(--app-soft);
}

.cover-card strong,
.discover-card strong {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--app-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.25px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cover-card span,
.discover-card .card-meta {
    display: block;
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.4;
}

.updates-section {
    margin-top: 16px;
}

.update-list,
.novel-list,
.library-list {
    border-top: 1px solid var(--app-line);
}

.update-row,
.novel-row,
.library-row {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88px;
    gap: 12px;
    border-bottom: 1px solid var(--app-line);
}

.update-main,
.novel-row-main,
.library-row-main {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 88px;
    gap: 12px;
    padding: 10px 52px 10px 0;
}

.update-main {
    padding-right: 0;
}

.update-main img,
.novel-row-main img,
.library-row-main img {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 9px;
    background: var(--app-soft);
    object-fit: cover;
}

.update-copy,
.novel-copy,
.library-copy {
    min-width: 0;
    flex: 1;
}

.update-copy strong,
.novel-copy strong,
.library-copy strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.25px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-copy span,
.novel-copy span,
.library-copy > span {
    display: block;
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.35;
}

.update-badge {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 18px;
    margin-left: 5px;
    padding: 0 4px;
    border-radius: 4px;
    background: #d32f2f;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    vertical-align: 1px;
}

.bookmark-button {
    position: absolute;
    right: 0;
    color: #646a73;
}

.bookmark-button svg,
.bookmark-action svg {
    fill: transparent;
}

.bookmark-button.is-active,
.bookmark-action.is-active {
    color:var(--brand-text);
}

.bookmark-button.is-active svg,
.bookmark-action.is-active svg {
    fill: currentColor;
}

.explore-header {
    border-bottom-color: var(--app-line);
}

.explore-content,
.library-content {
    padding-top: 14px;
}

.explore-content > h1,
.library-content h1 {
    margin-bottom: 18px;
    font-size: 27px;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    border: 1px solid #d9dce1;
    border-radius: 12px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 3px rgba(0, 133, 62, .1);
}

.search-field > svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-left: 15px;
    fill: none;
    stroke: #727780;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-field input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 8px 0 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-ink);
    font-size: 15px;
    font-weight: 500;
}

.search-field input::placeholder {
    color: #969ba3;
}

.clear-search {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7c828b;
    cursor: pointer;
}

.search-field.has-value .clear-search {
    display: grid;
}

.clear-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.genre-tabs {
    display: flex;
    gap: 9px;
    margin: 16px -18px 0;
    padding: 0 18px 3px;
    overflow-x: auto;
    scrollbar-width: none;
}

.genre-tabs button {
    flex: 0 0 auto;
    min-width: 78px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #dcdfe3;
    border-radius: 12px;
    background: #fff;
    color: #626871;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 100ms ease;
}

.genre-tabs button:active {
    transform: scale(.96);
}

.genre-tabs button.is-active {
    border-color: var(--app-accent);
    background: var(--app-accent);
    color: #fff;
}

.genre-tabs button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.weekday-tabs {
    flex: 1;
    min-width: 0;
    gap: 7px;
    margin: 0;
    padding: 0 6px 3px 0;
}

.weekday-tabs button {
    min-width: 52px;
    padding: 0 15px;
}

.sort-filter-row,
.weekday-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
}

.sort-filter-row > .sort-tabs {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0 6px 3px 0;
}

.sort-filter-row > .content-filter-button,
.weekday-filter-row > .content-filter-button {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #dcdfe3;
    border-radius: 12px;
    background: #fff;
    color: #626871;
    cursor: pointer;
}

.sort-filter-row > .content-filter-button.has-filter,
.weekday-filter-row > .content-filter-button.has-filter {
    border-color: var(--app-accent);
    color:var(--brand-text);
}

.content-filter-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}


.genre-filter-backdrop {
    position: fixed;
    z-index: 95;
    inset: 0;
    background: rgba(9, 12, 18, .42);
    opacity: 0;
    transition: opacity 180ms ease;
}

.genre-filter-backdrop.is-open {
    opacity: 1;
}

.genre-filter-dialog {
    position: fixed;
    z-index: 96;
    right: 50%;
    bottom: 0;
    left: 50%;
    width: min(100%, 430px);
    padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -16px 44px rgba(8, 12, 18, .18);
    transform: translate(-50%, 105%);
    transition: transform 240ms var(--app-ease);
}

.genre-filter-dialog.is-open {
    transform: translate(-50%, 0);
}

.genre-filter-dialog:focus { outline: none; }
.genre-filter-handle { width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 9px; background: #d8dbe0; }
.genre-filter-dialog header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.genre-filter-dialog h2 { margin: 0; font-size: 20px; font-weight: 800; }
.genre-filter-dialog > p { margin: 2px 0 18px; color: var(--app-muted); font-size: 14px; }
.genre-filter-close { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.genre-filter-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.genre-filter-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.genre-filter-options button { min-height: 44px; border: 1px solid #dcdfe3; border-radius: 11px; background: #fff; color: #555b64; font-size: 14px; font-weight: 700; cursor: pointer; }
.genre-filter-options button.is-selected { border-color: var(--app-accent); background: rgba(0, 133, 62,.08); color:var(--brand-text); }
.genre-filter-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 20px; }
.genre-filter-actions button { min-height: 50px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; }
.genre-filter-reset { border: 1px solid #dcdfe3; background: #fff; color: #555b64; }
.genre-filter-apply { border: 1px solid var(--app-accent); background: var(--app-accent); color: #fff; }

.result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    margin-top: 8px;
}

.result-summary strong {
    font-size: 17px;
    font-weight: 760;
}

.result-summary span {
    color: var(--app-muted);
    font-size: 14px;
}

.catalog-status {
    margin: 0 0 12px;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
}

.catalog-status[data-source="live"] { color:var(--brand-text); }
.sheet-data-message { margin: 16px 0; color: var(--app-muted); font-size: 14px; line-height: 1.5; }

.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 8px;
}

.discover-card {
    position: relative;
    min-width: 0;
}

.discover-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4.05;
    border-radius: 12px;
    background: var(--app-soft);
    object-fit: cover;
}

.discover-card .bookmark-button {
    right: 0;
    bottom: 17px;
    width: 34px;
    height: 34px;
}

.discover-card strong {
    display: block;
    padding-right: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: unset;
}

.novel-list {
    margin-top: 0;
}

.novel-row-main img {
    width: 58px;
    height: 78px;
}

.empty-state {
    display: grid;
    min-height: 260px;
    place-content: center;
    padding: 30px;
    text-align: center;
}

.empty-state strong {
    font-size: 18px;
    font-weight: 750;
}

.empty-state span {
    margin-top: 8px;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
}

.library-header {
    border-bottom-color: transparent;
}

.library-content > h1 {
    margin-bottom: 26px;
}

.library-resume-section > h2 {
    margin-bottom: 14px;
    font-size: 19px;
    font-weight: 800;
}

.library-resume-card {
    position: relative;
    min-height: 168px;
}

.library-resume-main {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.library-resume-main > img {
    display: block;
    width: 112px;
    height: 160px;
    border-radius: 12px;
    background: var(--app-soft);
    object-fit: cover;
}

.library-resume-copy {
    display: flex;
    align-self: center;
    flex-direction: column;
    min-width: 0;
    padding: 0 12px 0 18px;
}

.library-resume-copy > strong {
    overflow: hidden;
    font-size: 22px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-resume-copy > span {
    margin-top: 8px;
    color: var(--app-muted);
    font-size: 14px;
}

.library-resume-copy > small {
    margin-top: 15px;
    color: #555b64;
    font-size: 14px;
}

.library-resume-progress {
    display: block;
    width: calc(100% - 46px);
    height: 4px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 99px;
    background: #e5e7ea;
}

.library-resume-progress > span,
.library-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--app-accent);
}

.library-resume-play {
    position: absolute;
    right: 2px;
    bottom: 38px;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 133, 62, .22);
    cursor: pointer;
}

.library-resume-play svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    stroke: none;
}

.library-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--app-line);
    border-bottom: 1px solid var(--app-line);
}

.library-stats > span {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid var(--app-line);
}

.library-stats > span:last-child {
    border-right: 0;
}

.library-stats strong {
    color:var(--brand-text);
    font-size: 22px;
    font-weight: 800;
}

.library-stats small {
    color: var(--app-muted);
    font-size: 14px;
}

.library-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px -18px 0;
    border-bottom: 1px solid var(--app-line);
}

.library-tabs button {
    position: relative;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #474c54;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.library-tabs button::after {
    content: "";
    position: absolute;
    right: 23%;
    bottom: -1px;
    left: 23%;
    height: 2px;
    background: transparent;
}

.library-tabs button.is-active {
    color: var(--app-ink);
    font-weight: 800;
}

.library-tabs button.is-active::after {
    background: var(--app-accent);
}

.library-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
    padding-top: 20px;
    border-top: 0;
}

.library-shelf-card {
    min-width: 0;
}

.library-shelf-card > button {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.library-shelf-card img {
    display: block;
    width: 72px;
    height: 102px;
    border-radius: 9px;
    background: var(--app-soft);
    object-fit: cover;
}

.library-shelf-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 5px 0 0 10px;
}

.library-shelf-copy > strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-shelf-copy > small {
    margin-top: 7px;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-progress-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
}

.library-progress {
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: #e4e6e9;
}

.library-progress-wrap em {
    min-width: 30px;
    color: var(--app-muted);
    font-size: 14px;
    font-style: normal;
}

.app-bottom-nav {
    position: fixed;
    z-index: 50;
    right: auto;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 18px), 412px);
    min-height: 72px;
    padding: 8px 10px 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(249, 250, 252, .7));
    box-shadow:
        0 13px 34px rgba(30, 35, 47, .14),
        0 3px 10px rgba(30, 35, 47, .06),
        inset 0 1px 0 rgba(255, 255, 255, .96),
        inset 0 -1px 0 rgba(213, 218, 227, .38);
    -webkit-backdrop-filter: saturate(170%) blur(22px);
    backdrop-filter: saturate(170%) blur(22px);
    transform: translateX(-50%);
    isolation: isolate;
}

.app-bottom-nav::before,
.app-bottom-nav::after {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    content: "";
}

.app-bottom-nav::before {
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 15% -45%, rgba(255, 255, 255, .98) 0 30%, transparent 58%),
        linear-gradient(110deg, rgba(255, 255, 255, .3), transparent 45% 72%, rgba(255, 255, 255, .2));
}

.app-bottom-nav::after {
    top: 1px;
    right: 18px;
    left: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}

.app-bottom-nav button {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 56px;
    gap: 4px;
    padding: 4px 2px 3px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #999ca3;
    font-size: 14px;
    font-weight: 560;
    line-height: 1;
    cursor: pointer;
    transition: color 170ms ease, background-color 170ms ease, transform 100ms ease;
}

.app-bottom-nav button:active {
    transform: scale(.95);
}

.app-bottom-nav button:hover {
    background: rgba(255, 255, 255, .44);
}

.app-bottom-nav button.is-active {
    color: #111318;
}

.app-bottom-nav button span {
    display: block;
    width: 100%;
    overflow: visible;
    opacity: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: none;
    transition: color 170ms ease, font-weight 170ms ease;
}

.app-bottom-nav button.is-active span {
    font-weight: 720;
}

.app-bottom-nav svg {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: background-color 160ms ease, stroke-width 160ms ease;
}

.app-bottom-nav button.is-active svg {
    stroke: currentColor;
    stroke-width: 2.15;
}

.content-panel.is-navigation-root {
    z-index: 45;
}

.content-panel.is-navigation-root .content-panel-body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

.content-panel.is-navigation-root:not(.is-account-subscreen) .panel-back {
    visibility: hidden;
    pointer-events: none;
}

.content-panel.is-protected-login .panel-back {
    visibility: hidden;
    pointer-events: none;
}

.app-chat-fab {
    position: fixed;
    z-index: 49;
    right: max(18px, calc((100vw - 430px) / 2 + 18px));
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--app-accent);
    box-shadow: 0 9px 22px rgba(0, 133, 62, .3);
    color: #fff;
    cursor: pointer;
    transition: transform 120ms ease, background-color 160ms ease;
}

.app-chat-fab:active {
    transform: scale(.93);
}

.app-chat-fab svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-chat-panel {
    position: fixed;
    z-index: 110;
    top: 0;
    bottom: 0;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(100%, 430px);
    height: 100dvh;
    overflow: hidden;
    background: #f5f6f8;
    box-shadow: 0 0 42px rgba(17, 22, 30, .24);
    transform: translate(-50%, 100%);
    transition: transform 240ms var(--app-ease);
    will-change: transform;
}

.app-chat-panel.is-open {
    transform: translate(-50%, 0);
}

.app-chat-panel:focus {
    outline: none;
}

.app-chat-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    min-height: calc(66px + env(safe-area-inset-top, 0px));
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px 8px;
    border-bottom: 1px solid var(--app-line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.app-chat-close {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--app-ink);
    cursor: pointer;
}

.app-chat-close svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}

.app-chat-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.3px;
}

.app-chat-header span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 14px;
}

.app-chat-header span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #20b36a;
    box-shadow: 0 0 0 3px rgba(32, 179, 106, .12);
}

.app-chat-reset {
    min-width: 48px;
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--app-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.app-chat-messages {
    overflow-y: auto;
    padding: 22px 16px 24px;
    overflow-anchor: none;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
}

.app-chat-messages::-webkit-scrollbar {
    display: none;
}

.app-chat-day {
    margin: 0 0 20px;
    color: var(--app-muted);
    font-size: 14px;
    font-weight: 650;
    text-align: center;
}

.app-chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.app-chat-message.is-user {
    justify-content: flex-end;
}

.app-chat-avatar {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: var(--app-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.app-chat-bubble {
    max-width: min(76%, 290px);
    padding: 11px 13px 9px;
    border: 1px solid #e5e7ea;
    border-radius: 6px 17px 17px;
    background: #fff;
    color: #272b31;
    box-shadow: 0 4px 14px rgba(33, 38, 45, .05);
}

.app-chat-message.is-user .app-chat-bubble {
    border-color: var(--app-accent);
    border-radius: 17px 6px 17px 17px;
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 5px 16px rgba(0, 133, 62, .18);
}

.app-chat-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.app-chat-sender {
    display: block;
    margin-bottom: 5px;
    color:var(--brand-text);
    font-size: 14px;
    font-weight: 800;
}

.app-chat-bubble time {
    display: block;
    margin-top: 5px;
    color: #9298a1;
    font-size: 14px;
    text-align: right;
}

.app-chat-message.is-user .app-chat-bubble time {
    color: rgba(255, 255, 255, .74);
}

.app-chat-new-messages {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 7px;
    padding: 0 15px;
    border: 0;
    border-radius: 20px;
    background: #24272d;
    box-shadow: 0 8px 22px rgba(20, 24, 31, .22);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transform: translateX(50%);
    animation: chat-new-message-in 180ms var(--app-ease) both;
}

.app-chat-new-messages:active {
    transform: translateX(50%) scale(.96);
}

.app-chat-new-messages span {
    color: var(--brand-text);
    font-size: 16px;
    line-height: 1;
}

@keyframes chat-new-message-in {
    from { opacity: 0; transform: translate(50%, 8px); }
    to { opacity: 1; transform: translate(50%, 0); }
}

.app-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--app-line);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
}

.app-chat-form input {
    width: 100%;
    height: 46px;
    min-width: 0;
    padding: 0 16px;
    border: 1px solid #dfe2e6;
    border-radius: 16px;
    outline: none;
    background: #f5f6f8;
    color: var(--app-ink);
    font: inherit;
    font-size: 14px;
}

.app-chat-form input:focus {
    border-color: var(--app-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 133, 62, .1);
}

.app-chat-form button {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: var(--app-accent);
    color: #fff;
    cursor: pointer;
}

.app-chat-form button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    transform: rotate(-90deg);
}

.mini-reader {
    position: fixed;
    z-index: 55;
    right: 50%;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px 40px;
    align-items: center;
    width: min(100%, 430px);
    min-height: 66px;
    gap: 10px;
    padding: 8px 11px;
    border-top: 1px solid var(--app-line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 24px rgba(20,24,30,.08);
    transform: translateX(-50%);
}

.mini-reader > img {
    width: 44px;
    height: 48px;
    border-radius: 7px;
    object-fit: cover;
}

.mini-reader > div {
    min-width: 0;
}

.mini-reader strong,
.mini-reader span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-reader strong {
    font-size: 14px;
}

.mini-reader span {
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 14px;
}

.mini-progress {
    height: 2px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 9px;
    background: #e4e6e9;
}

.mini-play {
    border: 1px solid #dfe2e6;
    color:var(--brand-text);
}

.mini-play svg {
    fill: currentColor;
}

.mini-close {
    width: 40px;
    height: 40px;
}

.sheet-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    background: rgba(9, 12, 18, .45);
    opacity: 0;
    transition: opacity 220ms ease;
}

.sheet-backdrop.is-open {
    opacity: 1;
}

.detail-sheet {
    position: fixed;
    z-index: 90;
    right: 50%;
    bottom: 0;
    left: 50%;
    width: min(100%, 430px);
    height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(8,12,18,.18);
    transform: translate(-50%, 105%);
    transition: transform 280ms var(--app-ease);
}

.detail-sheet.is-open {
    transform: translate(-50%, 0);
}

.sheet-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 9px;
    background: #d9dce0;
}

.sheet-close {
    position: absolute;
    top: 13px;
    right: 12px;
}

.sheet-body {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    gap: 16px;
    background: #fff;
    color: #1c2026;
}

.sheet-cover {
    width: 112px;
    aspect-ratio: 3 / 4.15;
    border-radius: 12px;
    background: var(--app-soft);
    object-fit: cover;
}

.sheet-copy {
    min-width: 0;
    padding-top: 10px;
}

.sheet-type {
    color:var(--brand-text);
    font-size: 14px;
    font-weight: 750;
}

.sheet-copy h2 {
    margin: 7px 36px 0 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.45px;
    line-height: 1.28;
}

.sheet-copy p {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sheet-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.sheet-actions .primary-action {
    min-width: 0;
    padding: 0 8px;
    white-space: nowrap;
}

.sheet-actions .bookmark-action { width: 100%; min-height: 46px; border-radius: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; background: #fff; color: #24262b; }
.sheet-actions .episode-sort { font-size: 14px; border-radius: 12px; }
.sheet-body .sheet-copy h2 { color: #1c2026; }
.sheet-body .secondary-action { background: #fff; color: #24262b; }

.secondary-action {
    min-width: 0;
    min-height: 46px;
    padding: 0 8px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: var(--app-white);
    color: var(--app-ink);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.secondary-action:active {
    background: var(--app-soft);
}

.catalog-load-more {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 22px 0 8px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: var(--app-white);
    color: var(--app-ink);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.catalog-load-more[hidden] {
    display: none;
}

.genre-filter-options button[hidden] {
    display: none;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 46px;
    gap: 7px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    background: var(--app-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.primary-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
}

.bookmark-action {
    border: 1px solid #dfe2e6;
}

.app-toast {
    position: fixed;
    z-index: 110;
    right: 50%;
    bottom: calc(91px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    width: max-content;
    max-width: calc(min(100%, 430px) - 36px);
    padding: 11px 16px;
    border-radius: 10px;
    background: #24272d;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.quick-section {
    margin-top: 22px;
}

.quick-menu {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.quick-menu button {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    min-height: 94px;
    gap: 6px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--app-ink);
    cursor: pointer;
}

.quick-menu button > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid #dfe2e6;
    border-radius: 13px;
    color: #393e46;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 100ms ease;
}

.quick-menu button:active > span {
    transform: scale(.92);
    border-color: var(--app-accent);
    background: rgba(0, 133, 62, .07);
    color:var(--brand-text);
}

.quick-menu svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-menu strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.35px;
    line-height: 1.25;
    white-space: nowrap;
}

.app-ranking-list,
.community-list {
    border-top: 1px solid var(--app-line);
}

.app-ranking-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 35px;
    align-items: center;
    min-height: 70px;
    border-bottom: 1px solid var(--app-line);
}

.app-ranking-row > b {
    color: var(--app-ink);
    font-size: 18px;
    font-style: italic;
    font-weight: 850;
}

.app-ranking-row:nth-child(-n+3) > b {
    color:var(--brand-text);
}

.app-ranking-row > button {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 69px;
    gap: 11px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.app-ranking-row img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}

.app-ranking-row span {
    min-width: 0;
}

.app-ranking-row strong,
.app-ranking-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-ranking-row strong {
    font-size: 14px;
    font-weight: 750;
}

.app-ranking-row small {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 14px;
}

.app-ranking-row > em {
    color: var(--app-muted);
    font-size: 14px;
    font-style: normal;
    text-align: right;
}

.community-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 18px;
    align-items: center;
    width: 100%;
    min-height: 76px;
    gap: 11px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.community-row img {
    width: 64px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.community-row span {
    min-width: 0;
}

.community-row strong,
.community-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-row strong {
    font-size: 14px;
    font-weight: 730;
}

.community-row small {
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 14px;
}

.community-row > svg,
.attendance-chevron {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arcade-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 31%;
    gap: 12px;
    margin: 0;
    padding: 2px 4px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 4px;
    touch-action: pan-x;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.arcade-rail::-webkit-scrollbar {
    display: none;
}

.arcade-card {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
}

.arcade-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1.18 / 1;
    border-radius: 11px;
    background: var(--app-soft);
    object-fit: cover;
}

.arcade-card strong {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-banner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    width: 100%;
    min-height: 74px;
    gap: 12px;
    margin-top: 26px;
    padding: 11px 13px;
    border: 1px solid #dedfe3;
    border-radius: 14px;
    background: #fff;
    color: var(--app-ink);
    text-align: left;
    cursor: pointer;
}

.attendance-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 133, 62, .08);
    color:var(--brand-text);
}

.attendance-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attendance-banner strong,
.attendance-banner small {
    display: block;
}

.attendance-banner strong {
    font-size: 14px;
    font-weight: 760;
}

.attendance-banner small {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 14px;
}

.library-tools {
    margin-top: 22px;
}

.library-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--app-line);
    border-radius: 14px;
}

.library-tool-grid button {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 82px;
    gap: 8px;
    padding: 12px 2px;
    border: 0;
    border-right: 1px solid var(--app-line);
    background: transparent;
    color: #454a52;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.library-tool-grid button:last-child {
    border-right: 0;
}

.library-tool-grid svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sheet-detail-content {
    margin-top: 20px;
}

.work-summary {
    padding: 18px 0;
    border-top: 1px solid var(--app-line);
}

.work-summary h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.work-summary p {
    margin: 10px 0 0;
    color: #4e545d;
    font-size: 14px;
    line-height: 1.7;
}

.sheet-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 -18px;
    border-top: 1px solid var(--app-line);
    border-bottom: 1px solid var(--app-line);
}

.sheet-tabs button {
    position: relative;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: #666c74;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.sheet-tabs button::after {
    content: '';
    position: absolute;
    right: 25%;
    bottom: -1px;
    left: 25%;
    height: 2px;
    background: transparent;
}

.sheet-tabs button.is-active {
    color: var(--app-ink);
    font-weight: 800;
}

.sheet-tabs button.is-active::after {
    background: var(--app-accent);
}

.episode-list {
    padding-bottom: 4px;
}

.episode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 66px;
    padding: 9px 2px;
    border: 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.episode-row.is-latest {
    background: linear-gradient(90deg, rgba(0, 133, 62,.06), transparent);
}

.episode-row strong,
.episode-row small {
    display: block;
}

.episode-row strong {
    font-size: 14px;
    font-weight: 740;
}

.episode-row small {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 14px;
}

.episode-row.is-latest small {
    color:var(--brand-text);
    font-weight: 700;
}

.episode-row > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.work-info-list {
    margin: 0;
    padding: 10px 0;
}

.work-info-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    padding: 12px 2px;
    border-bottom: 1px solid var(--app-line);
    font-size: 14px;
}

.work-info-list dt {
    color: var(--app-muted);
}

.work-info-list dd {
    margin: 0;
    font-weight: 650;
}

.work-comments-panel article,
.activity-list article {
    padding: 15px 2px;
    border-bottom: 1px solid var(--app-line);
}

.work-comments-panel strong,
.activity-list strong {
    display: block;
    font-size: 14px;
}

.work-comments-panel p,
.activity-list p {
    margin: 7px 0;
    color: #4c525b;
    font-size: 14px;
    line-height: 1.5;
}

.work-comments-panel span,
.activity-list span {
    color: var(--app-muted);
    font-size: 14px;
}

.content-panel {
    position: fixed;
    z-index: 88;
    top: 0;
    right: auto;
    bottom: 0;
    left: 50%;
    width: min(100%, 430px);
    height: 100dvh;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: translate(-50%, 100%);
    transition: transform 240ms var(--app-ease);
    will-change: transform;
}

.content-panel.is-open {
    transform: translate(-50%, 0);
}

.content-panel.is-instant-navigation {
    transition: none;
}

.content-panel:focus,
.detail-sheet:focus {
    outline: none;
}

.content-panel-header {
    position: sticky;
    z-index: 3;
    top: 0;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    min-height: 62px;
    border-bottom: 1px solid var(--app-line);
    background: #fff;
}

.content-panel-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.panel-back {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.panel-settings {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    justify-self: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--app-ink);
    cursor: pointer;
}

.panel-settings:active {
    transform: scale(.93);
}

.panel-settings svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel-back svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.content-panel-body {
    height: calc(100% - 62px);
    padding: 0 18px calc(30px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-panel-body::-webkit-scrollbar,
.detail-sheet::-webkit-scrollbar,
.reader-pages::-webkit-scrollbar {
    display: none;
}

.detail-sheet,
.reader-pages {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.attendance-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    margin: 12px 0 2px;
    padding: 0 14px;
    border: 1px solid #e1e3e6;
    border-radius: 13px;
}

.attendance-summary span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-summary svg,
.service-leading svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attendance-summary b {
    color:var(--brand-text);
    font-size: 14px;
}

.service-group {
    margin: 0 -18px;
    padding: 20px 18px 0;
    border-bottom: 8px solid #f5f6f7;
}

.service-group:last-child {
    border-bottom: 0;
}

.service-group h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
}

.service-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    gap: 10px;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.service-row:last-child {
    border-bottom: 0;
}

.service-leading {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #30353c;
}

.service-row strong,
.service-row small {
    display: block;
}

.service-row strong {
    font-size: 14px;
    font-weight: 720;
}

.service-row small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-row > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.panel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    border-bottom: 1px solid var(--app-line);
}

.panel-summary strong {
    font-size: 17px;
    font-weight: 800;
}

.panel-summary span,
.panel-summary button {
    color: var(--app-muted);
    font-size: 14px;
}

.panel-summary button {
    min-height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.panel-work-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) 44px;
    align-items: center;
    min-height: 92px;
    border-bottom: 1px solid var(--app-line);
}

.panel-work-row.has-rank {
    grid-template-columns: 27px minmax(0,1fr) 44px;
}

.panel-work-row > b {
    width: 27px;
    color:var(--brand-text);
    font-size: 18px;
    font-style: italic;
}

.panel-work-row > button:not(.bookmark-button) {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 91px;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.panel-work-row img {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    min-width: 64px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
}

/* Language selection is temporarily paused, not removed. */
[data-settings-account-view="language"], [data-account-view="language"] { display: none !important; }

.panel-work-row span {
    flex: 1;
    min-width: 0;
}

.panel-work-row strong,
.panel-work-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-work-row strong {
    font-size: 14px;
}

.panel-work-row small {
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
}

.panel-work-row .bookmark-button {
    position: static;
}

.panel-community-list article {
    display: grid;
    grid-template-columns: 84px minmax(0,1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--app-line);
}

.panel-community-list img {
    width: 84px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

.panel-community-list strong,
.panel-community-list span {
    display: block;
}

.panel-community-list strong {
    font-size: 14px;
}

.panel-community-list p {
    margin: 6px 0;
    color: #565c65;
    font-size: 14px;
    line-height: 1.45;
}

.panel-community-list span {
    color: var(--app-muted);
    font-size: 14px;
}

.panel-game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px 12px;
    padding-top: 16px;
}

.panel-game-grid button {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.panel-game-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1.35 / 1;
    border-radius: 12px;
    object-fit: cover;
}

.panel-game-grid strong {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-hero,
.points-hero,
.account-profile,
.request-intro {
    padding: 28px 4px;
    border-bottom: 1px solid var(--app-line);
    text-align: center;
}

.attendance-hero > span {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 16px;
    background: rgba(0, 133, 62,.08);
    color:var(--brand-text);
}

.attendance-hero svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.attendance-hero strong,
.attendance-hero p,
.attendance-hero b {
    display: block;
}

.attendance-hero strong {
    font-size: 20px;
}

.attendance-hero p {
    margin: 8px 0 14px;
    color: var(--app-muted);
    font-size: 14px;
}

.attendance-hero b {
    color:var(--brand-text);
    font-size: 14px;
}

.mission-list article,
.point-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    border-bottom: 1px solid var(--app-line);
}

.mission-list article > span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mission-list svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.mission-list button {
    min-width: 68px;
    min-height: 38px;
    border: 1px solid var(--app-accent);
    border-radius: 10px;
    background: #fff;
    color:var(--brand-text);
    font-size: 14px;
    font-weight: 750;
}

.mission-list button:disabled {
    border-color: #dfe2e6;
    color: var(--app-muted);
}

.points-hero span,
.points-hero strong {
    display: block;
}

.points-hero span {
    color: var(--app-muted);
    font-size: 14px;
}

.points-hero strong {
    margin-top: 7px;
    font-size: 30px;
}

.point-list strong,
.point-list small {
    display: block;
}

.point-list small {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 14px;
}

.point-list b {
    font-size: 14px;
}

.point-list b.positive {
    color:var(--brand-text);
}

.account-profile img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
}

.account-profile strong,
.account-profile span {
    display: block;
}

.account-profile strong {
    margin-top: 11px;
    font-size: 18px;
}

.account-profile span {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 14px;
}

.account-list button {
    display: grid;
    grid-template-columns: 1fr auto 18px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    color: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
}

.account-list small {
    color: var(--app-muted);
    font-size: 14px;
    font-weight: 500;
}

.account-list svg {
    grid-column: 3;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.account-logged-out {
    display: flex;
    min-height: calc(100dvh - 110px);
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 32px 10px 76px;
    text-align: center;
}

.account-avatar-placeholder {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    margin-bottom: 19px;
    border-radius: 50%;
    background: var(--app-soft);
    color: #68707a;
}

.account-avatar-placeholder svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
}

.account-logged-out > strong {
    font-size: 21px;
    font-weight: 820;
}

.account-logged-out > p {
    margin: 10px 0 24px;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.65;
}

.account-primary-button,
.account-secondary-button,
.account-danger-button {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 780;
    cursor: pointer;
}

.account-primary-button {
    border: 1px solid var(--app-accent);
    background: var(--app-accent);
    color: #fff;
}

.account-logged-out .account-primary-button {
    max-width: 250px;
}

.account-secondary-button {
    margin-top: 9px;
    border: 1px solid var(--app-line);
    background: transparent;
    color: var(--app-ink);
}

.account-danger-button {
    border: 1px solid #db2d25;
    background: #db2d25;
    color: #fff;
}

.account-form {
    padding: 26px 2px 36px;
}

.account-form-intro {
    margin-bottom: 25px;
}

.account-form-intro strong,
.account-form-intro p {
    display: block;
}

.account-form-intro strong {
    font-size: 21px;
    font-weight: 820;
}

.account-form-intro p {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.55;
}

.account-form > label:not(.account-choice) {
    display: block;
    margin-bottom: 17px;
}

.account-form > label:not(.account-choice) > span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 720;
}

.account-form input:not([type="radio"]) {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d9dce1;
    border-radius: 11px;
    outline: 0;
    background: var(--app-white);
    color: var(--app-ink);
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-form input:not([type="radio"]):focus {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 3px rgba(0, 133, 62, .11);
}

.account-form-message {
    min-height: 20px;
    margin: -4px 0 12px;
    color: #d92d20;
    font-size: 14px;
    line-height: 1.45;
}

.account-form-message.is-success {
    color: #16884b;
}

.account-form-note {
    margin: 12px 0 0;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.account-choice-list {
    margin-bottom: 24px;
    border-top: 1px solid var(--app-line);
}

.account-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    min-height: 70px;
    border-bottom: 1px solid var(--app-line);
    cursor: pointer;
}

.account-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.account-choice strong,
.account-choice small {
    display: block;
}

.account-choice strong {
    font-size: 14px;
}

.account-choice small {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 14px;
}

.account-choice i {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1.5px solid #bcc1c8;
    border-radius: 50%;
}

.account-choice input:checked ~ i {
    border: 6px solid var(--app-accent);
}

.account-choice input:focus-visible ~ i {
    outline: 3px solid rgba(0, 133, 62, .24);
    outline-offset: 2px;
}

.account-session-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 28px;
}

.account-session-actions button {
    min-height: 46px;
    border: 1px solid var(--app-line);
    border-radius: 11px;
    background: transparent;
    color: var(--app-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.account-session-actions button.is-danger {
    border-color: rgba(219, 45, 37, .22);
    color: #d92d20;
}

.account-delete-confirm {
    padding-top: 44px;
    text-align: center;
}

.account-danger-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(217, 45, 32, .1);
    color: #d92d20;
    font-size: 30px;
    font-weight: 800;
}

.account-delete-confirm > label,
.account-delete-confirm .account-form-message {
    text-align: left;
}

.request-intro strong {
    display: block;
    font-size: 21px;
}

.request-intro p {
    margin: 9px 0 18px;
    color: var(--app-muted);
    font-size: 14px;
}

.request-list article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 5px 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--app-line);
}

.request-list span {
    grid-row: span 2;
    align-self: start;
    color:var(--brand-text);
    font-size: 14px;
    font-weight: 750;
}

.request-list strong {
    font-size: 14px;
}

.request-list small {
    color: var(--app-muted);
    font-size: 14px;
}

.reader-overlay {
    position: fixed;
    z-index: 130;
    inset: 0;
    overflow: hidden;
    background: #111318;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 220ms var(--app-ease);
}

.reader-overlay.is-open {
    opacity: 1;
    transform: translateY(0);
}

.reader-header {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) auto 40px;
    gap: 3px;
    align-items: center;
    width: min(100%, 430px);
    min-height: calc(62px + env(safe-area-inset-top,0px));
    padding-top: env(safe-area-inset-top,0px);
    background: rgba(17,19,24,.94);
    color: #fff;
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
}

.reader-header button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
}

.reader-header svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reader-heading {
    min-width: 0;
    text-align: left;
}

.reader-heading strong,
.reader-heading span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-heading strong {
    font-size: 14px;
}

.reader-heading span {
    margin-top: 3px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

.reader-header .reader-subscribe {
    display: inline-flex;
    width: auto;
    min-width: 70px;
    height: 32px;
    gap: 4px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.reader-subscribe svg { width: 15px; height: 15px; }
.reader-header .reader-subscribe.is-active { border-color: var(--app-accent); background: var(--app-accent); color: #fff; }

.reader-pages {
    width: min(100%, 430px);
    height: 100dvh;
    margin: 0 auto;
    padding: calc(62px + env(safe-area-inset-top,0px)) 0 64px;
    overflow-y: auto;
    background: #1c1f25;
    scroll-behavior: smooth;
}

.reader-pages img {
    display: block;
    width: 100%;
    min-height: 72dvh;
    background: #fff;
    object-fit: cover;
    object-position: top center;
}

.reader-pages.is-live img {
    height: auto;
    min-height: 0;
    object-fit: contain;
}

.reader-message {
    display: grid;
    min-height: calc(100dvh - 126px);
    place-content: center;
    gap: 16px;
    padding: 32px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.reader-message button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.reader-controls {
    position: fixed;
    z-index: 2;
    right: 50%;
    bottom: 0;
    left: 50%;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 8px;
    align-items: center;
    width: min(100%, 430px);
    min-height: calc(58px + env(safe-area-inset-bottom,0px));
    padding: 0 10px env(safe-area-inset-bottom,0px);
    background: rgba(17,19,24,.96);
    color: #fff;
    transform: translateX(-50%);
}

.reader-controls button {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
}

.reader-controls button:first-child {
    justify-self: start;
    text-align: left;
}

.reader-controls button:last-child {
    justify-self: end;
    text-align: right;
}

.reader-controls button:disabled { opacity: .38; cursor: not-allowed; }

.reader-controls .reader-comments-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
    font-size: 14px;
}

.reader-comments-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.reader-comments-backdrop {
    position: fixed;
    z-index: 3;
    inset: 0;
    background: rgba(0,0,0,.58);
    opacity: 0;
    transition: opacity 220ms ease;
}

.reader-comments-backdrop.is-open { opacity: 1; }
.reader-comments-backdrop[hidden],
.reader-comments-sheet[hidden] { display: none; }

.reader-comments-sheet {
    position: fixed;
    z-index: 4;
    bottom: 0;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: min(100%,430px);
    max-height: min(76dvh,650px);
    min-height: 260px;
    padding: 0 18px env(safe-area-inset-bottom,0px);
    border-radius: 20px 20px 0 0;
    background: #fff;
    color: #191c21;
    box-shadow: 0 -12px 36px rgba(0,0,0,.22);
    transform: translate(-50%,105%);
    transition: transform 240ms var(--app-ease);
}

.reader-comments-sheet.is-open { transform: translate(-50%,0); }
.reader-comments-handle { width: 42px; height: 4px; margin: 9px auto 10px; border-radius: 99px; background: #d5d9df; }
.reader-comments-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 3px 0 16px; border-bottom: 1px solid #e7e9ec; }
.reader-comments-sheet h2 { display: inline; margin: 0; font-size: 18px; }
.reader-comments-sheet header span { margin-left: 6px; color:var(--brand-text); font-size: 14px; font-weight: 750; }
.reader-comments-close { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: #f2f3f5; color: #303640; cursor: pointer; }
.reader-comments-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.reader-comments-list { flex: 1; min-height: 100px; overflow-y: auto; padding: 4px 0; color: #4c535c; font-size: 14px; }
.reader-comment { padding: 15px 0; border-bottom: 1px solid #eef0f2; }
.reader-comment strong { color: #20242a; font-size: 14px; }
.reader-comment p { margin: 7px 0; line-height: 1.55; overflow-wrap: anywhere; }
.reader-comment small { color: #89909a; font-size: 14px; }
.reader-comment-reply { color:var(--brand-text); font-size: 14px; font-weight: 700; }
.reader-comments-empty { display: grid; min-height: 160px; place-content: center; color: #8b929a; text-align: center; }
.reader-comments-empty button { margin-top: 12px; padding: 8px 12px; border: 1px solid #dfe2e6; border-radius: 8px; background: #fff; color: #303640; }
.reader-comments-note { margin: 0; padding: 12px 0 16px; border-top: 1px solid #e7e9ec; color: #9097a0; font-size: 14px; text-align: center; }

html[data-theme="dark"] .reader-comments-sheet { background: #181b20; color: #f3f4f6; }
html[data-theme="dark"] .reader-comments-list { color: #d0d5dd; }
html[data-theme="dark"] .reader-comments-sheet header,
html[data-theme="dark"] .reader-comments-note { border-color: #363d48; }
html[data-theme="dark"] .reader-comments-close { background: #2a3039; color: #d0d5dd; }
html[data-theme="dark"] .reader-comments-handle { background: #555e6c; }

body.sheet-open,
body.overlay-open,
body.filter-open,
body.chat-open,
body.reader-open {
    overflow: hidden;
}

/* Library + My information redesign */
.library-content {
    padding-top: 2px;
}

.library-content > h1 {
    margin: 8px 0 18px;
    font-size: 29px;
    letter-spacing: -.7px;
}

.library-tabs {
    margin: 0 -18px;
    border-top: 0;
}

.library-tabs button {
    min-height: 50px;
}

.library-tabs button::after {
    right: 12%;
    left: 12%;
}

.library-resume-section {
    margin-top: 25px;
}

.library-resume-section > h2 {
    margin: 0 0 13px;
    font-size: 19px;
}

.library-continue-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--app-line);
}

.library-continue-main {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.library-continue-main > img {
    display: block;
    width: 82px;
    height: 110px;
    border-radius: 10px;
    background: var(--app-soft);
    object-fit: cover;
}

.library-continue-copy {
    min-width: 0;
}

.library-continue-copy strong,
.library-continue-copy > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-continue-copy strong {
    font-size: 19px;
    font-weight: 800;
}

.library-continue-copy > span {
    margin-top: 7px;
    color: var(--app-muted);
    font-size: 14px;
}

.library-continue-progress {
    display: block;
    height: 4px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--app-line);
}

.library-continue-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--app-accent);
}

.library-continue-action,
.library-work-action {
    border: 0;
    border-radius: 10px;
    background: rgba(0, 133, 62, .09);
    color:var(--brand-text);
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
}

.library-continue-action {
    min-width: 74px;
    min-height: 42px;
}

.library-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
}

.library-list-header strong {
    font-size: 16px;
}

.library-list-header strong span {
    color:var(--brand-text);
}

.library-list-header > span {
    color: var(--app-muted);
    font-size: 14px;
}

.library-list {
    display: block;
    padding: 0;
    border-top: 1px solid var(--app-line);
}

.library-work-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 118px;
    gap: 12px;
    border-bottom: 1px solid var(--app-line);
}

.library-work-main {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 117px;
    gap: 13px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.library-work-main img {
    display: block;
    width: 68px;
    height: 94px;
    border-radius: 8px;
    background: var(--app-soft);
    object-fit: cover;
}

.library-work-copy {
    min-width: 0;
}

.library-work-copy strong,
.library-work-copy > span,
.library-work-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-work-copy strong {
    font-size: 14px;
    font-weight: 780;
}

.library-work-copy > span {
    margin-top: 7px;
    color: #5f6570;
    font-size: 14px;
}

.library-work-copy > span:not(.library-work-progress) > i {
    display: inline-grid;
    min-width: 22px;
    height: 17px;
    place-items: center;
    margin-left: 6px;
    border-radius: 4px;
    background: var(--app-accent);
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.library-work-copy small {
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 14px;
}

.library-work-copy > .library-work-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    overflow: visible;
}

.library-work-progress > i {
    display: block;
    flex: 1;
    min-width: 0;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--app-line);
}

.library-work-progress > i > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--app-accent);
}

.library-work-progress > em {
    min-width: 28px;
    color: var(--app-muted);
    font-size: 14px;
    font-style: normal;
    font-weight: 650;
    text-align: right;
}

.library-work-action {
    min-width: 68px;
    min-height: 38px;
    padding: 0 10px;
}

.my-profile-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 26px 0;
}

.my-profile-row img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.my-profile-row > span {
    min-width: 0;
}

.my-profile-row strong,
.my-profile-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-profile-row strong {
    font-size: 18px;
    font-weight: 800;
}

.my-profile-row small {
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 14px;
}

.my-profile-row > button {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(0, 133, 62, .48);
    border-radius: 10px;
    background: transparent;
    color:var(--brand-text);
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
}

.my-activity-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 19px 0 23px;
    border-top: 1px solid var(--app-line);
    border-bottom: 1px solid var(--app-line);
}

.my-activity-summary button {
    min-height: 50px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid var(--app-line);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.my-activity-summary button:last-child {
    border-right: 0;
}

.my-activity-summary small,
.my-activity-summary strong {
    display: block;
}

.my-activity-summary small {
    color: var(--app-muted);
    font-size: 14px;
}

.my-activity-summary strong {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 800;
}

.my-settings-group {
    margin: 0 -18px;
    padding: 24px 18px 0;
    border-top: 8px solid var(--app-soft);
}

.my-settings-group:first-of-type {
    border-top: 0;
}

.my-settings-group h3,
.login-basic-settings h3 {
    margin: 0 0 7px;
    color: var(--app-muted);
    font-size: 14px;
    font-weight: 720;
}

.my-settings-group .account-list button {
    min-height: 56px;
}

.account-session-actions {
    display: block;
    padding: 28px 0 8px;
}

.account-session-actions button {
    width: 100%;
}

.account-session-actions button:first-child {
    min-height: 48px;
    color: var(--app-ink);
}

.account-session-actions button.is-danger {
    min-height: 44px;
    margin-top: 8px;
    border-color: transparent;
    color: var(--app-accent);
}

.login-basic-settings {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--app-line);
}

.login-basic-settings button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    gap: 9px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.login-basic-settings button span,
.login-basic-settings button strong,
.login-basic-settings button small {
    display: block;
}

.login-basic-settings button small {
    margin-top: 4px;
    color: var(--app-muted);
    font-size: 14px;
    font-weight: 500;
}

.login-basic-settings button b {
    color: var(--app-muted);
    font-size: 14px;
    font-weight: 600;
}

.login-basic-settings button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

html[data-theme="dark"] .library-work-copy > span {
    color: #c0c5cd;
}

html[data-theme="dark"] {
    --app-ink: #f3f4f6;
    --app-muted: #a9afb9;
    --app-line: #343841;
    --app-soft: #262a31;
    --app-white: #181b20;
    --app-shadow: 0 12px 36px rgba(0, 0, 0, .32);
    color-scheme: dark;
    background: #0f1115;
}

html[data-theme="dark"] body {
    background: #0f1115;
}

html[data-theme="dark"] .app-header,
html[data-theme="dark"] .content-panel-header,
html[data-theme="dark"] .app-chat-header,
html[data-theme="dark"] .app-chat-form {
    background: rgba(24, 27, 32, .95);
}

html[data-theme="dark"] .content-panel,
html[data-theme="dark"] .detail-sheet,
html[data-theme="dark"] .genre-filter-dialog,
html[data-theme="dark"] .app-chat-panel {
    background: var(--app-white);
}

html[data-theme="dark"] .app-chat-messages {
    background: #15181d;
}

html[data-theme="dark"] .app-chat-bubble {
    border-color: #363b44;
    background: #272b32;
    color: #f3f4f6;
}

html[data-theme="dark"] .app-chat-message.is-user .app-chat-bubble {
    border-color: var(--app-accent);
    background: var(--app-accent);
}

html[data-theme="dark"] .app-chat-form input {
    border-color: #3a3f48;
    background: #22262c;
}

html[data-theme="dark"] .search-field,
html[data-theme="dark"] .genre-tabs button,
html[data-theme="dark"] .content-filter-button,
html[data-theme="dark"] .genre-filter-options button,
html[data-theme="dark"] .genre-filter-reset,
html[data-theme="dark"] .attendance-banner,
html[data-theme="dark"] .mission-list button {
    border-color: var(--app-line);
    background: #20242a;
    color: var(--app-ink);
}

html[data-theme="dark"] .genre-tabs button.is-active,
html[data-theme="dark"] .genre-filter-options button.is-selected {
    border-color: var(--app-accent);
    background: var(--app-accent);
    color: #fff;
}

html[data-theme="dark"] .app-bottom-nav {
    border-color: rgba(255, 255, 255, .14);
    background: linear-gradient(145deg, rgba(44, 48, 57, .88), rgba(24, 27, 33, .76));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .46),
        inset 0 1px 0 rgba(255, 255, 255, .18),
        inset 0 -1px 0 rgba(255, 255, 255, .05);
}

html[data-theme="dark"] .app-bottom-nav button {
    color: #a6acb6;
}

html[data-theme="dark"] .app-bottom-nav button.is-active {
    color: #fff;
}

html[data-theme="dark"] .service-group {
    border-bottom-color: #101217;
}

html[data-theme="dark"] .account-avatar-placeholder,
html[data-theme="dark"] .quick-menu button > span {
    border-color: var(--app-line);
    color: #c1c6ce;
}

html[data-theme="dark"] .account-form input:not([type="radio"]) {
    border-color: var(--app-line);
    background: #20242a;
}

html[data-theme="dark"] .panel-community-list p,
html[data-theme="dark"] .work-comments-panel p,
html[data-theme="dark"] .activity-list p {
    color: #c0c5cd;
}

[hidden] {
    display: none !important;
}

@media (max-width: 360px) {
    .view-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .app-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .genre-tabs {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .cover-rail {
        grid-auto-columns: 31.5%;
        padding-right: 2px;
        padding-left: 2px;
    }

    .discover-grid {
        column-gap: 6px;
    }

    .quick-menu button > span {
        width: 50px;
        height: 50px;
    }

    .continue-feature {
        min-height: 190px;
    }

    .sheet-body {
        grid-template-columns: 96px minmax(0,1fr);
    }

    .sheet-cover {
        width: 96px;
    }
}

@media (min-width: 431px) {
    .app-shell {
        min-height: 100vh;
    }
}

.app-install-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 14px;
    padding: 14px 15px;
    border: 1px solid var(--brand-line);
    border-radius: var(--app-radius-md);
    background: #fff5f3;
    color:var(--brand-text);
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(0, 133, 62, .07);
}

.app-install-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.app-install-copy strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.app-install-copy small {
    color: #8e514b;
    font-size: 14px;
    font-weight: 550;
}

.app-install-link svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
