/* Modern salmon primary, Apollo). Supersedes modern-r2.override.css. Load AFTER tokens.css and components.css.
   MODERN ONLY: every rule is scoped to html[data-theme="modern"]. Do not put these on :root, other seven themes keep their accents. */
html[data-theme="modern"]{
  --bd-p-orange:#fd8672;        /* primary fill. HSL 8/98/72. ink text 7.68:1, white text 2.38:1 (fails) so label stays ink */
  --bd-p-orange-hi:#ff9985;     /* hover.   ink 8.83:1 */
  --bd-p-orange-lo:#f26d58;     /* active.  ink 6.18:1 */
  --bd-p-orange-edge:#8f3a2c;   /* deep edge / pressed shadow */
  --bd-p-orange-ui:#d5503a;     /* non-text accent on light: focus ring, field focus, tab bar, slider, progress. 4.17:1 on white, 3.83:1 on paper (needs 3:1) */
  --bd-p-orange-text:#b23c28;   /* accent as text on light. 5.88:1 on white, 5.40:1 on paper (needs 4.5:1) */
  --bd-p-orange-tint:#fff0ec;   /* subtle tint. ink 16.5:1, text token 5.30:1 */
  --bd-p-orange-text-dark:#ff9a86; /* accent as text on night. 8.89:1 */
  --bd-accent:var(--bd-p-orange); --bd-accent-hi:var(--bd-p-orange-hi); --bd-accent-lo:var(--bd-p-orange-lo);
  --bd-accent-text:var(--bd-p-orange-text);
  --bd-accent-fg:#141517;
  --bd-accent-ui:var(--bd-p-orange-ui);
  --bd-ring:0 0 0 2px var(--bd-surface),0 0 0 4px var(--bd-p-orange-ui);
  /* 1px lo-edge keeps the fill visible on paper (fill alone is 2.18:1 vs #fff3eb, edge restores the boundary) */
  --bd-sh-btn-primary:0 0 0 1px var(--bd-p-orange-lo),0 1px 2px rgba(242,109,88,.28),inset 0 1px 0 rgba(255,255,255,.28);
}
/* odysseus.css currently hard-codes #fa6b43 with !important on ALL themes (html[data-theme] .bd-btn--primary etc).
   Those lines must be deleted or re-scoped to Modern, see spec section 5. */
html[data-theme="modern"] .bd-btn--primary,
html[data-theme="modern"] .sh .sh-cell .bd-btn--primary,
html[data-theme="modern"] body.sh .bd-btn--primary{background:var(--bd-accent)!important;color:var(--bd-accent-fg)!important}
html[data-theme="modern"] .bd-btn--primary:hover,html[data-theme="modern"] .bd-btn--primary.is-hover{background:var(--bd-accent-hi)!important}
html[data-theme="modern"] .bd-btn--primary:active,html[data-theme="modern"] .bd-btn--primary.is-active{background:var(--bd-accent-lo)!important}

/* Save: white-fill secondary split button, Modern only. Markup keeps bd-btn--primary on both halves (so the other seven stay primary)
   and adds class bd-split--secondary on the wrapper. In Modern this block wins over the primary rules, hence !important. */
html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary{background:#fff!important;color:#141517!important;box-shadow:inset 0 0 0 1.5px #141517!important}
html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary:hover,html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary.is-hover{background:#f4f4f2!important}
html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary:active,html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary.is-active{background:#e9e9e6!important}
html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary:focus-visible,html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary.is-focus{box-shadow:inset 0 0 0 1.5px #141517,var(--bd-ring)!important}
html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary:last-child{margin-left:-1.5px}
html[data-theme="modern"] body .bd-split--secondary .bd-btn.bd-btn--primary svg{color:#141517;stroke:currentColor}

/* Seat: 18px leading icon, all eight styles. Renders in each style's own primary material. */
.bd-btn--seat svg.bd-i{width:18px;height:18px}

/* States on the sheet: the sheet's forced primary fill (.sh .sh-cell, 4 classes) outranks the three rules above, so the state rules repeat with the same weight. */
html[data-theme="modern"] body .bd-btn--primary:hover:not(:disabled):not(.is-disabled),html[data-theme="modern"] body .sh-cell .bd-btn--primary:hover:not(:disabled):not(.is-disabled),html[data-theme="modern"] body .sh-cell .bd-btn--primary.is-hover{background:var(--bd-accent-hi)!important}
html[data-theme="modern"] body .bd-btn--primary:active:not(:disabled):not(.is-disabled),html[data-theme="modern"] body .sh-cell .bd-btn--primary:active:not(:disabled):not(.is-disabled),html[data-theme="modern"] body .sh-cell .bd-btn--primary.is-active{background:var(--bd-accent-lo)!important}
/* Save keeps its white states (the split block above is more specific than these on purpose) */
