/* Miami theme (Settings > Appearance): a dusk palette over the dark theme. Hairlines that mark a control (--s1-line-strong, --s1-fill-strong, --s1-checkbox) are >= 3:1 on the page and panel. Raw colors live here, never in s1-accent.css. Loaded right after s1-accent.css. */
/* Miami: a selectable dusk palette (Settings > Appearance). It is the dark theme's own tokens with new values, switched by html[data-palette="miami"] next to
 * data-theme="dark" (so every dark rule in the app already applies and only the colours below change). Deep navy surfaces; body text and data stay plain
 * off-white on navy (all pairs here are >= 4.5:1, see test/ui-miami-theme.test.mjs). Colour is for accents only: buttons, the active tab, selected rows,
 * chart bars. Pink and coral are the brand accents, teal means good or on track, soft purple means selected. The accent tokens carry !important because
 * s1-brand.js writes the workspace colour inline; in Miami the palette wins. */
:root[data-theme="dark"][data-palette="miami"] {
  color-scheme: dark;
  --s1-ink: #f2f4ff; --s1-ink-hover: #ffffff; --s1-on-ink: #0b1230; --s1-ink-2: #d2d7f2; --s1-mute: #a9b1d9;
  --s1-line: #2c3870; --s1-line-soft: #212c5c; --s1-canvas: #0b1230; --s1-panel: #0f1838; --s1-panel-head: #152046; --s1-column: #121b40;
  --s1-rail: #070c22; --s1-rail-raised: #0e1636; --s1-rail-active: #1d2757; --s1-rail-line: #232e62; --s1-rail-text: #d2d7f2; --s1-rail-mute: #9aa3d0; --s1-rail-accent: #ff6fa5;
  --s1-shadow-panel: 0 1px 2px rgba(0, 0, 0, .45);
  --s1-late: #ff8a8a; --s1-soon: #ffc06a; --s1-wait: #9db8ff; --s1-ok: #46e0c6;
  --s1-line-strong: #5a67b3; --s1-fill-strong: #7480bd; --s1-fill-soft: #1d2858; --s1-hover: #121c44; --s1-dot: #3a4685; --s1-track: #26326a; --s1-avatar: #1d2858; --s1-checkbox: #7480bd; --s1-control-line: #6976b8;
  --s1-accent: #ff5c9a !important; --s1-on-accent: #1a0a2a !important; --s1-accent-hover: #ff7bb0 !important;
  --s1-accent-text: #ff8cb8 !important;
  --s1-accent-2: #ff8a6b !important; --s1-on-accent-2: #260c0c !important; --s1-accent-2-text: #ffa68c !important;
  /* selected: soft purple */
  --s1-accent-soft: #2a2866; --s1-accent-soft-2: #38347f; --s1-accent-line: #6b5fc9;
  --s1-accent-2-soft: #3a2250; --s1-accent-2-soft-2: #4b2a5e; --s1-accent-2-line: #8a5a9e;
  /* the older names the redesign sheets still read (redesign-v3.css dark block), kept in step */
  --canvas: #0b1230; --panel: #0f1838; --well: #121b40; --raised: #182350; --line: #2c3870; --line-soft: #212c5c; --track: #26326a; --avatar: #1d2858;
  --rail: #070c22; --rail-active: #1d2757; --rail-line: #232e62; --rail-accent: #ff6fa5;
  --shadow-pop: 0 1px 2px rgb(0 0 0 / .5), 0 14px 36px rgb(0 0 0 / .5); --shadow-frame: 0 1px 2px rgb(0 0 0 / .5), 0 18px 48px rgb(0 0 0 / .4);
  --s1-role-pi: #d9b8ff; --s1-role-lead: #ff8cb8; --s1-role-coordinator: #ffc06a; --s1-role-trainee: #46e0c6; --s1-role-staff: #c2c9ee;
}
/* Primary buttons are the one place the neon fill goes. */
:root[data-theme="dark"][data-palette="miami"] :is(.k-btn, .s1-btn):not(.k-btn--ghost):not(.s1-btn--ghost):not([class*="danger"]) { background: var(--s1-accent); color: var(--s1-on-accent); }
:root[data-theme="dark"][data-palette="miami"] :is(.k-btn, .s1-btn):not(.k-btn--ghost):not(.s1-btn--ghost):not([class*="danger"]):hover { background: var(--s1-accent-hover); }
:root[data-theme="dark"][data-palette="miami"] .btn.pri { background: var(--s1-accent); border-color: var(--s1-accent); color: var(--s1-on-accent); }
:root[data-theme="dark"][data-palette="miami"] .btn.pri:hover { background: var(--s1-accent-hover); border-color: var(--s1-accent-hover); }
