/* Health House member home — premium brand layer.
   The data, routes and booking behavior remain owned by home.html. */

:root {
  --hh-blue: var(--ember, #2d6cdf);
  --hh-lime: var(--lime, #baff18);
  --hh-white: #f8f9fb;
  --hh-chrome: #d6dce5;
  --hh-deep: #0e131b;
  --hh-panel: rgba(26, 34, 46, 0.94);
  --hh-panel-solid: #1a222e;
  --hh-line: rgba(191, 205, 226, 0.28);
  --hh-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

html,
body.home-dashboard {
  min-height: 100%;
}

body.home-dashboard {
  position: relative;
  color: var(--bone);
  background-color: var(--hh-deep);
  background-image:
    radial-gradient(circle at 18% -8%, rgba(45, 108, 223, 0.3), transparent 34rem),
    radial-gradient(circle at 92% 15%, rgba(66, 217, 255, 0.1), transparent 26rem),
    linear-gradient(145deg, #0f141d 0%, #131d2b 45%, #0d121a 100%);
  background-attachment: fixed;
}

body.home-dashboard::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(22deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 7px);
  mix-blend-mode: soft-light;
}

body.home-dashboard::after {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 2px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent 0%, var(--hh-blue) 28%, var(--hh-chrome) 62%, var(--hh-lime) 100%);
  box-shadow: 0 0 22px rgba(45, 108, 223, 0.72);
}

.home-dashboard .preview-banner,
.home-dashboard .wrap,
.home-dashboard .sc-chrome-footer {
  position: relative;
  z-index: 1;
}

.home-dashboard .preview-banner {
  border-bottom: 1px solid rgba(255, 214, 122, 0.24);
  padding: 8px 14px;
  color: #ffd67a;
  background: rgba(43, 31, 0, 0.88);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.home-dashboard .wrap {
  width: 100%;
  max-width: 620px;
  padding: 20px 18px 92px;
}

.home-dashboard #appContent {
  width: 100%;
}

.home-dashboard .home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  margin-bottom: 30px;
}

.home-dashboard .brand-lockup,
.home-dashboard .topbar-actions {
  display: flex;
  align-items: center;
}

.home-dashboard .brand-lockup {
  min-width: 0;
  gap: 12px;
}

.home-dashboard .brand-mark-shell {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: #07080c;
}

/* The logo artwork already has the glow, the green gem and the black field
   baked in, so nothing is drawn on top of it here. The tile is just a frame. */

.home-dashboard #entityLogo {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.home-dashboard .brand-type {
  min-width: 0;
  line-height: 1;
}

.home-dashboard .brand-type strong,
.home-dashboard .brand-type span {
  display: block;
  white-space: nowrap;
}

.home-dashboard .brand-type strong {
  color: var(--hh-white);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.home-dashboard .brand-type span {
  margin-top: 6px;
  color: var(--hh-blue);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.22em;
}

.home-dashboard .topbar-actions {
  gap: 8px;
}

.home-dashboard .menu-btn,
.home-dashboard .sign-out-link {
  min-height: 42px;
  border-radius: 13px;
}

.home-dashboard .menu-btn {
  display: inline-grid;
  width: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--hh-line);
  color: var(--hh-white);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 1.08rem;
  cursor: pointer;
}

.home-dashboard .sign-out-link {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--bone-dim) !important;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.home-dashboard .menu-btn:hover,
.home-dashboard .sign-out-link:hover {
  border-color: rgba(143, 180, 255, 0.48);
  color: var(--hh-white) !important;
  background: rgba(45, 108, 223, 0.1);
}

.home-dashboard #navMenu {
  border: 1px solid rgba(142, 177, 255, 0.24) !important;
  border-radius: 18px !important;
  padding: 10px !important;
  background: rgba(13, 17, 25, 0.97) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(20px);
}

.home-dashboard #navMenu a {
  padding: 11px 12px !important;
  border-radius: 10px !important;
  color: var(--bone) !important;
  font-size: 0.84rem !important;
}

