/* Shared light and Tokyo Night palettes for the app and standalone pages. */
:root{
  color-scheme:light;
  accent-color:var(--blue);
  --blue:#1a73e8; --blue-dark:#1558b0; --blue-soft:#e8f0fe;
  --bg:#ffffff; --bg2:#f6f8fc; --surface:#ffffff; --field:#ffffff; --selected-bg:#ffffff;
  --sidebar:#f8fafd; --rail-bg:#e9edf5; --topbar-bg:#ffffff;
  --text:#202124; --muted:#5f6368; --line:#dadce0; --line-soft:#e6eaf0;
  --danger:#d93025; --danger-hover:#a50e0e; --ok:#188038; --warning:#b06000; --purple:#7b1fa2; --weight-blue:#3b6fd4;
  --on-accent:#ffffff; --on-danger:#ffffff;
  --hover:rgba(60,64,67,.1); --menu-hover:rgba(60,64,67,.08); --count-bg:rgba(0,0,0,.06);
  --weekend:#f1f3f4; --home-card-line:lightgray; --cal-chip-hover:.96;
  --overlay:rgba(0,0,0,.35); --modal-overlay:rgba(0,0,0,.45);
  --toast-bg:#323232; --toast-text:#ffffff; --toast-action:#8ab4f8;
  --scroll-thumb:#c1c7ce; --scroll-thumb-hover:#a8b0b8; --scroll-track:transparent;
  --shadow:0 1px 2px rgba(60,64,67,.25),0 2px 8px rgba(60,64,67,.15);
  --shadow-lg:0 8px 28px rgba(0,0,0,.18);
  --shadow-subtle:0 1px 2px rgba(0,0,0,.06);
  --focus-shadow:0 1px 4px rgba(26,115,232,.3);
  --poster-shade:linear-gradient(to bottom,rgba(26,115,232,0),rgb(32 114 231 / 58%));
  --select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background:var(--bg);
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#1a1b26; --bg2:#24283b; --surface:#1f2335; --field:#16161e; --selected-bg:#292e42;
  --sidebar:#16161e; --rail-bg:#0c0e14; --topbar-bg:#16161e;
  --text:#c0caf5; --muted:#9aa5ce; --placeholder:var(--muted); --line:#414868; --line-soft:#292e42;
  --blue:#7aa2f7; --blue-dark:#89ddff; --blue-soft:#283457;
  --danger:#f7768e; --danger-hover:#ff9e9e; --ok:#9ece6a; --warning:#e0af68; --purple:#bb9af7; --weight-blue:#7aa2f7;
  --on-accent:#16161e; --on-danger:#16161e;
  --hover:#292e42; --menu-hover:#292e42; --count-bg:#292e42;
  --weekend:#24283b; --home-card-line:#292e42; --cal-chip-hover:1.15;
  --overlay:rgba(12,14,20,.65); --modal-overlay:rgba(12,14,20,.76);
  --toast-bg:#292e42; --toast-text:#c0caf5; --toast-action:#7aa2f7;
  --scroll-thumb:#414868; --scroll-thumb-hover:#565f89;
  --shadow:0 1px 2px rgba(12,14,20,.5),0 2px 8px rgba(12,14,20,.35);
  --shadow-lg:0 12px 32px rgba(12,14,20,.6);
  --shadow-subtle:0 1px 2px rgba(12,14,20,.3);
  --focus-shadow:0 0 0 2px #283457;
  --poster-shade:linear-gradient(to bottom,rgba(22,22,30,0),rgba(22,22,30,.95));
  --select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa5ce' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--placeholder);opacity:1}
:root[data-theme="dark"] :is(button,input,select,textarea):disabled{opacity:.5}
:root[data-theme="dark"] ::selection{background:var(--blue-soft);color:var(--text)}
