/* SWAP OS 42.95.0 — final interaction and readability polish.
 * CSS-only enhancements for existing UI; no new modules or workflow changes.
 */
:root {
  --swap-focus-ring: #245fe8;
  --swap-focus-glow: rgba(36, 95, 232, .22);
}
.swap-os-body :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.swap-os-login-body :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--swap-focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--swap-focus-glow);
}
.swap-os-body :where(button, input, select, textarea),
.swap-os-login-body :where(button, input, select, textarea) {
  font: inherit;
}
.swap-os-body :where(input, select, textarea):disabled,
.swap-os-login-body :where(input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: .72;
}
.swap-os-body :where(button:disabled, .btn:disabled),
.swap-os-login-body :where(button:disabled, .btn:disabled) {
  cursor: not-allowed;
  opacity: .65;
  box-shadow: none;
  transform: none;
}
.swap-os-body :where(p, li, .muted, .description, .helper-text, .field-help) {
  overflow-wrap: anywhere;
}
.swap-os-body :where(.panel, .card, .swap-card, .swap-os-card) {
  min-width: 0;
}
.swap-os-body :where(img, video, canvas, svg) {
  max-width: 100%;
}
@media (max-width: 760px) {
  .swap-os-body :where(button, .btn, input[type="button"], input[type="submit"], input[type="reset"]) {
    min-height: 44px;
  }
  .swap-os-body :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  .swap-os-login-body :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    font-size: 16px;
    max-width: 100%;
  }
  .swap-os-body :where(.panel-head, .panel-header, .toolbar, .project-toolbar) {
    flex-wrap: wrap;
  }
  .swap-os-body :where(table) {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .swap-os-body *, .swap-os-login-body * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