.home-dashboard #navMenu a:hover {
  background: rgba(45, 108, 223, 0.14);
}

.home-dashboard .welcome-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 8px 0 28px;
}

.home-dashboard .welcome-copy {
  min-width: 0;
}

.home-dashboard .welcome-kicker,
.home-dashboard .manifesto span,
.home-dashboard .section-label,
.home-dashboard .quick-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-dashboard .welcome-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hh-lime);
}

.home-dashboard .welcome-kicker::before {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: linear-gradient(90deg, var(--hh-blue), var(--hh-lime));
  box-shadow: 0 0 12px rgba(76, 128, 255, 0.7);
}

.home-dashboard h1 {
  max-width: 780px;
  margin: 9px 0 0;
  color: var(--hh-white);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.home-dashboard .spark {
  margin: 12px 0 0;
  color: #b4ccff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
}

.home-dashboard .manifesto {
  display: none;
  flex: 0 0 auto;
  border-left: 1px solid var(--hh-line);
  padding: 8px 0 8px 25px;
  text-align: right;
}

.home-dashboard .manifesto span,
.home-dashboard .manifesto strong {
  display: block;
}

.home-dashboard .manifesto span {
  color: var(--hh-chrome);
}

.home-dashboard .manifesto strong {
  margin-top: 7px;
  color: var(--hh-white);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.home-dashboard .dashboard-grid {
  display: grid;
  gap: 16px;
}

.home-dashboard .section-label,
.home-dashboard .quick-label {
  color: #c1c8d2;
}

.home-dashboard .section-label {
  margin: 0 0 10px;
}

.home-dashboard .card {
  position: relative;
  max-width: none;
  margin-bottom: 14px;
  border: 1px solid var(--hh-line);
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 38%),
    var(--hh-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.home-dashboard .card.next {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-color: rgba(83, 135, 255, 0.7);
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 255, 26, 0.08), transparent 30%),
    radial-gradient(circle at 6% 100%, rgba(45, 108, 223, 0.24), transparent 50%),
    linear-gradient(145deg, rgba(28, 40, 65, 0.92), rgba(12, 15, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 22px 70px rgba(0, 0, 0, 0.35), 0 0 36px rgba(45, 108, 223, 0.12);
}

.home-dashboard #nextSlot > .card:not(.next) {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(83, 135, 255, 0.42);
  padding: 30px;
  background:
    radial-gradient(circle at 8% 100%, rgba(45, 108, 223, 0.2), transparent 52%),
    linear-gradient(145deg, rgba(26, 35, 53, 0.9), rgba(12, 15, 22, 0.98));
}

.home-dashboard #nextSlot > .card:not(.next) .card-title {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.035em;
}

.home-dashboard .card.next::before {
  position: absolute;
  top: 0;
  left: 24px;
  width: 150px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--hh-blue), var(--hh-lime));
  box-shadow: 0 0 18px rgba(83, 136, 255, 0.8);
}

.home-dashboard .card.next::after {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.014), 0 0 0 64px rgba(255, 255, 255, 0.01);
}

.home-dashboard .card.next > * {
  position: relative;
  z-index: 1;
}

.home-dashboard .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #b4ccff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.home-dashboard .card.next .eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--hh-lime);
  box-shadow: 0 0 13px var(--hh-lime);
}

