/* Use the existing theme accent for existing main actions in button groups.
   Secondary controls, standalone buttons, dimensions and typography are unchanged. */
body .toolbar > :is(
  .btn[data-action="new-log"],
  .btn[data-v4-action="request-programme"],
  .btn[data-shop-action="buy"],
  .btn[data-v4-action="save-report"],
  .btn.primary[type="submit"],
  .btn.primary[data-action="submit"]
):not(.danger):not(.destructive) {
  background:var(--button-accent,var(--accent));
  border-color:var(--button-accent,var(--accent));
  color:var(--button-ink,#fff);
}
/* The existing dark accent is pale: use the existing dark background token for
   readable text on these main actions, without changing other primary buttons. */
body[data-theme="dark"] .toolbar > :is(
  .btn[data-action="new-log"],
  .btn[data-v4-action="request-programme"],
  .btn[data-shop-action="buy"],
  .btn[data-v4-action="save-report"],
  .btn.primary[type="submit"],
  .btn.primary[data-action="submit"]
):not(.danger):not(.destructive) {
  color:var(--button-ink,var(--bg));
}
/* Hover and focus inherit rebuild.css unchanged:
   .btn:hover: filter brightness(.97), transform none;
   button:focus-visible: 2px solid var(--accent), 4px offset.
   Disabled behavior also inherits unchanged. No action-count rule is imposed. */

/* Dark-mode main actions use the supplied Protection System gold reference. */
body[data-theme="dark"] { --button-accent:#c9a84c; --button-ink:#111b16; }
body[data-theme="dark"] .btn.primary,
body[data-theme="dark"] .toolbar > :is(.btn[data-action="new-log"],.btn[data-v4-action="request-programme"],.btn[data-shop-action="buy"],.btn[data-v4-action="save-report"]),
body[data-theme="dark"] .exercise-card-content > [data-exercise-choice]:not([aria-pressed=true]) {
  background:var(--button-accent); border-color:var(--button-accent); color:var(--button-ink);
}
body[data-theme="dark"] .exercise-categories [aria-pressed=true] { border-color:var(--button-accent); color:var(--button-accent); }

/* One dark accent token also covers existing day selectors and theme-native primary actions. */
body[data-theme="dark"] { --accent:#c9a84c; --gold:#c9a84c; --gold2:#a88632; --green:#c9a84c; }
body[data-theme="dark"] .btn.primary:not(.danger):not(.destructive) { background:var(--button-accent); border-color:var(--button-accent); color:var(--button-ink); }
