:root {
  --color-primary: #ff7a1a;
  --color-primary-light: #ffb45c;
  --color-primary-mid: #ff8a2a;
  --color-primary-dark: #d95c09;
  --color-primary-bg: rgba(255, 122, 26, 0.04);
  --color-primary-bg-hover: rgba(255, 122, 26, 0.08);
  --color-primary-border: rgba(255, 122, 26, 0.72);
  --color-white: #fff;
  --color-black: #000;

  --font-family: Georgia, "Times New Roman", serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 28px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 30px;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-white);
  color: var(--color-primary);
  text-transform: lowercase;
}

body.menu-open {
  overflow: hidden;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
}

.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 12px 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.site-topbar a {
  color: #ff7a1a;
  text-decoration: none;
}

.site-topbar .brand {
  display: inline-flex;
  align-items: center;
}

.site-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  display: block;
  height: 44px;
  width: auto;
}

.site-bell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #ff7a1a;
}

.site-bell-link svg {
  display: block;
  width: 25px;
  height: 25px;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  padding: 0 4px;
}

.menu-line {
  width: 76%;
  height: 2.5px;
  align-self: center;
  border-radius: 999px;
  background: #ff7a1a;
}

.site-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #fff;
  padding: 74px 24px 24px;
}

.menu-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 13px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.82);
}

.menu-close::before {
  transform: rotate(45deg);
}

.menu-close::after {
  transform: rotate(-45deg);
}

.site-menu-overlay[hidden] {
  display: none;
}

.site-menu-panel {
  width: min(540px, 100%);
  display: grid;
  gap: 10px;
  justify-items: start;
}

.site-menu-link {
  display: inline-block;
  text-decoration: none;
  color: #ff7a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  line-height: 1.08;
  font-weight: 700;
  text-align: left;
  padding: 0;
  position: relative;
  transform-origin: left center;
  transition: transform 120ms ease-out;
}

.site-menu-sub {
  display: inline;
  font-size: 0.38em;
  font-weight: 400;
  opacity: 0.55;
  line-height: 1.3;
  margin-left: 0.3em;
}

.site-menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 130ms ease-out;
}

.site-menu-link:hover,
.site-menu-link:focus-visible {
  transform: scale(1.1);
}

.site-menu-link:hover::after,
.site-menu-link:focus-visible::after {
  transform: scaleX(1);
}

.menu-empty {
  opacity: 0.45;
  pointer-events: none;
}

@media (min-width: 900px) {
  .site-menu-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .site-menu-panel {
    width: min(560px, 100%);
  }
}

.container {
  max-width: 1024px;
  margin: 14px auto;
  padding: 0 16px;
}

.hero {
  background: transparent;
  border-radius: 12px;
  padding: 28px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  font-weight: 400;
}

.button-pill {
  border-radius: var(--radius-pill);
  padding: 12px 28px;
}

.button-secondary {
  background: #fff;
}

.button:hover,
.button:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

.card {
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.scout-invite-banner {
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.45);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px;
}

.scout-invite-banner p {
  margin: 0;
}

.scout-invite-banner .scout-invite-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c24e00;
  margin-bottom: 4px;
}

.scout-invite-banner strong {
  color: #c24e00;
}

