/* 五行智聯 V4.3：依首頁五大構面配置一致的主題色。
   產金 #bc924b / 銷木 #159e76 / 人水 #2a8cb7 / 發火 #d46c50 / 財土 #a28249 */
:root{--domain-accent:#159e76;--domain-deep:#0c7155;--domain-tint:#e6f8ed;--domain-soft:#bfe9d7;}
body.domain-production{--domain-accent:#bc924b;--domain-deep:#866126;--domain-tint:#fcf4e5;--domain-soft:#e8d3ad;}
body.domain-sales{--domain-accent:#159e76;--domain-deep:#0c7155;--domain-tint:#e6f8ed;--domain-soft:#bfe9d7;}
body.domain-people{--domain-accent:#2a8cb7;--domain-deep:#176a90;--domain-tint:#e9f5fb;--domain-soft:#c6e5f4;}
body.domain-research{--domain-accent:#d46c50;--domain-deep:#a84831;--domain-tint:#fff0e9;--domain-soft:#f6d2c5;}
body.domain-finance{--domain-accent:#a28249;--domain-deep:#735929;--domain-tint:#f8f1e3;--domain-soft:#e9d8b6;}
/* 導覽、標籤、階段、按鈕與互動強調色 */
body[class*="domain-"] .tag,body[class*="domain-"] .kicker,body[class*="domain-"] .hero-eyebrow{color:var(--domain-accent)!important;}
body[class*="domain-"] .hero em{color:var(--domain-soft)!important;}
body[class*="domain-"] .stages .on,body[class*="domain-"] .stages span.on{background:var(--domain-accent)!important;color:#fff!important;}
body[class*="domain-"] .primary,body[class*="domain-"] button.primary,body[class*="domain-"] .btn-primary{background:var(--domain-accent)!important;color:#fff!important;}
body[class*="domain-"] .primary:hover,body[class*="domain-"] button.primary:hover{background:var(--domain-deep)!important;}
body[class*="domain-"] .task.active,body[class*="domain-"] .task[aria-pressed="true"]{background:var(--domain-tint)!important;border-color:var(--domain-accent)!important;}
body[class*="domain-"] .task.active small,body[class*="domain-"] .task.active strong{color:var(--domain-deep)!important;}
body[class*="domain-"] .cards>div{border-color:var(--domain-soft);}
body[class*="domain-"] .cards>div strong{color:var(--domain-deep);}
body[class*="domain-"] .picker:focus-within,body[class*="domain-"] input:focus,body[class*="domain-"] select:focus,body[class*="domain-"] textarea:focus{outline-color:var(--domain-accent);}
body[class*="domain-"] .cost-scroll th,body[class*="domain-"] .markdown table th{background:var(--domain-tint)!important;}
body[class*="domain-"] .paper h3{border-color:var(--domain-soft);}
/* 全站預覽表格和「下一步」之間保留可見的呼吸空間 */
body[class*="domain-"] #preview #to-ai{display:inline-flex;align-items:center;justify-content:center;margin-top:30px!important;max-width:100%;white-space:normal;line-height:1.45;}
body[class*="domain-"] #preview .document-preview,body[class*="domain-"] #preview .cost-scroll{margin-bottom:8px;}
body[class*="domain-"] #preview .document-preview{overflow:auto;}
/* 銷－客戶悄悄流失沿用獨立設計系統 */
body.sales-fullpage.domain-sales .hero-eyebrow,body.sales-fullpage.domain-sales .topbar>a{color:var(--domain-soft)!important;}
body.sales-fullpage.domain-sales .primary,body.sales-fullpage.domain-sales button.primary{background:var(--domain-accent)!important;color:#fff!important;}
@media(max-width:600px){body[class*="domain-"] #preview #to-ai{width:100%;margin-top:24px!important;}}
