:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05070d;
  color: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(80, 92, 255, 0.28), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(0, 202, 167, 0.18), transparent 26rem),
    #05070d;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, #7c8cff, #39e2c0);
  color: #06101a;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

button.danger {
  background: #ff657a;
  color: #24030a;
  padding: 0.55rem 0.8rem;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f7fb;
  outline: none;
}

input:focus {
  border-color: #7c8cff;
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.16);
}

label {
  display: grid;
  gap: 0.45rem;
  color: #c8d3e6;
  font-size: 0.92rem;
  font-weight: 700;
}

code {
  color: #9df5df;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(9, 14, 26, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  padding: 1.4rem;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero h1,
.card h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 4.2rem);
  letter-spacing: -0.06em;
}

.card h2 {
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: #8cebd6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  margin: 0.5rem 0 0;
  color: #92a0b6;
  line-height: 1.6;
}

.status-pill {
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #aebbd0;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.status-pill.ready {
  color: #9df5df;
  border-color: rgba(57, 226, 192, 0.35);
}

.grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.list-form {
  display: flex;
  gap: 0.7rem;
  min-width: min(100%, 380px);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0.6rem;
  text-align: left;
}

th {
  color: #92a0b6;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #e7edf8;
}

.empty {
  color: #92a0b6;
  text-align: center;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  max-width: min(420px, calc(100vw - 2rem));
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: #111827;
  color: #f4f7fb;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #4a0d18;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding: 0.5rem 0;
  }

  .hero,
  .grid,
  .fields,
  .list-heading,
  .list-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: 2.35rem;
  }
}
