/* Announcements and the shared site footer. */
.wisetl-announcement-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wisetl-announcement, .wisetl-announcement-empty { display: flex; flex-direction: column; min-height: 170px; padding: 20px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--surface-color); box-shadow: var(--shadow-soft); }
.wisetl-announcement time { color: var(--gold-primary); font-size: .74rem; font-weight: 800; }
.wisetl-announcement h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.wisetl-announcement p { margin: 0; color: var(--text-soft); font-size: .86rem; line-height: 1.55; }
.wisetl-announcement > span { margin-top: auto; padding-top: 12px; color: var(--gold-primary); font-size: .8rem; font-weight: 800; }
.wisetl-announcement:hover h3 { color: var(--gold-primary); }
.wisetl-announcement-empty { align-items: center; justify-content: center; min-height: 120px; gap: 4px; color: var(--text-soft); text-align: center; }
.wisetl-announcement-empty strong { color: var(--text-color); }
.wisetl-announcement-page { width: min(900px, calc(100% - 48px)); margin: 58px auto 96px; font-family: var(--ui-font); }
.wisetl-announcement-article { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--border-color); border-radius: 22px; background: var(--surface-color); box-shadow: var(--shadow-soft); }
.wisetl-announcement-back { display: inline-flex; margin-bottom: 28px; color: var(--gold-primary); font-size: .86rem; font-weight: 750; }
.wisetl-announcement-header { padding-bottom: 28px; border-bottom: 1px solid var(--border-color); }
.wisetl-announcement-header h1 { margin: 0; color: var(--text-color); font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.1; letter-spacing: -.04em; }
.wisetl-announcement-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 16px; color: var(--text-soft); font-size: .86rem; }
.wisetl-announcement-meta time::before { margin-right: 16px; color: var(--border-color); content: "•"; }
.wisetl-announcement-content { max-width: 760px; margin-top: 30px; color: var(--text-color); font-size: 1.02rem; line-height: 1.8; }
.wisetl-announcement-content > :first-child { margin-top: 0; }
.wisetl-announcement-content > :last-child { margin-bottom: 0; }
.wisetl-announcement-content img { display: block; max-width: 100%; height: auto; margin: 24px 0; border-radius: 12px; box-shadow: var(--shadow-soft); }
.wisetl-announcement-content a { color: var(--gold-primary); font-weight: 700; }

