/*
Theme Name: MH Catalog
Theme URI: https://example.com/
Author: Tu nombre
Description: Tema oscuro para catálogos de manhwa (+18): últimos capítulos, series, géneros, estudios, directorio A–Z, ranking por lecturas y "me gusta", y lector vertical de capítulos.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mhtheme
Tags: dark, grid-layout, entertainment, custom-logo
*/

/*
 * Load order: assets/css/base.css (reset) → assets/css/catalog.css (reference layout, untouched)
 * → this file (pieces the reference renders with Radix/Tailwind or that are specific to manhwa).
 * All colors use the reference tokens (--catalog-*).
 */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* WordPress admin bar offset for the sticky topbar / fixed sidebar. */
.admin-bar .site-topbar { top: 32px; }
.admin-bar .desktop-sidebar { top: 100px; }
@media (max-width: 782px) {
	.admin-bar .site-topbar { top: 46px; }
	.admin-bar .desktop-sidebar { top: 114px; }
}
@media (max-width: 600px) {
	.admin-bar .site-topbar { top: 0; }
}

/* Collapse button swaps icon like the reference. */
.desktop-menu .lucide-panel-left-open { display: none; }
html[data-sidebar="collapsed"] .desktop-menu .lucide-panel-left-close { display: none; }
html[data-sidebar="collapsed"] .desktop-menu .lucide-panel-left-open { display: block; }

/* Search submit color (the reference sets only size). */
.search-submit { color: var(--catalog-muted); }