.login-form {
  background: transparent;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.login-page .container {
  max-width: 460px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.login-page .menu-toggle {
  display: none;
}

.login-form label {
  margin-top: 0;
}

.login-form input {
  width: 100%;
  padding: 8px 14px;
  margin-bottom: 0;
  box-sizing: border-box;
  background: #fff;
  color: #000;
}

.login-form .button {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.login-signup-button {
  display: inline-flex;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dashboard-actions .button-active {
  background: rgba(255, 122, 26, 0.2);
  border-color: rgba(255, 122, 26, 0.72);
  color: #c85f0b;
}

.dashboard-actions .button-inactive {
  background: rgba(255, 122, 26, 0.06);
  border-color: rgba(255, 122, 26, 0.3);
  color: rgba(255, 122, 26, 0.72);
}

.recommendation-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-chip-icon {
  font-weight: 700;
  font-size: 0.9em;
}

.filter-chip.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.recommendation-grid {
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visit-row {
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.venue-visit-row {
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.venue-results {
  display: grid;
  gap: 12px;
}

.venue-result {
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 8px;
  padding: 14px;
}

.venue-result p {
  margin: 6px 0 0;
}

.venue-result-meta {
  opacity: 0.82;
}

.venue-visit-row p {
  margin: 6px 0 0;
}

.venue-visit-meta {
  opacity: 0.8;
  font-size: 0.95rem;
}

.venue-visit-scores {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.feed-page {
  background: #fff;
  text-transform: none;
}

.feed-page .container {
  background: #fff;
}

.reach-page {
  background: #fff;
  text-transform: none;
}

.reach-page .container {
  background: #fff;
}

.reach-shell {
  display: grid;
  gap: 12px;
}

.reach-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reach-header h1 {
  margin: 0;
}

.social-connections-title {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.social-connections-title h1 {
  margin: 0;
}

.reach-back-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff7a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reach-back-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.reach-list {
  display: grid;
  gap: 10px;
}

.reach-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 122, 26, 0.18);
}

.reach-message,
.reach-meta,
.reach-empty {
  margin: 0;
}

.reach-message {
  color: #000;
}

.reach-meta {
  color: #9a9a9a;
  opacity: 1;
}

.feed-shell {
  display: grid;
  gap: 12px;
}

.feed-header {
  display: grid;
  gap: 0;
}

.feed-header h1 {
  margin: 0 0 0 0.08em;
}

.feed-title-mobile {
  display: none;
}

.feed-list {
  display: grid;
  gap: 24px;
}

.feed-card {
  display: grid;
  gap: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(183, 96, 28, 0.08);
  padding: 16px 18px;
}

.feed-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
}

.feed-user-link {
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.feed-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, 0.22);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 26, 0.04);
}

.feed-user-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.feed-headline {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #000;
}

.feed-meta {
  margin: 0;
  color: #9a9a9a;
  opacity: 1;
}

.feed-card-body {
  display: grid;
  grid-template-columns: minmax(0, 145px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.feed-map-panel,
.feed-review-panel {
  min-width: 0;
}

.feed-mini-map,
.feed-map-fallback {
  height: 66px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.feed-mini-map .gm-style-cc,
.feed-mini-map .gm-style a[href*="google"] {
  display: none !important;
}

.feed-map-fallback {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.feed-map-fallback p {
  margin: 0;
  opacity: 0.78;
}

.feed-review-panel {
  display: grid;
  gap: 0;
}

.feed-review-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.feed-review-ring {
  position: relative;
  min-height: 66px;
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.03);
  border: 1px solid rgba(255, 122, 26, 0.1);
}

.feed-review-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.feed-review-track,
.feed-review-progress {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.feed-review-track {
  stroke: rgba(255, 122, 26, 0.12);
}

.feed-review-progress {
  transition: stroke-dashoffset 0.25s ease;
}

.feed-review-core {
  position: absolute;
  inset: 20%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  text-align: center;
}

.feed-review-metric {
  font-size: 0.56rem;
  line-height: 1;
  opacity: 0.76;
}

.feed-review-value {
  font-size: 0.72rem;
  line-height: 1.05;
}

.feed-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.feed-roger-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: #000;
}

.feed-roger-summary.is-empty {
  color: #9a9a9a;
}

.feed-roger-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.feed-roger-avatar {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #fff;
  background: rgba(255, 122, 26, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-roger-avatar:first-child {
  margin-left: 0;
}

.feed-roger-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-roger-avatar .feed-user-avatar-fallback {
  background-size: 74% 74%;
}

.feed-roger-copy,
.feed-roger-empty {
  min-width: 0;
  line-height: 1.35;
}

.feed-roger-copy strong {
  font-weight: 700;
}

.feed-action-form {
  min-width: 0;
  margin: 0;
}

.feed-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: #ff7a1a;
  white-space: nowrap;
  box-sizing: border-box;
}

.feed-action-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.feed-action-button > span {
  min-width: 0;
}

.feed-action-link {
  text-decoration: none;
  color: #ff7a1a;
}

.feed-action-button strong {
  font-size: inherit;
  font-weight: inherit;
  flex-shrink: 0;
}

.feed-action-button.is-active {
  background: #fff;
}

.feed-action-button.is-active .feed-action-copy {
  font-weight: 700;
}

.feed-action-button.is-active strong {
  font-weight: 700;
  color: #ff7a1a;
}

@keyframes roger-tap {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.91); }
  100% { transform: scale(1); }
}

.feed-action-button.is-tapping {
  animation: roger-tap 0.22s ease-out forwards;
}

.feed-action-delete {
  opacity: 0.5;
  font-size: 0.8rem;
}

.feed-action-delete:hover,
.feed-action-delete:focus-visible {
  opacity: 0.9;
  color: #c0392b;
}

.feed-comment-list {
  display: grid;
  gap: 6px;
}

.feed-comment {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.feed-detail-main {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.feed-detail-shell {
  max-width: 1024px;
  margin: 0 auto;
  min-height: calc(100dvh - 60px);
  padding: 10px 16px 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 8px;
  background: #fff;
}

.feed-detail-back {
  margin: 0;
}

.feed-detail-back a {
  color: #ff7a1a;
  text-decoration: underline;
}

.feed-detail-post {
  display: grid;
  gap: 4px;
}

.feed-detail-post .feed-headline,
.feed-detail-post .feed-meta {
  margin: 0;
}

.feed-detail-post-body {
  margin-top: 6px;
}

.feed-detail-post-body .feed-mini-map,
.feed-detail-post-body .feed-map-fallback,
.feed-detail-post-body .feed-review-ring {
  height: 66px;
  min-height: 66px;
}

.feed-intel-panel {
  display: grid;
  gap: 10px;
  background: transparent;
  padding-bottom: 80px;
}

.feed-intel-panel h1 {
  margin: 0;
  font-size: 1.4rem;
}

.feed-detail-comment-form {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(96px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid rgba(255, 122, 26, 0.1);
  z-index: 20;
}

.feed-detail-comment-form input {
  width: 100%;
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 999px;
  height: 42px;
  padding: 0 16px;
  background: #fff;
  color: #ff7a1a;
  font: inherit;
  box-sizing: border-box;
  margin: 0;
}

.feed-detail-comment-form button {
  width: 100%;
  border-radius: 999px;
  height: 42px;
  padding: 0 16px;
  font: inherit;
  text-transform: none;
}

.feed-comment-thread {
  display: grid;
  gap: 0;
}

.feed-comment-card {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.feed-comment-card p {
  margin: 0;
  line-height: 1.45;
}

.feed-comment-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.feed-comment-body {
  word-break: break-word;
}

.feed-comment-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.feed-comment-meta strong,
.feed-comment-meta span {
  margin: 0;
}

.feed-comment-meta strong {
  color: #000;
}

.feed-comment-action-form {
  margin: 0;
}

.feed-comment-like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: #fff;
  color: #ff7a1a;
  font: inherit;
  line-height: 1.2;
}

.feed-comment-like-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.feed-comment-heart-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-comment-heart-fill {
  fill: #ff7a1a;
  opacity: 0;
}

.feed-comment-like-button.is-active .feed-comment-heart-outline {
  stroke: #ff7a1a;
}

.feed-comment-like-button.is-active .feed-comment-heart-fill {
  opacity: 1;
}

.feed-comment-like-button strong {
  font-size: inherit;
  font-weight: inherit;
}

.feed-comment-meta span {
  color: #9a9a9a;
  opacity: 1;
}

.feed-no-intel {
  opacity: 0.76;
}

label {
  display: block;
  margin-top: 8px;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 122, 26, 0.55);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
  background: rgba(255, 122, 26, 0.06);
  color: #ff7a1a;
}

.profile-readonly-field,
.profile-readonly-field:hover,
.profile-readonly-field:focus {
  background: #efefef;
  border-color: #d6d6d6;
  color: #8b8b8b;
  cursor: default;
  outline: none;
  box-shadow: none;
}

.dashboard-page .card {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.dashboard-venues-logged {
  margin-top: var(--space-lg);
}

.dashboard-page .profile-readonly-item {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.dashboard-page .venue-results {
  gap: 12px;
  margin-top: 12px;
}

.dashboard-page .profile-readonly-item p {
  margin: 0;
}

.dashboard-page .dashboard-actions {
  justify-content: flex-start;
  align-items: flex-start;
}

.dashboard-page .card,
.dashboard-page .venue-results,
.dashboard-page .profile-readonly-item,
.dashboard-page .profile-readonly-item p,
.dashboard-page h1,
.dashboard-page h2 {
  text-align: left;
}

.profile-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.profile-page-head-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 20px;
}

.profile-back-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
}

.profile-back-head h1 {
  margin: 0;
}

.profile-page-head h1 {
  margin: 0;
}

.profile-page-actions {
  margin-bottom: 0;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-photo-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.profile-photo-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-trigger {
  width: 108px;
  height: 108px;
  border: 1px solid #ff7a1a;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.profile-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
}

.profile-section-head h2 {
  margin: 0;
}

.profile-edit-link {
  color: #ff7a1a;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
}

.profile-edit-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.profile-edit-shell {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 26px 16px 36px;
  box-sizing: border-box;
}

.profile-edit-shell h1 {
  margin-top: 0;
}

.profile-edit-close {
  top: 14px;
  right: 16px;
}

.profile-edit-form {
  margin-top: 6px;
}

.profile-edit-page input,
.profile-edit-page select {
  background: #fff;
}

.profile-edit-page .profile-readonly-field,
.profile-edit-page .profile-readonly-field:hover,
.profile-edit-page .profile-readonly-field:focus {
  background: #efefef;
}

.profile-edit-save-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.profile-edit-save-wrap .button {
  min-width: 160px;
}

@media (max-width: 640px) {
  .dashboard-page .venue-results {
    gap: 6px;
    margin-top: 6px;
  }

  .dashboard-page .profile-readonly-item {
    margin-bottom: 0;
  }

  .dashboard-page .profile-readonly-item p {
    margin: 0;
    line-height: 1.3;
  }

  .profile-edit-form input,
  .profile-edit-form select {
    width: 75%;
    min-width: 75%;
    margin-left: 0;
  }
}

.slider-field {
  margin-bottom: 8px;
}

.visit-guidance {
  margin: 20px 0 24px;
}

.visit-guidance p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.visit-form {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.visit-page {
  overflow-x: hidden;
}

.visit-page input,
.visit-page select {
  box-sizing: border-box;
  max-width: 100%;
}

.visit-nearby-shell {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 18px;
  background: rgba(255, 249, 244, 0.82);
}

.visit-nearby-head {
  display: grid;
  gap: 6px;
}

.visit-nearby-head h2 {
  margin: 0;
  font-size: 1rem;
}

.visit-nearby-head p,
.visit-selected-venue {
  margin: 0;
  line-height: 1.4;
}

.visit-nearby-actions {
  margin-top: 14px;
}

.visit-nearby-actions .button {
  min-height: 46px;
}

.visit-nearby-results {
  margin-top: 14px;
}

.venue-results-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.venue-results-close {
  min-height: 32px;
  padding: 4px 14px;
  font-size: 0.9rem;
}

.visit-nearby-result {
  background: rgba(255, 255, 255, 0.94);
}

.visit-nearby-actions-row {
  grid-template-columns: 1fr;
}

.venue-results--collapsed .venue-result:not(.venue-result--selected) {
  display: none;
}

.venue-result--selected {
  border-color: #ff7a1a;
  background: rgba(255, 122, 26, 0.06);
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.12);
}

.venue-result--selected:hover {
  transform: none;
}

.visit-text-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.visit-name-search-shell {
  position: relative;
}

.visit-name-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 35;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(131, 63, 17, 0.12);
  overflow: hidden;
}

.visit-name-suggestion {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 122, 26, 0.12);
  background: transparent;
  color: #ff7a1a;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
}

.visit-name-suggestion:first-child {
  border-top: 0;
}

.visit-name-suggestion:hover,
.visit-name-suggestion:focus-visible {
  background: rgba(255, 122, 26, 0.08);
}

.visit-name-suggestion strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ff7a1a;
}

.visit-name-suggestion span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.visit-context-section {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 8px 0;
}

.visit-context-section h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.visit-context-row {
  margin-bottom: 12px;
}

.visit-when-row {
  margin-bottom: 12px;
}

.visit-when-row label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.visit-when-row select {
  width: 100%;
  box-sizing: border-box;
}

.visit-context-row label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.visit-context-row select {
  width: 100%;
  box-sizing: border-box;
}

.visit-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.visit-tag-chip {
  cursor: pointer;
}

.visit-tag-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visit-tag-label {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.06);
  color: #ff7a1a;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.visit-tag-input:checked + .visit-tag-label {
  background: #ff7a1a;
  color: #fff;
  border-color: #ff7a1a;
}

.signup-taste-section {
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: var(--radius-md, 10px);
  padding: 16px;
}

.signup-taste-section h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.signup-field {
  margin-bottom: 12px;
}

.signup-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.signup-field select {
  width: 100%;
  box-sizing: border-box;
}

.slider-label-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.slider-label-row label {
  font-size: 1.04rem;
  font-weight: 600;
}

.review-scale {
  --review-thumb-left: 50%;
  --review-thumb-top: 32.9%;
  position: relative;
  margin: 6px 0 0;
  padding: 0 12px 10px;
}

.review-scale-curve {
  position: relative;
  height: 82px;
}

.review-scale-curve-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 54px;
  overflow: visible;
}

.review-scale-curve-line {
  fill: none;
  stroke: rgba(255, 122, 26, 0.28);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.review-scale-notch {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.review-scale-notch.is-active {
  transform: translate(-50%, -50%);
}

.review-scale-notch-1 {
  left: 0%;
  top: 50.8%;
}

.review-scale-notch-2 {
  left: 27.5%;
  top: 37.6%;
}

.review-scale-notch-3 {
  left: 50%;
  top: 32.9%;
}

.review-scale-notch-4 {
  left: 72.5%;
  top: 37.6%;
}

.review-scale-notch-5 {
  left: 100%;
  top: 50.8%;
}

.review-scale-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #9d9d9d;
}

.review-scale-word {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  max-width: 86px;
  font-size: 0.84rem;
  line-height: 1.2;
  color: #4f4f4f;
  text-wrap: balance;
}

.review-scale-notch.is-active .review-scale-word {
  color: #4f4f4f;
  font-weight: 700;
}

.review-scale-notch-1 .review-scale-word {
  left: 0;
  transform: none;
  text-align: left;
}

.review-scale-notch-5 .review-scale-word {
  left: auto;
  right: 0;
  transform: none;
  text-align: right;
}

.review-scale-thumb {
  position: absolute;
  left: var(--review-thumb-left);
  top: var(--review-thumb-top);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid #ff7a1a;
  background: #ff7a1a;
  box-shadow: 0 10px 18px rgba(189, 91, 21, 0.2);
  pointer-events: none;
}

.review-scale-input {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 82px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  touch-action: none;
}

.review-scale:focus-within .review-scale-thumb {
  box-shadow:
    0 0 0 4px rgba(255, 122, 26, 0.16),
    0 10px 18px rgba(189, 91, 21, 0.2);
}

.review-rating {
  margin-top: 8px;
}

.review-rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.review-rating-option {
  position: relative;
}

.review-rating-input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.review-rating-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid #ff7a1a;
  background: #ffffff;
  color: #b8b8b8;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(189, 91, 21, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.review-rating-input:checked + .review-rating-button {
  border-color: #ff7a1a;
  background: #ff7a1a;
  color: #ffffff;
  transform: translateY(-1px);
}

.review-rating-input:focus-visible + .review-rating-button {
  outline: 3px solid rgba(255, 122, 26, 0.22);
  outline-offset: 2px;
}

.signup-form {
  display: grid;
  gap: 20px;
}

.signup-section h2 {
  margin: 0 0 12px;
}

.signup-section p {
  margin: 0 0 8px;
}

.signup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.personality-question {
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.likert-hints {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 4px 0 8px;
}

.inline-fieldset {
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 8px;
  padding: 10px 12px 12px;
  margin: 8px 0 12px;
}

.inline-fieldset legend {
  padding: 0 6px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.option-chip input {
  width: auto;
  margin: 0;
}

.error {
  color: #c24e00;
}

#map {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .feed-card-body {
    grid-template-columns: minmax(0, 135px) minmax(0, 1fr);
  }

  .map-main {
    height: calc(100dvh - 64px);
  }
}

.landing-page {
  background: #fff;
  color: #ff7a1a;
}

.landing-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.recommendation-page {
  overflow: hidden;
  background: #f7efe7;
  color: #a44d15;
}

.map-page {
  overflow: hidden;
  background: #f7efe7;
  color: #a44d15;
}

.recommendation-main {
  max-width: none;
  margin: 0;
  padding: 0;
  height: calc(100vh - 64px);
  position: relative;
}

.map-main {
  max-width: none;
  margin: 0;
  padding: 0;
  height: calc(100vh - 64px);
  position: relative;
}

.recommendation-map-shell {
  position: relative;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(185, 84, 13, 0.18), transparent 28%),
    #f4ebe2;
}

.map-shell {
  position: relative;
  height: 100%;
}

.recommendation-map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 250, 245, 0.08), transparent 40%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 20%);
  pointer-events: none;
  z-index: 1;
}

