:root {
  --bg: #f5efe5;
  --panel: #ffffff;
  --line: #e7e2d9;
  --text: #292524;
  --muted: #78716c;
  --brand: #6f4e37;
  --danger: #b91c1c;
  --ok: #15803d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
a { color: var(--brand); text-decoration: none; font-weight: 700; }
.container { max-width: 1120px; margin: 0 auto; padding: 20px; }
.narrow { max-width: 520px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 14px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.toolbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.error { color: var(--danger); background: #fef2f2; border: 1px solid #fecaca; padding: 10px; border-radius: 6px; }
.ok { color: var(--ok); }
label { display: block; font-weight: 700; margin-bottom: 5px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 90px; }
button, .btn {
  display: inline-block;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary, button.secondary { background: #fff; color: var(--brand); }
.btn.danger, button.danger { border-color: var(--danger); background: #fff; color: var(--danger); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #eee; font-size: 12px; font-weight: 700; }
.pill.hot { background: #fee2e2; color: #b91c1c; }
.pill.warm { background: #ffedd5; color: #c2410c; }
.pill.cold { background: #dbeafe; color: #1d4ed8; }
.pill.green { background: #dcfce7; color: #15803d; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { border: 1px solid var(--brand); border-radius: 6px; padding: 8px 10px; background: #fff; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .container { padding: 12px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