/* Information pages */
.wisetl-information-page { width: min(860px, calc(100% - 48px)); margin: 58px auto 96px; font-family: var(--ui-font); }
.wisetl-information-card { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--border-color); border-radius: 22px; background: var(--surface-color); box-shadow: var(--shadow-soft); }
.wisetl-information-eyebrow { margin: 0 0 10px; color: var(--gold-primary); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.wisetl-information-card h1 { margin: 0; color: var(--text-color); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; }
.wisetl-information-intro { max-width: 670px; margin: 20px 0 34px; color: var(--text-soft); font-size: 1.04rem; line-height: 1.7; }
.wisetl-information-sections { display: grid; gap: 0; }
.wisetl-information-sections section { padding: 22px 0; border-top: 1px solid var(--border-color); }
.wisetl-information-sections h2 { margin: 0 0 8px; color: var(--text-color); font-size: 1.05rem; }
.wisetl-information-sections p { margin: 0; color: var(--text-soft); line-height: 1.7; }
.wisetl-information-sections a { color: var(--gold-primary); font-weight: 700; }

/* Premium chapter access */
.chapter-access-status { display: inline-grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; margin-left: 14px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--gold-primary); font-size: .82rem; }
.chapter-entry.is-premium .chapter-access-status { border-color: var(--gold-outline); background: var(--gold-soft); }
.chapter-entry.is-free .chapter-access-status { color: var(--text-soft); }
.chapter-section { padding: 24px; border: 1px solid var(--border-color); border-radius: 18px; background: var(--surface-color); box-shadow: var(--shadow-soft); }
.chapter-section-controls { display: flex; align-items: center; gap: 12px; }
.chapter-sort-form { display: flex; align-items: center; gap: 7px; margin: 0; }
.chapter-sort-form label { color: var(--text-soft); font-size: .76rem; font-weight: 750; }
.chapter-sort-form select { min-height: 35px; padding: 6px 28px 6px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-color); color: var(--text-color); font: 700 .8rem var(--ui-font); }
.chapter-update-time { display: block; margin-left: auto; color: var(--text-soft); font-size: .82rem; white-space: nowrap; }
.chapter-title-text { display: none; }
.chapter-list { gap: 0; overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; }
.chapter-entry { padding: 0; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; box-shadow: none; transition: background .18s ease; }
.chapter-entry:last-child { border-bottom: 0; }
.chapter-entry:hover { background: var(--gold-tint); box-shadow: none; transform: none; }
.chapter-entry a { min-height: 61px; padding: 0 16px; gap: 14px; }
.chapter-number { color: var(--text-color); }
.wisetl-volume-heading { margin: 2rem 0 .65rem; color: var(--gold-color, #d4af37); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.wisetl-volume-heading:first-child { margin-top: 0; }
.wisetl-chapter-list-wrap { transition: opacity .18s ease; }
.wisetl-chapter-list-wrap.is-loading { opacity: .48; pointer-events: none; }
.wisetl-chapter-list-wrap.is-loading { display: grid; min-height: 150px; place-items: center; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-color); }
.wisetl-chapter-list-loading, .wisetl-chapter-list-error { margin: 0; color: var(--text-soft); font: 700 .88rem var(--ui-font); text-align: center; }
.wisetl-chapter-list-error { padding: 28px 18px; color: var(--text-color); }
.novel-synopsis-content { position: relative; max-height: 5.25em; overflow: hidden; color: var(--text-soft); transition: max-height .25s ease; }
.novel-synopsis-content::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2em; background: linear-gradient(transparent, var(--surface-color)); content: ""; pointer-events: none; }
.novel-synopsis-content.is-expanded { max-height: none; }
.novel-synopsis-content.is-expanded::after { display: none; }
.novel-synopsis-content > :first-child { margin-top: 0; }
.novel-synopsis-content > :last-child { margin-bottom: 0; }
.novel-synopsis-toggle { margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--gold-primary); font: 750 .85rem var(--ui-font); cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }

/* Community ratings */
.wisetl-rating-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-color); font-family: var(--ui-font); }
.wisetl-rating-panel-summary { display: grid; gap: 3px; min-width: 145px; }
.wisetl-rating-panel-label { color: var(--text-soft); font-size: .73rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.wisetl-novel-rating-summary { display: inline-flex; align-items: baseline; gap: 3px; color: var(--gold-primary); font-size: .95rem; }
.wisetl-novel-rating-summary strong { color: var(--text-color); font-size: 1.04rem; }
.wisetl-novel-rating-summary.is-unrated { color: var(--text-soft); font-size: .82rem; font-weight: 650; }
.wisetl-rating-count { color: var(--text-soft); font-size: .78rem; font-weight: 600; }
.wisetl-rating-stars { display: inline-flex; align-items: center; gap: 3px; }
.wisetl-rating-star { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--border-color); font-size: 1.45rem; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.wisetl-rating-star:hover, .wisetl-rating-star:focus-visible, .wisetl-rating-star.is-selected { color: var(--gold-primary); background: transparent; transform: none; box-shadow: none; }
.wisetl-rating-star:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; border-radius: 4px; }
.wisetl-rating-star:disabled { cursor: wait; opacity: .65; }
.wisetl-rating-your-rating, .wisetl-rating-login { flex-basis: 100%; color: var(--text-soft); font-size: .8rem; }
.wisetl-rating-login { color: var(--gold-primary); font-weight: 750; }
.wisetl-home-rating { display: inline-flex; margin: 6px 2px 0; font-size: .8rem; }
.wisetl-home-rating.is-unrated { margin-top: 7px; font-size: .72rem; }

