* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 12% 10%, #fff5dc 0%, transparent 38%),
    radial-gradient(circle at 80% 24%, #d8f7ec 0%, transparent 34%),
    var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.45;
  z-index: 0;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  background: #c7f3e7;
  top: -90px;
  right: -60px;
}

.bg-shape-b {
  width: 320px;
  height: 320px;
  background: #ffe2a8;
  bottom: -120px;
  left: -80px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

.shell-header {
  margin-bottom: 18px;
  animation: fade-in 350ms ease;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--primary-strong);
}

h1 {
  margin: 8px 0 2px;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.card {
  background: color-mix(in srgb, var(--surface), white 24%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.auth {
  max-width: 520px;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 11px 12px;
  font-family: inherit;
  background: var(--bg-soft);
}

button {
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-secondary {
  background: #f2e4ce;
  color: #4f3e2c;
}

.row {
  display: flex;
  gap: 10px;
}

.dashboard {
  display: grid;
  gap: 14px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filters,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fffaf0;
}

.kpi p {
  margin: 0;
  color: var(--muted);
}

.kpi h3 {
  margin: 6px 0 0;
  font-size: 1.4rem;
}

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

.search {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 8px;
}

th {
  color: var(--muted);
}

.status {
  min-height: 24px;
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  color: #4f3e2c;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters,
  .actions {
    width: 100%;
  }

  .actions button {
    flex: 1;
  }
}
