/* SOURCE: daily.css */
:root{--navy:#142237;--gold:#c5a66c;--cream:#f7f3e9;--ink:#253247;--muted:#687386;--line:#e5ddce;--white:#fffdf8}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;line-height:1.65}.top{background:var(--navy);color:#fff;padding:18px max(20px,calc((100vw - 940px)/2));display:flex;justify-content:space-between;align-items:center}.brand{letter-spacing:.16em;color:#ecd8ac;font-weight:700}.top a{color:#e6d6b8;text-decoration:none;font-size:14px}.wrap{max-width:940px;margin:34px auto;padding:0 18px}.eyebrow{color:#997b45;letter-spacing:.2em;font-size:12px}.hero{text-align:center;margin:20px auto 28px}.hero h1{font-family:serif;font-size:clamp(30px,5vw,44px);font-weight:500;margin:9px}.hero p{color:var(--muted)}.card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:22px;margin:16px 0;box-shadow:0 8px 28px #3427140a}.inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}.field input,.field select{width:100%;padding:12px;border:1px solid #d9d1c3;border-radius:10px;background:white;font:inherit;color:var(--ink)}.wide{grid-column:1/-1}.btn{background:var(--navy);color:white;border:0;border-radius:11px;padding:12px 18px;font:inherit;font-weight:650;cursor:pointer}.btn:disabled{opacity:.55;cursor:wait}.btn.alt{background:white;color:var(--navy);border:1px solid var(--line)}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hint{color:var(--muted);font-size:12px;line-height:1.7}.pill{border:1px solid #e2d4b6;background:#fbf4e4;color:#80642e;border-radius:999px;padding:6px 11px;font-size:12px}.pillar{font-size:44px;font-family:serif;color:#9b7a3d;letter-spacing:.08em}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{background:#f8f3e8;border-radius:12px;padding:14px}.stat small{display:block;color:var(--muted);margin-bottom:6px}.stat strong{font-size:18px}.sections{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tile{border:1px solid var(--line);border-radius:14px;padding:15px}.tile h3{font-size:15px;margin:0 0 7px}.tile p{line-height:1.8;margin:0;font-size:14px}.notice{border-left:3px solid var(--gold);padding:10px 14px;background:#f9f4e9;color:#66563b;font-size:13px;line-height:1.8}.hidden{display:none!important}.footer{text-align:center;color:var(--muted);font-size:12px;padding:25px}#error{color:#a23c36;margin-top:10px;min-height:1.4em}.tags{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.tag{font-size:12px;border:1px solid var(--line);background:#fff;padding:6px 10px;border-radius:999px}.saved{padding:10px 12px;border-radius:10px;background:#f2eee5;color:#6e5b3d;font-size:12px;line-height:1.7}.footer a{color:inherit}@media(max-width:600px){.inputs,.sections{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.wide{grid-column:auto}.card{padding:17px}.pillar{font-size:37px}}
@media print{body{background:white}.top,.form-card,.footer,.print-actions{display:none!important}.wrap{margin:0;max-width:none}.card{box-shadow:none;break-inside:avoid}}

/* Original inline declarations moved here to support strict CSP headers. */
.zh-daily-inline-1{justify-content:space-between}
.zh-daily-inline-2{font-family:serif;font-weight:500;margin:0}
.zh-daily-inline-3{margin-top:16px}
.zh-daily-inline-4{margin-top:12px}
.zh-daily-inline-5{justify-content:space-between;align-items:flex-start}
.zh-daily-inline-6{font-family:serif;font-weight:500;margin:7px 0}
.zh-daily-inline-7{border:0;border-top:1px solid var(--line);margin:18px 0}
.zh-daily-inline-8{font-family:serif;font-weight:500;margin-bottom:6px}
.zh-daily-inline-9{line-height:1.8}
.zh-daily-inline-10{font-family:serif;font-weight:500}

/* SOURCE: gpt-bazi.css */
/* 深靛 x 香檳金；GPT 客製命理報告及追問區 */
.ai-personal-panel,.ai-qa,.ai-report-card,.ai-report-heading,.ai-report-closing{box-sizing:border-box}
.ai-personal-panel{margin:24px 0 18px;border:1px solid #bba57280;padding:22px;border-radius:18px;background:linear-gradient(140deg,#fffdf7,#f3e9d5)}
.ai-general-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between}
.ai-personal-panel h3,.ai-qa h2{margin:0 0 7px;color:#233042;font-size:clamp(18px,2vw,26px)}
.ai-personal-panel p,.ai-qa p{line-height:1.85}
.ai-start-btn,.ai-ask-btn{border:0;border-radius:11px;background:linear-gradient(110deg,#957037,#c19b52);color:#fff;padding:13px 20px;font-weight:700;cursor:pointer;box-shadow:0 6px 18px #856b3440}
.ai-start-btn:disabled,.ai-ask-btn:disabled{opacity:.55;cursor:not-allowed}
.ai-report{display:grid;gap:17px;color:#263241;text-align:left;max-width:100%;overflow-wrap:anywhere}
.ai-report-heading{background:linear-gradient(135deg,#1e2836,#384457);color:#fbf1d8;border-radius:17px;padding:25px 28px;box-shadow:0 12px 30px #1d27341b}
.ai-report-kicker{font-size:11px;color:#e3c99a;letter-spacing:1.5px}
.ai-report-heading h3{font-size:clamp(21px,2.3vw,30px);color:#fff5df;margin:12px 0}
.ai-report-heading p{color:#f5e7cc;white-space:pre-wrap;line-height:2;margin:0}
.ai-report-card{background:#fffdf7;border:1px solid #d7c8a7;border-radius:15px;padding:23px;box-shadow:0 8px 28px #3832210d}
.ai-report-card h4{color:#604721;font-size:clamp(18px,2vw,23px);margin:0 0 20px;padding-bottom:15px;border-bottom:1px solid #e9dac0}
.ai-report-field{display:grid;grid-template-columns:135px minmax(0,1fr);align-items:start;gap:12px;margin-bottom:18px}
.ai-report-field:last-child{margin-bottom:0}
.ai-report-field strong{display:block;color:#916725;font-size:14px;padding-top:4px}
.ai-report-field p{margin:0;color:#323a42;line-height:2;white-space:pre-wrap;font-size:15px}
.ai-report-closing{padding:20px 23px;border-radius:14px;background:#eee7d9;color:#27364a;line-height:2}
.ai-report-closing span{font-weight:800;color:#8b652c}
.ai-disclaimer{font-size:12px!important;color:#6e6d69!important;line-height:1.8!important;margin:0}
.ai-report-loading,.ai-report-error{background:#fff8ec;padding:22px;border:1px dashed #bf9e63;border-radius:12px;color:#71542d;line-height:1.85;text-align:center}
.ai-report-error{border-color:#c17b72;color:#9b3b34;background:#fff6f4}
.ai-wealth-chart{background:#fffdf9;border:1px solid #e4d5b9;border-radius:14px;padding:20px;overflow:hidden}
.ai-wealth-chart h4{color:#88631d;margin:0 0 10px}
.ai-qa{max-width:1100px;margin:38px auto;padding:clamp(19px,3vw,36px);background:linear-gradient(145deg,#fffdf8,#f2eadd);border:1px solid #bdab8b;border-radius:22px;box-shadow:0 14px 35px #493d261a}
.ai-qa-top{display:flex;align-items:center;gap:17px;border-bottom:1px solid #d4c3a6;padding-bottom:22px;margin-bottom:22px}
.ai-qa-seal{flex:none;width:57px;height:57px;border-radius:50%;border:2px solid #c79b55;display:grid;place-items:center;color:#8c642d;font-weight:800;font-size:26px}
.ai-qa-kicker{font-size:11px;letter-spacing:2px;color:#9d773f;margin:0 0 5px!important}
.ai-context-name{padding:10px 14px;border-radius:10px;background:#eae1ce;margin:10px 0;color:#624b2e;font-size:14px;line-height:1.6}
.ai-chat-messages{display:grid;gap:14px;margin:18px 0}
.ai-message{background:#fff;border-radius:14px;border:1px solid #d9c8ab;padding:20px;line-height:1.9}
.ai-message-meta{font-size:12px;color:#977241;letter-spacing:.6px}
.ai-message h4{margin:7px 0 11px;color:#222d3a;font-size:18px}
.ai-answer-main{white-space:pre-wrap;color:#2b3441}
.ai-answer-list{margin:14px 0;padding:14px;border-left:3px solid #bd9658;background:#f9f5ec;border-radius:0 8px 8px 0}
.ai-answer-list strong{color:#7e5420}
.ai-answer-list ul{padding-left:22px;margin:8px 0 0}
.ai-answer-list li{margin-bottom:8px}
.ai-answer-caveat{font-size:12px;color:#666!important}
.ai-ask-form textarea{display:block;box-sizing:border-box;width:100%;min-height:112px;border-radius:12px;border:1px solid #c7b28e;background:#fffefa;font-size:15px;padding:15px;resize:vertical;color:#253345;font-family:inherit}
.ai-ask-form textarea:focus{outline:2px solid #cba768;outline-offset:2px}
.ai-ask-suggest{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ai-ask-suggest button{cursor:pointer;border:1px solid #c9b99c;border-radius:20px;padding:7px 12px;background:#fff9ed;color:#66502d;font-size:13px}
.ai-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:#575550;line-height:1.6;margin:15px 0}
.ai-consent input{margin-top:4px}
.ai-qa-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
.ai-daily-hint{font-size:12px;color:#766d5e}
.ai-qa-error{color:#af493d;min-height:1.6em;font-size:13px;margin:8px 0}
@media(max-width:680px){.ai-report-field{display:block}.ai-report-field strong{margin:0 0 6px}.ai-report-card{padding:17px}.ai-report-heading{padding:20px}.ai-qa{margin:20px 10px}.ai-start-btn,.ai-ask-btn{width:100%}}
@media print{.ai-qa,.ai-start-btn{display:none!important}}

/* Unlocked reports and retry state: never return to a payment gate after a report error. */
.ai-retry-panel{max-width:720px;margin:12px auto;padding:24px;background:#fffdf8;border:1px solid #c9a36b;border-radius:14px;box-shadow:0 10px 30px #4d392414;text-align:center;color:#574124}
.ai-retry-panel h4{font-size:21px;margin:0 0 12px;color:#725022}
.ai-retry-panel p{line-height:1.75;overflow-wrap:anywhere}
.ai-retry-note{font-size:13px;color:#8a7452}
.ai-retry-button{cursor:pointer;border:0;background:linear-gradient(90deg,#957037,#c19b52);color:white;font-weight:700;padding:12px 24px;border-radius:9px;min-height:44px}
.ai-retry-button:hover{filter:brightness(1.05)}

/* 個別化專屬文章：總評、重點、動態主題與時間軸，不再逐卷填四格表 */
.zh-story{display:grid;gap:18px;max-width:100%;color:#2f3946;overflow-wrap:anywhere}
.zh-story-hero{background:linear-gradient(145deg,#1a283b,#30425a);color:#f9f2e6;border:1px solid #a78c60;border-radius:17px;padding:28px 30px}
.zh-story-eyebrow{display:block;color:#dfc392;font-size:12px;letter-spacing:.16em;margin-bottom:10px}
.zh-story-hero h3{font-size:clamp(21px,2.5vw,30px);margin:0 0 14px;color:#fff7e7;line-height:1.4}
.zh-story-verdict{font-size:clamp(16px,1.8vw,19px);font-weight:500;line-height:1.85;margin:0;color:#f8e9cc}
.zh-story-highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px}
.zh-story-highlight{padding:19px 18px;border:1px solid #d3bb89;border-radius:13px;background:linear-gradient(145deg,#fffdf7,#faf2e3)}
.zh-story-highlight strong{font-size:17px;line-height:1.5;color:#775529}
.zh-story-highlight p{font-size:14px;line-height:1.85;margin:7px 0 0;color:#4b4b49}
.zh-story-topic{border:1px solid #decdb1;border-radius:15px;background:#fffdf9;padding:clamp(19px,3vw,29px);box-shadow:0 5px 22px #4c34190b}
.zh-story-topic-heading{display:flex;align-items:baseline;gap:12px;padding-bottom:13px;margin-bottom:17px;border-bottom:1px solid #e8dcca}
.zh-story-topic-number{font:500 13px Georgia,serif;color:#aa8b5e;letter-spacing:.06em}
.zh-story-topic h4{font-size:clamp(19px,2vw,23px);color:#57432d;line-height:1.45;margin:0}
.zh-story-lead{font-size:17px;font-weight:600;color:#29374a;line-height:1.85;margin:0 0 10px}
.zh-story-body{font-size:15px;color:#525963;line-height:1.95;margin:0 0 13px}
.zh-story-cases{display:grid;gap:9px;margin:0 0 13px}
.zh-story-case{font-size:14px;color:#5b554d;line-height:1.85;margin:0;padding:11px 14px;border-left:3px solid #b49a6f;background:#f7f2e9;border-radius:0 7px 7px 0}
.zh-story-next{margin:14px 0 0;padding:14px 17px;background:#ebf0f3;border-radius:9px;border-left:4px solid #697c91;line-height:1.85;color:#273e51;font-size:14px}
.zh-story-next span:first-child{font-weight:800;color:#435d76;white-space:nowrap}
.zh-story-basis{margin-top:14px;padding:10px 2px 0;border-top:1px dashed #ded4c5;color:#6c6b64;font-size:13px;line-height:1.85}
.zh-story-basis summary{cursor:pointer;user-select:none;color:#8c785b;font-weight:600}
.zh-story-basis p{margin:8px 0 0}
.zh-story-basis ul{padding-left:20px;margin:7px 0}
.zh-story-timeline{background:#fbf7ef;border:1px solid #dccaaa;border-radius:15px;padding:23px}
.zh-story-timeline h4{font-size:22px;color:#70512a;margin:0 0 17px}
.zh-story-time-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:11px}
.zh-story-time-item{border-radius:10px;border:1px solid #e1d1b5;background:#fffdfa;padding:15px}
.zh-story-time-item strong{color:#806039;font-size:16px}
.zh-story-time-item p{color:#514b43;font-size:14px;line-height:1.8;margin:8px 0 0}
.zh-story-time-item .zh-story-time-action{color:#49637a;font-weight:550}
.zh-story-closing{padding:16px 20px;border:1px solid #d6c39c;border-radius:10px;background:#f4eddf;line-height:1.85}
.zh-story-closing span{font-weight:800;color:#8b642c}
.zh-story-closing p{margin:5px 0 0;color:#4e4c48}
.zh-story-note{margin:0;color:#79746e;font-size:12px;line-height:1.7}
/* 個別化的節氣月份提示：依資料才出現，不按一至十二月硬排。 */
.zh-story-months{padding:24px;background:linear-gradient(165deg,#f8f1e5,#fffdf7);border:1px solid #d5bc8f;border-radius:15px}
.zh-story-month-heading{margin-bottom:15px}.zh-story-month-heading h4{font-size:22px;color:#72532c;margin:0 0 5px}
.zh-story-month-caption{color:#857259;font-size:12px;line-height:1.65;margin:0}
.zh-story-month-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:13px}
.zh-story-month-card{padding:20px 18px;background:#fffdf9;border:1px solid #e1d1b7;border-left:4px solid #b39058;border-radius:11px;min-width:0}
.zh-story-month-card h5{font-size:16px;color:#77552a;margin:0 0 11px;line-height:1.55}
.zh-story-month-reason,.zh-story-month-scenario{font-size:14px;line-height:1.9;color:#4d4c4b;margin:0 0 10px}
.zh-story-month-scenario{color:#65625b}
.zh-story-month-action{margin:12px 0 0;padding:11px 12px;border-radius:7px;background:#f0f4f4;color:#324d5a;font-size:13px;line-height:1.85}
.zh-story-month-action strong{color:#385b62}
@media(max-width:650px){.zh-story-months{padding:16px 13px}.zh-story-month-grid{grid-template-columns:minmax(0,1fr)}.zh-story-month-card{padding:17px 13px}}
@media(max-width:650px){.zh-story-hero{padding:20px 17px}.zh-story-topic{padding:19px 15px}.zh-story-highlights{grid-template-columns:1fr}.zh-story-time-grid{grid-template-columns:1fr}.zh-story-timeline{padding:17px}}

/* v68: 每日免費一題，追加每題 NT$49 的公開付款確認。 */
.ai-question-payment{margin:14px 0 18px;padding:18px;border:1px solid #d6b586;border-radius:16px;background:linear-gradient(145deg,#fffdf8,#faf1e5);box-shadow:0 6px 18px #775c3620;color:#64445a}
.ai-question-payment.hidden{display:none!important}
.ai-question-payment strong{display:block;font:800 18px/1.5 'Noto Serif TC',serif;color:#70486c}
.ai-question-payment p{margin:7px 0 16px;font-size:14px;line-height:1.75;color:#6d5b50}
.ai-question-payment-actions{display:flex;gap:10px;flex-wrap:wrap}
.ai-question-payment-actions button,.ai-question-retry button{border:1px solid #bd916e;border-radius:999px;min-height:44px;padding:10px 18px;font-weight:750;cursor:pointer}
#aiQuestionDemoPay,.ai-question-retry button{color:#fffaf0;background:linear-gradient(125deg,#855180,#b4778c);box-shadow:0 4px 12px #88547825}
#aiQuestionPayCancel{background:#fff9f2;color:#765c62}
.ai-question-retry{padding:18px;border:1px solid #d6b586;border-radius:14px;background:#fff9f1;color:#775267;line-height:1.8}
.ai-question-retry button{margin-top:8px}
@media(max-width:620px){.ai-question-payment-actions{flex-direction:column}.ai-question-payment-actions button{width:100%}}

.ai-qa-recent{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px;padding-top:13px;border-top:1px solid #e7d6bc}
.ai-qa-recent button{border:1px solid #c5a783;background:#fffaf2;color:#75546e;border-radius:999px;padding:9px 15px;min-height:40px;font-weight:650;cursor:pointer}
.ai-qa-recent span,.ai-previous-question-note{font-size:12px;color:#87736d;line-height:1.7}

/* v77: safe, member/chart-scoped recent conversation presentation. */
#aiQa .ai-conversation-intro{margin:8px 0 12px;padding:10px 12px;border-left:3px solid #bb8cbb;color:#66496d;background:rgba(250,242,248,.83);border-radius:9px;font-size:13px;line-height:1.65}
#aiQa .ai-conversation-turn{margin:10px 0;border:1px solid rgba(176,131,178,.4);border-radius:12px;background:rgba(255,249,244,.83);overflow:visible;max-width:100%;box-sizing:border-box}
#aiQa .ai-conversation-turn > summary{cursor:pointer;display:list-item;list-style-position:inside;padding:12px 14px;color:#614369;font-weight:700;line-height:1.7;overflow-wrap:anywhere;touch-action:manipulation}
#aiQa .ai-conversation-turn[open] > summary{border-bottom:1px solid rgba(176,131,178,.25)}
#aiQa .ai-conversation-turn > .ai-message-assistant{margin:8px 10px 12px;max-width:calc(100% - 20px)}
@media(max-width:700px){#aiQa .ai-conversation-turn > summary{font-size:14px;padding:10px 11px}#aiQa .ai-conversation-turn > .ai-message-assistant{margin:6px 7px 9px;max-width:calc(100% - 14px)}}

/* SOURCE: life-profile.css */
/* 新中式生活近況問答 */
.life-modal-open{overflow:hidden}
.life-modal{position:fixed;inset:0;z-index:10005;display:grid;place-items:center;padding:18px}
.life-modal.hidden{display:none!important}
.life-backdrop{position:absolute;inset:0;background:rgba(28,30,28,.68);backdrop-filter:blur(5px)}
.life-dialog{position:relative;width:min(100%,510px);max-height:min(86vh,790px);overflow:auto;border:1px solid #d9b875;border-radius:16px;background:linear-gradient(154deg,#fffdf8 0%,#f8f0e2 100%);box-shadow:0 24px 80px #24170650;padding:30px 28px;color:#4e3825}
.life-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.life-kicker{font-size:12px;letter-spacing:.16em;color:#ac8246}
.life-close{border:0;background:transparent;color:#775c40;font-size:28px;cursor:pointer;padding:0 6px}
.life-dialog h2{font-size:27px;line-height:1.4;color:#684521;margin:8px 0}
.life-intro{font-size:14px;line-height:1.8;color:#7a6756;margin:4px 0 18px}
.life-progress-rail{height:5px;border-radius:8px;background:#ece0cb;overflow:hidden;margin:8px 0 10px}
.life-progress{height:100%;background:linear-gradient(90deg,#c49a4d,#87602b);transition:width .2s}
.life-counter{color:#9a7b56;font-size:12px;text-align:right}
.life-question h3{font-size:23px;color:#54371c;line-height:1.45;margin:13px 0 17px}
.life-options{display:grid;gap:10px}
.life-option{border:1px solid #dec9a6;background:#fffdf9;text-align:left;padding:13px 16px;border-radius:10px;font-size:15px;color:#543d26;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.life-option:hover{border-color:#ae844a;background:#f9f1e2}
.life-option.is-picked{background:#74522b;color:#fffaf0;border-color:#74522b;box-shadow:0 3px 12px #9d713032}
.life-option.is-picked:before{content:'✓　'}
.life-hint{font-size:13px;color:#826d51;line-height:1.75;margin:12px 0 5px}
.life-hint:empty{display:none}
.life-actions{position:sticky;bottom:-1px;z-index:2;display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding:12px 0 5px;background:linear-gradient(#fbf4e8f5,#fbf4e8);border-top:1px solid #eadcc6}
.life-action{border:1px solid #d4bd97;border-radius:9px;padding:11px 16px;cursor:pointer;background:#fff9ec;color:#684b2c;font-size:14px}
.life-action.primary{flex:1;background:linear-gradient(110deg,#7b582b,#b48a47);color:#fff;border-color:transparent;font-weight:600}
.life-action:disabled{opacity:.5;cursor:default}
.life-cancel{border:none;background:transparent;color:#897965;cursor:pointer;display:block;margin:14px auto 0;text-decoration:underline;font-size:13px}
.life-note{border-top:1px solid #eadcc6;padding-top:12px;margin-top:15px;color:#8a7964;font-size:12px;line-height:1.7}
.life-edit{background:transparent;border:1px solid #bfa177;border-radius:30px;color:#825e32;font-size:13px;padding:7px 13px;cursor:pointer}
.life-edit.hidden{display:none!important}
.life-edit:hover{background:#f3e5d0}
@media(max-width:520px){.life-dialog{padding:23px 18px}.life-dialog h2{font-size:23px}.life-question h3{font-size:21px}.life-option{padding:12px 13px}.life-action{padding:10px 12px}}

/* SOURCE: cat-theme.css */
/* 玄機閣 · 貓咪古風主題：只改視覺，不更動原有會員/計算/付款功能 */
:root{--ink:#4c3026;--navy:#4a3029;--navy2:#674533;--gold:#b98145;--gold2:#f4d5a4;--paper:#fff2e7;--white:#fffaf3;--muted:#9b765f;--line:#ead0ae;--shadow:0 12px 30px #84573718;--cat-red:#a53b3a;--cat-rose:#e9b1a7}
html{scroll-behavior:smooth;scroll-padding-top:15px}
body{background:radial-gradient(ellipse at 4% 12%,#f6cbbf9a,transparent 29%),radial-gradient(ellipse at 96% 14%,#f9d2b2a6,transparent 27%),linear-gradient(180deg,#fff0e9 0%,#fff9f0 53%,#fbeddf 100%);color:var(--ink);font-family:"Noto Serif TC","Songti TC","Noto Sans TC","Microsoft JhengHei",serif}
body::before,body::after{content:"";position:fixed;z-index:-1;pointer-events:none;width:260px;height:340px;background:url('/assets/cat-theme/cherry-corner.webp') center/contain no-repeat;opacity:.22;filter:saturate(.75)}
body::before{left:-92px;top:150px}body::after{right:-115px;bottom:20px;transform:scaleX(-1) rotate(10deg)}
button,input,select,textarea{font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif}
button{transition:filter .16s ease,transform .13s ease,box-shadow .18s ease}
button:active{transform:translateY(2px) scale(.992)}
a{color:#9b5f3d}
.shell{max-width:1440px;padding:0 28px 55px}
.top{gap:20px;position:relative;margin:0;padding:11px 17px 12px;border-bottom:1px solid #d9b48670;min-height:82px;background:linear-gradient(90deg,#fff5eacc,#fff2e7bb);z-index:8}
.brand{gap:10px}.brand-home:hover{text-decoration:none}
.seal{position:relative;width:57px;height:57px;border:2px solid #9c7043;border-radius:50%;background:radial-gradient(circle,#f6e3c9,#f9dbba);font-size:32px;color:#543a2b;box-shadow:0 0 0 3px #fff5df inset,0 2px 7px #6d4b2b29}
.brandname{font-family:"Noto Serif TC","Songti TC",serif;font-size:29px;font-weight:900;letter-spacing:.15em;color:#502b25;line-height:1.15;text-shadow:0 1px 0 #fff}
.brandname small{margin-top:5px;font-family:"Noto Serif TC",serif;letter-spacing:.2em;color:#925936;font-size:11px;font-weight:600}
.top-actions{gap:16px}.top-daily{font-size:14px;color:#744630;font-weight:700}
.auth-nav button,.top-actions .life-edit{border-radius:30px;padding:10px 18px;font-weight:800;box-shadow:0 2px 5px #6f4d3019}
.auth-nav-main,.auth-submit{background:linear-gradient(110deg,#9f3d38,#c95646);color:#fff9e8;border:1px solid #b46b43}
.auth-nav-ghost{background:#ffe7c9;border:1px solid #be9660;color:#6e412e}
.auth-greeting{color:#754730}
.hero.cat-hero{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(405px,.97fr);align-items:center;gap:4px;min-height:455px;padding:20px 32px 22px 0;margin-top:15px;border:2px solid #edc7a4;border-radius:26px;box-shadow:0 13px 44px #b5765526;background:radial-gradient(circle at 20% 30%,#fff2df 0%,#fff6e8 43%,transparent 70%),radial-gradient(circle at 92% 4%,#f7c8b3,transparent 48%),linear-gradient(155deg,#fff3e9,#fff0dd);overflow:hidden;color:#543127}
.cat-hero::after{content:"";position:absolute;right:-15px;top:-40px;width:260px;height:180px;background:radial-gradient(ellipse,#ffe4c3c0,transparent 72%);pointer-events:none}
.cat-hero-art{width:100%;height:100%;min-height:400px;display:flex;align-items:flex-end;justify-content:flex-start;position:relative;isolation:isolate}
.cat-hero-art::after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(to right,transparent 70%,#fff3e9 100%),linear-gradient(to bottom,#fff3e9b5 0%,transparent 16%,transparent 86%,#fff0e5 100%)}
.cat-hero-art img{display:block;width:100%;height:100%;max-height:505px;object-fit:cover;object-position:center 42%;filter:saturate(.95)}
.cat-hero-copy{position:relative;z-index:2;max-width:595px;margin:0 auto;width:100%;text-align:center;padding:10px 8px}
.cat-kicker{margin:0;color:#b1834b!important;letter-spacing:.24em;font:700 13px/1.7 "Noto Serif TC",serif!important}
.cat-hero h1{font:900 clamp(40px,5vw,68px)/1.17 "Noto Serif TC","Songti TC",serif;letter-spacing:.18em;color:#532b20;margin:6px 0 4px;text-shadow:2px 3px #f8d5b1}
.cat-hero-slogan{font:700 clamp(19px,2.2vw,27px)/1.55 "Noto Serif TC",serif;letter-spacing:.18em;color:#663723}
.cat-hero-subtitle{font-size:13px!important;color:#8c5741!important;margin:8px auto 16px!important}
.cat-quick-form{position:relative;display:grid;grid-template-columns:115px 1fr;gap:8px 12px;align-items:center;max-width:510px;margin:20px auto 0;padding:35px 24px 16px;border:2px solid #d4aa78;border-radius:16px;background:linear-gradient(120deg,#fff5e8f6,#ffe7d9f2);box-shadow:inset 0 0 0 4px #fffbf1,0 13px 30px #aa6c422b}
.cat-quick-form::before,.cat-quick-form::after{content:"❀";position:absolute;top:9px;font-size:15px;color:#cd9c7e}.cat-quick-form::before{left:12px}.cat-quick-form::after{right:12px}
.cat-quick-ribbon{position:absolute;left:50%;top:-19px;transform:translateX(-50%);padding:7px 30px;white-space:nowrap;border-radius:26px;border:2px solid #cd9c69;background:linear-gradient(115deg,#603a31,#8e5142 48%,#603a31);box-shadow:0 3px 1px #ac805e;color:#ffedc8;font-weight:750;font-size:15px;letter-spacing:.12em}
.cat-quick-form label{font-size:14px;color:#75503a;text-align:left;font-weight:750;white-space:nowrap}
.cat-quick-form label span{font-size:19px;color:#bd8b55;vertical-align:middle;margin-right:6px}
.cat-quick-form input,.cat-quick-form select{width:100%;height:39px;border:1px solid #dec09d;border-radius:8px;background:#fffaf4;color:#6d4331;padding:0 10px;font-size:14px;outline:none}
.cat-quick-form input:focus,.cat-quick-form select:focus{box-shadow:0 0 0 3px #b87c5930;border-color:#b78355}
.cat-quick-submit,.cat-gold-link{border:2px solid #daab6a;background:linear-gradient(#c65c50,#a33f39);color:#fff1d7;box-shadow:0 4px 0 #864339,0 8px 16px #75492f26;font-weight:850;text-shadow:0 1px #7f332b;cursor:pointer;border-radius:30px}
.cat-quick-submit{grid-column:1/-1;max-width:300px;width:100%;justify-self:center;padding:11px 24px;font-size:17px;letter-spacing:.11em;margin-top:6px}
.cat-quick-submit:hover,.cat-gold-link:hover{filter:brightness(1.07)}
/* 七個功能入口：沿用原有 tab id 與互動 */
.fortune-tabs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:19px 0 13px!important;align-items:stretch;overflow:visible;scrollbar-width:none}
.fortune-tabs .fortune-tab{min-width:0!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;position:relative;border:2px solid #efd3b5;border-radius:24px!important;background:linear-gradient(157deg,#fffcf5,#ffe8d6);box-shadow:0 5px 13px #95634d18,0 0 0 4px #fff8ed inset;min-height:122px;padding:12px 4px!important;color:#67432e;font-family:"Noto Serif TC",serif!important;font-size:14px;flex:none!important;letter-spacing:0}
.fortune-tabs .fortune-tab span{font-size:33px;line-height:1.2;display:block!important;padding:0!important;margin-bottom:4px;filter:drop-shadow(0 2px 1px #b8754c33)}
.fortune-tabs .fortune-tab strong{display:block;font-size:15px;font-weight:900;line-height:1.5;color:inherit;white-space:normal;text-align:center}
.fortune-tabs .fortune-tab small{display:block;font-size:10px;line-height:1.4;color:#98735d;white-space:nowrap}
.fortune-tabs .fortune-tab.is-selected{background:linear-gradient(145deg,#9d4a3f,#ba6350)!important;border-color:#c68b55!important;color:#fff6e3!important;box-shadow:0 6px 17px #984d3a34,0 0 0 4px #eac59c52 inset}
.fortune-tabs .fortune-tab.is-selected small{color:#ffe5c8}
.fortune-tabs .fortune-tab:hover:not(.is-selected){background:#ffecde;transform:translateY(-3px);box-shadow:0 11px 20px #9963422a}
/* 首頁入口卡片 */
.cat-home-extras{display:grid;grid-template-columns:.9fr 1.1fr;gap:17px;margin:0 0 22px}
.cat-daily-feature,.cat-feature-panel{overflow:hidden;border:2px solid #e5c29e;border-radius:22px;background:linear-gradient(145deg,#fff8ed,#fff1e2);box-shadow:0 8px 22px #8b5c3a1c;min-width:0}
.cat-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px;background:linear-gradient(95deg,#724a3a,#a36f53 50%,#f8e6d1);color:#fff5dd}
.cat-section-heading>span{font-size:17px;font-weight:800;letter-spacing:.1em;white-space:nowrap}
.cat-section-heading small{font-size:11px;color:#6f452d;text-align:right}
.cat-daily-body{display:grid;grid-template-columns:45% 1fr;align-items:center;min-height:210px}
.cat-daily-body img{width:100%;height:240px;object-fit:cover;object-position:50% 50%;border-radius:0 30% 35% 0;mask-image:linear-gradient(to right,#000 76%,transparent 100%)}
.cat-daily-content{padding:12px 15px;text-align:center}.cat-daily-label{font-size:12px;letter-spacing:.16em;color:#ad7050}
.cat-daily-content h2{font:800 clamp(19px,2.1vw,29px) "Noto Serif TC",serif;color:#64382a;margin:9px 0}.cat-daily-content p{font-size:12px;color:#937260;line-height:1.8}
.cat-gold-link{display:inline-block;text-decoration:none;padding:9px 17px;font-size:12px;margin-top:6px}
.cat-feature-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px;min-height:225px}
.cat-feature-card{border:1px solid #e3bfa2;overflow:hidden;border-radius:14px;background:#fff7ee;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 0 12px;cursor:pointer;min-width:0;color:#6b412c;box-shadow:0 4px 13px #70463212}
.cat-feature-card img{height:137px;width:100%;object-fit:cover;object-position:center;display:block}
.cat-feature-card strong{margin-top:10px;font-size:16px;font-weight:850}.cat-feature-card>span{color:#977960;font-size:11px;margin-top:2px}
.cat-feature-card:hover{transform:translateY(-3px);box-shadow:0 9px 17px #70463229}
/* 內容區改成宣紙卡片、金線邊框與毛筆色標題 */
.layout{grid-template-columns:minmax(310px,405px) minmax(0,1fr);gap:20px;margin-top:20px}
.panel,.history-panel,.ai-qa,.astro-view .astro-page-workspace,.match-form,.match-result,.wealth-input-card,.wealth-results,.wx-overview,.wx-pair,.tarot-result,.tarot-history-wrap,.meihua-form,.meihua-results,.card{background:linear-gradient(145deg,#fffdf9,#fff5e8)!important;border:1px solid #e6c49e!important;border-radius:17px!important;box-shadow:0 7px 24px #80563717!important;color:#604634}
.panel{padding:26px}.panel h2,.history-heading h2{font-size:23px;color:#62352a;font-weight:750}
.section h3{border-color:#ead3b6;color:#7b4b35}.sub,.hint,.meta,.field label,.auth-dialog p,.ai-disclaimer{color:#98775e}
.field input,.field select,.auth-field input,textarea{background:#fffdfa;border-color:#e1c6a4;border-radius:8px;color:#633c30}
.field input:focus,.field select:focus,.auth-field input:focus,textarea:focus{border-color:#bd8b55;box-shadow:0 0 0 3px #cb916634}
.btn,.auth-submit,.match-submit,.wealth-submit,.ai-start-btn,.ai-ask-btn,.wx-pair-submit,.tarot-deep-btn{border-radius:10px!important;background:linear-gradient(110deg,#ad4a42,#c0674a)!important;color:#fff9ea!important;border:1px solid #bd8565!important;box-shadow:0 4px 0 #9b5847,0 6px 10px #974f381c;cursor:pointer}
.btn.secondary{background:#fff7ed!important;color:#755137!important;border-color:#d7b38f!important;box-shadow:none}
.member-required-note,.notice,.history-empty{background:#fff0da;color:#986f46;border-color:#edcfad;border-radius:8px}
.result-empty{background:radial-gradient(ellipse at center,#fff2df,#fffdf8 64%);border:1px dashed #e6c8a3;border-radius:13px;min-height:390px}.empty-mark{color:#c88f60}
.chart{border-color:#d9b898;border-radius:12px;overflow:hidden}.chart-col{border-color:#ead4be;background:#fffaf1}.hanzi{color:#6f3e2c}.branch{color:#bc7d4e}
.stat,.chip,.table-wrap,.pay-modal-dialog{background:#fff8eb;border-color:#e8ccaa}
th{background:#f9ebd9;color:#875e41}td{border-color:#edddc8}
.annual-paywall,.match-paywall,.wealth-paywall{border-color:#e3c19c!important;border-radius:16px;background:linear-gradient(160deg,#fff7e7,#fffdf8)}
.annual-banner,.match-paid-banner,.wealth-paid-banner{background:linear-gradient(90deg,#704737,#9f6d4e);color:#fff2d6}
.annual-unlock-card,.match-pay-card,.wealth-gate-card{background:linear-gradient(145deg,#fffef9,#fff1e2);border-color:#e3b98b}
.annual-purchase-btn,.match-buy,.wealth-purchase{background:linear-gradient(110deg,#a8453c,#c16b4c)!important;color:#fff7eb!important;border-radius:10px!important}
.auth-dialog,.life-dialog,.pay-modal-dialog,.match-modal-dialog,.wealth-modal-dialog{background:linear-gradient(145deg,#fffdfa,#fff0e3);border:2px solid #d9ab7b;border-radius:20px}
.top-daily:hover{color:#b54f44}.footer{border-top:2px solid #dbb286;background:linear-gradient(90deg,#583d38,#7b4d3a,#583d38);border-radius:14px;color:#ffe2b3;font-size:13px;margin:36px auto 0;padding:17px}.footer a{color:#fff4dc}
/* 二級頁和模組統一色系 */
.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero{background:radial-gradient(ellipse at 100% 2%,#f7d1ad,transparent 45%),linear-gradient(120deg,#fff0dd,#fff8ef)!important;border:2px solid #e5bc93!important;color:#693e2e!important;border-radius:20px!important;box-shadow:0 7px 24px #9c5c361a}
.match-hero h2,.wealth-hero h2,.wx-hero h2,.astro-page-copy h2,.meihua-hero h2,.tarot-hero h2{color:#63382a!important;text-shadow:none}
.match-hero p,.wealth-hero p,.wx-hero p,.astro-page-hero p,.meihua-hero p,.tarot-hero p{color:#906746!important}
.astro-page-symbol,.wx-hero-seal,.tarot-hero-sigil{color:#c68254!important}
.tarot-result-figure img{border-radius:12px}.tarot-result,.wx-personality{background:#fffaf2}
.astro-page-workspace{padding:15px}.meihua-layout,.wx-overview{min-width:0}
/* 每日運勢獨立頁 */
body:has(.wrap){max-width:1280px;margin:0 auto;padding:0 15px}
body:has(.wrap) .top{border-radius:0 0 14px 14px}
body:has(.wrap) .top a{color:#8b4d39;text-decoration:none;font-weight:700}
body:has(.wrap) .hero.cat-daily-hero{display:flex;align-items:center;gap:25px;min-height:250px;background:linear-gradient(120deg,#fff4e4,#f9dcc9)!important;border:2px solid #dfbb91;border-radius:18px;color:#6e392a;padding:8px 25px}
body:has(.wrap) .hero.cat-daily-hero img{width:200px;max-height:250px;object-fit:cover;border-radius:18px;mask-image:linear-gradient(90deg,#000 75%,transparent 100%)}
body:has(.wrap) .hero.cat-daily-hero h1{color:#6e392a;font-weight:800}
body:has(.wrap) .hero.cat-daily-hero p{color:#85634f}
body:has(.wrap) .wrap{max-width:1080px;margin:0 auto}
body:has(.wrap) .card{padding:24px;margin:20px 0}
body:has(.wrap) .btn{width:auto}
/* 尊重減少動畫 */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}
@media(max-width:1220px){.shell{padding:0 18px 45px}.fortune-tabs{gap:8px}.fortune-tabs .fortune-tab{min-height:110px}.fortune-tabs .fortune-tab strong{font-size:13px}.fortune-tabs .fortune-tab small{font-size:9px}.cat-hero{grid-template-columns:50% 50%!important}}
@media(max-width:900px){.cat-hero{grid-template-columns:1fr 1fr!important;min-height:410px!important;padding-right:15px!important}.cat-hero-art{min-height:340px}.cat-quick-form{grid-template-columns:94px 1fr;padding:32px 15px 15px}.cat-quick-form label{font-size:12px}.cat-hero h1{font-size:43px}.cat-hero-slogan{font-size:17px}.cat-home-extras{grid-template-columns:1fr}.layout{grid-template-columns:minmax(0,1fr)}.fortune-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.fortune-tabs .fortune-tab{min-height:100px}.fortune-tabs .fortune-tab span{font-size:27px}.fortune-tabs .fortune-tab strong{font-size:14px}.cat-daily-body img{height:200px}}
@media(max-width:620px){body::before,body::after{opacity:.09}.shell{padding:0 10px 32px}.top{padding:10px 4px 14px;align-items:center;gap:8px}.seal{width:44px;height:44px;font-size:26px}.brandname{font-size:21px}.brandname small{font-size:9px}.top-actions{gap:6px;max-width:59%}.top-daily{display:none}.auth-nav{gap:4px}.auth-nav button{padding:7px 8px;font-size:11px}.top-actions .life-edit{font-size:10px;padding:6px 7px}.cat-hero{display:flex!important;flex-direction:column;gap:0;margin-top:10px!important;padding:0 13px 22px!important;min-height:0!important;border-radius:20px!important}.cat-hero-art{min-height:0;height:220px;width:calc(100% + 26px);margin:0 -13px 0}.cat-hero-art img{height:100%;max-height:250px;object-fit:cover;object-position:50% 36%}.cat-hero-art::after{background:linear-gradient(to bottom,transparent 76%,#fff3e9 100%)}.cat-hero-copy{padding:0 2px}.cat-hero h1{font-size:39px;margin:2px 0}.cat-hero-slogan{font-size:18px}.cat-kicker{font-size:10px!important}.cat-hero-subtitle{font-size:11px!important;margin:5px auto 17px!important}.cat-quick-form{margin-top:21px;padding:30px 12px 14px;grid-template-columns:85px minmax(0,1fr);gap:7px}.cat-quick-ribbon{font-size:12px;padding:6px 19px;top:-15px}.cat-quick-form input,.cat-quick-form select{height:37px;font-size:13px}.cat-quick-submit{max-width:none;font-size:15px;padding:10px}.fortune-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important;margin:12px 0!important}.fortune-tabs .fortune-tab{min-height:93px!important;border-radius:15px!important;padding:7px 2px!important}.fortune-tabs .fortune-tab span{font-size:26px;margin:0}.fortune-tabs .fortune-tab strong{font-size:11px}.fortune-tabs .fortune-tab small{font-size:9px;white-space:normal}.cat-section-heading{padding:9px 11px}.cat-section-heading>span{font-size:14px}.cat-section-heading small{font-size:10px}.cat-home-extras{gap:10px;margin-bottom:14px}.cat-daily-body{grid-template-columns:40% 1fr;min-height:160px}.cat-daily-body img{height:165px}.cat-daily-content{padding:5px 6px}.cat-daily-content h2{font-size:18px;margin:5px 0}.cat-daily-content p{font-size:10px}.cat-gold-link{padding:7px 9px;font-size:10px;margin-top:2px}.cat-feature-cards{gap:5px;padding:8px;min-height:165px}.cat-feature-card img{height:95px}.cat-feature-card strong{font-size:12px}.cat-feature-card>span{font-size:9px}.layout{gap:12px;margin-top:13px}.panel{padding:15px}.panel h2{font-size:20px}.result-empty{min-height:220px}.footer{font-size:10px;padding:12px}body:has(.wrap) .hero.cat-daily-hero{padding:9px;gap:10px;min-height:175px}body:has(.wrap) .hero.cat-daily-hero img{width:118px;max-height:165px}body:has(.wrap) .hero.cat-daily-hero h1{font-size:25px}body:has(.wrap) .card{padding:15px}}
@media print{body{background:white!important}.cat-hero,.cat-home-extras,.fortune-tabs{display:none!important}.panel{background:white!important;box-shadow:none!important}.shell{max-width:none;padding:0}.footer{display:none!important}}

/* === 2026-11-05 使用者指定的第二輪貓咪介面強化 === */
html,body,.shell,.shell *{box-sizing:border-box}
.cat-hero-copy,.cat-quick-form,.cat-quick-form>*,.field,.field>*{min-width:0}
.cat-quick-form{width:100%}
.cat-quick-form input,.cat-quick-form select{max-width:100%}
.fortune-tabs .fortune-tab{gap:6px;padding:12px 8px!important}
.fortune-tabs .fortune-tab .fortune-tab-art{display:flex!important;align-items:center;justify-content:center;width:68px;height:68px;padding:0;margin:0 auto 2px;border-radius:22px;background:linear-gradient(145deg,#fff6ec,#ffe5d4);box-shadow:0 5px 12px #b9795f1d inset,0 4px 10px #9f654414;overflow:hidden;border:1px solid #efcfb5}
.fortune-tabs .fortune-tab .fortune-tab-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 28%}
.fortune-tabs .fortune-tab.is-selected .fortune-tab-art{background:linear-gradient(145deg,#fff8ee,#f7ddcf);border-color:#ffd1b1}
.fortune-tabs .fortune-tab strong{font-size:15px}
.fortune-tabs .fortune-tab small{font-size:10px;white-space:normal;text-align:center}
.cat-personal-banner,.cat-inline-hero-media{display:grid;grid-template-columns:minmax(0,160px) minmax(0,1fr);gap:16px;align-items:center;margin-top:18px;padding:14px;border-radius:18px;background:linear-gradient(135deg,#fff7ef,#ffefdf);border:1px solid #e8c7a4;box-shadow:0 8px 20px #9d6b4614}
.cat-personal-banner img,.cat-inline-hero-media img{width:100%;max-width:170px;aspect-ratio:4/5;object-fit:cover;object-position:center 25%;border-radius:18px;border:1px solid #edd0b7;box-shadow:0 6px 18px #8e5d3d1d}
.cat-personal-banner span,.cat-inline-hero-copy span{display:inline-block;margin-bottom:5px;font-size:12px;letter-spacing:.18em;color:#b17f59;font-weight:800}
.cat-personal-banner strong,.cat-inline-hero-copy strong{display:block;font:800 22px/1.4 "Noto Serif TC",serif;color:#683e2d}
.cat-personal-banner p,.cat-inline-hero-copy p{margin:8px 0 0;color:#8d6b57;line-height:1.8;font-size:13px}
.cat-hero-panel{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:16px;align-items:center}
.cat-share-btn{white-space:nowrap}
.cat-loading-open{overflow:hidden}
.cat-loading-overlay{position:fixed;inset:0;z-index:9999;background:#4f33254d;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:18px}
.cat-loading-overlay.hidden{display:none}
.cat-loading-card{width:min(92vw,460px);padding:22px 20px 18px;border-radius:28px;background:linear-gradient(160deg,#fffaf3,#ffe9dc);border:2px solid #e7c39b;box-shadow:0 24px 80px #57352242;text-align:center;color:#69402f}
.cat-loading-card strong{display:block;font:900 28px/1.4 "Noto Serif TC",serif;color:#6b3b2c;margin-top:12px}
.cat-loading-card p{margin:8px 0 0;color:#8c634d;line-height:1.8}
.cat-chase-scene{position:relative;height:154px;overflow:hidden;border-radius:24px;background:radial-gradient(circle at 50% 12%,#fffaf4 0%,#ffefe2 48%,#ffe4d2 100%);border:1px solid #f0ccb1}
.cat-chase-scene::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 16% 32%,rgba(201,168,152,.18) 0 2px,transparent 3px),radial-gradient(circle at 22% 38%,rgba(201,168,152,.15) 0 1.5px,transparent 2.5px),radial-gradient(circle at 18% 40%,rgba(201,168,152,.15) 0 1.5px,transparent 2.5px),radial-gradient(circle at 20% 44%,rgba(201,168,152,.15) 0 1.5px,transparent 2.5px),radial-gradient(circle at 74% 28%,rgba(201,168,152,.15) 0 2px,transparent 3px),radial-gradient(circle at 79% 34%,rgba(201,168,152,.15) 0 1.5px,transparent 2.5px),radial-gradient(circle at 76% 37%,rgba(201,168,152,.15) 0 1.5px,transparent 2.5px),radial-gradient(circle at 78% 42%,rgba(201,168,152,.15) 0 1.5px,transparent 2.5px);opacity:.7;pointer-events:none}
.cat-cloud{position:absolute;width:78px;height:24px;background:linear-gradient(180deg,#fffdf9,#ffe7da);border:1px solid #f0d5bf;border-radius:999px;box-shadow:0 4px 12px #f2cdb133}
.cat-cloud::before,.cat-cloud::after{content:"";position:absolute;background:inherit;border:inherit;border-radius:50%}
.cat-cloud::before{width:30px;height:30px;left:10px;top:-12px}
.cat-cloud::after{width:38px;height:38px;right:8px;top:-18px}
.cloud-a{left:34px;top:18px;transform:scale(.92)}
.cloud-b{right:42px;top:24px;transform:scale(.82)}
.cat-track{position:absolute;left:24px;right:24px;bottom:20px;height:52px;border:2px dashed #e6b58e;border-radius:999px;opacity:.8;background:linear-gradient(180deg,transparent 0 62%,rgba(255,245,236,.65) 62% 100%)}
.yarn-ball{position:absolute;right:42px;bottom:46px;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff2f7 0 18%,#f6bfd2 19% 42%,#d784a4 43% 100%);box-shadow:0 4px 8px #b06f8a30;border:1px solid #d18ba6;animation:yarnHop 1s ease-in-out infinite alternate}
.yarn-ball::before,.yarn-ball::after{content:"";position:absolute;inset:4px;border-top:1.6px solid rgba(255,255,255,.7);border-radius:50%}
.yarn-ball::after{inset:3px 6px;transform:rotate(90deg)}
.chaser{position:absolute;bottom:20px;width:96px;height:96px;pointer-events:none;display:flex;align-items:flex-end;justify-content:center}
.cat-one{left:8px;animation:catRunLead 2.5s linear infinite}
.cat-two{left:-12px;animation:catRunChase 2.5s linear infinite}
.paw{position:absolute;font-size:20px;opacity:.42;animation:pawFloat 2.4s ease-in-out infinite}
.paw-one{left:28%;top:26px}.paw-two{left:51%;top:84px;animation-delay:.4s}.paw-three{left:71%;top:36px;animation-delay:.8s}
@keyframes catRunLead{0%{transform:translate(0,0) scaleX(1)}10%{transform:translate(16px,-10px) scaleX(1)}24%{transform:translate(58px,0) scaleX(1)}36%{transform:translate(108px,-10px) scaleX(1)}50%{transform:translate(158px,0) scaleX(1)}64%{transform:translate(215px,-10px) scaleX(1)}78%{transform:translate(272px,0) scaleX(1)}90%{transform:translate(315px,-8px) scaleX(1)}100%{transform:translate(332px,0) scaleX(1)}}
@keyframes catRunChase{0%{transform:translate(0,6px) scaleX(1)}8%{transform:translate(8px,-4px) scaleX(1)}20%{transform:translate(36px,6px) scaleX(1)}34%{transform:translate(84px,-5px) scaleX(1)}48%{transform:translate(134px,6px) scaleX(1)}62%{transform:translate(192px,-5px) scaleX(1)}76%{transform:translate(250px,6px) scaleX(1)}90%{transform:translate(300px,-5px) scaleX(1)}100%{transform:translate(316px,4px) scaleX(1)}}
@keyframes yarnHop{0%{transform:translateY(0) rotate(0deg)}100%{transform:translateY(-6px) rotate(12deg)}}
@keyframes pawFloat{0%,100%{transform:translateY(0);opacity:.2}50%{transform:translateY(-8px);opacity:.55}}
@media(max-width:1050px){.cat-hero-panel{grid-template-columns:minmax(0,1fr)}.cat-inline-hero-media{margin-top:10px}}
@media(max-width:620px){.fortune-tabs .fortune-tab .fortune-tab-art{width:54px;height:54px;border-radius:18px}.fortune-tabs .fortune-tab strong{font-size:11px}.fortune-tabs .fortune-tab small{font-size:9px}.cat-personal-banner,.cat-inline-hero-media{grid-template-columns:92px minmax(0,1fr);gap:10px;padding:10px 11px;border-radius:16px}.cat-personal-banner img,.cat-inline-hero-media img{max-width:92px;border-radius:14px}.cat-personal-banner strong,.cat-inline-hero-copy strong{font-size:16px}.cat-personal-banner p,.cat-inline-hero-copy p{font-size:11px;line-height:1.65}.cat-quick-form{grid-template-columns:82px minmax(0,1fr)!important;width:100%}.cat-quick-form input,.cat-quick-form select{width:100%;max-width:100%}.cat-quick-ribbon{max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis}.cat-hero-copy{width:100%}.cat-hero{overflow:hidden}.cat-loading-card{padding:18px 14px}.cat-chase-scene{height:132px}.cat-track{left:16px;right:16px;bottom:18px;height:46px}.cat-cloud{transform:scale(.72)}.cloud-a{left:16px;top:20px}.cloud-b{right:20px;top:24px}.yarn-ball{right:28px;bottom:42px}.chaser{bottom:20px;width:78px;height:78px}#catQuickPlace{min-width:0}}
@media(max-width:420px){.fortune-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cat-quick-form{grid-template-columns:1fr!important}.cat-quick-form label{text-align:left}.cat-quick-ribbon{top:-14px}.cat-quick-submit{margin-top:2px}.cat-daily-body{grid-template-columns:1fr}.cat-daily-body img{width:100%;height:200px;border-radius:0 0 18px 18px;mask-image:none}}

.cat-one{color:#b57359}.cat-two{color:#6b57bf}

/* === 玄機閣貓咪精品卡與整站內頁 v3 === */
.fortune-tabs{gap:12px!important;margin:22px 0 20px!important;align-items:stretch!important}
.fortune-tabs .fortune-tab.cat-boutique-card{
  --card-ink:#724a37;--card-soft:#fff4e8;
  min-height:198px!important;padding:16px 8px 15px!important;gap:5px;
  border:2px solid #ebcaac!important;border-radius:28px!important;
  background:radial-gradient(ellipse at 50% -10%,#fffefd 0%,#fff4e9 60%,#fce5d7 100%)!important;
  box-shadow:0 8px 18px #aa78502a,0 0 0 4px #fffbf6 inset,0 3px 0 #edc7a3!important;
  color:var(--card-ink)!important; isolation:isolate;overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease,border-color .2s ease!important
}
.fortune-tabs .fortune-tab.cat-boutique-card::before{
  content:"✦";position:absolute;right:11px;top:8px;color:#cfa67f;font-size:14px;opacity:.6;pointer-events:none
}
.fortune-tabs .fortune-tab.cat-boutique-card::after{
  content:"";position:absolute;inset:10px;border:1px solid #efdcc7;border-radius:21px;pointer-events:none;opacity:.8
}
.fortune-tabs .fortune-tab.cat-boutique-card .fortune-tab-art{
  width:min(100%,116px)!important;height:116px!important;margin:2px auto 4px!important;
  border-radius:43% 43% 33% 33%!important;overflow:hidden;
  border:3px solid #fff8e9!important;outline:2px solid #dcb38d;
  background:linear-gradient(145deg,#fff2e6,#fae0d4)!important;
  box-shadow:0 8px 15px #80533724,0 0 0 1px #ebd0b0 inset!important;
  position:relative;z-index:1;flex-shrink:0
}
.fortune-tabs .fortune-tab.cat-boutique-card .fortune-tab-art img{
  width:100%;height:100%;object-fit:cover;object-position:center 26%;transform:scale(1.08);
  filter:saturate(.98);transition:transform .22s ease
}
.fortune-tabs .fortune-tab.cat-boutique-card strong{font-size:15px!important;line-height:1.45;z-index:1;color:#68412f!important}
.fortune-tabs .fortune-tab.cat-boutique-card small{font-size:10px!important;color:#b38b72!important;z-index:1}
.fortune-tabs .fortune-tab.cat-boutique-card:hover{
  transform:translateY(-5px);border-color:#d9aa86!important;box-shadow:0 15px 25px #aa785044,0 0 0 4px #fffbf6 inset!important
}
.fortune-tabs .fortune-tab.cat-boutique-card:hover img{transform:scale(1.15)}
.fortune-tabs .fortune-tab.cat-boutique-card.is-selected{
  background:linear-gradient(145deg,#af604c,#a4443b)!important;
  border-color:#d59b6c!important;box-shadow:0 12px 24px #7f403d56,0 0 0 4px #f3c89b44 inset!important;
  color:#fff8ed!important
}
.fortune-tabs .fortune-tab.cat-boutique-card.is-selected::after{border-color:#f2ca9f99}
.fortune-tabs .fortune-tab.cat-boutique-card.is-selected strong{color:#fff9e6!important}
.fortune-tabs .fortune-tab.cat-boutique-card.is-selected small{color:#ffe9cd!important}
.fortune-tabs .fortune-tab.cat-boutique-card.is-selected .fortune-tab-art{outline-color:#f3c68e}
.fortune-tabs .fortune-tab.cat-boutique-card:focus-visible{outline:3px solid #8f4c45!important;outline-offset:4px}
.fortune-tabs .fortune-tab.cat-boutique-wealth{--card-ink:#87602c}
.fortune-tabs .fortune-tab.cat-boutique-match{--card-ink:#a85e70}
.fortune-tabs .fortune-tab.cat-boutique-astro{--card-ink:#65528d}
.fortune-tabs .fortune-tab.cat-boutique-tarot{--card-ink:#895895}

/* 小幅裝飾，報告內的互動與舊資料容器不更動 */
.cat-decor{display:flex;align-items:center;gap:12px;min-width:0;flex-shrink:0}
.cat-decor img{display:block;width:78px;height:78px;object-fit:cover;object-position:center 23%;border-radius:23px;border:3px solid #fff9f0;outline:1px solid #d9aa87;box-shadow:0 7px 14px #98694d24;flex-shrink:0}
.cat-decor-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.cat-decor-copy>span{font:750 10px/1.4 "Noto Sans TC",sans-serif;letter-spacing:.13em;color:#b48261!important}
.cat-decor-copy>strong{font:800 17px/1.5 "Noto Serif TC",serif;color:#71432e!important;overflow-wrap:anywhere}
.cat-decor-strip{max-width:100%;padding:10px 13px;background:linear-gradient(105deg,#fff3e2,#fffaf2);border:1px solid #e9cfad;border-radius:20px}
.cat-decor-portrait{display:flex;flex-direction:column;align-items:center;max-width:120px;text-align:center;gap:7px}
.cat-decor-portrait img{width:100px;height:100px;border-radius:50%}
.cat-decor-portrait .cat-decor-copy>span{font-size:9px}
.cat-decor-portrait .cat-decor-copy>strong{font-size:11px;line-height:1.5}
.cat-decor-paywall{margin:0 auto 13px;justify-content:center;max-width:100%;gap:13px}
.cat-decor-paywall img{width:87px;height:87px;border-radius:28px}
.cat-decor-paywall .cat-decor-copy{text-align:left}
.cat-decor-paywall .cat-decor-copy>strong{font-size:15px}
.cat-decor-modal{justify-content:center;gap:10px;margin:0 auto 10px}
.cat-decor-modal img{width:62px;height:62px;border-radius:19px}
.cat-decor-modal .cat-decor-copy>strong{font-size:14px}
#result .result-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
#result .result-head>.cat-decor{margin-right:4px}
#result .result-head .btnrow{margin-left:auto;gap:8px;flex-wrap:wrap}
.ai-personal-panel .ai-general-actions{flex-wrap:wrap;gap:12px}
.ai-personal-panel .cat-decor{max-width:240px;margin-bottom:5px}
#annualPaywall .annual-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#annualPaywall .annual-heading>div:first-child{flex:1 1 260px;min-width:0}
#annualPaywall .annual-heading>.cat-decor{margin-left:auto}
#annualPaywall .annual-year-mark{display:none}
#annualGate .annual-unlock-card{border-radius:23px!important;box-shadow:0 18px 40px #83553a31!important}
#matchResult .match-results-heading{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
#matchResult .match-results-heading .cat-decor{margin:0 0 4px}
#matchPaywall .match-paid-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
#matchPaywall .match-paid-heading>.cat-decor{order:1;margin-left:auto}
#matchPaywall .match-paid-heading>h3{flex:1 1 240px}
#matchPaywall .match-paid-heading>p{flex:1 1 100%}
#matchPayGate .match-pay-card{border-radius:22px!important}
#wealthResults .wealth-result-title{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
#wealthPaywall .wealth-paid-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#wealthPaywall .wealth-paid-header>.cat-decor{order:2;margin-left:auto}
#wealthPaywall .wealth-paid-header>.wealth-paid-seal{display:none}
#wealthGate .wealth-gate-card{border-radius:22px!important}
#wuxingView .wx-overview .wx-section-title,#wxPairSection .wx-section-title{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#wuxingView .wx-overview .wx-section-title>.cat-decor,#wxPairSection .wx-section-title>.cat-decor{margin-left:auto}
#astroPanel .astro-heading{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;background:linear-gradient(110deg,#fff0dc,#fff9ef)!important}
#astroPanel .astro-heading>.astro-kicker,#astroPanel .astro-heading>h3,#astroPanel .astro-heading>p{width:calc(100% - 142px)}
#astroPanel .astro-heading>h3{color:#6f4334!important}
#astroPanel .astro-heading>.cat-decor{margin-left:auto;margin-top:-80px}
#meihuaResult>.cat-decor{margin-bottom:17px}
#tarotResultPanel .tarot-result-text>.cat-decor{max-width:100%;margin:0 0 16px}
#tarotView .tarot-deep-area>.cat-decor{margin-bottom:12px}
#aiQa .ai-qa-top>.cat-decor{margin-left:auto}
#result .card>.cat-decor{margin-bottom:15px}
#result .card>.cat-decor img{width:65px;height:65px}
#result .card>.cat-decor .cat-decor-copy strong{font-size:15px}

/* 三份付費詳批，依主題使用不同貓咪邊飾 */
#annualStage:has(#annualGate:not(.hidden)),.match-pay-stage:has(#matchPayGate:not(.hidden)),
.wealth-pay-stage:has(#wealthGate:not(.hidden)){min-height:505px}
#annualReport .zh-story-hero,#aiGeneralContent .zh-story-hero,#matchFullReport .zh-story-hero,#wealthFullReport .zh-story-hero,#wxDeepReport .zh-story-hero,#dailyAiReport .zh-story-hero{
  background:linear-gradient(120deg,#fff1df,#fff9ec)!important;border:2px solid #e0b98e;border-radius:22px;padding:26px 28px;color:#5d372b;
  box-shadow:0 7px 20px #8e634519;position:relative;overflow:hidden
}
.zh-story-hero .zh-story-eyebrow{color:#aa7158!important}
.zh-story-hero h3{color:#6b3f2e!important;position:relative;z-index:1}
.zh-story-hero .zh-story-verdict{color:#76543b!important;position:relative;z-index:1}
#annualReport .zh-story-hero:after,#aiGeneralContent .zh-story-hero:after,#matchFullReport .zh-story-hero:after,#wealthFullReport .zh-story-hero:after,#wxDeepReport .zh-story-hero:after{
  content:"";position:absolute;width:175px;height:190px;right:-17px;top:-45px;opacity:.13;background-size:cover;background-position:50% 28%;background-repeat:no-repeat;pointer-events:none
}
#annualReport .zh-story-hero:after,#aiGeneralContent .zh-story-hero:after{background-image:url('/assets/cat-theme/bazi-cat.webp')}
#matchFullReport .zh-story-hero:after{background-image:url('/assets/cat-theme/match-cat.webp')}
#wealthFullReport .zh-story-hero:after{background-image:url('/assets/cat-theme/wealth-cat.webp')}
#wxDeepReport .zh-story-hero:after{background-image:url('/assets/cat-theme/custom/wuxing-main-custom.webp')}
.zh-story-highlight,.zh-story-topic,.zh-story-month-card{border-radius:20px!important;border-color:#e9c9a8!important;background:#fffaf2!important}
.zh-story-topic-heading h4{color:#744635!important}
.zh-story-highlight strong:before{content:"✿ ";font-size:14px;color:#b97f61}
.zh-story-month-action{border-left-color:#c18d60!important}
#astroPanel .astro-sky{border-radius:18px!important;overflow:hidden}
#meihuaContent .mh-card{border-radius:18px!important}
#tarotView .tarot-result-figure img{border-radius:17px}
.cat-feature-card{border-radius:22px!important}
.cat-feature-card img{height:155px;object-fit:cover;object-position:50% 25%}
.cat-share-btn{border-radius:12px!important}

@media(max-width:1220px){
 .fortune-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .fortune-tabs .fortune-tab.cat-boutique-card{min-height:186px!important}
 .fortune-tabs .fortune-tab.cat-boutique-card .fortune-tab-art{width:105px!important;height:105px!important}
}
@media(max-width:800px){
 .fortune-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .cat-decor-portrait img{width:76px;height:76px}
 .cat-decor-portrait{max-width:93px}
 #astroPanel .astro-heading>h3,#astroPanel .astro-heading>p,#astroPanel .astro-heading>.astro-kicker{width:calc(100% - 111px)}
}
@media(max-width:620px){
 .fortune-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .fortune-tabs .fortune-tab.cat-boutique-card{min-height:172px!important;padding:11px 5px!important;border-radius:23px!important}
 .fortune-tabs .fortune-tab.cat-boutique-card .fortune-tab-art{height:102px!important;width:102px!important}
 .fortune-tabs .fortune-tab.cat-boutique-card strong{font-size:13px!important}
 .fortune-tabs .fortune-tab.cat-boutique-card small{font-size:10px!important}
 .cat-decor{gap:9px}
 .cat-decor img{width:64px;height:64px;border-radius:17px}
 .cat-decor-copy>strong{font-size:14px}
 .cat-decor-paywall img{width:65px;height:65px}
 .cat-decor-paywall .cat-decor-copy>strong{font-size:12px}
 .cat-decor-portrait img{width:70px;height:70px;border-radius:50%}
 .cat-decor-portrait{max-width:82px}
 .cat-decor-portrait .cat-decor-copy>strong{font-size:10px}
 #annualPaywall .annual-heading>.cat-decor{margin:0}
 #matchPaywall .match-paid-heading>.cat-decor{order:0;margin-left:0}
 #wealthPaywall .wealth-paid-header>.cat-decor{order:0;margin-left:0}
 #astroPanel .astro-heading>.cat-decor{margin-top:0}
 #astroPanel .astro-heading>h3,#astroPanel .astro-heading>p,#astroPanel .astro-heading>.astro-kicker{width:100%}
 #annualStage:has(#annualGate:not(.hidden)),.match-pay-stage:has(#matchPayGate:not(.hidden)),.wealth-pay-stage:has(#wealthGate:not(.hidden)){min-height:645px}
 .zh-story-hero{padding:20px 16px!important}
 #annualReport .zh-story-hero:after,#aiGeneralContent .zh-story-hero:after,#matchFullReport .zh-story-hero:after,#wealthFullReport .zh-story-hero:after,#wxDeepReport .zh-story-hero:after{width:95px;height:125px;opacity:.11}
 .cat-feature-card img{height:115px}
}
@media(prefers-reduced-motion:reduce){.fortune-tabs .fortune-tab.cat-boutique-card{transition:none!important}.fortune-tabs .fortune-tab.cat-boutique-card .fortune-tab-art img{transition:none!important}}
/* 追逐動畫改為兩隻靈貓沿著步道追逐玩耍 */
.chaser img{display:block;width:100%;height:auto;max-height:100%;object-fit:contain;object-position:center bottom;border:0;border-radius:0;box-shadow:none;background:transparent;filter:drop-shadow(0 8px 10px rgba(130,80,60,.22))}
.cat-two img{transform:scale(.94)}


/* v4 真正的逐格貓咪跑步動畫：腳步、跳躍、尾巴在 12 格中實際變化。 */
.cat-loading-card .cat-chase-scene.cat-chase-scene-animated{
  display:block;position:relative;width:100%;max-width:100%;height:auto!important;
  aspect-ratio:358 / 222;overflow:hidden;padding:0!important;
  border-radius:22px;border:1px solid #e5bda0;
  background:#ffebdf;box-shadow:inset 0 0 0 3px #fff8f180;
}
.cat-chase-scene-animated .cat-running-animation{
  display:block;width:100%;height:100%;aspect-ratio:358 / 222;
  object-fit:fill;object-position:center;
  border:0;outline:0;box-shadow:none;
}
@media (max-width:620px){
  .cat-loading-card .cat-chase-scene.cat-chase-scene-animated{height:auto!important}
}
@media (prefers-reduced-motion:reduce){
  /* 動畫持續由 GIF 控制；保持相同外觀，沒有額外位移或轉圈 CSS。 */
  .cat-chase-scene-animated .cat-running-animation{animation:none!important;transform:none!important}
}

/* SOURCE: cat-interior.css */
/* 玄機閣：七個分頁內頁貓主題、付費詳批卷軸、窄螢幕表單修正 */
:root{--cat-peach:#faecdc;--cat-cream:#fff9ef;--cat-frame:#deb88c;--cat-text:#754a34}

/* 所有命理內容：以紙張、花瓣、金線與小型貓像為主，減少干擾閱讀 */
.cat-themed-surface{position:relative;min-width:0;isolation:isolate}
.cat-themed-surface::before{content:'🐾';position:absolute;top:8px;right:14px;font-size:19px;color:#bf8866;opacity:.38;pointer-events:none;z-index:0}
.cat-themed-surface>*,.cat-themed-surface>form{position:relative;z-index:1}
.cat-themed-bazi{--cat-highlight:#ac8066}
.cat-themed-match{--cat-highlight:#bc7893}
.cat-themed-wealth{--cat-highlight:#ad8543}
.cat-themed-wuxing{--cat-highlight:#799c70}
.cat-themed-astro{--cat-highlight:#9180b9}
.cat-themed-meihua{--cat-highlight:#ab8261}
.cat-themed-tarot{--cat-highlight:#9173b1}
.cat-inner-ribbon{
  display:flex;align-items:center;gap:15px;min-width:0;max-width:100%;margin:0 0 20px;
  padding:12px 15px;border:1px solid #e4c29d;border-radius:18px;
  background:linear-gradient(110deg,#fff0e2 0%,#fffaf1 74%,#f5e8dc 100%);
  box-shadow:inset 0 0 0 3px #fffaf17d,0 5px 14px #82523610;
}
.cat-inner-ribbon img{display:block;width:80px;height:80px;flex:0 0 80px;object-fit:cover;object-position:center 26%;border-radius:50%;border:3px solid #fffaf1;outline:1px solid var(--cat-highlight,#c69d75);box-shadow:0 4px 11px #9c694224}
.cat-inner-ribbon>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.cat-inner-ribbon span{font:700 10px/1.5 'Noto Sans TC',sans-serif;letter-spacing:.16em;color:#af866b}
.cat-inner-ribbon strong{font:900 22px/1.45 'Noto Serif TC',serif;letter-spacing:.06em;color:#6b3f32}
.cat-inner-ribbon small{font:500 12px/1.75 'Noto Sans TC',sans-serif;color:#9d745c;white-space:normal}
.cat-themed-surface .field>label,.cat-themed-surface .form-label,.cat-themed-surface .wx-form-head{color:#85543d}
.cat-themed-surface .section>h3,
.cat-themed-surface .ai-report h4,
.cat-themed-surface .zh-story-topic-heading>h4,
.cat-themed-surface h3:not(.annual-heading h3){text-wrap:balance}
.cat-themed-surface .section>h3::before,.zh-story-topic-heading>h4::before{content:'✿';font-size:.8em;color:#c8946b;margin-right:6px;opacity:.8}
.cat-themed-surface .section,.cat-themed-surface .wx-card,.cat-themed-surface .tarot-meaning-card{border-color:#edceb0!important}

/* 華麗但輕量的貓咪解鎖卡，保持文字與按鈕可點擊 */
.cat-gilded-gate{position:relative;isolation:isolate;outline:3px double #ecd1ae;outline-offset:-8px;background:linear-gradient(160deg,#fff9f0,#fff3e2)!important;overflow:visible;min-width:0}
.cat-gilded-gate::before,.cat-gilded-gate::after{position:absolute;font-family:serif;color:#bf8b60;font-size:19px;z-index:0;pointer-events:none;line-height:1}
.cat-gilded-gate::before{content:'✿';top:16px;left:17px}
.cat-gilded-gate::after{content:'✿';bottom:15px;right:18px}
.cat-gilded-gate>*{position:relative;z-index:1}
.cat-gilded-gate button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
/* 三種付費報告標頭保留各自的貓咪肖像，正文換成宣紙式卡片 */
#annualPaywall,#matchPaywall,#wealthPaywall{background-image:radial-gradient(circle at 99% 2%,#edd3b542,transparent 35%)}
#annualReport .zh-story-topic,#matchFullReport .zh-story-topic,#wealthFullReport .zh-story-topic{
  background:linear-gradient(160deg,#fffdf6,#fff6ec)!important;
  border:1px solid #e7c7a5!important;border-radius:19px!important
}
#annualReport .zh-story-month-card,#matchFullReport .zh-story-month-card,#wealthFullReport .zh-story-month-card{background:#fff9ef!important}
#aiQa .ai-qa-top,#tarotResultPanel .tarot-result-text,.match-results-heading,.wealth-result-title{
  background-image:linear-gradient(115deg,#fff7ecdd,#f9e9d9a0);
  border-radius:18px;padding:12px 15px
}
/* 非阻擋性邊飾：所有內頁有細緻貓爪與花瓣意象 */
#personalView .panel,#matchView .match-form,#wealthView .wealth-input-card,#wuxingView .wx-overview,
#astroView .astro-page-workspace,#meihuaView .meihua-form,#tarotView .tarot-pick-panel{
  background-image:radial-gradient(circle at 98% 4%,#f5d5b54d,transparent 25%),linear-gradient(#fffdf8,#fff7ed)!important;
}
#matchView .match-form,#wealthView .wealth-input-card,#meihuaView .meihua-form,
#tarotView .tarot-pick-panel,#astroView .astro-page-workspace{
  border:1px solid #eac8a3!important;border-radius:19px!important;
  box-shadow:0 6px 18px #81583a15!important;
}
#tarotResultPanel .tarot-result-figure img{border:4px solid #fbead7;outline:1px solid #e0b58a;box-shadow:0 12px 25px #67462b28}

/* 重要：修正首頁出生年月日／時間 input 超出右側金色表單框。
   根因是多段 @media 規則疊加後，原生日期時間欄位仍保留 min-content 寬度。 */
html,body{max-width:100%;overflow-x:clip}
.shell,.hero.cat-hero,.cat-hero-copy,.cat-hero-art,.cat-quick-form,.cat-quick-form>*{box-sizing:border-box;min-width:0}
.hero.cat-hero .cat-hero-copy{min-width:0;width:100%;max-width:100%}
.hero.cat-hero .cat-quick-form{
  box-sizing:border-box;min-width:0;width:min(100%,510px);max-width:100%;
  grid-template-columns:minmax(0,115px) minmax(0,1fr);overflow:visible;
}
.hero.cat-hero .cat-quick-form>input,
.hero.cat-hero .cat-quick-form>select{
  box-sizing:border-box;display:block;min-width:0;width:100%;max-width:100%;
  margin:0;padding:0 10px;flex-shrink:1;-webkit-appearance:none;appearance:none;
}
.hero.cat-hero .cat-quick-form>input[type=date],
.hero.cat-hero .cat-quick-form>input[type=time]{min-width:0!important;max-width:100%!important;min-height:42px}
.hero.cat-hero .cat-quick-form>select{padding-right:20px}
.hero.cat-hero .cat-quick-submit{min-width:0;max-width:100%;white-space:normal}
.cat-quick-ribbon{max-width:calc(100% - 16px);box-sizing:border-box}
@media(max-width:620px){
  .shell{width:100%;max-width:100vw;padding-left:10px;padding-right:10px}
  .hero.cat-hero{width:100%;max-width:100%;overflow:hidden}
  .hero.cat-hero .cat-hero-copy{padding:0 2px;width:100%;max-width:100%}
  .hero.cat-hero .cat-quick-form{
    width:100%;min-width:0;max-width:100%;
    grid-template-columns:minmax(0,82px) minmax(0,1fr)!important;
    column-gap:7px;row-gap:10px;padding:35px 12px 13px;
  }
  .hero.cat-hero .cat-quick-form>label{font-size:11px;letter-spacing:0;overflow-wrap:anywhere;white-space:normal}
  .hero.cat-hero .cat-quick-form>label span{font-size:15px;margin-right:4px}
  .hero.cat-hero .cat-quick-form>input,
  .hero.cat-hero .cat-quick-form>select{font-size:13px;line-height:1.2}
  .cat-inner-ribbon{padding:11px 12px;gap:11px;margin-bottom:16px}
  .cat-inner-ribbon img{width:58px;height:58px;flex-basis:58px}
  .cat-inner-ribbon strong{font-size:17px}
  .cat-inner-ribbon small{font-size:11px}
  #aiQa .ai-qa-top,#tarotResultPanel .tarot-result-text{padding:9px 11px}
}
/* 特別窄的 iPhone 舊款／小型 Android：欄位整列顯示、完全避免原生日期控件撐寬 */
@media(max-width:400px){
  .hero.cat-hero{padding-left:12px!important;padding-right:12px!important}
  .hero.cat-hero .cat-hero-copy{padding:0!important}
  .hero.cat-hero .cat-quick-form{
    grid-template-columns:minmax(0,1fr)!important;
    padding:31px 13px 14px!important;
    gap:4px!important;
  }
  .hero.cat-hero .cat-quick-form>label{width:100%;margin:4px 0 0;text-align:left;font-size:12px}
  .hero.cat-hero .cat-quick-form>input,
  .hero.cat-hero .cat-quick-form>select{width:100%;min-width:0;max-width:100%;height:41px}
  .hero.cat-hero .cat-quick-submit{grid-column:1;margin-top:12px;width:100%;min-width:0}
  .hero.cat-hero .cat-quick-ribbon{font-size:11px;padding:6px 16px;white-space:nowrap;max-width:calc(100% - 24px)}
  .cat-inner-ribbon img{width:52px;height:52px;flex-basis:52px}
  .cat-inner-ribbon strong{font-size:16px}
  .cat-inner-ribbon small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.cat-inner-ribbon img{transition:none}}

/* --- richer inner cat backgrounds 20261105 --- */
.cat-themed-surface{overflow:hidden}
.cat-themed-surface::after{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.5;
  background-image:
    radial-gradient(circle at 8% 16%,rgba(255,255,255,.75) 0 18px,transparent 19px),
    radial-gradient(circle at 11% 14%,rgba(255,255,255,.75) 0 14px,transparent 15px),
    radial-gradient(circle at 14% 17%,rgba(255,255,255,.75) 0 12px,transparent 13px),
    radial-gradient(circle at 86% 12%,rgba(201,156,122,.18) 0 5px,transparent 6px),
    radial-gradient(circle at 89% 8%,rgba(201,156,122,.18) 0 4px,transparent 5px),
    radial-gradient(circle at 92% 12%,rgba(201,156,122,.18) 0 4px,transparent 5px),
    radial-gradient(circle at 89% 18%,rgba(201,156,122,.18) 0 10px,transparent 11px),
    linear-gradient(transparent 0 95%,rgba(227,202,171,.12) 100%);
}
.cat-themed-surface .panel,
.cat-themed-surface .match-form,
.cat-themed-surface .wealth-input-card,
.cat-themed-surface .wx-overview,
.cat-themed-surface .astro-page-workspace,
.cat-themed-surface .meihua-form,
.cat-themed-surface .tarot-pick-panel,
.cat-themed-surface .tarot-history-wrap,
.cat-themed-surface #tarotPremiumPanel,
.cat-themed-surface .ai-qa-top{
  position:relative;overflow:hidden;
}
.cat-themed-surface .panel::before,
.cat-themed-surface .match-form::before,
.cat-themed-surface .wealth-input-card::before,
.cat-themed-surface .wx-overview::before,
.cat-themed-surface .astro-page-workspace::before,
.cat-themed-surface .meihua-form::before,
.cat-themed-surface .tarot-pick-panel::before,
.cat-themed-surface .tarot-history-wrap::before,
.cat-themed-surface #tarotPremiumPanel::before,
.cat-themed-surface .ai-qa-top::before{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.36;
  background-image:
    url('/assets/cat-theme/cherry-corner.webp'),
    radial-gradient(circle at 94% 8%,rgba(203,164,129,.16) 0 4px,transparent 5px),
    radial-gradient(circle at 96% 4%,rgba(203,164,129,.16) 0 3px,transparent 4px),
    radial-gradient(circle at 91% 10%,rgba(203,164,129,.16) 0 3px,transparent 4px),
    radial-gradient(circle at 95% 14%,rgba(203,164,129,.16) 0 8px,transparent 9px);
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  background-size:150px auto,auto,auto,auto,auto;
  background-position:left bottom,94% 8%,96% 4%,91% 10%,95% 14%;
}
.cat-themed-bazi .panel,.cat-themed-match,.cat-themed-wealth,.cat-themed-wuxing,.cat-themed-astro,.cat-themed-meihua,.cat-themed-tarot{
  --cat-cloud-a:rgba(255,252,248,.88);
  --cat-cloud-b:rgba(248,225,205,.24);
}
.cat-themed-surface .panel,
.cat-themed-surface .match-form,
.cat-themed-surface .wealth-input-card,
.cat-themed-surface .wx-overview,
.cat-themed-surface .astro-page-workspace,
.cat-themed-surface .meihua-form,
.cat-themed-surface .tarot-pick-panel,
.cat-themed-surface .tarot-history-wrap,
.cat-themed-surface #tarotPremiumPanel,
.cat-themed-surface .ai-qa-top{
  background-image:
    radial-gradient(circle at 10% 10%,var(--cat-cloud-a) 0 28px,transparent 29px),
    radial-gradient(circle at 15% 8%,var(--cat-cloud-a) 0 22px,transparent 23px),
    radial-gradient(circle at 20% 11%,var(--cat-cloud-a) 0 19px,transparent 20px),
    radial-gradient(circle at 88% 88%,var(--cat-cloud-b) 0 60px,transparent 61px),
    linear-gradient(180deg,#fffdf8,#fff6ec)!important;
}
#aiQa .ai-qa-top,
#tarotResultPanel .tarot-result-text,
#meihuaResult,
#matchResult .match-results-heading,
#wealthResults .wealth-result-title{box-shadow:0 12px 28px rgba(130,91,64,.08)}
@media(max-width:620px){
  .cat-themed-surface .panel::before,
  .cat-themed-surface .match-form::before,
  .cat-themed-surface .wealth-input-card::before,
  .cat-themed-surface .wx-overview::before,
  .cat-themed-surface .astro-page-workspace::before,
  .cat-themed-surface .meihua-form::before,
  .cat-themed-surface .tarot-pick-panel::before,
  .cat-themed-surface .tarot-history-wrap::before,
  .cat-themed-surface #tarotPremiumPanel::before,
  .cat-themed-surface .ai-qa-top::before{background-size:100px auto,auto,auto,auto,auto;opacity:.28}
}

/* 玄機閣：各分頁使用淡雅祥雲＋貓掌，不覆蓋正文或表單 */
#personalView,#matchView,#wealthView,#wuxingView,#astroView,#meihuaView,#tarotView,#aiQa{
  background-image:url('/assets/cat-theme/cloud-paws.svg'),radial-gradient(ellipse at 98% 1%,rgba(246,213,201,.22),transparent 42%);
  background-size:min(900px,100%) auto,auto;
  background-position:top center,center;
  background-repeat:repeat-y,no-repeat;
}
#personalView .panel,#matchView .match-form,#wealthView .wealth-input-card,
#meihuaView .meihua-form,#tarotView .tarot-screen,#aiQa,
#astroView .astro-page-workspace,#wuxingView .wx-overview{
  background-image:url('/assets/cat-theme/cloud-paws.svg'),linear-gradient(150deg,#fffbf5,#fff1e9)!important;
  background-size:900px 380px,cover;background-position:top center,center;background-repeat:repeat-y,no-repeat;
  border:1px solid #e8c2a5!important;
  box-shadow:0 12px 30px #b77a6020,0 0 0 4px rgba(255,248,238,.66) inset!important;
}
.cat-inner-ribbon{position:relative;overflow:hidden;
  background-image:url('/assets/cat-theme/cloud-paws.svg'),linear-gradient(115deg,#fff0e7,#fffaf3 55%,#f9e8dc)!important;
  background-size:650px 275px,cover;background-position:center,center;
  border:1px solid #deaf89;box-shadow:0 7px 20px rgba(127,79,60,.12),inset 0 0 0 4px rgba(255,255,255,.6)
}
.cat-inner-ribbon::after{content:'✿  🐾  ✿';position:absolute;right:20px;bottom:6px;font-size:11px;letter-spacing:.18em;color:#c79689;opacity:.56;pointer-events:none}
.cat-inner-ribbon img{border-color:#fffbf1;outline:2px solid #d4a37d;box-shadow:0 5px 18px #9c665329}
#aiQa .ai-qa-top>.cat-decor{display:none} /* 避免上下重複兩個相同問答貓標頭 */
#tarotView .tarot-hero{background-image:url('/assets/cat-theme/cloud-paws.svg'),linear-gradient(125deg,#513b6c,#8e6c97)!important;background-size:900px 380px,cover;background-position:center}
#tarotView .tarot-hero h2,#tarotView .tarot-hero p{color:#fff7f4!important}
#tarotView .tarot-screen{padding-top:22px}
@media(max-width:620px){
  #personalView,#matchView,#wealthView,#wuxingView,#astroView,#meihuaView,#tarotView,#aiQa{background-size:600px auto,auto}
  .cat-inner-ribbon::after{right:8px;bottom:4px;font-size:9px}
  #tarotView .tarot-screen{padding:14px 10px!important}
}

/* SOURCE: miaoshuo-theme.css */
/* 喵說星語 · 連續花雲版 v2
   一張全站連續的星雲紋理，獨立的宣紙卡片。避免反覆裁切首頁示意截圖。
   不修改任何功能的貓咪插畫來源、會員、排盤、付費與塔羅資料。
*/
:root{
  --ink:#523650;--navy:#4e315c;--navy2:#78528a;
  --gold:#b98366;--gold2:#f0d7aa;--paper:#fff8f3;--white:#fffdf9;
  --muted:#8f6d81;--line:#e9c8b8;--cat-red:#a84659;--cat-rose:#eeb7cd;
  --ms-violet:#694576;--ms-rose:#b86c92;--ms-gold:#d5a06a;
}
html,body{max-width:100%;overflow-x:clip}
body{
  color:#593e57;
  background:
    url('/assets/cat-theme/starlit-floral-pattern.svg') center top/850px 680px repeat,
    radial-gradient(ellipse 58% 42% at 6% 13%,#f6cee2 0%,transparent 75%),
    radial-gradient(ellipse 54% 40% at 97% 30%,#ead7f4 0%,transparent 82%),
    linear-gradient(180deg,#fbe7f3,#ffefe7 49%,#f9e8f5 100%);
}
/* 舊版此處會顯示帶有書本文字的裁切圖片；取消它以免頁面邊緣斷裂 */
body::before,body::after{display:none!important}
.shell{
  position:relative;isolation:isolate;
  background:
    url('/assets/cat-theme/starlit-floral-pattern.svg') center top/850px 680px repeat,
    linear-gradient(180deg,rgba(255,244,251,.88),rgba(255,250,244,.85) 39%,rgba(254,242,250,.89));
  border-left:1px solid #edc4c2;border-right:1px solid #edc4c2;
  box-shadow:0 20px 85px #855b9033,0 0 0 7px #fffdfb63 inset;
  padding-bottom:70px;
}
.top{
  border:1px solid #e0b7b1;border-radius:0 0 25px 25px;
  background:linear-gradient(110deg,rgba(255,250,248,.97),rgba(253,231,245,.96) 65%,rgba(255,250,246,.96));
  box-shadow:0 8px 23px #83507421;min-height:82px;
}
.top::before{content:'✦　☾　✧';position:absolute;right:24%;top:6px;font-size:10px;color:#b990b5;opacity:.55;pointer-events:none}
.brandname,.top .brandname{color:#65396c!important;font-family:'Noto Serif TC','Songti TC',serif!important;text-shadow:0 1px 0 #fff8ed!important}
.brandname small{color:#9d7289!important}
.seal{font-size:0!important;background:url('/assets/tarot/back-miaoshuo.webp') center 60%/145% auto no-repeat,radial-gradient(circle,#ffebdc,#b47bba)!important;border:3px solid #d2a56c!important;outline:2px solid #fff7e7;box-shadow:0 0 0 4px #d2a1b744,0 5px 13px #8757832e!important}
.auth-nav-main,.auth-submit,.auth-nav-ghost{border-radius:999px!important;border:1px solid #dba77d!important;box-shadow:0 3px 0 #ac735a37,0 0 0 2px #fff9f1 inset!important}
.auth-nav-main,.auth-submit{background:linear-gradient(135deg,#7b4b90,#a96e9c)!important;color:#fffaf7!important}
.auth-nav-ghost{background:linear-gradient(135deg,#fff0f1,#fff8ed)!important;color:#754768!important}
.top-daily,.auth-greeting{color:#825a7b!important}
/* 主視覺使用原有貓咪主圖。背景只用連續色階，不使用局部宮闕圖片。 */
.hero.cat-hero{
  border:2px solid #e4b88c!important;border-radius:30px!important;
  background:
    radial-gradient(ellipse at 95% 16%,rgba(230,200,243,.72),transparent 55%),
    radial-gradient(ellipse at 20% 70%,rgba(255,225,205,.62),transparent 55%),
    linear-gradient(130deg,#fff0e7 0%,#fce6f0 48%,#f9e6fa 100%)!important;
  box-shadow:0 16px 35px #93648c26,0 0 0 5px #fffaf2 inset!important;
}
.hero.cat-hero::after{content:'';pointer-events:none;position:absolute;inset:auto 0 0 auto;width:42%;height:25%;background:linear-gradient(0deg,#fce8f584,transparent);z-index:0}
.cat-hero-art::after{background:linear-gradient(to right,transparent 70%,#fce8f0 100%),linear-gradient(to bottom,#f9e9ee88,transparent 13%,transparent 82%,#fce5ee 100%)}
.cat-hero h1{color:#68396e!important;text-shadow:2px 3px 0 #fff0da!important}
.cat-kicker,.cat-hero-slogan{color:#855280!important}
.cat-hero-subtitle{color:#896d82!important}
.cat-quick-form{
  border:2px solid #dca986!important;border-radius:22px!important;
  background:linear-gradient(138deg,#fffdf8f5,#fff0f6f8 78%,#ffedf8fa)!important;
  box-shadow:0 12px 29px #8a63832a,inset 0 0 0 4px #fff9ed!important;
}
.cat-quick-ribbon,.cat-section-heading{
  color:#fff5df!important;
  background:linear-gradient(110deg,#693c7a,#8b578f 52%,#633975)!important;
  border:2px solid #d8ae7c!important;
  box-shadow:0 3px 0 #caa476,0 6px 16px #784d7c30!important;
  text-shadow:0 1px 2px #53385e!important;
}
.cat-quick-form input,.cat-quick-form select{max-width:100%;min-width:0;border-color:#dfb8b6!important;border-radius:12px!important;background:#fffcf9!important;color:#5d455a!important}
.cat-quick-submit,.cat-gold-link,.btn:not(.alt):not(.secondary),.tarot-purchase,.tarot-deep-btn,.ai-start-btn,.wealth-purchase,.match-purchase{
  border:2px solid #edbe86!important;border-radius:999px!important;
  background:linear-gradient(180deg,#bd5c74,#a44158)!important;
  color:#fff8ec!important;box-shadow:0 4px 0 #8d4d61,0 7px 16px #8a5b772e!important;
  text-shadow:0 1px 1px #733d53!important;
}
button:active{transform:translateY(2px)!important}
/* 原本七個功能肖像不替換，只調整卡片外框 */
.fortune-tabs .fortune-tab.cat-boutique-card{
  background:linear-gradient(155deg,rgba(255,254,250,.98),rgba(251,231,244,.97))!important;
  border:2px solid #e5bca4!important;border-radius:25px!important;
  box-shadow:0 9px 17px #92627f28,0 0 0 4px #fffcf6 inset!important;
}
.fortune-tabs .fortune-tab.cat-boutique-card.is-selected{
  background:linear-gradient(155deg,#774984,#9c5d92)!important;
  border-color:#d9aa83!important;
}
.fortune-tabs .fortune-tab.cat-boutique-card .fortune-tab-art{outline-color:#d9af8d!important}
.fortune-tabs .fortune-tab.cat-boutique-card:before{content:'✧'!important;color:#c68faf!important}
.cat-home-extras{position:relative}
.cat-daily-feature,.cat-feature-panel,.cat-feature-card{
  border-color:#e3bfae!important;
  background:linear-gradient(145deg,#fffdf8f7,#fceaf5f8)!important;
  box-shadow:0 8px 19px #976c8725!important;
}
.cat-home-extras::after{content:'✦　🐾　☾　✧　🐾　✦';position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);font-size:11px;color:#ba8aab;white-space:nowrap;pointer-events:none}
/* 修正關鍵：所有功能的外部區塊只顯示相同背景，不再各自放建築截圖 */
:is(#personalView,#matchView,#wealthView,#wuxingView,#astroView,#meihuaView,#tarotView){
  position:relative;min-width:0;
  background:transparent!important;
  border:1px solid rgba(225,179,180,.7)!important;
  border-radius:25px!important;
  padding:clamp(12px,2vw,22px);
  box-shadow:0 9px 22px #825b7915,inset 0 0 0 4px rgba(255,251,248,.5);
}
:is(#personalView,#matchView,#wealthView,#wuxingView,#astroView,#meihuaView,#tarotView)::after{content:none!important}
:is(#matchView,#wealthView,#wuxingView,#astroView,#meihuaView,#tarotView){margin-top:20px}
.cat-themed-surface::after{display:none!important}
/* 同樣移除原本每張卡片左下角的書本裁圖，不讓卡片圖案互相干擾 */
.cat-themed-surface .panel::before,.cat-themed-surface .match-form::before,
.cat-themed-surface .wealth-input-card::before,.cat-themed-surface .wx-overview::before,
.cat-themed-surface .astro-page-workspace::before,.cat-themed-surface .meihua-form::before,
.cat-themed-surface .tarot-pick-panel::before,.cat-themed-surface .tarot-history-wrap::before,
.cat-themed-surface #tarotPremiumPanel::before,.cat-themed-surface .ai-qa-top::before{
  display:none!important;
}
/* 重新整理內頁的標題橫幅：小朵星雲點綴，不含硬裁切圖 */
:is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero){
  position:relative;min-width:0;
  background:
    url('/assets/cat-theme/starlit-floral-pattern.svg') center center/620px 495px repeat,
    linear-gradient(112deg,#fff6f1,#f9e9f6)!important;
  border:2px solid #e3bd9f!important;border-radius:23px!important;
  box-shadow:0 8px 17px #96688823,inset 0 0 0 3px #fff9f2!important;
  color:#6c4668!important;
}
:is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero)::before{
  content:'✦　❀　🐾';position:absolute;right:14px;top:9px;
  color:#d1a0b9;opacity:.55;font-size:11px;pointer-events:none;
}
:is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero) h2,
:is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero) h3{color:#6a3c6d!important}
:is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero) p{color:#896d85!important}
.cat-inner-ribbon,.cat-personal-banner,.cat-inline-hero-media,.cat-decor-strip{
  position:relative;min-width:0;
  background:linear-gradient(118deg,#fff8f2,#fce9f5 79%,#fffaf6)!important;
  border:1.5px solid #e8bd9d!important;border-radius:21px!important;
  box-shadow:0 6px 18px #9267811b,inset 0 0 0 3px #fffaf4!important;
}
.cat-inner-ribbon::after{opacity:.23;pointer-events:none}
.cat-inner-ribbon strong,.cat-decor-copy>strong{color:#784873!important}
.cat-inner-ribbon span,.cat-decor-copy>span{color:#ad7699!important}
/* 卡片為清晰宣紙，而不是含有宮殿拼貼的背景 */
:is(.panel,.match-form,.match-result,.wealth-input-card,.wealth-results,.wx-overview,.wx-pair,
.astro-page-workspace,.meihua-form,.meihua-results,.tarot-screen,.tarot-result,
.tarot-history-wrap,.history-panel,.ai-qa,.card){
  background:linear-gradient(152deg,rgba(255,253,249,.98),rgba(255,246,251,.98))!important;
  border:1.5px solid #e5c4b3!important;border-radius:21px!important;
  box-shadow:0 7px 19px #95698017,inset 0 0 0 3px #fffcf6!important;
  min-width:0;
}
.cat-themed-surface .panel,.cat-themed-surface .match-form,.cat-themed-surface .wealth-input-card,
.cat-themed-surface .wx-overview,.cat-themed-surface .astro-page-workspace,
.cat-themed-surface .meihua-form,.cat-themed-surface .tarot-pick-panel{
  background:linear-gradient(152deg,rgba(255,253,249,.98),rgba(255,245,251,.97))!important;
  background-image:none!important;
}
#personalView .result-empty{
  min-height:305px;border-radius:17px;
  background:
    url('/assets/cat-theme/starlit-floral-pattern.svg') center/680px 544px repeat,
    linear-gradient(145deg,#fffdfa,#fef2f8)!important;
  border:1px dashed #dfb9b1;
}
#personalView .empty-mark{color:#c6a084!important}
:is(#aiQa .ai-qa-top,#tarotResultPanel .tarot-result-text,.match-results-heading,.wealth-result-title){
  background:linear-gradient(105deg,#fffaf6,#f8e9f5)!important;border-radius:18px;
}
/* 付費牆、報告標題、塔羅卡：花邊與正文分離 */
:is(.annual-paywall,.match-paywall,.wealth-paywall){border-color:#e5bfa6!important;border-radius:20px!important}
:is(.annual-unlock-card,.match-pay-card,.wealth-gate-card){background:linear-gradient(145deg,#fffdf9,#fff0f7)!important;border-color:#e5bb9a!important;border-radius:22px!important}
:is(.annual-banner,.match-paid-banner,.wealth-paid-banner){background:linear-gradient(90deg,#754a7b,#9f6391)!important;color:#fff3da!important}
:is(#annualReport .zh-story-hero,#matchFullReport .zh-story-hero,#wealthFullReport .zh-story-hero,#wxDeepReport .zh-story-hero){background:linear-gradient(115deg,#fffcf6,#f8e8f5)!important}
.tarot-result-figure img,.tarot-pick img{border-radius:16px!important}
#tarotView .tarot-result-text,#tarotPremiumPanel,#tarotView .tarot-deep-area{background:linear-gradient(130deg,#fff9f4,#f8ebf6)!important;border:1px solid #e9c3b5!important}
/* 分享預覽與按鈕 */
.cat-share-preview-panel{border:2px solid #e6b391!important;background:linear-gradient(155deg,#fffaf6,#f9e6f5)!important}
.cat-share-preview-top strong{color:#704472!important}
.cat-share-download{background:linear-gradient(110deg,#71457f,#94619b)!important;color:#fff9f4!important;border-radius:999px!important}
#catShareNative{background:linear-gradient(120deg,#fff3f4,#fce3f2)!important;color:#744675!important;border-radius:999px!important}
.footer{position:relative;background:linear-gradient(90deg,#5f416b,#7f517b,#5f416b)!important;color:#fdf0da!important;border:1px solid #d7b28e;border-radius:17px;margin-top:30px;padding:20px}
.footer a{color:#fff6e7!important}
/* 每日運勢獨立頁：同樣使用連續底紋而不是獨立截圖 */
body:has(.wrap) .hero.cat-daily-hero{
  background:
    url('/assets/cat-theme/starlit-floral-pattern.svg') center/660px 528px repeat,
    linear-gradient(120deg,#fff3e9,#f8e1f3)!important;
  border:2px solid #e1b99e!important;color:#74476e!important;
}
body:has(.wrap) .hero.cat-daily-hero h1{color:#714375!important}
body:has(.wrap) .hero.cat-daily-hero p{color:#896d83!important}
/* 內容流與尺寸完整性 */
.shell,.shell *{box-sizing:border-box}
:where(.panel,.match-form,.wealth-input-card,.wx-overview,.astro-page-workspace,.meihua-form,.tarot-screen) {overflow-wrap:break-word}
@media(max-width:900px){
 .top::before{display:none}
 .shell{padding-left:12px;padding-right:12px}
}
@media(max-width:620px){
 .shell{padding-left:9px;padding-right:9px;padding-bottom:55px}
 .top{padding:9px 8px;border-radius:0 0 19px 19px;gap:8px}
 .brandname{font-size:21px!important;letter-spacing:.05em!important}
 .brandname small{font-size:9px!important}
 .seal{width:43px!important;height:43px!important}
 .top-actions{gap:5px!important}
 .auth-nav button{padding:7px 9px!important;font-size:11px!important}
 .hero.cat-hero{border-radius:23px!important;padding:0 12px 19px!important;overflow:hidden}
 .hero.cat-hero .cat-hero-art::after{background:linear-gradient(to bottom,transparent 74%,#fce9f2 100%)}
 .hero.cat-hero .cat-quick-form{min-width:0;max-width:100%;overflow:visible}
 :is(#personalView,#matchView,#wealthView,#wuxingView,#astroView,#meihuaView,#tarotView){padding:9px;border-radius:18px!important}
 :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero){border-radius:17px!important;padding:15px 11px!important}
 :is(.panel,.match-form,.match-result,.wealth-input-card,.wealth-results,.wx-overview,.wx-pair,
 .astro-page-workspace,.meihua-form,.meihua-results,.tarot-screen,.tarot-result,.tarot-history-wrap,.card){border-radius:16px!important}
 #personalView .result-empty{min-height:210px}
}
@media(max-width:400px){.hero.cat-hero .cat-quick-form{grid-template-columns:1fr!important}}
@media print{.shell{background:#fff!important}.footer{display:none!important}}
/* 統一較高優先度的舊版深色塔羅標頭，避免低對比文字與另一套背景打架。 */
#tarotView .tarot-hero{
  background:
    url('/assets/cat-theme/starlit-floral-pattern.svg') center center/620px 495px repeat,
    linear-gradient(112deg,#fff5f3,#f9e8f6)!important;
  border:2px solid #e3bd9f!important;color:#6c4668!important;
}
#tarotView .tarot-hero h2,
#tarotView .tarot-hero p,
#tarotView .tarot-hero .tarot-kicker,
#tarotView .tarot-hero .tarot-meta-line{color:#734b70!important}
#tarotView .tarot-hero .cat-inline-hero-media p{color:#896d85!important}
#tarotView .tarot-hero::after{opacity:.20!important}
/* 男女合盤原本直接子元件被 CSS grid 分散到兩欄，造成標題在右、圖片在左且大片空白。 */
#matchView .match-hero.cat-hero-panel{
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;
  gap:7px;text-align:center;padding:20px 24px!important;
}
#matchView .match-hero .cat-inline-hero-media{
  width:min(100%,625px);max-width:625px;align-self:center;
  display:grid;grid-template-columns:minmax(0,140px) minmax(0,1fr);
  margin:11px auto 0;text-align:left;
}
#matchView .match-hero .cat-inline-hero-media img{max-width:135px;aspect-ratio:1/1;object-fit:cover}
#matchView .match-hero .match-hero-script{z-index:0;opacity:.025}
#matchView .match-hero>h2,#matchView .match-hero>p{position:relative;z-index:1}
@media(max-width:620px){
 #matchView .match-hero.cat-hero-panel{padding:17px 12px!important}
 #matchView .match-hero .cat-inline-hero-media{grid-template-columns:88px minmax(0,1fr);gap:11px;margin:10px auto 0}
 #matchView .match-hero .cat-inline-hero-media img{max-width:85px}
}

/* SOURCE: celestial-palace.css */
/* 靈喵觀星閣 · 櫻月仙宮。 Original art is used directly; atlas crops are CSS only. */
:root{--lm-ink:#57394d;--lm-purple:#765279;--lm-gold:#bf8748;--lm-paper:#fff6e9;--lm-line:#d7b17a;--lm-scene:url('/assets/celestial/palace-background-v82.webp');--lm-atlas:url('/assets/celestial/floral-atlas-v82.webp');--lm-moon:url('/assets/celestial/moon-atlas-v82.webp')}
html{background:#f6e5dc!important;scroll-behavior:smooth;scroll-padding-top:100px}
html body.celestial-palace{background:var(--lm-scene) center top / 100% auto repeat-y!important;color:var(--lm-ink);font-family:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;line-height:1.75;margin:0;min-height:100vh}
body.celestial-palace::before,body.celestial-palace::after{display:none!important}
body.celestial-palace *{box-sizing:border-box}
body.celestial-palace .shell{width:min(1180px,calc(100% - 64px));max-width:1180px;margin:24px auto 0;padding:0 24px;background:rgba(255,248,233,.44)!important;border:1px solid #e3c6a0;border-radius:28px 28px 0 0;box-shadow:0 12px 70px #6d496124}
body.celestial-palace :is(h1,h2,h3,h4,.brandname){font-family:'Noto Serif TC','Songti TC','PMingLiU',serif;color:var(--lm-ink)}
body.celestial-palace :is(p,small){text-wrap:pretty}
body.celestial-palace :is(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
body.celestial-palace button{cursor:pointer;transition:transform .18s,box-shadow .18s,filter .18s}
body.celestial-palace button:active{transform:translateY(2px) scale(.985)!important;filter:brightness(.94)}
body.celestial-palace :is(button,a,input,select,textarea):focus-visible{outline:3px solid #90609e!important;outline-offset:4px}
body.celestial-palace :is(button:disabled,[aria-disabled=true]){cursor:not-allowed;opacity:.55}
body.celestial-palace :is(.top,header.top#catTop){position:relative;top:auto;min-height:88px;margin:0 -24px 20px;padding:15px 28px;background:linear-gradient(90deg,#fff7e6e8,#fff1e7df),var(--lm-scene) center 15% / cover!important;border:0;border-bottom:3px double var(--lm-line);border-radius:28px 28px 0 0;box-shadow:0 4px 20px #9a685520!important;gap:16px}
body.celestial-palace .top::before{content:'✧';right:48%;top:25px;font-size:23px;color:#b68b53}
body.celestial-palace .brandname{font-size:23px!important;letter-spacing:.13em}
body.celestial-palace .brandname small{font-size:10px!important;letter-spacing:.16em;color:#96765d!important}
body.celestial-palace .seal{width:46px;height:46px;background:var(--lm-atlas) 51% 4% / 560% auto!important;border:2px solid #c69a5d!important;box-shadow:0 0 0 3px #fff9df,0 0 0 4px #d8bb8e!important}
body.celestial-palace .top-actions{gap:12px;flex-wrap:wrap;justify-content:flex-end}
body.celestial-palace :is(.auth-nav-main,.auth-submit){background:linear-gradient(115deg,#72517e,#a87794)!important;border:1px solid #bb925d!important;color:#fff8e8!important}
body.celestial-palace :is(.auth-nav-ghost,.top-daily,.life-edit){background:#fff8ebd9!important;border:1px solid #d4b48a!important;border-radius:999px;color:#795369!important;padding:7px 15px}
/* Hero: original illustrated upper strip, then a real editable plaque and form. */
body.celestial-palace .hero.cat-hero#homeHero{display:block!important;position:relative;margin:0 0 28px;padding:0 24px 30px!important;border:1px solid #d8b17d!important;border-radius:130px 130px 22px 22px!important;background:linear-gradient(180deg,#fff4e100,#fff5e5dd 57%,#fff5e8ed),var(--lm-scene) center 35% / cover!important;overflow:hidden;min-height:0!important;box-shadow:0 0 0 5px #fff4e48c,0 0 0 6px #dabc933d,0 12px 28px #80506e1c!important}
body.celestial-palace #homeHero::before,body.celestial-palace #homeHero::after{content:none!important}
body.celestial-palace #homeHero .cat-hero-art{position:relative!important;inset:auto!important;margin:0 -24px;width:calc(100% + 48px)!important;height:auto!important;aspect-ratio:1423/332;background:var(--lm-atlas) center top / 100% auto no-repeat!important;transform:none!important;mask-image:linear-gradient(#000 85%,transparent)}
body.celestial-palace #homeHero .cat-hero-art::after{content:none!important}
body.celestial-palace #homeHero .cat-hero-copy{position:relative!important;display:block!important;margin:-12px auto 0!important;padding:0!important;width:100%!important;max-width:880px!important;text-align:center;background:none!important}
body.celestial-palace #homeHero .cat-hero-copy::before{content:none!important}
body.celestial-palace #homeHero .cat-kicker{display:block!important;font-size:12px;letter-spacing:.22em;margin:8px 0 4px;color:#9b744d!important}
body.celestial-palace #homeHero h1#catHeroTitle{display:flex!important;align-items:center;justify-content:center;width:440px!important;max-width:100%!important;height:104px!important;margin:0 auto!important;padding:0 40px!important;background:var(--lm-atlas) 82.15% 39.75% / 355.75% auto no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;filter:none!important;color:#6f466d!important;font:900 43px/1.3 'Noto Serif TC','PMingLiU',serif!important;letter-spacing:.1em!important;text-shadow:0 2px #fff7e3!important;white-space:nowrap}
body.celestial-palace #homeHero h1::before,body.celestial-palace #homeHero h1::after{content:none!important}
body.celestial-palace #homeHero .cat-hero-slogan{font-size:20px!important;letter-spacing:.3em!important;color:#805c79!important;margin:8px 0 4px!important}
body.celestial-palace #homeHero .cat-hero-subtitle{font-size:13px!important;color:#816757!important;margin:5px 0 30px!important}
body.celestial-palace #homeHero .cat-quick-form{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;position:relative;max-width:790px!important;width:100%!important;margin:0 auto!important;padding:38px 24px 22px!important;background:linear-gradient(140deg,#fffaf2eb,#fff0deea)!important;border:3px double #c89d65!important;outline:1px solid #fffaf0;outline-offset:-8px;border-radius:18px!important;box-shadow:0 8px 20px #8e5e5120!important;text-align:left}
body.celestial-palace #homeHero .cat-quick-form::before,body.celestial-palace #homeHero .cat-quick-form::after{content:none!important}
body.celestial-palace #homeHero .cat-quick-ribbon{position:absolute;top:-16px!important;left:50%!important;transform:translateX(-50%);width:220px!important;text-align:center;border:1px solid #d0a367!important;border-radius:999px!important;background:linear-gradient(100deg,#78618c,#9b7297,#78618c)!important;color:#fff5dc!important;padding:5px 16px!important;font-size:14px!important;letter-spacing:.14em;box-shadow:0 0 0 3px #fff2dc!important}
body.celestial-palace #homeHero .cat-quick-field{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;min-width:0}
body.celestial-palace #homeHero .cat-quick-field>label{display:flex!important;width:auto!important;height:auto!important;gap:6px!important;font-size:13px!important;padding:0!important;white-space:nowrap;color:#76543c!important}
body.celestial-palace #homeHero .cat-quick-field>label>span{display:grid!important;place-items:center;width:25px!important;height:25px!important;background:#fae9cf!important;border:1px solid #d4ad73;border-radius:50%}
body.celestial-palace #homeHero .cat-quick-field label svg{width:16px;height:16px}
body.celestial-palace #homeHero .cat-native-input{display:block!important;position:relative;height:46px!important}
body.celestial-palace #homeHero .cat-native-hint{display:none!important}
body.celestial-palace #homeHero .cat-native-input input::-webkit-datetime-edit{color:#684955!important}
body.celestial-palace #homeHero .cat-quick-submit{grid-column:1/-1!important;justify-self:center;width:min(100%,390px)!important;margin:2px 0 0!important;height:52px!important;font-size:18px!important;letter-spacing:.2em;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:9px!important}
body.celestial-palace #homeHero .lm-reader{position:absolute;right:8px;top:-69px;width:90px;pointer-events:none}
/* Reusable atlas details; no raster resampling, painted labels, or screenshot controls. */
.lm-sprite{display:block;flex:none;background-repeat:no-repeat;pointer-events:none}
.lm-reader{aspect-ratio:400/315;background-image:var(--lm-atlas);background-size:355.75% auto;background-position:60.6% 100%;mask-image:radial-gradient(ellipse at center,#000 57%,transparent 73%)}
.lm-oracle{aspect-ratio:410/350;background-image:var(--lm-atlas);background-size:347.07% auto;background-position:0 100%;mask-image:radial-gradient(ellipse at center,#000 56%,transparent 73%)}
body.celestial-palace .lm-section-title{text-align:center;margin:28px auto 17px;position:relative}
.lm-section-title span{display:block;font:700 25px/1.5 'PMingLiU',serif;color:#70496c;letter-spacing:.24em}
.lm-section-title span::before,.lm-section-title span::after{content:' ✦ ';color:#c49757;font-size:15px}
.lm-section-title small{display:block;font-size:12px;letter-spacing:.1em;color:#8d735d}
body.celestial-palace .fortune-tabs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:13px!important;padding:8px 0 24px!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}
body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card{position:relative;display:flex!important;flex-direction:column;align-items:center;gap:3px;min-width:0!important;min-height:0!important;padding:9px 3px 14px!important;background:linear-gradient(160deg,#fff9edeb,#f5dfd5dc)!important;border:1px solid #cead7d!important;border-radius:70px 70px 12px 12px!important;box-shadow:0 4px 0 #a5785324,inset 0 0 0 4px #fff5e6!important;overflow:visible}
body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card::before{content:'✧'!important;position:absolute;top:6px;left:8px;color:#a1743f!important;font-size:15px}
body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card::after{content:none!important}
body.celestial-palace .fortune-tabs .fortune-tab .fortune-tab-art{width:100%!important;max-width:110px;height:auto!important;aspect-ratio:1;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;border-radius:50%!important;overflow:hidden;margin:0 auto 3px!important}
body.celestial-palace .fortune-tab-art img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}
body.celestial-palace .fortune-tabs .fortune-tab strong{font:700 15px/1.6 'PMingLiU',serif!important;color:#66415e!important;white-space:nowrap;letter-spacing:.08em}
body.celestial-palace .fortune-tabs .fortune-tab small{font-size:10px!important;letter-spacing:.08em;color:#927151!important}
body.celestial-palace .fortune-tabs .fortune-tab.is-selected{background:linear-gradient(145deg,#f7e6ee,#dfc9e0)!important;border-color:#9573a2!important;box-shadow:0 5px 0 #986d9840,inset 0 0 0 4px #fff1df!important;transform:translateY(-4px)}
@media(hover:hover){body.celestial-palace .fortune-tabs .fortune-tab:hover{transform:translateY(-5px);filter:brightness(1.04)}}
/* Gold double-line frames, illustrated corners, and restrained paper behind copy. */
body.celestial-palace :is(.panel,.match-form,.match-empty,.match-results,.wealth-input-card,.wealth-empty,.wealth-results,.wx-overview,.wx-card,.wx-pair-section,.astro-page-workspace,.astro-panel,.meihua-form,.meihua-results,.tarot-screen,.tarot-result,.tarot-history-wrap,.history-panel,.ai-qa,.card,.cat-daily-feature,.cat-feature-panel){position:relative;border:3px double #cda16b!important;outline:1px solid #fff9ec;outline-offset:-8px;border-radius:20px 6px 20px 6px!important;background:linear-gradient(130deg,#fff9edee,#fff5e9ef),var(--lm-scene) center / cover!important;box-shadow:0 7px 22px #8555681a,0 0 0 4px #fff6e354!important;color:#5d4552!important;isolation:isolate}
body.celestial-palace :is(.panel,.match-form,.wealth-input-card,.wx-overview,.astro-page-workspace,.meihua-form,.tarot-screen,.card,.ai-qa)::before{content:''!important;position:absolute!important;inset:5px auto auto 5px!important;width:49px!important;height:49px!important;border:0!important;background:url('/assets/cat-theme/cherry-corner.webp') center/contain no-repeat!important;opacity:.75!important;pointer-events:none!important;z-index:0!important}
body.celestial-palace :is(.panel,.match-form,.wealth-input-card,.wx-overview,.astro-page-workspace,.meihua-form,.tarot-screen,.card,.ai-qa)::after{content:'✧'!important;display:block!important;position:absolute!important;inset:auto 12px 5px auto!important;color:#c89b60!important;background:none!important;font-size:25px!important;width:auto!important;height:auto!important;pointer-events:none!important;opacity:.6!important}
body.celestial-palace :is(.panel,.match-form,.wealth-input-card,.wx-overview,.astro-page-workspace,.meihua-form,.card){padding:28px!important}
body.celestial-palace .lm-chapter{scroll-margin-top:28px}
body.celestial-palace .lm-chapter>.cat-inner-ribbon{margin:0 0 24px!important}
body.celestial-palace :is(.cat-inner-ribbon,.cat-personal-banner,.cat-decor-strip){background:linear-gradient(110deg,#f2e0e8,#fff5e5 74%)!important;border:1px solid #d5ae7b!important;border-radius:45px 9px 9px 45px!important;box-shadow:0 3px 0 #b68b5830;padding:8px 16px 8px 8px!important;min-height:88px}
body.celestial-palace :is(.cat-inner-ribbon,.cat-decor-strip) img{width:80px!important;height:80px!important;border-radius:50%;border:2px solid #c49b67!important;object-fit:cover}
body.celestial-palace :is(.cat-inner-ribbon strong,.cat-decor-copy>strong){font-family:'PMingLiU',serif;font-size:22px!important;color:#735171!important;letter-spacing:.06em}
body.celestial-palace :is(.cat-inner-ribbon span,.cat-decor-copy>span){font-size:10px!important;color:#95724e!important}
body.celestial-palace .cat-personal-banner{display:none!important}
body.celestial-palace .cat-inner-ribbon::after{display:none!important}
body.celestial-palace :is(.field,.auth-field){margin-bottom:16px}
body.celestial-palace :is(label,.field label,.auth-field label){color:#76543e!important;font-weight:600;letter-spacing:.03em}
body.celestial-palace :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border:1px solid #c8aa83!important;border-radius:10px!important;background:linear-gradient(#fffdfa,#fff8ee)!important;color:#5c4252!important;box-shadow:inset 0 2px 5px #9169490c,0 2px 0 #fff9ec!important;font:400 15px/1.5 'Microsoft JhengHei',sans-serif;min-height:46px;max-width:100%;padding:10px 12px}
body.celestial-palace :is(input,select,textarea):focus{border-color:#9c75a4!important;background:#fffefa!important;box-shadow:0 0 0 3px #b98fb91c!important}
body.celestial-palace textarea{min-height:120px;resize:vertical}
body.celestial-palace input:is([type=checkbox],[type=radio]){accent-color:#8a5d8c;width:18px;height:18px;flex:none}
body.celestial-palace :is(.hint,.meta,.auth-footnote,.life-note){color:#887060!important;font-size:12px;line-height:1.85}
body.celestial-palace :is(.checkrow,.saved,.notice){background:#f3e7d959;border-radius:9px;padding:10px 12px;border-color:#dbc09c}
body.celestial-palace :is(.btn:not(.alt):not(.secondary),.cat-quick-submit,.match-submit,.match-buy,.wealth-submit,.wealth-buy,.ai-start-btn,.ai-send,.tarot-deep-btn,.tarot-purchase,.meihua-submit,.cat-gold-link){background:linear-gradient(110deg,#75517d,#a16f92 52%,#75517d)!important;color:#fff5df!important;border:1px solid #c39863!important;box-shadow:inset 0 0 0 3px #ffffff20,0 4px 0 #67445e33!important;border-radius:10px!important;min-height:47px;letter-spacing:.08em}
body.celestial-palace :is(.btn.secondary,.btn.alt,.auth-nav-ghost){color:#81566b!important;background:linear-gradient(#fffaf0,#f7ead9)!important;border:1px solid #cead7b!important;box-shadow:0 2px 0 #a7774126!important;border-radius:9px!important}
body.celestial-palace :is(.pill,.tag,.wx-tag){color:#805b77!important;background:#f4e4ec!important;border:1px solid #d4b7bb!important;border-radius:99px;padding:4px 10px}
body.celestial-palace :is(.section,.chart,.match-metric,.wealth-metric,.wx-trait,.stat){border-color:#dfbf96!important}
body.celestial-palace :is(th,.annual-banner,.match-paid-banner,.wealth-paid-banner){background:linear-gradient(100deg,#e9d5e5,#f7e5d1)!important;color:#684b60!important;border-color:#d5b58c!important}
body.celestial-palace td{border-color:#ead9c2!important;background:#fffaf3b0}
body.celestial-palace :is(.ai-report,.match-full-report,.wealth-full-report){color:#5d4853;line-height:1.95}
body.celestial-palace :is(.ai-report,.match-full-report,.wealth-full-report) h3{border-bottom:1px solid #dabb8b;padding-bottom:12px;margin-top:28px;color:#79567c}
/* Two requested wreaths: exact regions of image three, with live HTML letters. */
body.celestial-palace :is(.match-empty-seal,.ai-qa-seal,.empty-mark,.auth-symbol,.wealth-empty-icon){display:flex!important;align-items:center;justify-content:center;position:relative;width:172px!important;height:172px!important;margin:8px auto 15px!important;border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;background:var(--lm-atlas) 0% 47.83% / 490.69% auto no-repeat!important;color:#785176!important;font:700 56px/1 'PMingLiU',serif!important;padding:0 0 30px!important;transform:none!important;flex:none;isolation:isolate}
body.celestial-palace :is(.match-empty-seal,.ai-qa-seal,.empty-mark,.auth-symbol,.wealth-empty-icon)::before,body.celestial-palace :is(.match-empty-seal,.ai-qa-seal,.empty-mark,.auth-symbol,.wealth-empty-icon)::after{content:none!important}
body.celestial-palace .ai-qa-seal{background-position:49.6% 50.63%!important;background-size:508.21% auto!important;padding:12px 0 0!important;width:155px!important;height:174px!important}
body.celestial-palace :is(.match-empty,.wealth-empty,.result-empty){padding:30px 18px!important;min-height:300px!important;background-color:#fff5e8!important;text-align:center}
body.celestial-palace #personalView .result-empty{background:radial-gradient(ellipse,#fff9eede,#fff0e5cc)!important}
body.celestial-palace :is(.match-empty h3,.wealth-empty h3){font-size:25px;letter-spacing:.09em}
body.celestial-palace .ai-qa-top{display:flex;align-items:center;gap:22px;background:none!important;border:0!important}
body.celestial-palace .ai-qa-top>.cat-decor{display:none!important}
body.celestial-palace .ai-qa-top h2{font-size:24px;line-height:1.6}
body.celestial-palace .ai-qa-kicker{font-size:11px;letter-spacing:.15em;color:#a17b4b}
/* All six secondary sections receive a painted chapter cover. */
body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero){position:relative;isolation:isolate;overflow:hidden;display:block!important;border:3px double #d3ac76!important;border-radius:22px!important;padding:32px 36px!important;margin:12px 0 26px!important;background:linear-gradient(100deg,#fff4e6f5,#fff4e6c9 62%,#fff4e68a),var(--lm-scene) center 10% / cover!important;box-shadow:0 8px 24px #8257791c!important;color:#6a4c63!important;min-height:0!important}
body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero)::before,body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero)::after{content:none!important}
body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero) h2{font-size:31px!important;color:#704e72!important;line-height:1.5;letter-spacing:.08em;margin:6px 0 12px}
body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero) p{color:#7d665d!important;max-width:720px;font-size:14px}
body.celestial-palace :is(.match-hero-script,.wealth-hero-coin,.wx-hero-seal,.tarot-hero-sigil){display:none!important}
body.celestial-palace .cat-inline-hero-media{position:relative!important;inset:auto!important;display:flex!important;align-items:center;gap:18px;width:100%!important;max-width:none!important;height:auto!important;padding:16px 0 0!important;margin:18px 0 0!important;border:0!important;border-top:1px solid #c9a976!important;border-radius:0!important;background:none!important;box-shadow:none!important;opacity:1!important;transform:none!important}
body.celestial-palace .cat-inline-hero-media>img{position:static!important;width:110px!important;height:110px!important;object-fit:cover;border:3px double #c5a16d;border-radius:50%;mask-image:none!important;opacity:1!important}
body.celestial-palace .cat-inline-hero-copy{position:static!important;background:none!important;padding:0!important;max-width:650px!important;display:block!important}
body.celestial-palace .cat-inline-hero-copy>span{font-size:10px;color:#a47c4c;letter-spacing:.15em}
body.celestial-palace .cat-inline-hero-copy strong{display:block;font:700 21px/1.6 'PMingLiU',serif;color:#795478}
body.celestial-palace .cat-inline-hero-copy p{font-size:12px!important;line-height:1.75;margin:3px 0!important}
body.celestial-palace .cat-home-extras{gap:22px;margin:7px 0 32px}
body.celestial-palace .cat-section-heading{padding:12px 15px!important;border:0!important;border-bottom:3px double #d4b07f!important;background:linear-gradient(100deg,#eee0ed,#fae8d5)!important;color:#795578!important;font-family:'PMingLiU',serif}
body.celestial-palace .cat-section-heading small{color:#977b61!important;font-size:10px}
body.celestial-palace .cat-daily-body{padding:12px 14px!important;display:flex;align-items:center;gap:10px}
body.celestial-palace .cat-daily-body .lm-oracle{width:43%;max-width:190px}
body.celestial-palace .cat-daily-content h2{font-size:25px!important}
body.celestial-palace .cat-feature-cards{padding:14px;gap:12px}
body.celestial-palace .cat-feature-card{background:#fff7e9!important;border:1px solid #dbb984!important;border-radius:40px 40px 9px 9px!important;box-shadow:0 4px 8px #96636d15!important}
body.celestial-palace .cat-feature-card img{border-radius:50%;mix-blend-mode:multiply}
body.celestial-palace .cat-feature-card strong{color:#785471!important;font-family:'PMingLiU',serif}
/* Paywalls and every dialog are part of the same illustrated collection. */
body.celestial-palace :is(.annual-paywall,.match-paywall,.wealth-paywall,#tarotPremiumPanel){border:3px double #cda16b!important;background:#fff5e9!important;border-radius:16px!important;overflow:hidden}
body.celestial-palace :is(.annual-unlock-card,.match-pay-card,.wealth-gate-card){background:linear-gradient(#fff9efee,#fff0e4e8),var(--lm-scene) center/cover!important;border:3px double #be965f!important;border-radius:24px!important;box-shadow:0 15px 35px #84557530!important}
body.celestial-palace :is(.auth-dialog,.life-dialog,.pay-modal-dialog,.match-modal-dialog,.wealth-modal-dialog,.tarot-pay-dialog,.cat-share-preview-panel){background:linear-gradient(145deg,#fff8ebee,#fff1e8e8),var(--lm-scene) center/cover!important;border:3px double #c49a61!important;border-radius:25px!important;box-shadow:0 0 0 5px #fff4db75,0 24px 70px #44213d55!important;color:#67495d!important}
body.celestial-palace :is(.auth-symbol){width:120px!important;height:120px!important;font-size:34px!important;padding-bottom:22px!important;margin:0 auto!important}
body.celestial-palace :is(.auth-close,.life-close,.tarot-pay-close){background:#f5e7dc!important;border:1px solid #cda575!important;color:#76536d!important;border-radius:50%}
body.celestial-palace :is(.auth-modal-backdrop,.life-backdrop,.pay-modal-backdrop,.match-modal-backdrop,.wealth-modal-backdrop){background:#50334f88!important;backdrop-filter:blur(5px)}
body.celestial-palace .cat-loading-card{background:var(--lm-paper)!important;border:3px double #bf9a67!important;border-radius:25px!important}
body.celestial-palace .tarot-pick{border-color:#c6a06d!important;box-shadow:0 5px 18px #774f7726!important}
body.celestial-palace .tarot-pick:focus-visible{outline-offset:6px!important}
body.celestial-palace .history-panel{margin-top:28px}
body.celestial-palace .history-list button{border-color:#d7b98f;background:#fff6e9}
body.celestial-palace .wrap{max-width:1080px;width:calc(100% - 64px);margin:24px auto}
body.celestial-palace .cat-daily-hero{background:linear-gradient(100deg,#fff3e5cc,#fff7e4b0),var(--lm-scene) center 12%/cover!important;border:3px double #cca16b!important;border-radius:100px 16px 16px 16px;display:flex;align-items:center;gap:25px;padding:16px 30px!important;min-height:230px}
body.celestial-palace .cat-daily-hero .lm-oracle{width:230px;max-width:40%}
body.celestial-palace>.top{width:calc(100% - 64px);max-width:1080px;margin:24px auto!important;border-radius:20px!important}
body.celestial-palace>.footer{max-width:1080px;width:calc(100% - 64px);margin:24px auto 0!important}
body.celestial-palace .footer{position:relative;margin:36px -24px 0!important;padding:100px 20px 35px!important;border:0!important;border-top:1px solid #d9b887;border-radius:0!important;background:linear-gradient(180deg,#fff5e300,#fff4e2c9 48%,#fff4e9ed),var(--lm-scene) center bottom / 100% auto no-repeat!important;color:#7b5a6a!important;font-size:12px;text-align:center;text-shadow:0 1px #fff8eb}
body.celestial-palace .footer::before,body.celestial-palace .footer::after{content:none!important}
body.celestial-palace .footer a{color:#785377!important}
.lm-footer-blessing{margin-bottom:25px}
.lm-footer-blessing>span{display:block;font-size:35px;color:#ad824a}
.lm-footer-blessing>strong{display:block;font:700 22px/1.7 'PMingLiU',serif;letter-spacing:.13em;color:#74516b}
.lm-footer-blessing>small{font-size:11px;letter-spacing:.1em}
@media(max-width:900px){
 body.celestial-palace .shell{width:calc(100% - 28px);padding:0 16px;margin-top:14px}
 body.celestial-palace :is(.top,header.top#catTop){margin:0 -16px 16px;padding:14px 18px}
 body.celestial-palace .fortune-tabs{gap:8px!important}
 body.celestial-palace .fortune-tabs .fortune-tab strong{font-size:13px!important}
 body.celestial-palace .fortune-tabs .fortune-tab small{font-size:9px!important}
 body.celestial-palace .footer{margin-inline:-16px!important}
}
@media(max-width:620px){
 html body.celestial-palace{background-size:100% auto!important}
 body.celestial-palace .shell{width:100%;padding:0 12px;margin:0;border:0;border-radius:0;background:transparent!important;box-shadow:none}
 body.celestial-palace :is(.top,header.top#catTop){margin:0 -12px 12px!important;padding:12px 16px!important;border-radius:0!important;min-height:78px;display:flex!important;flex-wrap:wrap;gap:9px!important;background:linear-gradient(90deg,#fff8e4e6,#f8e5e9d9),var(--lm-scene) center top / 100% auto!important}
 body.celestial-palace .brandname{font-size:20px!important}
 body.celestial-palace .top-actions{display:flex!important;gap:6px!important;flex:1 1 140px;justify-content:flex-end}
 body.celestial-palace .top-actions :is(.top-daily,.life-edit){font-size:10px!important;padding:4px 8px!important}
 body.celestial-palace .top-actions button{font-size:12px!important;padding:6px 12px!important}
 body.celestial-palace .auth-loading{font-size:10px}
 body.celestial-palace .brandname small{font-size:9px!important;letter-spacing:.08em}
 body.celestial-palace .seal{width:35px;height:35px}
 body.celestial-palace .hero.cat-hero#homeHero{padding:0 12px 24px!important;border-radius:70px 70px 15px 15px!important;margin:0 0 20px!important}
 body.celestial-palace #homeHero .cat-hero-art{width:calc(100% + 24px)!important;margin:0 -12px;aspect-ratio:1423/510!important;background-size:155% auto!important;background-position:center top!important}
 body.celestial-palace #homeHero .cat-hero-copy{margin:-4px auto 0!important}
 body.celestial-palace #homeHero .cat-kicker{font-size:10px;letter-spacing:.08em;margin:0 0 5px}
 body.celestial-palace #homeHero h1#catHeroTitle{height:auto!important;aspect-ratio:400/95;width:min(100%,400px)!important;font-size:clamp(26px,8vw,34px)!important;padding:0 30px!important;letter-spacing:.09em!important;background-position:82.15% 39.75%!important}
 body.celestial-palace #homeHero .cat-hero-slogan{font-size:16px!important;letter-spacing:.15em!important;margin:4px 0!important}
 body.celestial-palace #homeHero .cat-hero-subtitle{font-size:11px!important;margin:6px 0 30px!important}
 body.celestial-palace #homeHero .cat-quick-form{grid-template-columns:1fr!important;padding:30px 13px 15px!important;gap:12px!important}
 body.celestial-palace #homeHero .cat-quick-field{grid-template-columns:105px minmax(0,1fr)!important;grid-column:1/-1;align-items:center;gap:8px!important}
 body.celestial-palace #homeHero .cat-quick-field>label{font-size:12px!important;letter-spacing:0;gap:5px!important}
 body.celestial-palace #homeHero .cat-quick-field>label>span{width:24px!important;height:24px!important}
 body.celestial-palace #homeHero .cat-native-input>input,body.celestial-palace #homeHero .cat-quick-field>select{height:45px!important;font-size:14px!important;padding:8px!important;border-radius:9px!important}
 body.celestial-palace #homeHero .cat-quick-ribbon{width:194px!important;font-size:12px!important}
 body.celestial-palace #homeHero .lm-reader{width:65px;top:-49px;right:-5px}
 body.celestial-palace #homeHero .cat-quick-submit{font-size:16px!important;height:49px!important}
 body.celestial-palace .lm-section-title{margin:25px auto 12px}
 .lm-section-title span{font-size:22px}.lm-section-title small{font-size:10px}
 body.celestial-palace .fortune-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px 8px!important;padding:4px 0 22px!important;overflow:visible!important}
 body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card{padding:5px 2px 10px!important;min-height:120px!important}
 body.celestial-palace .fortune-tabs .fortune-tab:nth-child(n+5){transform:translateX(50%)}
 body.celestial-palace .fortune-tabs .fortune-tab:nth-child(n+5).is-selected{transform:translate(50%,-4px)}
 body.celestial-palace .fortune-tabs .fortune-tab .fortune-tab-art{max-width:83px!important}
 body.celestial-palace .fortune-tabs .fortune-tab strong{font-size:12px!important;letter-spacing:0}
 body.celestial-palace .fortune-tabs .fortune-tab small{font-size:9px!important}
 body.celestial-palace :is(.panel,.match-form,.wealth-input-card,.wx-overview,.astro-page-workspace,.meihua-form,.card){padding:20px 16px!important}
 body.celestial-palace :is(.panel,.match-form,.match-empty,.match-results,.wealth-input-card,.wealth-empty,.wealth-results,.wx-overview,.wx-card,.wx-pair-section,.astro-page-workspace,.astro-panel,.meihua-form,.meihua-results,.tarot-screen,.tarot-result,.tarot-history-wrap,.history-panel,.ai-qa,.card){border-radius:17px 5px 17px 5px!important}
 body.celestial-palace :is(.cat-inner-ribbon strong,.cat-decor-copy>strong){font-size:19px!important}
 body.celestial-palace :is(.cat-inner-ribbon,.cat-decor-strip){padding:7px!important;gap:12px;min-height:74px}
 body.celestial-palace :is(.cat-inner-ribbon,.cat-decor-strip) img{width:65px!important;height:65px!important}
 body.celestial-palace .cat-inner-ribbon small{font-size:10px!important}
 body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero){padding:23px 20px!important;margin:0 0 22px!important}
 body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero) h2{font-size:24px!important;letter-spacing:.04em}
 body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero) p{font-size:12px!important}
 body.celestial-palace .cat-inline-hero-media{gap:12px;margin-top:15px!important;padding-top:15px!important}
 body.celestial-palace .cat-inline-hero-media>img{width:85px!important;height:85px!important}
 body.celestial-palace .cat-inline-hero-copy strong{font-size:18px}
 body.celestial-palace .cat-inline-hero-copy p{font-size:10px!important}
 body.celestial-palace .cat-home-extras{display:grid!important;grid-template-columns:1fr!important;gap:18px;margin:0 0 24px!important}
 body.celestial-palace .cat-daily-body .lm-oracle{width:42%}
 body.celestial-palace .cat-daily-content h2{font-size:23px!important}
 body.celestial-palace .cat-daily-content p{font-size:11px}
 body.celestial-palace .cat-section-heading{font-size:16px!important;padding:10px 12px!important}
 body.celestial-palace .cat-section-heading small{font-size:9px!important}
 body.celestial-palace .cat-gold-link{font-size:12px!important;padding:8px 10px!important;min-height:36px}
 body.celestial-palace .ai-qa-top{gap:10px;align-items:center;flex-wrap:wrap;justify-content:center;text-align:center}
 body.celestial-palace .ai-qa-top>div:nth-child(2){flex:1 1 170px}
 body.celestial-palace .ai-qa-top h2{font-size:21px}
 body.celestial-palace .ai-qa-seal{width:136px!important;height:152px!important;font-size:47px!important}
 body.celestial-palace .ai-qa{padding:22px 16px!important}
 body.celestial-palace :is(.match-empty,.wealth-empty,.result-empty){padding:24px 14px!important;min-height:290px!important}
 body.celestial-palace :is(.match-empty p,.wealth-empty p){font-size:12px}
 body.celestial-palace .wrap{width:calc(100% - 24px);margin:16px auto}
 body.celestial-palace>.top{width:100%!important;margin:0 0 16px!important}
 body.celestial-palace .cat-daily-hero{padding:15px!important;min-height:180px;gap:10px;border-radius:65px 15px 15px 15px}
 body.celestial-palace .cat-daily-hero h1{font-size:26px!important}
 body.celestial-palace .cat-daily-hero p{font-size:12px!important}
 body.celestial-palace .footer{margin:25px -12px 0!important;padding:100px 18px 30px!important;font-size:10px;background-size:100% auto!important}
 body.celestial-palace>.footer{width:100%;margin:25px 0 0!important}
 .lm-footer-blessing>strong{font-size:19px;letter-spacing:.06em}.lm-footer-blessing>small{font-size:10px}
 body.celestial-palace :is(.auth-dialog,.life-dialog,.pay-modal-dialog,.match-modal-dialog,.wealth-modal-dialog,.tarot-pay-dialog){max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 32px);overflow-y:auto}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.celestial-palace *,body.celestial-palace *::before,body.celestial-palace *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{html body.celestial-palace,body.celestial-palace .shell{background:white!important;color:#222!important;box-shadow:none!important;width:100%;border:0;padding:0;margin:0}body.celestial-palace :is(.footer,.lm-section-title,.cat-inner-ribbon,.cat-decor,.cat-inline-hero-media,.lm-sprite){display:none!important}body.celestial-palace :is(.panel,.card,.match-results,.wealth-results){background:white!important;box-shadow:none!important}body.celestial-palace .panel::before,body.celestial-palace .card::before{display:none!important}}
/* Bound legacy intrinsic sizes so the illustration remains a scene, not a visible atlas. */
body.celestial-palace #homeHero .cat-hero-art{min-height:0!important;max-height:none!important}
body.celestial-palace .cat-paw-icon{display:inline-block!important;width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px!important;vertical-align:middle}
body.celestial-palace #homeHero .cat-quick-ribbon{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;height:33px!important;white-space:nowrap;bottom:auto!important;right:auto!important;min-width:0!important}
body.celestial-palace #homeHero .cat-quick-submit{white-space:nowrap!important;line-height:1.3!important;padding:10px 18px!important;min-width:0!important}
body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card.is-selected strong{color:#68416a!important}
body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card.is-selected small{color:#765e7b!important}
body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card strong{font-size:15px!important}
body.celestial-palace :is(.match-empty,.wealth-empty,.ai-qa,.panel,.match-form,.wealth-input-card,.meihua-form,.astro-page-workspace,.wx-overview,.card,.tarot-screen){background-image:url('/assets/celestial/ornate-frame.svg'),linear-gradient(130deg,#fff9edef,#fff5e9ed),var(--lm-scene)!important;background-size:100% 100%,cover,cover!important;background-position:center!important;background-repeat:no-repeat!important}
body.celestial-palace .match-empty-seal{background-size:490.69% auto!important;background-position:0% 47.48%!important;mask-image:radial-gradient(ellipse at center,#000 63%,transparent 76%)}
body.celestial-palace .ai-qa-seal{mask-image:radial-gradient(ellipse at center,#000 62%,transparent 76%)}
body.celestial-palace .cat-daily-body{display:flex!important}
body.celestial-palace .cat-daily-feature{overflow:hidden}
body.celestial-palace .cat-hero-copy .cat-native-input input{width:100%;min-width:0}
body.celestial-palace .cat-hero-copy .cat-quick-field select{width:100%;min-width:0}
body.celestial-palace :is(.annual-unlock-card,.match-pay-card,.wealth-gate-card) .cat-decor-paywall img{border:0!important;background:transparent!important;border-radius:50%;box-shadow:0 0 0 2px #cfa96f}
/* Image two's crescent and floral seal accompany the daily and paid sections. */
body.celestial-palace .cat-feature-panel::after{content:'';position:absolute;right:8px;bottom:3px;width:38px;height:42px;background:var(--lm-moon) 84.3% 45.3% / 473.33% auto;pointer-events:none;opacity:.75;mask-image:radial-gradient(#000 50%,transparent 73%)}
body.celestial-palace .lm-footer-blessing>span{width:90px;height:90px;margin:0 auto 5px;font-size:0;background:var(--lm-moon) 84.3% 45.3% / 473.33% auto;mask-image:radial-gradient(#000 57%,transparent 73%)}
@media(max-width:620px){body.celestial-palace .fortune-tabs .fortune-tab.cat-boutique-card strong{font-size:12px!important}body.celestial-palace .cat-hero-copy .cat-native-input input{font-size:13px!important}body.celestial-palace .cat-quick-field label>span{margin:0!important}body.celestial-palace:has(.wrap){padding:0!important}}
/* Preserve JS-controlled hidden states even when layout components use display overrides. */
html body.celestial-palace .hidden{display:none!important}
@media(max-width:360px){body.celestial-palace #homeHero .cat-quick-field{grid-template-columns:88px minmax(0,1fr)!important;gap:5px!important}body.celestial-palace #homeHero .cat-quick-field>label{font-size:11px!important}body.celestial-palace #homeHero .cat-quick-field>label>span{width:21px!important;height:21px!important}body.celestial-palace #homeHero .cat-native-input>input,body.celestial-palace #homeHero .cat-quick-field>select{font-size:12px!important;padding:6px!important}}
/* Nine-slice ornaments retain their proportions on long forms. */
body.celestial-palace :is(.match-empty,.wealth-empty,.ai-qa,.panel,.match-form,.wealth-input-card,.meihua-form,.astro-page-workspace,.wx-overview,.card,.tarot-screen){background-image:linear-gradient(130deg,#fff9edef,#fff5e9ed),var(--lm-scene)!important;background-size:cover!important;border-image:url('/assets/celestial/ornate-frame.svg') 160 / 25px / 0 stretch!important}
body.celestial-palace :is(.panel,.match-form,.wealth-input-card,.wx-overview,.astro-page-workspace,.meihua-form,.tarot-screen,.card,.ai-qa)::before{width:42px!important;height:50px!important;inset:2px auto auto 2px!important;background:var(--lm-atlas) .5% 46% / 1800% auto!important;mask-image:radial-gradient(ellipse,#000 40%,transparent 72%);opacity:.65!important}
body.celestial-palace :is(.auth-symbol,.empty-mark,.wealth-empty-icon){background-position:.6% 47.48%!important;mask-image:radial-gradient(ellipse,#000 62%,transparent 75%)}
body.celestial-palace:has(.wrap){max-width:none!important;padding:0!important}
body.celestial-palace:has(.wrap) .hero.cat-daily-hero{background:linear-gradient(100deg,#fff3e5cc,#fff7e4b0),var(--lm-scene) center 12% / cover!important;border:3px double #cca16b!important;border-radius:75px 16px 16px 16px!important;display:flex;align-items:center;padding:16px 24px!important}
body.celestial-palace .cat-daily-top .brand{display:flex;align-items:center;gap:12px}
body.celestial-palace .cat-daily-top .brandname small{display:block}

body.celestial-palace .top .brand{color:#714c6a!important}

/* SOURCE: palace-rich-frames.css */
/* 喵說星語 2026-11-06：採用使用者提供的花雲、雙貓與金框素材。
   只加強外觀，保留所有表單 ID、付款、會員、批算及七隻導覽貓咪。 */
:root{
  --rich-ink:#70435a;--rich-rose:#a97683;--rich-gold:#c99555;
  --rich-cream:#fffaf0;--rich-flower:url('/assets/celestial/flower-vertical-scene.webp');
  --rich-panel:url('/assets/celestial/flower-paper-panel.webp');
  --rich-ribbon:url('/assets/celestial/flower-ribbon.webp');
  --rich-corner:url('/assets/cat-theme/cherry-corner.webp');
  --rich-frame:url('/assets/cat-theme/gold-flower-frame.svg');
}
/* 恢復原本綠眼命理師與睡覺橘貓，不使用新版五行插畫替代首頁主貓。 */
html body.celestial-palace #homeHero .cat-hero-art,
html body.celestial-palace #homeHero .cat-hero-art.lm-palace-scene{
  background-image:url('/assets/cat-theme/reference-cat-scene.webp')!important;
  background-color:#fff1e4!important;
  background-position:center 47%!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
@media (max-width:620px){
  html body.celestial-palace #homeHero .cat-hero-art,
  html body.celestial-palace #homeHero .cat-hero-art.lm-palace-scene{
    background-image:url('/assets/cat-theme/reference-cat-scene.webp')!important;
    background-position:center 49%!important;
    background-size:cover!important;
  }
}
/* 核心問題：日期過小且色彩過淡，看起來像是字體模糊。改為真正清楚可讀的日期徽章。 */
html body.celestial-palace .cat-section-heading{
  min-height:57px!important;
  padding:12px 20px!important;
  display:flex!important;gap:12px!important;align-items:center!important;justify-content:space-between!important;
  background-image:linear-gradient(90deg,rgba(255,246,232,.18),rgba(255,249,240,.10)),var(--rich-ribbon)!important;
  background-size:100% 100%,100% 100%!important;background-position:center!important;
  border:0!important;border-bottom:1px solid #d9b381!important;
  color:#78416f!important;text-shadow:none!important;
  font-family:'Microsoft JhengHei','Noto Sans TC',sans-serif!important;
}
html body.celestial-palace .cat-section-heading>span{
  font-size:clamp(17px,1.5vw,21px)!important;
  font-weight:900!important;line-height:1.35!important;letter-spacing:.04em!important;
  color:#763e6e!important;text-shadow:0 1px 0 #fff8ec!important;
}
html body.celestial-palace .cat-section-heading small,
html body.celestial-palace #catDateLabel{
  color:#5c3452!important;background:rgba(255,250,244,.95)!important;
  border:1px solid #c9976d!important;border-radius:999px!important;
  box-shadow:0 2px 5px rgba(101,65,55,.08)!important;
  font-family:'Microsoft JhengHei','Noto Sans TC',sans-serif!important;
  font-size:13px!important;line-height:1.5!important;letter-spacing:0!important;
  font-weight:750!important;opacity:1!important;filter:none!important;
  text-shadow:none!important;padding:5px 10px!important;text-align:center!important;
  white-space:normal!important;font-synthesis:none;
  -webkit-font-smoothing:auto!important;text-rendering:optimizeLegibility!important;
}
/* 今日運勢、熱門詳批：完整繪製外框、花朵與宣紙背景。 */
html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel){
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  padding:8px!important;
  border:2px solid #c69b64!important;border-radius:26px!important;
  background-image:linear-gradient(135deg,rgba(255,250,243,.90),rgba(255,244,238,.88)),var(--rich-panel)!important;
  background-size:cover,100% 100%!important;background-position:center!important;
  box-shadow:0 0 0 3px rgba(255,250,232,.84) inset,0 0 0 7px rgba(216,174,110,.2) inset,0 12px 25px rgba(113,60,88,.18)!important;
}
html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel)::before{
  content:""!important;position:absolute!important;inset:1px!important;
  background:var(--rich-frame) center / 100% 100% no-repeat!important;
  pointer-events:none!important;z-index:3!important;opacity:.95!important;
}
html body.celestial-palace .cat-daily-feature::after{
  content:""!important;position:absolute!important;right:0!important;bottom:0!important;
  width:115px!important;height:115px!important;
  background:var(--rich-corner) center/contain no-repeat!important;
  pointer-events:none!important;z-index:0!important;opacity:.43!important;
}
html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel)>*{position:relative;z-index:1}
html body.celestial-palace .cat-home-extras{gap:21px!important}
html body.celestial-palace .cat-daily-body{padding:20px 22px 22px!important;min-height:236px;background:linear-gradient(120deg,#fff8eee0,#fff3edb0)!important;gap:18px!important}
html body.celestial-palace .cat-daily-content{position:relative;z-index:1}
html body.celestial-palace .cat-gold-link{
  border:2px solid #d2a36a!important;border-radius:999px!important;
  background:linear-gradient(180deg,#a06e9b,#754a7f)!important;color:#fff9e7!important;
  font-weight:800!important;box-shadow:0 4px 0 #a0776533!important;
  text-decoration:none!important;
}
html body.celestial-palace .cat-feature-cards{padding:23px 21px 22px!important;gap:13px!important;min-height:230px!important}
html body.celestial-palace .cat-feature-card{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  padding:10px 6px 12px!important;border:2px solid #d4aa76!important;
  border-radius:18px!important;
  background-image:linear-gradient(#fff9eddd,#fff2ecdf),var(--rich-flower)!important;
  background-size:cover,cover!important;background-position:center!important;
  box-shadow:0 0 0 4px #fff5e4 inset,0 5px 12px #8b627a27!important;
  transition:transform .18s ease, box-shadow .18s ease!important;
}
html body.celestial-palace .cat-feature-card::before{
  content:''!important;position:absolute!important;inset:1px!important;
  border:1px solid #d9b583!important;border-radius:15px!important;pointer-events:none!important;z-index:2!important;
}
html body.celestial-palace .cat-feature-card::after{
  content:''!important;position:absolute!important;right:-4px!important;bottom:-6px!important;
  width:54px!important;height:54px!important;background:var(--rich-corner) center/contain no-repeat!important;
  opacity:.35!important;pointer-events:none!important;z-index:1!important;
}
html body.celestial-palace .cat-feature-card img{
  display:block!important;margin:0 auto!important;max-width:100%!important;
  object-fit:cover!important;border:2px solid #d5ac75!important;border-radius:48% 48% 38% 38%!important;
  box-shadow:0 0 0 3px #fff7e8,0 3px 8px #85608030!important;
  mix-blend-mode:normal!important;
}
html body.celestial-palace .cat-feature-card strong{font-size:17px!important;color:#71436a!important}
html body.celestial-palace .cat-feature-card>span{color:#8b6a60!important}
html body.celestial-palace .cat-feature-card:hover{transform:translateY(-4px)}
/* 統一內頁各類大框：金色雙層邊、櫻花角、紙紋與月光。避免不同背景斷圖。 */
html body.celestial-palace :is(
 .panel,.match-form,.match-empty,.match-results,.wealth-input-card,.wealth-empty,.wealth-results,
 .wx-overview,.wx-card,.wx-pair-section,.astro-page-workspace,.astro-panel,
 .meihua-form,.meihua-results,.tarot-screen,.tarot-result,.tarot-history-wrap,
 .history-panel,.ai-qa,.card,.tarot-meaning-card,.wx-info-card,.wx-element,
 .cat-decor-strip,.cat-inner-ribbon,.match-pay-card,.annual-unlock-card,.wealth-gate-card){
  border-image:none!important;
  border:2px solid #cfaa7d!important;border-radius:22px!important;
  background-image:linear-gradient(130deg,rgba(255,250,241,.95),rgba(255,240,238,.92)),var(--rich-flower)!important;
  background-position:center!important;background-size:cover!important;
  box-shadow:0 0 0 4px rgba(255,255,242,.73) inset,0 0 0 7px rgba(201,157,111,.17) inset,0 8px 20px rgba(121,69,99,.13)!important;
}
html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel,.panel,.match-form,.wx-overview,.wealth-input-card,.meihua-form,.astro-page-workspace,.tarot-screen){overflow:visible!important}
/* 對內頁主標題使用空白金色飾牌（不用含印刷文字的圖片），保持可翻譯／可選取。 */
html body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero){
  border:2px solid #cda36f!important;border-radius:27px!important;
  background-image:linear-gradient(110deg,rgba(255,249,241,.82),rgba(255,249,237,.67)),var(--rich-flower)!important;
  background-position:center!important;background-size:cover!important;
  box-shadow:inset 0 0 0 6px rgba(255,253,241,.72),0 10px 22px rgba(97,59,89,.17)!important;
}
/* 五行頁：主插畫使用上傳圖三，與 HTML 文案區分，不把文字畫死。 */
html body.celestial-palace #wuxingView .wx-two-cats{
  position:relative;display:block!important;margin:18px 0 12px!important;
  border:2px solid #cfaa78;border-radius:24px;overflow:hidden;
  background:linear-gradient(145deg,#fff6e7,#f9e4ee);
  box-shadow:0 0 0 5px #fff9eab3 inset,0 8px 19px #91648c24;
}
html body.celestial-palace #wuxingView .wx-two-cats picture{display:block;width:100%}
html body.celestial-palace #wuxingView .wx-two-cats img{
  display:block;width:100%;height:auto;max-height:320px;object-fit:contain;object-position:center;
}
html body.celestial-palace #wuxingView .wx-two-cats figcaption{
  padding:9px 14px;text-align:center;color:#754e72;
  font:800 15px/1.65 'Noto Serif TC','Microsoft JhengHei',serif;
  background:linear-gradient(105deg,#fff7e5,#f7e6ef);
}
/* 五行既有七個導覽貓不動；五行頁的舊小圖條由新雙貓大圖取代。 */
html body.celestial-palace #wuxingView .wx-hero>.cat-inline-hero-media{display:none!important}
html body.celestial-palace #wuxingView .wx-elements,
html body.celestial-palace #wuxingView .wx-relation-grid{gap:10px!important}
html body.celestial-palace #wuxingView .wx-element{min-width:0;position:relative;padding:13px 8px!important}
html body.celestial-palace #wuxingView .wx-element:where(:hover,:focus-visible){outline:2px solid #bb8dce!important;outline-offset:2px}
/* 所有表單框與報告小卡也承接金線細節，但不蓋住表格、按鈕。 */
html body.celestial-palace :is(.section,.wx-info-grid>.wx-info-card,.wx-relation-grid>div,.match-summary-card,.tarot-meaning-card,.tarot-focus-card){
  border:1px solid #d8b88f!important;border-radius:16px!important;
  background:linear-gradient(145deg,rgba(255,252,246,.94),rgba(255,241,236,.90))!important;
  box-shadow:inset 0 0 0 3px #fff9e8,0 4px 13px #815c6920!important;
}
@media(max-width:900px){
 html body.celestial-palace .cat-section-heading{padding:10px 12px!important;flex-wrap:wrap!important}
 html body.celestial-palace .cat-section-heading>span{font-size:17px!important}
 html body.celestial-palace .cat-section-heading small,html body.celestial-palace #catDateLabel{font-size:12px!important;padding:3px 9px!important}
}
@media(max-width:620px){
 html body.celestial-palace .cat-home-extras{gap:19px!important}
 html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel){padding:6px!important;border-radius:21px!important}
 html body.celestial-palace .cat-section-heading{min-height:55px!important;padding:10px 11px!important;gap:8px!important;flex-wrap:nowrap!important}
 html body.celestial-palace .cat-section-heading>span{font-size:16px!important;white-space:nowrap}
 html body.celestial-palace .cat-section-heading small,html body.celestial-palace #catDateLabel{font-size:13px!important;line-height:1.4!important;padding:5px 8px!important}
 html body.celestial-palace .cat-daily-body{padding:15px 13px 17px!important;gap:10px!important;min-height:180px!important}
 html body.celestial-palace .cat-feature-cards{padding:18px 11px!important;gap:7px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body.celestial-palace .cat-feature-card{padding:7px 3px 9px!important}
 html body.celestial-palace .cat-feature-card img{width:100%!important;max-height:110px!important}
 html body.celestial-palace .cat-feature-card strong{font-size:12px!important}
 html body.celestial-palace .cat-feature-card>span{font-size:9px!important}
 html body.celestial-palace #wuxingView .wx-two-cats{margin:13px 0 8px!important;border-radius:17px!important}
 html body.celestial-palace #wuxingView .wx-two-cats img{height:auto!important;max-height:none!important;object-fit:contain!important}
 html body.celestial-palace #wuxingView .wx-two-cats figcaption{font-size:13px!important}
 html body.celestial-palace :is(.panel,.match-form,.wealth-input-card,.wx-overview,.astro-page-workspace,.meihua-form,.tarot-screen,.card){padding:17px 13px!important}
}
@media(max-width:360px){
 html body.celestial-palace .cat-section-heading small,html body.celestial-palace #catDateLabel{font-size:12px!important;padding:4px 6px!important}
 html body.celestial-palace .cat-section-heading>span{font-size:15px!important}
 html body.celestial-palace #wuxingView .wx-two-cats img{height:auto!important}
}

/* 第二輪實際畫面核對：每日運勢貓咪不可撐開右側文字區。 */
html body.celestial-palace .cat-daily-body>img{
  display:block!important;flex:0 0 41%!important;width:41%!important;max-width:41%!important;
  height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;
  border:2px solid #d6aa78!important;border-radius:18px!important;
  box-shadow:0 0 0 3px #fff7ed,0 7px 13px rgba(102,73,80,.17)!important;
}
html body.celestial-palace .cat-daily-body>.cat-daily-content{min-width:0!important;flex:1 1 auto!important;max-width:59%!important;align-self:center!important}
html body.celestial-palace .cat-daily-content h2{font-size:clamp(18px,1.8vw,24px)!important;line-height:1.5!important;overflow-wrap:anywhere}
html body.celestial-palace .cat-feature-card strong,html body.celestial-palace .cat-feature-card>span{
 position:relative!important;z-index:4!important;text-shadow:0 1px 0 #fff9ed!important;
}
@media(max-width:620px){
 html body.celestial-palace .cat-daily-body>img{flex-basis:42%!important;width:42%!important;max-width:42%!important}
 html body.celestial-palace .cat-daily-body>.cat-daily-content{max-width:58%!important}
 html body.celestial-palace .cat-daily-content h2{font-size:20px!important}
 html body.celestial-palace .cat-gold-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important;white-space:nowrap!important;padding:7px 9px!important}
}

/* SOURCE: ornate-unified.css */
/* 喵說星語・2026-11-06 全站視覺重新整合 v7
   最後載入本樣式：移除舊版重複宮殿背景，避免假圖截斷、標籤被花框蓋住。
   原本命理、會員、付款 JS 與七個功能入口貓咪圖檔保持不動。 */
:root {
  --mu-bg:url('/assets/ornate-unified/single-scene.webp');
  --mu-border:url('/assets/ornate-unified/frame-grand.webp');
  --mu-border-mini:url('/assets/ornate-unified/frame-celebrate.webp');
  --mu-plum:#74416f;--mu-gold:#d0a05e;--mu-rose:#ad6d77;--mu-ink:#583c51;
  --mu-paper:rgba(255,250,239,.95);
}
html {background:#f8e6df!important}
html body.celestial-palace {
  position:relative!important;isolation:isolate!important;
  background:transparent!important;
  color:var(--mu-ink)!important;
  min-height:100vh;
}
/* 只鋪一張圖，對應整個可視畫面；不 repeat-y、不使用拼接圖。 */
html body.celestial-palace::before {
  content:""!important;display:block!important;position:fixed!important;inset:0!important;
  background-image:var(--mu-bg)!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  pointer-events:none!important;z-index:-1!important;
}
html body.celestial-palace::after{display:none!important;content:none!important}
html body.celestial-palace .shell{
  background:rgba(255,249,240,.65)!important;
  backdrop-filter:blur(3px);
  border-color:#e6c99e!important;
  box-shadow:0 10px 45px rgba(107,64,94,.12)!important;
}
html body.celestial-palace :is(.top,header.top#catTop){
  background:linear-gradient(110deg,rgba(255,250,242,.97),rgba(255,234,245,.92))!important;
  border-bottom:2px solid #dab681!important;
}
/* 主視覺：讓原綠眼命理師與小橘貓佔約 2/3，保留真實可操作表單。 */
html body.celestial-palace .hero.cat-hero#homeHero{
  position:relative!important;overflow:hidden!important;
  padding:0 22px 26px!important;
  margin:0 0 23px!important;
  border:2px solid #d5a366!important;
  border-radius:34px!important;
  background:linear-gradient(180deg,rgba(255,248,239,.12) 0%,rgba(255,246,235,.84) 70%,rgba(255,247,236,.96) 100%)!important;
  box-shadow:inset 0 0 0 7px #fff6e4b0,0 12px 28px #7e506934!important;
}
html body.celestial-palace #homeHero .cat-hero-art,
html body.celestial-palace #homeHero .cat-hero-art.lm-palace-scene{
  height:clamp(390px,45vw,610px)!important;
  min-height:390px!important;
  aspect-ratio:auto!important;
  margin:0 -22px!important;
  width:calc(100% + 44px)!important;
  position:relative!important;
  background-image:url('/assets/cat-theme/reference-cat-scene.webp')!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
  filter:saturate(1.06)!important;
  mask-image:linear-gradient(#000 0%,#000 86%,transparent 100%)!important;
}
html body.celestial-palace #homeHero .cat-hero-art::after{content:none!important}
html body.celestial-palace #homeHero .cat-hero-copy{
  position:relative!important;max-width:870px!important;
  margin:-36px auto 0!important;padding:0 0 5px!important;
  background:transparent!important;
}
html body.celestial-palace #homeHero .cat-hero-copy::before{content:none!important}
html body.celestial-palace #homeHero h1#catHeroTitle{
  color:#75396a!important;
  text-shadow:0 2px 0 #fffaf0!important;
  filter:drop-shadow(0 3px 3px #be98723c)!important;
}
html body.celestial-palace #homeHero .cat-kicker{
  color:#94633f!important;text-shadow:0 1px 0 white!important;
  margin:7px 0 2px!important;
}
html body.celestial-palace #homeHero .cat-hero-subtitle{margin-bottom:22px!important;color:#795b55!important}
html body.celestial-palace #homeHero .cat-quick-form{
  border:9px solid transparent!important;
  border-image-source:var(--mu-border)!important;
  border-image-slice:80 85 70 85!important;
  border-image-width:19px!important;
  border-image-repeat:stretch!important;
  outline:0!important;border-radius:24px!important;
  padding:36px 24px 19px!important;
  max-width:810px!important;
  background:linear-gradient(145deg,rgba(255,250,242,.97),rgba(255,241,229,.97))!important;
  box-shadow:0 9px 22px #a36f6c22!important;
}
html body.celestial-palace #homeHero .cat-quick-ribbon{
  z-index:4!important;box-shadow:0 0 0 3px #fff0d6,0 4px 8px #91687d38!important;
  background:linear-gradient(150deg,#8a5c96,#633d73)!important;
}
html body.celestial-palace #homeHero .cat-quick-field>label{color:#724d43!important;font-weight:800!important}
html body.celestial-palace #homeHero .cat-native-input input,
html body.celestial-palace #homeHero .cat-quick-field select{
  background:#fffcf8!important;border:1px solid #cda77c!important;
  box-shadow:inset 0 2px 5px rgba(153,93,90,.07)!important;
}
/* 全站底圖是單一畫面，內容卡只使用米白透明宣紙，不再貼第二張宮殿背景。 */
html body.celestial-palace :is(.panel,.form-panel,.result-panel,.match-form,.match-empty,.match-result,.match-score-panel,.match-chart-card,.match-paywall,.wealth-input-card,.wealth-empty,.wealth-result,.wealth-paywall,.wealth-results,.wx-overview,.wx-pair,.wx-deep,.astro-page-workspace,.astro-panel,.meihua-form,.meihua-results,.tarot-screen,.tarot-result,.tarot-history-wrap,.history-panel,.ai-qa,.card,.cat-daily-feature,.cat-feature-panel,.annual-paywall,.annual-unlock-card,.match-pay-card,.wealth-gate-card) {
  background:linear-gradient(140deg,rgba(255,251,245,.97),rgba(255,242,237,.94))!important;
  box-shadow:inset 0 0 0 4px rgba(255,253,244,.72),0 8px 23px rgba(119,79,103,.15)!important;
  border-radius:22px!important;
  border:11px solid transparent!important;
  border-image-source:var(--mu-border)!important;
  border-image-slice:72 75 72 75!important;
  border-image-width:24px!important;
  border-image-repeat:stretch!important;
  outline:0!important;
}
/* 注意：取消舊版覆蓋文字的整幅框線遮罩，邊框改由 border-image 外圈繪製。 */
html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel)::before,
html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel)::after {
  content:none!important;display:none!important;
}
html body.celestial-palace .cat-home-extras{gap:18px!important;margin:10px 0 30px!important}
html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel){
  min-width:0!important;overflow:hidden!important;
  padding:0!important;
}
/* 標籤左右各保留安全邊距，避免四角花朵與日期重疊。 */
html body.celestial-palace .cat-section-heading {
  position:relative!important;z-index:2!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:9px!important;min-height:65px!important;
  padding:12px 30px 13px!important;
  background:linear-gradient(95deg,#fff3e8,#fbe9f3)!important;
  border:0!important;border-bottom:2px solid #e5c29c!important;
  color:#6c406b!important;text-shadow:none!important;
}
html body.celestial-palace .cat-section-heading::before,
html body.celestial-palace .cat-section-heading::after {content:'✿'!important;display:block!important;position:absolute!important;top:2px!important;color:#d9a35b!important;opacity:.65!important;font-size:14px!important;pointer-events:none!important}
html body.celestial-palace .cat-section-heading::before{left:8px!important}
html body.celestial-palace .cat-section-heading::after{right:8px!important}
html body.celestial-palace .cat-section-heading>span{
  position:relative!important;z-index:3!important;flex:0 1 auto!important;min-width:0!important;
  color:#743e70!important;font-weight:900!important;font-size:clamp(16px,1.7vw,22px)!important;
  white-space:nowrap!important;
}
html body.celestial-palace .cat-section-heading small,
html body.celestial-palace #catDateLabel{
  position:relative!important;z-index:3!important;
  max-width:55%!important;margin:0!important;flex-shrink:1!important;
  background:#fffaf2!important;color:#613e54!important;
  font-size:clamp(10px,1.1vw,13px)!important;font-weight:800!important;
  line-height:1.6!important;padding:5px 9px!important;
  border:1px solid #d4a56f!important;border-radius:99px!important;
  text-align:center!important;white-space:nowrap!important;
}
html body.celestial-palace .cat-daily-body{
  background:rgba(255,248,242,.84)!important;
  padding:19px 22px 22px!important;
}
html body.celestial-palace .cat-feature-cards{
  background:rgba(255,248,240,.8)!important;
  padding:19px 18px 20px!important;
}
/* 所有中小卡片都有真實花邊，並留出文字安全區域。 */
html body.celestial-palace :is(.cat-feature-card,.wx-info-card,.wx-relation-chip,.wx-partner-form,.wx-partner-result,.wx-pair-detail-card,.wx-pair-detail-evidence,.match-partner,.match-paid-preview,.match-paid-heading,.match-chart-card,.match-score-panel,.wealth-stat,.wealth-summary,.wealth-feature,.tarot-meaning-card,.tarot-focus-card,.tarot-info-card,.astro-reading,.astro-details,.astro-cusp-card,.meihua-line,.meihua-reading,.ai-report-section,.annual-card,.annual-signal,.stat,.field-group,.section,.match-paid-banner,.wx-generic-preview){
  position:relative!important;min-width:0!important;
  border:7px solid transparent!important;
  border-image-source:var(--mu-border-mini)!important;
  border-image-slice:35 65 35 65!important;
  border-image-width:13px!important;
  border-image-repeat:stretch!important;
  background:linear-gradient(145deg,#fffbf5,#fff4ed)!important;
  border-radius:16px!important;
  box-shadow:inset 0 0 0 2px #fff8ece9,0 5px 14px #9e61741c!important;
}
html body.celestial-palace .cat-feature-card{padding:10px 9px 14px!important}
html body.celestial-palace .cat-feature-card::before,
html body.celestial-palace .cat-feature-card::after{display:none!important;content:none!important}
/* 正常焦點態/點擊態仍保留 */
html body.celestial-palace :is(.cat-feature-card,.wx-element,.fortune-tab):hover{filter:brightness(1.035)}
html body.celestial-palace :is(.cat-feature-card,.wx-element,.fortune-tab):focus-visible{outline:3px solid #9265a7!important;outline-offset:3px!important}
/* 有插畫的主題卡：主體不再截斷到不同圖片拼接。 */
html body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero){
  overflow:hidden!important;
  padding:38px clamp(24px,5vw,72px)!important;
  border:13px solid transparent!important;
  border-image-source:var(--mu-border)!important;
  border-image-slice:75 75 75 75!important;
  border-image-width:28px!important;
  border-image-repeat:stretch!important;
  border-radius:25px!important;
  background:linear-gradient(135deg,rgba(255,249,240,.96),rgba(255,234,238,.96))!important;
  box-shadow:0 12px 28px #96637627!important;
}
/* 合盤：更喜氣，艷紅金線、囍字、花枝；依然用原本合盤貓素材。 */
html body.celestial-palace #matchView .match-hero{
  border-image-source:url('/assets/ornate-unified/love-ornate.webp')!important;
  border-image-slice:125 130 125 130!important;
  border-image-width:40px!important;
  background:linear-gradient(115deg,#fff8eef4,#fff0ecf0 57%,#ffe8e5ea)!important;
  text-align:center!important;
}
html body.celestial-palace #matchView .match-hero h2{
  color:#b7353e!important;
  font-size:clamp(30px,4.1vw,51px)!important;
  text-shadow:0 2px 0 #ffe0b2!important;
}
html body.celestial-palace #matchView .match-hero-kicker,
html body.celestial-palace #matchView .match-hero .match-thread{color:#bd4556!important}
html body.celestial-palace #matchView .match-hero .match-thread span:nth-child(2){
  background:radial-gradient(circle,#ffe7a3,#b93445)!important;
  border:2px solid #edb36b!important;
  box-shadow:0 0 14px #e9a24d60!important;
}
html body.celestial-palace #matchView :is(.match-submit,.match-confirm,.match-pay-button){
  background:linear-gradient(135deg,#b5434f,#dc6b6d,#a72b47)!important;
  border:2px solid #e4b277!important;color:#fff9e8!important;
  border-radius:999px!important;
  box-shadow:inset 0 2px 0 #fff4d255,0 5px 0 #85334455!important;
}
html body.celestial-palace #matchView :is(.match-partner,.match-score-panel,.match-chart-card,.match-paywall){
  background:linear-gradient(130deg,#fff9f4,#fff0ed)!important;
  border-image-source:url('/assets/ornate-unified/frame-celebrate.webp')!important;
}
/* 招財區：金元寶與金幣只在邊緣當裝飾，真正文字保持可選取、可操作。 */
html body.celestial-palace #wealthView .wealth-hero{
  border-image-source:url('/assets/ornate-unified/wealth-ornate.webp')!important;
  border-image-slice:125 125 120 125!important;
  border-image-width:40px!important;
  background:linear-gradient(110deg,#fff9e9f9,#fff6e5f7,#ffeed6f9)!important;
  color:#6e4d36!important;
}
html body.celestial-palace #wealthView .wealth-hero-copy h2{
  color:#804475!important;font-size:clamp(29px,3.8vw,47px)!important;
  text-shadow:0 1px 0 #ffe39e!important;
}
html body.celestial-palace #wealthView .wealth-hero-coin{
  border:3px solid #d5a150!important;
  background:radial-gradient(circle,#fff2bb 8%,#f7cc75 45%,#c58930 100%)!important;
  box-shadow:0 0 22px #dfa84a79,inset 0 0 0 4px #fff0c1!important;
}
html body.celestial-palace #wealthView :is(.wealth-submit,.wealth-pay-button,.wealth-unlock-btn){
  background:linear-gradient(115deg,#af7834,#d5ad58,#a56a2a)!important;
  color:#fffdf2!important;border:2px solid #edc77e!important;
  border-radius:999px!important;
}
html body.celestial-palace #wealthView :is(.wealth-input-card,.wealth-paywall,.wealth-results,.wealth-stat){
  border-image-source:url('/assets/ornate-unified/frame-grand.webp')!important;
  background:linear-gradient(140deg,#fffdf2,#fff5db)!important;
}
/* 模態框、解鎖卡、QA 和每日運勢內頁也有同樣的花金框。 */
html body.celestial-palace :is(.auth-dialog,.life-dialog,.pay-modal-dialog,.match-modal-dialog,.wealth-modal-dialog,.tarot-pay-dialog,.cat-share-preview-panel,.ai-qa,.ai-report,.ai-report-card,.annual-unlock-card,.match-pay-card,.wealth-gate-card){
  border:10px solid transparent!important;
  border-image-source:var(--mu-border)!important;
  border-image-slice:70 70 70 70!important;
  border-image-width:22px!important;
  border-image-repeat:stretch!important;
  background:linear-gradient(140deg,#fffaf2,#fff2ed)!important;
  box-shadow:0 15px 30px #5d355744!important;
}
html body.celestial-palace :is(.auth-dialog,.life-dialog,.pay-modal-dialog,.match-modal-dialog,.wealth-modal-dialog,.tarot-pay-dialog,.cat-share-preview-panel){padding:25px 24px!important}
/* 日運頁（原本 body .card 有不同 CSS） */
html body.celestial-palace .wrap>.hero.cat-daily-hero {background:linear-gradient(130deg,#fff7ec,#fce6ef)!important}
html body.celestial-palace .wrap .card{padding:24px!important}
/* 手機縮排：花飾不得遮住文字；表單控制項無水平溢出。 */
@media(max-width:900px){
  html body.celestial-palace .shell{width:calc(100% - 20px)!important;padding:0 12px!important;margin-top:9px!important}
  html body.celestial-palace :is(.top,header.top#catTop){margin:0 -12px 14px!important;padding:12px 15px!important}
  html body.celestial-palace .cat-section-heading{padding:11px 24px 12px!important;min-height:60px!important}
}
@media(max-width:620px){
  html body.celestial-palace #homeHero.hero.cat-hero{
    border-radius:22px!important;padding:0 11px 16px!important;
    margin-bottom:13px!important;
  }
  html body.celestial-palace #homeHero .cat-hero-art,
  html body.celestial-palace #homeHero .cat-hero-art.lm-palace-scene{
    width:calc(100% + 22px)!important;margin:0 -11px!important;
    height:clamp(420px,126vw,595px)!important;min-height:0!important;
    background-image:url('/assets/ornate-unified/hero-mobile.webp')!important;
    background-size:cover!important;background-position:center 42%!important;
    mask-image:linear-gradient(#000 0%,#000 91%,transparent 100%)!important;
  }
  html body.celestial-palace #homeHero .cat-hero-copy{
    margin:-50px auto 0!important;padding:0 0 8px!important;
  }
  html body.celestial-palace #homeHero h1#catHeroTitle{
    height:76px!important;width:min(100%,360px)!important;
    font-size:clamp(27px,8vw,39px)!important;
    letter-spacing:.1em!important;padding:0 8px!important;
  }
  html body.celestial-palace #homeHero .cat-hero-slogan{font-size:17px!important;margin:4px 0 2px!important}
  html body.celestial-palace #homeHero .cat-hero-subtitle{font-size:11px!important;margin-bottom:18px!important}
  html body.celestial-palace #homeHero .cat-quick-form{
    display:grid!important;grid-template-columns:1fr!important;
    width:100%!important;gap:8px!important;
    padding:30px 13px 15px!important;
    border:9px solid transparent!important;
    border-image-width:19px!important;
    margin:0 auto!important;
  }
  html body.celestial-palace #homeHero .cat-quick-field{
    display:grid!important;grid-template-columns:minmax(92px,35%) minmax(0,1fr)!important;
    align-items:center!important;gap:5px!important;
  }
  html body.celestial-palace #homeHero .cat-quick-field>label{
    display:flex!important;align-items:center!important;
    gap:5px!important;min-width:0!important;
    white-space:nowrap!important;font-size:12px!important;margin:0!important;
  }
  html body.celestial-palace #homeHero .cat-quick-field>label>span{width:27px!important;height:27px!important;flex:0 0 27px!important}
  html body.celestial-palace #homeHero .cat-quick-field .cat-native-input,
  html body.celestial-palace #homeHero .cat-quick-field>select{min-width:0!important;width:100%!important;max-width:100%!important}
  html body.celestial-palace #homeHero .cat-quick-submit{width:100%!important;margin-top:8px!important;height:53px!important}
  html body.celestial-palace .cat-home-extras{gap:16px!important}
  html body.celestial-palace .cat-section-heading{padding:10px 19px!important;gap:6px!important;min-height:58px!important}
  html body.celestial-palace .cat-section-heading>span{font-size:15px!important}
  html body.celestial-palace .cat-section-heading small,
  html body.celestial-palace #catDateLabel{font-size:11px!important;padding:3px 7px!important;max-width:60%!important}
  html body.celestial-palace :is(.cat-daily-feature,.cat-feature-panel){border-image-width:17px!important}
  html body.celestial-palace .cat-daily-body{padding:14px 12px 16px!important}
  html body.celestial-palace .cat-feature-cards{padding:12px 9px 15px!important;gap:5px!important}
  html body.celestial-palace .cat-feature-card{padding:7px 3px 10px!important;border-width:5px!important;border-image-width:9px!important}
  html body.celestial-palace :is(.match-hero,.wealth-hero,.wx-hero,.astro-page-hero,.meihua-hero,.tarot-hero){
    padding:20px 14px 24px!important;border-width:10px!important;border-image-width:18px!important;
  }
  html body.celestial-palace #matchView .match-hero h2{font-size:31px!important}
  html body.celestial-palace #wealthView .wealth-hero-copy h2{font-size:29px!important}
  html body.celestial-palace :is(.panel,.form-panel,.result-panel,.match-form,.match-empty,.match-result,.match-paywall,.wealth-input-card,.wealth-paywall,.wealth-results,.wx-overview,.wx-pair,.wx-deep,.astro-page-workspace,.meihua-form,.tarot-screen,.tarot-history-wrap,.card){
    border-width:8px!important;border-image-width:16px!important;padding:14px 10px!important;
  }
  html body.celestial-palace :is(.match-partner,.match-paid-preview,.match-score-panel,.match-chart-card,.wx-info-card,.wx-relation-chip,.wealth-stat,.tarot-meaning-card){
    border-width:5px!important;border-image-width:10px!important;
  }
}
@media(max-width:360px){
  html body.celestial-palace #homeHero .cat-quick-field{grid-template-columns:88px minmax(0,1fr)!important}
  html body.celestial-palace #homeHero .cat-quick-field>label{font-size:11px!important;gap:3px!important}
  html body.celestial-palace .cat-section-heading{padding-inline:16px!important}
  html body.celestial-palace .cat-section-heading>span{font-size:14px!important}
  html body.celestial-palace #catDateLabel{font-size:10px!important}
}

/* v7.1：合盤／財運生成美術稿含文字，嚴禁直接當 9-slice 框，避免與真實標題重疊。 */
html body.celestial-palace #matchView .match-hero,
html body.celestial-palace #wealthView .wealth-hero {
  position:relative!important;
  border-image-source:url('/assets/ornate-unified/frame-grand.webp')!important;
  border-image-slice:72 75 72 75!important;
  border-image-width:27px!important;
  border-image-repeat:stretch!important;
}
html body.celestial-palace #matchView .match-hero {
  background:linear-gradient(105deg,rgba(255,248,239,.94),rgba(255,230,233,.93),rgba(255,245,239,.94))!important;
}
html body.celestial-palace #wealthView .wealth-hero {
  background:linear-gradient(115deg,rgba(255,250,236,.94),rgba(255,241,208,.93),rgba(255,247,223,.94))!important;
}
html body.celestial-palace #matchView .match-hero::after,
html body.celestial-palace #wealthView .wealth-hero::after {
  content:""!important;display:block!important;position:absolute!important;
  z-index:0!important;right:0!important;bottom:0!important;
  width:36%!important;height:85%!important;
  background-image:url('/assets/ornate-unified/love-bloom.webp')!important;
  background-repeat:no-repeat!important;background-size:auto 100%!important;
  background-position:left bottom!important;opacity:.17!important;
  transform:scaleX(-1)!important;pointer-events:none!important;
}
html body.celestial-palace #wealthView .wealth-hero::after {
  background-image:url('/assets/ornate-unified/wealth-ingots.webp')!important;
  opacity:.22!important;
}
html body.celestial-palace #matchView .match-hero>*,
html body.celestial-palace #wealthView .wealth-hero>* {
  position:relative!important;z-index:1!important;
}
/* 專屬無字框：真正從喜慶／招財原畫的四邊提取，中央完全透明，沒有影像內的假文字。 */
html body.celestial-palace #matchView .match-hero{
  border-image-source:url('/assets/ornate-unified/love-frame-clean-v82.webp')!important;
  border-image-slice:110 170 110 170!important;
  border-image-width:32px!important;
}
html body.celestial-palace #wealthView .wealth-hero{
  border-image-source:url('/assets/ornate-unified/wealth-frame-clean-v82.webp')!important;
  border-image-slice:110 170 110 170!important;
  border-image-width:32px!important;
}
/* 最終排版：兩個主題標題在小手機仍完整單行，去掉裁切殘影。 */
html body.celestial-palace #matchView .match-hero::after,
html body.celestial-palace #wealthView .wealth-hero::after{
  content:none!important;display:none!important;
}
@media(max-width:620px){
 html body.celestial-palace #matchView .match-hero h2{
  font-size:clamp(20px,6.15vw,27px)!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  line-height:1.55!important;
 }
 html body.celestial-palace #wealthView .wealth-hero-copy h2{
  font-size:clamp(19px,6.1vw,26px)!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  line-height:1.55!important;
 }
 html body.celestial-palace #matchView .match-hero,
 html body.celestial-palace #wealthView .wealth-hero{
  padding:25px 18px!important;
 }
}
/* 動態插入的貓咪主題標題、分頁、合盤說明與問答也不可留普通細框。 */
html body.celestial-palace :is(.cat-inner-ribbon,.cat-inline-hero-media,.fortune-tab.cat-boutique-card,.wx-generic-alert,.wx-profile-status,.tarot-pick,.tarot-result-summary,.tarot-premium-gate,.tarot-history-item,.astro-aspect,.match-score-signal,.match-chart-card,.wealth-basics-card,.wealth-report-card,.wealth-decade-cell,.life-question,.life-question-card,.ai-qa-item,.ai-report-heading){
  border:6px solid transparent!important;
  border-image-source:url('/assets/ornate-unified/frame-grand.webp')!important;
  border-image-slice:70 70 70 70!important;
  border-image-width:12px!important;
  border-image-repeat:stretch!important;
  background:linear-gradient(130deg,rgba(255,251,242,.97),rgba(255,239,237,.93))!important;
  box-shadow:0 5px 14px rgba(119,72,96,.10)!important;
}
html body.celestial-palace :is(.cat-inner-ribbon,.cat-inline-hero-media){
  padding:12px 17px!important;
  min-width:0!important;
  overflow:visible!important;
}
html body.celestial-palace .fortune-tab.cat-boutique-card{
  border-image-width:10px!important;border-radius:25px!important;
}

/* SOURCE: user-experience-v57.css */
/* v57: stable visual layers during keyboard resize and long report generation. */
html{background:#f8e8ed;}
html body.celestial-palace{background:transparent!important;}
#siteAnchoredBackdrop{
 position:fixed;inset:0;top:0;left:0;width:100%;height:100vh;height:100lvh;
 background:var(--lm-scene) center top/100% auto repeat-y;
 pointer-events:none;z-index:0;transform:translateZ(0);
}
body.celestial-palace>.shell{position:relative;z-index:1;}
/* Keep modal and full-screen animation above fixed wallpaper. */
body.celestial-palace .cat-loading-overlay{z-index:11000;}
body.celestial-palace .cat-loading-overlay{
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 background:rgba(33,23,47,.68)!important;
}
#catLoadingOverlay:not(.hidden){display:flex!important;}
#catLoadingOverlay .cat-chase-scene,#catLoadingOverlay .cat-running-animation{opacity:1;filter:none!important;}
/* Prevent vertical keyboard resizes from rescaling the illustrated background. */
@media(max-width:700px){
 #siteAnchoredBackdrop{background-size:100% auto!important;background-position:center top!important;}
 body.celestial-palace :is(.life-dialog,.auth-dialog,.tarot-pay-dialog,.pay-modal-dialog){
  max-height:calc(100svh - 32px)!important;overflow-y:auto;-webkit-overflow-scrolling:touch;
 }
 .life-modal{align-items:start;overflow-y:auto;padding:18px 14px!important;}
 .life-modal .life-dialog{margin:auto 0;}
}
.life-reuse{padding:13px 14px;margin:14px 0 16px;border:1px solid #ddc4a0;border-radius:14px;background:#fff9ef;box-shadow:0 4px 16px #6f4f4520}
.life-reuse.hidden{display:none!important}
.life-reuse-heading{font-weight:800;color:#76516d}
.life-reuse p{margin:4px 0 11px;font-size:13px;line-height:1.6;color:#826a64}
.life-reuse-actions{display:flex;gap:10px;flex-wrap:wrap}
.life-reuse-actions button{flex:1 1 140px;min-height:40px;padding:8px 10px;border-radius:999px;background:#83588c;color:#fff9ec;border:1px solid #d9b785;font-weight:700}
.life-reuse-actions button+button{color:#78516b;background:#fff3eb}
.life-clear-previous{border:0;background:transparent;padding:8px 0 0;color:#8d6b64;font-size:12px;text-decoration:underline}

body.celestial-palace>.top,body.celestial-palace>.wrap,body.celestial-palace>.footer{position:relative;z-index:1;}

/* v66 — Android keyboard stabilization. Keep ONE document scroller.
   The opening keyboard should neither freeze the whole page at 100svh nor
   resize and repaint a giant blurred illustration every IME frame. */
#siteAnchoredBackdrop{display:none!important}
@media(max-width:767px){
  /* v8's high-specificity :has() rules lock the entire document at 100% and
     put all scrolling inside .shell. Undo that, except during the intro gate. */
  html:not(.intro-v39-needed):has(body.celestial-palace > .shell),
  html:not(.intro-v39-needed):has(body.celestial-palace > .shell) body.celestial-palace{
    height:auto!important;min-height:100%!important;
    overflow-x:clip!important;overflow-y:visible!important;
    overscroll-behavior:auto!important;
    scroll-behavior:auto!important;
  }
  /* The original decorative scene is painted only once at a stable, pixel-
     measured launch height. We do not write to that height on focus/resize. */
  html body.celestial-palace:has(> .shell)::before{
    position:fixed!important;inset:auto!important;
    top:0!important;left:0!important;right:auto!important;bottom:auto!important;
    width:100%!important;height:var(--kb-scene-height,100lvh)!important;
    min-height:0!important;max-height:none!important;
    background-image:var(--mu-bg)!important;
    background-position:center top!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
    transform:translateZ(0)!important;
    backface-visibility:hidden!important;
    filter:none!important;
    transition:none!important;
    animation:none!important;
    pointer-events:none!important;
    will-change:auto!important;
  }
  /* Remove the old hard 100svh scroller. Content must use the browser's
     natural document scrolling when a focused field is lifted above IME. */
  html body.celestial-palace:has(> .shell)>.shell{
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:clip!important;
    overflow-y:visible!important;
    scroll-behavior:auto!important;
    overscroll-behavior:auto!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    background:rgba(255,249,240,.84)!important;
    transition:none!important;
    transform:none!important;
  }
  /* The moving keyboard and a full-page backdrop-filter force composition
     of almost all page pixels; modal backdrops use a flat plum veil. */
  html body.celestial-palace :is(
    .life-backdrop,.auth-modal-backdrop,.pay-modal-backdrop,
    .match-modal-backdrop,.wealth-modal-backdrop,
    .tarot-pay-backdrop,.tarot-products-backdrop
  ){
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
  }
  html body.celestial-palace :is(
    .life-dialog,.auth-dialog,.pay-modal-dialog,
    .match-modal-dialog,.wealth-modal-dialog,.tarot-pay-dialog
  ){
    scroll-behavior:auto!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  /* Existing v37 uses 100dvh on the login container; this triggers a full
     resize every keyboard frame in some Android WebViews. Anchor by inset. */
  html body.celestial-palace #authModal.auth-modal:not(.hidden){
    inset:0!important;height:auto!important;min-height:0!important;
    max-height:none!important;
    align-items:flex-start!important;
    overflow-y:auto!important;scroll-behavior:auto!important;
  }
  /* Prevent the life questionnaire from repeatedly recentering on focus. */
  html body.celestial-palace #lifeModal.life-modal:not(.hidden){
    align-items:flex-start!important;justify-items:center!important;
    overflow-y:auto!important;scroll-behavior:auto!important;
  }
  /* Backstops for any other earlier 100dvh dialog declarations. */
  html body.celestial-palace :is(
    .life-dialog,.pay-modal-dialog,.match-modal-dialog,
    .wealth-modal-dialog,.tarot-pay-dialog
  ){
    max-height:min(calc(100svh - 28px),790px)!important;
    overflow-y:auto!important;
  }
  html body.celestial-palace :is(
    textarea,input[type="text"],input[type="email"],input[type="password"],
    input[type="tel"],input[type="number"],input[type="search"],input[type="url"]
  ){font-size:16px!important}
}