/* Homepage shelves: arrows on desktop, natural swipe on touch screens. */
.wisetl-shelf { position: relative; }
.wisetl-shelf-track { scrollbar-width: none; -ms-overflow-style: none; }
.wisetl-shelf-track::-webkit-scrollbar { display: none; }
.wisetl-shelf .wisetl-latest-updates-grid,
.wisetl-shelf .wisetl-home-novel-grid { display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; padding: 3px 1px 14px; scroll-behavior: smooth; scroll-snap-type: x proximity; }
.wisetl-shelf .wisetl-latest-updates-column { display: grid; flex: 0 0 min(440px, calc((100vw - 120px) / 2)); min-width: 300px; gap: 2px; scroll-snap-align: start; }
.wisetl-shelf .wisetl-latest-update { flex: 0 0 min(440px, calc((100vw - 120px) / 2)); min-width: 300px; padding: 16px 0; scroll-snap-align: start; }
.wisetl-shelf .wisetl-latest-updates-column .wisetl-latest-update { min-width: 0; }
.wisetl-shelf .wisetl-home-novel-card { flex: 0 0 clamp(142px, 15.2vw, 180px); min-width: 0; scroll-snap-align: start; }
.wisetl-shelf-arrow { position: absolute; z-index: 2; top: calc(50% - 28px); display: grid; width: 42px; height: 56px; place-items: center; padding: 0; border: 1px solid var(--border-color); border-radius: 10px; background: var(--surface-color); color: var(--text-color); box-shadow: var(--shadow-soft); font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .18s ease, color .18s ease, border-color .18s ease; }
.wisetl-shelf:hover .wisetl-shelf-arrow:not(:disabled), .wisetl-shelf:focus-within .wisetl-shelf-arrow:not(:disabled) { opacity: 1; pointer-events: auto; }
.wisetl-shelf-arrow:hover { border-color: var(--gold-primary); color: var(--gold-primary); background: var(--surface-color); transform: none; }
.wisetl-shelf-arrow:disabled { display: none; }
.wisetl-shelf-prev { left: -20px; }
.wisetl-shelf-next { right: -20px; }

@media (max-width: 768px) {
    .wisetl-rating-panel { gap: 10px 16px; margin-top: 18px; padding-top: 17px; }
    .wisetl-rating-panel-summary { min-width: 132px; }
    .wisetl-rating-star { width: 30px; height: 30px; font-size: 1.35rem; }
    .wisetl-shelf .wisetl-latest-updates-grid,
    .wisetl-shelf .wisetl-home-novel-grid { gap: 14px; padding-bottom: 12px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
    .wisetl-shelf .wisetl-latest-updates-column, .wisetl-shelf .wisetl-latest-update { flex-basis: min(88vw, 390px); min-width: min(88vw, 390px); }
    .wisetl-shelf .wisetl-latest-updates-column .wisetl-latest-update { min-width: 0; }
    .wisetl-shelf .wisetl-home-novel-card { flex-basis: min(40vw, 155px); }
    .wisetl-shelf-arrow { display: none; }
}

/* Desktop novel detail layout. */
@media (min-width: 769px) {
    .novel-page-container { width: min(1280px, calc(100% - 64px)); max-width: none; padding: 0; }
    .novel-hero { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); align-items: start; gap: 34px; margin-bottom: 30px; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .novel-cover-wrapper { position: sticky; top: calc(var(--header-height) + 22px); }
    .novel-cover-large { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; }
    .novel-meta { min-width: 0; padding: 34px 38px; border: 1px solid var(--border-color); border-radius: 18px; background: var(--surface-color); box-shadow: var(--shadow-soft); }
    .novel-meta > h1 { margin: 0 0 18px; font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.1; }
    .novel-details { display: flex; flex-wrap: wrap; gap: 8px 16px; }
    .novel-details p { display: flex; gap: 6px; margin: 0; padding: 0; border: 0; font-size: .88rem; }
    .novel-details strong { color: var(--text-soft); font-weight: 700; }
    .genre-list { margin: 16px 0 0; }
    .novel-synopsis { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-color); line-height: 1.7; }
    .novel-synopsis h2 { margin: 0 0 8px; font-size: 1rem; }
    .novel-synopsis-content { position: relative; max-height: 5.25em; overflow: hidden; color: var(--text-soft); transition: max-height .25s ease; }
    .novel-synopsis-content::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2em; background: linear-gradient(transparent, var(--surface-color)); content: ""; pointer-events: none; }
    .novel-synopsis-content.is-expanded { max-height: none; }
    .novel-synopsis-content.is-expanded::after { display: none; }
    .novel-synopsis-content > :first-child { margin-top: 0; }
    .novel-synopsis-content > :last-child { margin-bottom: 0; }
    .novel-synopsis-toggle { margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--gold-primary); font: 750 .85rem var(--ui-font); cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
    .novel-actions { margin-top: 25px; }
    .chapter-section { margin-top: 0; }
}
.wisetl-premium-access-page { display: grid; min-height: min(620px, calc(100vh - var(--header-height))); place-items: center; width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 96px; font-family: var(--ui-font); }
.wisetl-premium-access-card { width: min(100%, 570px); padding: clamp(30px, 5vw, 54px); border: 1px solid var(--border-color); border-radius: 22px; background: var(--surface-color); box-shadow: var(--shadow-soft); text-align: center; }
.wisetl-premium-access-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 18px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-primary); font-size: 1.4rem; }
.wisetl-premium-access-card h1 { margin: 0; color: var(--text-color); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; }
.wisetl-premium-access-card > p:not(.wisetl-information-eyebrow) { margin: 16px auto 24px; color: var(--text-soft); line-height: 1.65; }
.wisetl-premium-access-button, .wisetl-premium-access-back { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border-radius: 9px; font-weight: 700; }
.wisetl-premium-access-button { background: var(--gold-primary); color: #17120a; }
.wisetl-premium-access-back { margin-top: 12px; color: var(--gold-primary); }

.wisetl-site-footer { margin-top: 56px; border-top: 1px solid var(--border-color); background: var(--surface-color); }
.wisetl-site-footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: min(1180px, calc(100% - 48px)); min-height: 90px; margin: 0 auto; color: var(--text-soft); font-family: var(--ui-font); font-size: .78rem; }
.wisetl-site-footer-inner p { margin: 0; color: var(--text-soft); }
.wisetl-site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.wisetl-site-footer a { color: var(--text-soft); font-weight: 700; }
.wisetl-site-footer a:hover { color: var(--gold-primary); }
.wisetl-site-footer-note { text-align: right; }
body.dark-mode .wisetl-site-footer { background: var(--surface-color); border-color: var(--border-color); }

