:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --ink: #1d1a16;
  --muted: #6b6258;
  --line: #ddd1bf;
  --brand: #a74b2a;
  --brand-strong: #7c3218;
  --success: #1f7a4f;
  --warn: #9f6b00;
  --danger: #a12a2a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, #f5ebda 0%, #f7f4ee 100%);
  color: var(--ink);
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { max-width: 1180px; margin: 0 auto; padding: 24px 18px 48px; }
.topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 24px; }
.brand { font-size: 1.35rem; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 10px; }
.nav a, .button, button {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
}
.nav a.secondary, .button.secondary, button.secondary { background: #efe1cc; color: var(--ink); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(74, 48, 20, 0.08);
}
.title { font-size: 1.8rem; margin: 0 0 8px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f1e4cf;
  color: var(--ink);
}
.notice.success { background: #dff3e8; color: #184e35; }
.notice.error { background: #f7dddd; color: #6f1f1f; }
.notice.warn { background: #faecc8; color: #765100; }
.stack { display: grid; gap: 12px; }
label { display: block; font-size: 0.95rem; margin-bottom: 5px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #efe1cc;
  color: var(--ink);
  font-size: 0.84rem;
}
.badge.success { background: #dff3e8; color: #184e35; }
.badge.warn { background: #faecc8; color: #765100; }
.badge.danger { background: #f7dddd; color: #6f1f1f; }
.countdown { font-size: 2rem; font-weight: 700; margin: 8px 0; }
.item { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fffefb; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline { display: inline; }
.hero { display: grid; gap: 18px; grid-template-columns: 1.2fr 0.8fr; }
.auth-links { display: flex; gap: 10px; flex-wrap: wrap; }
.small { font-size: 0.88rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}