/* Estados reutilizables de carga, error y feedback. */
.state-panel, .loading-state, .error-state, .empty-state {
  display: grid;
  min-height: 340px;
  place-items: center;
  align-content: center;
  text-align: center;
}
.state-panel > p, .loading-state > p, .error-state > p, .empty-state p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}
.state-panel h2, .error-state h1, .empty-state h3 {
  margin: .8rem 0 .35rem;
  color: var(--navy-dark);
}
.state-panel__icon, .empty-state__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--red);
}
.empty-state {
  min-height: 220px;
  padding: 2rem;
}
.empty-state__icon {
  background: var(--navy-soft);
  color: var(--navy);
}
.loading-state, .error-state {
  min-height: 15rem;
  justify-items: center;
  gap: .9rem;
  padding: 2rem;
}
.error-state h1 {
  color: var(--navy);
  font-size: 2.5rem;
}
.state-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.2rem;
}
.spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #d8ddeb;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner--small {
  width: 17px;
  height: 17px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, .35);
  border-top-color: #fff;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fatal-state {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  align-content: center;
  padding: 2rem;
  text-align: center;
}
.fatal-state h1 {
  color: var(--navy);
  font-size: 2.5rem;
}
.fatal-state p:not(.eyebrow) {
  color: var(--muted);
}
.mobile-dashboard-nav {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: flex;
  max-width: min(420px, calc(100% - 2rem));
  align-items: center;
  gap: .55rem;
  border: 1px solid #c9d0e3;
  border-radius: 12px;
  padding: .85rem 1rem;
  background: #fff;
  color: var(--navy-dark);
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  font-weight: 720;
}
.toast--error {
  border-color: #e4b9bc;
  background: #fffafa;
  color: var(--red-dark);
}
