:root{color-scheme:only light}
.shelf-welcome{padding:38px 28px;border-radius:22px;background:linear-gradient(135deg,#213f36,#425947);color:#fffbed;position:relative;overflow:hidden}
.shelf-welcome h2{font-family:Georgia,'Noto Serif TC',serif;font-size:32px;margin:18px 0 10px;letter-spacing:2px}
.eyebrow{font-size:11px;letter-spacing:2px;font-weight:600}
.welcome-copy{color:#e2decd;line-height:1.8;margin-bottom:0}
.journey{font-size:14px;line-height:1.9;color:#58645c;padding:8px 2px}
.book-badge{display:inline-block;border:1px solid #d8ceba;border-radius:99px;padding:5px 10px;font-size:12px;color:#685b43;background:#f5f0e5}
.book-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.book-card .btn{margin-top:auto;width:100%}
.report-overview{padding:18px 22px;border:1px solid #ddd6c8;border-radius:14px;background:#fffdf8;margin:18px 0}
.report-overview summary{cursor:pointer;font-weight:600;min-height:32px}
.overview-link{display:block;background:transparent;color:#2f5145;border:0;border-bottom:1px solid #ede7dc;width:100%;text-align:left;padding:10px 0}
.overview-excerpt{color:#5b625c;font-size:14px;line-height:1.8;margin:8px 0 18px}
.reading-scope{position:sticky;top:0;z-index:12;background:#f8f5eff5;border-bottom:1px solid #d8ceba;padding:14px 12px;color:#2f5145;font-size:14px;line-height:1.6;backdrop-filter:blur(10px)}
.chapter-prompts{border-top:1px solid #e5dfd2;margin-top:28px;padding-top:12px}
.chapter-prompts h4{font-size:16px;color:#4f5f54}
.prompt-button{display:block;width:100%;text-align:left;margin:10px 0;padding:14px 16px;border:1px solid #ccd7cd;border-radius:12px;background:#edf2ec;color:#294437;line-height:1.7}
@media(max-width:600px){.shelf-welcome{padding:28px 22px}.shelf-welcome h2{font-size:27px}.reading-scope{font-size:13px}.report-overview{padding:16px}.prompt-button{font-size:15px}}
*{box-sizing:border-box}
button,input,textarea{font:inherit}
button{min-height:44px;cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
:focus-visible{outline:3px solid #9c6428;outline-offset:4px}
.shelf-controls{display:grid;gap:14px;margin:22px 0}
.shelf-controls input[type=search]{width:100%;padding:13px 16px;border:1px solid #b8b2a5;border-radius:10px;background:#fffdf8;color:#252a2c}
.shelf-filters{display:flex;flex-wrap:wrap;gap:8px}
.shelf-filters button[aria-pressed=true]{background:#2f5145;color:#fff}
.demo-toggle{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.6}
.demo-toggle input{width:20px;height:20px;flex:none}
.empty-state,.loading-state{padding:22px;border:1px dashed #b8b2a5;border-radius:12px;line-height:1.8}
.chat-log{margin:18px 0;max-height:36vh;overflow:auto;overscroll-behavior:contain}
.chat-exchange{margin-bottom:22px}
.chat-question,.chat-answer{padding:14px;border-radius:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.chat-question{background:#e9efe9;color:#26382f}
.chat-answer{background:#f2eee4;color:#252a2c}
.character-count{display:block;text-align:right;color:#5b625c;margin:5px 0 12px}
.question-sheet:not([open]){display:none}
.question-sheet[open]{max-height:90dvh;padding-bottom:max(24px,env(safe-area-inset-bottom))}
.question-sheet textarea{font-size:16px;width:100%}
.page-count{align-self:center;white-space:nowrap}
.chapter-pager .page-count{order:0}.chapter-pager button:first-of-type{order:-1}
.book-card,.chapter,.cover{overflow-wrap:anywhere}
@media(max-width:420px){.book-grid{grid-template-columns:1fr}.askfab{max-width:calc(100vw - 32px)}.question-sheet{width:100%;padding:16px}.chapter-pager{gap:8px}.shelf-filters button{flex:1}}
.book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.book-card{border:1px solid #ded7c8;border-left:7px solid #2f5145;border-radius:8px 16px 16px 8px;background:#fffdf8;padding:22px;box-shadow:0 6px 18px #00000008}
.book-card h3{font-size:22px;line-height:1.5}
.shelf-section{margin:30px 0}
.chapter{background:#fffdf8;border:1px solid #ded7c8;border-radius:16px;padding:32px;margin:20px 0;box-shadow:0 8px 25px #28362a08}
.chapter .ch{color:#946f35;font-size:13px;letter-spacing:2px}
.chapter h3{font-size:26px;margin:12px 0 22px}
.chapter .body{font-size:18px;line-height:2;white-space:pre-line}
.chapter-pager{display:flex;justify-content:space-between;padding-bottom:90px;gap:20px}
.question-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,720px);max-height:85vh;overflow:auto;border:1px solid #ded7c8;border-radius:22px 22px 0 0;background:#fffdf8;color:#252a2c;padding:24px}
.question-sheet::backdrop{background:#18221d80}
.question-sheet form{margin-top:20px}
.question-sheet .bound{border-left:3px solid #946f35;padding-left:12px;font-size:14px}
.askfab{position:fixed;bottom:22px;right:24px;border:0;border-radius:999px;padding:15px 24px;background:#2f5145;color:white;box-shadow:0 8px 24px #0002;z-index:10}
@media(max-width:600px){.chapter{padding:22px}.askfab{bottom:16px;right:16px}.question-sheet{padding:20px}}
body{background:#f1eee7;color:#252a2c}
.shell{max-width:880px;background:#f8f5ef;min-height:100vh}
header.top{padding:20px 24px;background:#f8f5ef}
main{padding:24px}
#message{font-size:14px;color:#57665d;margin-bottom:18px}
.cover{padding:30px;border-radius:16px;background:linear-gradient(125deg,#243c35,#3c5141);color:#fffdf4}
.cover h2{font-size:30px;margin:10px 0}
.cover .tag{color:#e4d7b5}
.note{font-size:14px;border-radius:8px;padding:12px 16px}
.card{box-shadow:0 8px 25px #28362a08;border-color:#e5dfd2;padding:28px;border-radius:14px}
.card p{line-height:1.95}
.toc{margin:22px 0;gap:10px}
.toc button{border-radius:999px;padding:8px 18px;font-size:15px}
.toc button[aria-current=true]{background:#2f5145;border-color:#2f5145;color:white}
.btn.seal{background:#2f5145;border-color:#2f5145}
textarea{margin-top:8px;background:#fffefb;min-height:120px}
@media(max-width:600px){main{padding:16px}.cover{padding:22px}.cover h2{font-size:25px}.card{padding:20px}.toc{gap:6px}.toc button{padding:8px 12px;font-size:14px}header.top{padding:15px 16px}}

/* Customer report: distinct cards for reports, topics, details and question/answer pairs. */
.customer-reading section,.customer-reading form{border:1px solid #b8c5b9;border-radius:16px;background:#fffdf8;padding:24px;margin:24px 0;box-shadow:0 3px 12px #203d3610;min-width:0}
.customer-reading details{border:1px solid #a7b9aa;border-radius:12px;background:#f3f6f0;padding:18px 20px;margin:16px 0}
.customer-reading details details{background:#fffdf8;border-color:#c6cec1;margin:18px 0 6px;padding:16px}
.customer-reading summary{cursor:pointer;font-weight:700;line-height:1.7;padding:4px 0;color:#26483a}
.customer-reading p{line-height:1.95;white-space:pre-line;overflow-wrap:anywhere}
.customer-reading details>.small{border-top:1px solid #d5ddcf;padding-top:14px;color:#596353}
.customer-reading h3{background:#edf2e8;border-left:4px solid #496b54;border-radius:6px;padding:14px 16px;line-height:1.8}
.customer-reading select,.customer-reading textarea{max-width:100%;margin:8px 0;padding:12px;line-height:1.7}
.customer-reading h2{line-height:1.7;margin-top:0}
@media(max-width:600px){.customer-reading section,.customer-reading form{padding:16px;margin:20px 0}.customer-reading details{padding:14px 12px}.customer-reading details details{padding:12px}.customer-reading select{width:100%}}

.customer-reading{max-width:860px;margin:auto;font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:#26392f}
.customer-reading .report-card{border-top:5px solid #456753}
.customer-reading .topic-card>summary{font-size:20px;letter-spacing:.04em}
.customer-reading .detail-card>summary{font-size:17px}
.customer-reading .topic-card>p:not(.small),.customer-reading .detail-card>p:not(.small){font-size:17px;line-height:2;letter-spacing:.025em}
.customer-reading .topic-card>p:last-of-type,.customer-reading .detail-card>p:last-of-type{font-size:14px;color:#5c6559;background:#e8eee2;border-radius:8px;padding:12px 14px}
.customer-reading .history-shelf,.customer-reading .question-history{background:#eef3eb;border:1px solid #aebdad;margin:26px 0;padding:14px 18px}
.customer-reading .history-shelf>summary,.customer-reading .question-history>summary{font-size:18px;color:#29483a}
.customer-reading .history-shelf>p,.customer-reading .question-history>p{font-size:14px;color:#64715f;margin:8px 0 12px}
.customer-reading .history-card{background:#fffdf8;border:1px solid #c9d2c7;margin:8px 0;padding:8px 14px}
.customer-reading .history-card>summary{font-size:14px;color:#526458;padding:2px 0}
.customer-reading .history-card .report-card{box-shadow:none}
.customer-reading .question-history .question-card{margin:10px 0;padding:16px 18px;box-shadow:none}
.customer-reading .subject-picker{background:#f2f5ef;border:1px solid #b7c5b7;margin:0 0 24px;padding:18px;overflow:hidden}
.customer-reading .subject-picker>h2{font-size:20px;margin:0 0 4px}.customer-reading .subject-picker>p{font-size:14px;color:#657167;margin:0 0 14px}
.customer-reading .report-mode,.customer-reading .relationship-chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.customer-reading .report-mode button,.customer-reading .relationship-chips button{border:1px solid #9eafa0;background:#fffdf8;color:#355646;border-radius:999px;padding:9px 15px}
.customer-reading .report-mode button[aria-pressed=true],.customer-reading .relationship-chips button[aria-pressed=true]{background:#315b49;color:#fff;border-color:#315b49}
.customer-reading .subject-rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;padding:8px 2px 16px;scrollbar-width:thin}
.customer-reading .person-card{flex:0 0 min(68vw,210px);min-height:118px;scroll-snap-align:center;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;text-align:left;padding:16px;border:1px solid #aebcad;border-radius:16px;background:linear-gradient(145deg,#fffdf8,#e7eee5);color:#29483a}
.customer-reading .person-card span{font-size:12px;color:#657167}.customer-reading .person-card strong{font-size:20px;margin-top:8px;overflow-wrap:anywhere}
.customer-reading .person-card[aria-pressed=true]{border:3px solid #315b49;padding:14px;background:linear-gradient(145deg,#e6f0e6,#cdddcf);box-shadow:0 8px 18px #1d38252b}
.customer-reading .add-person-card{border-style:dashed;background:#f8f5ef}.customer-reading .add-person-card span{font-size:25px}
.customer-reading .subject-picker>.btn{width:100%;margin-top:8px}.customer-reading .selection-result{margin:12px 0 4px}
.customer-reading .add-person-form{background:#fffdf8;border:1px solid #aebcad;border-radius:14px;padding:18px;margin-top:18px}.customer-reading .add-person-form[hidden]{display:none}
.customer-reading .add-person-form>label{display:block;margin:12px 0}.customer-reading .add-person-form>label span{display:block;font-weight:700;margin-bottom:5px}.customer-reading .add-person-form input[type=text],.customer-reading .add-person-form input[type=date],.customer-reading .add-person-form input[type=time]{width:100%;padding:12px;border:1px solid #9eafa0;border-radius:8px;background:#fff}
.customer-reading .add-person-form fieldset{border:0;padding:0;margin:12px 0}.customer-reading .add-person-form fieldset label{margin-right:22px}.customer-reading .add-person-form input[type=radio]{width:18px;height:18px;margin-right:6px}.customer-reading .add-person-form button{margin-right:8px}
.customer-reading .selection-result{background:#e3ebe2;border-radius:8px;padding:10px 12px;color:#29483a;font-weight:700}
.customer-reading .report-cover{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(180px,.85fr);gap:24px;align-items:center;background:linear-gradient(135deg,#243f35,#496b54);color:#fff;border-radius:14px;padding:28px;margin-bottom:22px}
.customer-reading .report-cover h2{font-size:30px;margin:6px 0 12px;color:#fff}
.customer-reading .report-cover p{margin:3px 0;color:#eef5ed}
.customer-reading .report-cover-facts{display:grid;grid-template-columns:1fr;gap:8px}.customer-reading .report-cover-facts>div{padding:9px 12px;border:1px solid #ffffff55;border-radius:10px;background:#17352a55}.customer-reading .report-cover-facts small{display:block;color:#d5e6db;font-size:12px}.customer-reading .report-cover-facts strong{display:block;color:#fff;font-size:17px;margin-top:1px}
.customer-reading .report-outline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 26px}
.customer-reading .report-outline button{display:block;width:100%;text-align:left;border:1px solid #c9d2c7;border-radius:10px;background:#f7f4eb;padding:11px 13px;color:#355144;font-weight:650;cursor:pointer}
.customer-reading .report-outline button:hover,.customer-reading .report-outline button:focus{background:#eaf1e7;outline:2px solid #78907f;outline-offset:1px}
.customer-reading .basis-card{background:#edf3ec;border-color:#d5dfd3;padding:10px 14px;margin-top:18px}
.customer-reading .basis-card>summary{font-size:14px;color:#4d6658}
.customer-reading .basis-card>p{margin:8px 0 0;font-size:14px;line-height:1.8}
@media(max-width:600px){.customer-reading{width:100%}.customer-reading .topic-card>summary{font-size:18px}.customer-reading .topic-card>p:not(.small),.customer-reading .detail-card>p:not(.small){font-size:16px}.customer-reading .history-shelf,.customer-reading .question-history{padding:12px}.customer-reading .history-card{padding:7px 10px}.customer-reading .question-history .question-card{padding:14px 12px}}
@media(max-width:600px){.customer-reading .report-cover{grid-template-columns:1fr;padding:22px 18px;gap:16px}.customer-reading .report-cover h2{font-size:25px}.customer-reading .report-cover-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.customer-reading .report-cover-facts>div{padding:8px}.customer-reading .report-cover-facts strong{font-size:14px;overflow-wrap:anywhere}.customer-reading .report-outline{grid-template-columns:1fr}.customer-reading .report-card{padding:14px}}

/* Quiet motion: guide the eye without delaying reading or controls. */
@keyframes report-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes outline-arrive{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes detail-reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@keyframes calm-pulse{0%,100%{opacity:.66}50%{opacity:1}}
.customer-reading .report-card>.report-cover{animation:report-rise .45s cubic-bezier(.2,.7,.2,1) both}
.customer-reading .report-outline button{opacity:0;animation:outline-arrive .32s cubic-bezier(.2,.7,.2,1) both}
.customer-reading .report-outline button:nth-child(1){animation-delay:.05s}.customer-reading .report-outline button:nth-child(2){animation-delay:.09s}.customer-reading .report-outline button:nth-child(3){animation-delay:.13s}.customer-reading .report-outline button:nth-child(4){animation-delay:.17s}.customer-reading .report-outline button:nth-child(5){animation-delay:.21s}.customer-reading .report-outline button:nth-child(6){animation-delay:.25s}.customer-reading .report-outline button:nth-child(7){animation-delay:.29s}.customer-reading .report-outline button:nth-child(8){animation-delay:.33s}
.customer-reading details[open]>:not(summary){animation:detail-reveal .22s ease-out both}
.customer-reading button,.customer-reading .btn{transition:transform .14s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}
.customer-reading button:hover,.customer-reading .btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px #1d38252b}
.customer-reading button:active,.customer-reading .btn:active{transform:translateY(1px) scale(.99);box-shadow:none}
#message.checking,.customer-reading .progress-note{animation:calm-pulse 1.35s ease-in-out infinite}
.customer-reading .progress-note{border-left:4px solid #6f927a;background:#e8eee7;border-radius:8px;padding:12px 14px}
@media(prefers-reduced-motion:reduce){.customer-reading *,.customer-reading *::before,.customer-reading *::after,#message{animation:none!important;transition:none!important;scroll-behavior:auto!important}.customer-reading .report-outline button{opacity:1}}

/* Saved charts behave like a touch-friendly character picker. */
.customer-reading .subject-picker{background:#f2f5ef;border:1px solid #b7c5b7;margin:0 0 24px;padding:18px;overflow:hidden}
.customer-reading .subject-picker>h2{font-size:20px;margin:0 0 4px}.customer-reading .subject-picker>p{font-size:14px;color:#657167;margin:0 0 14px}
.customer-reading .report-mode,.customer-reading .relationship-chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.customer-reading .report-mode button,.customer-reading .relationship-chips button{width:auto;margin:0;border:1px solid #9eafa0;background:#fffdf8;color:#355646;border-radius:999px;padding:9px 15px}
.customer-reading .report-mode button[aria-pressed=true],.customer-reading .relationship-chips button[aria-pressed=true]{background:#315b49;color:#fff;border-color:#315b49}
.customer-reading .report-mode .add-chart-button{margin-left:auto;border-style:dashed;background:#edf3ec;color:#29483a;font-weight:700}
.customer-reading .subject-rail{display:flex;align-items:center;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:calc(50% - min(34vw,105px));overscroll-behavior-inline:contain;padding:18px calc(50% - min(34vw,105px)) 22px;scrollbar-width:none;touch-action:pan-x}
.customer-reading .subject-rail::-webkit-scrollbar{display:none}
.customer-reading .person-card{width:auto;margin:0;flex:0 0 min(68vw,210px);min-height:132px;scroll-snap-align:center;scroll-snap-stop:always;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;text-align:left;padding:16px;border:1px solid #aebcad;border-radius:18px;background:linear-gradient(145deg,#fffdf8,#e7eee5);color:#29483a;opacity:.28;filter:brightness(.58) saturate(.6) blur(.2px);transform:perspective(700px) rotateY(10deg) scale(.8);transition:opacity .34s ease,filter .34s ease,transform .42s cubic-bezier(.16,.84,.28,1),border-color .25s ease,box-shadow .34s ease}
.customer-reading .person-card span{font-size:12px;color:#657167}.customer-reading .person-card strong{font-size:20px;margin-top:8px;overflow-wrap:anywhere}
.customer-reading .person-card[data-focused=true]{opacity:1;filter:brightness(1.13) saturate(1.08);transform:perspective(700px) rotateY(0) translateY(-8px) scale(1.07);border:3px solid #86b598;padding:14px;background:linear-gradient(145deg,#f4fff0,#cbded0);box-shadow:0 0 0 5px #8bb79a1f,0 18px 38px #13281b70}
.customer-reading .person-card[aria-pressed=true]:not([data-focused=true]){opacity:.5;filter:brightness(.78) saturate(.8);border-color:#668772}
.customer-reading .subject-rail.is-spinning .person-card[data-focused=true]{transform:perspective(700px) rotateY(0) translateY(-4px) scale(1.025);box-shadow:0 10px 24px #13281b55}
.customer-reading .person-card[data-focused=true] strong{animation:character-glow .48s ease-out}
@keyframes character-glow{0%{letter-spacing:0;text-shadow:none}45%{letter-spacing:.045em;text-shadow:0 0 14px #bde8c7}100%{letter-spacing:0;text-shadow:none}}
.customer-reading .person-card:not([data-focused=true]):hover{opacity:.72;filter:brightness(.9);transform:scale(.91)}
.customer-reading .add-person-card{border-style:dashed;background:#f8f5ef}.customer-reading .add-person-card span{font-size:25px}
.customer-reading .chapter-back{width:100%;margin:0 0 18px;padding:12px 16px;border:1px solid #9eafa0;border-radius:10px;background:#edf3ec;color:#29483a;text-align:left;font-weight:700}
.customer-reading .chapter-page{margin-top:0}
.customer-reading .subject-picker>.btn{width:100%;margin-top:8px}.customer-reading .selection-result{margin:12px 0 4px}
.customer-reading .add-person-form{background:#fffdf8;border:1px solid #aebcad;border-radius:14px;padding:18px;margin-top:18px}.customer-reading .add-person-form[hidden]{display:none}
.customer-reading .add-person-form>label{display:block;margin:12px 0}.customer-reading .add-person-form>label span{display:block;font-weight:700;margin-bottom:5px}.customer-reading .add-person-form input[type=text],.customer-reading .add-person-form input[type=date],.customer-reading .add-person-form input[type=time]{width:100%;padding:12px;border:1px solid #9eafa0;border-radius:8px;background:#fff}
.customer-reading .add-person-form fieldset{border:0;padding:0;margin:12px 0}.customer-reading .add-person-form fieldset label{margin-right:22px}.customer-reading .add-person-form input[type=radio]{width:18px;height:18px;margin-right:6px}.customer-reading .add-person-form button{width:auto;margin-right:8px}

/* Website questions stay inside the selected chapter and use a floating chat window. */
.customer-reading .report-chat{position:fixed;right:max(18px,calc((100vw - 940px)/2));bottom:max(18px,env(safe-area-inset-bottom));z-index:40;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.customer-reading .report-chat-fab{width:76px;height:76px;border:1px solid #b7d0bd;border-radius:50%;padding:10px;background:#315b49d9;color:#fff;box-shadow:0 12px 30px #10251b55;backdrop-filter:blur(12px);font-size:14px;font-weight:700;line-height:1.25}
.customer-reading .report-chat-fab::before{content:'•••';display:block;font-size:18px;letter-spacing:2px;line-height:1}
.customer-reading .home-helper .report-chat-fab::before{content:'?';font-size:20px;letter-spacing:0}
.customer-reading .report-chat-panel{position:absolute;right:0;bottom:90px;width:min(430px,calc(100vw - 28px));height:min(calc(100vh - 140px),780px);height:min(calc(100dvh - 140px),780px);overflow:auto;display:flex;flex-direction:column;border:1px solid #9fb3a4;border-radius:22px;background:#f8f5efee;padding:18px;box-shadow:0 20px 54px #14261c66;backdrop-filter:blur(16px)}
.customer-reading .report-chat-panel[hidden]{display:none}.customer-reading .report-chat-panel form{flex:0 0 auto;border:0;border-top:1px solid #d2dbd1;background:transparent;padding:12px 0 0;margin:10px 0 0;box-shadow:none}
.customer-reading .report-chat-panel>header{flex:0 0 auto;max-height:24%;overflow:auto}.customer-reading .report-chat-panel h2{font-size:21px;margin:0 0 4px}.customer-reading .report-chat-panel>header>p{font-size:14px;color:#607065;margin:0 0 10px;line-height:1.65}
.customer-reading .chat-topic-bubbles{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.customer-reading .chat-topic-chip{width:auto;min-height:38px;border:1px solid #9fb3a4;border-radius:999px;background:#fffdf8;color:#315443;padding:8px 13px;font-size:14px}
.customer-reading .chat-topic-chip[aria-pressed=true]{background:#315b49;color:#fff;border-color:#315b49;box-shadow:0 4px 12px #1d3d2b33}
.customer-reading .chat-topic-label{display:block;font-size:13px;color:#607065;margin-bottom:8px}.customer-reading .chat-topic-select{display:block;width:100%;min-height:42px;margin-top:4px;padding:8px 10px;border:1px solid #a8b7a8;border-radius:10px;background:#fffdf8;font:inherit;color:#26392f}.customer-reading .chat-usage-details,.customer-reading .chat-help-details{font-size:13px;color:#607065}.customer-reading .chat-usage-details summary,.customer-reading .chat-help-details summary{cursor:pointer;padding:6px 0}.customer-reading .chat-usage-details p{line-height:1.65;margin:6px 0}.customer-reading .chat-help-details{margin-bottom:8px}
.customer-reading .report-chat-panel textarea{width:100%;min-height:96px;resize:vertical;background:#fffdf8;border:1px solid #a8b7a8;border-radius:13px;padding:13px;font-size:16px}
.customer-reading .report-chat-panel .btn{width:100%;margin-top:8px}.customer-reading .report-chat-log{flex:1 1 auto;min-height:48px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:4px 2px 8px;scrollbar-gutter:stable}
.customer-reading .question-card{display:flex;flex-direction:column;gap:8px;border:0;background:transparent;padding:0;margin:0;box-shadow:none}
.customer-reading .chat-bubble{max-width:88%;border-radius:16px;padding:11px 14px;line-height:1.75;overflow-wrap:anywhere}
.customer-reading .chat-bubble-question{align-self:flex-end;background:#315b49;color:#fff;border-bottom-right-radius:5px}.customer-reading .chat-bubble-answer{align-self:flex-start;background:#fffdf8;color:#26392f;border:1px solid #c4cfc2;border-bottom-left-radius:5px}
.customer-reading .chat-bubble-answer p{margin:0 0 9px;line-height:1.8}.customer-reading .chat-bubble-answer p:last-child{margin-bottom:0}
@media(max-width:600px){.customer-reading .report-chat{right:14px;bottom:max(14px,env(safe-area-inset-bottom))}.customer-reading .report-chat-fab{width:68px;height:68px;font-size:13px}.customer-reading .report-chat-panel{position:fixed;left:6px;right:6px;top:max(8px,env(safe-area-inset-top));bottom:88px;width:auto;height:auto;padding:16px;border-radius:19px}.customer-reading .report-chat-log{min-height:48px}.customer-reading .report-chat-panel textarea{min-height:112px;max-height:22dvh}.customer-reading .chat-topic-bubbles{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.customer-reading .chat-topic-chip{flex:0 0 auto}}

/* Chapter reading refinements and clear interaction feedback. */
.customer-reading:has(.report-chat){padding-bottom:112px}
.customer-reading .chapter-view>.report-cover{grid-template-columns:1fr auto;padding:18px 22px;min-height:0}.customer-reading .chapter-view>.report-cover .report-cover-main>p:first-child{font-size:12px;margin:0}.customer-reading .chapter-view>.report-cover h2{font-size:22px;margin:5px 0}.customer-reading .chapter-view>.report-cover .report-cover-main>p:last-child{font-size:13px;margin:0}.customer-reading .chapter-view>.report-cover .report-cover-facts{grid-template-columns:repeat(3,minmax(78px,1fr))}.customer-reading .chapter-view>.report-cover .report-cover-facts div{padding:8px 10px}
.customer-reading .chapter-navigation{position:sticky;top:0;z-index:16;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:9px 12px;border:1px solid #b4c2b5;border-radius:12px;background:#f3f6f0eb;box-shadow:0 7px 18px #1c332522;backdrop-filter:blur(12px)}
.customer-reading .chapter-navigation .chapter-back{width:auto;margin:0;white-space:nowrap}.customer-reading .chapter-navigation strong{font-size:14px;color:#355646;text-align:right}
.customer-reading .progress-note{display:grid;gap:9px}.customer-reading .progress-note strong{font-size:17px}.customer-reading .progress-note p{margin:0}.customer-reading .progress-track{height:9px;overflow:hidden;border-radius:99px;background:#cbd5ca}.customer-reading .progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#315b49,#83a990);transition:width .35s ease}
.customer-reading .report-chat-fab[data-unread=true]::after{content:'1';position:absolute;right:-2px;top:-4px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#b75b45;color:#fff;border:2px solid #f8f5ef;font-size:12px;box-shadow:0 4px 10px #4e1f1766}.customer-reading .report-chat-fab{position:relative}
.customer-reading .action-confirmed{background:#557c61!important;color:#fff!important;box-shadow:0 0 0 5px #9bc6a84d,0 10px 25px #24452e55!important;transform:translateY(-1px) scale(1.015)!important}
.customer-reading .answer-section{padding:10px 0;border-bottom:1px solid #d9e0d7}.customer-reading .answer-section:last-child{border-bottom:0}.customer-reading .answer-section small{display:block;color:#55705e;font-weight:800;letter-spacing:.08em;margin-bottom:5px}
@media(max-width:600px){.customer-reading .chapter-view>.report-cover{display:block;padding:15px 16px}.customer-reading .chapter-view>.report-cover .report-cover-facts{margin-top:10px;grid-template-columns:repeat(3,1fr)}.customer-reading .chapter-view>.report-cover .report-cover-facts div{padding:7px 6px}.customer-reading .chapter-navigation{top:4px;padding:7px 8px}.customer-reading .chapter-navigation .chapter-back{font-size:13px;padding:8px 10px}.customer-reading .chapter-navigation strong{font-size:12px}.customer-reading:has(.report-chat){padding-bottom:102px}}

/* Wider desktop canvas, clearer reading hierarchy and continuous chapter navigation. */
.shell{max-width:1080px}.customer-reading{max-width:1020px}.customer-reading .chapter-view{padding:20px}.customer-reading .chapter-view>.report-cover{padding:13px 18px;margin-bottom:14px}.customer-reading .chapter-view>.report-cover .report-cover-main>p:first-child{display:none}.customer-reading .chapter-view>.report-cover h2{font-size:20px;margin:0 0 3px}.customer-reading .chapter-view>.report-cover .report-cover-main>p{line-height:1.45}.customer-reading .chapter-view>.report-cover .report-cover-facts div{padding:6px 9px}.customer-reading .chapter-view>.report-cover .report-cover-facts strong{font-size:15px}
.customer-reading .chapter-page{max-width:850px;margin-left:auto;margin-right:auto}.customer-reading .reading-copy{display:grid;gap:13px;margin:14px 0 20px}.customer-reading .reading-copy p{margin:0;color:#172d23;font-size:17px;line-height:2;font-weight:450;letter-spacing:.018em}.customer-reading .topic-card>.reading-copy>p:first-child{font-size:18px;color:#10271c;font-weight:560}
.customer-reading .detail-card{transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease}.customer-reading .detail-card>summary{display:flex;align-items:center;gap:8px;min-height:44px;color:#1e4936}.customer-reading .detail-card>summary::after{content:'展開';margin-left:auto;padding:3px 9px;border:1px solid #9eb3a4;border-radius:999px;color:#4d6c5b;font-size:12px;font-weight:600}.customer-reading .detail-card[open]>summary::after{content:'收起';background:#315b49;color:#fff;border-color:#315b49}.customer-reading .detail-card:hover{border-color:#76957e;box-shadow:0 5px 16px #1e392528}
.customer-reading .chapter-pager-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:26px 0 4px}.customer-reading .chapter-pager-links button{min-height:52px;border:1px solid #9fb3a4;border-radius:12px;background:#edf3ec;color:#284c3b;padding:11px 14px;text-align:left;font-weight:750}.customer-reading .chapter-pager-links button:last-child{text-align:right;grid-column:2}
.customer-reading .report-chat-fab.is-scrolling{opacity:.35;transform:translateX(18px) scale(.78);pointer-events:none}
@media(max-width:600px){.shell{max-width:none}.customer-reading .chapter-view{padding:12px}.customer-reading .chapter-view>.report-cover{padding:11px 13px}.customer-reading .chapter-view>.report-cover h2{font-size:18px}.customer-reading .reading-copy p{font-size:16px;line-height:1.9}.customer-reading .topic-card>.reading-copy>p:first-child{font-size:17px}.customer-reading .chapter-pager-links{grid-template-columns:1fr}.customer-reading .chapter-pager-links button:last-child{grid-column:1;text-align:left}.customer-reading .report-chat-fab.is-scrolling{transform:translateX(12px) scale(.72)}}
.service-home{padding-bottom:40px}.service-hero{padding:26px 4px 18px}.service-hero .kicker{font-size:13px;letter-spacing:.08em;color:#7f9e8d}.service-hero h2{font-size:30px}.service-grid{display:grid;grid-template-columns:1fr;gap:12px}.service-card{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #52665b;border-radius:16px;background:#1b211d;color:#d9e7df;text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.14);transition:transform .18s ease,box-shadow .18s ease}.service-card.primary{background:linear-gradient(145deg,#315b49,#234436)}.service-card:active{transform:scale(.985);box-shadow:0 3px 10px rgba(0,0,0,.18)}.service-card strong{font-size:20px}.service-card span{color:#b8c8bf;font-size:14px}.service-card b{margin-top:8px;font-size:14px}.service-note{margin-top:18px;padding:18px;border:1px solid #52665b;border-radius:16px;background:#1b211d}.service-note span{font-size:13px;color:#aebdb5}@media(min-width:700px){.service-grid{grid-template-columns:1fr 1fr}.service-home{max-width:820px;margin:auto}}
.top a{color:var(--ink);text-decoration:none;font-size:13px}.simple-shop{padding-bottom:40px}.shop-categories{display:flex;gap:8px;overflow:auto;margin:14px 0 18px;padding-bottom:4px}.shop-categories button{white-space:nowrap;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:8px 13px}.shop-categories button.on{background:var(--ink);color:var(--paper)}.shop-products{display:grid;gap:12px}.shop-product{display:grid;grid-template-columns:108px 1fr;gap:14px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);text-decoration:none}.shop-product img{width:108px;height:108px;border-radius:8px;object-fit:cover;background:var(--panel)}.shop-product div{display:flex;min-width:0;flex-direction:column}.shop-product small{color:var(--gold)}.shop-product strong{font-size:17px}.shop-product span{font-size:13px;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.shop-product b{margin-top:auto}.full-shop-link{display:block;text-align:center;margin-top:20px;padding:12px;border:1px solid var(--line);border-radius:8px;color:var(--ink)}@media(max-width:380px){.shop-product{grid-template-columns:88px 1fr}.shop-product img{width:88px;height:100px}}
.ceremony-page{padding-bottom:40px}.ceremony-intro{padding:22px 0 12px}.ceremony-intro h2{font-size:28px}.ceremony-month{font-weight:800;font-size:18px;margin:10px 0;padding:12px 15px;border-radius:10px;background:var(--gold-soft);color:var(--ink)}.ceremony-list{display:grid;gap:12px}.ceremony-card,.ceremony-empty{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.ceremony-card time{color:var(--gold);font-weight:700}.ceremony-card h3{font-size:20px;margin:4px 0}.ceremony-card>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.ceremony-card a,.ceremony-contact{background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:8px;text-decoration:none}.ceremony-card span{font-size:13px;color:var(--ink-2)}.ceremony-contact{display:block;text-align:center;margin-top:18px}
.ceremony-status{display:inline-block;margin:8px 0 2px;padding:4px 9px;border-radius:999px;background:var(--gold-soft)}.ceremony-status.confirmed{background:#dcecdf;color:#28523a}.ceremony-details{margin:10px 0 0;padding-left:20px;color:var(--ink-2);line-height:1.8}

.service-actions{display:flex;flex-wrap:wrap;gap:1rem;margin:0 0 1rem}.service-actions a{min-height:44px;display:inline-flex;align-items:center}.action-status{padding:.6rem .8rem;border-left:3px solid #477963;line-height:1.6;overflow-wrap:anywhere}

/* ASTRA12: a visible tarot entry, independent of report login. */
.service-card.tarot-entry{background:#f0d492;border:2px solid #9c7432;color:#292114;box-shadow:0 5px 16px rgba(69,46,12,.16)}
.service-card.tarot-entry strong,.service-card.tarot-entry span,.service-card.tarot-entry b{color:#292114}
.service-card:focus-visible,.tarot-open:focus-visible{outline:3px solid #986318;outline-offset:4px}
.tarot-start{max-width:640px;margin:auto;padding:22px 18px 36px;color:#262b26}
.tarot-start h1{font-size:28px;line-height:1.35}.tarot-start p{font-size:17px;line-height:1.7}
.tarot-open{display:block;padding:18px 16px;margin:24px 0 12px;background:#f0d492;color:#292114;border:2px solid #9c7432;border-radius:14px;text-align:center;text-decoration:none;font-size:21px;font-weight:700;min-height:56px;box-sizing:border-box}
.tarot-open:active{box-shadow:inset 0 2px 6px #9c743244;transform:translateY(1px)}
.tarot-help{border:1px solid #b7c4ba;border-radius:14px;padding:16px;margin:24px 0;background:#f4f5ee}
.tarot-help h2{font-size:19px;margin:0 0 8px}.tarot-help p{font-size:15px;margin:8px 0}
@media(max-width:699px){.service-hero{padding-top:12px}.service-hero h2{font-size:26px}.service-card.tarot-entry{padding:16px 18px}}

/* Saved answer page: self-hosted CSS also works with style-src 'self'. */
.answer-page .answer-item{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;padding:1rem;margin:1rem 0;border:1px solid #a8b7a8;border-radius:12px;background:#fffdf8;color:#26392f}
.answer-page .answer-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0;align-items:stretch}
.answer-page .answer-actions>a,.answer-page .answer-actions>button,.answer-page .answer-resume,.answer-page .top>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #9fb3a4;border-radius:10px;font:inherit;line-height:1.5;text-decoration:none;background:#fffdf8;color:#315443;box-sizing:border-box;cursor:pointer}
.answer-page .answer-actions>button,.answer-page .answer-resume{background:#315b49;color:#fff;border-color:#315b49}
.answer-page .answer-actions>button:disabled,.answer-page .answer-resume:disabled{opacity:.6;cursor:wait}
.answer-page .answer-actions>a:focus-visible,.answer-page .answer-actions>button:focus-visible,.answer-page .answer-resume:focus-visible,.answer-page .top>a:focus-visible{outline:3px solid #a7864b;outline-offset:3px}
.answer-page #answer-status{padding:16px 0;line-height:1.8;overflow-wrap:anywhere}
.answer-page img{max-width:100%}
@media(max-width:600px){.answer-page .answer-actions>a,.answer-page .answer-actions>button{flex:1 1 auto}.answer-page .answer-item{padding:14px}.answer-page .top{gap:12px}}

.answer-report-action{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;margin:12px 0;background:#315b49;color:#fff;border-radius:8px;text-decoration:none;font-weight:700}
.answer-report-action:focus-visible{outline:3px solid #ba943f;outline-offset:3px}

/* Keep the controls visible; only the answer history scrolls. */
.customer-reading .report-chat-panel{overflow:hidden}
.customer-reading .report-chat-panel>header{flex:0 0 auto}
.customer-reading .report-chat-panel form{flex:0 0 auto;max-height:none;overflow:visible}
.customer-reading .report-chat-log{min-height:0}
.customer-reading .report-chat-panel textarea{min-height:72px;max-height:20dvh;resize:none}

.customer-reading .report-chat-panel>header{flex:0 0 auto;max-height:none;overflow:visible;padding:0;margin:0;background:transparent;border:0;min-height:0}
.customer-reading .report-chat-panel form{flex:0 0 auto;max-height:none;overflow:visible}
.customer-reading .report-chat-log{min-height:0}
.customer-reading .report-chat-log:empty{display:none}
.customer-reading .report-chat-panel{height:auto;max-height:calc(100dvh - 140px);gap:14px;padding:20px;background:var(--surface,#25241f)}
.customer-reading .report-chat-panel .chat-usage-details,.customer-reading .report-chat-panel .chat-help-details{padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.customer-reading .report-chat-panel .chat-usage-details summary,.customer-reading .report-chat-panel .chat-help-details summary{min-height:0;padding:6px 0;font-size:13px}
.customer-reading .report-chat-panel form{margin:0;padding:14px 0 0;display:flex;flex-direction:column;gap:10px}
.customer-reading .report-chat-panel form>p:empty{display:none}
.customer-reading .report-chat-panel .chat-topic-label{margin:0}
.customer-reading .report-chat-panel textarea{min-height:120px;margin:0}
.customer-reading .report-chat-panel .btn{margin:0;min-height:44px}
@media(max-width:600px){.customer-reading .report-chat-panel{top:auto;max-height:calc(100dvh - 108px);padding:16px}.customer-reading .report-chat-panel .report-chat-log{max-height:32dvh}.customer-reading .report-chat-panel textarea{min-height:96px}}

.customer-reading>.service-actions{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px;padding:0}
.customer-reading>.service-actions>a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 18px;border:1px solid #708477;border-radius:12px;background:#2b4035;color:#f5f2e9;text-decoration:none;font-size:15px;font-weight:650;line-height:1.4;box-shadow:0 3px 9px #0002;transition:background .15s,border-color .15s}
.customer-reading>.service-actions>a:first-child::before{content:'←';font-size:18px}
.customer-reading>.service-actions>a:last-child{background:transparent;color:inherit;border-color:#778779}
.customer-reading>.service-actions>a:hover{background:#385747;border-color:#adc5b2}
.customer-reading>.service-actions>a:focus-visible{outline:3px solid #c7a75b;outline-offset:3px}
@media(max-width:600px){.customer-reading>.service-actions{gap:10px}.customer-reading>.service-actions>a{flex:1;padding:11px 12px;font-size:14px}}

/* Dedicated conversation entry. Report reading and its drawer remain unchanged. */
.customer-reading .conversation-view .conversation-report-context{display:none}
.customer-reading .conversation-view .conversation-chat{position:relative;inset:auto;width:100%;max-width:820px;margin:20px auto;z-index:auto}
.customer-reading .conversation-view .conversation-chat .report-chat-panel{position:relative;inset:auto;width:100%;max-width:none;max-height:none;display:flex;flex-direction:column;padding:24px;overflow:visible;box-shadow:none;background:var(--card);color:var(--ink)}
.customer-reading .conversation-view .conversation-chat .report-chat-panel>header{flex:none}
.customer-reading .conversation-view .conversation-chat .report-chat-log{min-height:100px;max-height:45vh;overflow:auto;padding:12px 0}
.customer-reading .conversation-view .conversation-chat form{position:static;background:var(--card);padding:16px 0 4px;margin:0;z-index:2}
.customer-reading .conversation-view .conversation-chat textarea{width:100%;min-height:100px;max-height:240px;resize:vertical;font-size:16px}
.conversation-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0}
.conversation-actions select{flex:1;min-width:180px;min-height:44px}
.conversation-actions button{min-height:44px}
.conversation-context{font-size:14px;color:var(--ink-2)}
@media(max-width:600px){.customer-reading .conversation-view .conversation-chat .report-chat-panel{padding:16px}.conversation-actions{gap:8px}.customer-reading .conversation-view .conversation-chat{margin:12px 0}.customer-reading .conversation-view .conversation-chat .chat-bubble{max-width:100%;overflow-wrap:anywhere}}


.customer-reading .conversation-view .conversation-refine{margin:0 0 8px;font-size:13px}.customer-reading .conversation-view .conversation-version{font-size:12px;color:var(--ink-2);margin:4px 0}.customer-reading .conversation-view .chat-new-answer{width:100%;margin:8px 0}.customer-reading .conversation-view .attempt-history-time{font-size:12px;color:var(--ink-2)}.customer-reading .conversation-view .conversation-waiting{font-size:13px;padding:8px 0}@media(max-width:600px){.customer-reading .conversation-view .conversation-actions{margin:8px 0}.customer-reading .conversation-view .conversation-chat .report-chat-panel{padding:14px}.customer-reading .conversation-view .conversation-chat form{padding-top:8px}}

/* Mobile conversation: keep the input in the first screen, not behind a tall log. */
@media(max-width:600px){
.customer-reading .conversation-view .conversation-chat{margin:8px 0}
.customer-reading .conversation-view .conversation-chat .report-chat-panel{padding:12px}
.customer-reading .conversation-view .conversation-chat .report-chat-panel>header h2{font-size:20px;margin:0 0 6px}
.customer-reading .conversation-view .conversation-chat .conversation-context{font-size:12px;line-height:1.4;margin:4px 0}
.customer-reading .conversation-view .conversation-chat .conversation-version{font-size:11px;line-height:1.4;margin:4px 0}
.customer-reading .conversation-view .conversation-chat .conversation-actions{display:flex;flex-wrap:nowrap;gap:8px;margin:8px 0}
.customer-reading .conversation-view .conversation-chat .conversation-actions select{flex:1;min-width:0;width:0;min-height:44px;margin:0}
.customer-reading .conversation-view .conversation-chat .conversation-actions button{flex:0 0 auto;width:auto;margin:0;padding:8px 12px;min-height:44px}
.customer-reading .conversation-view .conversation-chat .chat-usage-details{margin:6px 0}
.customer-reading .conversation-view .conversation-chat .report-chat-log{min-height:80px;max-height:16dvh;padding:6px 0}
.customer-reading .conversation-view .conversation-chat form{padding:6px 0 0}
.customer-reading .conversation-view .conversation-chat textarea{min-height:84px;height:84px;margin:8px 0;font-size:16px}
.customer-reading .conversation-view .conversation-chat form>.btn{min-height:44px;margin:0;padding:10px}
.customer-reading .conversation-view .conversation-chat .conversation-refine{margin:4px 0;padding:6px 8px}
}
