body.page-home main,
body.page-dashboard main {
  min-height: calc(100vh - 72px);
}

body.page-home main {
  place-items: center;
}

.page-home .hero {
  width: min(860px, 100%);
  text-align: center;
  padding: 42px 28px;
  background: var(--color-panel-bg);
  border-top: 4px solid var(--color-clay);
  box-shadow: 0 10px 24px rgba(74, 55, 40, 0.08);
}

.page-home h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 12px;
}

.page-home .subtext {
  margin: 0 auto 28px;
  max-width: 680px;
}

.page-home .actions {
  justify-content: center;
}

.page-home .action-button {
  min-width: 190px;
  font-weight: 600;
}

.page-dashboard main {
  place-items: start center;
  padding-inline: 16px;
}

.dashboard-shell {
  width: min(1560px, 100%);
}

.page-dashboard .dashboard-main-grid {
  grid-template-columns: minmax(0, 1fr);
}

.page-dashboard .prairie-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.page-dashboard .prairie-metric-tile {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom-width: 2px;
}

.page-dashboard .prairie-metric-tile span,
.page-dashboard .prairie-metric-tile strong {
  display: block;
  margin: 0;
}

.page-dashboard .prairie-metric-tile span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-dashboard .prairie-metric-tile strong {
  flex: 0 0 auto;
  font-size: 1.08rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 24px;
}

.dashboard-card {
  grid-column: span 3;
  min-height: 198px;
  border: 1px solid var(--color-panel-border);
  border-top: 6px solid rgba(112, 90, 73, 0.34);
  border-left: 6px solid var(--color-brass);
  border-radius: 0;
  padding: 20px;
  background: rgba(251, 249, 244, 0.98);
  box-shadow: 0 10px 24px rgba(74, 55, 40, 0.08);
}

.dashboard-card-wide {
  grid-column: span 6;
  min-height: 260px;
}

.dashboard-card:nth-child(3),
.dashboard-card:nth-child(4) {
  grid-column: span 4;
}

.dashboard-card:nth-child(4) {
  grid-column: span 8;
}

.dashboard-card h1 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.quick-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.quick-list li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 4px solid var(--color-brass);
  background: #fffdf8;
}

.quick-list li:last-child {
  padding-bottom: 10px;
}

.quick-list a,
.metric-tile {
  color: var(--color-clay);
  text-decoration: none;
}

.quick-list a:hover,
.metric-tile:hover {
  text-decoration: underline;
}

.quick-list span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-tile {
  min-height: 100px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px solid var(--color-panel-border);
  border-top: 6px solid var(--color-brass);
  border-radius: 0;
  padding: 14px 10px;
  background: #fffdf8;
  text-align: center;
}

.metric-tile span {
  color: var(--color-clay);
  font-size: 1.9rem;
  font-weight: 700;
}

.metric-tile strong {
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .dashboard-card,
  .dashboard-card-wide,
  .dashboard-card:nth-child(3),
  .dashboard-card:nth-child(4) {
    grid-column: span 6;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-grid {
    margin-top: 24px;
  }

  .dashboard-card,
  .dashboard-card-wide {
    grid-column: 1 / -1;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
