/* Shared utility classes */
.mt-4 {
  margin-top: 1rem;
}

.ui-error-banner {
  position: fixed;
  top: 5rem;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(-50%);
  max-width: min(100vw - 2rem, 42rem);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.ui-error-close {
  color: #fff;
  transition: color 0.2s ease;
}

.ui-error-close:hover {
  color: #fecaca;
}

.ui-btn-icon {
  min-width: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #475569;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ui-btn-icon:hover {
  background: rgba(241, 245, 249, 0.9);
  color: #0f172a;
}

.ui-btn-icon:focus-visible {
  outline: 2px solid rgba(244, 63, 94, 0.35);
  outline-offset: 2px;
}

.ui-icon-sm {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.ui-icon-md {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon-svg-nudge {
  transform: translateX(1px);
}

.icon-svg-muted {
  color: #94a3b8;
}

.search-modal-panel,
.settings-modal-panel {
  background: rgba(255, 255, 255, 0.97);
}

.user-menu-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.65) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.65);
}
