:root {
  --bg: #f5f6ef;
  --paper: #ffffff;
  --ink: #1c2b24;
  --muted: #5d6f66;
  --accent: #0f766e;
  --line: #d8ddd5;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef4ef 0%, var(--bg) 100%);
  color: var(--ink);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topnav {
  display: inline-flex;
  gap: 1rem;
  margin-left: 1rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.page {
  padding: 1.5rem;
}

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

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

.grid-form {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(18, 44, 34, 0.05);
}

.narrow {
  max-width: 420px;
  margin: 3rem auto;
}

input,
select,
button {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

button {
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.ghost-button {
  width: auto;
  background: transparent;
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #def7ec;
}

.error {
  color: var(--error);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}