/* ---------- Account dropdown (Radix menu content in the reference) ---------- */
.account-dropdown {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
	border: 1px solid #34343d;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
	display: none;
}
.account-dropdown[data-state="open"] { display: block; animation: mh-pop .14s var(--catalog-ease); }
@keyframes mh-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.account-dropdown [data-slot="dropdown-menu-item"] { display: flex; align-items: center; gap: 10px; color: var(--catalog-secondary); outline: none; transition: background .15s, color .15s; }
.account-dropdown [data-slot="dropdown-menu-item"]:hover,
.account-dropdown [data-slot="dropdown-menu-item"]:focus-visible { background: var(--catalog-raised); color: #fff; }
.account-dropdown [data-slot="dropdown-menu-separator"] { height: 1px; margin: 6px -7px; background: #ffffff0c; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-avatar { overflow: hidden; }

/* ---------- Mobile drawer (Radix sheet in the reference) ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.mobile-drawer {
	position: fixed; inset: 0 auto 0 0; z-index: 90;
	display: flex; flex-direction: column;
	border-right: 1px solid;
	overflow-y: auto;
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .25s var(--catalog-ease), visibility .25s;
}
body.drawer-open .mobile-drawer { transform: none; visibility: visible; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-close { margin-top: 4px; }
.mobile-drawer .nav-groups { flex: 1 0 auto; overflow: visible; }
.mobile-drawer .sidebar-bottom { padding-bottom: 6px; }
@media (min-width: 768px) {
	.mobile-drawer, .drawer-overlay { display: none; }
}

/* ---------- Ads + about block (Tailwind utilities used by the reference markup) ---------- */
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.pt-8 { padding-top: 2rem; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.h-\[250px\] { height: 250px; }
.w-\[300px\] { width: 300px; }
@media (min-width: 64rem) {
	.lg\:h-\[90px\] { height: 90px; }
	.lg\:w-\[728px\] { width: 728px; }
}
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/8 { border-color: rgba(255, 255, 255, .08); }
.text-sm { font-size: .875rem; }
.leading-7 { line-height: 1.75rem; }
.text-white\/60 { color: rgba(255, 255, 255, .6); }
.ad-slot { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot:empty { display: none; }

/* ---------- Rich text ---------- */
.entry-content h2 { margin: 1.6em 0 .5em; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 1.4em 0 .4em; color: #fff; font-size: 15px; font-weight: 700; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote { margin: 0 0 1em; }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content ol { list-style: decimal; padding-left: 1.3em; }
.entry-content a { color: #f78dbb; }
.entry-content a:hover { text-decoration: underline; }

/* ---------- Buttons (same look as .account-button in the reference) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 11px 16px;
	border: 1px solid #3b3b46; border-radius: 10px;
	background: #27272e; color: #eeeef4;
	font-size: 12px; font-weight: 700; white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #33333d; }
.btn-primary { background: var(--catalog-pink); border-color: transparent; color: #fff; }
.btn-primary:hover { background: #d31869; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Action bar: like / dislike / save / share / report ---------- */
.watch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.act-btn {
	display: inline-flex; align-items: center; gap: 7px;
	height: 38px; padding: 0 13px; border-radius: 10px;
	border: 1px solid var(--catalog-line); background: var(--catalog-surface);
	color: var(--catalog-secondary); font-size: 12px; font-weight: 600; white-space: nowrap;
	font-variant-numeric: tabular-nums;
	transition: background .15s, color .15s, border-color .15s, transform .12s var(--catalog-ease);
}
.act-btn:hover { background: var(--catalog-raised); color: #fff; border-color: #45454f; }
.act-btn:active { transform: scale(.96); }
.act-btn:disabled { cursor: progress; }
.act-btn svg { flex-shrink: 0; transition: transform .2s var(--catalog-ease); }
.act-btn[aria-pressed="true"], .act-btn.is-on { color: #f78dbb; background: #ed1e7915; border-color: #ed1e7966; }
.act-btn[aria-pressed="true"] svg, .act-btn.is-on svg { fill: currentColor; }
.act-btn[data-react][aria-pressed="true"] svg { animation: act-pop .3s var(--catalog-ease); }
@keyframes act-pop { 40% { transform: scale(1.25); } }
.act-btn.is-copied { color: #93e5b8; background: #34d3990a; border-color: #34d39940; }
.act-btn--muted { background: transparent; border-color: transparent; color: var(--catalog-muted); }
.act-btn--muted:hover { background: #ef444415; border-color: #ef444435; color: #ffadb9; }

/* ---------- Share menu ---------- */
.share-wrap { position: relative; }
.share-menu {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
	width: 316px; padding: 7px;
	border-radius: 14px; background: #1e1e24; border: 1px solid #34343d;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
	text-align: left;
	animation: mh-pop .14s var(--catalog-ease);
}
.share-menu-title { padding: 8px 10px 6px; color: var(--catalog-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.share-item {
	display: flex; flex-direction: column; align-items: center; gap: 7px;
	padding: 10px 2px 9px; border-radius: 10px;
	color: var(--catalog-secondary); font-size: 11px; font-weight: 600; text-align: center;
	outline: none; transition: background .15s, color .15s;
}
.share-item:hover, .share-item:focus-visible { background: var(--catalog-raised); color: #fff; }
.share-ico {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	background: var(--net, #27272e); color: #fff;
	border: 1px solid rgba(255, 255, 255, .08);
	transition: transform .18s var(--catalog-ease);
}
.share-item:hover .share-ico, .share-item:focus-visible .share-ico { transform: translateY(-2px); }
@media (max-width: 767px) {
	/* Bottom sheet on phones. */
	.share-menu { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; padding: 10px; border-radius: 18px; }
	.share-item { padding: 12px 2px 10px; }
}

/* ---------- Report dialog (card reuses .account-auth-card from the reference) ---------- */
.report-dialog { width: min(448px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--catalog-text); overflow: visible; }
.report-dialog::backdrop { background: rgba(10, 10, 12, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.report-dialog[open] { animation: mh-pop .18s var(--catalog-ease); }
.report-dialog .account-auth-card { max-height: calc(100svh - 32px); overflow-y: auto; }
.report-dialog h1 { font-size: 22px; }
.report-reasons { display: flex; flex-direction: column; gap: 8px; }
.report-reason {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; border-radius: 10px;
	border: 1px solid #3b3b46; background: #16161a;
	color: #dddde5; font-size: 13px; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.report-reason:hover { border-color: #55555f; }
.report-reason:has(input:checked) { border-color: #ed1e7980; background: #ed1e7910; color: #fff; }
.report-reason input { accent-color: #ed1e79; width: 16px; height: 16px; flex-shrink: 0; }
.report-reason input:disabled + span { opacity: .6; }
.report-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- My list ---------- */
.account-library-empty > svg { width: 36px; height: 36px; }
.account-library-empty .account-button { text-decoration: none; }

.catalog-empty { padding: 55px 24px; text-align: center; color: var(--catalog-secondary); border: 1px dashed var(--catalog-line); border-radius: 16px; font-size: 13px; }

/* ---------- A–Z + genres / studios lists ---------- */
.az-letters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.az-letters .genre-chip { justify-content: center; min-width: 38px; }
.genre-chip[aria-current] { color: #fff; background: var(--catalog-pink); border-color: var(--catalog-pink); }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.term-card {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 14px 16px; border-radius: 12px;
	background: var(--catalog-surface); border: 1px solid #ffffff0e;
	color: #eeeef2; font-size: 13px; font-weight: 600;
	transition: background .15s, border-color .15s, transform .22s var(--catalog-ease);
}
.term-card:hover { background: var(--catalog-raised); border-color: #ed1e7960; transform: translateY(-2px); }
.term-card small { color: var(--catalog-muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Series page ---------- */
.series-page { width: 100%; max-width: 1900px; margin: 0 auto; }
.series-hero {
	position: relative; isolation: isolate; overflow: visible; /* menus (share) can overflow the card */
	display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px;
	padding: 28px; margin-bottom: 36px;
	border-radius: 20px; background: var(--catalog-surface); border: 1px solid #ffffff0d;
}
.series-hero-bgwrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.series-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(48px) saturate(1.2); opacity: .2; transform: scale(1.25); pointer-events: none; }
.series-cover { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 12px; border: 1px solid #ffffff0e; background: linear-gradient(140deg, #27272e, #1b1b21); box-shadow: 0 16px 40px #0006; }
.series-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-kicker { margin-bottom: 8px; color: #f78dbb; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.series-info h1 { color: #f4f4f6; font-size: 30px; font-weight: 800; letter-spacing: -.7px; line-height: 1.2; }
.series-alt { margin-top: 6px; color: var(--catalog-muted); font-size: 13px; }
.series-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.stat-pill {
	display: inline-flex; align-items: center; gap: 6px;
	height: 30px; padding: 0 11px; border-radius: 8px;
	background: #16161a99; border: 1px solid var(--catalog-line);
	color: var(--catalog-secondary); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
a.stat-pill:hover { color: #fff; border-color: #ed1e7966; }
.series-info .genre-shortcuts { flex-wrap: wrap; overflow: visible; margin-bottom: 16px; }
.series-synopsis { max-width: 780px; color: var(--catalog-secondary); font-size: 14px; line-height: 1.7; }
.series-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 21px; font-weight: 750; letter-spacing: -.5px; }
.section-title small { color: var(--catalog-muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.series-section + .series-section { margin-top: 44px; }
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.chapter-item a {
	display: flex; align-items: center; gap: 11px;
	height: 48px; padding: 0 14px; border-radius: 10px;
	background: var(--catalog-surface); border: 1px solid #ffffff0e;
	color: #eeeef2; font-size: 13px;
	transition: background .15s, border-color .15s;
}
.chapter-item a:hover { background: var(--catalog-raised); border-color: #ed1e7960; }
.chapter-item svg { color: #f45a9d; }
.chapter-num { font-weight: 600; }
.chapter-date { margin-left: auto; color: var(--catalog-muted); font-size: 11px; white-space: nowrap; }

/* ---------- Reader ---------- */
.reader { width: 100%; max-width: 1900px; margin: 0 auto; }
.reader-head { max-width: 900px; margin: 0 auto 20px; text-align: center; }
.reader-breadcrumb { color: var(--catalog-muted); font-size: 12px; }
.reader-breadcrumb a:hover { color: #f78dbb; }
.reader-head h1 { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.25; }
.reader-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 900px; margin: 0 auto 18px; }
.reader-nav-bottom { margin-top: 22px; }
.reader-select {
	height: 42px; min-width: 200px; padding: 0 12px;
	border: 1px solid var(--catalog-line); border-radius: 10px;
	background: var(--catalog-surface); color: var(--catalog-text);
	font-size: 13px; outline: none;
}
.reader-select:focus { border-color: #ed1e7980; box-shadow: 0 0 0 3px #ed1e7912; }
.reader-pages { max-width: 900px; margin: 0 auto; overflow: hidden; border-radius: 6px; background: #000; line-height: 0; }
.reader-pages img { display: block; width: 100%; height: auto; margin: 0 auto; }
.reader-pages p, .reader-pages figure, .reader-pages .wp-block-image { margin: 0 !important; }
.reader-pages .wp-block-gallery { display: block !important; margin: 0 !important; }
.reader-pages .wp-block-gallery figure { width: 100% !important; margin: 0 !important; }
.reader-pages figcaption { display: none; }
.reader-empty { padding: 60px 20px; background: var(--catalog-surface); color: var(--catalog-secondary); font-size: 13px; line-height: 1.6; text-align: center; }

.back-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 45;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--catalog-raised); border: 1px solid var(--catalog-line); color: #fff;
	opacity: 0; pointer-events: none; transform: translateY(8px);
	transition: opacity .2s, transform .2s var(--catalog-ease), background .15s;
}
.back-to-top:hover { background: var(--catalog-pink); border-color: var(--catalog-pink); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Generic page ---------- */
.page-content { max-width: 860px; margin: 0 auto; }
.page-content h1 { margin-bottom: 20px; font-size: 28px; font-weight: 800; letter-spacing: -.7px; line-height: 1.2; }
.page-content .entry-content { color: var(--catalog-secondary); font-size: 14px; line-height: 1.75; }

/* ---------- 404 (same as the reference notFound block) ---------- */
.not-found { display: grid; place-items: center; min-height: 70svh; max-width: 36rem; margin: 0 auto; text-align: center; }
.not-found-code { color: #f45a9d; font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.not-found h1 { margin-top: 12px; color: #fff; font-size: 48px; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.not-found .lead { margin: 16px 0 28px; color: rgba(255, 255, 255, .48); font-size: 16px; line-height: 1.75; }

/* ---------- Comments ---------- */
.comments-area { max-width: 900px; margin: 48px auto 0; }
.comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.comment-list .children { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding-left: 24px; }
.comment-body { padding: 14px 16px; border-radius: 12px; background: var(--catalog-surface); border: 1px solid #ffffff0d; }
.comment-author { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.comment-author img { border-radius: 10px; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 8px; color: var(--catalog-muted); font-size: 11px; }
.comment-content { color: var(--catalog-secondary); font-size: 13px; line-height: 1.7; }
.comment-content p { margin-bottom: .6em; }
.reply a { color: #f78dbb; font-size: 12px; }
.comment-respond { padding: 25px; border-radius: 16px; background: var(--catalog-surface); border: 1px solid #ffffff0d; }
.comment-reply-title { margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form label { display: block; margin-bottom: 6px; color: #dddde5; font-size: 12px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 11px 12px; border: 1px solid #3b3b46; border-radius: 10px;
	background: #16161a; color: #f4f4f6; font-size: 14px; outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: #ed1e7980; box-shadow: 0 0 0 3px #ed1e7912; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 9px; align-items: flex-start; color: #c0c0cd; font-size: 12px; }
.comment-form .comment-form-cookies-consent input { accent-color: #ed1e79; margin-top: 2px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .submit { min-height: 42px; padding: 11px 16px; border-radius: 10px; background: var(--catalog-pink); color: #fff; font-size: 12px; font-weight: 700; }
.comment-form .submit:hover { background: #d31869; }
.comment-notes, .logged-in-as { color: #a6a6b3; font-size: 12px; }
.logged-in-as a { color: #f78dbb; }

/* ---------- Age gate (styled like .account-auth-card) ---------- */
.age-gate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(13, 13, 16, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.age-gate-card { width: 100%; max-width: 448px; padding: 32px; border-radius: 20px; background: #1e1e24; border: 1px solid #ffffff0d; box-shadow: 0 16px 70px #0005; text-align: center; }
.age-gate-card .account-hero-icon { margin-bottom: 18px; font-size: 15px; font-weight: 800; }
.age-gate-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.7px; line-height: 1.2; }
.age-gate-card p { margin: 10px 0 24px; color: var(--catalog-secondary); font-size: 13px; line-height: 1.7; }
.age-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.age-gate-actions > * { flex: 1; }

/* ---------- Responsive extras ---------- */
@media (max-width: 767px) {
	.series-hero { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
	.series-cover { width: 170px; margin: 0 auto; }
	.series-info { text-align: center; }
	.series-info h1 { font-size: 24px; }
	.series-stats, .series-actions, .watch-actions, .series-info .genre-shortcuts { justify-content: center; }
	.series-synopsis { margin: 0 auto; }
	.reader-nav .btn span { display: none; }
	.reader-select { flex: 1; min-width: 0; font-size: 16px; }
	.section-title { font-size: 19px; }
}

/* ---------- Account pages (/signin/, /signup/, /recover/) ---------- */
.account-password button[aria-pressed="false"] .lucide-eye-off,
.account-password button[aria-pressed="true"] .lucide-eye { display: none; }
.account-auth-card .account-check { margin-top: 2px; }
.account-auth-card .account-form-footer a { margin-left: 2px; }

/* ---------- Theme toggle (markup from the reference, Tailwind utilities below) ---------- */
:root { --catalog-lead: #ffffff; }
.grid { display: grid; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.place-content-center { place-content: center; }
.rounded-lg { border-radius: .5rem; }
.border { border-width: 1px; border-style: solid; }
.border-line { border-color: var(--catalog-line); }
.bg-mute\/60 { background-color: color-mix(in srgb, var(--catalog-raised) 60%, transparent); }
.text-subs { color: var(--catalog-secondary); }
.transition { transition-property: color, background-color, border-color; transition-duration: .15s; transition-timing-function: var(--catalog-ease); }
.hover\:bg-line:hover { background-color: var(--catalog-line); }
.hover\:text-lead:hover { color: var(--catalog-lead); }
.ms-1 { margin-inline-start: .25rem; }
/* Dark mode shows the sun (switch to light); light mode shows the moon. */
[data-theme-toggle] .lucide-moon { display: none; }
html[data-theme="light"] [data-theme-toggle] .lucide-sun { display: none; }
html[data-theme="light"] [data-theme-toggle] .lucide-moon { display: block; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* ---------- Account settings / history ---------- */
.account-avatar.has-color { color: #fff; border-color: transparent; }
.account-avatar.has-color svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.account-avatar-picker button svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.account-settings-header > div > h1 { margin-top: 2px; }
.account-settings-card .account-form { margin-top: 18px; }
.account-delete { flex-shrink: 0; }
.account-delete > summary { list-style: none; cursor: pointer; }
.account-delete > summary::-webkit-details-marker { display: none; }
.account-delete[open] { flex-basis: 100%; }
.account-delete[open] > summary { display: none; }
.account-delete .account-form { max-width: 420px; margin-top: 0; }
.account-danger > .account-hint { max-width: 320px; }
.history-item { min-width: 0; }
.history-item form { margin: 0; }
.account-library-toolbar p a { margin-left: 4px; color: #f78dbb; }
.account-library-toolbar p a:hover { text-decoration: underline; }
html[data-theme="light"] .account-library-toolbar p a { color: var(--lt-pink-text); }
html[data-theme="light"] .account-avatar.has-color { color: #fff; }
html[data-theme="light"] .account-settings-card,
html[data-theme="light"] .account-quick-links a { background: #ffffff; border-color: #00000014; }
html[data-theme="light"] .account-quick-links a { color: #3d3d46; }
html[data-theme="light"] .account-quick-links a:hover,
html[data-theme="light"] .account-settings-card h2 svg { color: var(--lt-pink-text); }
html[data-theme="light"] .account-settings-card > p,
html[data-theme="light"] .account-settings-header p:not(.account-eyebrow) { color: var(--catalog-muted); }
html[data-theme="light"] .account-danger { border-color: #ef444440; }
html[data-theme="light"] .account-danger h2 { color: #b4233d; }
html[data-theme="light"] .account-button.danger { color: #b4233d; background: #ef444412; border-color: #ef444440; }
html[data-theme="light"] .account-avatar-picker button[aria-pressed="true"] { outline-color: var(--lt-pink-strong); }
