* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #233047;
  background:
    radial-gradient(circle at top, rgba(177, 148, 63, 0.18), transparent 28%),
    linear-gradient(180deg, #f6f2e8 0%, #fcfbf7 100%);
}
.shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 28px 42px;
}
.topbar, .panel {
  background: rgba(255,255,255,0.88);
  border: 1px solid #dbcfae;
  border-radius: 28px;
  box-shadow: 0 14px 32px rgba(103, 87, 44, 0.08);
  backdrop-filter: blur(12px);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 26px;
}
.topbar h1, .panel h2, .panel h3 {
  margin: 0 0 8px;
  font-weight: 800;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-copy {
  display: grid;
  gap: 2px;
}
.brand-kicker {
  display: none;
}
.brand-mark {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
}
.topbar h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.brand-subtitle {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #6b7280;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #8c6f20;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.muted { color: #6b7280; }
.brand-block .muted {
  margin: 0;
  font-size: 1.02rem;
}
.topnav { display: flex; gap: 12px; flex-wrap: wrap; }
.topnav a, button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid #d7ceb7;
  background: #fffdf8;
  color: #23635b;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
button, .button-link {
  background: linear-gradient(135deg, #2d7b73, #24635d);
  color: white;
  border-color: transparent;
}
.topnav a:hover, button:hover, .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(36, 99, 93, 0.16);
}
.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}
.flash.success { background: #e8faf3; color: #136b4e; }
.flash.error { background: #fff0ef; color: #a33c36; }
.panel {
  padding: 28px 30px;
  margin-bottom: 22px;
}
.panel.narrow {
  max-width: 520px;
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature-grid {
  align-items: start;
}
.admin-grid {
  align-items: start;
}
.stack { display: grid; gap: 16px; }
.stack.compact { gap: 14px; }
.triple {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
label, .label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #31405b;
}
input, select, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid #d8cfbb;
  background: #fff;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2d7b73;
  box-shadow: 0 0 0 4px rgba(45, 123, 115, 0.12);
}
.hero-panel {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  align-items: stretch;
}
.hero-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  letter-spacing: -0.03em;
}
.hero-text {
  max-width: 58rem;
  margin: 18px 0 0;
  font-size: 1.03rem;
  line-height: 1.6;
  color: #41506b;
}
.hero-stats {
  display: grid;
  gap: 14px;
}
.metric-card {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 124px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid #e3d8be;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,247,236,0.92));
}
.metric-label {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6d21;
}
.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 10px 0 14px;
}
.section-head h2 {
  margin: 4px 0 0;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}
.compact-head {
  margin: 0 0 18px;
  align-items: start;
}
.compact-head .muted {
  max-width: 36rem;
  margin: 0;
}
.section-badge, .meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ddd0ad;
  background: #fffdf6;
  color: #4f617f;
  font-size: 0.9rem;
  font-weight: 700;
}
.compact-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.feature-card p,
.feature-body {
  min-height: 0;
  line-height: 1.6;
  color: #43516c;
}
.feature-head, .feature-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.feature-head {
  align-items: start;
}
.feature-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.feature-card .button-link {
  margin-top: 4px;
}
.feature-picks.wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}
.check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.feature-check {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e6dcc5;
  background: #fffef9;
}
.check input {
  width: auto;
  margin: 0;
}
.check.single {
  margin-top: 28px;
}
.feature-toggle {
  margin-top: 4px;
}
.entity-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}
.entity-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}
.user-card .muted {
  margin-bottom: 0;
}
.pill {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}
.pill.active { background: #dcfce7; color: #166534; }
.pill.inactive { background: #fef2f2; color: #991b1b; }
.full-width {
  width: 100%;
}
@media (max-width: 980px) {
  .grid, .triple, .hero-panel, .feature-picks.wide, .compact-tools { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .section-head, .entity-head { align-items: start; flex-direction: column; }
  .entity-status { justify-content: start; }
  .brand-row { align-items: flex-start; }
  .brand-mark {
    width: 54px;
    height: 54px;
  }
}
