/* 四個工具沿用淺色工作面，以灰紫、灰綠與玫瑰細節銜接首頁。棋面與共用對話框保留原色。 */
body :is(#divination-view,#chart-view,#numerology-view,#lucky-view){color:var(--sunway-work-ink,#443944)}
body :is(#divination-view,#chart-view,#numerology-view) .workspace-heading h1,
body #lucky-view h1{color:var(--sunway-work-purple,#62465e)}
body :is(#divination-view,#chart-view,#numerology-view) .workspace-heading p,
body #chart-view :is(.chart-entry-note,.chart-operation-note,#chart-instruction,#chart-progress,.chart-female-option){color:var(--sunway-work-muted,#776c73)}

/* 日期與選單維持淺底深字及原生控制項。 */
body #numerology-view :is(input,select),
body #birthday-reference-results select{background:var(--sunway-work-surface,#fffdf8);border-color:var(--sunway-work-line,#e1d6d9);color:var(--sunway-work-ink,#443944);caret-color:var(--sunway-work-ink,#443944);color-scheme:light}
body #numerology-view :is(input,textarea)::placeholder{color:var(--sunway-work-muted,#776c73)}
body :is(#numerology-view,#birthday-reference-results) select option{background:var(--sunway-work-surface,#fffdf8);color:var(--sunway-work-ink,#443944)}
body #numerology-view :is(input,select,textarea):focus,
body #birthday-reference-results :is(summary,select):focus-visible{border-color:var(--sunway-work-rose,#a8756b);outline-color:var(--sunway-work-rose,#a8756b)}
body #numerology-view .birthday-retry{margin:10px 0 0;padding:8px 14px;border:1px solid #b5c9b9;border-radius:8px;background:#e7eee5;color:#375c50;font:inherit;font-size:13px;line-height:1.5}
.reading>.record-line-friend{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 0;padding:10px 16px;min-height:44px;border:1px solid #d2b48c;border-radius:11px;background:linear-gradient(120deg,#fffaf1,#f5ece5);box-shadow:inset 0 1px 0 #fffdf8;color:#624052;font-size:14px;font-weight:500;letter-spacing:.5px;line-height:1.5;text-decoration:none}
.reading>.record-line-friend>span{display:grid;place-items:center;width:26px;height:26px;border:1px solid #cbb08d66;border-radius:50%;background:#fffdf4;color:#927149;font-size:14px;line-height:1}.reading>.record-line-friend:hover{border-color:#b99b7c;background:#f1e4dc;color:#54243e}.record-line-friend:focus-visible{outline:2px solid #9c7a50;outline-offset:3px}.record-line-friend[hidden],#reading-save[hidden]~.record-line-friend{display:none}
#reading-save>.record-save-notes{margin:0 0 14px;line-height:1.55}#reading-save .record-principle-note{color:#883e4b}#reading-save .record-storage-note{color:#6e7068}

/* 生命靈數與九星：保留原卡片層次。 */
body #numerology-view>.birthday-section,
body #numerology-view .birthday-results>div{background:var(--sunway-work-surface,#fffdf8);border-color:var(--sunway-work-line,#e1d6d9);color:var(--sunway-work-ink,#443944)}
body #numerology-view .birthday-section :is(h2,label){color:var(--sunway-work-purple,#62465e)}
body #numerology-view .birthday-results>div>strong,
body #numerology-view .birthday-results>p{color:var(--sunway-work-muted,#776c73)}
body #numerology-view .birthday-results>div>p{color:var(--sunway-work-sage,#3f6658)}

/* 數字能量與九星五行：原有暖紙漸層、能量圈及實際色票保留。 */
body #birthday-reference-results{color:var(--sunway-work-ink,#443944)}
body #birthday-reference-results :is(.bref-section,.bref-five-stage){border-color:var(--sunway-work-line,#e1d6d9)}
body #birthday-reference-results :is(h2,h3,h4,.bref-trait-title,summary,.bref-five-result>strong,.bref-five-stage-code){color:var(--sunway-work-purple,#62465e)}
body #birthday-reference-results :is(.bref-intro,.bref-empty,.bref-method p,.bref-caption,.bref-trait-picker,.bref-trait-content>p,.bref-trait-part p,.bref-cycle>p,.bref-five-note,.bref-five-personality,.bref-bullets,.bref-data-note,.bref-five-stage-description,.bref-five-stage-summary,.bref-mission,.bref-pill,.bref-connection-list li,.bref-cycle-value h3,.bref-five-type,.bref-color-group h4,.bref-color){color:var(--sunway-work-muted,#776c73)}
body #birthday-reference-results :is(.bref-section-index,.bref-connection-digits){color:var(--sunway-work-rose,#a8756b)}
body #birthday-reference-results :is(.bref-energy-circle strong,.bref-mission strong,.bref-cycle-value strong){color:var(--sunway-work-purple,#62465e)}
body #birthday-reference-results .bref-energy-item small,
body #birthday-reference-results .bref-energy-item.is-empty :is(small,strong){color:var(--sunway-work-muted,#776c73)}
body #birthday-reference-results .bref-five-stage.is-current{background:#f0f3ec;border-color:#bdcdbf}
body #birthday-reference-results .bref-five-current{background:#edf2e7;border-color:#c7d3bf;color:var(--sunway-work-sage,#3f6658)}

/* 開運物沿用原淺色商品卡與圖片放大視窗。 */
body #lucky-view .lu-lucky-card,
body #lucky-view .lu-lucky-dialog{border-color:var(--sunway-work-line,#e1d6d9)}
body #lucky-view :is(.lu-lucky-copy h2,.lu-lucky-dialog-heading h2){color:var(--sunway-work-purple,#62465e)}
body #lucky-view :is(.lu-lucky-eyebrow,.lu-lucky-intro,.lu-lucky-source-link){color:var(--sunway-work-muted,#776c73)}
body #lucky-view .lu-lucky-heading-icon{border-color:#dbc7c2;color:var(--sunway-work-rose,#a8756b)}
body #lucky-view .lu-lucky-contact{border-color:var(--sunway-work-line,#e1d6d9)}
body #lucky-view .lu-lucky-contact h3{color:var(--sunway-work-sage,#3f6658)}
body #lucky-view .lu-lucky-contact-link{background:var(--sunway-work-sage,#3f6658);border-color:var(--sunway-work-sage,#3f6658);color:#fffdf8}