/* Theme My Login inherits the WiseTL panel language. */
.tml { width: min(100% - 48px, 640px); margin: 52px auto 90px; padding: 38px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--surface-color); box-shadow: var(--shadow-hover); font-family: var(--ui-font); }
.tml .tml-label { margin: 0 0 7px; color: var(--text-soft); font-size: .82rem; font-weight: 750; }
.tml .tml-field-wrap { margin-bottom: 17px; }
.tml .tml-field { min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-color); color: var(--text-color); font: inherit; }
.tml input[type="submit"], .tml .tml-button { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--gold-primary); color: #17120a; font: 800 .88rem var(--ui-font); cursor: pointer; }
.tml a { color: var(--gold-primary); font-weight: 700; }
.tml .tml-errors, .tml .tml-messages { margin-bottom: 16px; }
.tml .tml-error, .tml .tml-message, .tml .tml-success { border: 1px solid var(--border-color); border-left: 3px solid var(--gold-primary); border-radius: 9px; background: var(--bg-color); color: var(--text-color); box-shadow: none; }
body.dark-mode .tml, body.dark-mode .tml .tml-field, body.dark-mode .tml .tml-error, body.dark-mode .tml .tml-message, body.dark-mode .tml .tml-success { background: var(--surface-color); border-color: var(--border-color); color: var(--text-color); }

