/* One action treatment across tools, sheets, dialogs and parchment results.
   Navigation, inline story editors and rule/token controls retain their meaning.
   Important declarations in this layer take precedence over legacy component themes. */
@layer rhuna-actions {
  html body :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.primary, a.secondary, a.start-button, a.books-primary, a.welcome-start-link):not(:where(
    nav *, .workbench *, .lib-sidebar *, .lib-mobile-tools *,
    #heroSlots *, .hero-list-row, .journal-folder-button,
    .welcome-choice, .journey-level, .reading-toggle, #pageLinkCopy, .page-link-copy,
    .field, .orvah-field, .npc-story-word, .glossary-info, .creator-info, .sheet-info,
    [data-story-key], [data-create-help], [data-rule-eye], .calendar-day,
    .combat-art-choice, [data-action-style="inline"]
  )) {
    background: #c7af77 !important;
    color: #182e26 !important;
    border: 1px solid #b39a60 !important;
    border-radius: 4px !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    font: 700 14px/1.35 system-ui, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: none !important;
    cursor: pointer;
    white-space: normal;
    overflow-wrap: normal;
    vertical-align: middle;
  }
  html body :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.primary, a.secondary, a.start-button, a.books-primary, a.welcome-start-link):not(:where(
    nav *, .workbench *, .lib-sidebar *, .lib-mobile-tools *,
    #heroSlots *, .hero-list-row, .journal-folder-button,
    .welcome-choice, .journey-level, .reading-toggle, #pageLinkCopy, .page-link-copy,
    .field, .orvah-field, .npc-story-word, .glossary-info, .creator-info, .sheet-info,
    [data-story-key], [data-create-help], [data-rule-eye], .calendar-day,
    .combat-art-choice, [data-action-style="inline"]
  )):is(:hover, :focus-visible) {
    background: #ddc68e !important;
    color: #182e26 !important;
    border-color: #8c733d !important;
  }
  html body :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.primary, a.secondary, a.start-button, a.books-primary, a.welcome-start-link):focus-visible {
    outline: 3px solid #8b671f !important;
    outline-offset: 3px !important;
  }
  html body a:is(.primary, .secondary, .start-button, .books-primary, .welcome-start-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  html body input[type="file"]::file-selector-button {
    background: #c7af77 !important;
    color: #182e26 !important;
    border: 1px solid #b39a60 !important;
    border-radius: 4px !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    font: 700 14px/1.35 system-ui, sans-serif !important;
    cursor: pointer;
  }
  html body input[type="file"]::file-selector-button:hover { background: #ddc68e !important; }
  html body :is(button, input[type="button"], input[type="submit"], input[type="reset"]):disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
  }
}
