/* Shared action states across pages and standalone dialogs. */
:root {
  --action-border: var(--border-strong, #c9cdd1);
  --action-text: var(--text, #172333);
  --action-surface: var(--surface, white);
  --action-focus: var(--accent, #167b91);
  --action-pending: #c62828;
}
button:focus-visible, a[role="button"]:focus-visible, select:focus-visible {
  outline: 2px solid var(--action-focus);
  outline-offset: 2px;
}
:is(.btnrow button, .fl-apply, .dialog-action:not(.danger), .btn-xs, .btn-sm, .btn-md, .cr-save, .btn):where(:not(.btn-red,.btn-warn,.danger)) {
  border: 1px solid var(--action-border);
  background: var(--action-surface);
  color: var(--action-text);
  border-radius: 999px !important;
}
:is(.btnrow button,.fl-apply,.cr-save,.dialog-action,.btn-xs,.btn-sm,.btn-md,.btn):disabled {
  border-color: var(--action-border);
  color: #8a8f96;
  cursor: default;
}
:is(.btnrow button,.fl-apply,.cr-save,.dialog-action,.btn-xs,.btn-sm,.btn-md,.btn):enabled:hover {
  border-color: var(--action-focus);
}
#analyze-btn:enabled, button[data-save-action]:enabled, button:is(.fl-apply,.apply-action):enabled {
  background: var(--action-pending);
  color: white;
  border-color: var(--action-pending);
}
#analyze-btn:enabled:hover, button[data-save-action]:enabled:hover, button:is(.fl-apply,.apply-action):enabled:hover {
  background: #a51e1e;
  border-color: #a51e1e;
  color: white;
}

.btnrow button:disabled, button.fl-apply:disabled { color:#8a8f96; border-color:var(--action-border); }