.map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 250, 245, 0.08), transparent 40%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 20%);
  pointer-events: none;
  z-index: 1;
}

.recommendation-page #map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: saturate(0.96) contrast(1.02);
}

.map-page #map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: saturate(0.96) contrast(1.02);
}

.recommendation-overlay {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  width: min(420px, calc(100% - 44px));
  max-height: calc(100% - 44px);
  overflow: auto;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 64px rgba(131, 63, 17, 0.18);
}

.map-overlay {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 64px rgba(131, 63, 17, 0.18);
}

.recommendation-panel-head {
  padding-left: 0.08em;
}

.recommendation-panel-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
  font-weight: 400;
  max-width: none;
  white-space: nowrap;
  color: #ff7a1a;
}

.map-panel-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
  font-weight: 400;
}

.map-intro {
  margin: 0;
  max-width: 30ch;
  color: rgba(164, 77, 21, 0.82);
  line-height: 1.45;
}

.map-toggle-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.map-toggle {
  border-radius: 999px;
  padding: 11px 14px;
  background: #fff;
  color: #a44d15;
  border: 1px solid rgba(255, 122, 26, 0.22);
  font: inherit;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}

.map-toggle.is-active {
  background: #ff7a1a;
  color: #fffaf4;
  border-color: #ff7a1a;
}

