:root {
  color-scheme: dark;
  --app-surface: #070c11;
  --surface-card: #111921;
  --surface-raised: #151e28;
  --surface-input: #091118;
  --surface-nav: #0d141b;
  --border-subtle: rgba(160, 180, 200, .12);
  --text-primary: #f7f8fb;
  --text-secondary: #a2acb8;
  --text-muted: #788592;
  --bg: var(--app-surface);
  --bg-raised: #0d141b;
  --panel: #111921;
  --panel-soft: #151e28;
  --line: rgba(160, 180, 200, .12);
  --text: #f7f8fb;
  --muted: #a2acb8;
  --muted-2: #788592;
  --blue: #2d78ff;
  --blue-bright: #5596ff;
  --sidebar: 86px;
  --header: 82px;
  --radius: 13px;
}

/* About page: static content now, replaceable content model for future CMS wiring. */
.about-nav { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.about-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: min(100%, 1560px); min-width: 0; margin: 0 auto; color: var(--text); }
.about-hero, .about-mission-section, .about-collection, .about-faq, .about-support, .about-mission-card, .about-collection-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.about-hero { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; height: clamp(292px, 19vw, 310px); min-height: 0; aspect-ratio: auto; overflow: hidden; isolation: isolate; background: #071525; }
.about-hero-background, .about-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-hero-background { z-index: -2; object-fit: cover; object-position: center 57%; }
.about-hero-overlay { z-index: -1; background: linear-gradient(90deg, rgba(5,16,28,.97) 0%, rgba(5,16,28,.91) 27%, rgba(5,16,28,.76) 48%, rgba(5,16,28,.48) 66%, rgba(5,16,28,.14) 78%, rgba(5,16,28,.02) 100%); }
.about-hero-copy { width: min(100%, 820px); max-width: 820px; padding: clamp(26px, 3vw, 44px); }
.about-eyebrow, .about-support-label { display: inline-flex; align-items: center; color: var(--blue-bright); font-size: 12px; font-weight: 750; letter-spacing: .13em; }
.about-hero h1 { max-width: 660px; margin: 8px 0 13px; color: #fff; font-size: clamp(34px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.052em; }
.about-hero h1 span { color: var(--blue-bright); }
.about-intro { max-width: 620px; margin: 0; color: rgba(236,242,249,.83); font-size: 15px; line-height: 1.55; }
.about-motto { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.about-motto > span { width: 34px; height: 2px; border-radius: 2px; background: var(--blue-bright); }
.about-motto p { margin: 0; color: #fff; font-size: 17px; font-weight: 650; }
.about-missions, .about-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.about-mission-section { padding: 12px 18px; }
.about-mission-section .about-section-heading { margin-bottom: 10px; }
.about-mission-card, .about-collection-card { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 14px; }
.about-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; margin: 0; border-radius: 13px; background: rgba(45,120,255,.13); color: #75aaff; }
.about-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.about-icon-2 { background: rgba(166,126,255,.13); color: #b89bff; }
.about-icon-3 { background: rgba(79,190,137,.13); color: #68d59b; }
.about-icon-4 { background: rgba(240,175,75,.14); color: #f4bd62; }
.about-card-copy { min-width: 0; }
.about-mission-card h3, .about-collection-card h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; line-height: 1.3; }
.about-mission-card p, .about-collection-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.about-collection-card > .about-card-copy > strong { display: block; margin: -1px 0 2px; color: var(--blue-bright); font-size: 22px; line-height: 1.05; letter-spacing: -.04em; }
.about-collection { padding: 12px 18px; }
.about-faq { padding: 10px 18px; }
.about-collection-grid { gap: 12px; }
.about-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 6px; }
.about-section-heading h2 { margin: 0; color: var(--text); font-size: 22px; letter-spacing: -.035em; }
.about-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.about-explore, .about-mission-support, .about-support-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 40px; text-decoration: none; }
.about-faq-all { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; white-space: nowrap; }
.about-faq-all svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about-explore svg, .about-mission-support svg, .about-support-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about-collection-card { border-radius: 14px; background: color-mix(in srgb, var(--panel-soft) 56%, var(--panel)); }
.about-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 14px; row-gap: 8px; }
.about-faq-item { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--panel-soft) 48%, var(--panel)); }
.about-faq-item h3 { margin: 0; }
.about-faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 50px; padding: 10px 14px; border: 0; border-radius: inherit; color: var(--text); background: transparent; font: inherit; font-size: 13.5px; font-weight: 650; text-align: left; cursor: pointer; }
.about-faq-trigger:hover { background: color-mix(in srgb, var(--blue) 7%, transparent); }
.about-faq-trigger:focus-visible, .about-explore:focus-visible, .about-support-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-bright) 75%, white); outline-offset: 3px; }
.about-faq-trigger svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.about-faq-item.is-open .about-faq-trigger svg { transform: rotate(180deg); }
.about-faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.about-faq-item.is-open .about-faq-panel { grid-template-rows: 1fr; }
.about-faq-panel > div { min-height: 0; overflow: hidden; }
.about-faq-panel p { margin: 0; padding: 0 14px 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.about-support { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 18px; background: radial-gradient(ellipse at 100% 0%, rgba(147,97,255,.22), transparent 43%), linear-gradient(110deg, color-mix(in srgb, var(--blue) 19%, var(--panel)), var(--panel)); }
.about-support-symbol { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(181,143,255,.24); border-radius: 50%; color: #d1afff; background: rgba(157,110,255,.15); }
.about-support-symbol svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.about-support > div { flex: 1 1 auto; min-width: 0; max-width: none; }
.about-support h2 { margin: 3px 0; color: var(--text); font-size: clamp(20px, 1.9vw, 23px); letter-spacing: -.04em; }
.about-support p { margin: 0 0 4px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.about-support small { color: var(--muted-2); font-size: 11.5px; }
.about-updates { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.about-updates-heading { padding: 14px 18px; }
.about-updates-heading h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.about-updates-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.about-updates-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; color: var(--text); background: transparent; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.about-updates-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.about-updates.is-open .about-updates-toggle svg { transform: rotate(180deg); }
.about-updates-toggle:focus-visible, .about-older-toggle:focus-visible, .about-release-filter:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-bright) 75%, white); outline-offset: 3px; border-radius: 999px; }
.about-updates-panel { padding: 0 18px 18px; }
.about-updates-panel[hidden], .about-older-releases[hidden] { display: none; }
.about-release-list, .about-older-releases { display: grid; gap: 10px; }
.about-release-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.about-release-filter { min-height: 32px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel-soft); font: inherit; font-size: 12px; font-weight: 650; line-height: 1.2; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.about-release-filter:hover { color: var(--text); border-color: color-mix(in srgb, var(--blue) 48%, var(--line)); }
.about-release-filter.is-active { color: var(--blue-bright); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); background: color-mix(in srgb, var(--blue) 14%, var(--panel)); }
.about-release-generation { display: grid; gap: 9px; }
.about-release-generation[hidden], .about-release-entry[hidden], .about-release-empty[hidden] { display: none; }
.about-release-generation-title { margin: 9px 0 1px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.about-release-generation:first-child .about-release-generation-title { margin-top: 0; }
.about-release-entry { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel-soft) 54%, var(--panel)); }
.about-release-entry + .about-release-entry { margin-top: 2px; }
.about-release-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about-release-heading h3 { margin: 0; color: var(--text); font-size: 18px; letter-spacing: -.025em; }
.about-release-heading p { margin: 3px 0 0; color: var(--muted-2); font-size: 12px; }
.about-release-current, .about-release-planned { flex: 0 0 auto; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line)); border-radius: 999px; color: var(--blue-bright); background: color-mix(in srgb, var(--blue) 10%, transparent); font-size: 11px; font-weight: 700; }
.about-release-planned { color: var(--muted); border-color: var(--line); background: color-mix(in srgb, var(--panel-soft) 70%, transparent); }
.about-release-type { flex: 0 0 auto; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line)); border-radius: 999px; color: var(--blue-bright); background: color-mix(in srgb, var(--blue) 10%, transparent); font-size: 11px; font-weight: 700; }
.about-release-type-bugfix { color: #e2a85a; border-color: color-mix(in srgb, #e2a85a 35%, var(--line)); background: color-mix(in srgb, #e2a85a 10%, transparent); }
.about-release-entry ul { display: grid; gap: 6px; margin: 12px 0 0; padding-left: 19px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.about-release-entry li { padding-left: 2px; }
.about-release-empty { margin: 0; color: var(--muted); font-size: 13px; }
.about-older-toggle { justify-self: start; margin: 12px 0; padding: 8px 0; border: 0; color: var(--blue-bright); background: transparent; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.about-older-releases { padding-top: 10px; border-top: 1px solid var(--line); }

@media (min-width: 761px) {
  .main-content:has(> .about-page) { padding-top: calc(var(--header) + 18px); }
}

body.light-mode .about-hero { border-color: rgba(26,48,72,.22); }
body.light-mode .about-icon-1 { color: #2869c1; }
body.light-mode .about-icon-2 { color: #7651bd; }
body.light-mode .about-icon-3 { color: #287d54; }
body.light-mode .about-icon-4 { color: #986215; }
body.light-mode .about-support { background: radial-gradient(ellipse at 100% 0%, rgba(147,97,255,.11), transparent 43%), linear-gradient(110deg, #e2edfb, var(--panel)); }

@media (max-width: 1060px) {
  .about-missions, .about-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .about-hero { min-height: 400px; aspect-ratio: auto; }
  .about-hero-overlay { background: linear-gradient(90deg, rgba(5,16,28,.97) 0%, rgba(5,16,28,.93) 33%, rgba(5,16,28,.84) 53%, rgba(5,16,28,.56) 68%, rgba(5,16,28,.12) 84%, rgba(5,16,28,.02) 100%); }
  .about-hero-copy { width: min(100%, 550px); max-width: 550px; padding: 32px; }
  .about-hero h1 { max-width: 480px; font-size: 32px; }
  .about-intro { max-width: 450px; }
}
@media (max-width: 760px) {
  .about-nav { margin-top: 24px; }
  .about-page { gap: 16px; }
  .about-hero { min-height: 480px; aspect-ratio: auto; align-items: flex-start; background-position: 72% center; }
  .about-hero-background { object-position: 80% 100%; }
  .about-hero-overlay { background: linear-gradient(180deg, rgba(5,16,28,.96) 0%, rgba(5,16,28,.92) 58%, rgba(5,16,28,.58) 82%, rgba(5,16,28,.18) 100%); }
  .about-hero-copy { padding: 28px 22px; }
  .about-hero-title-break { display: none; }
  .about-hero h1 { font-size: clamp(30px, 8vw, 36px); }
  .about-intro { font-size: 15px; }
  .about-motto { margin-top: 18px; }
  .about-mission-section, .about-collection, .about-faq { padding: 22px; }
  .about-support { padding: 18px 22px; }
  .about-updates-heading { padding: 16px 22px; }
  .about-updates-panel { padding: 0 22px 22px; }
  .about-section-heading { margin-bottom: 16px; }
  .about-faq-trigger { min-height: 52px; padding: 12px 14px; font-size: 14px; }
  .about-missions, .about-collection-grid { gap: 10px; }
  .about-mission-card, .about-collection-card { padding: 15px; }
  .about-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .about-section-heading { align-items: flex-start; }
  .about-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .about-support { align-items: flex-start; flex-direction: column; gap: 15px; }
}
@media (max-width: 520px) {
  .about-hero { min-height: 600px; }
  .about-missions, .about-collection-grid { grid-template-columns: minmax(0, 1fr); }
  .about-section-heading { flex-direction: column; }
  .about-explore, .about-mission-support { align-self: flex-start; }
  .about-faq-all { white-space: normal; }
  .about-support { padding: 22px; }
  .about-support-button { width: 100%; }
  .about-updates-heading { padding: 16px; }
  .about-updates-panel { padding: 0 16px 16px; }
  .about-release-entry { padding: 13px; }
  .about-release-heading { align-items: flex-start; }
  .about-release-filters { gap: 6px; }
  .about-release-filter { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-faq-panel, .about-faq-trigger svg, .about-updates-toggle svg, .about-release-filter { transition: none; }
}

body.light-mode {
  color-scheme: light;
  --app-surface: #eff3f7;
  --surface-card: #f9fbfd;
  --surface-raised: #e8eef4;
  --surface-input: #f4f7fa;
  --surface-nav: #f5f8fb;
  --border-subtle: rgba(40, 58, 78, .14);
  --text-primary: #1d2b39;
  --text-secondary: #526273;
  --text-muted: #68798a;
  --bg: var(--app-surface);
  --bg-raised: var(--surface-card);
  --panel: var(--surface-card);
  --panel-soft: var(--surface-raised);
  --line: var(--border-subtle);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --muted-2: var(--text-muted);
  background: var(--app-surface);
}
body.light-mode .topbar, body.light-mode .sidebar { background: color-mix(in srgb, var(--surface-nav) 94%, transparent); }
body.light-mode .search-field, body.light-mode .book-card, body.light-mode .text-link, body.light-mode .meta-pill, body.light-mode .person-card, body.light-mode .author-row, body.light-mode .profile-hero { background: var(--surface-card); }
body.light-mode .sidebar { background: var(--surface-nav); }
body.light-mode .nav-link:hover, body.light-mode .nav-link.active { background: #e1eaf3; }
body.light-mode .search-field input, body.light-mode .search-field svg, body.light-mode .icon-button, body.light-mode .profile-trigger, body.light-mode .nav-link, body.light-mode .text-link, body.light-mode .back-link, body.light-mode .author-line, body.light-mode .duration-line, body.light-mode .meta-pill, body.light-mode .meta-pill svg, body.light-mode .eyebrow, body.light-mode .login-form label { color: var(--text); }
body.light-mode .landing-copy { background: linear-gradient(135deg, var(--surface-card), #eaf1f8); }
body.light-mode .landing-copy p, body.light-mode .detail-copy p { color: var(--muted); }
body.light-mode .landing-stats, body.light-mode .person-card { background: var(--surface-card); }
body.light-mode .eyebrow, body.light-mode .empty-state { background: var(--surface-raised); }
body.light-mode .login-form input, body.light-mode input:not([type="checkbox"]):not([type="radio"]), body.light-mode textarea { background: var(--surface-input); color: var(--text-primary); }
body.light-mode input:-webkit-autofill { -webkit-text-fill-color: var(--text-primary); box-shadow: 0 0 0 1000px var(--surface-input) inset; caret-color: var(--text-primary); }
body.light-mode select, body.light-mode select option { background: var(--surface-input); color: var(--text-primary); }
body.light-mode select { border-color: var(--border-subtle); color-scheme: light; }
body.light-mode .profile-tab.active { color: var(--text-primary); }
body.light-mode .login-avatar { background: var(--surface-raised); color: var(--text-primary); border-color: var(--line); }
body.light-mode .language-selector { background: var(--surface-raised); border-color: var(--line); }
body.light-mode .notification-panel { background: var(--surface-card); }
body.light-mode .notification-item:hover { background: var(--surface-raised); }
body.light-mode .filter-chip { border-color: var(--border-subtle); color: var(--text-secondary); }
body.light-mode .filter-chip.active, body.light-mode .filter-chip:hover { border-color: #8eb5eb; background: #e4effd; color: #164d91; }
body.light-mode .filter-chip-count { background: rgba(39, 91, 151, .1); }
body.light-mode .people-segments { background: var(--surface-raised); }
body.light-mode .people-segment.active, body.light-mode .people-segment:hover { background: #dceafd; color: #164d91; }
body.light-mode .author-sort, body.light-mode .library-language-select { background: var(--surface-input); color: var(--text-primary); }
body.light-mode .profile-tab { color: var(--text-secondary); }
body.light-mode .profile-tab.active { border-color: var(--blue); }
body.light-mode .author-row .avatar { background: linear-gradient(145deg, #d9e6f2, #bccddd); color: #263c52; }
body.light-mode .author-row-arrow:hover, body.light-mode .author-favorite-toggle:hover { background: var(--surface-raised); color: var(--text-primary); }
body.light-mode .language-flag { border-color: var(--border-subtle); background: var(--surface-raised); box-shadow: 0 2px 7px rgba(32, 54, 75, .1); }
body.light-mode .icon-button.active-icon { background: #e4effd; color: #245ca2; }
body.light-mode .search-field input::placeholder { color: var(--text-muted); }
body.light-mode .form-link, body.light-mode .auth-switch a, body.light-mode .author-row-link:hover strong, body.light-mode .author-row-link:focus-visible strong { color: #185ba8; }

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--app-surface); scroll-behavior: smooth; }
html:has(body.light-mode) { --app-surface: #eff3f7; }
body { min-height: 100vh; margin: 0; min-width: 320px; background: var(--app-surface); color: var(--text); font-family: "DM Sans", system-ui, sans-serif; }
body.home-route { background: radial-gradient(circle at 72% -20%, #122132 0, transparent 36%), var(--app-surface); }
body.light-mode.home-route { background: radial-gradient(circle at 72% -20%, #d8e8ff 0, transparent 36%), var(--app-surface); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.app-shell { min-height: 100vh; }
.topbar { position: fixed; z-index: 20; inset: 0 0 auto; height: var(--header); display: flex; align-items: center; gap: 28px; padding: 0 28px; background: rgba(5, 9, 13, .88); border-bottom: 1px solid rgba(155, 176, 196, .06); backdrop-filter: blur(20px); }
.icon-button.mobile-menu-button, .sidebar-close-button, .sidebar-backdrop { display: none; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 168px; font-size: 25px; font-weight: 600; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; object-fit: cover; border-radius: 9px; box-shadow: 0 4px 16px rgba(196, 28, 145, .2); }
.search-field { display: flex; align-items: center; gap: 15px; width: min(100%, 558px); height: 52px; padding: 0 18px; background: #10171e; border: 1px solid rgba(163, 185, 211, .08); border-radius: 13px; color: var(--muted); }
.search-field svg { width: 22px; color: #f4f7fb; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-field input::placeholder { color: #9ba6b3; }
.top-actions { display: flex; align-items: center; gap: 21px; margin-left: auto; }
.support-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid rgba(85, 150, 255, .45); border-radius: 999px; background: rgba(45, 120, 255, .12); color: var(--blue-bright); font-size: 14px; font-weight: 700; white-space: nowrap; }
.support-button:hover, .support-button:focus-visible { background: rgba(45, 120, 255, .22); }
.support-button:focus-visible, .support-close:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.icon-button, .profile-trigger { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; }
.icon-button { width: 30px; height: 42px; color: #f1f3f7; }
.icon-button.active-icon { width: 40px; height: 40px; border-radius: 50%; background: #1d2b40; color: var(--blue-bright); }
.icon-button svg { width: 25px; height: 25px; }
.notification-wrap { position: relative; display: inline-flex; }
.notification-button { position: relative; }
.notification-badge { position: absolute; top: 2px; right: -3px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 999px; background: #e4374f; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
.notification-panel { position: absolute; top: calc(100% + 12px); right: -10px; z-index: 40; width: min(360px, calc(100vw - 30px)); max-height: min(500px, calc(100vh - 110px)); overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #101921; box-shadow: 0 18px 45px rgba(0,0,0,.38); }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 4px 5px 11px; border-bottom: 1px solid var(--line); }
.notification-heading span { color: var(--muted); font-size: 12px; }
.notification-list { display: grid; gap: 4px; padding-top: 6px; }
.notification-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 9px; padding: 10px 7px; border-radius: 10px; }
.notification-item:hover { background: #182632; }
.notification-item-icon { display: flex; align-items: center; justify-content: center; gap: 2px; width: 30px; height: 30px; border-radius: 9px; color: var(--blue-bright); background: rgba(45,120,255,.14); }
.notification-format { display: inline-flex; align-items: center; justify-content: center; }
.notification-item-icon svg { width: 17px; height: 17px; }
.notification-item strong, .notification-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item strong { font-size: 13px; }
.notification-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.notification-item > svg { width: 15px; height: 15px; color: var(--muted); }
.notification-empty { margin: 0; padding: 18px 6px 8px; color: var(--muted); font-size: 13px; }
.form-link { color: var(--blue-bright); font-size: 13px; font-weight: 600; }
.profile-trigger { gap: 11px; padding: 4px 0 4px 4px; font-size: 16px; white-space: nowrap; }
.profile-trigger svg { width: 17px; }
.language-selector { display: inline-flex; align-items: center; justify-content: center; }
.language-toggle { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; perspective: 700px; }
.language-toggle-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.75,.25,1); }
.language-toggle.is-english .language-toggle-inner { transform: rotateY(180deg); }
.language-flag { position: absolute; inset: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: #121c27; box-shadow: 0 4px 14px rgba(0,0,0,.2); font-size: 22px; line-height: 1; backface-visibility: hidden; }
.language-flag-en { transform: rotateY(180deg); }
.language-toggle:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; color: white; font-weight: 700; background: linear-gradient(145deg, #e7e9ed, #232b35 62%, #070a0e); border: 1px solid rgba(255,255,255,.25); }
.avatar-reader { background: radial-gradient(circle at 50% 30%, #5c6673 0 14%, transparent 15%), radial-gradient(circle at 50% 80%, #11151c 0 32%, transparent 33%), linear-gradient(145deg, #f7f8fa, #5d6875); color: transparent; }
.login-avatar { background: #121a22; color: #eaf1fb; }
.login-avatar svg { width: 23px; height: 23px; }

.sidebar { position: fixed; z-index: 12; top: var(--header); bottom: 0; left: 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 22px 14px; background: linear-gradient(180deg, #091016, #080d12); border-right: 1px solid rgba(154, 178, 203, .08); }
.side-nav { display: grid; gap: 5px; }
.nav-link { position: relative; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 0; border-radius: 10px; color: #edf1f5; font-size: 16px; transition: background .2s, color .2s; }
.nav-link svg { width: 25px; height: 25px; }
.nav-link span { position: absolute; left: calc(100% + 10px); top: 50%; z-index: 30; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #111b25; color: #f5f8fc; font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-5px, -50%); transition: opacity .16s ease, transform .16s ease; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.nav-link:hover, .nav-link:focus-visible { background: #151e28; color: #fff; }
.nav-link:hover span, .nav-link:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.nav-link.active { background: linear-gradient(100deg, #212a3c, #1a2130); }
.main-content { min-height: 100vh; padding: calc(var(--header) + 34px) 42px 60px calc(var(--sidebar) + 48px); outline: none; }

.support-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.support-modal[hidden] { display: none; }
.support-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.support-modal-card { position: relative; display: flex; flex-direction: column; width: min(100%, 560px); max-height: min(780px, calc(100vh - 48px)); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 28px 80px rgba(0, 0, 0, .5); }
.support-modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 27px 10px; }
.support-kicker { margin: 0 0 6px; color: var(--blue-bright); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.support-modal-heading h2 { margin: 0; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.04em; }
.support-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-soft); color: var(--text); font-size: 28px; line-height: 1; }
.support-copy { margin: 0; padding: 0 27px 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.support-panel { min-height: 260px; overflow: auto; margin: 0 18px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-raised); }
.support-loading, .support-fallback { margin: 0; padding: 34px 24px; color: var(--muted); text-align: center; }
.support-fallback p { margin: 0 0 14px; }
.support-fallback a { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }
.support-embed { min-height: 0; }
.support-embed iframe { display: block; width: 100%; height: 712px; min-height: 0; padding: 4px; box-sizing: border-box; border: 0; background: #f9f9f9; }

.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 320px); gap: 24px; align-items: stretch; max-width: 1200px; margin: 0 auto 34px; }
.landing-copy { padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, rgba(17, 25, 33, .94), rgba(10, 16, 22, .96)), radial-gradient(circle at 80% 25%, rgba(45, 120, 255, .24), transparent 32%); }
.landing-copy h1 { margin: 0; font-size: clamp(38px, 7vw, 82px); line-height: .95; letter-spacing: -.06em; }
.landing-copy p { max-width: 720px; margin: 18px 0 0; color: #c7d0db; font-size: clamp(16px, 2vw, 20px); line-height: 1.55; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-stats { display: grid; place-items: center; min-height: 260px; padding: 24px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #111b25, #0b1218); }
.landing-stats strong, .login-side strong { display: block; font-size: clamp(58px, 8vw, 96px); line-height: .85; letter-spacing: -.08em; }
.landing-stats span, .login-side span { display: block; max-width: 210px; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 17px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.045em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-heading .section-copy { min-width: 0; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding: 10px 14px; border-radius: 10px; background: #121a22; color: #f0f3f7; font-size: 14px; white-space: nowrap; }
.text-link:hover { background: #1b2733; }
.text-link svg { width: 16px; height: 16px; }
.book-shelf { position: relative; margin-bottom: 31px; }
.featured-section { max-width: 1200px; margin: 0 auto 34px; }
.featured-frame { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px 12px 10px; border: 1px solid rgba(128, 160, 196, .18); border-radius: 18px; background: radial-gradient(circle at 50% 42%, rgba(45, 120, 255, .14), transparent 34%), linear-gradient(145deg, rgba(17, 30, 45, .96), rgba(9, 15, 21, .98) 78%); box-shadow: inset 0 1px 0 rgba(190, 215, 244, .08), 0 16px 36px rgba(0,0,0,.16); }
.featured-stage { position: relative; display: flex; align-items: end; justify-content: center; gap: clamp(10px, 2vw, 24px); width: fit-content; max-width: 100%; min-height: 340px; overflow: hidden; padding: 8px 0 4px; }
.featured-frame::before, .featured-frame::after { position: absolute; z-index: 3; top: 0; bottom: 0; width: 14%; content: ''; pointer-events: none; }
.featured-frame::before { left: 0; background: linear-gradient(90deg, rgba(9, 15, 21, .98) 0%, rgba(9, 15, 21, .5) 38%, transparent 100%); }
.featured-frame::after { right: 0; background: linear-gradient(270deg, rgba(9, 15, 21, .98) 0%, rgba(9, 15, 21, .5) 38%, transparent 100%); }
.featured-arrow { position: absolute; top: 50%; z-index: 5; display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-soft); color: var(--muted); transform: translateY(-50%); }
.featured-arrow-previous { left: clamp(12px, 12%, 150px); }
.featured-arrow-next { right: clamp(12px, 12%, 150px); }
.featured-arrow:hover, .featured-arrow:focus-visible { color: var(--text); border-color: rgba(85,150,255,.55); background: rgba(45,120,255,.18); }
.featured-arrow svg { width: 21px; height: 21px; }
.featured-arrow-previous svg { transform: rotate(180deg); }
.featured-book { min-width: 0; flex: 0 1 180px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; animation: featured-book-in .4s ease both; }
.featured-book .cover { width: 100%; }
.featured-book-previous, .featured-book-next { flex-basis: 145px; opacity: .56; transform: scale(.82); transform-origin: bottom center; }
.featured-book-previous-far, .featured-book-next-far { flex-basis: 120px; opacity: .38; transform: scale(.7); transform-origin: bottom center; }
.featured-book-center { flex-basis: 220px; opacity: 1; }
.featured-book-center .cover { box-shadow: 0 18px 38px rgba(0,0,0,.28), 0 0 24px rgba(45, 120, 255, .12); }
.featured-book-copy { display: block; min-width: 0; padding: 10px 3px 0; text-align: center; }
.featured-book-copy strong, .featured-book-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-book-copy strong { font-size: 14px; font-weight: 600; }
.featured-book-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.featured-book:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 5px; border-radius: 10px; }
body.light-mode .featured-frame { border-color: rgba(72, 105, 140, .2); background: radial-gradient(circle at 50% 42%, rgba(45, 120, 255, .1), transparent 34%), linear-gradient(145deg, var(--surface-card), var(--surface-raised)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 30px rgba(50, 75, 100, .1); }
body.light-mode .featured-frame::before { background: linear-gradient(90deg, rgba(232, 240, 248, .98) 0%, rgba(232, 240, 248, .55) 38%, transparent 100%); }
body.light-mode .featured-frame::after { background: linear-gradient(270deg, rgba(232, 240, 248, .98) 0%, rgba(232, 240, 248, .55) 38%, transparent 100%); }
@keyframes featured-book-in { from { opacity: 0; transform: translateX(18px) scale(.96); } to { opacity: 1; } }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 205px); grid-template-rows: 1fr; gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 0 1px 8px; scrollbar-width: thin; scrollbar-color: #2a3948 transparent; }
.shelf-track.search-results { grid-auto-flow: initial; grid-auto-columns: initial; grid-template-columns: repeat(auto-fill, minmax(160px, 205px)); align-items: start; overflow-x: visible; }
.search-more-wrap { display: flex; justify-content: center; margin-top: 16px; }
.shelf-track::-webkit-scrollbar { height: 5px; }
.shelf-track::-webkit-scrollbar-thumb { background: #2a3948; border-radius: 5px; }
.book-card { min-width: 0; overflow: hidden; background: linear-gradient(180deg, #151e27, #10171e); border: 1px solid rgba(165, 186, 209, .06); border-radius: 10px; transition: transform .2s, border .2s, box-shadow .2s; }
.book-card:hover { transform: translateY(-3px); border-color: rgba(92, 151, 255, .4); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.book-card-link { position: relative; display: block; }
.book-card.is-locked .cover::after { background: linear-gradient(180deg, rgba(5,9,13,.18) 10%, rgba(5,9,13,.86) 100%); }
.lock-badge { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(5, 10, 15, .78); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.lock-badge svg { width: 18px; height: 18px; }
.cover { position: relative; display: flex; align-items: end; padding: 15px 11px; background: linear-gradient(135deg, #304e69, #bd6d36 62%, #402018); isolation: isolate; }
.cover.card-cover { aspect-ratio: .76; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cover-image) center/cover; opacity: 1; mix-blend-mode: normal; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,9,13,.02) 25%, rgba(5,9,13,.78) 100%); }
.cover.has-artwork { align-items: center; justify-content: center; padding: 0; background: #18232d; }
.cover.has-artwork::before { z-index: 0; background-image: none; background-position: center; filter: blur(18px); opacity: .62; transform: scale(1.12); }
.cover.has-artwork.cover-art-ready::before { background-image: var(--cover-image); }
.cover.has-artwork::after { z-index: 1; display: block; background: rgba(5,9,13,.28); }
.cover-image { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; }
.cover.detail-cover-inner { aspect-ratio: auto; height: auto; overflow: visible; }
.cover.detail-cover-inner.has-artwork::before, .cover.detail-cover-inner.has-artwork::after { display: none; }
.cover.detail-cover-inner.has-artwork .cover-image { width: 100%; height: auto; object-fit: contain; }
.cover[data-variant="stone"] { background: linear-gradient(145deg, #8b765e, #312719); }
.cover[data-variant="gold"] { background: linear-gradient(145deg, #b8802f, #241810 80%); }
.cover[data-variant="night"] { background: linear-gradient(145deg, #375366, #101c28 60%, #17100d); }
.cover[data-variant="fire"] { background: linear-gradient(145deg, #d95f1e, #271312 80%); }
.cover[data-variant="mountain"] { background: linear-gradient(145deg, #566d78, #202f3f 60%, #121a1a); }
.cover[data-variant="sand"] { background: linear-gradient(145deg, #bf915e, #3b2416 77%); }
.cover-title { align-self: center; width: 100%; margin-top: auto; text-align: center; color: #fcf8ee; font-family: "Libre Baskerville", serif; font-size: clamp(13px, 1.5vw, 19px); line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.cover-author { position: absolute; bottom: 9px; left: 0; width: 100%; text-align: center; color: rgba(255,255,255,.8); font-family: "Libre Baskerville", serif; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.cover.has-artwork .cover-title, .cover.has-artwork .cover-author { display: none !important; }
.media-badge { position: absolute; right: 9px; bottom: 8px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 50%; background: #0a1118; color: #fff; border: 1px solid rgba(255,255,255,.15); }
.media-badge.media-badge-multiple { width: auto; min-width: 29px; padding: 0 7px; gap: 4px; border-radius: 999px; }
.media-format { display: inline-flex; align-items: center; justify-content: center; }
.media-badge svg { width: 17px; height: 17px; }
.card-details { padding: 10px 11px 11px; }
.card-title { overflow: hidden; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.card-author { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { display: grid; place-items: center; min-height: 390px; padding: 30px; text-align: center; border: 1px dashed rgba(155, 180, 209, .2); border-radius: 16px; background: #0b1218; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 11px; font-weight: 600; }
.primary-button { background: var(--blue); color: white; }
.primary-button:hover { background: var(--blue-bright); }
.secondary-button { background: var(--panel-soft); border: 1px solid var(--line); }

.detail-page { max-width: 1220px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #e5ebf1; font-size: 14px; }
.back-link svg { width: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(230px, 410px) minmax(0, 1fr); gap: 55px; align-items: start; }
.detail-cover { max-width: 410px; width: 100%; justify-self: center; overflow: visible; border-radius: 15px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.hero-book-container { box-shadow: none; }
.hero-book-stage { --hero-rotate-x: 0deg; --hero-rotate-y: 0deg; --hero-depth: 0px; --hero-shift-x: 0px; --hero-shift-y: 0px; --hero-shadow-x: 0px; --hero-shadow-y: 4px; --hero-shadow-scale: 1; --hero-light-x: 0px; --hero-light-y: 0px; position: relative; display: grid; place-items: center; width: 100%; min-height: 560px; overflow: visible; isolation: isolate; perspective: 1200px; perspective-origin: 50% 42%; }
.hero-book-tilt { position: relative; z-index: 2; display: block; width: 100%; max-width: 410px; aspect-ratio: .68; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), var(--hero-depth)) rotateX(var(--hero-rotate-x)) rotateY(var(--hero-rotate-y)); transition: transform .28s cubic-bezier(.2,.75,.25,1); will-change: transform; }
.hero-book-tilt .physical-book { width: 100%; height: 100%; aspect-ratio: auto; --book-scale: 1; --book-z: 0px; --pointer-rotate-x: 0deg; --pointer-rotate-y: 0deg; --book-angle: 0deg; transform: translateZ(var(--hero-body-depth, 0px)) rotateX(1deg); transition: none; filter: drop-shadow(17px 22px 19px rgba(0,0,0,.3)); }
.hero-book-tilt .physical-book-front-outside { transform: translate3d(var(--hero-front-shift-x, 0px), var(--hero-front-shift-y, 0px), 1px); }
.hero-book-tilt .physical-book-page-face { transform: translate3d(var(--hero-page-shift-x, 0px), var(--hero-page-shift-y, 0px), calc(var(--book-depth) / 2 - 1px)); }
.hero-book-shadow { position: absolute; z-index: 0; left: 50%; bottom: 5%; width: 72%; height: 11%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.46), rgba(0,0,0,.2) 45%, transparent 74%); filter: blur(17px); opacity: .62; pointer-events: none; transform: translate3d(calc(-50% + var(--hero-shadow-x)), var(--hero-shadow-y), -24px) scaleX(var(--hero-shadow-scale)); transition: transform .28s ease, opacity .28s ease; will-change: transform; }
.hero-book-highlight { position: absolute; z-index: 5; inset: 3% 2%; border-radius: 4px 11px 11px 4px; background: radial-gradient(circle at calc(50% + var(--hero-light-x)) calc(48% + var(--hero-light-y)), rgba(255,255,255,.24), transparent 38%), linear-gradient(115deg, transparent 27%, rgba(255,255,255,.09) 49%, transparent 67%); mix-blend-mode: screen; opacity: .36; pointer-events: none; transform: translate3d(var(--hero-front-shift-x, 0px), var(--hero-front-shift-y, 0px), 34px); transition: opacity .28s ease; will-change: transform; }
.hero-book-stage[data-hero-input="static"] .hero-book-tilt { transform: none; }
.hero-book-stage[data-hero-input="static"] .physical-book { transform: none; filter: drop-shadow(0 18px 36px rgba(0,0,0,.24)); }
.hero-book-stage[data-hero-input="static"] .hero-book-highlight { opacity: 0; }
body.light-mode .hero-book-shadow { background: radial-gradient(ellipse, rgba(23,35,48,.3), rgba(23,35,48,.12) 45%, transparent 74%); opacity: .48; }
.detail-cover .cover-title { font-size: clamp(21px, 2.4vw, 34px); }
.detail-cover .cover-author { font-size: 11px; bottom: 18px; }
.detail-info { padding-top: 0; min-width: 0; overflow-wrap: anywhere; }
.detail-categories { margin-bottom: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; margin-bottom: 16px; border-radius: 20px; background: #141c24; color: #dfe7f1; font-size: 13px; line-height: 1.2; }
.detail-info h1 { margin: 0; font-size: clamp(30px, 4vw, 55px); line-height: 1.05; letter-spacing: -.06em; }
.author-line { margin: 19px 0 25px; color: #d3d9e0; font-size: 18px; line-height: 1.55; }
.author-line a { color: #27a5ff; }
.detail-meta-group { display: grid; gap: 14px; margin: 0 0 24px; }
.meta-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.meta-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #101820; color: #e3e8ee; font-size: 14px; }
.meta-pill svg { width: 20px; height: 20px; color: #dfe5eb; }
.duration-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.duration-item { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 67px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--panel) 72%, transparent); }
.duration-item-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(45,120,255,.12); color: var(--blue-bright); }
.duration-item-icon svg { width: 19px; height: 19px; }
.duration-item-copy { display: grid; min-width: 0; gap: 3px; }
.duration-item-label { color: var(--muted); font-size: 12px; line-height: 1.3; }
.duration-item-copy strong { overflow-wrap: anywhere; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.35; }
.listen-button { width: min(100%, 400px); min-height: 58px; margin-bottom: 0; font-size: 18px; touch-action: manipulation; transition: transform .18s cubic-bezier(.2,.75,.25,1), background-color .18s ease, box-shadow .18s ease; }
.listen-button svg { width: 21px; fill: currentColor; stroke: none; }
.listen-button:hover { transform: translateY(-2px); background: var(--blue-bright); box-shadow: 0 9px 24px rgba(45,120,255,.28); }
.listen-button:active { transform: translateY(0) scale(.99); box-shadow: 0 3px 10px rgba(45,120,255,.2); }
.listen-button:focus-visible, .resume-action:focus-visible { outline: 3px solid rgba(115,177,255,.9); outline-offset: 3px; }
.book-primary-action { display: grid; align-items: start; gap: 13px; width: min(100%, 430px); margin-bottom: 30px; }
.book-primary-action .listen-button { margin-bottom: 0; }
.resume-hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.resume-actions { display: grid; gap: 9px; width: 100%; }
.resume-action { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid rgba(86,151,255,.38); border-radius: 12px; background: linear-gradient(110deg, rgba(45,120,255,.12), rgba(45,120,255,.045)); color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.resume-action:hover { transform: translateY(-1px); border-color: rgba(86,151,255,.75); background: rgba(45,120,255,.16); }
.resume-action > svg { width: 18px; height: 18px; color: var(--blue-bright); }
.resume-action-copy { display: grid; min-width: 0; gap: 3px; }
.resume-action-label { font-size: 14px; font-weight: 650; }
.resume-action-pages { color: var(--muted); font-size: 12px; line-height: 1.35; }
.reading-progress-track { display: block; grid-column: 1 / 2; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(150,170,195,.18); }
.reading-progress-track > span { display: block; width: var(--reading-progress); height: 100%; border-radius: inherit; background: var(--blue-bright); }
.resume-action-percent { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.resume-audio-action { grid-template-columns: minmax(0, 1fr) 18px; }
.icon-action-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-soft); color: var(--muted); }
.icon-action-button:hover, .icon-action-button[aria-pressed="true"] { border-color: rgba(85,150,255,.65); background: rgba(45,120,255,.16); color: var(--blue-bright); }
.icon-action-button svg { width: 20px; height: 20px; }
.book-engagement { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: min(100%, 400px); margin: 0 0 30px; }
.book-engagement .book-reactions { width: auto; margin: 0; }
.save-book-button { flex: 0 0 44px; margin: 0; }
.resume-hint { margin-top: 8px; color: var(--muted); font-size: 12px; }
.book-reactions { display: flex; flex-wrap: wrap; gap: 10px; width: min(100%, 400px); margin: -10px 0 30px; }
.reaction-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); color: var(--muted); }
.reaction-button svg { width: 18px; height: 18px; }
.reaction-button strong { min-width: 1.2em; color: var(--text); font-size: 13px; text-align: center; }
.reaction-button:hover, .reaction-button.active { border-color: rgba(85,150,255,.65); background: rgba(45,120,255,.16); color: var(--blue-bright); }
.reaction-button.active strong { color: var(--blue-bright); }
.detail-copy { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.detail-copy-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-copy h3 { margin: 0; font-size: 18px; }
.description-audio-control audio { display: none; }
.description-audio-button { display: inline-grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 6px 20px rgba(45, 120, 255, .38); }
.description-audio-button svg { width: 25px; height: 25px; }
.description-audio-button:hover, .description-audio-button:focus-visible, .description-audio-button.is-playing { background: var(--blue-bright); box-shadow: 0 8px 26px rgba(45, 120, 255, .5); }
.description-audio-button:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.detail-copy p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 27px; }
.person-card { padding: 18px; background: #0e161e; border: 1px solid var(--line); border-radius: 14px; }
.person-card h3 { margin: 0 0 8px; font-size: 17px; }
.person-card p { margin: 0 0 16px; color: var(--muted); }

.page-title { max-width: 1200px; margin: 0 auto 28px; }
.page-title h1 { margin: 0; font-size: 34px; letter-spacing: -.06em; }
.author-detail-page .page-title h1 { display: flex; align-items: flex-start; gap: 8px; }
.author-detail-page .page-title h1 > span { min-width: 0; }
.page-title p { margin: 7px 0 0; color: var(--muted); }
.library-controls { display: flex; align-items: end; gap: 14px; width: min(100%, 1200px); margin: 0 auto 16px; }
.library-search-control { flex: 1 1 auto; min-width: 0; }
.library-filter-label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.library-filter-input { display: block; width: 100%; min-height: 46px; padding: 0 14px; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); }
.library-filter-input:focus-visible, .library-language-select:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.library-language-control { display: grid; flex: 0 0 220px; gap: 7px; color: var(--muted); font-size: 13px; }
.library-language-select { width: 100%; min-width: 0; min-height: 46px; padding: 0 36px 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); font: inherit; }
.library-language-select option { background: #101820; color: #f4f7fb; }
.filter-bar { display: flex; gap: 8px; margin: 0 auto 24px; max-width: 1200px; overflow-x: auto; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); white-space: nowrap; }
.filter-chip.active, .filter-chip:hover { background: #1d2b40; border-color: #2c5b98; color: white; }
.filter-chip-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.09); color: inherit; font-size: 11px; line-height: 1; }
.library-result-count { max-width: 1200px; margin: -8px auto 16px; color: var(--muted); font-size: 13px; }
.detail-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 13px; }
.detail-category-chip { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); color: var(--muted); font-size: 12px; text-decoration: none; }
.detail-category-chip:hover, .detail-category-chip:focus-visible { border-color: #2c5b98; color: var(--text); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }

.profile-page { max-width: 930px; margin: 0 auto; }
.profile-hero { display: flex; align-items: center; gap: 21px; padding: 27px; margin-bottom: 25px; background: linear-gradient(135deg, #121d29, #0e151d); border: 1px solid var(--line); border-radius: 17px; }
.profile-hero > div { min-width: 0; }
.profile-hero .avatar { width: 82px; height: 82px; font-size: 27px; }
.profile-hero h1 { margin: 0; font-size: 30px; letter-spacing: -.05em; }
.profile-name-wrap { flex: 1 1 180px; }
.profile-avatar-button { position: relative; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.profile-avatar-button .avatar { display: flex; }
.profile-photo-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px; border-radius: 50%; background: rgba(3, 9, 16, .78); color: #fff; font-size: 10px; line-height: 1.1; opacity: 0; transition: opacity .16s ease; }
.profile-avatar-button:hover .profile-photo-overlay, .profile-avatar-button:focus-visible .profile-photo-overlay { opacity: 1; }
.profile-avatar-button:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; }
.profile-name-edit { padding: 5px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 16px; vertical-align: middle; }
.profile-name-edit:hover, .profile-name-edit:focus-visible { color: var(--text); background: var(--panel-soft); }
.profile-edit-form { display: grid; justify-items: start; gap: 8px; }
.profile-name-input { min-width: 0; width: min(100%, 360px); min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-raised); color: var(--text); font: inherit; font-size: 26px; font-weight: 700; }
.avatar-image { background: #1a2632; }
.avatar-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.profile-logout { white-space: nowrap; }
.profile-edit-form small { color: var(--muted); font-size: 12px; }
.profile-edit-actions { display: flex; gap: 10px; }
.profile-tabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-tab { padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); }
.profile-tab.active { border-color: var(--blue); color: white; }
.author-list { display: grid; gap: 13px; }
.author-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 13px; background: #0f171f; border: 1px solid var(--line); }
.author-row-link { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
.author-row-link:hover strong, .author-row-link:focus-visible strong { color: var(--blue-bright); }
.author-row .avatar { width: 48px; height: 48px; background: linear-gradient(145deg, #385879, #111820); }
.author-row strong { display: block; }
.author-row-copy span { color: var(--muted); font-size: 13px; }
.author-row-arrow, .author-favorite-toggle { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); text-decoration: none; }
.author-row-arrow:hover, .author-row-arrow:focus-visible, .author-favorite-toggle:hover, .author-favorite-toggle:focus-visible { border-color: var(--line); background: var(--panel-soft); color: var(--text); }
.author-favorite-toggle { color: #f4c95d; font-size: 23px; cursor: pointer; }
.profile-stat-card { justify-content: flex-start; min-height: 48px; cursor: pointer; text-align: left; }
.profile-stat-card:hover { border-color: rgba(69, 137, 255, .62); background: #172336; transform: translateY(-1px); }
.profile-stat-card:focus-visible, .people-segment:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.profile-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.people-segments { display: inline-flex; gap: 5px; padding: 4px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.people-segment { padding: 9px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.people-segment.active, .people-segment:hover { background: #1d2b40; color: var(--text); }

.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 330px; padding: 13px 16px; border-radius: 10px; background: #eaf2ff; color: #12233a; font-size: 14px; box-shadow: 0 12px 35px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.login-page { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 0; align-items: stretch; width: 100%; max-width: 980px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 18px 48px rgba(0, 0, 0, .14); }
.login-experience { display: grid; gap: 20px; width: min(100%, 1560px); min-width: 0; margin-inline: auto; }
.login-experience .login-panel { padding: clamp(22px, 4vw, 36px); }
.login-experience .login-panel h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; }
.login-experience .login-form { gap: 12px; margin-top: 17px; }
.login-about { min-width: 0; }
.login-page::before { position: absolute; z-index: -1; top: -35%; right: -6%; width: 58%; height: 150%; border-radius: 50%; background: radial-gradient(ellipse, rgba(45, 120, 255, .14), transparent 68%); content: ''; pointer-events: none; }
.login-panel, .login-side { border: 0; border-radius: 0; background: transparent; }
.login-panel { position: relative; z-index: 1; padding: clamp(24px, 5vw, 46px); background: var(--panel); }
.login-panel h1 { max-width: 620px; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.06em; }
.login-panel p { color: var(--muted); line-height: 1.55; }
.login-form { display: grid; gap: 15px; max-width: 440px; margin-top: 24px; }
.login-form label { display: grid; gap: 7px; color: #dce5ef; font-size: 14px; }
.login-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #091118; color: var(--text); outline: 0; }
.login-form input:focus { border-color: rgba(85, 150, 255, .7); box-shadow: 0 0 0 3px rgba(45, 120, 255, .18); }
.login-form .primary-button { width: 100%; margin-top: 4px; }
.form-note { margin: 0; font-size: 12px; }
.auth-switch { margin: 0; font-size: 14px; }
.auth-switch a { color: var(--blue-bright); font-weight: 700; }
.verification-spam-notice { margin: 0; padding: 10px 13px; border: 1px solid rgba(224, 169, 84, .34); border-radius: 10px; background: rgba(224, 169, 84, .1); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.45; text-align: center; }
.verification-spam-notice strong { color: #f0b35a; font-weight: 800; letter-spacing: .03em; }
body.light-mode .verification-spam-notice { border-color: rgba(159, 104, 20, .3); background: #fff7e6; color: #34414d; }
body.light-mode .verification-spam-notice strong { color: #a45d00; }
.login-side { position: relative; z-index: 1; display: grid; place-items: center; padding: 12px; text-align: center; }
.login-value-panel { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 20px; min-height: 100%; padding: clamp(24px, 3vw, 34px); overflow: hidden; border: 1px solid rgba(112, 159, 225, .18); border-left: 0; border-radius: 0 16px 16px 0; text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); background: radial-gradient(circle at 92% 8%, rgba(85, 150, 255, .24), transparent 43%), linear-gradient(90deg, transparent 0%, #14243a 36%, #0b121b 100%); }
.landing-library-panel { min-height: 260px; }
.login-value-panel::before { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--panel) 22%, transparent) 24%, transparent 58%), linear-gradient(180deg, rgba(7, 12, 17, .04) 0%, rgba(7, 12, 17, .1) 40%, rgba(7, 12, 17, .58) 73%, #0a1016 100%); content: ''; pointer-events: none; }
.login-value-panel::after { position: absolute; right: -38px; bottom: -52px; width: 150px; height: 150px; border: 1px solid rgba(85, 150, 255, .12); border-radius: 50%; box-shadow: 0 0 0 18px rgba(85, 150, 255, .035), 0 0 0 38px rgba(85, 150, 255, .025); content: ''; pointer-events: none; }
.value-library-art { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.value-art-item { position: absolute; display: grid; place-items: center; color: var(--blue-bright); opacity: .23; }
.value-art-book svg { width: 100%; height: 100%; }
.value-art-book-one { top: 13%; right: 12%; width: 76px; height: 76px; transform: rotate(10deg); color: #64b8ff; }
.value-art-book-two { top: 29%; left: 10%; width: 42px; height: 42px; transform: rotate(-14deg); color: #9c8cff; opacity: .16; }
.value-art-headphones { top: 13%; left: 19%; width: 52px; height: 52px; transform: rotate(-12deg); color: #efb866; opacity: .18; }
.value-art-headphones svg { width: 100%; height: 100%; }
.value-art-bookmark { top: 35%; right: 26%; width: 19px; height: 65px; border-radius: 4px 4px 8px 8px; background: linear-gradient(180deg, #7d7aff, #4da9ff); opacity: .25; transform: rotate(18deg); }
.value-art-bookmark::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 16px; background: inherit; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); content: ''; }
.value-art-scroll { top: 26%; right: -12px; width: 96px; height: 38px; border: 2px solid #51c8d6; border-radius: 20px; opacity: .14; transform: rotate(-17deg); }
.value-art-scroll::before, .value-art-scroll::after { position: absolute; width: 13px; height: 46px; border: 2px solid currentColor; border-radius: 50%; content: ''; }
.value-art-scroll::before { left: -8px; }
.value-art-scroll::after { right: -8px; }
.value-art-spark { position: absolute; color: #efb866; font-size: 22px; font-style: normal; opacity: .42; }
.value-art-spark-one { top: 9%; right: 35%; }
.value-art-spark-two { top: 42%; left: 27%; color: #72d7db; font-size: 14px; opacity: .3; }
.value-art-waveform { position: absolute; top: 47%; right: 12%; display: flex !important; align-items: center; gap: 4px; height: 34px; margin: 0 !important; color: #64b8ff !important; opacity: .2; }
.value-art-waveform i { display: block; width: 3px; height: 12px; border-radius: 99px; background: currentColor; }
.value-art-waveform i:nth-child(2), .value-art-waveform i:nth-child(6) { height: 23px; }
.value-art-waveform i:nth-child(3), .value-art-waveform i:nth-child(5) { height: 31px; }
.value-art-waveform i:nth-child(4) { height: 17px; }
.value-badge { position: relative; z-index: 1; align-self: flex-start; display: inline-flex !important; align-items: center; gap: 8px; max-width: 100%; margin: 0 !important; padding: 8px 11px; border: 1px solid rgba(85, 150, 255, .25); border-radius: 999px; color: var(--blue-bright) !important; background: rgba(45, 120, 255, .1); font-size: 11px !important; font-weight: 700; line-height: 1.1 !important; letter-spacing: .03em; }
.value-badge-icon, .value-stat-icon { display: grid !important; place-items: center; color: currentColor; }
.value-badge-icon { flex: 0 0 auto; width: 18px; height: 18px; margin: 0 !important; line-height: 0; transform: translateY(-2px); }
.value-badge-icon svg { width: 18px; height: 18px; }
.value-primary-stat, .value-message, .value-stat-grid { position: relative; z-index: 1; }
.value-primary-stat strong { display: block; margin: 0; color: var(--text); font-size: clamp(64px, 8vw, 100px); line-height: .82; letter-spacing: -.09em; }
.value-primary-stat > span { display: block; max-width: none; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.35; }
.value-message { max-width: 220px; margin: 0; color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.35; }
.value-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.value-stat-card { min-width: 0; display: flex; align-items: center; gap: clamp(6px, 1vw, 12px); padding: 13px clamp(8px, 1.1vw, 16px) 13px 10px; border: 1px solid rgba(160, 180, 200, .14); border-radius: 12px; background: rgba(255, 255, 255, .045); }
.value-stat-card:nth-child(2) { padding-right: clamp(8px, 1.1vw, 16px); }
.value-stat-icon { flex: 0 0 40px; align-self: center; display: grid !important; place-items: center; min-height: 44px; margin: 0 !important; border-radius: 11px; color: var(--blue-bright); background: rgba(45, 120, 255, .14); transform: translateY(-2px); }
.value-stat-icon svg { width: 22px; height: 22px; }
.value-stat-copy { flex: 1 1 auto; min-width: 0; display: flex !important; flex-direction: column; justify-content: center; margin: 0 !important; color: var(--text) !important; font-size: inherit !important; line-height: 1 !important; }
.value-stat-copy strong { display: block; margin: 0; font-size: 21px; line-height: 1; letter-spacing: -.04em; }
.value-stat-copy small { display: block; max-width: 100%; margin-top: 5px; color: var(--muted); font-size: clamp(10px, .8vw, 11px); line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.author-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .45fr); gap: 12px; margin: 0 0 18px; }
.author-controls label { min-width: 0; }
.author-controls .author-search { width: 100%; max-width: none; }
.author-sort { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #101820; font: inherit; }
.author-row-copy { flex: 1 1 auto; min-width: 0; }
.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; }
body.light-mode .login-page { background: var(--surface-card); }
body.light-mode .login-page::before { background: radial-gradient(ellipse, rgba(45, 120, 255, .12), transparent 68%); }
body.light-mode .login-panel { background: var(--surface-card); }
body.light-mode .login-value-panel { border-color: rgba(57, 103, 157, .17); background: radial-gradient(circle at 92% 8%, rgba(45, 120, 255, .2), transparent 43%), linear-gradient(90deg, transparent 0%, #e5effb 36%, #dce9f8 100%); }
body.light-mode .login-value-panel::before { background: linear-gradient(90deg, transparent 0%, rgba(249, 251, 253, .22) 24%, transparent 58%), linear-gradient(180deg, rgba(220, 234, 250, .02) 0%, rgba(220, 234, 250, .08) 42%, rgba(220, 234, 250, .28) 75%, #dce9f8 100%); }
body.light-mode .login-value-panel::after { border-color: rgba(45, 120, 255, .16); box-shadow: 0 0 0 18px rgba(45, 120, 255, .055), 0 0 0 38px rgba(45, 120, 255, .035); }
body.light-mode .value-stat-card { border-color: rgba(57, 103, 157, .16); background: rgba(249, 251, 253, .72); }
body.light-mode .value-stat-icon { background: rgba(45, 120, 255, .12); }
body.light-mode .value-badge { border-color: rgba(45, 120, 255, .24); background: rgba(45, 120, 255, .09); color: #245ca2 !important; }

@media (max-width: 1060px) {
  .topbar { gap: 15px; padding: 0 20px; }
  .brand { flex-basis: auto; }
  .search-field { max-width: 440px; }
  .main-content { padding-left: calc(var(--sidebar) + 28px); padding-right: 28px; }
  .top-actions { gap: 11px; }
  .language-toggle { width: 36px; height: 36px; }
  .detail-layout { gap: 35px; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-stats { min-height: 180px; }
}
@media (max-width: 760px) {
  :root { --header: 116px; }
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu brand actions" "search search search"; column-gap: 10px; row-gap: 6px; height: var(--header); min-height: var(--header); padding: 6px 15px; }
  .brand { grid-area: brand; min-width: 0; width: auto; gap: 7px; font-size: 20px; }
  .brand-mark { width: 29px; }
  .search-field { grid-area: search; min-width: 0; width: 100%; max-width: none; height: 43px; }
  .top-actions { grid-area: actions; min-width: 0; margin-left: 0; gap: 4px; }
  .support-button { min-height: 34px; padding: 0 9px; gap: 5px; font-size: 12px; }
  .support-button [data-support-label] { display: none; }
  .hide-small { display: none; }
  .language-selector { order: 0; flex: 0 0 auto; justify-content: center; }
  .profile-name, .profile-trigger > svg { display: none; }
  .profile-trigger { flex: 0 0 auto; min-width: 0; padding-left: 4px; }
  body.sidebar-open { overflow: hidden; }
  .icon-button.mobile-menu-button { grid-area: menu; display: inline-flex; flex: 0 0 36px; width: 36px; height: 40px; order: 0; }
  .mobile-menu-button svg { width: 23px; height: 23px; }
  .sidebar { top: 0; bottom: 0; z-index: 40; width: min(300px, calc(100vw - 52px)); padding: 22px 18px; transform: translateX(-105%); transition: transform .24s ease; box-shadow: 18px 0 45px rgba(0,0,0,.35); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close-button { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; }
  .sidebar-close-button:hover, .sidebar-close-button:focus-visible { color: var(--text); background: rgba(125,145,165,.12); }
  .sidebar-close-button svg { width: 20px; height: 20px; }
  .sidebar-close-button span { font-size: 13px; }
  .side-nav { margin-top: 18px; }
  .nav-link { justify-content: flex-start; width: 100%; height: 48px; padding: 0 12px; gap: 12px; }
  .nav-link span { position: static; padding: 0; border: 0; background: transparent; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; }
  .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0,0,0,.58); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .main-content { min-width: 0; padding: calc(var(--header) + 20px) 16px 40px; overflow-x: clip; }
  .library-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .library-language-control { width: 100%; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 21px; }
  .section-heading p { font-size: 13px; }
  .text-link { padding: 8px; font-size: 0; }
  .text-link svg { margin: 0; }
  .featured-frame { gap: 0; }
  .featured-stage { width: fit-content; max-width: 100%; min-height: 260px; gap: 7px; }
  .featured-arrow { width: 42px; height: 42px; }
  .featured-arrow-previous { left: 8px; }
  .featured-arrow-next { right: 8px; }
  .featured-book-previous, .featured-book-next { flex-basis: 90px; }
  .featured-book-previous-far, .featured-book-next-far { flex-basis: 70px; }
  .featured-book-center { flex-basis: 130px; }
  .featured-book-copy strong { font-size: 12px; }
  .featured-book-copy small { font-size: 11px; }
  .shelf-track { grid-auto-columns: 153px; gap: 12px; }
  .shelf-track.search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-page, .detail-layout, .detail-info { width: 100%; max-width: 100%; min-width: 0; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .detail-cover { width: min(100%, 310px); max-width: 100%; }
  .hero-book-stage { min-height: 460px; }
  .hero-book-tilt { max-width: 310px; }
  .detail-info, .detail-copy, .person-card { min-width: 0; max-width: 100%; }
  .detail-info h1 { overflow-wrap: anywhere; }
  .detail-copy p { overflow-wrap: anywhere; }
  .description-audio-button { width: 56px; height: 56px; }
  .meta-grid, .book-primary-action, .book-engagement, .book-reactions { max-width: 100%; min-width: 0; }
  .duration-list { grid-template-columns: minmax(0, 1fr); }
  .book-primary-action { width: 100%; }
  .listen-button { width: 100%; }
  .resume-action { min-width: 0; }
  .primary-button, .secondary-button { max-width: 100%; }
  .detail-info h1 { font-size: 35px; }
  .people-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .page-title h1 { font-size: 29px; }
  .profile-hero { padding: 20px; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .profile-actions { width: 100%; margin-left: 0; }
  .profile-actions .secondary-button { flex: 1; }
  .login-page { grid-template-columns: minmax(0, 1fr); background: var(--panel); }
  .login-page::before { top: auto; right: -25%; bottom: -28%; width: 90%; height: 44%; opacity: .45; }
  .login-panel { background: var(--panel); }
  .login-side { padding: 0 18px 18px; }
  .login-value-panel { width: 100%; min-height: 0; gap: 16px; padding: 22px; border: 1px solid rgba(112, 159, 225, .18); border-radius: 16px; background: radial-gradient(circle at 92% 8%, rgba(85, 150, 255, .24), transparent 43%), linear-gradient(145deg, #14243a, #0b121b 82%); }
  body.light-mode .login-value-panel { background: radial-gradient(circle at 92% 8%, rgba(45, 120, 255, .2), transparent 43%), linear-gradient(145deg, #e5effb, #dce9f8 82%); }
  body.light-mode .login-page { background: var(--surface-card); }
  body.light-mode .login-panel { background: var(--surface-card); }
  body.light-mode .login-page::before { opacity: .24; }
  body.light-mode .login-value-panel::before { background: linear-gradient(180deg, rgba(220, 234, 250, .02) 0%, rgba(220, 234, 250, .08) 42%, rgba(220, 234, 250, .28) 75%, #dce9f8 100%); }
  .value-stat-card { align-items: flex-start; gap: 7px; padding: 11px 8px; }
  .value-stat-icon { flex-basis: 32px; min-height: 38px; }
  .author-controls { grid-template-columns: minmax(0, 1fr); }
  .value-primary-stat strong { font-size: clamp(64px, 22vw, 88px); }
  .landing-copy { padding: 24px; }
  .landing-actions .primary-button, .landing-actions .secondary-button { width: 100%; }
  .notification-panel { position: fixed; top: calc(var(--header) + 8px); left: 12px; right: 12px; width: auto; max-width: none; max-height: calc(100vh - var(--header) - 24px); }
}

@media (max-width: 520px) {
  .profile-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-edit-form { width: 100%; }
  .profile-name-input { flex: 1 1 180px; font-size: 22px; }
  .people-segments { display: flex; width: 100%; }
  .people-segment { flex: 1 1 50%; text-align: center; }
  .author-row { gap: 5px; padding: 9px; }
  .author-row-link { gap: 9px; }
  .author-row .avatar { width: 42px; height: 42px; }
  .author-row-arrow, .author-favorite-toggle { flex-basis: 36px; width: 36px; height: 40px; }
  .support-modal { padding: 12px; }
  .support-modal-card { max-height: calc(100vh - 24px); border-radius: 17px; }
  .support-modal-heading { padding: 21px 19px 9px; }
  .support-copy { padding: 0 19px 14px; }
  .support-panel { margin: 0 10px 10px; }
  .support-embed iframe { height: 650px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-photo-overlay, .profile-stat-card { transition: none; }
  .profile-stat-card:hover { transform: none; }
}
@media (max-width: 700px) {
  .featured-book-previous-far, .featured-book-next-far { display: none; }
  .featured-book-previous, .featured-book-next { flex-basis: 100px; }
  .featured-book-center { flex-basis: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-book { animation: none; }
}

/* Physical book carousel: the cover remains the source of truth while the shell
   adds restrained depth, page edges, and ambient color. */
.featured-frame { min-height: 470px; isolation: isolate; }
.featured-stage { position: relative; display: block; width: 100%; max-width: 100%; min-height: 455px; height: 455px; padding: 0; overflow: hidden; perspective: 1100px; }
.featured-ambient { position: absolute; z-index: 0; left: 50%; top: 48%; width: 42%; height: 72%; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(56,123,208,.16), transparent 68%); background: radial-gradient(ellipse, color-mix(in srgb, var(--ambient-color, #387bd0) 28%, transparent), transparent 68%); filter: blur(24px); opacity: .75; transition: background .7s ease, opacity .7s ease; }
.featured-book { position: absolute; z-index: 1; top: 0; left: calc(50% + var(--slot-x, 0px)); display: block; width: 220px; min-width: 0; padding: 0; opacity: .34; animation: none; transform: translateX(-50%) scale(.7); transform-origin: 50% 92%; filter: saturate(.7) brightness(.72); transition: left .78s cubic-bezier(.2,.76,.2,1), opacity .78s ease, transform .78s cubic-bezier(.2,.76,.2,1), filter .78s ease; }
.featured-book-previous-far { --slot-x: -430px; z-index: 1; }
.featured-book-previous { --slot-x: -250px; z-index: 2; opacity: .62; transform: translateX(-50%) scale(.82); filter: saturate(.86) brightness(.83); }
.featured-book-center { --slot-x: 0px; z-index: 4; opacity: 1; transform: translateX(-50%) scale(1); filter: none; }
.featured-book-next { --slot-x: 250px; z-index: 2; opacity: .62; transform: translateX(-50%) scale(.82); filter: saturate(.86) brightness(.83); }
.featured-book-next-far { --slot-x: 430px; z-index: 1; }
.featured-book-visual { display: grid; place-items: end center; height: 335px; perspective: 1000px; }
.physical-book { --pointer-rotate-x: 0deg; --pointer-rotate-y: 0deg; --book-angle: 0deg; --book-z: 0px; --light-x: 50%; --light-y: 45%; position: relative; display: block; width: 196px; aspect-ratio: .68; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transform: translateZ(var(--book-z)) rotateX(calc(1deg + var(--pointer-rotate-x))) rotateY(calc(var(--book-angle) + var(--pointer-rotate-y))) scale(var(--book-scale, 1)); transition: transform .78s cubic-bezier(.2,.76,.2,1); filter: drop-shadow(17px 22px 19px rgba(0,0,0,.32)); }
.featured-book-center .physical-book { --book-scale: 1.02; --book-z: 14px; }
.featured-book-previous .physical-book { --book-scale: .88; --book-angle: 22deg; --book-z: 2px; filter: drop-shadow(10px 18px 15px rgba(0,0,0,.25)); }
.featured-book-next .physical-book { --book-scale: .88; --book-angle: -22deg; --book-z: 2px; filter: drop-shadow(-10px 18px 15px rgba(0,0,0,.25)); }
.featured-book-previous-far .physical-book { --book-scale: .78; --book-angle: 30deg; --book-z: -10px; filter: drop-shadow(7px 14px 12px rgba(0,0,0,.2)); }
.featured-book-next-far .physical-book { --book-scale: .78; --book-angle: -30deg; --book-z: -10px; filter: drop-shadow(-7px 14px 12px rgba(0,0,0,.2)); }
.physical-book-front, .physical-book-back, .physical-book-spine, .physical-book-pages, .physical-book-page-face { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.physical-book-front { inset: 0; z-index: 3; overflow: visible; border-radius: 2px 8px 8px 2px; transform: translateZ(calc(var(--book-depth) / 2)); background: var(--book-color); box-shadow: inset -2px 0 0 rgba(0,0,0,.2), inset 3px 0 0 rgba(255,255,255,.1); transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.physical-book-front { transform-origin: left center; transition: transform .56s cubic-bezier(.2,.76,.2,1); }
.physical-book-front-outside { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.physical-book-cover-slot { position: absolute; inset: 0; }
.physical-book-page-face { inset: 0; z-index: 1; border-radius: 2px 8px 8px 2px; transform: translateZ(calc(var(--book-depth) / 2 - 1px)); background: repeating-linear-gradient(0deg, rgba(118,91,55,.045) 0 1px, transparent 1px 5px), linear-gradient(90deg, #cdbd9f 0%, #f5eedf 5%, #e9dcc4 70%, #d2c1a4 100%); box-shadow: inset 14px 0 22px rgba(88,60,30,.2), inset -2px 0 0 rgba(110,82,46,.28); }
.physical-book-front .cover { width: 100%; height: 100%; aspect-ratio: auto; padding: 15px 11px; border-radius: inherit; }
.physical-book-front .cover.has-artwork { padding: 0; }
.physical-book-front .cover-image { object-fit: contain; }
.physical-book-front .cover-title { font-size: 15px; }
.physical-book-back { inset: 0; border-radius: 8px 2px 2px 8px; transform: rotateY(180deg) translateZ(calc(var(--book-depth) / 2)); background: linear-gradient(145deg, var(--book-color), #111820); background: linear-gradient(145deg, color-mix(in srgb, var(--book-color) 82%, #fff), color-mix(in srgb, var(--book-color) 72%, #000)); }
.physical-book-spine { top: 0; bottom: 0; left: calc(var(--book-depth) / -2); width: var(--book-depth); transform: rotateY(-90deg) translateZ(calc(var(--book-depth) / 2)); transform-origin: right center; background: linear-gradient(90deg, var(--book-color), #121820 48%, #0a0e13); background: linear-gradient(90deg, color-mix(in srgb, var(--book-color) 70%, #000), color-mix(in srgb, var(--book-color) 88%, #fff) 48%, color-mix(in srgb, var(--book-color) 62%, #000)); }
.physical-book-spine > span { position: absolute; inset: 14px 3px; overflow: hidden; color: rgba(255,255,255,.9); font: 600 8px/1.2 "Libre Baskerville", serif; letter-spacing: .05em; text-align: center; writing-mode: vertical-rl; text-overflow: ellipsis; white-space: nowrap; }
.physical-book-pages { background: repeating-linear-gradient(0deg, #f3ead8 0 1px, #d7ccb8 1px 2px); }
.physical-book-pages-top, .physical-book-pages-bottom { left: 0; right: 0; height: var(--book-depth); }
.physical-book-pages-top { top: calc(var(--book-depth) / -2); transform: rotateX(90deg) translateZ(calc(var(--book-depth) / 2)); transform-origin: bottom center; }
.physical-book-pages-bottom { bottom: calc(var(--book-depth) / -2); transform: rotateX(-90deg) translateZ(calc(var(--book-depth) / 2)); transform-origin: top center; }
.physical-book-pages-right { top: 0; bottom: 0; right: calc(var(--book-depth) / -2); width: var(--book-depth); transform: rotateY(90deg) translateZ(calc(var(--book-depth) / 2)); transform-origin: left center; }
.physical-book-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--light-x) var(--light-y), rgba(255,255,255,.22), transparent 37%); mix-blend-mode: screen; opacity: .38; transition: opacity .4s ease, background-position .2s ease; }
.physical-book-spine-label { display: none; }
.featured-book-copy { position: relative; z-index: 2; padding-top: 14px; }
.featured-book-center .featured-book-copy strong { font-size: 15px; }
.featured-book-center .featured-book-copy strong { display: block; overflow: visible; line-height: 1.25; overflow-wrap: anywhere; white-space: normal; text-overflow: clip; }
.featured-book-center .featured-book-copy small { display: block; margin-top: 4px; overflow: visible; line-height: 1.25; overflow-wrap: anywhere; white-space: normal; text-overflow: clip; }
.featured-book-center .featured-book-visual { animation: featured-book-idle 6s ease-in-out infinite; }
@keyframes featured-book-idle { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(.2deg); } }
.featured-section.is-opening .featured-book:not(.is-opening) { opacity: .46; filter: saturate(.58) brightness(.68); transform: translateX(-50%) scale(.76); }
.featured-section.is-opening .featured-book.is-opening { z-index: 9; }
.featured-section.is-opening .featured-ambient { opacity: .9; transform: translate(-50%, -50%) scale(1.08); }
.physical-book.is-opening { --book-z: 30px; --book-scale: 1.05; }
.physical-book.is-opening .physical-book-front { transform: translateZ(calc(var(--book-depth) / 2)) rotateY(-60deg); }
.physical-book.is-opening .physical-book-page-face { filter: brightness(1.05); }
.physical-book.is-opening .physical-book-pages-right { filter: brightness(1.08); box-shadow: inset 2px 0 0 rgba(255,255,255,.35); }
.book-opening-source > .cover { visibility: hidden; }
.book-opening-overlay { position: fixed; z-index: 120; inset: 0; overflow: visible; pointer-events: none; perspective: 1200px; }
.book-opening-overlay .physical-book { position: absolute; left: var(--opening-left); top: var(--opening-top); width: var(--opening-width); height: var(--opening-height); aspect-ratio: auto; --book-scale: var(--opening-scale, 1); --book-z: 0px; transform: none; transform-origin: left center; }
.book-opening-overlay .physical-book-page-face { transform: none; }
.book-opening-overlay .physical-book.is-opening { --book-z: 28px; --book-scale: var(--opening-scale, 1); }
.book-opening-overlay .physical-book-front .cover { padding: 0; }
.book-opening-overlay .physical-book-front .cover-image { object-fit: contain; }
body.light-mode .featured-ambient { opacity: .45; }
body.light-mode .physical-book-pages { background: repeating-linear-gradient(0deg, #fffaf0 0 1px, #d7cbb8 1px 2px); }
body.light-mode .featured-frame::before { background: linear-gradient(90deg, rgba(232,240,248,.98), rgba(232,240,248,.45), transparent); }
body.light-mode .featured-frame::after { background: linear-gradient(270deg, rgba(232,240,248,.98), rgba(232,240,248,.45), transparent); }
@media (max-width: 760px) {
  .featured-frame { min-height: 420px; padding-inline: 6px; }
  .featured-stage { min-height: 390px; height: 390px; }
  .featured-book { width: 166px; }
  .featured-book-previous-far { --slot-x: -305px; }
  .featured-book-previous { --slot-x: -176px; }
  .featured-book-next { --slot-x: 176px; }
  .featured-book-next-far { --slot-x: 305px; }
  .featured-book-visual { height: 275px; }
  .physical-book { width: 150px; }
}
@media (max-width: 700px) {
  .featured-book-previous-far, .featured-book-next-far { display: none; }
  .featured-book { width: 172px; }
  .featured-book-previous { --slot-x: -126px; transform: translateX(-50%) scale(.7); opacity: .5; }
  .featured-book-center { --slot-x: 0px; }
  .featured-book-next { --slot-x: 126px; transform: translateX(-50%) scale(.7); opacity: .5; }
  .featured-book-center .physical-book { --book-scale: .94; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-book, .physical-book, .featured-ambient { transition-duration: .01ms; }
  .featured-book-center .featured-book-visual { animation: none; }
  .physical-book-sheen { display: none; }
  .hero-book-tilt { transform: none !important; transition: none; }
  .hero-book-shadow, .hero-book-highlight { transition: none; }
  .listen-button, .resume-action { transition: none; }
  .listen-button:hover, .listen-button:active, .resume-action:hover { transform: none; }
  .hero-book-highlight { opacity: 0 !important; }
  .physical-book.is-opening { --book-z: 16px; --book-scale: 1.01; }
  .physical-book.is-opening .physical-book-front { transform: translateZ(calc(var(--book-depth) / 2)) rotateY(-8deg); }
}
@media (min-width: 761px) and (max-width: 900px) {
  .shelf-track { grid-auto-columns: 175px; gap: 14px; }
  .shelf-track.search-results { grid-template-columns: repeat(auto-fill, minmax(160px, 175px)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .detail-cover { max-width: 360px; }
}
@media (max-width: 420px) {
  .topbar { gap: 9px; }
  .brand > span { display: none; }
  .profile-trigger .avatar { width: 36px; height: 36px; }
  .book-grid { gap: 10px; }
}

/* Public Report / Contact page. */
.report-page-shell { display: grid; gap: 24px; width: min(100%, 1560px); min-width: 0; margin: 0 auto; color: var(--text); }
.report-page { display: grid; gap: 18px; min-width: 0; }
.report-hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: clamp(210px, 16vw, 260px); padding: 28px clamp(24px, 3vw, 42px); padding-right: clamp(340px, 43%, 560px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; isolation: isolate; background: #071525; }
.report-hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,16,28,.97) 0%, rgba(5,16,28,.91) 30%, rgba(5,16,28,.74) 50%, rgba(5,16,28,.4) 69%, rgba(5,16,28,.08) 100%); content: ''; pointer-events: none; }
.report-hero-image { position: absolute; z-index: -2; inset: 0 0 0 auto; display: block; width: 58%; height: 100%; object-fit: cover; object-position: center; opacity: .94; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%); }
.report-eyebrow { color: var(--blue-bright); font-size: 12px; font-weight: 750; letter-spacing: .13em; }
.report-hero h1 { max-width: 850px; margin: 7px 0 8px; color: #fff; font-size: clamp(34px, 3.3vw, 48px); line-height: 1.08; letter-spacing: -.05em; }
.report-hero p, .report-card-heading p { max-width: 780px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.report-hero p { color: rgba(236,242,249,.83); }
.report-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .95fr); align-items: start; gap: 16px; min-width: 0; }
.report-card { min-width: 0; padding: clamp(17px, 1.7vw, 23px); border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(ellipse at 100% 0%, rgba(45,120,255,.07), transparent 42%), var(--panel); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.report-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.report-heading-icon { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(45,120,255,.18); color: #90bbff; }
.report-heading-icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.report-heading-icon-help { color: #67b6ff; background: rgba(45,120,255,.2); }
.report-heading-icon-faq { color: #ff6688; background: rgba(236,70,112,.15); }
.report-heading-icon-faq svg { fill: currentColor; stroke: currentColor; }
.report-card-heading h2 { margin: 0 0 4px; color: var(--text); font-size: 22px; letter-spacing: -.035em; }
.report-card-heading p { font-size: 13px; }
.report-form { display: grid; gap: 11px; min-width: 0; }
.report-form label, .report-attachment-field > label { display: grid; gap: 5px; min-width: 0; color: var(--text); font-size: 12.5px; font-weight: 650; }
.report-label-text { display: block; line-height: 1.35; }
.report-required { color: #ff858d; }
.report-email-help { position: relative; display: inline-flex; margin-left: 5px; vertical-align: middle; }
.report-email-help-button { display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: help; }
.report-email-help-button:hover, .report-email-help-button:focus-visible { color: var(--blue-bright); outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.report-email-help-button svg { width: 15px; height: 15px; }
.report-email-tooltip { position: absolute; z-index: 10; bottom: calc(100% + 8px); left: 0; width: max-content; max-width: min(290px, 75vw); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-raised); box-shadow: 0 8px 24px rgba(0,0,0,.22); font-size: 12px; font-weight: 450; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease; }
.report-email-help:hover .report-email-tooltip, .report-email-help:focus-within .report-email-tooltip, .report-email-help-button[aria-expanded="true"] + .report-email-tooltip { opacity: 1; transform: translateY(0); }
.report-email-error { color: #ff9e9e; font-size: 12px; line-height: 1.4; }
.report-email-error[hidden] { display: none; }
.report-control { display: flex; align-items: center; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-input); transition: border-color .16s ease, box-shadow .16s ease; }
.report-control > svg { flex: 0 0 20px; width: 20px; height: 20px; margin-right: 12px; color: var(--muted); stroke-width: 1.8; }
.report-control:focus-within { border-color: color-mix(in srgb, var(--blue-bright) 75%, white); box-shadow: 0 0 0 3px rgba(45,120,255,.15); }
.report-control:has([aria-invalid="true"]) { border-color: #f07878; box-shadow: 0 0 0 2px rgba(240,120,120,.14); }
.report-form input:not([type="file"]), .report-form select, .report-form textarea { width: 100%; min-width: 0; padding: 9px 2px; border: 0; border-radius: 0; outline: none; color: var(--text); background: transparent; font: inherit; font-size: 13px; }
.report-form input:focus, .report-form select:focus, .report-form textarea:focus { box-shadow: none; }
.report-control-textarea { position: relative; align-items: flex-start; min-height: 240px; padding-top: 10px; }
.report-control-textarea > svg { margin-top: 2px; }
.report-control-textarea textarea { min-height: 222px; padding-top: 2px; padding-bottom: 22px; resize: vertical; line-height: 1.45; }
.report-form input::placeholder, .report-form textarea::placeholder { color: var(--muted-2); }
.report-select-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-form select { min-height: 40px; padding-right: 20px; }
.report-message-count { position: absolute; right: 11px; bottom: 8px; color: var(--muted-2); font-size: 11px; font-weight: 400; }
.report-attachment-field { display: grid; gap: 7px; min-width: 0; }
.report-upload-box { position: relative; display: grid; grid-template-columns: 44px minmax(150px, .95fr) 1px minmax(130px, 1fr); align-items: center; gap: 14px; min-height: 94px; padding: 12px 15px; border: 1px dashed color-mix(in srgb, var(--blue-bright) 42%, var(--line)); border-radius: 13px; background: linear-gradient(110deg, rgba(45,120,255,.045), color-mix(in srgb, var(--panel-soft) 38%, transparent)); transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.report-upload-box.is-drag-active { border-color: var(--blue-bright); background: linear-gradient(110deg, rgba(45,120,255,.16), color-mix(in srgb, var(--blue) 10%, var(--panel-soft))); box-shadow: inset 0 0 0 1px rgba(85,150,255,.32), 0 0 0 3px rgba(45,120,255,.12), 0 8px 24px rgba(20,90,220,.12); }
.report-upload-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #a9caff; background: rgba(45,120,255,.15); transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.report-upload-box.is-drag-active .report-upload-symbol { color: #fff; background: rgba(45,120,255,.34); box-shadow: 0 0 0 4px rgba(85,150,255,.12), 0 0 20px rgba(45,120,255,.3); transform: scale(1.04); }
.report-upload-box.is-drag-active [data-report-drop-prompt] { color: #9fc4ff; font-size: 14px; }
.report-upload-box.is-drag-active [data-report-drop-hint] { color: #c4d9ff; }
.report-upload-symbol svg { width: 26px; height: 26px; }
.report-upload-main { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.report-upload-box strong { color: var(--text); font-size: 13px; font-weight: 650; }
.report-upload-or { color: var(--muted-2); font-size: 11px; }
.report-upload-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 8px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 700; }
.report-upload-button svg { width: 16px; height: 16px; }
.report-upload-divider { width: 1px; height: 54px; background: var(--line); }
.report-upload-hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.report-upload-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.report-upload-box:focus-within { outline: 3px solid color-mix(in srgb, var(--blue-bright) 70%, transparent); outline-offset: 2px; }
.report-file-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.report-file-chip { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 66px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-soft); }
.report-file-preview { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; overflow: hidden; }
.report-file-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.report-file-name { overflow: hidden; flex: 1; min-width: 0; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.report-file-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.report-file-chip .icon-button { flex: 0 0 34px; width: 34px; height: 34px; font-size: 21px; }
.report-file-error { padding: 9px 11px; border-radius: 9px; color: #ffb3b3; background: rgba(213,65,65,.12); font-size: 12px; }
.report-file-error[hidden] { display: none; }
.report-send-notice { margin: 0; padding: 9px 12px; border: 1px solid rgba(237,180,83,.2); border-radius: 10px; color: var(--muted); background: rgba(237,180,83,.07); font-size: 11.5px; line-height: 1.45; }
.report-form-actions { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 10px; }
.report-form-actions button { min-height: 42px; }
.report-form-actions button svg { width: 18px; height: 18px; }
.report-form-actions button:disabled { cursor: not-allowed; opacity: .56; }
.report-submit-spinner { display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: report-submit-spin .7s linear infinite; }
@keyframes report-submit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .report-submit-spinner { animation: none; } }
@media (prefers-reduced-motion: reduce) { .report-upload-box, .report-upload-symbol { transition: none; } }
.report-side-column { display: grid; gap: 14px; min-width: 0; }
.report-help-card, .report-faq-card { padding: 18px; }
.report-help-list { display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel-soft) 36%, transparent); }
.report-help-item { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 8px; border: 1px solid color-mix(in srgb, var(--line) 72%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--panel) 72%, transparent); }
.report-help-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #87b5ff; background: rgba(45,120,255,.14); }
.report-help-icon svg { width: 20px; height: 20px; stroke-width: 1.9; }
.report-help-icon-1 { color: #48d59a; background: rgba(35,190,132,.14); }
.report-help-icon-2 svg { stroke-width: 2.2; }
.report-help-icon-5 svg { fill: currentColor; stroke: currentColor; }
.report-help-icon-2 { color: #c49cff; background: rgba(166,126,255,.14); }
.report-help-icon-3 { color: #6fd6a0; background: rgba(79,190,137,.14); }
.report-help-icon-4 { color: #f0c36c; background: rgba(240,175,75,.14); }
.report-help-icon-5 { color: #ff9ba3; background: rgba(233,91,112,.14); }
.report-help-item h3 { margin: 1px 0 3px; color: var(--text); font-size: 14px; }
.report-help-item p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.report-faq-list { display: grid; gap: 6px; }
.report-faq-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel-soft) 48%, var(--panel)); }
.report-faq-item h3 { margin: 0; }
.report-faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 11px; border: 0; color: var(--text); background: transparent; font: inherit; font-size: 12.5px; font-weight: 650; text-align: left; cursor: pointer; }
.report-faq-trigger:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; }
.report-chevron { color: var(--muted); font-size: 18px; transition: transform .18s ease; }
.report-faq-item.is-open .report-chevron { transform: rotate(180deg); }
.report-faq-panel p { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.report-faq-panel[hidden] { display: none; }
.main-content:has(> .report-page-shell) { padding-top: calc(var(--header) + 34px); }
body.light-mode .report-card { background: radial-gradient(ellipse at 100% 0%, rgba(45,120,255,.055), transparent 42%), var(--panel); }
body.light-mode .report-send-notice { color: #5f5036; background: rgba(237,180,83,.1); }
body.light-mode .report-file-error { color: #8c2727; }
body.light-mode .report-email-error { color: #8c2727; }
@media (max-width: 1000px) {
  .report-columns { grid-template-columns: minmax(0, 1fr); }
  .report-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .report-hero { padding-right: min(40%, 380px); }
  .report-hero-image { width: 40%; }
}
@media (max-width: 760px) {
  .report-page-shell { gap: 20px; }
  .report-page { gap: 16px; }
  .report-hero { min-height: 250px; padding: 24px 22px 128px; }
  .report-hero::after { background: linear-gradient(180deg, rgba(5,16,28,.97) 0%, rgba(5,16,28,.94) 48%, rgba(5,16,28,.66) 74%, rgba(5,16,28,.28) 100%); }
  .report-hero-image { inset: auto 0 0 auto; width: min(68%, 390px); height: 132px; object-position: center 48%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); }
  .report-hero h1 { font-size: clamp(29px, 8vw, 38px); }
  .report-hero p { font-size: 14px; }
  .report-side-column { grid-template-columns: minmax(0, 1fr); }
  .report-card { padding: 18px; }
  .report-upload-box { grid-template-columns: 40px minmax(0, 1fr); }
  .report-upload-divider { display: none; }
  .report-upload-hint { grid-column: 2; }
}
@media (max-width: 520px) {
  .report-select-row, .report-file-list, .report-form-actions { grid-template-columns: minmax(0, 1fr); }
  .report-form-actions button { width: 100%; }
  .report-upload-box { grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px; }
  .report-upload-symbol { width: 34px; height: 34px; }
  .report-upload-main { gap: 2px; }
  .report-upload-hint { grid-column: 1 / -1; }
  .report-hero { min-height: 246px; padding: 22px 18px 108px; }
  .report-hero-image { width: min(78%, 330px); height: 112px; }
  .report-card-heading { gap: 11px; }
  .report-heading-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .report-card-heading h2 { font-size: 19px; }
}
