:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --line: #d8d0c3;
  --text: #1f1b16;
  --muted: #6a6256;
  --accent: #105a5c;
  --accent-soft: #e0efef;
  --danger: #8b2f1d;
  --danger-soft: #f7e5e1;
  --success: #1f6b3b;
  --success-soft: #e6f4ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(16, 90, 92, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f6f1 0%, var(--bg) 100%);
}

a {
  color: var(--accent);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

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

.topbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(33, 25, 13, 0.06);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bfb6a8;
  border-radius: 10px;
  background: #fffdf8;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 220px;
  resize: vertical;
}

button,
.button {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

button.secondary,
.button.secondary {
  background: #6a6256;
}

button.linklike {
  background: transparent;
  color: var(--accent);
  padding: 0;
}

.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.flash.success {
  background: var(--success-soft);
  color: var(--success);
}

.flash.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.flash.info {
  background: var(--accent-soft);
  color: var(--accent);
}

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

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

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

thead th {
  font-size: 0.95rem;
}

.filters,
.bulkbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filters .field,
.bulkbar .field {
  min-width: 180px;
  flex: 1;
}

.login-card {
  max-width: 420px;
  margin: 64px auto;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}

.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.summary-list {
  margin: 0;
  padding-left: 20px;
}

.summary-list li {
  margin-bottom: 6px;
}

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

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

  .shell {
    padding: 16px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 8px;
    background: #fff;
  }

  td {
    border-bottom: 0;
    padding: 6px 0;
  }
}

