:root {
  --bg: #f5f1ea;
  --bg-accent: #e8dfd3;
  --ink: #1c1a16;
  --muted: #5f5a52;
  --brand: #2f4b3a;
  --brand-light: #7bb08a;
  --card: #fbfaf8;
  --border: #d8cfc2;
  --warn: #c9912c;
  --bad: #b14b4b;
  --shadow: 0 10px 30px rgba(30, 22, 14, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff, var(--bg) 55%, #e7dccf 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 48px;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.brand-title {
  margin: 0;
  font-weight: 700;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.content {
  flex: 1;
  padding: 32px 48px 64px;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.card.inner {
  margin-top: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tag {
  background: var(--bg-accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  align-items: center;
}

.table-row.header {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 8px 8px;
}

.table-row span small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

button.button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.link-button {
  border: none;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list li {
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

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

@media (max-width: 980px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content {
    padding: 24px 20px 48px;
  }

  .topbar {
    padding: 18px 20px;
  }

  .table-row.header {
    display: none;
  }
}