.home-dashboard .class-name {
  margin: 0 0 7px;
  color: var(--hh-white);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.home-dashboard .class-meta {
  margin: 0 0 22px;
  color: #d2d7df;
  font-size: 0.94rem;
  line-height: 1.45;
}

.home-dashboard .roster {
  min-height: 34px;
  gap: 0;
  margin-bottom: 22px;
}

.home-dashboard .pip {
  width: 32px;
  height: 32px;
  margin-right: -6px;
  border: 2px solid #111721;
  color: #dce3ec;
  background: linear-gradient(145deg, #384354, #202632);
  font-size: 0.65rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

.home-dashboard .roster-names {
  margin-left: 15px;
  color: #c2c9d3;
  font-size: 0.8rem;
}

.home-dashboard .btn-row {
  gap: 10px;
}

.home-dashboard .btn {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(190, 202, 221, 0.24);
  border-radius: 14px;
  padding: 0 18px;
  color: #c8d0db !important;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-dashboard .btn.primary,
.home-dashboard a.btn.primary,
.home-dashboard a.btn.primary:link,
.home-dashboard a.btn.primary:visited {
  border-color: transparent;
  color: #04101b !important;
  background: linear-gradient(100deg, var(--hh-blue) 0%, #69a0ff 66%, var(--hh-lime) 118%);
  box-shadow: 0 12px 30px rgba(45, 108, 223, 0.24);
}

.home-dashboard .btn:hover,
.home-dashboard .book-pill:hover,
.home-dashboard .quick-link:hover {
  transform: translateY(-2px);
}

.home-dashboard .milestone-card {
  padding: 22px;
}

.home-dashboard .milestone-kicker {
  margin: 0 0 17px;
  color: var(--hh-lime);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-dashboard .milestone-top {
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.home-dashboard .milestone-count {
  max-width: 240px;
  color: var(--hh-white);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-transform: uppercase;
}

.home-dashboard .milestone-next {
  color: #bdc5d0;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
}

.home-dashboard .track {
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.home-dashboard .fill {
  background: linear-gradient(90deg, var(--hh-blue), #67a0ff 70%, var(--hh-lime));
  box-shadow: 0 0 18px rgba(62, 126, 255, 0.55);
}

.home-dashboard .quick-label {
  margin: 19px 0 10px;
}

.home-dashboard .quick-links {
  display: grid;
  gap: 9px;
}

.home-dashboard .quick-link {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--hh-line);
  border-radius: 16px;
  padding: 0 17px;
  color: var(--hh-white) !important;
  background: rgba(24, 31, 43, 0.92);
  font-size: 0.875rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.home-dashboard .quick-link span:last-child {
  color: var(--hh-blue);
  font-size: 1.12rem;
}

.home-dashboard .quick-link:hover {
  border-color: rgba(91, 144, 255, 0.52);
  background: rgba(32, 46, 72, 0.7);
}

.home-dashboard .upcoming-section {
  margin-top: 24px;
}

.home-dashboard :is(#upcomingSlot, #bookingsSlot) {
  display: grid;
  gap: 11px;
}

.home-dashboard :is(#upcomingSlot, #bookingsSlot) .card {
  height: 100%;
  min-height: 98px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.home-dashboard :is(#upcomingSlot, #bookingsSlot) .card:hover {
  border-color: rgba(111, 157, 255, 0.42);
  background-color: rgba(24, 31, 44, 0.95);
  transform: translateY(-2px);
}

.home-dashboard .up-row {
  width: 100%;
}

.home-dashboard .up-name {
  margin: 0 0 6px;
  color: var(--hh-white);
  font-size: 0.98rem;
  font-weight: 900;
}

.home-dashboard .up-meta {
  color: #bac2ce;
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-dashboard .up-meta .tight {
  color: var(--hh-lime);
}

.home-dashboard .book-pill {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(91, 144, 255, 0.66);
  border-radius: 999px;
  padding: 0 15px;
  color: #b4ccff !important;
  background: rgba(45, 108, 223, 0.08);
  font-size: 0.875rem;
  font-weight: 900;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease;
}

.home-dashboard .book-pill:hover {
  border-color: var(--hh-lime);
  color: var(--hh-lime) !important;
}

.home-dashboard .card-title {
  color: var(--hh-white);
  font-size: 1.05rem;
}

.home-dashboard .empty {
  color: #c1c8d2;
  font-size: 0.9rem;
}

.home-dashboard .preview-scenario-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid rgba(158, 177, 205, 0.18);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 9, 13, 0.9);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.home-dashboard .preview-scenario-bar button {
  min-height: 36px;
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  padding: 0 15px;
  color: #c2c9d3;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.home-dashboard .preview-scenario-bar button.is-active {
  border-color: transparent;
  color: #06101a;
  background: linear-gradient(100deg, var(--hh-blue), #6aa1ff 72%, var(--hh-lime));
}

.home-dashboard .sc-chrome-footer {
  border-top-color: rgba(180, 195, 216, 0.14);
}

.home-dashboard .sc-chrome-footer a.sc-report {
  color: #8fb5ff;
}

.home-dashboard .sc-chrome-footer p {
  margin-top: 12px;
  color: #727c8a;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.home-dashboard .sc-chrome-footer p b {
  color: var(--hh-chrome);
  font-size: 0.76rem;
}

/* Keep the member-selected Light theme genuinely light and readable. */
:root[data-theme="light"] body.home-dashboard {
  color: #151b24;
  background-color: #edf1f6;
  background-image:
    radial-gradient(circle at 18% -8%, rgba(45, 108, 223, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 15%, rgba(66, 217, 255, 0.09), transparent 26rem),
    linear-gradient(145deg, #f7f9fc 0%, #edf2f8 48%, #e7edf4 100%);
}

:root[data-theme="light"] body.home-dashboard::before {
  opacity: 0.16;
  mix-blend-mode: multiply;
}

:root[data-theme="light"] .home-dashboard .brand-type strong,
:root[data-theme="light"] .home-dashboard h1,
:root[data-theme="light"] .home-dashboard .manifesto strong,
:root[data-theme="light"] .home-dashboard .milestone-count,
:root[data-theme="light"] .home-dashboard .up-name,
:root[data-theme="light"] .home-dashboard .quick-link,
:root[data-theme="light"] .home-dashboard .card-title {
  color: #111722 !important;
}

:root[data-theme="light"] .home-dashboard .spark,
:root[data-theme="light"] .home-dashboard .eyebrow,
:root[data-theme="light"] .home-dashboard .book-pill,
:root[data-theme="light"] .home-dashboard .sc-chrome-footer a.sc-report {
  color: #285eb8 !important;
}

:root[data-theme="light"] .home-dashboard .section-label,
:root[data-theme="light"] .home-dashboard .quick-label,
:root[data-theme="light"] .home-dashboard .manifesto span,
:root[data-theme="light"] .home-dashboard .milestone-next,
:root[data-theme="light"] .home-dashboard .up-meta,
:root[data-theme="light"] .home-dashboard .empty,
:root[data-theme="light"] .home-dashboard .roster-names {
  color: #526073;
}

:root[data-theme="light"] .home-dashboard .milestone-card,
:root[data-theme="light"] .home-dashboard :is(#upcomingSlot, #bookingsSlot) .card,
:root[data-theme="light"] .home-dashboard .quick-link {
  border-color: rgba(35, 50, 70, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 #ffffff, 0 14px 38px rgba(33, 50, 73, 0.11);
}

:root[data-theme="light"] .home-dashboard :is(#upcomingSlot, #bookingsSlot) .card:hover,
:root[data-theme="light"] .home-dashboard .quick-link:hover {
  border-color: rgba(45, 108, 223, 0.42);
  background: #ffffff;
}

:root[data-theme="light"] .home-dashboard .menu-btn,
:root[data-theme="light"] .home-dashboard .sign-out-link {
  color: #283548 !important;
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .home-dashboard .card.next,
:root[data-theme="light"] .home-dashboard #nextSlot > .card:not(.next) {
  color: #f8f9fb;
}

:root[data-theme="light"] .home-dashboard .card.next .class-name,
:root[data-theme="light"] .home-dashboard #nextSlot > .card:not(.next) .card-title {
  color: #f8f9fb !important;
}

:root[data-theme="light"] .home-dashboard #nextSlot > .card:not(.next) .empty {
  color: #d2d7df;
}

:root[data-theme="light"] .home-dashboard .sc-chrome-footer p {
  color: #657184;
}

:root[data-theme="light"] .home-dashboard .sc-chrome-footer p b {
  color: #2f3d50;
}

@media (min-width: 720px) {
  .home-dashboard .manifesto {
    display: block;
  }

  .home-dashboard :is(#upcomingSlot, #bookingsSlot) {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (min-width: 900px) {
  .home-dashboard .wrap {
    max-width: 1160px;
    padding: 30px 40px 76px;
  }

  .home-dashboard .home-topbar {
    margin-bottom: 48px;
  }

  .home-dashboard .welcome-block {
    margin-bottom: 38px;
  }

  .home-dashboard .dashboard-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.8fr);
    align-items: start;
    gap: 18px;
  }

  .home-dashboard .card.next {
    min-height: 350px;
    padding: 34px;
  }

  .home-dashboard .side-column {
    position: sticky;
    top: 98px;
  }

  .home-dashboard :is(#upcomingSlot, #bookingsSlot) {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .home-dashboard .sc-chrome-footer {
    max-width: 1160px;
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (max-width: 520px) {
  .home-dashboard .wrap {
    padding-right: 15px;
    padding-left: 15px;
  }

  .home-dashboard .brand-type strong {
    font-size: 0.78rem;
  }

  .home-dashboard .brand-type span {
    font-size: 0.58rem;
  }

  .home-dashboard .sign-out-link {
    display: none;
  }

  .home-dashboard .welcome-block {
    margin-top: 18px;
  }

  .home-dashboard h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .home-dashboard .card,
  .home-dashboard .card.next {
    border-radius: 18px;
  }

  .home-dashboard .card.next {
    min-height: 310px;
    padding: 24px 20px;
  }

  .home-dashboard .btn-row {
    flex-direction: column-reverse;
  }

  .home-dashboard .btn {
    flex: none;
    width: 100%;
  }

  .home-dashboard .milestone-top {
    display: block;
  }

  .home-dashboard .milestone-next {
    display: block;
    margin-top: 8px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-dashboard .btn,
  .home-dashboard .book-pill,
  .home-dashboard .quick-link,
  .home-dashboard :is(#upcomingSlot, #bookingsSlot) .card {
    transition: none;
  }
}

/* Section footer link under the bookings and classes lists ("See all my
   bookings", "See the full schedule"). Full-width and 44px tall so it is an
   easy thumb target on a phone. */
.home-dashboard .see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 11px;
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  color: #b4ccff;
  background: rgba(45, 108, 223, 0.06);
  font-size: 0.875rem;
  font-weight: 900;
  text-decoration: none;
}

.home-dashboard .see-all:hover {
  border-color: rgba(91, 144, 255, 0.52);
}

:root[data-theme="light"] .home-dashboard .see-all {
  color: #285eb8;
  border-color: rgba(35, 50, 70, 0.2);
  background: rgba(255, 255, 255, 0.94);
}

.home-dashboard .retry-btn {
  margin-top: 12px;
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  padding: 10px 18px;
  color: #b4ccff;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

/* ------------------------------------------------------------------ top strip
   Momentum and the three shortcuts, directly under the greeting. On a phone
   the greeting, this strip and the whole next-class card share the first
   screen. The greeting and the class card keep their type sizes; the room
   comes from spacing that was empty and from the card's two buttons sitting
   side by side instead of stacked. */

.home-dashboard .home-topbar {
  margin-bottom: 18px;
}

.home-dashboard .welcome-block {
  margin: 4px 0 18px;
}

.home-dashboard .top-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.home-dashboard .top-strip .milestone-card {
  margin: 0;
  border-radius: 16px;
  padding: 12px 16px 14px;
}

.home-dashboard .top-strip .milestone-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.home-dashboard .top-strip .milestone-count {
  max-width: none;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-dashboard .top-strip .milestone-next {
  display: inline;
  margin: 0;
  font-size: 0.75rem;
  text-align: right;
}

.home-dashboard .top-strip .track {
  height: 6px;
}

.home-dashboard .top-strip .quick-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-dashboard .top-strip .quick-link {
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  padding: 8px 4px;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.15;
}

.home-dashboard .top-strip .quick-link span {
  color: inherit;
  font-size: inherit;
}

.home-dashboard .top-strip .quick-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--hh-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="light"] .home-dashboard .top-strip .quick-link svg {
  stroke: #285eb8;
}

/* Also booked now sits beside the next class on wide screens, and below it
   on a phone, exactly where it was. */
.home-dashboard .side-column.upcoming-section {
  margin-top: 0;
}

@media (min-width: 900px) {
  .home-dashboard .top-strip {
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.8fr);
    align-items: stretch;
    gap: 18px;
  }

  .home-dashboard .top-strip .milestone-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 22px;
  }

  /* Signed out there is no momentum bar; the shortcuts keep their column. */
  .home-dashboard .top-strip .quick-links {
    grid-column: 2;
  }

  .home-dashboard .top-strip .quick-link {
    min-height: 76px;
  }

  .home-dashboard .welcome-block {
    margin-bottom: 26px;
  }

  .home-dashboard .home-topbar {
    margin-bottom: 36px;
  }
}

@media (max-width: 520px) {
  .home-dashboard .welcome-block {
    margin-top: 0;
  }

  .home-dashboard .card.next {
    min-height: 0;
  }

  .home-dashboard .card.next .roster {
    margin-bottom: 18px;
  }

  .home-dashboard .btn-row {
    flex-direction: row;
  }

  .home-dashboard .btn {
    flex: 1;
    width: auto;
    padding: 0 10px;
  }

  .home-dashboard .btn.primary,
  .home-dashboard a.btn.primary {
    flex: 1.7;
  }
}

/* Light theme: the next-class card stays dark, so its roster line needs light
   text rather than the grey used on the white cards. */
:root[data-theme="light"] .home-dashboard .card.next .roster-names {
  color: #c2c9d3;
}

/* ---------------------------------------------------------------- house stats
   Signed-out Home: this week's numbers and upcoming events, in the slot the
   member momentum bar uses. */
.home-dashboard .top-strip .house-stats {
  margin: 0;
  border-radius: 16px;
  padding: 13px 16px 12px;
}

.home-dashboard .stats-kicker {
  margin: 0 0 10px;
  color: var(--hh-lime);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-dashboard .stats-row {
  display: flex;
  gap: 8px;
}

.home-dashboard .stat {
  flex: 1 1 0;
  min-width: 0;
}

.home-dashboard .stat strong {
  display: block;
  color: var(--hh-white);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.home-dashboard .stat span {
  display: block;
  margin-top: 3px;
  color: #bdc5d0;
  font-size: 0.72rem;
  line-height: 1.25;
}

.home-dashboard .stats-events {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  border-top: 1px solid var(--hh-line);
  padding-top: 10px;
  color: #c9d2de;
  font-size: 0.8rem;
  text-decoration: none;
}

.home-dashboard .stats-events strong {
  color: var(--hh-white);
  font-weight: 900;
}

.home-dashboard .stats-events span:last-child {
  color: var(--hh-blue);
  font-size: 1.05rem;
}

:root[data-theme="light"] .home-dashboard .top-strip .house-stats {
  border-color: rgba(35, 50, 70, 0.2);
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .home-dashboard .stat strong,
:root[data-theme="light"] .home-dashboard .stats-events strong {
  color: #111722;
}

:root[data-theme="light"] .home-dashboard .stat span,
:root[data-theme="light"] .home-dashboard .stats-events {
  color: #526073;
}

@media (min-width: 900px) {
  .home-dashboard .top-strip .house-stats {
    padding: 16px 22px 14px;
  }
}

/* Signed-in placement of the house stats card. */
.home-dashboard .member-stats-slot .house-stats {
  margin: 24px 0 0;
}
