:root {
  color-scheme: dark light;
  --bg: #0b1016;
  --bg-elevated: #111820;
  --surface: #161e28;
  --surface-high: #1e2834;
  --text: #f2f6fa;
  --muted: #9aa8b7;
  --accent: #4fd1c5;
  --accent-dim: rgba(79, 209, 197, 0.14);
  --accent-strong: #3bb8ad;
  --border: #2a3544;
  --danger: #f07178;
  --max: 72rem;
  --max-prose: 45rem;
  --nav-h: 4.25rem;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fa;
    --bg-elevated: #eef3f7;
    --surface: #ffffff;
    --surface-high: #e8eef4;
    --text: #1a2332;
    --muted: #5a6a7d;
    --border: #d4dee8;
    --accent-dim: rgba(59, 184, 173, 0.12);
    --shadow: 0 20px 40px rgba(26, 35, 50, 0.08);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap--prose {
  width: min(100% - 2rem, var(--max-prose));
}

/* —— Nav —— */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.site-nav__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
}

.site-nav__usa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0;
  min-width: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(0.58rem, 1.05vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
}

.site-nav__usa-flag {
  width: clamp(2.75rem, 4.8vw, 3.5rem);
  height: auto;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.28),
    0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
}

.site-nav__usa-text {
  max-width: 16rem;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.2;
  max-width: min(100%, 14rem);
  text-decoration: none;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #000;
}

.site-nav nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 1.15rem;
}

.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav nav a:hover,
.site-nav nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav nav a[aria-current="page"] {
  box-shadow: 0 2px 0 var(--accent);
}

@media (max-width: 900px) {
  .site-nav__usa-text {
    display: none;
  }

  .site-nav__inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 520px) {
  .site-nav__usa-flag {
    width: 2.35rem;
  }
}

/* —— Hero —— */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 55% at 80% -10%, rgba(79, 209, 197, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(79, 209, 197, 0.06), transparent 50%),
    var(--bg);
}

