.dashboard-page {
  min-height: 100vh;
  background: radial-gradient(circle at 90% 8%, rgba(255, 90, 79, 0.07), transparent 26%), var(--md-cream);
}

.dashboard-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dashboard-new-move,
.dashboard-logout {
  border: 0;
  background: transparent;
  color: var(--md-muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.dashboard-user {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--md-line);
  border-radius: 999px;
  background: white;
  font-size: 0.82rem;
  font-weight: 800;
}
.dashboard-user-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--md-coral-soft);
  color: var(--md-coral-dark);
  font-weight: 900;
}

.dashboard-main { padding: 54px 0 90px; }
.dashboard-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.dashboard-loading {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--md-muted);
}
.dashboard-loading-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--md-coral);
  color: white;
  font-size: 1.3rem;
  font-weight: 950;
}

.dashboard-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--md-coral-soft);
  color: var(--md-coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
}
.dashboard-hero { margin-bottom: 14px; }
.dashboard-hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}
.dashboard-hero h1 span { color: var(--md-coral); }
.dashboard-hero-copy { max-width: 700px; margin: 18px 0 0; color: var(--md-muted); font-size: 1rem; line-height: 1.6; }

.move-switcher {
  flex: 0 0 auto;
  position: relative;
}
.move-switcher-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--md-line);
  border-radius: 999px;
  background: white;
  color: var(--md-ink);
  font-weight: 800;
}
.move-switcher-menu {
  position: absolute;
  z-index: 80;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 380px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--md-line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 50px rgba(40,30,20,0.13);
}
.move-switcher-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--md-ink);
  text-align: left;
}
.move-switcher-item:hover,
.move-switcher-item.active { background: var(--md-coral-soft); }
.move-switcher-item strong { font-size: 0.84rem; }
.move-switcher-item span { color: var(--md-muted); font-size: 0.72rem; }

.dashboard-route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px 27px;
  border-radius: 22px;
  background: var(--md-coral-soft);
  border: 1px solid rgba(255, 90, 79, 0.12);
}
.dashboard-route-card strong { display: block; margin-bottom: 5px; font-size: 1.35rem; letter-spacing: -0.03em; }
.dashboard-route-card span { color: var(--md-muted); font-size: 0.84rem; }
.dashboard-route-button { flex: 0 0 auto; }

.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.dashboard-stat { padding: 22px; border: 1px solid var(--md-line); border-radius: 19px; background: white; }
.dashboard-stat-label { display: block; margin-bottom: 8px; color: var(--md-muted); font-size: 0.76rem; font-weight: 750; }
.dashboard-stat strong { display: block; font-size: 1.85rem; letter-spacing: -0.04em; }
.dashboard-stat small { display: block; margin-top: 5px; color: var(--md-muted); font-size: 0.76rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr); gap: 20px; align-items: start; }
.dashboard-card {
  padding: 26px;
  border: 1px solid var(--md-line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 42px rgba(50, 37, 24, 0.05);
}
.dashboard-card + .dashboard-card { margin-top: 20px; }
.dashboard-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 19px; }
.dashboard-card-heading h2 { margin: 0; font-size: 1.22rem; letter-spacing: -0.03em; }
.dashboard-card-heading span { color: var(--md-muted); font-size: 0.76rem; }

.dashboard-progress-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.dashboard-progress-top strong { font-size: 2.25rem; color: var(--md-coral); letter-spacing: -0.05em; }
.dashboard-progress-top span { color: var(--md-muted); font-size: 0.78rem; }
.dashboard-progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #eee8e2; }
.dashboard-progress-fill { height: 100%; border-radius: inherit; background: var(--md-coral); transition: width 220ms ease; }

.next-task {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 72px;
  padding: 11px 0;
  border-bottom: 1px solid var(--md-line);
}
.next-task:last-child { border-bottom: 0; }
.next-task-toggle {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #ddd6d0;
  border-radius: 50%;
  background: white;
  color: #999;
  font-size: 0.7rem;
  font-weight: 900;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease;
}
.next-task-toggle:hover { transform: scale(1.06); border-color: var(--md-coral); }
.next-task.saving { opacity: 0.65; }
.next-task strong { display: block; margin-bottom: 3px; font-size: 0.88rem; }
.next-task small { display: block; color: var(--md-muted); font-size: 0.75rem; line-height: 1.4; }
.next-task time { color: var(--md-coral-dark); font-size: 0.74rem; font-weight: 850; white-space: nowrap; }
.dashboard-complete-message { padding: 20px 0; color: var(--md-green); font-weight: 850; }

.dashboard-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.dashboard-service {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--md-line);
  border-radius: 15px;
  background: #fffdf9;
}
.dashboard-service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--md-coral-soft); color: var(--md-coral); }
.dashboard-service-icon svg { width: 25px; height: 25px; }
.dashboard-service strong { font-size: 0.82rem; }
.dashboard-empty-copy { color: var(--md-muted); font-size: 0.82rem; }

.move-details { display: grid; gap: 0; }
.move-detail { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--md-line); }
.move-detail:last-child { border-bottom: 0; }
.move-detail span { color: var(--md-muted); font-size: 0.78rem; }
.move-detail strong { text-align: right; font-size: 0.8rem; }

.dashboard-save-status {
  margin-top: 14px;
  min-height: 20px;
  color: var(--md-muted);
  font-size: 0.74rem;
}
.dashboard-save-status.success { color: var(--md-green); }
.dashboard-save-status.error { color: #a73b34; }

.dashboard-empty {
  max-width: 650px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--md-line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--md-shadow);
}
.dashboard-empty-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: var(--md-coral-soft);
  color: var(--md-coral);
  font-weight: 950;
}
.dashboard-empty h1 { margin: 0 0 10px; font-size: 2.2rem; letter-spacing: -0.05em; }
.dashboard-empty p { margin: 0 0 23px; color: var(--md-muted); line-height: 1.55; }

@media (max-width: 850px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr 1fr; }
  .dashboard-top-row { flex-direction: column; }
  .move-switcher { align-self: flex-end; }
}

@media (max-width: 620px) {
  .dashboard-main { padding: 36px 0 60px; }
  .dashboard-shell { width: calc(100% - 22px); }
  .dashboard-new-move { display: none; }
  .dashboard-user span:last-child { display: none; }
  .dashboard-logout { font-size: 0.74rem; }
  .dashboard-hero h1 { font-size: 3.45rem; }
  .dashboard-route-card { flex-direction: column; align-items: stretch; padding: 20px; }
  .dashboard-route-button { width: 100%; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-services { grid-template-columns: 1fr; }
  .dashboard-card { padding: 21px; border-radius: 20px; }
  .next-task { grid-template-columns: 30px 1fr; }
  .next-task time { grid-column: 2; }
  .move-switcher { width: 100%; }
  .move-switcher-button { width: 100%; justify-content: center; }
  .move-switcher-menu { left: 0; right: auto; width: 100%; }
}