/* Select controls stay inside their fields on both desktop and mobile. */
.wisetl-library-sort select, .wisetl-novel-browser-controls select { width: 100%; max-width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.wisetl-library-sort { min-width: 0; }
.wisetl-novel-browser-controls label { min-width: 0; }

@media (max-width: 768px) {
    .wisetl-announcement-page { width: min(100% - 32px, 640px); margin: 32px auto 56px; }
    .wisetl-announcement-article { padding: 26px 20px; border-radius: 16px; }
    .wisetl-announcement-back { margin-bottom: 22px; }
    .wisetl-announcement-header { padding-bottom: 22px; }
    .wisetl-announcement-content { margin-top: 24px; font-size: .97rem; line-height: 1.75; }
    .chapter-section { padding: 18px 14px; border-radius: 15px; }
    .chapter-section-header { align-items: flex-start; margin-bottom: 16px; }
    .chapter-section-controls { width: 100%; justify-content: space-between; }
    .chapter-sort-form label { display: none; }
    .chapter-sort-form select { min-height: 33px; font-size: .75rem; }
    .chapter-list { gap: 10px; }
    .chapter-entry { border: 1px solid var(--border-color); border-radius: 10px; }
    .chapter-entry a { flex-direction: row; align-items: center; min-height: 58px; padding: 0 15px; gap: 12px; }
    .chapter-title-text { display: none; }
    .chapter-update-time { display: block; margin-left: auto; }
    .chapter-access-status { align-self: auto; margin: 0; }
    .novel-synopsis-content { max-height: 5.25em; }
    .wisetl-announcement-list { grid-template-columns: 1fr; }
    .wisetl-announcement { min-height: 140px; }
    .wisetl-site-footer { margin-top: 38px; }
    .wisetl-site-footer-inner { grid-template-columns: 1fr; width: min(100% - 32px, 560px); gap: 12px; padding: 24px 0; text-align: center; }
    .wisetl-site-footer nav { gap: 13px; }
    .wisetl-site-footer-note { text-align: center; }
    .wisetl-information-page { width: min(100% - 32px, 640px); margin: 32px auto 54px; }
    .wisetl-information-card { padding: 26px 20px; border-radius: 16px; }
    .wisetl-premium-access-page { width: min(100% - 32px, 560px); min-height: auto; padding: 40px 0 56px; }
    .wisetl-premium-access-card { padding: 30px 22px; border-radius: 16px; }
    .tml { width: calc(100% - 32px); margin-top: 28px; padding: 28px 22px; }
    .wisetl-library-sort select, .wisetl-novel-browser-controls select { font-size: .8rem; }
}

/* Scripted selects avoid the browser option tray escaping narrow layouts. */
.wisetl-custom-select { position: relative; width: 100%; min-width: 0; }
.wisetl-custom-select-trigger { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; padding: 8px 34px 8px 11px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--surface-color); color: var(--text-color); font: 700 .82rem var(--ui-font); text-align: left; cursor: pointer; }
.wisetl-custom-select-trigger::after { position: absolute; top: 50%; right: 13px; width: 7px; height: 7px; border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft); content: ""; pointer-events: none; transform: translateY(-65%) rotate(45deg); }
.wisetl-custom-select.is-open .wisetl-custom-select-trigger { border-color: var(--gold-primary); box-shadow: 0 0 0 3px var(--gold-tint); }
.wisetl-custom-select-menu { position: absolute; top: calc(100% + 6px); right: 0; left: auto; z-index: 100; display: none; width: max-content; min-width: 100%; max-width: min(22rem, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--border-color); border-radius: 10px; background: var(--surface-color); box-shadow: var(--shadow-hover); }
.wisetl-custom-select.is-left-aligned .wisetl-custom-select-menu { right: auto; left: 0; }
.wisetl-custom-select.is-open .wisetl-custom-select-menu { display: grid; }
.wisetl-custom-select-option { width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--text-color); font: 650 .82rem var(--ui-font); text-align: left; white-space: nowrap; cursor: pointer; }
.wisetl-custom-select-option:hover { background: var(--gold-tint); color: var(--text-color); }
body.dark-mode .wisetl-custom-select-trigger, body.dark-mode .wisetl-custom-select-menu { background: var(--surface-color); border-color: var(--border-color); color: var(--text-color); }

