:root {
  --bg: #faf3ee;
  --card: #ffffff;
  --ink: #2e3d24;
  --muted: #66746a;
  --accent: #5f8b7f;
  --accent-dark: #1e3a33;
  --line: #b8cfa8;
  --danger: #a94442;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--accent-dark);
}

.topbar {
  align-items: center;
  background: #e0ebd6;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 22px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  font-weight: 700;
  text-decoration: none;
}

.wrap {
  margin: 0 auto;
  max-width: 1100px;
  padding: 24px;
}

h1 {
  margin: 0 0 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  padding: 18px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 84px;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button,
button {
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.button.secondary {
  background: #e0ebd6;
  color: var(--ink);
}

.button.danger,
button.danger {
  background: var(--danger);
}

.flash {
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.flash.success {
  background: #e4f4e4;
  color: #1d5f2b;
}

.flash.error {
  background: #f8dfdd;
  color: #7a2e2b;
}

.muted {
  color: var(--muted);
}

.row {
  align-items: center;
  border-bottom: 1px solid #edf1ea;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px 1fr auto;
  padding: 10px 0;
}

.row:last-child {
  border-bottom: 0;
}

.thumb {
  align-items: center;
  background: #f3f1ec;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.translations {
  border-top: 1px solid #edf1ea;
  margin-top: 14px;
  padding-top: 14px;
}

.pill {
  background: #e0ebd6;
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}
