/* Neutral foundation + functional color + editorial color.
   Theme is local to a section; no OS-wide dark-mode override. */
:root,[data-color-theme="light"],.global-header,.localnav,.dialog,.pd-viewer,.ps-bonus-dialog{
 --color-background:#fff;
 --color-surface:#f5f5f7;--color-surface-raised:#fff;
 --color-text-primary:#1d1d1f;--color-text-secondary:#606066;--color-text-muted:#6e6e73;
 --color-border:#d2d2d7;--color-border-strong:#85858b;
 --color-action:#1d1d1f;--color-on-action:#fff;--color-action-hover:#333336;
 --color-link:#0066cc;--color-link-hover:#004f9e;--color-focus:#0066cc;
 --color-selected:#1d1d1f;--color-on-selected:#fff;
 --color-selection-surface:#fff;--color-selection-text:#1d1d1f;
 --color-disabled:#e8e8ed;--color-on-disabled:#626267;
 --color-control-hover:#e8e8ed;
 --ink:var(--color-text-primary);--muted:var(--color-text-muted);
 --gray:var(--color-surface);--line:var(--color-border);
 --blue:var(--color-link);--link-text:var(--color-link);
}
[data-color-theme="dark"],#integrate-book-wave,.ps-numbers,.ps-closing,.ps-return,
.tile-dark,.tr-why,.tr-closing,.hw-closing,.cf-closing,.method-section,.feature-card.dark{
 --color-background:#111114;--color-surface:#1c1c1f;--color-surface-raised:#25252a;
 --color-text-primary:#f5f5f7;--color-text-secondary:#c7c7cc;--color-text-muted:#b1b1b8;
 --color-border:#45454d;--color-border-strong:#8c8c95;
 --color-action:#f5f5f7;--color-on-action:#1d1d1f;--color-action-hover:#dedee3;
 --color-link:#91c5ff;--color-link-hover:#b7d9ff;--color-focus:#91c5ff;
 --color-selected:#f5f5f7;--color-on-selected:#1d1d1f;
 --color-selection-surface:#25252a;--color-selection-text:#f5f5f7;
 --color-disabled:#2c2c32;--color-on-disabled:#b1b1b8;--color-control-hover:#35353c;
 --ink:var(--color-text-primary);--muted:var(--color-text-muted);
 --gray:var(--color-surface);--line:var(--color-border);
 --blue:var(--color-link);--link-text:var(--color-link);
}
/* Explicit opt-in for new sections; existing backgrounds keep their artwork-derived tones. */
[data-color-theme]{background-color:var(--color-background);color:var(--color-text-primary)}
:root{--color-editorial-accent:var(--color-text-primary);--color-editorial-soft:var(--color-surface);--color-editorial-on-dark:#f5f5f7}

/* Existing palettes, not newly assigned series identities. Source notes: reference/color-system.txt. */
.pass-page,.ps-intro,.tile-pass,#integrate-book-wave{
 --color-editorial-accent:#714d9c;--color-editorial-soft:#f3eef9;--color-editorial-on-dark:#cda9f4;
}
.series-page{--color-editorial-accent:#1753a5;--color-editorial-soft:#eaf2ff}
.hansisu{--color-editorial-accent:#9c370e;--color-editorial-soft:#fff0dd}
.hanwansu{--color-editorial-accent:#154fa7;--color-editorial-soft:#e9f1ff}
.hanwangi{--color-editorial-accent:#5b33aa;--color-editorial-soft:#eee9fb}
.mock-exam{--color-editorial-accent:#164f52;--color-editorial-soft:#dceeed}
.hw{--color-editorial-accent:var(--hw-accent);--color-editorial-soft:var(--hw-accent-soft);--color-editorial-on-dark:var(--hw-on-dark-link)}
.tr{--color-editorial-accent:#237a45;--color-editorial-soft:#f5f5f7;--color-editorial-mark:#c7f500;--color-editorial-on-dark:#c7f500}
.cf,.tile-csat{--color-editorial-accent:#b4433e;--color-editorial-soft:#df807c;--color-editorial-on-dark:#f6b3ae}

/* 사용자 지정 리뷰 시리즈 팔레트: 보라·블루·청록·그린. */
.ps-review-card[data-review-series="hanwansu"],.ps-summary-tabs [data-summary-key="hanwansu"]{--color-editorial-review:#714d9c}
.ps-review-card[data-review-series="hanwangi"],.ps-summary-tabs [data-summary-key="hanwangi"]{--color-editorial-review:#1753a5}
.ps-review-card[data-review-series="nseries"],.ps-summary-tabs [data-summary-key="nseries"]{--color-editorial-review:#164f52}
.ps-review-card[data-review-series="mock"],.ps-summary-tabs [data-summary-key="mock"]{--color-editorial-review:#237a45}


.ps-review-summary{--color-ai-blue:#8D9FFF;--color-ai-purple:#BC82F3;--color-ai-pink:#F5B9EA;--color-ai-coral:#FF6778;--color-ai-orange:#FFBA71}