.map-user-location-icon {
  background: transparent;
  border: 0;
}

.map-user-location-icon span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.map-user-location-pulse {
  background: rgba(47, 128, 255, 0.22);
  animation: map-user-location-pulse 1.8s ease-out infinite;
}

.map-user-location-dot {
  inset: 6px;
  background: #2f80ff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(47, 128, 255, 0.22);
}

@keyframes map-user-location-pulse {
  0% {
    transform: scale(0.72);
    opacity: 0.95;
  }

  70% {
    transform: scale(1.38);
    opacity: 0;
  }

  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.map-summary {
  margin: 14px 0 0;
  color: rgba(164, 77, 21, 0.82);
}

.recommendation-sheet-handle {
  display: none;
}

.recommendation-sheet-toggle {
  display: none;
}

.recommendation-venue-sheet {
  display: none;
}

.recommendation-venue-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.recommendation-intro {
  margin: 0 0 14px;
  max-width: 34ch;
  color: #5f5f5f;
  line-height: 1.45;
}

.location-status {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 34px;
  border-radius: 16px;
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.14);
  color: #8d4312;
  font-size: 0.95rem;
}

.location-status::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff7a1a;
  transform: translateY(-50%);
  box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.12);
}

.location-status.is-hidden {
  display: none;
}

.recommendation-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 0;
}

.results-summary {
  margin: 0 0 12px;
  color: rgba(164, 77, 21, 0.76);
  line-height: 1.35;
}

.location-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  align-items: stretch;
}

.location-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.location-search-row input {
  margin-bottom: 0;
}

.recommendation-overlay input,
.recommendation-overlay .button,
.recommendation-overlay .filter-chip {
  min-height: 48px;
  box-sizing: border-box;
}

.location-controls input,
.location-controls > .button {
  height: 48px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-weight: 400;
  border-radius: 18px;
  border: 1px solid #ff7a1a;
  background: transparent;
  color: #ff7a1a;
  padding: 0 18px;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.recommendation-overlay input {
  appearance: none;
  -webkit-appearance: none;
}

.recommendation-overlay input::placeholder {
  color: #ff7a1a;
  opacity: 1;
}

.recommendation-overlay .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-weight: 400;
  border-radius: 18px;
  border: 1px solid rgba(255, 122, 26, 0.72);
  background: rgba(255, 122, 26, 0.08);
  color: #ff7a1a;
  padding: 0 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.recommendation-overlay .button:hover {
  transform: translateY(-1px);
  background: rgba(255, 122, 26, 0.12);
  box-shadow: 0 12px 24px rgba(131, 63, 17, 0.1);
}

.recommendation-overlay .button-secondary {
  background: transparent;
  border-color: rgba(255, 122, 26, 0.72);
  color: #ff7a1a;
}

.location-search-row .button,
.location-controls > .button {
  white-space: nowrap;
}

.location-controls > .button {
  justify-content: center;
}

.location-controls > .button:hover {
  background: #ff7a1a;
  color: #fff;
  box-shadow: none;
  transform: none;
}

body .pac-container {
  margin-top: 6px;
  border: 1px solid rgba(255, 122, 26, 0.42);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(131, 63, 17, 0.14);
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: lowercase;
  overflow: hidden;
  z-index: 1205;
}

body .pac-container .pac-item {
  border-top: 1px solid rgba(255, 122, 26, 0.14);
  padding: 10px 14px;
  color: #ff7a1a;
  font-size: 0.95rem;
  line-height: 1.3;
  background: transparent;
}

body .pac-container .pac-item:first-child {
  border-top: 0;
}

body .pac-container .pac-item:hover,
body .pac-container .pac-item.pac-item-selected {
  background: rgba(255, 122, 26, 0.08);
}

body .pac-container .pac-item-query {
  color: #ff7a1a;
  font-size: 0.96rem;
}

body .pac-container .pac-matched {
  font-weight: 700;
}

.recommendation-filters {
  margin: 0;
  gap: 10px;
}

.recommendation-page .filter-chip {
  flex: 1 1 0;
  min-width: 96px;
  font-family: Georgia, "Times New Roman", serif;
  border-radius: 999px;
  border: 1px solid #c9c9c9;
  background: #ffffff;
  color: #5f5f5f;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.recommendation-page .filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(131, 63, 17, 0.09);
}

.recommendation-page .filter-chip.active {
  background: #ff7a1a;
  border-color: #ff7a1a;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(131, 63, 17, 0.11);
}


.recommendation-results-section {
  padding-bottom: 2px;
}

.venue-results {
  display: grid;
  gap: 12px;
}

.venue-results-empty {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 249, 244, 0.92);
  border: 1px dashed rgba(255, 122, 26, 0.26);
  color: rgba(164, 77, 21, 0.8);
}

.venue-result {
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 249, 244, 0.92);
  box-shadow: 0 14px 34px rgba(131, 63, 17, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.venue-result:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.34);
  box-shadow: 0 18px 40px rgba(131, 63, 17, 0.12);
}

.venue-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8f3d, #ff6a00);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(255, 122, 26, 0.22);
}

.venue-result-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  justify-content: space-between;
}

