.reader-page { background: #101612; color: #f2f4ec; --reader-line:#354331; --reader-muted:#abb8a5; }
.reader-container { width:min(1160px,calc(100% - 40px)); margin-inline:auto; }
.reader-header { border-bottom:1px solid #354331; background:#101612f2; }
.reader-header-inner { min-height:82px; display:flex; align-items:center; gap:30px; }
.reader-header img { width:164px; height:auto; }
.reader-header nav { display:flex; align-items:center; gap:25px; margin-left:auto; }
.reader-header nav a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; color:var(--reader-muted); }
.reader-header nav a[aria-current] { color:#e3eacb; }
.reader-logout { min-height:44px; padding:8px 14px; border:1px solid var(--reader-line); border-radius:6px; color:var(--reader-muted); font-size:14px; }
.reader-loading { padding:80px 0; color:var(--reader-muted); }
.reader-page button:disabled { cursor:wait; opacity:.5; }
.reader-page h1,.reader-page h2,.reader-page h3 { letter-spacing:-.045em; }
.reader-page h2 { font-size:clamp(26px,4vw,34px); font-weight:550; line-height:1.25; }
.reader-eyebrow { font-size:12px; line-height:1.7; letter-spacing:.12em; color:#b1c098; }
.reader-primary,.reader-secondary { min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border:1px solid transparent; border-radius:6px; font-size:14px; font-weight:650; line-height:1.5; }
.reader-primary { background:#d1ddbb; color:#172010; }
.reader-primary:hover { background:#e2e9d2; }
.reader-secondary { border-color:#556649; background:#c4d3a507; color:#dce6cf; }
.reader-secondary:hover { border-color:#a3b889; background:#c4d3a512; }
.reader-auth { display:grid; grid-template-columns:minmax(320px,390px) minmax(0,1.25fr); align-items:center; gap:clamp(36px,5vw,68px); padding-block:clamp(24px,4vh,44px); min-height:calc(100dvh - 84px - 40px); }
.auth-story { display:flex; flex-direction:column; }
.auth-story h1 { margin-top:0; font-size:clamp(26px,3vw,38px); font-weight:550; line-height:1.2; letter-spacing:-.035em; white-space:nowrap; }
.auth-story h1 span { color:#ddc295; }
.auth-story > p:not(.reader-eyebrow) { max-width:480px; margin-top:12px; color:var(--reader-muted); line-height:1.6; font-size:15px; }
.auth-books-showcase { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:22px; max-width:520px; }
.auth-book-item { position:relative; border-radius:4px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,0.45),0 2px 6px rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.08); transition:transform .28s cubic-bezier(0.16,1,0.3,1),box-shadow .28s ease,border-color .28s ease; aspect-ratio:839/1191; background:#19221a; }
.auth-book-item img { width:100%; height:100%; object-fit:cover; display:block; }
.auth-book-item:hover { transform:translateY(-4px) scale(1.03); box-shadow:0 14px 28px rgba(0,0,0,0.6),0 0 16px rgba(221,194,149,0.18); border-color:rgba(221,194,149,0.35); z-index:2; }
.auth-story-badge { display:inline-flex; align-items:center; gap:8px; margin-top:18px; font-size:12px; color:#9cb08f; letter-spacing:.04em; }
.auth-story-badge .icon { width:15px; height:15px; color:#ddc295; }
.auth-badge-dot { opacity:.5; }
.reader-auth-card { padding:24px 22px; background:#19221a; border:1px solid #354331; border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,0.25); }
.auth-tabs { display:flex; gap:18px; border-bottom:1px solid var(--reader-line); margin-bottom:16px; }
.auth-tabs button { min-height:38px; padding-bottom:10px; color:var(--reader-muted); font-size:14px; font-weight:500; border-bottom:2px solid transparent; }
.auth-tabs button[aria-selected="true"] { color:#e4edd4; border-bottom-color:#c3d1ab; font-weight:600; }
#auth-title, #auth-description { display:none!important; }
#auth-form { margin-top:12px; }
.reader-page form label { display:block; margin:12px 0 5px; color:#d4ddcb; font-size:13px; font-weight:500; }
.reader-page form #auth-name-group label:first-child, .reader-page form > label:first-child { margin-top:0; }
.reader-page input:not([type="range"]),.reader-page select,.reader-page textarea { width:100%; min-height:44px; padding:10px 12px; background:#111a13; border:1px solid #46543d; border-radius:6px; color:#f0f4e9; font:400 15px/1.5 var(--font); }
.reader-page input:focus-visible,.reader-page select:focus-visible,.reader-page textarea:focus-visible { outline:2px solid #9eaf852b; outline-offset:0; border-color:#b0c393; }
.reader-page input::placeholder,.reader-page textarea::placeholder { color:#8f9f89; }
.reader-password-wrap { position:relative; }
.reader-password-wrap input { padding-right:76px!important; }
.reader-password-wrap button { position:absolute; right:7px; top:2px; bottom:2px; min-width:60px; color:#b9c6ac; font-size:13px; }
.field-hint { margin-top:6px; font-size:12px; color:#9bab90; line-height:1.6; }
#auth-submit { width:100%; margin-top:18px; min-height:44px; font-size:15px; }
.reader-support { display:flex; align-items:center; justify-content:center; min-height:34px; margin-top:14px; font-size:12px; color:#c7d5b4; text-decoration:underline; text-underline-offset:3px; }
.reader-form-status { margin-top:14px; border:1px solid #a97c6455; border-radius:6px; padding:10px 12px; background:#a97c640c; color:#e5b5a6; font-size:13px; line-height:1.6; }
.reader-welcome { padding-block:48px 35px; display:flex; justify-content:space-between; align-items:end; gap:24px; }
.reader-welcome h1 { margin-top:12px; font-size:clamp(34px,5vw,50px); line-height:1.2; font-weight:550; }
.reader-welcome h1 + p { margin-top:12px; color:var(--reader-muted); font-size:16px; }
.reader-identity { border-left:1px solid #46543d; padding-left:22px; flex-shrink:0; }
.reader-identity > span { font-size:11px; letter-spacing:.12em; color:var(--reader-muted); }
.reader-identity button { display:flex; align-items:center; gap:14px; min-height:44px; }
.reader-identity strong { font-family:ui-monospace,monospace; font-size:17px; font-weight:500; letter-spacing:.04em; color:#d5e1c3; }
.reader-identity button span { font-size:12px; color:var(--reader-muted); }
.reader-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) minmax(250px,1.7fr); border:1px solid #354331; border-radius:10px; overflow:hidden; background:#182119; }
.reader-stat { display:flex; flex-direction:column; padding:24px; border-right:1px solid #354331; gap:8px; }
.reader-stat > span { font-size:14px; color:#c1ccb4; }
.reader-stat strong { font-size:36px; font-weight:550; line-height:1.2; font-variant-numeric:tabular-nums; }
.reader-stat small { font-size:12px; color:var(--reader-muted); }
.reader-day-note { display:flex; flex-direction:column; justify-content:center; gap:12px; padding:24px; background:#b4c89405; }
.reader-day-note > p:not(.reader-eyebrow) { font-size:17px; line-height:1.7; letter-spacing:-.02em; }
.reader-day-note > span { color:var(--reader-muted); font-size:12px; }
.reader-alert { padding:15px 18px; background:#b8ca9310; border:1px solid #6c7f5355; border-radius:7px; color:#d1deba; margin-bottom:24px; font-size:14px; }
.payment-panel { display:none!important; }
.payment-head { display:flex; justify-content:space-between; align-items:start; gap:18px; margin-bottom:16px; }
.payment-head h2 { font-size:26px; margin-top:8px; }
.reader-chip { display:inline-flex; align-items:center; padding:5px 9px; border:1px solid #8e9e7350; border-radius:5px; color:#cedab8; background:#b1c38d0a; font-size:12px; white-space:nowrap; }
#payment-message { font-size:15px; line-height:1.85; color:#c6d2b9; }
.payment-book-list { padding-left:22px; margin-block:18px; color:#cbd5bf; font-size:14px; line-height:2; }
.payment-book-list .book-locked { color:#97a48e; }
.payment-book-list span { font-size:12px; margin-left:8px; }
.payment-actions { display:flex; flex-wrap:wrap; gap:10px; }
.payment-footnote { margin-top:18px; padding-top:16px; border-top:1px solid #405234; color:#b0bfa0; font-size:13px; line-height:1.8; }
.manual-verify { margin-top:12px; }
.manual-verify summary { min-height:44px; font-size:13px; color:#b9c8a8; }
.manual-verify form { max-width:600px; margin-bottom:20px; }
.manual-verify form > div { display:flex; gap:10px; }
.manual-verify label { font-size:13px!important; }
.continue-reading { margin-top:30px; display:flex; align-items:center; gap:26px; padding:24px; border-bottom:1px solid #3d4c35; background:linear-gradient(100deg,#acbf8210,transparent); border-radius:8px; }
.continue-reading img { width:78px; height:110px; object-fit:cover; border-radius:3px; flex-shrink:0; }
.continue-reading h2 { font-size:24px; margin-top:6px; }
.continue-reading > div { flex:1; }
.continue-reading p:not(.reader-eyebrow) { font-size:14px; color:var(--reader-muted); margin-top:8px; }
.reader-section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.reader-section-head h2 { margin-top:10px; }
.reader-shelf { margin-top:58px; }
.reader-search { width:220px; }
.reader-search input { min-height:44px!important; font-size:14px!important; }
.reader-tabs { display:flex; gap:28px; overflow:auto; border-bottom:1px solid #354331; margin-bottom:30px; }
.reader-tabs button { display:flex; align-items:center; gap:8px; min-height:48px; border-bottom:2px solid transparent; color:var(--reader-muted); font-size:14px; white-space:nowrap; }
.reader-tabs button[aria-selected="true"] { color:#e6edd9; border-bottom-color:#c3d1ab; }
.reader-tabs button > span { padding:1px 6px; border-radius:4px; background:#c7d5af0b; font-size:12px; }
.reader-books { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px 24px; }
.reader-book { min-width:0; display:flex; flex-direction:column; }
.reader-book-cover { position:relative; padding:18px; background:#1a241a; border:1px solid #2e3c2b; border-radius:7px; }
.reader-book-cover img { width:100%; aspect-ratio:839/1191; object-fit:cover; border-radius:2px; }
.reader-book .reader-chip { align-self:start; margin-top:17px; }
.reader-book h3 { margin-top:12px; font-size:20px; line-height:1.5; font-weight:550; }
.reader-book-category { margin-top:6px; color:var(--reader-muted); font-size:13px; }
.reader-book-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:17px; }
.reader-book-actions .reader-primary,.reader-book-actions .reader-secondary { font-size:14px; padding:10px; }
.reader-book-tools { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:5px; }
.reader-book-tools button { min-height:44px; color:#b5c5a3; font-size:13px; text-align:left; }
.reader-book-tools button:hover { color:#edf3e2; }
.book-progress { margin-top:18px; height:3px; background:#2a3927; }
.book-progress > span { display:block; height:100%; background:#b5c994; }
.book-note-preview { margin-top:16px; padding:18px; background:#1b251b; border-left:2px solid #6f8557; color:#c9d5bd; font-size:14px; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; }
.reader-empty { grid-column:1/-1; padding:40px 24px; text-align:center; background:#182119; border:1px dashed #46543d; border-radius:8px; }
.reader-empty h3 { font-size:24px; font-weight:500; }
.reader-empty p { margin:14px auto 20px; max-width:420px; color:var(--reader-muted); font-size:16px; line-height:1.8; }
.reader-recommendations { margin-top:70px; padding-top:36px; border-top:1px solid #354331; }
.reader-inline-link { display:inline-flex; align-items:center; min-height:44px; font-size:14px; color:#cbd9b8; }
.recommendations-description { margin-top:-10px; margin-bottom:25px; color:var(--reader-muted); font-size:15px; }
.recommendation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.recommendation { display:flex; align-items:start; gap:18px; padding:20px; background:#182119; border:1px solid #303f2d; border-radius:8px; }
.recommendation img { width:72px; aspect-ratio:839/1191; border-radius:2px; flex-shrink:0; }
.recommendation h3 { font-size:17px; line-height:1.5; font-weight:550; }
.recommendation p { margin-top:8px; color:var(--reader-muted); font-size:12px; }
.recommendation a { display:inline-flex; align-items:center; min-height:44px; color:#d4e0c1; font-size:14px; }
.reader-past-orders { margin-top:62px; }
.reader-order-row { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:20px 0; border-bottom:1px solid #354331; }
.reader-order-row strong { font-family:ui-monospace,monospace; font-size:13px; font-weight:500; color:#d0dbbf; overflow-wrap:anywhere; }
.reader-order-row p { margin-top:6px; font-size:13px; color:var(--reader-muted); }
.reader-order-row > div:last-child { text-align:right; flex-shrink:0; }
.reader-order-row .reader-chip { margin-bottom:6px; }
.reader-order-amount { display:block; font-size:16px; font-weight:550; color:#e8eede; }
.reader-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-block:30px; margin-top:70px; border-top:1px solid #354331; font-size:13px; color:var(--reader-muted); }
.reader-footer a { min-height:36px; display:inline-flex; align-items:center; }
.reader-note-dialog { background:#19231a; width:min(560px,calc(100% - 32px)); max-height:92dvh; inset:0; margin:auto; padding:26px; border:1px solid #657a50; border-radius:12px; overflow:auto; }
.reader-note-dialog[open] { display:block; }
.reader-note-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.reader-note-head h2 { margin-top:8px; font-size:26px; }
.reader-close { width:44px; height:44px; flex-shrink:0; border:1px solid #46543d; border-radius:6px; font-size:28px; color:#bac9a8; }
#note-book-title { color:#c7d4b9; font-size:16px; margin-bottom:24px; }
#note-progress { width:100%; accent-color:#bacd9c; min-height:32px; }
#note-progress-output { float:right; color:#bfd0a5; }
#note-save { width:100%; margin-top:24px; }
.reader-toast { position:fixed; bottom:max(24px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); width:max-content; padding:14px 22px; background:#293a22; border:1px solid #6b8054; border-radius:7px; color:#e7efd9; box-shadow:0 10px 40px #0004; font-size:14px; z-index:150; }
@media(max-width:1050px) {
 .reader-auth { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 32px; }
 .auth-story h1 { font-size: clamp(22px, 2.5vw, 28px); white-space: normal; }
 .auth-books-showcase { grid-template-columns:repeat(4,1fr); gap:8px; max-width:440px; }
 .reader-overview { grid-template-columns:repeat(3,1fr); }
 .reader-day-note { grid-column:1/-1; border-top:1px solid #354331; }
 .reader-stat:nth-child(3) { border-right:0; }
 .reader-books { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 20px; }
 .recommendation-grid { grid-template-columns:1fr; }
 .recommendation { align-items:center; }
 .recommendation img { width:58px; }
 .recommendation > div { flex:1; }
 .recommendation a { margin-top:3px; }
}
@media(max-width:699px) {
 .reader-container { width:calc(100% - 32px); }
 .reader-header-inner { min-height:72px; gap:16px; flex-wrap:wrap; padding-block:12px; }
 .reader-header img { width:132px; }
 .reader-header nav { gap:16px; }
 .reader-header nav a { font-size:13px; }
 .reader-logout { width:100%; min-height:36px; padding:6px 12px; text-align:right; border:0; margin-top:-12px; }
 .reader-auth { grid-template-columns:1fr; gap:0; padding-block:16px 20px; min-height:calc(100dvh - 72px - 30px); display:flex; flex-direction:column; justify-content:center; }
 .auth-story { display:none; }
 .reader-auth-card { padding:20px 16px; max-width:380px; margin-inline:auto; width:100%; }
 .auth-tabs { gap:16px; margin-bottom:14px; }
 .auth-tabs button { min-height:36px; padding-bottom:8px; font-size:14px; }
 .reader-page form label { margin:10px 0 4px; font-size:13px; }
 .reader-page input:not([type="range"]) { min-height:42px; padding:8px 11px; font-size:14px; }
 #auth-submit { margin-top:16px; min-height:44px; }
 .reader-support { margin-top:12px; }
 .reader-welcome { padding-block:30px 26px; align-items:start; flex-direction:column; gap:20px; }
 .reader-welcome h1 { font-size:34px; }
 .reader-welcome h1 + p { font-size:15px; }
 .reader-identity { width:100%; border-left:0; padding:12px 0 0; border-top:1px solid #354331; display:flex; align-items:center; justify-content:space-between; gap:12px; }
 .reader-identity > span { font-size:11px; }
 .reader-identity strong { font-size:16px; }
 .reader-overview { border-radius:8px; }
 .reader-stat { padding:18px 14px; gap:9px; }
 .reader-stat > span { font-size:12px; }
 .reader-stat strong { font-size:30px; }
 .reader-stat small { display:none; }
 .reader-day-note { padding:20px; gap:10px; }
 .reader-day-note > p:not(.reader-eyebrow) { font-size:16px; }
 .payment-panel { padding:22px 18px; }
 .payment-head { flex-wrap:wrap; gap:14px; }
 .payment-head h2 { font-size:24px; }
 .payment-actions .reader-primary,.payment-actions .reader-secondary { flex:1; }
 .manual-verify form > div { flex-direction:column; }
 .manual-verify summary { font-size:13px; line-height:1.7; }
 .continue-reading { padding:20px 16px; gap:16px; flex-wrap:wrap; }
 .continue-reading h2 { font-size:21px; }
 .continue-reading > .reader-primary { width:100%; }
 .reader-shelf { margin-top:38px; }
 .reader-section-head { flex-wrap:wrap; align-items:center; gap:20px; }
 .reader-search { width:100%; }
 .reader-tabs { gap:24px; margin-bottom:24px; }
 .reader-tabs button { font-size:13px; }
 .reader-books { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
 .reader-book-cover { padding:12px; }
 .reader-book h3 { font-size:18px; }
 .reader-book .reader-chip { font-size:11px; }
 .reader-book-actions { grid-template-columns:1fr; gap:7px; }
 .reader-book-tools { flex-direction:column; align-items:stretch; gap:0; }
 .reader-book-tools button { font-size:12px; min-height:38px; }
 .reader-book-category { font-size:12px; }
 .book-note-preview { padding:14px; font-size:14px; }
 .reader-empty { padding:30px 18px; }
 .reader-empty h3 { font-size:23px; }
 .reader-recommendations { margin-top:46px; padding-top:30px; }
 .reader-order-row { gap:16px; align-items:start; }
 .reader-order-row strong { font-size:11px; }
 .reader-order-row p { font-size:12px; }
 .reader-order-row .reader-chip { font-size:11px; }
 .reader-past-orders { margin-top:42px; }
 .reader-footer { margin-top:44px; font-size:12px; align-items:center; }
 .reader-note-dialog { padding:22px; max-height:92dvh; }
}
@media(prefers-reduced-motion:reduce) { .reader-page * { scroll-behavior:auto; } }