/* A focused, balanced Theme My Login experience. */
body.tml-action .entry-header { display: none; }
body.tml-action .site-content { display: flex; align-items: flex-start; justify-content: center; min-height: calc(100vh - var(--header-height)); }
body.tml-action #primary { width: 100%; margin: 0; }
body.tml-action .tml { width: min(560px, calc(100% - 48px)); margin: 72px auto 100px; padding: 46px; border-radius: 20px; }
body.tml-action .tml::before { display: block; margin-bottom: 30px; color: var(--text-color); font-size: clamp(2rem, 3vw, 2.55rem); font-weight: 800; letter-spacing: -.045em; }
body.tml-action-login .tml::before { content: "Welcome back"; }
body.tml-action-register .tml::before { content: "Create your account"; }
body.tml-action-lostpassword .tml::before { content: "Reset your password"; }
body.tml-action-resetpass .tml::before { content: "Choose a new password"; }
.tml .tml-field-wrap { margin-bottom: 21px; }
.tml .tml-field { min-height: 51px; border-radius: 11px; }
.tml input[type="submit"], .tml .tml-button { min-height: 51px; margin-top: 2px; border-radius: 11px; }
.tml .tml-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 25px 0 0; padding: 0; list-style: none; }
.tml .tml-links li { margin: 0; }
.tml .tml-links a { text-decoration: none; }
.tml .tml-checkbox { width: 17px; height: 17px; accent-color: var(--gold-primary); }
.tml .tml-rememberme-wrap { display: flex; align-items: center; gap: 8px; }
.tml .tml-rememberme-wrap .tml-label { margin: 0; }
.tml .tml-indicator_hint-wrap { margin-top: -2px; padding: 12px; border-radius: 10px; background: var(--gold-tint); color: var(--text-soft); font-size: .82rem; line-height: 1.55; }
.wisetl-password-field { position: relative; display: block; }
.wisetl-password-field .tml-field { width: 100%; padding-right: 62px; }
.wisetl-password-toggle { position: absolute; top: 50%; right: 13px; padding: 0; border: 0; background: transparent; color: var(--gold-primary); font: 700 .78rem var(--ui-font); line-height: 1; cursor: pointer; transform: translateY(-50%); transition: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.wisetl-password-toggle:hover, .wisetl-password-toggle:active { background: transparent; color: var(--gold-primary); box-shadow: none; text-decoration: none; transform: translateY(-50%); }
.wisetl-password-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; border-radius: 2px; }
/* Edge adds its own password-reveal icon. WiseTL already supplies Show/Hide. */
.tml input[type="password"]::-ms-reveal,
.tml input[type="password"]::-ms-clear { display: none; }
/* Theme My Login also injects its own Dashicons eye toggle. */
.tml .tml-toggle-pwd { display: none !important; }
.wisetl-password-toggle::selection, .novel-synopsis-toggle::selection { background: transparent; color: inherit; }
.wisetl-password-toggle:focus, .wisetl-password-toggle:active, .novel-synopsis-toggle:hover, .novel-synopsis-toggle:focus, .novel-synopsis-toggle:active { background: transparent !important; color: var(--gold-primary) !important; box-shadow: none !important; opacity: 1 !important; text-decoration: none !important; transform: none !important; }

/* Keep touch interactions clean without removing keyboard focus indicators. */
@media (hover: none) {
    a, button, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
}
.wisetl-password-toggle:focus { transform: translateY(-50%) !important; outline: 0; }
.novel-synopsis-toggle:focus-visible, .wisetl-password-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
@media (max-width: 700px) { .wisetl-custom-select-trigger { min-height: 40px; font-size: .8rem; } .wisetl-custom-select-menu { max-height: 210px; overflow-y: auto; } body.tml-action .tml { width: min(100% - 32px, 500px); margin: 38px auto 64px; padding: 30px 27px; border-radius: 18px; } body.tml-action .tml::before { margin-bottom: 28px; font-size: 1.85rem; } .tml .tml-field-wrap { margin-bottom: 19px; } .tml .tml-field, .tml input[type="submit"], .tml .tml-button { min-height: 51px; } .tml .tml-links { gap: 11px 20px; margin-top: 25px; } }

/* Final mobile reader overrides, loaded after the legacy theme styles. */
.chapter-content,
.chapter-content * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.chapter-content pre, .chapter-content code { white-space: pre-wrap; }
.chapter-content hr { box-sizing: border-box; width: 100%; }
.novel-actions { align-items: stretch; }
.novel-actions .start-reading-btn, .novel-actions .latest-chapter-btn { width: 100%; min-height: 58px; height: 58px; line-height: 1.15; white-space: nowrap; }
@media (max-width: 768px) {
    .reader-navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 44px; }
    .reader-navigation > div, .reader-navigation > div:first-child, .reader-navigation > div:nth-child(2), .reader-navigation > div:last-child { justify-self: stretch; min-width: 0; }
    .reader-nav-button { width: 100%; min-width: 0; height: 46px; padding: 0 8px; font-size: clamp(.73rem, 3.4vw, .92rem); line-height: 1; white-space: nowrap; }
}
