:root {
  --growth-navy: var(--rh-navy, #0D1B4C);
  --growth-blue: var(--rh-retro-blue, #5A98D9);
  --growth-red: var(--rh-red, #D62828);
  --growth-orange: var(--rh-orange, #F26B38);
  --growth-green: var(--rh-green, #4E7A4E);
  --growth-white: var(--rh-bg, #F8FAFC);
  --growth-surface: #fff;
  --growth-muted: #5f6d7a;
  --growth-line: rgba(13, 27, 76, .12);
  --growth-shadow: 0 18px 46px rgba(13, 27, 76, .12);
}

.app-nav[hidden] { display: none !important; }

.route-share-top {
  min-width: 52px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(214, 40, 40, .09);
  color: var(--growth-red);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.route-growth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  margin: 18px 16px 34px;
}
.route-growth-actions.is-complete { grid-template-columns: 1fr; }

.route-growth-actions[hidden], .route-share-top[hidden] { display: none !important; }
.route-growth-actions button { min-height: 50px; border-radius: 16px; font: inherit; font-weight: 800; cursor: pointer; }
.route-growth-primary { border: 0; color: #fff; background: var(--growth-red); box-shadow: 0 10px 22px rgba(214, 40, 40, .22); }
.route-growth-secondary { border: 1px solid var(--growth-line); color: var(--growth-navy); background: #fff; }

.growth-live-status {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  max-width: min(90vw, 420px);
  translate: -50% 0;
  color: #fff;
  background: var(--growth-navy);
  border-radius: 999px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--growth-shadow);
  overflow: hidden;
}
.growth-live-status:not(:empty) { padding: 11px 18px; }

.growth-shell {
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(34px + env(safe-area-inset-bottom));
  color: var(--growth-navy);
  background:
    radial-gradient(circle at 12% 10%, rgba(90, 152, 217, .16), transparent 28%),
    radial-gradient(circle at 92% 82%, rgba(242, 107, 56, .14), transparent 25%),
    var(--growth-white);
}

.growth-header { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; max-width: 720px; margin: 0 auto 18px; }
.growth-header-spacer { width: 48px; }
.growth-back {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--growth-line);
  color: var(--growth-navy);
  background: rgba(255, 255, 255, .88);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.growth-wordmark { justify-self: center; display: inline-flex; align-items: center; }
.growth-wordmark-image { display: block; width: clamp(126px, 34vw, 166px); height: auto; }

.growth-main { width: min(100%, 720px); margin-inline: auto; }
.growth-celebration { text-align: center; margin: 10px auto 20px; animation: growth-rise .52s cubic-bezier(.2,.8,.2,1) both; }
.growth-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: var(--growth-green); box-shadow: 0 14px 30px rgba(78, 122, 78, .22); font-size: 30px; }
.growth-eyebrow { color: var(--growth-red); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.growth-celebration h1, .shared-route-heading h1 { margin: 5px 0 6px; font-size: clamp(30px, 9vw, 46px); line-height: 1.02; letter-spacing: -.055em; }
.growth-celebration p, .shared-route-heading p { color: var(--growth-muted); font-size: 16px; line-height: 1.5; }

.growth-confetti { position: absolute; inset: 72px 14px auto; height: 100px; pointer-events: none; overflow: hidden; }
.growth-confetti i { position: absolute; top: -12px; width: 8px; height: 16px; border-radius: 3px; background: var(--growth-red); animation: growth-confetti .66s ease-out both; }
.growth-confetti i:nth-child(2n) { background: var(--growth-blue); }
.growth-confetti i:nth-child(3n) { background: var(--growth-orange); }
.growth-confetti i:nth-child(4n) { background: var(--growth-green); }
.growth-confetti i:nth-child(1) { left: 12%; animation-delay: .03s; }
.growth-confetti i:nth-child(2) { left: 27%; animation-delay: .1s; }
.growth-confetti i:nth-child(3) { left: 43%; animation-delay: .02s; }
.growth-confetti i:nth-child(4) { left: 61%; animation-delay: .08s; }
.growth-confetti i:nth-child(5) { left: 77%; animation-delay: .04s; }
.growth-confetti i:nth-child(6) { left: 90%; animation-delay: .12s; }

.growth-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.growth-stat { min-width: 0; padding: 16px; border: 1px solid var(--growth-line); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(13,27,76,.06); }
.growth-stat strong { display: block; font-size: clamp(22px, 7vw, 32px); letter-spacing: -.045em; overflow-wrap: anywhere; }
.growth-stat span { display: block; margin-top: 3px; color: var(--growth-muted); font-size: 12px; font-weight: 750; line-height: 1.3; }

.growth-share-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: clamp(22px, 7vw, 40px);
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(155deg, #0D1B4C 0%, #17365f 62%, #334E68 100%);
  box-shadow: var(--growth-shadow);
}
.growth-share-card::before { content: ""; position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; right: -24%; top: -22%; border: 2px solid rgba(90,152,217,.58); border-radius: 50%; box-shadow: 0 0 0 22px rgba(90,152,217,.08), 0 0 0 45px rgba(214,40,40,.06); }
.growth-share-card::after { content: ""; position: absolute; z-index: -1; left: 10%; right: -10%; bottom: 22%; height: 3px; rotate: -7deg; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--growth-red), var(--growth-orange), transparent); }
.share-card-brand { display: flex; align-items: center; width: max-content; min-height: 36px; padding: 6px 10px; border-radius: 12px; background: rgba(248,250,252,.96); }
.share-card-brand-image { display: block; width: 154px; max-width: 52vw; height: auto; }
.share-card-kicker { color: #cfdded; font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.share-card-park { margin-top: 6px; max-width: 90%; font-size: clamp(25px, 8vw, 42px); line-height: 1.02; letter-spacing: -.05em; }
.share-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-card-metric { padding: 12px; border-radius: 17px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.share-card-metric strong { display: block; font-size: clamp(20px, 6vw, 30px); }.share-card-metric span { display: block; margin-top: 2px; color: #cfdded; font-size: 12px; line-height: 1.25; }
.share-card-footer { display: flex; justify-content: space-between; align-items: end; gap: 12px; color: #cfdded; font-size: 12px; font-weight: 800; }

.growth-actions { display: grid; gap: 10px; margin-top: 16px; }
.growth-actions button, .growth-actions a, .shared-route-actions button {
  min-height: 52px;
  border-radius: 17px;
  border: 1px solid var(--growth-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.growth-primary { color: #fff; border-color: transparent !important; background: var(--growth-red); box-shadow: 0 12px 26px rgba(214,40,40,.22); }
.growth-secondary { color: var(--growth-navy); background: #fff; }
.growth-tertiary { color: var(--growth-navy); background: transparent; }

.shared-route-hero { position: relative; overflow: hidden; margin-bottom: 14px; padding: 24px; border-radius: 27px; color: #fff; background: linear-gradient(145deg, var(--growth-navy), #284c73); box-shadow: var(--growth-shadow); }
.shared-route-hero::after { content: ""; position: absolute; width: 170px; height: 170px; right: -65px; bottom: -80px; border: 14px solid rgba(90,152,217,.28); border-radius: 50%; }
.shared-route-chip { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #dce9f6; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.shared-route-heading { position: relative; z-index: 1; margin-top: 18px; }.shared-route-heading p { color: #dce9f6; }
.shared-route-hero .growth-eyebrow { color: #f7c9c9; }
.shared-route-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }.shared-route-meta span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 750; }
.shared-route-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 9px; margin-top: 20px; }.shared-route-actions button:first-child { color: #fff; border-color: var(--growth-red); background: var(--growth-red); }.shared-route-actions button:last-child { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.shared-route-actions button:disabled { cursor: not-allowed; color: #dce9f6; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); opacity: .72; }

.shared-route-section { padding: 20px; border: 1px solid var(--growth-line); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 9px 26px rgba(13,27,76,.06); }
.shared-route-section + .shared-route-section { margin-top: 12px; }
.shared-route-section h2 { font-size: 19px; letter-spacing: -.025em; }.shared-route-section > p { margin-top: 5px; color: var(--growth-muted); font-size: 13px; line-height: 1.45; }
.shared-stop-list { counter-reset: shared-stop; list-style: none; display: grid; gap: 9px; margin-top: 14px; }
.shared-stop { counter-increment: shared-stop; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 9px 10px; border-radius: 15px; background: #f7f9fc; }
.shared-stop::before { content: counter(shared-stop); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--growth-blue); font-size: 12px; font-weight: 900; }
.shared-stop strong { min-width: 0; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }.shared-stop span { color: var(--growth-muted); font-size: 11px; }.shared-stop.is-unavailable { border: 1px dashed #9aa5b1; background: #f1f4f7; }.shared-stop.is-unavailable::before { background: #647382; }
.shared-route-message { padding: 28px 20px; text-align: center; border-radius: 24px; background: #fff; box-shadow: var(--growth-shadow); }.shared-route-message h1 { font-size: 28px; }.shared-route-message p { margin: 8px 0 18px; color: var(--growth-muted); line-height: 1.5; }

.growth-dialog { width: min(calc(100% - 24px), 520px); max-height: min(88dvh, 720px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 28px; color: var(--growth-navy); background: #fff; box-shadow: 0 28px 80px rgba(13,27,76,.3); }
.growth-dialog::backdrop { background: rgba(13,27,76,.58); backdrop-filter: blur(4px); }
.growth-dialog-panel { padding: 22px; }.growth-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }.growth-dialog-head h2 { font-size: 25px; letter-spacing: -.04em; }.growth-dialog-head p { margin-top: 5px; color: var(--growth-muted); font-size: 13px; line-height: 1.45; }
.growth-dialog-close { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--growth-line); border-radius: 14px; color: var(--growth-navy); background: #fff; font-size: 22px; cursor: pointer; }
.growth-field { display: grid; gap: 7px; margin-top: 18px; font-size: 13px; font-weight: 800; }.growth-field input { width: 100%; min-height: 48px; border: 1px solid var(--growth-line); border-radius: 14px; padding: 0 13px; color: var(--growth-navy); background: #f8fafc; font: inherit; }.growth-field small { color: var(--growth-muted); font-weight: 500; }
.growth-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 9px; font-size: 13px; font-weight: 750; }.growth-toggle input { width: 20px; height: 20px; accent-color: var(--growth-red); }
.growth-share-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 18px; }.growth-share-options button { min-height: 48px; border: 1px solid var(--growth-line); border-radius: 14px; color: var(--growth-navy); background: #f8fafc; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }.growth-share-options .is-primary { grid-column: 1 / -1; color: #fff; border-color: var(--growth-red); background: var(--growth-red); }
.growth-dialog-note { margin-top: 14px; color: var(--growth-muted); font-size: 11px; line-height: 1.45; }
.growth-dialog-status { min-height: 20px; margin-top: 10px; color: var(--growth-navy); font-size: 13px; font-weight: 750; text-align: center; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--growth-blue); outline-offset: 3px; }

@keyframes growth-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes growth-confetti { 0% { opacity: 0; transform: translateY(-8px) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(95px) rotate(190deg); } }

@media (min-width: 620px) {
  .growth-shell { padding-inline: 28px; }
  .growth-summary-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 20px; align-items: start; }
  .growth-summary-layout .growth-share-card { grid-column: 2; grid-row: 1 / span 3; }
  .growth-summary-layout .growth-stats, .growth-summary-layout .growth-actions { grid-column: 1; }
}

@media (max-width: 350px) {
  .growth-shell { padding-inline: 12px; }
  .growth-share-card { border-radius: 23px; padding: 20px; }
  .shared-route-actions, .route-growth-actions { grid-template-columns: 1fr; }
  .growth-share-options { grid-template-columns: 1fr; }.growth-share-options .is-primary { grid-column: auto; }
  .shared-stop { grid-template-columns: 32px minmax(0,1fr); }.shared-stop > span:last-child { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .growth-celebration { animation: none; }
  .growth-confetti { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
