:root {
  --paper: #f6f4ee;
  --surface: #fffefa;
  --surface-2: #f0eee7;
  --ink: #222820;
  --muted: #788078;
  --line: #e6e3d9;
  --accent: #456b59;
  --accent-dark: #31503f;
  --accent-soft: #e5eee7;
  --orange: #d78d5a;
  --shadow: 0 16px 42px rgba(37, 46, 37, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(48,57,47,.09); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; }
.brand-mark { width: 27px; height: 25px; position: relative; display: inline-flex; align-items: center; }
.brand-mark span { width: 14px; height: 21px; border: 2px solid var(--accent); border-radius: 3px 5px 5px 3px; transform: skewY(-6deg); background: #e4ede5; }
.brand-mark span + span { position: absolute; left: 10px; background: #fffefa; }
.brand-name { font: 800 24px/1 "Manrope", sans-serif; letter-spacing: -1.6px; }
.brand-dot { color: var(--orange); }
.top-nav { display: flex; align-items: center; gap: 34px; height: 100%; }
.nav-link { height: 100%; border: 0; background: transparent; color: #777e74; font-size: 13px; font-weight: 600; position: relative; padding: 0 2px; }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.topbar-right { min-width: 190px; display: flex; align-items: center; justify-content: flex-end; gap: 17px; }
.language-chip { font-size: 11px; font-weight: 600; color: #687369; display: inline-flex; align-items: center; gap: 7px; background: #eeeee7; padding: 9px 12px; border-radius: 100px; }
.language-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.avatar-button { border: 1px solid #dfe3d9; background: #e8eee8; color: var(--accent-dark); font-weight: 700; width: 34px; height: 34px; border-radius: 50%; }
.hero { min-height: 390px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 52px 7% 36px; position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 9px; }
.eyebrow { font-size: 9px; letter-spacing: 2.2px; color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 28px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font: 700 clamp(42px,5vw,62px)/1.06 "Manrope", sans-serif; letter-spacing: -3.4px; margin: 23px 0 17px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-description { font-size: 14px; line-height: 1.75; color: #71796f; max-width: 450px; margin-bottom: 23px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; color: #535e54; font-size: 11px; font-weight: 600; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.check-icon { font-style: normal; display: inline-grid; place-items: center; border-radius: 50%; background: #e4eee6; color: var(--accent); width: 16px; height: 16px; font-size: 10px; }
.hero-art { position: relative; height: 300px; max-width: 490px; width: 100%; justify-self: center; }
.art-orbit { position: absolute; border: 1px solid #e4e0d3; border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 370px; height: 220px; top: 37px; left: 58px; }
.orbit-two { width: 300px; height: 265px; top: 23px; left: 87px; transform: rotate(38deg); border-style: dashed; opacity: .8; }
.art-book { position: absolute; height: 225px; width: 162px; border-radius: 7px 12px 12px 7px; box-shadow: 13px 15px 32px rgba(32,45,34,.2); transform: rotate(-7deg); }
.book-back { top: 44px; left: 107px; background: #c1a68b; transform: rotate(-16deg); }
.book-back::after { content: ""; position: absolute; top: 7px; bottom: 7px; right: 7px; width: 7px; border-radius: 0 7px 7px 0; background: #e1d1b7; }
.book-front { top: 31px; left: 178px; background: #436553; color: #f4f0e2; padding: 21px 19px; transform: rotate(8deg); }
.book-cover-mark { font: 800 18px "Manrope"; color: #e3b585; }
.book-cover-title { margin-top: 34px; font: 700 20px/1.09 "Manrope"; letter-spacing: -.8px; }
.book-cover-sub { position: absolute; bottom: 17px; left: 19px; font-size: 5px; letter-spacing: 1.3px; opacity: .75; }
.book-page-lines { position: absolute; left: 22px; top: 42px; width: 95px; height: 145px; background: repeating-linear-gradient(to bottom, rgba(91,70,53,.28) 0 1px, transparent 1px 9px); }
.art-note { position: absolute; z-index: 3; background: var(--surface); padding: 10px 14px; border: 1px solid #e8e4d9; border-radius: 8px; box-shadow: 0 7px 20px rgba(36,45,34,.09); color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.note-top { top: 32px; right: 28px; transform: rotate(6deg); }
.note-bottom { left: 64px; bottom: 17px; transform: rotate(-5deg); font-size: 10px; color: #94704d; }
.art-spark { position: absolute; color: var(--orange); font-size: 23px; }
.spark-one { top: 10px; left: 140px; }
.spark-two { bottom: 42px; right: 52px; font-size: 18px; }
.search-section, .results-section, .sources-section { padding: 34px 7% 0; }
.section-heading, .results-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.muted-eyebrow { color: #91988e; font-size: 9px; letter-spacing: 1.8px; margin-bottom: 8px; }
.section-heading h2, .results-heading h2, .compact-heading h2 { font: 700 25px/1.2 "Manrope", sans-serif; letter-spacing: -1px; margin: 0; }
.search-hint, .small-note { color: #959b91; font-size: 11px; padding-bottom: 4px; }
.search-panel { background: var(--surface); border: 1px solid #e8e6dd; border-radius: 13px; padding: 15px 18px 12px; box-shadow: 0 8px 26px rgba(46,52,43,.035); }
.search-tabs { display: flex; gap: 6px; border-bottom: 1px solid #eeece5; margin: 0 -2px 9px; }
.search-tab { border: 0; background: transparent; padding: 5px 15px 12px; color: #8b9187; font-weight: 600; font-size: 12px; position: relative; }
.search-tab.is-active { color: var(--accent-dark); }
.search-tab.is-active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tab-icon { margin-right: 7px; font-size: 15px; color: #839687; }
.search-form { height: 55px; display: flex; align-items: center; gap: 13px; }
.search-icon { font-family: sans-serif; font-size: 30px; color: #a4aaa0; line-height: 1; transform: rotate(-15deg); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 14px; background: transparent; }
.search-form input::placeholder { color: #b0b4ab; }
.search-button { border: 0; border-radius: 8px; padding: 13px 20px; background: var(--accent); color: #fff; font-weight: 600; font-size: 12px; transition: background .2s, transform .2s; }
.search-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.search-button span { margin-left: 9px; font-size: 16px; }
.search-footer { display: flex; justify-content: space-between; border-top: 1px solid #f0eee8; padding-top: 10px; color: #a0a59c; font-size: 10px; }
.search-shortcut { color: #c0c3ba; }
.results-section { padding-top: 48px; }
.results-heading { margin-bottom: 20px; }
.results-count { font-size: 11px; color: #8b9388; }
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.result-card { min-width: 0; background: var(--surface); border: 1px solid #e9e6de; border-radius: 11px; padding: 12px; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4ddd4; }
.card-main { display: flex; gap: 12px; min-height: 126px; }
.cover-wrap { flex: 0 0 78px; height: 112px; overflow: hidden; background: #ebe8de; border-radius: 5px; position: relative; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder { height: 100%; display: grid; place-items: center; color: #9caa9c; font: 700 24px "Manrope"; background: linear-gradient(145deg,#e9e6dc,#dfe8df); }
.card-meta { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.card-source { display: inline-flex; width: fit-content; color: #7e8f7f; font-size: 8px; letter-spacing: .9px; text-transform: uppercase; font-weight: 700; }
.card-title { font: 700 13px/1.35 "Manrope",sans-serif; letter-spacing: -.25px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-subtitle { font-size: 10px; line-height: 1.45; color: #92988f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-year { font-size: 9px; color: #a5a99f; margin-top: auto; }
.card-bottom { border-top: 1px solid #f0eee8; margin-top: 10px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-action { font-size: 10px; color: var(--accent); font-weight: 700; border: 0; background: transparent; padding: 3px 0; text-align: left; }
.card-action:hover { color: var(--accent-dark); text-decoration: underline; }
.save-button { flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #e8e8df; border-radius: 50%; background: transparent; color: #849085; font-size: 16px; line-height: 1; }
.save-button.is-saved { background: #e6eee6; color: var(--accent); border-color: #dbe7db; }
.result-message { grid-column: 1/-1; background: var(--surface); border: 1px dashed #deded3; border-radius: 12px; padding: 30px; text-align: center; color: #80877d; font-size: 13px; }
.sources-section { padding-top: 61px; }
.compact-heading { align-items: flex-end; margin-bottom: 17px; }
.source-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.source-card { min-height: 78px; border: 1px solid #e7e5dc; background: rgba(255,254,250,.72); display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 9px; transition: transform .18s, border-color .18s; }
.source-card:hover { transform: translateY(-2px); border-color: #cfd9cf; }
.source-symbol { height: 37px; width: 37px; border-radius: 9px; display: grid; place-items: center; font: 800 13px "Manrope"; color: #fff; background: #394e61; flex: 0 0 auto; }
.source-mplus .source-symbol { background: #b9473d; }
.source-webtoon .source-symbol { background: #3caa67; }
.source-kado .source-symbol { background: #506a8c; }
.source-md .source-symbol { background: #3b4c62; font-size: 10px; }
.source-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.source-copy strong { font: 700 11px "Manrope"; }
.source-copy small { color: #979d92; font-size: 9px; line-height: 1.35; }
.external-arrow { margin-left: auto; color: #a5aca1; font-size: 14px; }
.source-disclaimer { margin: 12px 0 0; color: #a0a69c; font-size: 10px; line-height: 1.55; }
.how-section { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 43px 7% 58px; }
.how-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px 15px; border-top: 1px solid #deded2; }
.how-number { color: #c2a17e; font: 700 11px "Manrope"; padding-top: 2px; }
.how-card strong { display: block; font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.how-card p { margin: 0; color: #969d92; font-size: 10px; line-height: 1.5; }
.footer { border-top: 1px solid rgba(48,57,47,.09); min-height: 73px; display: flex; align-items: center; justify-content: space-between; color: #9ba197; font-size: 10px; }
.footer-brand { min-width: 0; transform: scale(.8); transform-origin: left center; }
.footer-right { text-align: right; }
.view[hidden], [hidden] { display: none !important; }
.library-header { padding: 60px 7% 28px; }
.library-header h1 { font: 700 42px "Manrope"; letter-spacing: -2px; margin: 9px 0; }
.library-header p { color: #8a9287; font-size: 13px; margin: 0; }
.library-grid { padding: 0 7%; }
.empty-state { text-align: center; padding: 70px 20px 100px; }
.empty-illustration { display: inline-grid; place-items: center; height: 65px; width: 65px; background: #e8ede5; color: #839887; border-radius: 18px; font-size: 28px; margin-bottom: 16px; }
.empty-state h3 { font: 700 18px "Manrope"; margin-bottom: 8px; }
.empty-state p { color: #8b9388; font-size: 12px; margin-bottom: 18px; }
.secondary-button { border: 1px solid #d9e2d9; border-radius: 7px; padding: 10px 15px; background: #edf2eb; color: var(--accent-dark); font-size: 11px; font-weight: 700; }
.reader-overlay { position: fixed; inset: 0; z-index: 10; background: #f8f7f1; display: flex; flex-direction: column; overflow: auto; }
.reader-topbar { height: 67px; flex: 0 0 67px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; padding: 0 5.5%; border-bottom: 1px solid #e7e5dc; background: rgba(255,254,250,.9); }
.reader-back { color: #617262; border: 0; background: none; font-size: 12px; text-align: left; font-weight: 600; }
.reader-back span { margin-left: 5px; }
.reader-book-title { text-align: center; font: 700 13px "Manrope"; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.icon-button { border: 1px solid #e3e5dc; color: #788778; background: transparent; width: 33px; height: 33px; justify-self: end; border-radius: 50%; font-size: 17px; }
.reader-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 8%; border-bottom: 1px solid #eeece5; }
.reader-source-label { font-size: 10px; color: #8c958a; }
.reader-controls { display: flex; align-items: center; gap: 11px; }
.reader-controls label { display: flex; align-items: center; gap: 6px; color: #959b91; font-size: 10px; }
.reader-controls select { border: 1px solid #e2e4da; background: #fffefa; border-radius: 6px; color: #3d4d40; padding: 7px 8px; font-size: 10px; }
.language-arrow { color: #9aab9c; font-size: 14px; }
.reader-mode-button { border: 1px solid #e2e5dc; background: transparent; border-radius: 6px; color: #889287; padding: 8px 10px; font-size: 10px; }
.reader-mode-button.is-active { background: #e8eee7; color: var(--accent-dark); border-color: #d9e4d9; }
.reader-notice { margin: 17px auto 0; max-width: 840px; width: calc(100% - 40px); border-radius: 8px; padding: 11px 15px; background: #f0efe6; color: #898f82; font-size: 10px; line-height: 1.55; }
.reader-notice span { color: #b18f69; margin-right: 6px; }
.reader-content-wrap { flex: 1; padding: 32px 20px 70px; }
.reader-content { width: 100%; max-width: 760px; margin: 0 auto; color: #30362f; font: 17px/1.95 Georgia, "Times New Roman", serif; }
.reader-content h2 { font: 700 23px/1.4 "Manrope"; letter-spacing: -.7px; margin: 43px 0 24px; }
.reader-content p { margin: 0 0 22px; white-space: pre-wrap; }
.reader-paragraph { position: relative; }
.translate-paragraph { display: inline-flex; border: 1px solid #e2e7df; background: #fbfcf8; color: #5f7c64; border-radius: 20px; font: 600 9px "DM Sans"; padding: 5px 10px; margin: 2px 0 6px; opacity: .8; }
.translate-paragraph:hover { opacity: 1; background: #eaf1e9; }
.reader-content:not(.bilingual-mode) .translated-text { display: none; }
.translated-text { font: 15px/1.8 "DM Sans", sans-serif; color: #536f5b; background: #edf2eb; border-left: 2px solid #8eaa91; padding: 13px 15px; border-radius: 0 8px 8px 0; margin: -7px 0 22px; }
.reader-loading { color: #8b9589; text-align: center; padding: 70px 10px; font: 13px "DM Sans"; }
.reader-bottom { min-height: 47px; display: flex; justify-content: space-between; align-items: center; padding: 0 8%; border-top: 1px solid #e9e7de; color: #a0a69b; font-size: 9px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; background: #2f4738; color: white; padding: 11px 17px; border-radius: 8px; box-shadow: 0 7px 24px rgba(30,40,30,.18); font-size: 11px; transition: opacity .2s, transform .2s; max-width: calc(100% - 30px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.settings-popover { position: fixed; z-index: 15; top: 69px; right: max(25px,calc((100vw - 1328px)/2 + 56px)); width: 290px; background: #fffefa; border: 1px solid #e5e5dc; border-radius: 10px; box-shadow: var(--shadow); padding: 17px; }
.settings-popover strong { font: 700 12px "Manrope"; }
.settings-popover p { color: #8c958a; font-size: 10px; line-height: 1.55; margin: 8px 0 12px; }
.text-danger { border: 0; background: transparent; color: #a45b50; font-size: 10px; padding: 0; }
@media (max-width: 1050px) {
  .app-shell { padding: 0 30px; }
  .hero { padding-left: 3%; padding-right: 3%; }
  .search-section,.results-section,.sources-section { padding-left: 3%; padding-right: 3%; }
  .how-section { padding-left: 3%; padding-right: 3%; }
  .results-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .source-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .app-shell { padding: 0 18px; }
  .topbar { height: 67px; }
  .brand { min-width: auto; }
  .brand-name { font-size: 22px; }
  .top-nav { gap: 14px; }
  .nav-link { font-size: 10px; }
  .topbar-right { min-width: 0; }
  .language-chip { display: none; }
  .hero { display: block; min-height: auto; padding: 47px 2% 20px; }
  .hero h1 { font-size: 47px; letter-spacing: -2.7px; }
  .hero-description { font-size: 13px; max-width: 520px; }
  .hero-art { height: 235px; transform: scale(.8); transform-origin: top center; margin: 5px auto -37px; }
  .search-section,.results-section,.sources-section { padding-left: 2%; padding-right: 2%; }
  .section-heading h2,.results-heading h2 { font-size: 22px; }
  .search-hint { display: none; }
  .search-panel { padding: 12px; }
  .search-form { gap: 8px; height: 49px; }
  .search-form input { font-size: 12px; }
  .search-button { padding: 11px 13px; font-size: 11px; }
  .search-footer { font-size: 9px; }
  .results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .result-card { padding: 9px; }
  .card-main { gap: 9px; min-height: 115px; }
  .cover-wrap { flex-basis: 65px; height: 97px; }
  .card-title { font-size: 11px; }
  .card-subtitle { font-size: 9px; }
  .source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .source-card { padding: 10px 8px; gap: 7px; min-height: 71px; }
  .source-symbol { width: 31px; height: 31px; font-size: 10px; }
  .source-copy strong { font-size: 10px; }
  .source-copy small { font-size: 8px; }
  .external-arrow { font-size: 11px; }
  .how-section { grid-template-columns: 1fr; padding: 33px 2% 42px; gap: 0; }
  .how-card { padding: 13px 10px; }
  .footer { flex-wrap: wrap; gap: 5px 15px; padding: 14px 0; min-height: 70px; }
  .footer-right { width: 100%; text-align: left; }
  .library-header { padding: 42px 2% 24px; }
  .library-header h1 { font-size: 34px; }
  .library-grid { padding: 0 2%; }
  .reader-topbar { height: 58px; flex-basis: 58px; padding: 0 14px; grid-template-columns: 1fr 1.5fr 1fr; }
  .reader-back { font-size: 10px; }
  .reader-back span { display: none; }
  .reader-book-title { font-size: 11px; }
  .reader-toolbar { display: block; padding: 13px 14px; }
  .reader-source-label { margin-bottom: 11px; }
  .reader-controls { flex-wrap: wrap; gap: 7px; }
  .reader-controls label { font-size: 9px; }
  .reader-controls select { font-size: 9px; padding: 6px; }
  .reader-mode-button { padding: 7px 8px; }
  .reader-content-wrap { padding: 25px 20px 60px; }
  .reader-content { font-size: 16px; }
  .reader-content h2 { font-size: 20px; }
  .reader-bottom { padding: 9px 15px; gap: 10px; flex-wrap: wrap; }
  .settings-popover { right: 16px; top: 59px; }
}
@media (max-width: 390px) {
  .top-nav { gap: 9px; }
  .nav-link { font-size: 9px; }
  .avatar-button { width: 30px; height: 30px; }
  .hero h1 { font-size: 42px; }
  .search-tab { padding-left: 10px; padding-right: 10px; }
  .source-copy small { display: none; }
}
