/* SquadOS accent study: Lime identifies the main action in each workspace.
   Explicit opt-in keeps navigation, status colours and ordinary actions intact. */
:root {
  --brand-primary: #0664F9;
  --brand-secondary: #15D8E8;
  --brand-accent: #B8FF3B;
  --brand-accent-hover: #ACF02D;
  --brand-accent-ink: #172408;
}

.account-menu__themes.brand-accent-options { grid-template-columns: repeat(2, 1fr); }

@media screen {
  :root[data-brand-accent] {
    --color-cyan: var(--brand-secondary);
    --nav-accent: var(--brand-primary);
  }
  :root[data-brand-accent]:not([data-theme="dark"]) {
    --color-primary: var(--brand-primary);
    --c-fill: var(--brand-primary);
  }
  /* Retain the existing, lighter blue for content links in the dark theme. */
  :root[data-brand-accent="lime"] :is(button, a, input, [role="button"])[data-brand-action] {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-accent-ink);
    box-shadow: none;
  }
  :root[data-brand-accent="lime"] :is(button, a, input, [role="button"])[data-brand-action]:hover:not(:disabled):not([aria-disabled="true"]):not(.is-disabled) {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
  }
  :root[data-brand-accent] :is(button, a, input, [role="button"])[data-brand-action]:focus-visible {
    outline: 2px solid var(--color-primary, var(--brand-primary));
    outline-offset: 3px;
  }
  :root[data-brand-accent] :is(button, a, input, [role="button"])[data-brand-action]:is(:disabled, [aria-disabled="true"], .is-disabled) {
    background: var(--c-bg, var(--f-bg, var(--bg, #F5F5F5)));
    border-color: var(--c-line, var(--f-line, var(--line, #D4D4D4)));
    color: var(--c-muted, var(--f-muted, var(--muted, #737373)));
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
  }
}

@media screen and (max-width:760px) {
  /* The phone shell uses dark content in either selected theme. Follow its
     content tokens instead of the legacy fixed light player-workspace palette. */
  html[data-theme] .id-workspace {
    color-scheme: dark;
    --id-line: var(--c-line);
    --id-muted: var(--c-muted);
    --id-ink: var(--c-black);
    --id-surface: var(--c-white);
  }
}
