/* 默认主题保留既有颜色；浅色主题用相同语义覆盖硬编码历史色。 */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#ffffff; --panel:#ffffff; --panel2:#eef1f5; --line:#e2e5ea;
  --text:#20242b; --muted:#626b78; --orange:#2563eb; --gold:#2563eb;
  --red:#d52f45; --green:#087f60; --blue:#246cba;
  --theme-outside:#edf0f4; --theme-nav:#ffffff; --theme-inset:#eef1f5;
  --theme-section:#eef1f5; --theme-hover:#e8ecf1; --theme-secondary:#e5e9ef;
  --theme-border:#d5dbe3; --theme-grid:#dfe4eb; --theme-on-accent:#ffffff;
  --theme-toast-ink:#ffffff; --theme-toast-bg:#303740;
  --theme-depth-green:#16856314; --theme-depth-red:#d52f4514; --theme-soft:#20242b05;
  --theme-rise:#d52f45; --theme-rise-fill:#d52f45; --theme-fall:#087f60; --theme-fall-fill:#087f60;
  --theme-ma5:#246cba; --theme-ma20:#9551b2; --theme-accent:#2563eb;
  --theme-accent-soft:#2563eb0d; --theme-accent-border:#9bb9fa;
  --theme-floating:#fffffff5; --theme-text:#20242b; --theme-muted:#626b78; --theme-axis:#626b78;
}
:root[data-theme="dark"] { color-scheme:dark; }
:root[data-theme="light"] .trade-actions .close-open { color:var(--text); }
:root[data-theme="light"] .download-card { background:var(--panel); }
:root[data-theme="light"] .download-steps li::before,
:root[data-theme="light"] .download-web { color:var(--orange); }
/* 与APP已确认的174px文字浮层对齐，覆盖全局dialog的大弹窗样式。 */
#theme-dialog { position:fixed; inset:auto; width:174px; max-width:calc(100vw - 16px); max-height:none; margin:0; padding:5px; border:1px solid #3a4048; border-radius:10px; background:#262a30; box-shadow:0 6px 18px #00000024; }
#theme-dialog::backdrop { background:transparent; }
#theme-dialog .theme-options { display:flex; flex-direction:column; margin:0; gap:0; }
#theme-dialog [data-theme-choice] { display:flex; justify-content:space-between; align-items:center; width:100%; height:46px; margin:0; padding:0 12px; border:0; border-radius:6px; background:transparent; color:#edeef0; text-align:left; }
#theme-dialog [data-theme-choice][aria-pressed="true"] { background:#393225; color:#dfb267; }
#theme-dialog .theme-option-name { font-size:14px; }
#theme-dialog .theme-check { width:20px; text-align:right; font-size:16px; }
#theme-dialog [data-theme-choice]:focus-visible { outline:2px solid var(--orange); outline-offset:-2px; }
:root[data-theme="light"] #theme-dialog { background:#ffffff; border-color:#e2e8f0; }
:root[data-theme="light"] #theme-dialog [data-theme-choice] { color:#20242b; }
:root[data-theme="light"] #theme-dialog [data-theme-choice][aria-pressed="true"] { background:#eff5ff; color:#2563eb; }
.account-list .appearance-value { display:flex; align-items:center; gap:8px; }
.account-list [data-action="appearance"] [data-theme-label] { font-size:12px; }
.account-list [data-action="appearance"] [data-theme-chevron] { font-size:14px; }
