html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f5f5f5;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

#blazor-error-ui {
  background: #fff3cd;
  bottom: 0;
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.75rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

/* Keep actions recognizable without hover and keep keyboard focus visible. */
body .mud-button-root {
  text-transform: none;
  font-weight: 600;
}

/* Sentence-case tabs match the buttons and read faster than all caps. */
body .mud-tab {
  text-transform: none;
  font-size: 0.95rem;
}

body :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--mud-palette-primary);
  outline-offset: 3px;
}

.app-header :is(button, a):focus-visible {
  outline-color: currentColor;
}

.app-header .mud-toolbar {
  gap: 0.5rem;
}

body .app-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .mud-input-control {
  min-width: 0;
}

@media (max-width: 600px) {
  .app-header .mud-toolbar {
    padding-inline: 0.5rem;
    gap: 0.25rem;
  }

  body .app-title {
    font-size: 1rem;
  }

  .app-header .mud-button-root {
    flex-shrink: 0;
    padding-inline: 0.5rem;
  }
}

@media (any-pointer: coarse) {
  body :is(.mud-button-root, .mud-icon-button, .mud-nav-link, .mud-list-item-clickable) {
    min-height: 44px;
    min-width: 44px;
  }
}
