/* Colour schemes for everyone (themes.mjs). Same names and colours as the
   board's themes. Only tokens change: every section paints with them. Аня's
   moods are set on <body> and override these while one is on. */

html[data-theme="warm"] {
  --bg: #f1ebe2; --surface: #fffdfa; --paper-2: #f8f3ec; --elevated: #ebe3d7;
  --ink: #2b3652; --ink-2: #4a5473; --subtle: #858ba0;
  --accent: #e0703a; --accent-ink: #b8531f; --accent-weak: rgba(224, 112, 58, 0.14);
  --stroke: rgba(43, 54, 82, 0.11); --divider: rgba(43, 54, 82, 0.07); --field-border: rgba(43, 54, 82, 0.17);
  --sidebar-bg: #222c45;
}
html[data-theme="ocean"] {
  --bg: #e8eff2; --surface: #fbfdfe; --paper-2: #f2f7f9; --elevated: #dde8ed;
  --ink: #1d3a52; --ink-2: #3a5670; --subtle: #6b8597;
  --accent: #1a9ab5; --accent-ink: #127b93; --accent-weak: rgba(26, 154, 181, 0.14);
  --stroke: rgba(29, 58, 82, 0.12); --divider: rgba(29, 58, 82, 0.07); --field-border: rgba(29, 58, 82, 0.18);
  --sidebar-bg: #12293d;
}
html[data-theme="forest"] {
  --bg: #ebeee4; --surface: #fdfefa; --paper-2: #f4f6ef; --elevated: #e0e5d6;
  --ink: #24392f; --ink-2: #3e5548; --subtle: #74867a;
  --accent: #2fa877; --accent-ink: #23845b; --accent-weak: rgba(47, 168, 119, 0.14);
  --amber: #c2921c;
  --stroke: rgba(36, 57, 47, 0.12); --divider: rgba(36, 57, 47, 0.07); --field-border: rgba(36, 57, 47, 0.18);
  --sidebar-bg: #1b2e25;
}
html[data-theme="lavender"] {
  --bg: #eeebf5; --surface: #fdfcff; --paper-2: #f6f4fb; --elevated: #e4def0;
  --ink: #322a5c; --ink-2: #4c4478; --subtle: #8279a6;
  --accent: #7b5ce0; --accent-ink: #6a4bd1; --accent-weak: rgba(123, 92, 224, 0.14);
  --stroke: rgba(50, 42, 92, 0.12); --divider: rgba(50, 42, 92, 0.07); --field-border: rgba(50, 42, 92, 0.18);
  --sidebar-bg: #26204a;
}
html[data-theme="night"] {
  color-scheme: dark;
  --bg: #121722; --surface: #1d2433; --paper-2: #222a3c; --elevated: #2a3347;
  --ink: #e7eaf3; --ink-2: #c3c9d8; --subtle: #98a1b8;
  --accent: #f07a42; --accent-ink: #ff9a66; --accent-weak: rgba(240, 122, 66, 0.16);
  --red: #ff6b7f;   --red-weak: rgba(255, 107, 127, 0.16);
  --green: #4fd19a; --green-weak: rgba(79, 209, 154, 0.14);
  --blue: #8aa6ff;  --blue-weak: rgba(138, 166, 255, 0.16);
  --amber: #f2b84b; --amber-weak: rgba(242, 184, 75, 0.18);
  --mint: var(--green); --yellow: var(--amber);
  --st-pre: #8aa6ff; --st-open: #4fd19a; --st-full: #f2b84b; --st-live: #e7eaf3; --st-done: #6c7590; --st-off: #ff6b7f;
  --stroke: rgba(255, 255, 255, 0.1); --divider: rgba(255, 255, 255, 0.07); --field-border: rgba(255, 255, 255, 0.17);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-card: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-2: 0 24px 64px rgba(0, 0, 0, 0.6);
  --sidebar-bg: #0c1018;
}
/* Dark palette fixes - the same places the Halloween mood fixes (seasons.css):
   chips that draw ink as a background with white text, and paper-white prints.
   Only while no mood of Аня's is painting the panel. */
html[data-theme="night"] body:not([data-anya-theme]),
html[data-theme="night"] body[data-anya-theme="normal"] { color-scheme: dark; }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) :is(.brand-badge, .btn-small.primary, .btn-small.primary:hover, .toast, .pp-dep.on, .occ, .cu-seg.on) { color: #121722; }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) .hint::after,
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) [data-tip]:not(.hint)::after { color: #121722; }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) :is(.cu-bulk, .ac-bar) { background: #2a3347; color: var(--ink); }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) .btn-small.primary { background: var(--accent); border-color: var(--accent); }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) .toast.err { color: #fff; }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) .pp-dep.on .pp-house { fill: #2f9e4f; }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) .ct-hero { background: var(--tile, #222a3c); }
html[data-theme="night"] body:is(:not([data-anya-theme]), [data-anya-theme="normal"]) :is(.cu-bulk input, .ct-hero-edit:hover) { background: var(--surface); }
html[data-theme="night"] .print-page {
  --ink: #2b3655; --ink-2: #4a5473; --subtle: #858ba0; --surface: #fffdf8; --elevated: #efe8db;
  --stroke: rgba(43, 54, 85, 0.11); --divider: rgba(43, 54, 85, 0.07); color: var(--ink);
}

/* The picker in «Профиль». */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; }
.th-opt {
  display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--stroke); cursor: pointer; font: inherit; color: var(--ink);
  text-align: left; transition: transform .12s, box-shadow .12s;
}
.th-opt:hover { transform: translateY(-2px); }
.th-opt.on { box-shadow: 0 0 0 2px var(--accent); }
.th-sw { display: flex; align-items: flex-end; gap: 5px; height: 54px; padding: 8px; border-radius: var(--r-sm); }
.th-sw i { display: block; width: 16px; height: 16px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.th-sw i:first-child { width: 30px; border-radius: 6px; }
.th-opt span { font-size: 13.5px; font-weight: 500; padding: 0 2px; }