.hero--compact {
  padding: 2.25rem 0 1.75rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow .back {
  color: var(--accent);
  text-decoration: none;
}

.eyebrow .back:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
.brand {
  font-family: Outfit, "Segoe UI", sans-serif;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero--compact h1 {
  font-size: clamp(1.7rem, 4vw, 2.25rem);
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero--compact .lead {
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* —— Buttons & store badges —— */

.cta-row,
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #06201d;
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.store-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.store-badge img[src*="google-play"] {
  height: 58px;
}

.store-badge--soon {
  position: relative;
  cursor: not-allowed;
  opacity: 0.72;
}

.store-badge--soon img {
  filter: grayscale(0.35);
}

.soon-label {
  position: absolute;
  inset: auto 6px 4px auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-family: Outfit, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* —— Phone mockups —— */

.phone-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.phone {
  background: #05080c;
  border-radius: 1.4rem;
  padding: 0.45rem;
  border: 1px solid #3a4656;
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 1.05rem;
}

.phone--offset {
  transform: translateY(1.25rem);
}

@media (max-width: 699px) {
  .phone-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-cluster .phone:nth-child(3) {
    display: none;
  }

  .phone--offset {
    transform: none;
  }
}

/* —— Sections —— */

main {
  padding: 0;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-kicker {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

.compare-chart {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0c0e12;
}

#compare {
  scroll-margin-top: 5rem;
}

.compare-chart img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.compare-chart figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.product-grid,
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .product-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card .eyebrow {
  margin-bottom: 0.4rem;
}

.product-card h3 {
  font-size: 1.45rem;
}

.pill {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill--soon {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}

.feature-card h3 {
  font-size: 1.05rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.facts li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.facts li:first-child {
  border-top: none;
}

.facts span {
  min-width: 6.5rem;
  color: var(--muted);
  font-weight: 600;
}

.shot-row {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .shot-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot-row .phone {
  margin: 0;
}

.logo-frame {
  display: grid;
  place-items: center;
  min-height: 16rem;
  background: #05080c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.logo-frame img {
  width: min(100%, 280px);
}

.disclaimer {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Legal / prose —— */

.prose {
  padding: 2rem 0 3rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.prose h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.02rem;
}

.prose p,
.prose ul,
.prose ol {
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.links a,
.contact a,
.prose a,
.back {
  color: var(--accent);
  text-decoration: none;
}

.links a:hover,
.contact a:hover,
.prose a:hover,
.back:hover {
  text-decoration: underline;
}

.contact {
  font-size: 0.95rem;
}

/* —— Footer —— */

.site-footer {
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 0.85rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.2rem 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 0.5rem;
  z-index: 50;
  background: var(--accent);
  color: #06201d;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}

/* —— Themed marketing depth (fitness gym / nutrition kitchen) —— */

.display {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero--photo {
  min-height: min(78vh, 46rem);
  padding: 7rem 0 8.5rem;
  border-bottom: 0;
  background-color: #111;
  background-size: cover;
  background-position: center;
  color: #f7f4ef;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 10, 12, 0.88) 0%,
    rgba(8, 10, 12, 0.5) 48%,
    rgba(8, 10, 12, 0.18) 100%
  );
}

.hero--photo .wrap,
.hero--photo .hero__grid {
  position: relative;
  z-index: 1;
}

.hero--photo .lead {
  color: rgba(247, 244, 239, 0.86);
}

.hero--photo h1 {
  color: #fff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero--fit {
  background-image: url("assets/atmosphere/hero-fitness.jpg");
}

.hero--nut {
  background-image: url("assets/atmosphere/hero-nutrition.jpg");
}

.hero--nut::before {
  background: linear-gradient(
    105deg,
    rgba(42, 32, 22, 0.82) 0%,
    rgba(42, 32, 22, 0.42) 52%,
    rgba(42, 32, 22, 0.12) 100%
  );
}

.hero--split {
  display: grid;
  padding: 0;
  min-height: min(72vh, 40rem);
  border-bottom: 0;
  background: #111;
}

@media (min-width: 800px) {
  .hero--split {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 22rem;
  padding: 2.4rem 2rem 3.2rem;
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
  transition: background 0.25s ease;
}

.hero-panel:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.8));
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
}

.hero-panel p {
  margin: 0 0 1.1rem;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-panel--fit {
  background-image: url("assets/atmosphere/hero-fitness.jpg");
}

.hero-panel--nut {
  background-image: url("assets/atmosphere/hero-nutrition.jpg");
}

.hero--split .hero-panel {
  padding-bottom: 4.75rem;
}

.hero--split + .overlap-wrap {
  margin-top: -1.25rem;
}

.overlap-wrap {
  position: relative;
  z-index: 3;
  margin-top: -4.25rem;
  padding-bottom: 0;
}

.overlap-strip {
  display: grid;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

@media (min-width: 800px) {
  .overlap-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.overlap-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.45rem;
}

@media (min-width: 800px) {
  .overlap-item + .overlap-item {
    border-left: 1px solid var(--border);
  }
}

.overlap-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.overlap-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.icon-tile {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.icon-tile svg {
  width: 1.45rem;
  height: 1.45rem;
}

.motif {
  display: block;
  width: 100%;
  height: 2.75rem;
  margin-top: -1px;
  background-color: var(--accent);
  -webkit-mask: url("assets/atmosphere/motif-plates.svg") center / 100% 100% no-repeat;
  mask: url("assets/atmosphere/motif-plates.svg") center / 100% 100% no-repeat;
}

.motif--wave {
  -webkit-mask-image: url("assets/atmosphere/motif-wave.svg");
  mask-image: url("assets/atmosphere/motif-wave.svg");
  background-color: var(--bg);
}

.proof {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .proof {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.proof-visual {
  position: relative;
  min-height: 16rem;
}

.proof-circle {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1a1510 center / cover no-repeat;
  box-shadow: var(--shadow);
}

.proof-badge {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  width: 11.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.2rem;
}

.proof-badge strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.proof-badge span {
  color: var(--muted);
  font-size: 0.82rem;
}

.kicker {
  margin: 0 0 0.55rem;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}

.band {
  position: relative;
  padding: 5rem 0;
  color: #f7f4ef;
  background: #1a1510 center / cover no-repeat;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.7);
}

.band .wrap {
  position: relative;
  z-index: 1;
}

.band h2,
.band .kicker,
.band p {
  color: #f7f4ef;
}

.band p {
  max-width: 40rem;
  opacity: 0.9;
}

.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cycle-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .cycle-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1080px) {
  .cycle-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.phase-label {
  margin: 0 0 0.35rem;
  font-family: Outfit, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.service-card--phase {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card--phase .service-body {
  flex: 1;
}

@media (min-width: 1080px) {
  .service-card--phase > img {
    object-position: top center;
  }
}

.service-card {
  overflow: hidden;
  padding: 0;
}

.service-card > img,
.service-card .service-media {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
  background: #111;
}

.service-card .service-body {
  padding: 1.25rem 1.4rem 1.45rem;
}

/* Apps grid: equal-height cards; align store badges + footer links */
.product-card.service-card .service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card.service-card .store-row {
  margin-top: auto;
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.theme-fitness {
  --bg: #0c0e12;
  --bg-elevated: #12161c;
  --surface: #171c24;
  --text: #f4f1ea;
  --muted: #a8b0b8;
  --accent: #4fd1c5;
  --accent-dim: rgba(79, 209, 197, 0.16);
  --border: #2c3540;
}

body.theme-nutrition {
  color-scheme: light;
  --bg: #f4eee4;
  --bg-elevated: #ebe3d4;
  --surface: #fffdf8;
  --surface-high: #f3eadc;
  --text: #2c2418;
  --muted: #6d5e4c;
  --accent: #5d7a45;
  --accent-strong: #4a6438;
  --accent-dim: rgba(93, 122, 69, 0.14);
  --border: #e0d3c0;
}

body.theme-nutrition .site-nav {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

body.theme-nutrition .btn--primary {
  color: #f7f4ef;
}

@media (prefers-color-scheme: light) {
  body.theme-fitness {
    --bg: #0c0e12;
    --bg-elevated: #12161c;
    --surface: #171c24;
    --text: #f4f1ea;
    --muted: #a8b0b8;
    --border: #2c3540;
  }
}

/* —— Hub reviews & private stats —— */

.review-summary {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.review-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.review-card--mine {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.review-card__owner-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.review-card__tools {
  position: relative;
  flex-shrink: 0;
}

.review-card__menu {
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.review-card__menu:hover {
  border-color: var(--accent);
}

.review-card__menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  min-width: 9rem;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 50;
  pointer-events: auto;
}

.review-card__menu-panel[hidden] {
  display: none !important;
  pointer-events: none;
}

.review-card__menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.review-card__menu-panel button:hover {
  background: var(--accent-dim);
}

.review-session {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.review-session__signout {
  font: inherit;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.35rem;
  cursor: pointer;
  text-decoration: underline;
}

.review-card__stars {
  color: var(--accent);
  letter-spacing: 0.05em;
}

.review-card__date {
  color: var(--muted);
  font-size: 0.9rem;
}

.review-card__body {
  margin: 0;
  white-space: pre-wrap;
}

.review-empty {
  color: var(--muted);
}

.review-auth {
  margin-top: 1rem;
}

.review-form-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.25rem 0 1rem;
}

.review-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.review-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.review-form input,
.review-form select,
.review-form textarea {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.review-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-error {
  color: var(--danger);
  margin-top: 0.75rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  margin: 0 0 1.5rem;
}

.stats-grid dt {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.stats-grid dd {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.15rem 0 0;
}

.stats-paths {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.stats-paths li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
