/* 外觀補強：獨立命名，不改寫原站設定鍵、不反轉照片或插圖。 */
:root[data-site-appearance="dark"]{color-scheme:dark;--ink:#e7efe8;--muted:#b7c8bd;--green:#bdddb3;--sage:#263e30;--cream:#17291f;--orange:#f4b080;--line:#496251;--white:#21382a;--bg:#14231c;--card:#21382a;--paper:#21382a;--text:#e7efe8;--navy:#dce7f3;--blue:#b5d5eb;--shadow:0 16px 40px #0003}
:root[data-site-appearance="light"]{color-scheme:light}
.site-appearance-open,.site-appearance-dialog button{font:inherit;cursor:pointer;min-height:44px;border-radius:10px;padding:9px 13px;border:1px solid #b7c8b9;background:#fffdf8;color:#294733;line-height:1.5}
.site-appearance-open{font-size:13px;white-space:nowrap;flex-shrink:0}.site-appearance-floating{position:fixed;right:16px;bottom:24px;z-index:45;box-shadow:0 3px 12px #0002}
.site-appearance-dialog{box-sizing:border-box;width:min(490px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #c8d6c4;border-radius:20px;background:#fffdf8;color:#294733;z-index:100;overscroll-behavior:contain;box-shadow:0 24px 100px #0004}
.site-appearance-dialog::backdrop{background:#17291f88}.site-appearance-dialog p{font-size:14px;line-height:1.85;color:inherit}.site-appearance-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.site-appearance-dialog h2{font-size:21px;line-height:1.5;margin:0;color:inherit}.site-appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0}.site-appearance-dialog .site-appearance-option[aria-pressed="true"]{background:#dce9ce;color:#294733;border-color:#70905b;font-weight:700}.site-appearance-status{min-height:26px}.site-appearance-dialog .site-appearance-reset{width:100%}
.site-appearance-open:focus-visible,.site-appearance-dialog button:focus-visible{outline:3px solid #bf7448;outline-offset:4px}
:root[data-site-appearance="dark"] body{background:#14231c!important;color:#e7efe8}
:root[data-site-appearance="dark"] :is(.topbar,.mobile-nav,.site-header,.site-footer,.header,.navbar,.help-box,dialog,.search-results button,.lesson-side,.lesson-body,.ingredients,.lesson-sidebar,.card,.panel,.progress-card,.level-card,.recipe-card,.course-card,.module-card,.business-card,.tool-card,.lesson-card,.help-card,.resource-card,.legal,.summary-card,.kpi,.stat-card,.timeline-card){background:#21382a!important;color:#e7efe8;border-color:#496251!important}
:root[data-site-appearance="dark"] main :is(h1,h2,h3,h4,h5,h6){color:#e7efe8!important}
:root[data-site-appearance="dark"] :is(main,header,footer) :is(p,small,label,dt,dd,li){color:inherit}
:root[data-site-appearance="dark"] :is(input,select,textarea){background:#192d21!important;color:#e7efe8!important;border-color:#6b846f!important}
:root[data-site-appearance="dark"] main :is(th,td){background:#21382a!important;color:#e7efe8;border-color:#496251!important}
:root[data-site-appearance="dark"] :is(a,.text-link){color:#c0dcbe}
:root[data-site-appearance="dark"] :is(.primary,.btn-primary,.button-primary){background:#bdddb3!important;color:#14231c!important;border-color:#bdddb3!important}
:root[data-site-appearance="dark"] :is(.secondary,.icon-button,.site-appearance-open){background:#263e30!important;color:#e7efe8!important;border-color:#6b846f!important}
:root[data-site-appearance="dark"] :is(.hero,.page-head){background:radial-gradient(circle at 83% 10%,#263e30 0,transparent 40%)!important}
:root[data-site-appearance="dark"] .site-appearance-dialog{background:#21382a!important;color:#e7efe8;border-color:#6b846f}
:root[data-site-appearance="dark"] .site-appearance-dialog button{background:#263e30;color:#e7efe8;border-color:#6b846f}
:root[data-site-appearance="dark"] .site-appearance-dialog .site-appearance-option[aria-pressed="true"]{background:#bdddb3;color:#14231c;border-color:#bdddb3}
@media(max-width:760px){.site-appearance-floating{bottom:calc(82px + env(safe-area-inset-bottom));right:14px}}
@media(max-width:620px){.site-appearance-open{font-size:12px;padding:8px 10px}.site-appearance-dialog{padding:20px}.site-appearance-dialog h2{font-size:19px}.site-appearance-options{gap:6px}.site-appearance-dialog button{font-size:13px;padding:10px 7px}}
@media(prefers-reduced-motion:reduce){.site-appearance-dialog,.site-appearance-open{animation:none!important;transition:none!important}}
@media print{.site-appearance-open,.site-appearance-dialog{display:none!important}}
