/* S1 brand accent: where the workspace color appears. Tokens come from s1-tokens.css (--s1-accent and friends; s1-brand.js sets the hue).
 * The rule, applied everywhere below:
 *   ink      = actions (buttons, switches that do something): unchanged.
 *   accent   = where you are and whose workspace this is: the phone app bar, the active nav item and tab, avatars and initials, empty states.
 *   semantic = status only (red late, amber due soon, blue waiting, green done): never replaced by the accent.
 * Loaded after every other S1 sheet, so this file is the one place to change, tone down or remove the accent. Tokens only: no raw colors. */
/* Dark theme (opt-in with data-theme="dark"; the portal has no dark mode of its own yet): the accent lightens for text and soft fills sink into the dark surface. */
:root[data-theme="dark"] {
  --s1-accent-text: color-mix(in srgb, var(--s1-accent) 45%, var(--s1-on-accent));
  --s1-accent-soft: color-mix(in srgb, var(--s1-accent) 26%, var(--s1-rail));
  --s1-accent-soft-2: color-mix(in srgb, var(--s1-accent) 38%, var(--s1-rail));
  --s1-accent-line: color-mix(in srgb, var(--s1-accent) 55%, var(--s1-rail));
  --s1-accent-2-text: color-mix(in srgb, var(--s1-accent-2) 45%, var(--s1-on-accent));
  --s1-accent-2-soft: color-mix(in srgb, var(--s1-accent-2) 26%, var(--s1-rail));
  --s1-accent-2-soft-2: color-mix(in srgb, var(--s1-accent-2) 38%, var(--s1-rail));
  --s1-accent-2-line: color-mix(in srgb, var(--s1-accent-2) 55%, var(--s1-rail));
}
/* ---- Navigation: the active rail item is raised with an accent marker (s1-nav.css). Tabs and page chips below. ---- */
.s1n-tab[aria-current="page"] { color: var(--s1-accent-text); }
.s1n-tab[aria-current="page"]::after { background: var(--s1-accent); }
/* ---- Section heads and kickers ---- */
.k-kicker { color: var(--s1-accent-text); }
/* ---- Avatars and initials: one hue family instead of a rainbow ---- */
.k-av, .s1-avatar, .s1h-av { background: var(--s1-accent-soft-2); color: var(--s1-accent-text); }
/* the second color, when the workspace has one */
.k-av--you, .s1h-av--you { background: var(--s1-accent); color: var(--s1-on-accent) !important; }
a.s1h-av:hover { background: var(--s1-accent-hover); color: var(--s1-on-accent) !important; }
/* ---- Empty states: neutral on purpose. "Nothing waiting" is good news; a brand tint reads as a warning, and hue is reserved for status. ---- */
.k-empty .k-icon { box-sizing: content-box; padding: calc(8px * var(--s1-scale, 1)); border-radius: 50%; background: var(--s1-column); color: var(--s1-mute); }
