:root {
  --community-ink: #241d1a;
  --community-muted: #766a64;
  --community-coral: #d95547;
  --community-coral-dark: #a9382e;
  --community-cream: #f8f3ea;
  --community-paper: #fffdf9;
  --community-sand: #e9dfd2;
  --community-green: #2e705b;
  --community-yellow: #f2c766;
}

.community-page {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0 18px 42px;
  color: var(--community-ink);
  /* container-type removed: replaced @container with @media for Baidu browser compatibility */
}

.community-page *,
.community-page *::before,
.community-page *::after { box-sizing: border-box; }

.community-page button,
.community-page input,
.community-page textarea,
.community-page select { font: inherit; }

.community-page button { -webkit-tap-highlight-color: transparent; }
.community-page button { touch-action: manipulation; }

.community-page button:focus-visible,
.community-page input:focus-visible,
.community-page textarea:focus-visible,
.community-page select:focus-visible {
  outline: 3px solid rgba(217, 85, 71, .28);
  outline-offset: 2px;
}

.community-hero {
  position: relative;
  overflow: hidden;
  margin: 20px 0 14px;
  padding: 25px 26px 20px;
  border: 1px solid #eadccc;
  border-radius: 22px 22px 8px 22px;
  background: #f7ecde;
  box-shadow: 0 16px 34px rgba(89, 60, 38, .08);
}