.venue-result-heading {
  flex: 1;
  min-width: 0;
}

.venue-result-name {
  display: block;
  font-size: 1.03rem;
}

.venue-result-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-bg-hover);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-bottom: var(--space-xs);
}

.venue-result-address {
  margin: var(--space-xs) 0 0;
  color: rgba(164, 77, 21, 0.74);
  line-height: 1.35;
  font-size: 0.85rem;
}

.venue-result-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.venue-result-rating {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.venue-result-distance {
  font-size: 0.75rem;
  color: rgba(164, 77, 21, 0.6);
}

.venue-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.08);
  border: 1px solid rgba(255, 122, 26, 0.14);
  color: #8f4512;
  font-size: 0.88rem;
}

.venue-meta-label {
  color: rgba(164, 77, 21, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.recommendation-overlay .venue-meta-action {
  min-height: 0;
  padding: 7px 10px;
  border-radius: 999px;
  border-color: rgba(255, 122, 26, 0.14);
  background: rgba(255, 122, 26, 0.08);
  box-shadow: none;
  font-size: 0.88rem;
}

.recommendation-overlay .venue-meta-action:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 122, 26, 0.14);
}

.venue-result-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.recommendation-overlay .venue-action-btn {
  min-height: 42px;
  border-radius: 14px;
}

.venue-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(73, 35, 10, 0.34);
  backdrop-filter: blur(2px);
}

.venue-modal {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: min(740px, calc(100% - 28px));
  max-height: calc(100% - 32px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 22px;
  border: 1px solid rgba(255, 122, 26, 0.22);
  background: #fff9f4;
  box-shadow: 0 26px 56px rgba(121, 53, 12, 0.24);
  padding: 18px;
}

#venue-review-modal {
  background: #ffffff;
}

#venue-review-modal .slider-label-row label {
  color: #ff7a1a;
}

.recommendation-page.is-reviewing .recommendation-map-shell {
  background: #ffffff;
}

.recommendation-page.is-reviewing #map,
.recommendation-page.is-reviewing .recommendation-overlay,
.recommendation-page.is-reviewing .recommendation-venue-sheet,
.recommendation-page.is-reviewing .recommendation-sheet-toggle {
  opacity: 0;
  pointer-events: none;
}

.recommendation-page.is-reviewing .venue-modal-backdrop {
  background: #ffffff;
  backdrop-filter: none;
}

.venue-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.venue-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.venue-modal-close {
  border: 0;
  background: transparent;
  color: rgba(164, 77, 21, 0.76);
  padding: 0;
}

.venue-insight-name {
  margin: 4px 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.venue-insight-address {
  margin: 0 0 12px;
  color: rgba(164, 77, 21, 0.78);
}

.venue-insight-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.venue-insight-photos.photo-count-1 {
  grid-template-columns: 1fr;
}

.venue-insight-photos.photo-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.venue-insight-photos.photo-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.venue-insight-photo {
  margin: 0;
}

.venue-insight-photo.is-single {
  grid-column: 1 / -1;
}

.venue-insight-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  background: rgba(255, 122, 26, 0.05);
}

.venue-insight-section {
  margin-top: 14px;
}

.venue-insight-section h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.venue-insight-section p {
  margin: 0;
}

.venue-insight-note {
  color: rgba(164, 77, 21, 0.72);
  margin-bottom: 8px;
}

.insight-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.insight-meter {
  width: 100%;
  min-height: 14px;
  display: grid;
  align-items: center;
}

.insight-meter-svg {
  width: 100%;
  height: 14px;
  display: block;
  overflow: visible;
}

.insight-meter-remainder,
.insight-meter-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.insight-meter-remainder {
  stroke: rgba(255, 188, 129, 0.28);
}

.insight-meter-progress {
  filter: none;
}

.insight-slider-word {
  font-size: 0.92rem;
  color: #8f4512;
  min-width: 70px;
  text-align: right;
}

.venue-demographic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 12px;
}

.insight-demo-ring {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.96), #fff8f0 72%);
  box-shadow: 0 12px 26px rgba(217, 92, 9, 0.12);
}

.insight-demo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.insight-demo-track,
.insight-demo-progress {
  fill: none;
  stroke-width: 14;
}

.insight-demo-track {
  stroke: rgba(255, 188, 129, 0.28);
}

.insight-demo-progress {
  stroke-linecap: round;
  filter: drop-shadow(0 8px 14px rgba(217, 92, 9, 0.12));
}

.insight-demo-core {
  position: absolute;
  inset: 23%;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 3px;
  padding: 0;
}

.insight-demo-title {
  font-size: 0.68rem;
  line-height: 1.08;
  color: rgba(176, 101, 37, 0.9);
}

.insight-demo-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: #5b2b0d;
}

.venue-review-form {
  margin-top: 10px;
}

.venue-review-save {
  width: 100%;
  margin-top: 6px;
}

.venue-review-feedback {
  min-height: 1.2em;
  margin: 0;
  color: rgba(164, 77, 21, 0.8);
}

.landing {
  min-height: 100vh;
  background: #fff;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
  background: transparent;
  border-radius: 0;
}

.hero h1 {
  margin: 0 0 var(--space-lg);
  color: var(--color-primary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  max-width: 10ch;
  font-weight: 400;
}

.hero p {
  margin: 0 0 var(--space-lg);
}

.landing-greeting {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-2xl);
}

.actions {
  display: flex;
  gap: var(--space-xl);
  margin-top: 0;
  justify-content: center;
}

.landing-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  width: min(480px, 100%);
  margin-bottom: var(--space-2xl);
}

.landing-action-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg) var(--space-md);
  background: #fff;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-primary);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.landing-action-card:hover,
.landing-action-card:focus-visible {
  background: rgba(255, 122, 26, 0.06);
  border-color: var(--color-primary-dark);
}

.landing-action-card strong {
  font-size: 1rem;
}

.landing-action-card span {
  font-size: 0.78rem;
  opacity: 0.7;
  line-height: 1.3;
}

.landing-action-primary {
  grid-column: 1 / -1;
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.landing-action-primary:hover,
.landing-action-primary:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.landing-action-primary span {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.landing-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.landing-stat strong {
  font-size: 1.5rem;
}

.landing-stat span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.landing-recent {
  width: min(480px, 100%);
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.landing-recent h2 {
  margin: 0 0 var(--space-sm);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
}

.landing-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 122, 26, 0.1);
}

.landing-recent-item strong {
  font-size: 0.9rem;
}

.landing-recent-item span {
  font-size: 0.78rem;
  opacity: 0.7;
}

.landing-secondary-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-primary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cta-secondary {
  background: #fff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.social-card {
  margin-top: 16px;
  background: transparent;
  padding: 0;
}

.social-page,
.social-page button,
.social-page input,
.social-page select,
.social-page textarea {
  font-family: Georgia, "Times New Roman", serif;
}

.social-search-row,
.social-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: stretch;
}

.social-search-row input,
.social-invite-row input {
  width: 100%;
  margin-bottom: 0;
  min-height: 48px;
  box-sizing: border-box;
  background: transparent;
}

