body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--bg-stripes);
  opacity: 0.42;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-ambient);
  pointer-events: none;
}

#app {
  position: relative;
  min-height: 100vh;
  padding: 2.5rem 1.25rem;
}

.login-screen {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}

.dashboard {
  width: min(1150px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(236, 248, 255, 0.35);
  background: rgba(18, 43, 119, 0.45);
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 32, 0.56);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 30;
}

@media (max-width: 1100px) {
  .audio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #app {
    padding: 1.25rem 0.9rem 5rem;
  }

  .audio-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
