/* Shared neutral interface theme. Data visualizations and artwork keep their colors. */
body.fatemate-shell-ready,html.fm-workspace:has(.aiboys-divination-panel) body{--fate-ink:#171717;--fate-muted:#737373;--fate-rule:#e5e5e5;--fate-surface:#fafafa;--fate-action:#171717;background:#fff!important;color:#171717}
body.fatemate-shell-ready :is(.fate-login-link,.fatemate-shell-tools){border-color:#171717;background:#171717;color:#fff!important}
body.fatemate-shell-ready .fate-login-link:hover{background:#393939}
body.fatemate-shell-ready :is(.fate-menu-trigger:hover,.fate-menu-trigger[aria-expanded=true],.fate-nav-group a:hover,.fate-account-options a:hover,.fate-account-admin a:hover){background:#f3f3f3;color:#171717}
body.fatemate-shell-ready .fate-popover{border-color:#e7e7e7;background:#fff;color:#171717;box-shadow:0 14px 38px #00000017}
body.fatemate-shell-ready :is(.fate-avatar,.fate-account-credits){background:#f1f1f1;color:#333}
body.fatemate-shell-ready .fate-account-credits strong{color:#171717}
body.fatemate-shell-ready :is(.fate-brand-mark img,.fate-auth-brand-mark img){filter:grayscale(1)}
html body.fatemate-shell-ready .fate-site-footer{background:#fff;border-color:#e8e8e8;color:#666}
body.fatemate-shell-ready :is(.fate-footer-brand>a,.fate-footer-column h2,.fate-footer-archive-heading h2){color:#1b1b1b}
body.fatemate-shell-ready :is(.fate-footer-column a,.fate-footer-extra-links a,.fate-footer-brand p,.fate-footer-archive-heading p){color:#777}
body.fatemate-shell-ready :is(.fate-footer-archive,.fate-footer-bottom){border-color:#e9e9e9}
body.fatemate-shell-ready :is(.fatemate-login-global,.commerce-modal){background:#fff;border-color:#e3e3e3;color:#171717}
body.fatemate-shell-ready :is(.fate-global-google){background:#fff;border-color:#dedede;color:#171717}
body.fatemate-shell-ready :is(.fate-global-google):hover{background:#f7f7f7;border-color:#aaa}
body.fatemate-shell-ready :is(.fate-global-account-link,.fate-global-login-kicker){color:#666}

/* Page headings and supporting text. */
body.fatemate-shell-ready :is(.commerce-main,.ref-layout,.qimen-main,.life-main,.network-main,.history-main,.relations-main,.agent-main,.tarot-main,.extra-main){color:#222}
body.fatemate-shell-ready :is(.commerce-main h1,.ref-intro h1,.qimen-header h1,.life-header h1,.network-header h1,.history-heading h1,.relations-heading h1,.agent-intro h1,.tarot-header h1,.fm-page-heading h1){color:#171717}
body.fatemate-shell-ready :is(.commerce-kicker,.ref-kicker,.qimen-header>p:first-child,.life-header>p:first-child,.network-header>p:first-child,.history-heading>p:first-child,.relations-heading>span,.tarot-eyebrow,.agent-intro>span){color:#777}
body.fatemate-shell-ready :is(.commerce-lead,.ref-intro-copy,.qimen-header>p:last-child,.life-header>p:last-child,.network-header>p:last-child,.history-heading>p:last-child,.relations-heading>p:last-child,.agent-intro p,.tarot-header>p:last-child,.fm-page-heading>p){color:#696969}
body.fatemate-shell-ready :is(.account-hero,.qimen-header,.life-header,.network-header,.history-heading,.relations-heading){background:#fff;border-color:#e8e8e8}
body.fatemate-shell-ready .account-hero:after{border-color:#e4e4e4}
body.fatemate-shell-ready :is(.account-sidebar,.history-side){border-color:#e8e8e8}
body.fatemate-shell-ready :is(.account-sidebar a,.history-side a){color:#303030}
body.fatemate-shell-ready :is(.account-sidebar a.is-active,.account-sidebar a:hover,.history-side a[aria-current=page],.history-side a:hover){background:#f0f0f0;color:#171717}

/* Panels, fields and neutral controls. */
body.fatemate-shell-ready :is(.account-panel,.account-history,.admin-panel,.pricing-card,.ref-birth-form,.qimen-form,.qimen-result,.life-form,.life-result,.network-panel,.history-list-panel,.history-detail,.relations-form,.relations-result,.fm-birth-form,.aiboys-panel,.aiboys-divination-panel){background:#fff;border-color:#e3e3e3;box-shadow:none}
body.fatemate-shell-ready :is(.account-panel h2,.account-history h2,.admin-panel h2,.pricing-card h2,.pricing-card h3,.qimen-form-head h2,.qimen-result-head h2,.qimen-placeholder h2,.life-form-head h2,.life-result-head h2,.network-panel h2,.history-list-heading h2,.history-detail h2,.history-placeholder h2,.relations-form-title h2,.relations-result-heading h2){color:#171717}
body.fatemate-shell-ready :is(.account-panel p,.account-empty,.history-empty,.history-placeholder p,.qimen-note,.qimen-placeholder p,.life-note,.network-note,.relations-note,.ref-intro-note,.ref-footnote){color:#737373}
body.fatemate-shell-ready :is(.account-avatar,.fate-avatar){background:#ededed;color:#262626}
body.fatemate-shell-ready :is(#credits,#membership){background:#fafafa;border-color:#e3e3e3}
body.fatemate-shell-ready :is(.history-placeholder,.network-empty,.life-disclosure,.commerce-note,.tarot-basic,.tarot-ai,.tarot-revealed){background:#f7f7f7;border-color:#e4e4e4;color:#555}
body.fatemate-shell-ready :is(.payment-table-head,.admin-user-header){background:#f5f5f5;color:#333}
body.fatemate-shell-ready :is(.ref-field input:not([type=radio]),.ref-field select,.qimen-fields input,.qimen-fields select,.qimen-ai textarea,.life-fields input,.life-fields select,.network-panel input,.network-panel select,.relations-fields input,.relations-fields select,.fm-birth-form input:not([type=checkbox]):not([type=radio]),.fm-birth-form select,.aiboys-divination-form input,.aiboys-divination-form textarea,.aiboys-divination-form select){background:#fafafa;border-color:#ddd;color:#222}
body.fatemate-shell-ready :is(.ref-gender-options label:has(input:checked),.tarot-setup fieldset input:checked+span,.relations-people fieldset){background:#f6f6f6;border-color:#aaa;color:#222}
body.fatemate-shell-ready :is(.pricing-card.featured){border-color:#999}
body.fatemate-shell-ready :is(.text-link,.fate-save-chart,.relations-heading>a,.history-login){color:#333;border-color:#bcbcbc}
body.fatemate-shell-ready :is(.pricing-button.primary,.ref-submit,.qimen-form button[type=submit],.qimen-ai button,.life-form button[type=submit],.network-panel button[type=submit],.relations-submit,.relations-ai button,.agent-form button,.fm-birth-form button.bg-primary,.aiboys-divination-submit,.tarot-ai button,.tarot-actions button:first-child){background:#171717;border-color:#171717;color:#fff}
body.fatemate-shell-ready :is(.pricing-button.primary,.ref-submit,.qimen-form button[type=submit],.qimen-ai button,.life-form button[type=submit],.network-panel button[type=submit],.relations-submit,.relations-ai button,.agent-form button,.fm-birth-form button.bg-primary,.aiboys-divination-submit,.tarot-ai button,.tarot-actions button:first-child):hover:not(:disabled){background:#393939;border-color:#393939;color:#fff}
body.fatemate-shell-ready :is(.pricing-button.primary,.ref-submit,.qimen-form button[type=submit],.life-form button[type=submit]):disabled{background:#bdbdbd;border-color:#bdbdbd;color:#fff}
body.fatemate-shell-ready :is(.account-panel .text-link,.pricing-button.secondary,.history-login){border-color:#bcbcbc;color:#222}
body.fatemate-shell-ready :is(.account-panel .text-link,.pricing-button.secondary,.history-login):hover{background:#f2f2f2}
body.fatemate-shell-ready .pricing-label{color:#444;border-color:#ccc;background:#f3f3f3}
body.fatemate-shell-ready :is(.agent-sidebar-note,.agent-welcome,.agent-save-status){color:#777}
body.fatemate-shell-ready :is(.admin-access-badge,.admin-user-status:not(.is-banned)){background:#efefef;color:#444;border-color:#ddd}
body.fatemate-shell-ready .agent-form textarea{color:#222;border-color:#ddd;background:#fff}
body.fatemate-shell-ready :is(#network-status,#person-status,#edge-status,#network-status a){color:#666}
html.fm-workspace .fm-birth-form :is(input,select,button[role=combobox]){color:#222!important;border-color:#ddd!important;background:#fafafa!important}
html.fm-workspace .aiboys-divination-panel[data-divination-kind=huangli] .aiboys-almanac-date{color:#222}
html.fm-workspace .aiboys-divination-panel[data-divination-kind=huangli] .aiboys-almanac-label{color:#666}
html.fm-workspace .aiboys-divination-panel[data-divination-kind=huangli] .aiboys-almanac-grid span:first-child{background:#f1f1f1;color:#222;border-color:#ddd}
html.fm-workspace .aiboys-divination-panel[data-divination-kind=huangli] .aiboys-almanac-grid b{color:#444}
html.fm-design body .bg-green-100{background-color:#f0f0f0!important}
html.fm-design body .text-green-700{color:#333!important}
body.fatemate-shell-ready :is(.qimen-placeholder-grid,.qimen-board){border-color:#e5e5e5}
body.fatemate-shell-ready .qimen-placeholder-grid>*{border-color:#ededed}
body.fatemate-shell-ready .qimen-placeholder-grid>*:nth-child(5){background:#f5f5f5;color:#aaa}
body.fatemate-shell-ready :is(.tarot-stage,.tarot-setup fieldset){background:#fafafa;border-color:#e5e5e5;color:#222}
body.fatemate-shell-ready :is(.fate-help,.fate-help h2,.fate-help h3){color:#222;border-color:#e5e5e5}
body.fatemate-shell-ready :is(.fate-help-related a,.fate-save-status a){color:#555}
body.fatemate-shell-ready :is(button,input,select,textarea,a):focus-visible{outline:2px solid #444;outline-offset:3px}

/* Captured workspace styles include high-specificity declarations. */
html.fm-workspace .fm-page-heading:has(>.aiboys-divination-panel)>h1{color:#171717!important}
html.fm-workspace .fm-page-heading:has(>.aiboys-divination-panel)>p{color:#6a6a6a!important}
html.fm-workspace :is(.aiboys-divination-form,.aiboys-divination-report,.aiboys-divination-panel:after){background:#fafafa!important;border-color:#e4e4e4!important;color:#222!important}
html.fm-workspace .aiboys-divination-form label{color:#333!important}
html.fm-workspace .aiboys-divination-form :is(input,textarea,select){background:#fff!important;border-color:#ddd!important;color:#222!important}
html.fm-workspace .aiboys-divination-submit{background:#171717!important;color:#fff!important}
html.fm-workspace .aiboys-divination-report .aiboys-visual{background:#f7f7f7!important;border-color:#e5e5e5!important}
html.fm-workspace .aiboys-divination-report .aiboys-yao-line{background:#333!important}
/* Component-specific selectors from the earlier account and workbench themes. */
body.fatemate-shell-ready .account-main{background:#fff}
body.fatemate-shell-ready .account-profile .account-avatar{background:#ededed;color:#222;border-color:#dedede}
body.fatemate-shell-ready .account-grid #credits .text-link{background:#171717;color:#fff;border-color:#171717}
body.fatemate-shell-ready .account-grid #membership>a.text-link{background:transparent;border-color:#aaa;color:#222}
body.fatemate-shell-ready .account-grid #membership>a.text-link:hover{background:#f2f2f2}
body.fatemate-shell-ready .ref-gender-options input:checked+span{background:#f1f1f1;border-color:#999;color:#171717}
body.fatemate-shell-ready .qimen-placeholder{background:#fafafa;border-color:#e4e4e4;color:#222}
body.fatemate-shell-ready .qimen-placeholder>span{color:#777}
body.fatemate-shell-ready .qimen-placeholder-grid i{background:#fafafa;border-color:#eee;color:#aaa}
body.fatemate-shell-ready .qimen-placeholder-grid i:nth-child(5){background:#f2f2f2}
body.fatemate-shell-ready :is(.qimen-fields label,.life-fields label,.network-fields label,.relations-fields label){color:#444}
body.fatemate-shell-ready .commerce-note strong{color:#222}
body.fatemate-shell-ready .pricing-card li:before{color:#555}
/* Additional tool and assistant surfaces. */
body.fatemate-shell-ready .extra-grid a{background:#fff;border-color:#e4e4e4;color:#222}
body.fatemate-shell-ready .extra-grid a:hover{background:#f7f7f7;border-color:#bbb}
body.fatemate-shell-ready .extra-grid .extra-icon{background:#f1f1f1;color:#333}
body.fatemate-shell-ready .extra-grid .extra-copy span{color:#777}
body.fatemate-shell-ready :is(.network-panel label,.network-panel button:not([type=submit])){color:#333}
body.fatemate-shell-ready .agent-new-chat{background:#171717;color:#fff}
body.fatemate-shell-ready :is(.agent-sidebar a:not(.agent-new-chat),.agent-welcome h2,.agent-prompts button,.agent-note a){color:#333}
body.fatemate-shell-ready .agent-prompts button{background:#fafafa;border-color:#e1e1e1}
html.fm-workspace body.fatemate-shell-ready .aiboys-divination-panel .aiboys-divination-submit{background:#171717!important;color:#fff!important}

/* Interior system — warm editorial surfaces shared with the homepage. */
body.fatemate-shell-ready:not(.fate-home-v2){--fate-ink:#191817;--fate-muted:#6d6963;--fate-rule:#dcd9d3;--fate-surface:#f3f2ef;--fate-action:#151515;background:#f6f5f2!important;color:#191817}
html body.fatemate-shell-ready:not(.fate-home-v2) .fate-site-footer{background:#f6f5f2!important;border-color:#d8d5d0!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.fate-popover,.fatemate-login-global,.commerce-modal-card){background:#f9f8f5!important;color:#211f1d;border-color:#dedad4!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.account-main,.commerce-main,.ref-layout,.qimen-main,.life-main,.network-main,.history-main,.relations-main,.agent-main,.tarot-main,.extra-main){background:transparent!important;color:#242321}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.account-hero,.qimen-header,.life-header,.network-header,.history-heading,.relations-heading,.tarot-header,.agent-intro){background:transparent!important;border-color:#d8d5d0!important}
body.fatemate-shell-ready:not(.fate-home-v2) .account-hero:after{display:none}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.commerce-main h1,.ref-intro h1,.qimen-header h1,.life-header h1,.network-header h1,.history-heading h1,.relations-heading h1,.agent-intro h1,.tarot-header h1,.fm-page-heading h1){font-family:Georgia,'Songti SC','Noto Serif CJK SC',serif!important;font-weight:500!important;letter-spacing:-.025em;color:#171717!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.account-panel h2,.account-history h2,.admin-panel h2,.pricing-card h2,.pricing-card h3,.ref-form-heading h2,.qimen-form h2,.qimen-result h2,.qimen-placeholder h2,.life-form h2,.life-result h2,.network-panel h2,.history-list-panel h2,.history-detail h2,.relations-form h2,.relations-result h2,.tarot-main h2,.agent-main h2,.aiboys-divination-form:before,.aiboys-divination-report:empty:before){font-family:Georgia,'Songti SC','Noto Serif CJK SC',serif!important;font-weight:500;color:#252321!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.account-panel,.account-history,.admin-panel,.pricing-card,.ref-birth-form,.qimen-form,.qimen-result,.qimen-placeholder,.life-form,.life-result,.network-panel,.history-list-panel,.history-detail,.relations-form,.relations-result,.aiboys-panel,.aiboys-divination-panel,.tarot-stage,.tarot-basic,.tarot-ai,.tarot-revealed,.extra-grid a){background:#f3f2ef!important;border-color:#dedbd6!important;box-shadow:none!important;border-radius:12px}
body.fatemate-shell-ready:not(.fate-home-v2) :is(#credits,#membership,.history-placeholder,.network-empty,.life-disclosure,.commerce-note,.tarot-setup fieldset){background:#efeeeb!important;background-image:none!important;border-color:#dedbd6!important;color:#4f4b47}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.account-sidebar,.history-side,.account-history-list,.payment-table-head,.qimen-form-head,.life-form-head,.relations-form-title){border-color:#dcd9d3!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.account-sidebar a.is-active,.account-sidebar a:hover,.history-side a[aria-current=page],.history-side a:hover,.fate-menu-trigger:hover){background:#e9e7e3!important;color:#191817!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.ref-field input:not([type=radio]),.ref-field select,.qimen-fields input,.qimen-fields select,.qimen-ai textarea,.life-fields input,.life-fields select,.network-panel input,.network-panel select,.relations-fields input,.relations-fields select,.aiboys-divination-form input,.aiboys-divination-form textarea,.aiboys-divination-form select,.tarot-main textarea,.tarot-main select,.admin-controls input,.admin-user-search input){background:#f9f8f6!important;border:1px solid #d4d0ca!important;color:#252321!important;border-radius:6px!important;box-shadow:none!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.ref-submit,.qimen-form button[type=submit],.qimen-ai button,.life-form button[type=submit],.network-panel button[type=submit],.relations-submit,.relations-ai button,.agent-form button,.aiboys-divination-submit,.pricing-button.primary,.tarot-ai button,.tarot-actions button:first-child){background:#151515!important;border-color:#151515!important;color:#fff!important;border-radius:6px!important;box-shadow:none!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.ref-submit,.qimen-form button[type=submit],.life-form button[type=submit],.network-panel button[type=submit],.relations-submit,.aiboys-divination-submit,.pricing-button.primary):hover:not(:disabled){background:#3a3835!important}
body.fatemate-shell-ready:not(.fate-home-v2) :is(button,input,select,textarea,a):focus-visible{outline:2px solid #55514c!important;outline-offset:3px}
body.fatemate-shell-ready:not(.fate-home-v2) :is(.ref-gender-options input:checked+span,.tarot-setup fieldset input:checked+span){background:#e6e4df!important;border-color:#aaa59d!important;color:#191817!important}
body.fatemate-shell-ready .ref-place-note{background:#ebe9e4;color:#67635e}
@media(min-width:1000px){body.fatemate-shell-ready .ref-intro:after{background:url('/_design/home-4k-fan.png') center/contain no-repeat!important;mix-blend-mode:multiply;border-radius:0!important}}
body.tarot-page.fatemate-shell-ready .tarot-header{background:transparent!important}
body.agent-page.fatemate-shell-ready .agent-intro{background:transparent!important}
body.agent-page.fatemate-shell-ready .agent-message.user:before{background:#e5e2dc!important;color:#252321!important}
body.agent-page.fatemate-shell-ready .agent-message.assistant:before{background:#242321!important;color:#fff!important}
html.fm-workspace body.fatemate-shell-ready main :is(.group\/sidebar-wrapper,main.relative){background:#f6f5f2!important}
html.fm-workspace:not(.fm-bazi-page) .fm-tool-page:has(> .fm-page-heading > .aiboys-divination-panel)>.fm-page-heading,
html.fm-local-birth-tool .fm-tool-page>.fm-page-heading,
html.fm-bazi-match-tool .fm-tool-page>.fm-page-heading{background:transparent!important;border-color:#d8d5d0!important}
html.fm-workspace body.fatemate-shell-ready :is(.aiboys-divination-form,.aiboys-divination-report,.aiboys-divination-panel:after){background:#f3f2ef!important;border-color:#dedbd6!important;color:#242321!important}
html.fm-workspace body.fatemate-shell-ready .aiboys-divination-form :is(input,textarea,select){background:#f9f8f6!important;border-color:#d4d0ca!important;color:#242321!important}
html.fm-workspace body.fatemate-shell-ready :is(.aiboys-divination-form:before,.aiboys-divination-report:empty:before){color:#252321!important}
html.fm-workspace body.fatemate-shell-ready .aiboys-divination-report:empty:after{color:#73706a!important}
html.fm-workspace body.fatemate-shell-ready :is(.fm-form-region form,.aiboys-panel,.aiboys-divination-panel){background:#f3f2ef!important;border-color:#dedbd6!important;box-shadow:none!important}
html.fm-workspace body.fatemate-shell-ready .aiboys-divination-submit{background:#151515!important;border-radius:6px!important}
@media(max-width:760px){body.fatemate-shell-ready:not(.fate-home-v2) :is(.account-hero,.qimen-header,.life-header,.network-header,.history-heading,.relations-heading){background:transparent!important} }
html.fm-workspace:has(.aiboys-divination-panel) body.fatemate-shell-ready,
html.fm-local-birth-tool body.fatemate-shell-ready,
html.fm-bazi-match-tool body.fatemate-shell-ready{background:#f6f5f2!important}
html.fm-workspace body.fatemate-shell-ready .fm-tool-page:has(.aiboys-divination-panel){background:#f6f5f2!important}
html.fm-workspace body.fatemate-shell-ready .aiboys-divination-panel :is(.aiboys-divination-form:before,.aiboys-divination-report:empty:before){color:#252321!important}
html.fm-local-birth-tool body.fatemate-shell-ready :is(.aiboys-panel-person,.fate-match-summary,.fate-daily-facts),
html.fm-bazi-match-tool body.fatemate-shell-ready .fm-birth-form>.grid>div{background:#efeeeb!important;border-color:#dedbd6!important}
html.fm-local-birth-tool body.fatemate-shell-ready :is(.aiboys-panel-title,.aiboys-panel-person h4),
html.fm-bazi-match-tool body.fatemate-shell-ready .fm-birth-form h2{color:#242321!important}
html.fm-local-birth-tool body.fatemate-shell-ready .aiboys-field :is(input,select),
html.fm-bazi-match-tool body.fatemate-shell-ready .fm-birth-form :is(input:not([type=checkbox]),select,button[role=combobox],button[aria-haspopup=dialog]){background:#f9f8f6!important;border-color:#d4d0ca!important;color:#252321!important}
html.fm-local-birth-tool body.fatemate-shell-ready .aiboys-panel-submit,
html.fm-bazi-match-tool body.fatemate-shell-ready .fm-birth-form button[type=submit]{background:#151515!important;border-radius:6px!important;color:#fff!important}
html.fm-workspace body.fatemate-shell-ready :is(.fm-page-heading>p,.aiboys-panel-hint){color:#69655f!important}
body.agent-page.fatemate-shell-ready :is(.agent-sidebar,.agent-form,.agent-message.assistant){background:#f3f2ef!important;border-color:#dedbd6!important}
body.agent-page.fatemate-shell-ready .agent-message.user{background:#e9e7e3!important;color:#252321!important}
body.agent-page.fatemate-shell-ready :is(.agent-prompts>span,.agent-prompts button){color:#4d4944!important;border-color:#d8d5d0!important}
body.fatemate-shell-ready :is(.qimen-form-head p,.life-form-head p,.qimen-note,.ref-footnote,.relations-note){color:#6d6963!important}
html.fm-workspace body.fatemate-shell-ready .aiboys-divination-form::before,
html.fm-workspace body.fatemate-shell-ready .aiboys-divination-report:empty::before{color:#252321!important}
body.agent-page.fatemate-shell-ready :is(.agent-welcome p,.agent-note,.agent-note a){color:#706c66!important}
body.agent-page.fatemate-shell-ready .agent-welcome>span{background:#ebe9e4!important;border-color:#dedbd6!important;color:#44413d!important}
/* Zi Wei reading workspace keeps the chart's meaningful star colors. */
html body.fatemate-shell-ready .ziwei-result-workspace.is-open,
html body.fatemate-shell-ready .ziwei-result-workspace.is-open .ziwei-result-toolbar{background:#f6f5f2!important;color:#242321!important;border-color:#dcd9d3!important}
html body.fatemate-shell-ready .ziwei-result-workspace.is-open :is(.ziwei-chart-wrap,.ziwei-analysis,.ziwei-chat-form,.ziwei-message-assistant .ziwei-message-body){background:#f3f2ef!important;border-color:#dedbd6!important}
html body.fatemate-shell-ready .ziwei-result-workspace.is-open :is(.ziwei-time-tabs,.ziwei-analysis-head,.ziwei-report-nav,.ziwei-message-user .ziwei-message-body){background:#e9e7e3!important;border-color:#dcd9d3!important}
html body.fatemate-shell-ready .ziwei-result-workspace.is-open :is(.ziwei-analysis-head button[aria-selected=true]){background:#191919!important;color:#fff!important}
html body.fatemate-shell-ready .ziwei-result-workspace.is-open :is(.ziwei-edit-birth,.ziwei-toolbar-label,.ziwei-toolbar-label small,.ziwei-result-date,.ziwei-analysis-head button,.aiboys-report-heading){color:#302e2b!important}
html body.fatemate-shell-ready .ziwei-result-workspace.is-open .ziwei-analysis-head button[aria-selected=true]{color:#fff!important}
html body.fatemate-shell-ready .ziwei-result-workspace.is-open .aiboys-report-body{color:#484541!important}
body.tarot-page.fatemate-shell-ready :is(.tarot-setup,.tarot-stage){background:#f3f2ef!important;border-color:#dedbd6!important}
/* Guides and editorial pages use the same paper canvas while retaining meaningful diagram colors. */
html.fm-content body.fatemate-shell-ready main{background-color:#f6f5f2!important;background-image:none!important}
html.fm-content body.fatemate-shell-ready main :is(h1,h2,h3){font-family:Georgia,'Songti SC','Noto Serif CJK SC',serif!important;letter-spacing:0;line-height:1.35;color:#201f1d}
html.fm-content body.fatemate-shell-ready .fm-reading article h2{line-height:1.4!important;font-size:22px!important;font-weight:500!important}
html.fm-content body.fatemate-shell-ready .fm-reading article p{line-height:1.75!important}
body.tarot-page.fatemate-shell-ready :is(.tarot-back,.tarot-card-back){filter:grayscale(1);border-color:#89857f}
body.tarot-page.fatemate-shell-ready .tarot-setup>input{background:#f9f8f6!important;border-color:#d4d0ca!important;color:#252321!important}
body.tarot-page.fatemate-shell-ready :is(.tarot-actions button:not(:first-child),.tarot-result-heading button){border-color:#bcb7b0!important;color:#4d4944!important}
body.tarot-page.fatemate-shell-ready :is(.tarot-stage-heading>span,.tarot-stage-heading p){color:#706c66!important}
html.fm-workspace .aiboys-divination-report .aiboys-yao-line.yin{background:linear-gradient(to right,#333 0 43%,transparent 43% 57%,#333 57%)!important}

/* Legacy directory, calendar detail, and long-form history templates. */
html.fm-workspace body.fatemate-shell-ready :is(.fm-tool-page .bg-card,main.relative .max-w-4xl a.bg-card){background:#f3f2ef!important;border-color:#dedbd6!important;box-shadow:none!important}
html.fm-workspace body.fatemate-shell-ready main.relative .max-w-4xl :is(h1,h2){font-family:Georgia,'Songti SC',serif;color:#211f1d;line-height:1.3}
html.fm-content body.fatemate-shell-ready main .min-h-screen.bg-card{background:#f6f5f2!important}
html.fm-content body.fatemate-shell-ready main :is(article.bg-card,.fm-tool-page .rounded-xl.border.bg-card){background:#f3f2ef!important;border-color:#dedbd6!important;box-shadow:none!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black,
html.fm-content body.fatemate-shell-ready>div.bg-ink-black .bg-ink-black{background:#f6f5f2!important;color:#282624!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black :is(.bg-black,.bg-stone-900\/50,.bg-ink-charcoal\/80,.bg-stone-800\/80){background:#efeeeb!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black :is(.text-stone-100,.text-stone-200,.text-stone-300,.text-paper-beige,.text-ink-black){color:#262420!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black :is(.text-stone-400,.text-stone-500,.text-stone-600,.text-gold-dim){color:#6c6861!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black :is(.border-stone-600,.border-stone-700,.border-stone-800,.border-stone-900,.border-gold-dim\/20){border-color:#d4d0c9!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black :is(.bg-cinnabar,.bg-gold-dim,.bg-stone-500,.bg-stone-700,.bg-stone-800){background-color:#9b968d!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black .bg-paper-texture{opacity:.04!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black section:first-child>.z-10{opacity:1!important;transform:none!important}
/* Align centered guide headings with their descriptions and keep archive canvases warm. */
html.fm-content body.fatemate-shell-ready :is(.text-center>h1,.text-center>h2){margin-left:auto!important;margin-right:auto!important}
html.fm-content body.fatemate-shell-ready main .min-h-screen.bg-secondary{background:#f6f5f2!important}
html.fm-content body.fatemate-shell-ready :is(.fm-tool-page .bg-card,.fm-tool-page article.bg-white){background:#f3f2ef!important;border-color:#dedbd6!important;box-shadow:none!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black :is(.bg-stone-900\/80,.bg-stone-900\/90){background:#efeeeb!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black header.bg-ink-black\/90{background:#f6f5f2!important;border-color:#d4d0c9!important;color:#282624!important}
html.fm-content body.fatemate-shell-ready>div.bg-ink-black h1{color:#282624!important;font-family:Georgia,'Songti SC',serif!important;line-height:1.2}
html.fm-workspace:not(.fm-bazi-page) body.fatemate-shell-ready .fm-form-region form::before,
html.fm-workspace:not(.fm-bazi-page) .fm-page-heading:has(+ .fm-form-region)::after{display:none!important;content:none!important}
body.fatemate-shell-ready :is(.relations-people legend,.relations-form-title p,.relations-categories a,.relations-result-heading span,.relations-result-heading button){color:#56524c!important;border-color:#d4d0ca!important}
body.fatemate-shell-ready .relations-categories a{background:#f3f2ef!important}
body.fatemate-shell-ready .relations-people fieldset{background:#efeeeb!important;border-color:#dedbd6!important}
body.fatemate-shell-ready .relations-categories a:hover{background:#e9e7e3!important}