.social-search-row .button,
.social-invite-row .button {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 8px;
  white-space: nowrap;
}

.social-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.social-user-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-user-avatar-link {
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.social-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, 0.22);
  background: rgba(255, 122, 26, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-user-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-user-copy {
  min-width: 0;
}

.social-user-copy p {
  margin: 4px 0 0;
}

.social-request-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.social-feedback,
.social-copy-feedback {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: rgba(255, 122, 26, 0.92);
}

.social-error {
  margin: 10px 0 0;
}

.social-chip {
  border: 1px solid rgba(255, 122, 26, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 122, 26, 0.08);
  margin: 0;
}

.social-user-link {
  color: inherit;
  text-decoration: none;
}

.social-user-link:hover,
.social-user-link:focus-visible {
  text-decoration: underline;
}

.social-scout-pill {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
}

.social-request-actions .social-scout-pill {
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.social-scout-pill-connected {
  background: #ff7a1a;
  border-color: #ff7a1a;
  color: #fff;
}

.social-scout-pill-remove {
  background: #fff;
  border-color: #ff7a1a;
  color: #ff7a1a;
}

.profile-photo-placeholder,
.feed-user-avatar-fallback,
.social-user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: block;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.25' fill='%23ff7a1a'/%3E%3Cpath d='M4.5 20.5c.9-4.35 4-6.5 7.5-6.5s6.6 2.15 7.5 6.5' fill='none' stroke='%23ff7a1a' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68% 68%;
}

.scout-profile-shell {
  display: grid;
  gap: 14px;
}

.scout-profile-head {
  margin-bottom: 0;
}

.scout-profile-back {
  margin: 0;
}

.scout-profile-photo {
  cursor: default;
  flex-shrink: 0;
}

.scout-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 18px;
  align-items: center;
  padding-left: 20px;
  box-sizing: border-box;
}

.scout-profile-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.scout-profile-stat-link {
  color: inherit;
  text-decoration: none;
}

.scout-profile-stat-link:hover,
.scout-profile-stat-link:focus-visible {
  text-decoration: underline;
}

.scout-profile-stat strong {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
}

.scout-profile-stat span {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 400;
  opacity: 1;
}

.scout-profile-card {
  padding: 0;
}

.scout-profile-recons {
  gap: 16px;
  padding-left: 0;
  box-sizing: border-box;
}

.scout-profile-recons .feed-list {
  justify-items: center;
}

.scout-profile-recons .feed-card {
  width: min(100%, 920px);
}

.scout-profile-visit-card {
  cursor: pointer;
}

.scout-profile-visit-card:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.45);
  outline-offset: 4mapx;
}

.scout-profile-recons-head h2 {
  margin: 10px 0 0;
  padding-left: 20px;
}

.own-profile-shell {
  margin-top: 0;
}

.own-profile-actions {
  margin-top: -2px;
}

.own-profile-actions .button {
  min-width: 0;
}

.own-profile-about {
  margin-top: 6px;
}

.social-connections-shell {
  display: grid;
  gap: 16px;
}

.social-connections-list {
  gap: 12px;
}

.social-connections-page .venue-visit-row {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  margin-bottom: 0;
}

.social-connections-page .social-list-row {
  flex-direction: row;
  align-items: center;
}

.social-connections-page .social-user-summary {
  flex: 1 1 auto;
}

.social-connections-page .social-request-actions,
.social-connections-page form {
  margin: 0;
}

input::placeholder {
  color: rgba(255, 122, 26, 0.72);
}

.refine-shell {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 0;
}

.refine-help {
  margin: 0 0 14px;
  line-height: 1.45;
}

.refine-location-controls {
  margin: 10px 0 12px;
  gap: 16px;
}

.refine-location-controls .location-search-row {
  gap: 28px;
}

.refine-location-controls input {
  min-height: 48px;
  width: 100%;
  margin-bottom: 0;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(255, 122, 26, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: #8d4312;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
}

.refine-location-controls .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  white-space: nowrap;
}

.refine-page,
.refine-page button,
.refine-page input,
.refine-page select,
.refine-page textarea {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.refine-progress {
  margin: 0 0 12px;
  font-weight: 700;
}

.refine-top-actions {
  display: flex;
  justify-content: stretch;
  margin-bottom: 10px;
}

.refine-top-actions .button {
  width: 100%;
}

.refine-batch-complete {
  margin-bottom: 12px;
  text-align: center;
}

.refine-batch-complete p {
  margin: 0;
}

.refine-batch-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.refine-batch-actions .button,
#refine-venues-logged {
  min-width: 140px;
}

.refine-batch-actions .button.is-selected {
  background: rgba(255, 122, 26, 0.14);
  border-color: rgba(255, 122, 26, 0.62);
}

#refine-batch-finish {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 14px;
}

.refine-card {
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
  touch-action: pan-y;
}

.refine-card.swipe-left {
  transform: translateX(-120px) rotate(-6deg);
  opacity: 0.42;
}

.refine-card.swipe-right {
  transform: translateX(120px) rotate(6deg);
  opacity: 0.42;
}

.refine-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 16px;
}

.refine-photos.single-photo {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.refine-photo {
  margin: 0;
}

.refine-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 26, 0.35);
}

.refine-photo figcaption {
  margin-top: 6px;
  font-size: 0.92rem;
  opacity: 0.82;
}

.refine-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.refine-top-actions[hidden],
#refine-card[hidden],
.refine-actions[hidden],
#refine-feedback[hidden],
#refine-batch-complete[hidden] {
  display: none !important;
}

