.archived-requests { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.archived-requests summary { cursor: pointer; font: 1.25rem Georgia, serif; margin-bottom: 1rem; }
.archived-requests .booking-card { opacity: .82; }

.status-button.danger { background: transparent; color: #8a3028; border: 1px solid #c78d86; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric-card { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem; border: 1px solid var(--line); background: var(--cream); }
.metric-card span { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.metric-card strong { font: 400 clamp(2rem, 4vw, 3.2rem) Georgia, serif; }
.metric-card small { color: var(--muted); }
.metric-card.accent { background: var(--ink); color: white; border-color: var(--ink); }
.metric-card.accent span, .metric-card.accent small { color: #dccdc4; }
.overview-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.overview-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); background: var(--cream); }
.overview-card-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.overview-card-heading h2 { margin: 0 0 1rem; font: 400 1.55rem Georgia, serif; }
.overview-card-heading .kicker { flex: 0 0 auto; }
.revenue-card { grid-column: 1 / -1; }
.appointment-stack { display: grid; }
.overview-appointment { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.overview-appointment:last-child { border-bottom: 0; }
.overview-appointment div { display: grid; gap: .2rem; }
.overview-appointment span, .overview-appointment time { color: var(--muted); font-size: .85rem; }
.overview-appointment time { text-align: right; }
.overview-empty { padding: 2.25rem .5rem; text-align: center; color: var(--muted); }
.revenue-chart { min-height: 230px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1.5rem); align-items: end; padding-top: 1rem; }
.revenue-month { height: 190px; display: grid; grid-template-rows: auto 1fr auto; gap: .45rem; text-align: center; }
.revenue-value { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.revenue-track { position: relative; overflow: hidden; border-radius: 999px 999px 0 0; background: #eadfd8; }
.revenue-bar { position: absolute; inset: auto 0 0; min-height: 3px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--rose), var(--deep)); }
.revenue-bar[data-level="0"] { height: 0; min-height: 0; }
.revenue-bar[data-level="1"] { height: 10%; }.revenue-bar[data-level="2"] { height: 20%; }.revenue-bar[data-level="3"] { height: 30%; }.revenue-bar[data-level="4"] { height: 40%; }.revenue-bar[data-level="5"] { height: 50%; }.revenue-bar[data-level="6"] { height: 60%; }.revenue-bar[data-level="7"] { height: 70%; }.revenue-bar[data-level="8"] { height: 80%; }.revenue-bar[data-level="9"] { height: 90%; }.revenue-bar[data-level="10"] { height: 100%; }
.revenue-month strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.chart-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .78rem; }

@media (max-width: 800px) {
  header { min-height: 64px; height: auto; padding: .7rem 1rem; gap: .75rem; }
  header > div { justify-content: flex-end; gap: .35rem; flex-wrap: wrap; }
  .brand { white-space: nowrap; }
  header [data-auth-label] { display: none; }
  header button { min-height: 42px; padding: .45rem .55rem; }
  main { padding: 1.25rem 1rem 3rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); margin-bottom: 1.2rem; }
  .dashboard-heading { margin-bottom: .5rem; }
  .summary { display: grid; grid-template-columns: 1fr 1fr; }
  .summary span { min-width: 0; }
  .tabs { position: sticky; top: 0; z-index: 3; margin: 1rem -1rem 1.25rem; padding: 0 1rem; background: var(--paper); scrollbar-width: thin; }
  .tabs button { flex: 0 0 auto; min-height: 48px; white-space: nowrap; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .metric-card { min-height: 125px; padding: 1rem; }
  .metric-card strong { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .overview-layout { grid-template-columns: 1fr; }
  .revenue-card { grid-column: 1; }
  .overview-card { padding: 1rem; }
  .overview-card-heading { display: block; }
  .overview-card-heading .kicker { margin-bottom: .35rem; }
  .overview-appointment { display: grid; }
  .overview-appointment time { text-align: left; }
  .revenue-chart { gap: .35rem; overflow-x: auto; }
  .revenue-value { font-size: .62rem; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; }
  .booking-card { padding: 1rem; gap: 1rem; }
  .booking-actions > * { flex: 1 1 140px; min-height: 46px; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-block { min-height: 58px; }
  .archived-requests summary { min-height: 48px; display: flex; align-items: center; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.3rem; }
  .metric-card { min-height: 112px; }
  .revenue-chart { grid-template-columns: repeat(6, minmax(42px, 1fr)); }
}