.community-hero::after {
  position: absolute;
  top: -112px;
  right: -70px;
  width: 240px;
  height: 240px;
  border: 38px solid rgba(217, 85, 71, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.community-hero-topline,
.community-hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.community-hero-topline { margin-bottom: 20px; }
.community-hero-foot { margin-top: 20px; align-items: end; flex-wrap: wrap; }
.community-hero-copy { position: relative; z-index: 1; }

.community-kicker,
.community-section-heading span,
.community-safety-intro > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--community-coral-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.community-hero-topline .community-kicker { margin-bottom: 0; }

.community-hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(32px, 5.4vw, 48px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.community-hero h1 span,
.community-hero h1 em { display: block; }
.community-hero h1 em { color: var(--community-coral-dark); font-style: normal; }

.community-hero p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--community-muted);
  font-size: 14px;
  line-height: 1.7;
}

.community-hero-principle,
.community-hero-languages { display: flex; align-items: center; gap: 8px; }
.community-hero-principle { align-items: flex-start; color: #5e4a3e; font-size: 12px; font-weight: 700; line-height: 1.5; }
.community-hero-principle > span:last-child { min-width: 0; }
.community-principle-mark { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: var(--community-green); color: #fff; font-size: 16px; font-weight: 800; }
.community-principle-mark.warning { background: var(--community-coral-dark); }
.community-hero-languages { color: #8b7769; font-size: 10px; }
.community-hero-languages i { display: grid; width: 25px; height: 20px; place-items: center; border: 1px solid #d8c5b4; border-radius: 4px; background: rgba(255,255,255,.62); color: #6f594b; font-size: 8px; font-style: normal; font-weight: 800; }

.community-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0;
  color: var(--community-green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.community-verified-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: var(--community-green);
  color: #fff;
}

.community-network {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #cfdfd7;
  border-radius: 9px;
  background: #eef7f2;
  color: #285e4e;
  font-size: 12px;
  line-height: 1.45;
}

.community-network span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #3d9876;
  box-shadow: 0 0 0 4px rgba(61, 152, 118, .12);
}

.community-network.offline {
  border-color: #ead3a5;
  background: #fff8e8;
  color: #755620;
}

.community-network.offline span { background: #cf9132; box-shadow: 0 0 0 4px rgba(207, 145, 50, .13); }

/* ponytail: these secondary status rows are intentionally removed from the compact community header. */
.community-hero-languages,
.community-network { display: none; }

.community-main-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 14px 0 22px;
  padding: 5px;
  border-radius: 13px;
  background: #eee8df;
}

.community-main-tabs button {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #756b65;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.community-main-tabs button.active {
  background: var(--community-paper);
  color: var(--community-ink);
  box-shadow: 0 4px 12px rgba(83, 60, 45, .08);
}

.community-main-tabs button:active { transform: scale(.98); }
.community-tab-icon { display: inline-grid; width: 18px; height: 18px; place-items: center; }
.community-tab-icon svg, .community-quick-grid svg, .community-empty svg, .community-login-gate > span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.community-arrival-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border-radius: 18px 18px 8px 18px;
  background: var(--community-ink);
  color: #fff;
  box-shadow: 0 18px 45px rgba(57, 36, 27, .16);
}

.community-arrival-card::after {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 210px;
  height: 210px;
  border: 45px solid rgba(242, 199, 102, .07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.community-arrival-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.community-arrival-head > div > span {
  color: #eebd61;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.community-arrival-head h2 {
  max-width: 520px;
  margin: 7px 0 0;
  font-size: clamp(20px, 5vw, 29px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.community-arrival-mark {
  padding-top: 5px;
  color: rgba(255,255,255,.34);
  font-size: 13px;
  letter-spacing: .14em;
}

.community-quick-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 19px;
}

.community-quick-grid button {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 12px 9px 10px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.065);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.community-quick-grid button:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.community-quick-grid button:active { transform: scale(.98); }
.community-quick-grid button > span { display: grid; width: 24px; height: 24px; place-items: center; color: #edbd63; }
.community-quick-grid button > span svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.community-quick-grid button b { margin-top: 10px; font-size: 12px; }
.community-quick-grid button small { overflow: hidden; width: 100%; margin-top: 3px; color: rgba(255,255,255,.55); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.community-service-point {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  background: var(--community-paper);
  color: var(--community-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.community-service-point:focus-visible { outline: 3px solid rgba(23, 59, 120, .28); outline-offset: 2px; }
.community-service-point:active { transform: scale(.99); }

.community-service-point-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--community-yellow);
  color: #2c211c;
  font-size: 20px;
  font-weight: 800;
}

.community-service-point-mark span { color: var(--community-coral-dark); }
.community-service-point-avatar { display: block; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; background: #eae0d6; object-fit: cover; }
.community-service-point-copy { display: grid; gap: 4px; min-width: 0; }
.community-service-point-copy strong {
  color: var(--community-ink);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.03em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.community-service-point-copy small { color: var(--community-muted); font-size: 12px; line-height: 1.35; }

.community-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 29px 2px 12px;
}

.community-section-heading h2 {
  margin: 0;
  font-size: clamp(20px, 5vw, 27px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.community-private-link {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--community-coral-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.community-room-rail {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 8px;
}

.community-room-card {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #dfd6cc;
  border-radius: 12px 12px 6px 12px;
  background: #f4eee6;
  color: var(--community-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.community-room-card:hover { transform: translateY(-2px); }
.community-room-card.active { border-color: var(--community-coral); background: #fff8f4; }
.community-room-flag { display: grid; width: 30px; height: 24px; place-items: center; border: 1px solid #d7cbc0; border-radius: 5px; background: #fffaf5; color: #63564e; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.community-room-copy { min-width: 0; }
.community-room-copy strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.community-room-copy small { display: -webkit-box; overflow: hidden; margin-top: 5px; color: var(--community-muted); font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-room-check { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 5px; background: #dfd8ce; color: #fff; font-size: 10px; }
.community-room-card.active .community-room-check { background: var(--community-coral); }

.community-chat-shell {
  overflow: hidden;
  margin-top: 11px;
  border: 1px solid #ded4c9;
  border-radius: 17px 17px 8px 17px;
  background: var(--community-paper);
  box-shadow: 0 17px 50px rgba(77, 54, 40, .09);
}

.community-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid #ece3da;
}

.community-chat-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.community-chat-title > span { font-size: 20px; }
.community-chat-title strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.community-chat-title i { padding: 3px 5px; border-radius: 3px; background: var(--community-green); color: #fff; font-size: 7px; font-style: normal; letter-spacing: .08em; }
.community-chat-head p { margin: 5px 0 0 29px; color: var(--community-muted); font-size: 9px; }
.community-refresh { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #ded5cd; border-radius: 9px; background: transparent; color: #6d625d; font-size: 18px; cursor: pointer; }
.community-refresh.spinning { animation: community-spin .8s linear infinite; }
@keyframes community-spin { to { transform: rotate(360deg); } }

.community-feed-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 17px;
  border-bottom: 1px solid #eee6de;
  scrollbar-width: none;
}
.community-feed-filters::-webkit-scrollbar { display: none; }
.community-feed-filters button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #81766f;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.community-feed-filters button.active { background: #eee7de; color: var(--community-ink); }

.community-feed {
  min-height: 250px;
  max-height: 520px;
  overflow-y: auto;
  padding: 7px 17px 18px;
  background: #fcfaf6;
  overscroll-behavior: contain;
}

.community-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #eee7df;
}
.community-message:last-child { border-bottom: 0; }
.community-message.pinned { margin: 8px -8px 0; padding: 13px 9px; border: 1px solid #ebd6ae; border-radius: 10px; background: #fff8e8; }
.community-message-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #ddd1c3; color: #5f5047; font-size: 13px; font-weight: 800; }
.community-message-avatar.official { background: var(--community-ink); color: var(--community-yellow); }
.community-message.mine .community-message-avatar { background: #dbece5; color: var(--community-green); }
.community-message-main { min-width: 0; }
.community-message-meta { display: flex; min-width: 0; align-items: center; gap: 6px; }
.community-message-meta strong { overflow: hidden; max-width: 160px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.community-message-meta time { margin-left: auto; color: #9a8f87; font-size: 9px; font-variant-numeric: tabular-nums; }
.community-official-badge, .community-person-badge { padding: 2px 5px; border-radius: 3px; background: #dcece5; color: var(--community-green); font-size: 8px; font-weight: 800; white-space: nowrap; }
.community-person-badge { background: #eee6dc; color: #6d5d53; }
.community-message-tag { display: inline-block; margin-top: 7px; padding: 3px 6px; border-radius: 4px; background: #ece4da; color: #6b5b51; font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.community-message.type-help .community-message-tag { background: #fee1dc; color: #9f382e; }
.community-message.type-service .community-message-tag { background: #e5ecff; color: #244a91; }
.community-message.type-deal .community-message-tag { background: #e2eee8; color: #25634f; }
.community-message.type-safety .community-message-tag { background: #fff0c9; color: #785516; }
.community-message-body { margin: 6px 0 0; color: #3e3531; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.community-message-actions { display: flex; gap: 12px; margin-top: 7px; }
.community-message-actions button { min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: #87786f; font-size: 9px; cursor: pointer; }
.community-message-actions button:hover { color: var(--community-coral-dark); }
.community-inline-report { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding: 7px; border-radius: 7px; background: #f2ece5; }
.community-inline-report span { width: 100%; color: #75675e; font-size: 8px; }
.community-inline-report button { padding: 5px 7px; border: 1px solid #ddcec1; border-radius: 5px; background: #fff; color: #66574e; font-size: 8px; cursor: pointer; }

.community-skeleton-list { min-height: 280px; padding: 15px 17px; background: #fcfaf6; }
.community-skeleton-list > div { position: relative; min-height: 72px; margin-bottom: 10px; padding-left: 46px; }
.community-skeleton-list span { position: absolute; left: 0; width: 34px; height: 34px; border-radius: 8px; background: #e8e0d8; }
.community-skeleton-list p { width: 38%; height: 9px; margin: 0 0 10px; border-radius: 4px; background: #e8e0d8; }
.community-skeleton-list p:last-child { width: 82%; height: 23px; }
.community-skeleton-list span, .community-skeleton-list p { animation: community-pulse 1.4s ease-in-out infinite alternate; }
@keyframes community-pulse { to { opacity: .45; } }

.community-empty, .community-safety-empty, .community-login-gate {
  display: flex;
  min-height: 220px;
  padding: 32px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--community-muted);
  text-align: center;
}
.community-empty > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: #eee5dc; color: #75665c; }
.community-empty > span svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.community-empty strong { margin-top: 8px; color: var(--community-ink); font-size: 13px; }
.community-empty p, .community-safety-empty p, .community-login-gate p { max-width: 500px; margin: 7px auto 0; font-size: 11px; line-height: 1.65; }

.community-composer { padding: 12px 16px 14px; border-top: 1px solid #e9e0d8; background: #fff; }
.community-compose-types { display: flex; gap: 4px; margin-bottom: 8px; overflow-x: auto; }
.community-compose-types button { min-height: 44px; flex: 0 0 auto; padding: 5px 10px; border: 0; border-radius: 5px; background: transparent; color: #887b73; font-size: 9px; font-weight: 700; cursor: pointer; }
.community-compose-types button.active { background: #f0e7de; color: var(--community-ink); }
.community-compose-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; align-items: end; }
.community-compose-row textarea { width: 100%; min-height: 56px; max-height: 140px; padding: 10px 11px; resize: vertical; border: 1px solid #dcd2ca; border-radius: 9px; background: #fbf8f4; color: var(--community-ink); font-size: 11px; line-height: 1.5; }
.community-send { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 10px 10px 4px 10px; background: var(--community-coral); color: #fff; font-size: 22px; font-weight: 500; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.community-send:hover { background: var(--community-coral-dark); transform: translateY(-2px); }
.community-send:active { transform: scale(.97); }
.community-send:disabled { background: #d5cbc4; cursor: not-allowed; transform: none; }
.community-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: #9a8c83; font-size: 8px; }
.community-compose-foot button { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: var(--community-coral-dark); font-size: 9px; font-weight: 800; cursor: pointer; }
.community-form-error { margin: 7px 0 0; color: #a7332b; font-size: 10px; line-height: 1.5; }

.community-safety-view, .community-friends-view { padding-bottom: 20px; }
.community-subview-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--community-navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.community-subview-back span { font-size: 22px; line-height: 1; }
.community-subview-back:focus-visible { outline: 3px solid rgba(23, 59, 120, .28); outline-offset: 2px; }
.community-subview-return { margin-top: 18px; margin-bottom: 8px; }
.community-safety-intro { display: block; padding: 17px 20px 18px; border: 1px solid #e6d9ca; border-left: 4px solid var(--community-green); border-radius: 16px; background: #fffaf3; color: var(--community-ink); box-shadow: 0 8px 20px rgba(81, 53, 31, .07); }
.community-safety-intro-title { display: block; color: var(--community-coral-dark); font-size: 20px; line-height: 1.35; text-align: center; }
.community-safety-intro-points { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.community-safety-intro-points li { position: relative; padding-left: 15px; color: var(--community-ink); font-size: 13px; font-weight: 700; line-height: 1.65; }
.community-safety-intro-points li::before { position: absolute; top: -.05em; left: 0; color: var(--community-coral-dark); content: '•'; font-size: 17px; line-height: 1.65; }
.community-report-cta { display: flex; width: 100%; min-height: 48px; margin-top: 10px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e0d6cb; border-radius: 10px; background: #fff; color: var(--community-coral-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.community-report-cta span { font-size: 19px; font-weight: 400; }

.community-safety-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; padding: 18px; border: 1px solid #dfd5cb; border-radius: 12px; background: #fffaf4; }
.community-safety-form label { display: flex; flex-direction: column; gap: 6px; color: #63564f; font-size: 10px; font-weight: 700; }
.community-safety-form label.wide, .community-safety-form .wide { grid-column: 1 / -1; }
.community-safety-form input, .community-safety-form select, .community-safety-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #d8cec5; border-radius: 8px; background: #fff; color: var(--community-ink); font-size: 11px; font-weight: 400; }
.community-safety-form textarea { resize: vertical; line-height: 1.6; }
.community-form-note { padding: 9px 10px; border-left: 3px solid #d6ab55; background: #fff3d5; color: #6c542a; font-size: 9px; line-height: 1.6; }
.community-submit-report { min-height: 43px; border: 0; border-radius: 8px; background: var(--community-coral); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.community-submit-report:disabled { opacity: .55; cursor: wait; }
.safety-list-heading { margin-top: 28px; }
.community-inline-loading { padding: 25px; color: var(--community-muted); font-size: 11px; text-align: center; }
.community-safety-empty { min-height: 190px; border: 1px dashed #d8cec4; border-radius: 12px; background: #fbf8f3; }
.community-safety-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: #dcece5; color: var(--community-green); font-weight: 800; }
.community-safety-empty strong { margin-top: 10px; color: var(--community-ink); font-size: 12px; }
.community-safety-item { margin-top: 9px; padding: 16px; border-left: 4px solid #d6a74c; border-radius: 6px 12px 12px 6px; background: #fff9ec; }
.community-safety-item.status-verified { border-left-color: var(--community-coral); background: #fff8f5; }
.community-safety-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-safety-item-top strong { font-size: 13px; }
.community-safety-item-top span { color: #8d6926; font-size: 9px; font-weight: 800; }
.community-safety-item.status-verified .community-safety-item-top span { color: var(--community-coral-dark); }
.community-safety-item p { margin: 8px 0 0; font-size: 11px; line-height: 1.65; }
.community-safety-item .community-safety-location { color: var(--community-muted); font-size: 9px; }
.community-moderator-note { margin-top: 10px; padding: 9px; border-radius: 6px; background: rgba(255,255,255,.72); color: #65554b; font-size: 9px; line-height: 1.55; }
.community-moderator-note b { display: block; margin-bottom: 3px; color: var(--community-ink); }

.community-login-gate { min-height: 360px; border: 1px dashed #d6cbc0; border-radius: 15px; background: #fbf7f1; }
.community-login-gate > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 11px; background: #eee5dc; color: var(--community-coral-dark); }
.community-login-gate > span svg { width: 25px; height: 25px; }
.community-login-gate h2 { max-width: 540px; margin: 12px 0 0; color: var(--community-ink); font-size: clamp(22px, 5vw, 30px); line-height: 1.15; letter-spacing: -.035em; }
.community-login-gate button { margin-top: 18px; padding: 11px 18px; border: 0; border-radius: 8px; background: var(--community-coral); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.community-friend-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px 3px; border-bottom: 1px solid #e8dfd6; }
.community-friend-row.incoming { margin-bottom: 7px; padding: 13px; border: 1px solid #ecd9b8; border-radius: 10px; background: #fff8e9; }
.community-friend-avatar, .community-person-avatar { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 9px; background: #dfd4c8; color: #66564d; font-size: 14px; font-weight: 800; }
.community-friend-row > div:nth-child(2) { min-width: 0; }
.community-friend-row strong, .community-friend-row span { display: block; }
.community-friend-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.community-friend-row span { margin-top: 3px; color: var(--community-muted); font-size: 9px; }
.community-friend-actions { display: flex; gap: 5px; }
.community-friend-actions button, .community-friend-status { padding: 7px 9px; border: 0; border-radius: 6px; background: var(--community-coral); color: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.community-friend-actions button.muted, .community-friend-status { background: #ebe4dc; color: #75675f; }
.community-friends-empty { padding: 24px 10px; color: var(--community-muted); font-size: 10px; text-align: center; }
.discover-heading { margin-top: 33px; }
.community-people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.community-person-card { display: flex; min-width: 0; padding: 14px 10px; flex-direction: column; align-items: center; border-radius: 10px 10px 5px 10px; background: #f3ede5; text-align: center; }
.community-person-card strong { overflow: hidden; width: 100%; margin-top: 8px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.community-person-card > span { margin-top: 3px; color: var(--community-muted); font-size: 8px; }
.community-person-card button { width: 100%; margin-top: 10px; padding: 7px 5px; border: 1px solid #d9cdc1; border-radius: 6px; background: #fff; color: var(--community-coral-dark); font-size: 8px; font-weight: 800; cursor: pointer; }

.community-toast { position: fixed; z-index: 300; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 40px); padding: 10px 15px; border-radius: 8px; background: #29221f; color: #fff; box-shadow: 0 12px 35px rgba(48, 31, 23, .25); font-size: 11px; line-height: 1.45; text-align: center; transform: translateX(-50%); animation: community-toast-in .2s ease-out both; }
@keyframes community-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 700px) {
  .community-page { padding-inline: 12px; }
  .community-hero { grid-template-columns: 1fr; padding-top: 25px; }
  .community-trust { display: none; }
  .community-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .community-quick-grid button:nth-child(4), .community-quick-grid button:nth-child(5) { min-height: 72px; }
  .community-room-rail { display: flex; margin-right: -12px; overflow-x: auto; padding-right: 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .community-room-rail::-webkit-scrollbar { display: none; }
  .community-room-card { width: min(78vw, 285px); flex: 0 0 auto; scroll-snap-align: start; }
  .community-service-point { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; }
  .community-service-point-avatar { width: 52px; height: 52px; }
  .community-service-point-copy strong { font-size: 15px; }
  .community-people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .community-main-tabs { margin-bottom: 15px; }
  .community-arrival-card { padding: 17px; }
  .community-arrival-mark { display: none; }
  .community-quick-grid { gap: 6px; }
  .community-quick-grid button { min-height: 81px; padding: 10px 8px; }
  .community-quick-grid button b { margin-top: 8px; font-size: 11px; }
  .community-quick-grid button small { font-size: 8px; }
  .community-chat-head { padding-inline: 13px; }
  .community-chat-head p { display: none; }
  .community-chat-title strong { max-width: 185px; }
  .community-feed { padding-inline: 12px; }
  .community-composer { padding-inline: 12px; }
  .community-message-meta strong { max-width: 125px; }
  .community-safety-intro { padding: 19px; }
  .community-safety-form { grid-template-columns: 1fr; padding: 14px; }
  .community-safety-form label.wide, .community-safety-form .wide { grid-column: auto; }
  .community-friend-row { grid-template-columns: auto minmax(0, 1fr); }
  .community-friend-row > :last-child { grid-column: 2; justify-self: start; }
  .community-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* country picker must sit above the hero copy and the quick-action grid */
.community-hero-v2 { position: relative; z-index: 20; }
.community-country-wrap { position: static; }
.community-country-menu { top: 52px; left: 12px; right: 12px; width: auto; max-height: min(520px, calc(100vh - 86px)); overflow-y: auto; overscroll-behavior: contain; }
.community-groups-view { position: relative; z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .community-page *, .community-page *::before, .community-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 700px) {
  .community-hero { margin-top: 14px; padding: 21px 20px 18px; }
  .community-hero-topline { margin-bottom: 16px; }
  .community-hero h1 { font-size: clamp(30px, 7vw, 42px); }
  .community-hero-foot { margin-top: 17px; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .community-hero { padding-top: 18px; padding-bottom: 14px; }
  .community-hero h1 { max-width: 620px; font-size: 32px; }
  .community-hero p { margin-top: 8px; }
}

/* v2 compact global community surface */
:where(body.community-route) .header { display: flex; }

:root {
  --community-ink: #202328;
  --community-muted: #6d7379;
  --community-coral: #c9483d;
  --community-coral-dark: #a83b32;
  --community-cream: #f7f2ea;
  --community-paper: #fffefa;
  --community-sand: #e6ddd2;
  --community-green: #2f7d67;
  --community-navy: #173b78;
}

.community-page {
  max-width: 520px;
  padding: 0 16px 34px;
  background: var(--community-cream);
}

.community-hero-v2 {
  margin: 0 -16px 14px;
  padding: 14px 20px 14px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e8e0d7;
  border-radius: 0;
  background: var(--community-paper);
  box-shadow: none;
}

.community-hero-v2::after { display: none; }
.community-hero-v2 .community-hero-topline { align-items: flex-start; margin-bottom: 14px; }
.community-title-lockup { display: flex; align-items: center; gap: 12px; }
.community-hero-v2 .community-kicker { margin: 0; color: var(--community-ink); font-size: 28px; letter-spacing: -.06em; line-height: 1; }
.community-country-wrap { position: relative; }
.community-country-trigger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--community-navy);
  border-radius: 999px;
  background: #fff;
  color: var(--community-navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.community-country-trigger span:last-child { font-size: 18px; line-height: 1; }
.community-country-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.community-country-field { display: grid; min-height: 78px; align-content: center; gap: 3px; padding: 9px 10px; border: 1px solid #ddd4ca; border-radius: 11px; background: #fff; color: var(--community-ink); text-align: left; cursor: pointer; }
.community-country-field.active { border-color: var(--community-navy); box-shadow: 0 0 0 2px rgba(23, 59, 120, .1); }
.community-country-field span { color: var(--community-muted); font-size: 10px; font-weight: 800; }
.community-country-field strong { overflow: hidden; color: var(--community-navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.community-country-field small { color: var(--community-muted); font-size: 9px; line-height: 1.25; }
.community-country-helper { margin: 0 2px 9px; color: var(--community-muted); font-size: 10px; line-height: 1.4; }
.community-country-menu {
  position: absolute;
  top: 52px;
  left: 0;
  z-index: 30;
  width: min(335px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #e2d9cf;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 18px 40px rgba(32, 35, 40, .16);
}
.community-country-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.community-country-menu-head strong { font-size: 15px; }
.community-country-menu-head button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--community-muted); font-size: 24px; cursor: pointer; }
.community-country-menu input { width: 100%; min-height: 44px; margin-bottom: 8px; padding: 8px 12px; border: 1px solid #ddd4ca; border-radius: 10px; background: #fff; color: var(--community-ink); }
.community-country-search-label { display: block; margin: 0 2px 5px; color: var(--community-muted); font-size: 10px; font-weight: 700; }
.community-country-option { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border: 0; border-bottom: 1px solid #eee8e1; background: transparent; text-align: left; cursor: pointer; }
.community-country-option:last-child { border-bottom: 0; }
.community-country-option span { display: grid; gap: 2px; }
.community-country-option strong { font-size: 14px; }
.community-country-option small { color: var(--community-muted); font-size: 11px; }
.community-country-option em { color: var(--community-green); font-size: 11px; font-style: normal; white-space: nowrap; }
.community-country-option.is-active { background: #f2f6fb; }
.community-country-option.is-recommended { background: #fff8f2; }
.community-country-option.is-recommended strong { color: var(--community-coral-dark); }
.community-country-add-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px dashed #d8cdc2;
  border-radius: 12px;
  background: #fffdfa;
  color: var(--community-navy);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.community-country-add-form { margin-top: 8px; padding-top: 10px; border-top: 1px solid #eee8e1; }
.community-country-add-label { display: block; margin: 0 2px 6px; color: var(--community-muted); font-size: 11px; font-weight: 700; }
.community-country-add-form input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 8px 12px;
  border: 1px solid #ddd4ca;
  border-radius: 10px;
  background: #fff;
  color: var(--community-ink);
}
.community-country-add-error { margin: 0 0 8px; color: #b42318; font-size: 11px; line-height: 1.45; }
.community-country-add-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.community-country-add-submit,
.community-country-add-cancel {
  min-height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.community-country-add-submit { border: 0; background: var(--community-navy); color: #fff; }
.community-country-add-cancel { border: 1px solid #ddd4ca; background: #fff; color: var(--community-ink); }
.community-hero-v2 .community-trust { padding-top: 3px; font-size: 12px; }
.community-hero-v2 .community-verified-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--community-green); }
.community-hero-v2 .community-hero-copy h1 { max-width: 330px; font-size: clamp(30px, 8.8vw, 38px); line-height: 1.12; letter-spacing: -.07em; }
.community-hero-v2 .community-hero-copy h1 span,
.community-hero-v2 .community-hero-copy h1 em { display: block; }
.community-hero-v2 .community-hero-copy h1 em { color: var(--community-coral); }
.community-hero-v2 .community-hero-copy p { margin-top: 12px; color: var(--community-muted); font-size: 15px; line-height: 1.5; }
.community-hero-v2 .community-hero-foot { margin-top: 18px; }
.community-hero-v2 .community-hero-principle { color: var(--community-muted); font-size: 12px; font-weight: 600; }
.community-hero-v2 .community-principle-mark { width: 22px; height: 22px; flex-basis: 22px; border-radius: 7px; background: var(--community-green); font-size: 13px; }

.community-main-tabs { display: none; }
.community-main-tabs button { min-height: 44px; font-size: 12px; }
.community-main-tabs button.active { color: var(--community-navy); box-shadow: 0 3px 10px rgba(23, 59, 120, .08); }
.community-arrival-card { overflow: visible; padding: 0; background: transparent; color: var(--community-ink); box-shadow: none; }
.community-arrival-card::after { display: none; }
.community-arrival-head { display: none; }
.community-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.community-quick-grid button { min-height: 116px; padding: 14px 8px 12px; border: 1px solid #eadfd2; border-radius: 14px; background: var(--community-paper); color: var(--community-navy); box-shadow: none; }
.community-quick-grid button:nth-child(4), .community-quick-grid button:nth-child(5) { grid-column: span 1; }
.community-quick-grid button:last-child { grid-column: 2 / span 2; }
.community-quick-grid button span { display: grid; width: 32px; height: 32px; margin: 0 auto 10px; place-items: center; }
.community-quick-grid button b { display: block; color: var(--community-ink); font-size: 16px; }
.community-quick-grid button small { display: block; margin-top: 4px; color: var(--community-muted); font-size: 11px; }
.community-quick-grid svg { width: 28px; height: 28px; stroke: var(--community-navy); stroke-width: 1.6; }
.community-room-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 90px; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 1px solid #eadfd2; border-radius: 14px; background: var(--community-paper); color: var(--community-ink); text-align: left; cursor: pointer; }
.community-room-summary-copy { display: grid; gap: 7px; min-width: 0; }
.community-room-summary-copy strong { font-size: 18px; letter-spacing: -.04em; }
.community-room-summary-copy span { color: var(--community-muted); font-size: 12px; line-height: 1.4; }
.community-room-summary-avatars { display: flex; align-items: center; padding-left: 8px; }
.community-room-summary-avatars img, .community-room-summary-avatars span { width: 30px; height: 30px; margin-left: -8px; border: 2px solid var(--community-paper); border-radius: 50%; object-fit: cover; background: #f2e8de; }
.community-room-summary-avatars span { display: grid; place-items: center; color: var(--community-navy); font-size: 12px; }
.community-room-summary-arrow { color: var(--community-navy); font-size: 22px; }

body[data-lang="en"] .community-room-summary {
  gap: 8px;
  padding: 12px 14px;
}

body[data-lang="en"] .community-room-summary-copy {
  min-width: 0;
  overflow: hidden;
}

body[data-lang="en"] .community-room-summary-copy strong {
  font-size: 15px;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-lang="en"] .community-room-summary-copy span {
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-lang="en"] .community-room-summary-avatars {
  padding-left: 4px;
}

body[data-lang="en"] .community-room-summary-avatars img,
body[data-lang="en"] .community-room-summary-avatars span {
  width: 26px;
  height: 26px;
  margin-left: -7px;
}

body[data-lang="en"] .community-room-summary-arrow {
  font-size: 20px;
}
.community-safety-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 84px; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border: 1px solid #e3d6c8; border-radius: 16px; background: #fff9f0; color: var(--community-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; touch-action: manipulation; }
.community-safety-strip:hover { border-color: #d3c0ac; background: #fffdf8; box-shadow: 0 8px 22px rgba(65, 45, 30, .07); }
.community-safety-strip:focus-visible { outline: 3px solid rgba(23, 59, 120, .28); outline-offset: 3px; }
.community-safety-strip-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--community-green); color: #fff; }
.community-safety-strip-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.community-safety-strip span:nth-child(2) { display: grid; gap: 4px; }
.community-safety-strip strong { font-size: 16px; line-height: 1.3; }
.community-safety-strip small { color: var(--community-muted); font-size: 12px; }
.community-safety-strip-open { display: grid; width: 44px; height: 44px; place-items: center; color: var(--community-navy); }
.community-safety-strip-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

body.community-safety-modal-open { overflow: hidden; }
.community-safety-modal-overlay {
  position: fixed;
  top: 50px;
  right: 0;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(32, 35, 40, .62);
  backdrop-filter: blur(5px);
}
.community-safety-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, 100%);
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e3d9cf;
  border-radius: 0;
  background: var(--community-paper);
  box-shadow: 0 22px 60px rgba(26, 28, 31, .3);
}
.community-safety-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 18px 18px 15px;
  border-bottom: 1px solid #ece5dd;
  background: #fffaf4;
}
.community-safety-modal-head > div > span { color: var(--community-coral); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.community-safety-modal-head h2 { margin: 5px 0 0; color: var(--community-ink); font-size: 24px; letter-spacing: -.05em; line-height: 1.15; }
.community-safety-modal-head p { margin: 7px 0 0; color: var(--community-muted); font-size: 12px; line-height: 1.5; }
.community-safety-modal-close { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 12px; background: #f1ebe4; color: var(--community-ink); font-size: 27px; line-height: 1; cursor: pointer; }
.community-safety-modal-close:focus-visible, .community-safety-modal-return:focus-visible { outline: 3px solid rgba(23, 59, 120, .28); outline-offset: 2px; }
.community-safety-modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 4px; }
.community-safety-modal-principles { padding: 13px 14px; border: 1px solid #dce9e2; border-radius: 12px; background: #f2f8f4; color: #376b59; }
.community-safety-modal-principles strong { font-size: 13px; }
.community-safety-modal-principles ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.5; }
.community-safety-modal-list { display: grid; gap: 10px; margin-top: 15px; }
.community-safety-modal-note { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid #ece4da; }
.community-safety-modal-note:last-child { border-bottom: 0; }
.community-safety-modal-note-cover { overflow: hidden; aspect-ratio: 1 / 1; border-radius: 12px; background: #eae0d6; }
.community-safety-modal-note-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.community-safety-modal-note-cover.is-example { display: grid; place-items: center; background: #2b2421; }
.community-safety-modal-note-cover.is-example .community-safety-note-example-icon { color: #f2c766; }
.community-safety-modal-note-copy { min-width: 0; }
.community-safety-modal-note-status { display: inline-block; padding: 3px 6px; border-radius: 999px; background: #fff0ee; color: var(--community-coral-dark); font-size: 10px; font-weight: 800; line-height: 1.2; }
.community-safety-modal-note h3 { margin: 6px 0 0; color: var(--community-ink); font-size: 16px; line-height: 1.35; }
.community-safety-modal-note p { margin: 6px 0 0; color: #4e565b; font-size: 12px; line-height: 1.65; }
.community-safety-modal-note small { display: block; margin-top: 7px; color: var(--community-muted); font-size: 10px; line-height: 1.4; }
.community-safety-modal-footnote { margin: 12px 0 0; color: var(--community-muted); font-size: 11px; line-height: 1.55; }
.community-safety-modal-return { width: calc(100% - 36px); max-width: none; margin: 12px 18px 18px; }

@media (min-width: 701px) {
  .community-safety-modal-overlay { padding: 0; }
}

@media (max-width: 420px) {
  .community-safety-modal-overlay { padding: 0; }
  .community-safety-modal { border-radius: 0; }
  .community-safety-modal-head { padding: 15px 14px 13px; }
  .community-safety-modal-head h2 { font-size: 21px; }
  .community-safety-modal-body { padding-inline: 14px; }
  .community-safety-modal-note { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; }
  .community-safety-modal-note h3 { font-size: 14px; }
  .community-safety-modal-note p { font-size: 11px; }
  .community-safety-modal-return { width: calc(100% - 28px); margin-inline: 14px; }
}
.community-contact-target .community-service-point-avatar { width: 44px; height: 44px; border-radius: 10px; }
.community-section-heading { margin-top: 20px; }
.community-section-heading h2 { font-size: 20px; letter-spacing: -.04em; }
.community-room-rail { gap: 8px; padding-bottom: 3px; }
.community-room-card { min-height: 70px; border-color: #eadfd2; border-radius: 14px; background: var(--community-paper); }
.community-room-card.active { border-color: rgba(23, 59, 120, .34); box-shadow: 0 4px 14px rgba(23, 59, 120, .08); }
.community-chat-shell { margin-top: 14px; border: 1px solid #eadfd2; border-radius: 16px; background: var(--community-paper); box-shadow: none; }

.community-country-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 24px 18px; border: 1px solid #eadfd2; border-radius: 16px; background: var(--community-paper); }
.community-country-empty-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #f6e5dc; color: var(--community-coral); font-size: 26px; }
.community-country-empty > div > span { color: var(--community-coral-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.community-country-empty h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.05em; }
.community-country-empty p { margin: 10px 0 0; color: var(--community-muted); font-size: 14px; line-height: 1.6; }
.community-country-empty button { min-height: 48px; margin-top: 16px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--community-coral); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }

@media (max-width: 420px) {
  .community-page { padding-inline: 14px; }
  .community-hero-v2 { margin-inline: -14px; padding-inline: 18px; }
  .community-hero-v2 .community-trust { gap: 5px; font-size: 11px; }
  .community-quick-grid button { min-height: 94px; padding-block: 10px; }
  .community-quick-grid button b { font-size: 15px; }
}

/* v3 community modules: chat, verified notes and official desks */
.community-quick-grid button:last-child { grid-column: auto; }
.community-section-caption { align-self: end; color: var(--community-muted); font-size: 11px; white-space: nowrap; }
.official-info-heading { align-items: end; }
.community-official-info { margin-top: 18px; }
.community-official-info-intro { margin: -5px 0 11px; color: var(--community-muted); font-size: 12px; line-height: 1.6; }
.community-official-row { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e5dcd3; }
.community-official-row:last-child { border-bottom: 0; padding-bottom: 6px; }
.community-official-row-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.community-official-row-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #eee8df; color: var(--community-navy); }
.community-official-row-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.community-official-row-copy { min-width: 0; }
.community-official-row-copy strong { display: block; color: var(--community-ink); font-size: 15px; line-height: 1.25; }
.community-official-row-copy small { display: block; margin-top: 3px; color: var(--community-muted); font-size: 11px; line-height: 1.35; }
.community-official-pin { display: inline-block; margin-top: 5px; padding: 2px 6px; border-radius: 4px; background: #fff0ee; color: #c43b2f; font-size: 10px; font-weight: 800; line-height: 1.2; }
.community-official-row.is-pinned { padding-top: 16px; }
.community-official-meta { display: grid; gap: 0; margin: 0; padding: 2px 0 0; }
.community-official-meta-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 11px 0; border-top: 1px solid #ece4da; }
.community-official-meta-row:first-child { border-top: 0; }
.community-official-meta-row dt { margin: 0; color: var(--community-muted); font-size: 13px; font-weight: 700; line-height: 1.45; }
.community-official-meta-row dd { margin: 0; color: var(--community-ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.community-official-meta-row dd a { color: var(--community-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.community-safety-note-feed { display: grid; gap: 0; }
.community-safety-note {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ece4da;
  background: transparent;
}
.community-safety-note:last-child { border-bottom: 0; }
.community-safety-note-cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eae0d6;
  aspect-ratio: 4 / 3;
}
.community-safety-note-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.community-safety-note.is-example { border-color: transparent; background: transparent; }
.community-safety-note-cover.is-example {
  display: grid;
  place-items: center;
  padding: 0;
  background: #2b2421;
  color: #f2c766;
}
.community-safety-note-example-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(242, 199, 102, .35); border-radius: 10px; }
.community-safety-note-example-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.community-safety-note-title {
  margin: 0;
  color: var(--community-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.safety-report-heading { margin-top: 25px; }

/* Standalone safety window: keep the global header and bottom navigation available. */
.community-safety-standalone-page {
  min-height: 100svh;
  padding: 16px 16px calc(88px + env(safe-area-inset-bottom, 0px));
}
.community-safety-standalone-page .community-safety-view { padding-bottom: 0; }
.community-dialog-return.community-safety-bottom-return { width: 100%; max-width: none; min-width: 0; min-height: 48px; margin: 24px 0 0; border-radius: 12px; }

.community-chat-overlay { position: fixed; z-index: 1100; top: 50px; right: 0; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); left: 0; display: grid; place-items: center; padding: 20px 24px; background: rgba(26, 28, 31, .56); backdrop-filter: blur(5px); }
.community-chat-dialog { display: grid; width: min(340px, calc(100% - 8px)); max-width: 340px; max-height: min(480px, 70vh); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e3d9cf; border-radius: 16px; background: var(--community-paper); box-shadow: 0 18px 48px rgba(26, 28, 31, .26); }
.community-chat-dialog-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #ece5dd; }
.community-chat-back { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 10px; background: #f2eee9; color: var(--community-ink); font-size: 28px; cursor: pointer; }
.community-chat-dialog-head div { min-width: 0; }
.community-chat-dialog-head strong, .community-chat-dialog-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-chat-dialog-head strong { color: var(--community-ink); font-size: 15px; }
.community-chat-dialog-head div span { margin-top: 3px; color: var(--community-muted); font-size: 9px; }
.community-chat-dialog-status { padding: 5px 7px; border-radius: 999px; background: #e3f0e9; color: var(--community-green); font-size: 9px; font-weight: 800; }
.community-chat-channels { padding: 11px 14px; border-bottom: 1px solid #eee7df; background: #fbf7f1; }
.community-chat-channels > span { display: block; margin-bottom: 8px; color: var(--community-muted); font-size: 10px; }
.community-chat-channels > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.community-chat-channels button { min-height: 48px; padding: 6px 5px; border: 1px solid #e0d6cc; border-radius: 9px; background: #fff; text-align: left; cursor: pointer; }
.community-chat-channels button.active { border-color: var(--community-navy); box-shadow: 0 0 0 2px rgba(23,59,120,.1); }
.community-chat-channels b, .community-chat-channels small { display: block; }
.community-chat-channels b { color: var(--community-ink); font-size: 11px; }
.community-chat-channels small { margin-top: 3px; color: var(--community-muted); font-size: 9px; }
.community-chat-messages { min-height: 220px; max-height: 370px; overflow: auto; padding: 13px 14px; background: #f8f4ee; }
.community-chat-system-note { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 7px 9px; border: 1px solid #dce9e2; border-radius: 8px; background: #f2f8f4; color: #376b59; font-size: 9px; line-height: 1.4; }
.community-chat-system-note svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.community-dialog-message { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-top: 11px; }
.community-dialog-avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #ddcfbf; color: #65554b; font-size: 11px; font-weight: 800; }
.community-dialog-message > div:last-child { min-width: 0; }
.community-dialog-message > div:last-child > div { display: flex; align-items: baseline; gap: 7px; }
.community-dialog-message strong { color: var(--community-ink); font-size: 10px; }
.community-dialog-message time { color: #9b9189; font-size: 8px; }
.community-dialog-message p { margin: 3px 0 0; color: #4e565b; font-size: 11px; line-height: 1.55; }
.community-chat-loading { padding: 25px 0; color: var(--community-muted); font-size: 11px; text-align: center; }
.community-chat-dialog-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: end; padding: 10px 14px 4px; border-top: 1px solid #ebe4dc; background: var(--community-paper); }
.community-chat-dialog-compose textarea { width: 100%; min-height: 44px; max-height: 100px; padding: 11px; resize: vertical; border: 1px solid #dcd2ca; border-radius: 10px; background: #fbf8f4; color: var(--community-ink); font-size: 11px; line-height: 1.4; }
.community-chat-dialog-compose button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 10px; background: var(--community-navy); color: #fff; font-size: 22px; cursor: pointer; }
.community-chat-dialog-compose button:disabled { background: #cfc6bd; cursor: not-allowed; }
.community-chat-dialog-foot { margin: 0; padding: 0 14px 8px; color: #9b9189; font-size: 9px; }
.community-dialog-return {
  display: flex;
  width: auto;
  min-width: 112px;
  max-width: 148px;
  min-height: 44px;
  margin: 2px auto 14px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5cdc3;
  border-radius: 10px;
  background: #fff;
  color: var(--community-navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.community-dialog-return:hover { background: #f7f3ed; }
.community-dialog-return:active { transform: scale(.98); }
.community-dialog-return:focus-visible { outline: 3px solid rgba(23, 59, 120, .28); outline-offset: 2px; }

.community-contact-target { display: flex; align-items: center; gap: 10px; padding: 15px 14px; border-bottom: 1px solid #eee7df; background: #fbf7f1; }
.community-contact-target > div:last-child { display: grid; gap: 4px; }
.community-contact-target strong { color: var(--community-ink); font-size: 15px; }
.community-contact-target span { color: var(--community-muted); font-size: 10px; }
.community-contact-details { display: grid; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #eee7df; background: var(--community-paper); }
.community-contact-details > div, .community-contact-details > a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--community-ink); text-decoration: none; }
.community-contact-details span { color: var(--community-muted); font-size: 10px; }
.community-contact-details strong { min-width: 0; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.community-contact-details > a { min-height: 44px; align-items: center; padding: 5px 0; }
.community-contact-details > a strong { color: var(--community-navy); }
.community-contact-list { display: grid; gap: 9px; padding: 14px; background: #f8f4ee; }
.community-contact-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; min-height: 64px; align-items: center; padding: 9px 11px; border: 1px solid #e6ddd3; border-radius: 12px; background: var(--community-paper); color: var(--community-ink); text-align: left; cursor: pointer; }
.community-contact-option:disabled { opacity: .58; cursor: not-allowed; }
.community-contact-badge, .community-group-platform { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; font-size: 16px; font-weight: 800; }
.community-contact-badge.platform-wechat, .community-group-platform.platform-wechat { background: #2a9d71; }
.community-contact-badge.platform-qq, .community-group-platform.platform-qq { background: #4d83dc; }
.community-contact-badge.platform-whatsapp, .community-group-platform.platform-whatsapp { background: #2caa6f; }
.community-contact-badge.platform-email { background: #8b6fc5; }
.community-contact-option > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.community-contact-option strong { font-size: 14px; }
.community-contact-option small { color: var(--community-muted); font-size: 10px; }
.community-contact-option > b { color: var(--community-navy); font-size: 10px; white-space: nowrap; }
.community-contact-option > b i { margin-left: 3px; font-size: 15px; font-style: normal; }
.community-group-dialog-intro { display: flex; align-items: start; gap: 8px; margin: 14px 14px 0; padding: 10px 11px; border: 1px solid #dce9e2; border-radius: 10px; background: #f2f8f4; color: #376b59; }
.community-group-dialog-intro svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.community-group-dialog-intro p { margin: 0; font-size: 10px; line-height: 1.55; }
.community-group-list { display: grid; gap: 9px; padding: 14px; background: #f8f4ee; }
.community-group-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; min-height: 70px; align-items: center; padding: 10px; border: 1px solid #e6ddd3; border-radius: 12px; background: var(--community-paper); }
.community-group-option-copy { display: grid; gap: 5px; min-width: 0; }
.community-group-option-copy strong { overflow: hidden; color: var(--community-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.community-group-option-copy span { color: var(--community-muted); font-size: 10px; }
.community-group-option > button { min-width: 66px; min-height: 44px; padding: 0 9px; border: 1px solid #d4dfec; border-radius: 9px; background: #f5f8fc; color: var(--community-navy); font-size: 10px; font-weight: 800; cursor: pointer; }
.community-group-option > button:disabled { cursor: not-allowed; }
.community-group-option > button span { margin-left: 3px; font-size: 14px; font-weight: 400; }

.community-join-overlay { z-index: 1200; }
.community-join-dialog { max-height: min(560px, 82vh); }
.community-join-qr-block,
.community-join-admin-block {
  margin: 12px 14px 0;
  padding: 12px;
  border: 1px solid #e6ddd3;
  border-radius: 12px;
  background: #fbf8f4;
}
.community-join-label {
  margin: 0 0 8px;
  color: var(--community-ink);
  font-size: 13px;
  font-weight: 800;
}
.community-join-qr {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.community-join-qr img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.community-join-qr p,
.community-join-hint {
  margin: 8px 0 0;
  color: var(--community-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.community-join-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  background: #f7faff;
}
.community-join-account-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.community-join-account-row span {
  color: var(--community-muted);
  font-size: 10px;
  font-weight: 700;
}
.community-join-account-row strong {
  color: var(--community-navy);
  font-size: 14px;
  word-break: break-all;
}
.community-join-account-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfdae9;
  border-radius: 9px;
  background: #fff;
  color: var(--community-navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.community-join-action {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid #cfdae9;
  border-radius: 10px;
  background: #fff;
  color: var(--community-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.community-join-action.primary {
  border: 0;
  background: var(--community-navy);
  color: #fff;
}
.community-join-admin-block .community-join-hint { text-align: left; }

@media (max-width: 430px) {
  .community-safety-note { grid-template-columns: 88px minmax(0, 1fr); gap: 8px; padding: 10px 0; }
  .community-safety-note-title { font-size: 14px; }
  .community-safety-strip { padding-inline: 12px; }
  .community-official-meta-row dd { font-size: 12px; }
  .community-chat-overlay { padding: 16px; }
  .community-chat-dialog { width: min(320px, calc(100% - 4px)); max-width: 320px; max-height: min(460px, 68vh); border-radius: 14px; }
  .community-chat-messages { max-height: 240px; min-height: 0; }
}

/* v4: keep the country picker in the hero flow so it never covers the hero copy. */
.community-hero-v2.country-menu-open .community-hero-topline {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.community-hero-v2.country-menu-open .community-title-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.community-hero-v2.country-menu-open .community-kicker,
.community-hero-v2.country-menu-open .community-country-trigger {
  white-space: nowrap;
}

.community-hero-v2.country-menu-open .community-country-wrap {
  align-self: flex-start;
}

.community-hero-v2.country-menu-open .community-country-menu {
  position: static !important;
  width: 100%;
  max-width: 100%;
  max-height: min(420px, calc(100vh - 180px));
  margin-top: 10px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(32, 35, 40, .08);
}

/* v4: official desks read as a compact contact card instead of a clipped table. */
.community-official-info {
  margin-top: 20px;
  padding: 18px 16px 8px;
  border: 1px solid #eadfd2;
  border-radius: 18px;
  background: var(--community-paper);
}

.community-official-info .community-section-heading {
  margin: 0 0 8px;
}

.community-official-info-intro {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.55;
}

.community-official-row {
  gap: 10px;
  padding: 15px 0;
}

.community-official-row-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f1ece4;
}

.community-official-row-copy strong {
  font-size: 16px;
}

.community-official-row-copy small {
  font-size: 11px;
}

.community-official-meta-row {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 12px 0;
}

.community-official-meta-row dt {
  font-size: 12px;
}

.community-official-meta-row dd {
  font-size: 13px;
}

@media (max-width: 390px) {
  .community-official-meta-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px 10px;
  }
}

/* v5: make country selection the explicit, honest entry point. */
.community-hero-v2 .community-hero-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin-bottom: 18px;
}

.community-hero-v2 .community-title-lockup {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.community-brand-title {
  color: var(--community-ink);
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: 1;
  white-space: nowrap;
}

.community-required-badge {
  padding: 4px 7px;
  border: 1px solid #e8c6bc;
  border-radius: 999px;
  background: #fff6f2;
  color: var(--community-coral-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.community-hero-v2 .community-trust {
  grid-column: 3;
  justify-self: end;
  max-width: 120px;
  padding-top: 0;
  white-space: normal;
  text-align: left;
}

.community-country-selection {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin: 0 -2px 16px;
  padding: 16px;
  border: 1px solid #e8ddd2;
  border-radius: 16px;
  background: #fbf6ef;
}

.community-selection-copy .community-kicker { margin-bottom: 6px; }
.community-selection-copy h2 {
  margin: 0;
  color: var(--community-ink);
  font-size: clamp(21px, 6vw, 28px);
  letter-spacing: -.06em;
  line-height: 1.15;
}
.community-selection-copy p {
  max-width: none;
  margin: 7px 0 0;
  color: var(--community-muted);
  font-size: 12px;
  line-height: 1.55;
}

.community-country-selection .community-country-wrap { display: grid; gap: 7px; }
.community-country-selection .community-country-trigger {
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  gap: 9px;
  padding-inline: 13px;
  border-color: var(--community-navy);
  background: #fff;
  font-size: 15px;
  text-align: left;
}
.community-country-selection .community-country-trigger > span:nth-child(2) { flex: 1; }
.community-country-selection .community-country-trigger.is-empty {
  border-width: 2px;
  background: #fffdfa;
  box-shadow: 0 4px 12px rgba(23, 59, 120, .08);
}
.community-country-trigger-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #eef3fb;
  color: var(--community-navy);
  font-size: 18px;
  font-weight: 800;
}
.community-selection-match {
  margin: 0;
  color: var(--community-muted);
  font-size: 11px;
  line-height: 1.4;
}
.community-selection-match { display: flex; align-items: center; gap: 5px; color: var(--community-green); font-weight: 800; }
.community-selection-match span { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: var(--community-green); color: #fff; font-size: 10px; }

@media (max-width: 420px) {
  .community-hero-v2 .community-hero-topline { grid-template-columns: 1fr; gap: 9px; }
  .community-hero-v2 .community-title-lockup { grid-column: 1; justify-self: center; }
  .community-hero-v2 .community-trust { grid-column: 1; justify-self: center; max-width: none; }
}

/* v6: compact dialog in the content well (match lang-modal proportions, not a full-bleed sheet). */
.community-hero-v2.country-menu-open {
  /* ponytail: fixed overlay is trapped in this stacking context; lift above tabbar (100), stay under header (1000). */
  z-index: 150;
}

.community-country-overlay {
  position: fixed;
  top: 50px;
  right: 0;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px 24px;
  background: rgba(32, 35, 40, .58);
  backdrop-filter: blur(5px);
}

.community-country-overlay .community-country-menu {
  position: relative !important;
  inset: auto !important;
  width: min(340px, calc(100% - 8px));
  max-height: min(480px, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 12px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(25, 27, 30, .26);
}

.community-country-overlay .community-country-menu-head {
  position: relative;
  display: grid;
  justify-items: center;
  margin-bottom: 12px;
  padding: 0 36px 0;
  text-align: center;
}

.community-country-overlay .community-country-menu-head > div { display: grid; gap: 4px; }
.community-country-overlay .community-country-menu-head strong { color: var(--community-navy); font-size: 18px; letter-spacing: -.04em; }
.community-country-overlay .community-country-menu-head span { color: var(--community-coral); font-size: 13px; font-weight: 800; }
.community-country-overlay .community-country-menu-head button { position: absolute; top: -6px; right: -4px; }

@media (max-width: 420px) {
  .community-country-overlay { padding: 16px; }
  .community-country-overlay .community-country-menu {
    width: min(320px, calc(100% - 4px));
    max-height: min(460px, 68vh);
    border-radius: 14px;
  }
  .community-country-overlay .community-country-menu-head strong { font-size: 17px; }
  .community-country-overlay .community-country-menu-head span { font-size: 12px; }
}

/* v7: long translations must stay inside the header instead of colliding with moderation. */
.community-hero-v2 .community-hero-topline {
  position: relative;
  display: block;
  min-height: 42px;
}

.community-hero-v2 .community-title-lockup {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 102px;
  text-align: center;
}

.community-brand-title {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--community-ink);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.12;
}

.community-required-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.community-hero-v2 .community-trust {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(96px, 22%);
  max-width: 96px;
  align-items: flex-start;
  gap: 5px;
  padding: 0;
  font-size: 10px;
  line-height: 1.15;
  text-align: left;
}

.community-hero-v2 .community-trust .community-verified-icon {
  flex: 0 0 26px;
}

@media (max-width: 420px) {
  .community-hero-v2 .community-hero-topline {
    display: grid;
    min-height: 0;
    gap: 8px;
  }

  .community-hero-v2 .community-title-lockup {
    grid-column: 1;
    width: 100%;
    padding: 0;
  }

  .community-hero-v2 .community-trust {
    position: static;
    grid-column: 1;
    width: auto;
    max-width: 100%;
    justify-self: center;
    align-items: center;
    text-align: center;
  }
}

/* v8: compact centered dialog; beat the older in-hero static strip / full-bleed rules. */
.community-hero-v2.country-menu-open .community-country-overlay .community-country-menu {
  position: relative !important;
  width: min(340px, calc(100% - 8px)) !important;
  max-width: 340px !important;
  max-height: min(480px, 70vh) !important;
  margin: 0 auto !important;
  margin-top: 0 !important;
}

.community-hero-v2 .community-title-lockup {
  padding-inline: 0;
}

.community-hero-v2 .community-brand-title {
  flex-basis: 100%;
}

.community-nationality-prompt {
  display: grid;
  width: 100%;
  min-height: 84px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 15px 17px;
  border: 1px solid #d9cbbd;
  border-radius: 16px;
  background: #fffdf9;
  color: var(--community-navy);
  text-align: left;
  cursor: pointer;
}

.community-nationality-prompt:active { transform: scale(.99); }
.community-nationality-prompt-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #eef3fb;
  color: var(--community-navy);
  font-size: 21px;
}
.community-nationality-prompt > span:nth-child(2) { display: grid; min-width: 0; gap: 5px; }
.community-nationality-prompt strong { color: var(--community-ink); font-size: 14px; line-height: 1.3; }
.community-nationality-prompt small { color: var(--community-muted); font-size: 11px; line-height: 1.35; }
.community-nationality-prompt > span:last-child { font-size: 22px; }

/* Entry gate: fills the blank pre-selection state with one clear job. */
.community-hero-v2.is-entry {
  margin-bottom: 0;
  padding: 16px 18px 20px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(23, 59, 120, .06), transparent 55%),
    linear-gradient(180deg, #fffefa 0%, #f7f2ea 100%);
}

/* Direct community entry: keep only the fixed country picker visible before nationality selection. */
.community-hero-v2.entry-picker-only {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.community-hero-v2.entry-picker-only::after { display: none; }

.community-hero-v2.is-entry .community-hero-topline {
  margin-bottom: 16px;
}

.community-hero-v2.is-entry .community-brand-title {
  font-size: clamp(26px, 7.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
  text-align: center;
}

.community-entry {
  display: grid;
  gap: 12px;
  animation: community-entry-in .28s ease both;
}

.community-entry-kicker {
  margin: 0;
  color: var(--community-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.community-entry h1 {
  margin: 0;
  max-width: 18ch;
  color: var(--community-ink);
  font-size: clamp(22px, 6.4vw, 28px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.community-entry-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  margin-top: 2px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--community-navy);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 28px rgba(23, 59, 120, .18);
}

.community-entry-cta:hover { background: #123266; }
.community-entry-cta:active { transform: scale(.985); }
.community-entry-cta:focus-visible {
  outline: 3px solid rgba(23, 59, 120, .28);
  outline-offset: 2px;
}

.community-entry-cta-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.community-entry-cta-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-entry-cta-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.community-entry-cta-copy strong {
  font-size: 16px;
  letter-spacing: -.02em;
}

.community-entry-cta-copy small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.community-entry-cta > span:last-child {
  font-size: 22px;
  font-weight: 400;
  opacity: .9;
}

.community-entry-benefits {
  display: grid;
  gap: 0;
  margin: 2px 0 0;
  padding: 4px 14px;
  list-style: none;
  border: 1px solid #e5ddd3;
  border-radius: 14px;
  background: #fffefa;
}

.community-entry-benefits li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid #ece6de;
  color: var(--community-ink);
}

.community-entry-benefits li:last-child { border-bottom: 0; }

.community-entry-benefits li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--community-navy);
}

.community-entry-benefits svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-entry-benefits strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.community-entry-benefits small {
  display: block;
  margin-top: 3px;
  color: #5b6168;
  font-size: 12px;
  line-height: 1.45;
}

.community-country-selection.is-ready {
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.community-country-selection.is-ready .community-country-trigger {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 14px;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--community-navy);
  font-size: 14px;
  font-weight: 700;
}

.community-country-selection.is-ready .community-country-trigger > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-country-selection.is-ready .community-country-trigger-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e8eef8;
  color: var(--community-navy);
}

.community-country-selection.is-ready .community-country-trigger-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-country-selection.is-ready .community-hero-copy {
  margin-top: 4px;
}

.community-country-selection.is-ready .community-hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(26px, 7.2vw, 34px);
  letter-spacing: -.05em;
  line-height: 1.15;
}

/* Welcome copy: calmer hierarchy for the ready-state hero message. */
.community-welcome-copy {
  margin-top: 10px !important;
  padding: 20px 18px 20px;
  border: 1px solid rgba(47, 125, 103, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, #fffef9 0%, #f6f1e8 100%);
  box-shadow: 0 2px 12px rgba(23, 59, 120, .07), 0 1px 0 rgba(255, 255, 255, .8) inset;
  text-align: left;
}

.community-welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0 auto 6px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.community-welcome-flag {
  display: block;
  flex: 0 0 auto;
}

.community-welcome-flag.flag-np {
  width: 48px;
  height: 60px;
  overflow: visible;
}

.community-welcome-flag.flag-np img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.community-welcome-copy h1 {
  margin: 0 !important;
  max-width: none !important;
  color: #c0392b !important;
  font-size: clamp(20px, 5.2vw, 24px) !important;
  font-weight: 800;
  letter-spacing: -.04em !important;
  line-height: 1.2 !important;
  text-align: center;
}

.community-welcome-points {
  display: grid;
  gap: 8px;
  max-width: 32rem;
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
}

.community-welcome-points li {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--community-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.community-country-field.is-locked,
.community-country-field:disabled {
  opacity: 1;
  cursor: default;
  background: #f3f6fa;
  border-color: #d5dde8;
  box-shadow: none;
}

@keyframes community-entry-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .community-entry { animation: none; }
}

@media (max-width: 420px) {
  .community-hero-v2.is-entry { padding-inline: 16px; padding-bottom: 24px; }
  .community-entry-cta { min-height: 60px; }
}

.community-quick-grid button {
  align-items: center;
  text-align: center;
}

.community-quick-grid button b,
.community-quick-grid button small {
  text-align: center;
}

/* Food route: keep feature-page styles in the loaded stylesheet so Vue route swaps cannot lose them. */
.food-page {
  --food-navy: var(--community-navy, #173b78);
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 16px 128px;
  background: var(--community-cream, #f7f2ea);
  color: var(--community-ink, #202328);
}

.food-page *,
.food-page *::before,
.food-page *::after { box-sizing: border-box; }
.food-page button { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.food-page button:focus-visible { outline: 3px solid rgba(23, 59, 120, .24); outline-offset: 2px; }
.food-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.food-back { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid var(--community-sand, #e6ddd2); border-radius: 12px; background: var(--community-paper, #fffefa); color: var(--food-navy); font-size: 24px; cursor: pointer; }
.food-head-copy { min-width: 0; }
.food-title { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.food-subtitle { margin: 4px 0 0; color: var(--community-muted, #6d7379); font-size: 12px; line-height: 1.5; }
.food-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.food-group { min-height: 54px; padding: 6px; border: 1px solid var(--community-sand, #e6ddd2); border-radius: 12px; background: var(--community-paper, #fffefa); color: var(--community-muted, #6d7379); font-size: 12px; font-weight: 800; cursor: pointer; }
.food-group.active { border-color: var(--food-navy); background: var(--food-navy); color: #fff; }
.food-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.food-category-head strong { font-size: 14px; }
.food-category-head span { color: var(--community-muted, #6d7379); font-size: 10px; }
.food-categories { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 3px; scrollbar-width: none; }
.food-categories::-webkit-scrollbar { display: none; }
.food-category { min-height: 44px; flex: 0 0 auto; padding: 0 13px; border: 1px solid var(--community-sand, #e6ddd2); border-radius: 999px; background: var(--community-paper, #fffefa); color: var(--community-muted, #6d7379); font-size: 11px; font-weight: 800; cursor: pointer; }
.food-category.active { border-color: var(--community-yellow, #f2c766); background: #fff5dc; color: #79520f; }
.food-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.food-results-head h2 { margin: 0; font-size: 16px; }
.food-results-head span { color: var(--community-muted, #6d7379); font-size: 10px; }
.food-list { display: grid; gap: 10px; }
.food-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--community-sand, #e6ddd2);
  border-radius: 20px;
  background: var(--community-paper, #fffefa);
  box-shadow: 0 8px 22px rgba(64, 45, 30, .055);
}
.food-card-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.food-card-media {
  display: grid;
  flex: 0 0 92px;
  place-items: center;
  align-self: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
  background: #efe6da;
}
.food-card-visual,
.food-card-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.food-card-image {
  object-fit: cover;
  object-position: center;
  background: #e7ded2;
}
.food-card-visual {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f6d088, #e8b45a);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.food-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.food-card-kicker {
  display: block;
  margin: 0 0 4px;
  color: #9b6a1d;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
}
.food-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.food-card-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--community-muted, #6d7379);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.food-card.is-expanded .food-card-summary { display: none; }
.food-card.is-expanded .food-card-main {
  min-height: 72px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}
.food-card.is-expanded .food-card-media {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}
.food-card-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.food-price {
  min-width: 0;
  color: var(--food-navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}
.food-card-more {
  flex: 0 0 auto;
  color: var(--food-navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.food-card-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece4da;
}
.food-gallery {
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid #ece4da;
  border-radius: 14px;
  background: #f8f4ee;
}
.food-gallery-stage {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #2a2f36;
}
.food-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.food-gallery-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.food-gallery-meta span,
.food-gallery-meta strong {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(20, 25, 35, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.food-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: #1d2430;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}
.food-gallery-nav.prev { left: 8px; }
.food-gallery-nav.next { right: 8px; }
.food-gallery-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: none;
}
.food-gallery-tabs::-webkit-scrollbar { display: none; }
.food-gallery-tab {
  display: grid;
  gap: 2px;
  min-width: 76px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #e0d4c7;
  border-radius: 10px;
  background: #fffefa;
  color: #5f666d;
  text-align: left;
  cursor: pointer;
}
.food-gallery-tab strong { font-size: 12px; line-height: 1.2; }
.food-gallery-tab span { font-size: 10px; opacity: .8; }
.food-gallery-tab.active {
  border-color: var(--food-navy);
  background: var(--food-navy);
  color: #fff;
}
.food-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}
.food-meta-row {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #ece4da;
  border-radius: 12px;
  background: #f8f4ee;
}
.food-meta-row dt {
  color: #687078;
  font-size: 11px;
  font-weight: 700;
}
.food-meta-row dd {
  margin: 0;
  color: #2a3036;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}
.food-contacts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.food-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d5deeb;
  border-radius: 12px;
  background: #f7faff;
  color: var(--food-navy);
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.food-contact span { font-size: 12px; font-weight: 700; }
.food-contact strong { font-size: 13px; word-break: break-all; }
.food-reviews { margin-top: 14px; }
.food-reviews-title {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -.02em;
}
.food-review {
  padding: 10px 12px;
  border: 1px solid #ece4da;
  border-radius: 12px;
  background: #fffefa;
}
.food-review + .food-review { margin-top: 8px; }
.food-review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.food-review-head strong { font-size: 13px; }
.food-review-head span {
  color: #687078;
  font-size: 11px;
  white-space: nowrap;
}
.food-review p {
  margin: 0;
  color: #51483f;
  font-size: 12px;
  line-height: 1.5;
}
.food-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--food-navy);
  font-size: 12px;
  line-height: 1.45;
}
.food-card-full { margin: 0; color: #51483f; font-size: 13px; line-height: 1.55; }
.food-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.food-tag { padding: 4px 8px; border-radius: 6px; background: #f3eee7; color: #625950; font-size: 11px; white-space: nowrap; }
.food-card-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.food-price { color: var(--food-navy); font-size: 13px; font-weight: 900; }
.food-action { min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.food-action-map { border: 1px solid #d5deeb; background: #f7faff; color: var(--food-navy); }
.food-action-help { border: 0; background: var(--food-navy); color: #fff; }
.food-note { margin: 14px 0 0; padding: 11px 12px; border-left: 3px solid var(--community-yellow, #f2c766); background: #fff9ea; color: #6f6048; font-size: 10px; line-height: 1.55; }
.food-empty { padding: 24px 14px; border: 1px dashed #d1c4b5; border-radius: 14px; background: var(--community-paper, #fffefa); text-align: center; }
.food-empty strong { display: block; font-size: 14px; }
.food-empty p { margin: 5px 0 0; color: var(--community-muted, #6d7379); font-size: 11px; }

@media (min-width: 600px) {
  .food-list { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .food-page { padding-inline: 12px; }
  .food-card-main { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; min-height: 80px; }
  .food-card-media { width: 80px; height: 80px; border-radius: 14px; }
  .food-card.is-expanded .food-card-main { grid-template-columns: 64px minmax(0, 1fr); }
  .food-card.is-expanded .food-card-media { width: 64px; height: 64px; }
  .food-card h3 { font-size: 15px; }
  .food-card-summary { font-size: 12px; }
  .food-action { padding-inline: 7px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .food-page * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Mobile food page contract: 320–430px canvas, 12/16px gutters, 8px rhythm, 44px targets. */
.food-page {
  width: 100%;
  max-width: 430px;
  padding: 16px 16px calc(112px + env(safe-area-inset-bottom));
  background: #f6f0e7;
}
.food-page button { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.food-page button:active { transform: scale(.98); }
.food-head { align-items: center; gap: 12px; margin-bottom: 20px; padding-top: 2px; }
.food-back { border-color: #e0d4c7; border-radius: 14px; background: #fffefa; font-size: 20px; }
.food-title { font-size: 28px; line-height: 1.12; letter-spacing: -.04em; }
.food-subtitle { margin-top: 6px; color: #5f666d; font-size: 14px; line-height: 1.5; }
.food-groups { gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 16px; background: #e9e1d6; }
.food-group { min-height: 52px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; color: #62686d; font-size: 14px; font-weight: 700; }
.food-group.active { box-shadow: 0 5px 12px rgba(23, 59, 120, .16); }
.food-page > .food-subtitle { margin: 0 0 20px; color: #5f666d; font-size: 14px; line-height: 1.55; }
.food-category-head { margin: 0 0 9px; padding-top: 2px; }
.food-category-head strong { font-size: 17px; letter-spacing: -.02em; }
.food-category-head span, .food-results-head span { color: #687078; font-size: 12px; }
.food-categories { gap: 8px; margin-bottom: 20px; padding: 0 0 2px; }
.food-category { min-height: 44px; padding: 0 14px; border-color: #e0d4c7; background: #fffefa; color: #5f666d; font-size: 13px; font-weight: 700; }
.food-category.active { border-color: #d7a83e; background: #fff2d4; color: #73500e; }
.food-results-head { margin-bottom: 10px; }
.food-results-head h2 { font-size: 20px; letter-spacing: -.03em; }
.food-list { grid-template-columns: 1fr; gap: 12px; }
.food-card { width: auto; min-width: 0; margin: 0; padding: 14px; border-color: #e0d4c7; border-radius: 20px; background: #fffefa; box-shadow: 0 8px 22px rgba(64, 45, 30, .055); }
.food-card-main { grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 92px; }
.food-card-media { width: 92px; height: 92px; border-radius: 16px; }
.food-card-kicker { margin-bottom: 4px; font-size: 11px; line-height: 1.3; }
.food-card h3 { margin-bottom: 6px; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.food-card-summary { font-size: 13px; line-height: 1.45; }
.food-card-more { font-size: 12px; }
.food-card-full { font-size: 13px; }
.food-tags { gap: 6px; margin-top: 9px; }
.food-tag { padding: 5px 8px; border-radius: 7px; font-size: 12px; }
.food-card-foot { margin-top: 12px; }
.food-price { font-size: 14px; line-height: 1.3; }
.food-action { width: 100%; min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 13px; }
.food-note { margin-top: 18px; padding: 14px; border-left-width: 4px; border-radius: 0 12px 12px 0; font-size: 12px; line-height: 1.6; }
.food-page .food-bottom-return {
  display: block;
  width: 100%;
  margin: 20px 0 0;
}
.food-empty { padding: 28px 16px; border-radius: 16px; }
.food-empty strong { font-size: 16px; }
.food-empty p { font-size: 13px; line-height: 1.55; }

/* Keep the phone-width shell single-column even inside a wide desktop preview. */
@media (min-width: 600px) {
  .food-list { grid-template-columns: 1fr; }
  .food-card-main { grid-template-columns: 92px minmax(0, 1fr); }
  .food-card-media { width: 92px; height: 92px; }
}
@media (max-width: 370px) {
  .food-page { padding-inline: 12px; }
  .food-title { font-size: 25px; }
  .food-card-main { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; min-height: 80px; }
  .food-card-media { width: 80px; height: 80px; border-radius: 14px; }
  .food-card.is-expanded .food-card-main { grid-template-columns: 64px minmax(0, 1fr); }
  .food-card.is-expanded .food-card-media { width: 64px; height: 64px; }
  .food-card h3 { font-size: 16px; }
  .food-card-summary { font-size: 12px; }
  .food-action { padding-inline: 7px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .food-page button:active { transform: none; }
}

/* Exchange route: keep styles in the loaded stylesheet so Vue route swaps cannot lose them. */
.exchange-page {
  --ex-navy: var(--community-navy, #173b78);
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px calc(112px + env(safe-area-inset-bottom));
  background: #f6f0e7;
  color: #202328;
}

.exchange-page *,
.exchange-page *::before,
.exchange-page *::after { box-sizing: border-box; }

.exchange-page button {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.exchange-page button:active { transform: scale(.98); }
.exchange-page button:focus-visible { outline: 3px solid rgba(23, 59, 120, .28); outline-offset: 3px; }

.exchange-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-top: 2px; }
.exchange-back { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid #e0d4c7; border-radius: 14px; background: #fffefa; color: var(--ex-navy); font-size: 20px; cursor: pointer; }
.exchange-head-copy { min-width: 0; }
.exchange-title { margin: 0; font-size: 28px; line-height: 1.12; letter-spacing: -.04em; }
.exchange-subtitle { margin: 6px 0 0; color: #5f666d; font-size: 14px; line-height: 1.5; }

.exchange-alert { margin: 0 0 14px; padding: 12px 13px; border: 1px solid #e8c9a8; border-radius: 14px; background: #fff6ea; color: #6b4b2d; font-size: 12px; line-height: 1.6; }
.exchange-alert strong { display: block; margin-bottom: 4px; color: #9a4b24; font-size: 13px; }

.exchange-official { margin: 0 0 14px; padding: 13px 14px; border: 1px solid #d5deeb; border-radius: 16px; background: #f7faff; }
.exchange-official-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.exchange-official-head strong { font-size: 15px; color: var(--ex-navy); }
.exchange-official-head span { color: #687078; font-size: 11px; }
.exchange-official-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.exchange-official-item { padding: 10px; border: 1px solid #e3eaf4; border-radius: 12px; background: #fff; }
.exchange-official-item b { display: block; overflow: hidden; color: var(--community-coral-dark, #a9382e); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; text-overflow: clip; }
.exchange-official-item small { display: block; margin-top: 3px; color: #687078; font-size: 11px; line-height: 1.4; }

.exchange-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 16px; background: #e9e1d6; }
.exchange-type { min-height: 52px; padding: 6px 4px; border: 0; border-radius: 12px; background: transparent; color: #62686d; font-size: 11px; font-weight: 700; line-height: 1.25; cursor: pointer; }
.exchange-type.active { background: var(--ex-navy); color: #fff; box-shadow: 0 5px 12px rgba(23, 59, 120, .16); }
.exchange-type-desc { margin: 0 0 16px; color: #5f666d; font-size: 13px; line-height: 1.55; }

.exchange-section { margin-bottom: 22px; }
.exchange-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.exchange-section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.exchange-section-head span { color: #687078; font-size: 12px; white-space: nowrap; }

.exchange-info-text { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #f8f4ee; color: var(--ex-navy); font-size: 14px; font-weight: 700; text-align: center; }

.exchange-guide-section { margin-top: 8px; padding-top: 18px; border-top: 1px solid #e0d4c7; }
.exchange-guide-list { display: grid; gap: 0; margin-bottom: 12px; }
.exchange-guide-item {
  padding: 12px 0;
  border-bottom: 1px solid #ece4da;
  background: transparent;
}
.exchange-guide-item:last-child { border-bottom: 0; }
.exchange-guide-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.exchange-guide-thumb { overflow: hidden; border-radius: 8px; background: #eae0d6; aspect-ratio: 4 / 3; }
.exchange-guide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.exchange-guide-copy { min-width: 0; }
.exchange-guide-title { display: -webkit-box; width: 100%; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--ex-navy); font: inherit; font-size: 15px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; text-align: left; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; cursor: pointer; }
.exchange-guide-title:hover, .exchange-guide-title:focus-visible { color: var(--community-coral-dark); text-decoration: underline; text-underline-offset: 3px; }
.exchange-guide-label { display: block; margin-top: 6px; color: #9a4b24; font-size: 10px; line-height: 1.35; }
.exchange-guide-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }

.exchange-guide-overlay { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 18px 14px calc(86px + env(safe-area-inset-bottom, 0px)); background: rgba(36, 29, 26, .52); }
.exchange-guide-dialog { width: min(100%, 390px); max-height: min(690px, calc(100vh - 104px)); overflow-y: auto; padding: 0 16px 18px; border: 1px solid #e4d8cd; border-radius: 18px; background: #fffdf9; box-shadow: 0 18px 48px rgba(36, 29, 26, .24); }
.exchange-guide-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 52px; background: #fffdf9; color: var(--ex-navy); }
.exchange-guide-dialog-head strong { font-size: 15px; }
.exchange-guide-close { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 12px; background: #f3eee7; color: #6f5d4d; font-size: 26px; line-height: 1; cursor: pointer; }
.exchange-guide-dialog-image { display: block; width: 100%; max-height: 210px; object-fit: cover; border-radius: 12px; }
.exchange-guide-dialog-label { display: inline-block; margin-top: 12px; color: #9a4b24; font-size: 11px; font-weight: 800; }
.exchange-guide-dialog h2 { margin: 7px 0 0; color: var(--ex-navy); font-size: 21px; line-height: 1.3; }
.exchange-guide-dialog p { margin: 12px 0 0; color: #3e454b; font-size: 14px; line-height: 1.7; }
.exchange-guide-dialog-warning { padding: 10px 11px; border-radius: 10px; background: #fff4e8; color: #8f4428 !important; font-size: 12px !important; }

.exchange-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.exchange-results-head h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.exchange-results-head span { color: #687078; font-size: 12px; }

.exchange-list { display: grid; gap: 12px; }
.exchange-card { padding: 12px; border: 1px solid #e0d4c7; border-radius: 18px; background: #fffefa; box-shadow: 0 8px 22px rgba(64, 45, 30, .055); }
.exchange-meta { margin: 6px 0 0; color: #687078; font-size: 11px; line-height: 1.4; }

.exchange-rates { display: grid; gap: 7px; margin-top: 10px; }
.exchange-rate { padding: 9px 10px; border-radius: 12px; background: #f8f4ee; }
.exchange-rate strong { display: block; color: var(--ex-navy); font-size: 14px; font-variant-numeric: tabular-nums; }
.exchange-rate span { display: block; margin-top: 3px; color: #687078; font-size: 11px; line-height: 1.45; }

.exchange-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.exchange-action { min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.exchange-action-map { border: 1px solid #cfdae9; background: #f7faff; color: var(--ex-navy); }
.exchange-action-help { border: 0; background: var(--ex-navy); color: #fff; }

.exchange-note { margin-top: 18px; padding: 14px; border-left: 4px solid #d7a83e; border-radius: 0 12px 12px 0; background: #fff8e8; color: #665944; font-size: 12px; line-height: 1.6; }
.exchange-page .exchange-bottom-return {
  display: block;
  width: 100%;
  margin: 20px 0 0;
}
.exchange-empty { padding: 28px 16px; border: 1px dashed #d1c4b5; border-radius: 16px; background: #fffefa; text-align: center; }
.exchange-empty strong { display: block; font-size: 16px; }
.exchange-empty p { margin: 5px 0 0; color: #687078; font-size: 13px; line-height: 1.55; }

@media (max-width: 370px) {
  .exchange-page { padding-inline: 12px; }
  .exchange-title { font-size: 25px; }
  .exchange-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exchange-official-grid { grid-template-columns: 1fr; }
  .exchange-guide-row { grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
  .exchange-guide-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .exchange-page * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .exchange-page button:active { transform: none; }
}
