/* Shared, non-destructive UI foundations for every Condktr portal. */
:where(button, [role="button"], a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(34, 211, 238, .55);
  outline-offset: 2px;
}

:where(button, .btn, input, select, textarea) {
  min-height: 36px;
}

:where(button, .btn)[disabled],
:where(button, .btn)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .65;
}

:where([role="status"], [aria-live]) {
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.condktr-network-status {
  position: fixed;
  z-index: 10000;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  padding: 10px 14px;
  border: 1px solid #ef4444;
  border-radius: 10px;
  background: #3a1518;
  color: #ffd7dc;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  font: 700 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.condktr-network-status.is-online {
  border-color: #22c55e;
  background: #12351f;
  color: #b9f6ca;
}

@media (max-width: 600px) {
  .condktr-network-status {
    top: calc(env(safe-area-inset-top) + 92px);
  }
}

@media (pointer: coarse) {
  :where(button, .btn, input, select, textarea) {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