.refine-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.refine-transition-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.refine-transition-copy {
  width: min(540px, 100%);
  margin: 0;
  text-align: left;
  color: #ff7a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  line-height: 1.08;
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-topbar {
    align-items: center;
  }

  .map-main {
    height: calc(100svh - 56px);
    height: calc(100dvh - 56px);
  }

  .map-panel-head h1 {
    display: none;
  }

  .map-overlay {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 20px);
    border-radius: 24px 24px 0 0;
    box-sizing: border-box;
  }

  .map-toggle-group {
    gap: 8px;
  }

  .map-toggle {
    padding: 10px 8px;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .feed-title-desktop {
    display: none;
  }

  .feed-title-mobile {
    display: inline;
  }

  .feed-header,
  .feed-card-top,
  .feed-card-copy {
    justify-items: start;
    text-align: left;
    align-items: flex-start;
  }

  .feed-card-top {
    flex-direction: column;
  }

  .feed-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feed-card-body {
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .feed-action-button {
    font-size: 0.86rem;
  }

  .feed-roger-summary {
    gap: 10px;
    font-size: 0.92rem;
  }

  .feed-roger-avatar {
    width: 26px;
    height: 26px;
  }

  .feed-mini-map,
  .feed-map-fallback {
    height: 138px;
  }

  .feed-detail-shell {
    padding-top: 8px;
    min-height: calc(100dvh - 60px);
  }

  .feed-detail-post-body .feed-mini-map,
  .feed-detail-post-body .feed-map-fallback,
  .feed-detail-post-body .feed-review-ring {
    height: 138px;
    min-height: 138px;
  }

  .feed-detail-post-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.3fr);
    gap: 10px;
    align-items: center;
  }

  .feed-detail-post-body .feed-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .feed-detail-post-body .feed-mini-map,
  .feed-detail-post-body .feed-map-fallback {
    height: 146px;
    min-height: 146px;
  }

  .feed-detail-post-body .feed-review-ring {
    height: 69px;
    min-height: 69px;
  }

  .feed-comment-top {
    align-items: start;
    gap: 8px;
  }

  .feed-comment-meta {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .feed-comment-like-button {
    align-items: center;
    gap: 6px;
    line-height: 1;
  }

  .feed-detail-comment-form {
    grid-template-columns: minmax(0, 3fr) minmax(84px, 1fr);
    gap: 8px;
  }

  .refine-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .refine-shell h1 {
    margin: 0 0 8px;
    font-size: 1.9rem;
    line-height: 1;
  }

  .refine-shell > p {
    margin-top: 0;
  }

  .refine-help,
  #refine-status {
    font-size: 0.92rem;
    line-height: 1.32;
  }

  .refine-help {
    margin-bottom: 10px;
  }

  .refine-location-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 10px 0 14px;
  }

  .refine-location-controls input,
  .refine-location-controls .button {
    min-height: 46px;
    margin-bottom: 0;
    min-width: 0;
  }

  .refine-location-controls > .button {
    width: auto;
  }

  .refine-progress {
    margin-bottom: 10px;
    font-size: 0.94rem;
  }

  .refine-top-actions {
    margin-bottom: 8px;
  }

  .refine-batch-complete {
    margin-bottom: 10px;
    padding: 2px 0;
  }

  .refine-batch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .refine-batch-actions .button,
  #refine-venues-logged {
    width: 100%;
    min-width: 0;
  }

  #refine-batch-finish {
    gap: 10px;
    margin-top: 10px;
  }

  .refine-card {
    padding: 12px;
    border-radius: 16px;
  }

  .refine-card h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.08;
  }

  .refine-card .venue-result-meta {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .recommendation-main {
    height: calc(100vh - 56px);
  }

  .recommendation-overlay {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: 50vh;
    padding: 14px 14px calc(26px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: 0 -10px 30px rgba(131, 63, 17, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    will-change: transform;
  }

  .recommendation-overlay.is-sheet-collapsed {
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
    box-shadow: none;
    pointer-events: none;
  }

  .recommendation-overlay.is-intro-only {
    overflow: hidden;
  }

  .recommendation-overlay.is-intro-only .recommendation-results-section {
    display: none;
  }

  .recommendation-panel-head {
    position: relative;
    padding-top: 12px;
    touch-action: none;
  }

  .recommendation-sheet-handle {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 54px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(164, 77, 21, 0.22);
    transform: translateX(-50%);
    cursor: grab;
  }

  .recommendation-sheet-toggle {
    display: inline-flex;
    position: absolute;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 3;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 122, 26, 0.42);
    border-radius: 999px;
    background: rgba(255, 249, 244, 0.94);
    color: #a44d15;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    box-shadow: 0 12px 22px rgba(131, 63, 17, 0.12);
  }

  .recommendation-sheet-toggle[hidden] {
    display: none;
  }

  .recommendation-venue-sheet {
    display: grid;
    position: absolute;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 4;
    gap: 10px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px;
    background: rgba(255, 249, 244, 0.96);
    border: 1px solid rgba(255, 122, 26, 0.18);
    box-shadow: 0 18px 36px rgba(131, 63, 17, 0.16);
    backdrop-filter: blur(16px);
  }

  .recommendation-venue-sheet[hidden] {
    display: none;
  }

  .recommendation-venue-close {
    justify-self: end;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(164, 77, 21, 0.72);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.88rem;
  }

  .recommendation-venue-category {
    margin: 0;
    color: rgba(164, 77, 21, 0.62);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .recommendation-venue-sheet h2 {
    margin: -4px 0 0;
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .recommendation-venue-sheet > p:not(.recommendation-venue-category) {
    margin: 0;
    color: rgba(164, 77, 21, 0.76);
    line-height: 1.35;
    font-size: 0.9rem;
  }

  .recommendation-venue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .recommendation-panel-head h1 {
    font-size: 1.72rem;
    line-height: 1;
  }

  .recommendation-intro {
    margin-bottom: 4px;
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.24;
  }

  .recommendation-section {
    margin-top: 6px;
    padding-top: 6px;
  }

  .recommendation-section:first-of-type {
    margin-top: 0;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .recommendation-section:first-of-type + .recommendation-section {
    margin-top: 4px;
    padding-top: 0;
    border-top: 0;
  }

  .recommendation-filters {
    gap: 4px;
  }

  .results-summary {
    margin-bottom: 4px;
    font-size: 0.88rem;
  }

  .location-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: stretch;
    width: 100%;
  }

  .location-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .recommendation-overlay input,
  .recommendation-overlay .button,
  .recommendation-overlay .filter-chip {
    min-height: 46px;
  }

  .location-controls input,
  .location-controls > .button {
    height: 46px;
  }

  .location-controls > .button {
    min-width: 0;
    padding: 0 12px;
  }

  .recommendation-page .filter-chip {
    flex: 1 1 calc(33.333% - 7px);
    min-width: 0;
    padding: 0 8px;
    font-size: 0.94rem;
  }

  .venue-results {
    gap: 8px;
  }

  .venue-result {
    border-radius: 18px;
    padding: 12px;
  }

  .venue-result-top {
    gap: 10px;
  }

  .venue-rank-badge {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 0.9rem;
  }

  .venue-result-heading strong {
    font-size: 0.96rem;
  }

  .venue-result-address {
    font-size: 0.88rem;
  }

  .venue-result-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
  }

  .venue-result-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .venue-meta-pill,
  .recommendation-overlay .venue-meta-action {
    font-size: 0.8rem;
    min-width: 0;
    min-height: 38px;
    justify-content: center;
    padding: 6px 8px;
    text-align: center;
  }

  .venue-meta-pill {
    gap: 4px;
  }

  .venue-meta-label {
    font-size: 0.68rem;
  }

  .venue-results-empty {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .venue-modal {
    width: calc(100% - 16px);
    max-height: calc(100% - 18px);
    padding: 14px;
    border-radius: 16px;
  }

  .venue-modal-header h2 {
    font-size: 1.2rem;
  }

  .venue-insight-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venue-insight-photos.photo-count-1 {
    grid-template-columns: 1fr;
  }

  .venue-insight-photos.photo-count-3,
  .venue-insight-photos.photo-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venue-demographic-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .insight-demo-core {
    inset: 24%;
    gap: 2px;
  }

  .insight-demo-title {
    font-size: 0.6rem;
  }

  .insight-demo-value {
    font-size: 0.78rem;
  }

  .hero {
    padding: 20px;
  }

  .landing-actions-top,
  .landing-actions-middle,
  .landing-actions-social,
  .landing-actions-profile {
    width: min(360px, calc(100% - 100px));
  }

  .landing-actions-middle,
  .landing-actions-social {
    gap: 12px;
  }

  .landing-actions-profile .button {
    width: calc((100% - 12px) / 2);
  }

  .actions:not(.landing-actions-top):not(.landing-actions-middle):not(.landing-actions-social):not(.landing-actions-profile) {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .actions:not(.landing-actions-top):not(.landing-actions-middle):not(.landing-actions-social):not(.landing-actions-profile) .button {
    width: 100%;
    box-sizing: border-box;
  }

  .social-search-row,
  .social-invite-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .social-list-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-scout-row {
    flex-direction: row;
    align-items: center;
  }

  .social-scout-row .social-user-summary {
    flex: 1 1 auto;
  }

  .social-scout-row .social-user-handle {
    display: none;
  }

  .social-scout-row-actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: auto;
  }

  .scout-profile-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .refine-photos {
    gap: 10px;
    margin: 10px 0 12px;
    grid-template-columns: 1fr;
  }

  .refine-photo img {
    border-radius: 12px;
  }

  .refine-photo figcaption {
    margin-top: 4px;
    font-size: 0.84rem;
  }

  .slider-field {
    margin-bottom: 6px;
  }

  .slider-label-row {
    gap: 8px;
  }

  .slider-label-row label {
    margin: 0 0 4px;
    font-size: 0.98rem;
  }

  .review-scale {
    margin: 4px 0 0;
    padding: 0 clamp(8px, 4vw, 16px) 8px;
  }

  .review-scale-curve {
    height: 78px;
  }

  .review-scale-word {
    top: 17px;
    max-width: 80px;
    font-size: 0.75rem;
  }

  .review-scale-notch-1 .review-scale-word {
    left: 0;
    transform: none;
    text-align: left;
  }

  .review-scale-notch-5 .review-scale-word {
    left: auto;
    right: 0;
    transform: none;
    text-align: right;
  }

  .review-scale-dot {
    width: 2px;
    height: 12px;
  }

  .review-scale-thumb {
    width: 20px;
    height: 20px;
  }

  .review-scale-input {
    height: 78px;
  }

  .review-rating-options {
    gap: 6px;
  }

  .review-rating-button {
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .refine-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  #refine-feedback {
    margin-top: 8px;
    font-size: 0.9rem;
  }
}

button,
.button,
.site-bell-link,
.menu-toggle,
.menu-close,
.filter-chip,
.reach-back-button,
.feed-action-button,
.feed-comment-like-button,
.feed-detail-comment-form button,
.profile-edit-close,
.map-toggle,
.recommendation-sheet-handle,
.recommendation-sheet-toggle,
.recommendation-venue-close,
.recommendation-overlay .button,
.recommendation-overlay .filter-chip,
.recommendation-overlay .venue-meta-action,
.recommendation-overlay .venue-action-btn,
.venue-modal-close,
.social-page button,
.social-search-row .button,
.social-invite-row .button,
.own-profile-actions .button,
.refine-location-controls .button,
.refine-page button,
.refine-top-actions .button,
.refine-batch-actions .button {
  border-radius: 8px;
}

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state h2 {
  margin: 0 0 var(--space-sm);
}

.empty-state p {
  margin: 0 0 var(--space-lg);
  opacity: 0.7;
}

.empty-state-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.push-prompt {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 40;
}

.push-prompt-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 250, 244, 0.98);
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(131, 63, 17, 0.16);
  backdrop-filter: blur(16px);
}

.push-prompt-kicker {
  margin: 0;
  color: rgba(164, 77, 21, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.push-prompt-card h2 {
  margin: 0;
  color: #000;
  font-size: 1.35rem;
  line-height: 1.05;
}

.push-prompt-card p:not(.push-prompt-kicker) {
  margin: 0;
  color: #5f5f5f;
  line-height: 1.4;
}

.push-prompt-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.push-prompt-actions .button {
  width: 100%;
}

.updates-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(58, 33, 14, 0.42);
  backdrop-filter: blur(6px);
}

.updates-modal-card {
  position: relative;
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: #fffdf9;
  border: 1px solid rgba(255, 122, 26, 0.18);
  box-shadow: 0 24px 54px rgba(91, 44, 14, 0.22);
}

.updates-modal-card h2 {
  margin: 0;
  color: #000;
  font-size: 1.5rem;
  line-height: 1.08;
}

.updates-modal-card p {
  margin: 0;
  color: #4f4f4f;
  line-height: 1.45;
}

.updates-modal-close {
  justify-self: end;
  border: 0;
  background: transparent;
  color: rgba(164, 77, 21, 0.76);
  padding: 0;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ── Phase 5: Growth & social features ── */

.venue-insight-scout-badge {
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: var(--radius-md, 10px);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #ff7a1a;
  margin-bottom: 12px;
}

.share-toast {
  background: rgba(255, 122, 26, 0.08);
  border: 1px solid rgba(255, 122, 26, 0.3);
}

.share-toast p {
  margin: 0 0 8px;
}

.share-toast-actions {
  display: flex;
  gap: 8px;
}

.share-toast-input {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
}

.share-visit-shell {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
}

.share-visit-header {
  text-align: center;
  margin-bottom: 20px;
}

.share-visit-byline {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0 0 4px;
}

.share-visit-header h1 {
  margin: 0 0 4px;
}

.share-visit-city {
  margin: 0;
  opacity: 0.7;
}

.share-visit-rating {
  text-align: center;
  margin-bottom: 20px;
}

.share-visit-rating-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff7a1a;
}

.share-visit-rating-label {
  font-size: 1.1rem;
  opacity: 0.6;
}

.share-visit-metrics h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.share-visit-metrics-grid {
  display: grid;
  gap: 10px;
}

.share-visit-metric-bar-track {
  height: 6px;
  background: rgba(255, 122, 26, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.share-visit-metric-bar-fill {
  height: 100%;
  background: #ff7a1a;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.share-visit-metric-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 2px;
}

.share-visit-metric-label {
  opacity: 0.8;
}

.share-visit-metric-value {
  font-weight: 600;
  color: #ff7a1a;
}

.share-visit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.share-visit-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #ff7a1a;
}

.share-visit-cta {
  text-align: center;
}

.share-visit-cta h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.share-visit-cta p {
  margin: 0 0 16px;
  opacity: 0.8;
}

.share-visit-cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.scout-profile-section {
  margin-bottom: 16px;
}

.scout-profile-section h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.scout-profile-top-venues {
  display: grid;
  gap: 8px;
}

.scout-profile-venue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scout-profile-venue-row:last-child {
  border-bottom: none;
}

.scout-profile-venue-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scout-profile-venue-info span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.scout-profile-venue-rating {
  font-weight: 700;
  color: #ff7a1a;
  font-size: 1.1rem;
}

.scout-profile-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scout-profile-area-pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #ff7a1a;
}

.scout-profile-taste {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-detail-share-row {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.scout-profile-taste-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #ff7a1a;
}
