/* Make Local Friends ????????????????? */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

button,
.tabbar,
.tabbar-item,
.lang-trigger,
.btn,
.btn-auth,
.floating-ai-fab,
.floating-ai-icon-btn {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
.selectable,
[contenteditable="true"],
.auth-page,
.auth-page-card,
.user-profile-container,
.msg-page,
.community-page {
  -webkit-user-select: text;
  user-select: text;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #eee8e1;
}

/* ponytail: phones always match device width; only desktop/tablet center a phone column */
body {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #fff;
}

#app {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
}

/* Keep the app in its phone-width shell on tablets and narrow desktop previews too.
   Without this breakpoint, a 640–767px viewport stretches the whole app while the
   fixed tab bar remains 430px wide, making the page look horizontally misaligned. */
@media (min-width: 480px) {
  body {
    max-width: 430px;
    box-shadow: 0 0 28px rgba(58, 38, 24, 0.08);
  }

  #app {
    max-width: 430px;
  }

  .header,
  .tabbar,
  .home-hero,
  .home-role {
    max-width: 430px;
  }
}

:root {
  --primary: #ff4757;
  --primary-dark: #e53c4c;
  --text-dark: #333;
  --text-gray: #666;
  --text-light: #999;
  --bg-white: #ffffff;
  --border: #eaeaea;
  --app-header-clearance: calc(52px + env(safe-area-inset-top, 0px));
  --app-tabbar-clearance: calc(68px + env(safe-area-inset-bottom, 0px));
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  
  --font-xs: 10px;
  --font-sm: 12px;
  --font-md: 14px;
  --font-lg: 16px;
  --font-xl: 18px;
  --font-xxl: 20px;
  
  --line-tight: 1.2;
  --line-normal: 1.4;
  --line-relaxed: 1.6;
}

.container {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  background: var(--bg-white);
  position: relative;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  max-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-chinese-text {
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 10;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  line-height: 1.4;
}

/* ?????????? - ???????? */
.hero-chinese-text[data-lang="zh"] .hero-site-name,
.hero-chinese-text[data-lang="en"] .hero-site-name {
  font-size: var(--font-xl) !important;
  font-weight: bold;
  margin-bottom: 8px !important;
  color: #ffc0cb;
  line-height: 1.2;
}

.hero-chinese-text[data-lang="zh"] .hero-site-name-line2,
.hero-chinese-text[data-lang="en"] .hero-site-name-line2 {
  font-size: var(--font-xl) !important;
  margin-bottom: 8px !important;
  color: #d63031;
  padding-left: 2em;
  line-height: 1.2;
}

.hero-chinese-text[data-lang="zh"] .hero-title,
.hero-chinese-text[data-lang="en"] .hero-title {
  font-size: var(--font-lg) !important;
  font-weight: bold;
  margin: 8px 0;
  line-height: 1.2;
}

.hero-chinese-text[data-lang="zh"] .hero-slogan,
.hero-chinese-text[data-lang="zh"] .hero-slogan2-line1,
.hero-chinese-text[data-lang="en"] .hero-slogan,
.hero-chinese-text[data-lang="en"] .hero-slogan2-line1 {
  font-size: var(--font-md);
  margin: 8px 0;
  line-height: 1.2;
}

.hero-chinese-text[data-lang="zh"] .hero-slogan2-line2,
.hero-chinese-text[data-lang="en"] .hero-slogan2-line2 {
  font-size: var(--font-md);
  margin: 8px 0;
  padding-left: 1.5em;
  line-height: 1.2;
}

/* ?????????? */
.hero-chinese-text[data-lang="ne"] .hero-site-name {
  font-size: var(--font-xl) !important;
  font-weight: bold;
  margin-bottom: 4px !important;
  color: #ffc0cb;
}

.hero-chinese-text[data-lang="ne"] .hero-site-name-line2 {
  font-size: var(--font-xl) !important;
  margin-bottom: 4px !important;
  color: #d63031;
  padding-left: 2em;
}

.hero-chinese-text[data-lang="ne"] .hero-title {
  font-size: var(--font-lg) !important;
  font-weight: bold;
  margin: 4px 0;
}

.hero-chinese-text[data-lang="ne"] .hero-slogan,
.hero-chinese-text[data-lang="ne"] .hero-slogan2-line1 {
  font-size: var(--font-md);
  margin: 4px 0;
  line-height: 1.3;
}

.hero-chinese-text[data-lang="ne"] .hero-slogan2-line2 {
  font-size: var(--font-md);
  margin: 4px 0;
  padding-left: 1.5em;
  line-height: 1.3;
}

.btn-container {
  margin-top: 8px;
  margin-left: 3em;
}

/* ponytail: stable px type — cqw broke stacking on some mobile browsers */
body[data-lang="en"] .home-hero-primary,
body[data-lang="en"] .home-hero-secondary {
  font-size: 14px !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
body[data-lang="en"] .home-hero-apply {
  font-size: 12px !important;
  line-height: 1.15;
  white-space: normal;
}

body[data-lang="en"] .home-hero-title {
  /* ponytail: keep 2 title lines inside 220px copy; 14px wraps EN line 2 */
  font-size: 12px !important;
}

body[data-lang="en"] .home-hero-description {
  font-size: 11px !important;
  white-space: nowrap !important;
}

body[data-lang="de"] .home-hero-title {
  /* German-only: preserve the four authored lines without changing other locales. */
  font-size: 11px !important;
  line-height: 1.25;
}

body[data-lang="de"] .home-hero-title-line {
  white-space: nowrap;
}

body[data-lang="de"] .home-hero-description {
  /* German compounds need a smaller size to keep the three authored lines intact. */
  font-size: 8px !important;
  line-height: 1.45;
  letter-spacing: -0.015em;
  white-space: nowrap !important;
}

body[data-lang="ne"] .home-hero-primary,
body[data-lang="ne"] .home-hero-secondary {
  /* ponytail: 11px is the smallest targeted adjustment that keeps the full Nepali label inside the 135px CTA. */
  font-size: 11px !important;
  white-space: nowrap;
}
body[data-lang="ne"] .home-hero-apply {
  font-size: 8px !important;
  line-height: 1.15;
  white-space: normal;
}

body[data-lang="ne"] .home-hero-title {
  /* ponytail: NE line 2 is longer — 10px fits 220px with font variance margin */
  font-size: 10px !important;
  line-height: 15px;
}

body[data-lang="ne"] .home-hero-description {
  /* ponytail: 3 explicit lines; shrink so the long middle line does not wrap to a 4th */
  font-size: 9px !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em;
  line-height: 15px;
}

body[data-lang="ne"] .home-hero-description + .home-hero-description {
  margin-top: 5px;
}

body[data-lang="ne"] .home-hero-intro-card {
  /* ponytail: copy gap is 8px; +2px → 10px between title and intro */
  margin-top: 2px;
}

/* Long-script labels must remain fully visible inside the narrow hero copy. */
body[data-lang="ru"] .home-hero-actions,
body[data-lang="fr"] .home-hero-actions,
body[data-lang="ko"] .home-hero-actions,
body[data-lang="de"] .home-hero-actions,
body[data-lang="es"] .home-hero-actions {
  width: min(170px, 100%);
}
body[data-lang="ru"] .home-hero-primary,
body[data-lang="ru"] .home-hero-secondary,
body[data-lang="fr"] .home-hero-primary,
body[data-lang="fr"] .home-hero-secondary,
body[data-lang="ko"] .home-hero-primary,
body[data-lang="ko"] .home-hero-secondary,
body[data-lang="de"] .home-hero-primary,
body[data-lang="de"] .home-hero-secondary,
body[data-lang="es"] .home-hero-primary,
body[data-lang="es"] .home-hero-secondary {
  min-height: 40px;
  height: auto;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

[data-lang="zh"] .btn-container {
  margin-top: 8px;
}

.customize-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: var(--font-sm);
  font-weight: bold;
  min-height: 24px !important;
  min-width: 40px !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-chinese-text .customize-btn,
[data-lang="zh"] .customize-btn,
[data-lang="en"] .customize-btn,
[data-lang="ne"] .customize-btn,
body[data-lang="zh"] .customize-btn,
body[data-lang="en"] .customize-btn,
body[data-lang="ne"] .customize-btn {
  min-height: 24px !important;
  min-width: 40px !important;
  height: 24px !important;
  width: auto !important;
  border-radius: 20px !important;
  padding: 6px 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.customize-btn:hover,
.customize-btn:active {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}


.header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  height: auto;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-lg);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.header-left {
  flex: 1;
  overflow: hidden;
}

.marquee {
  position: relative;
  overflow: hidden;
  height: 28px;
}

.marquee-inner {
  position: absolute;
  white-space: nowrap;
  animation: marq 15s linear infinite;
  color: var(--text-dark);
  font-size: var(--font-md);
  line-height: 28px;
}

@keyframes marq {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang {
  position: relative !important;
  z-index: 99998 !important;
}

/* ????(?????) - ???? 26px */
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0.5px solid #ff4757;
  background: #fff;
  border-radius: 18px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative !important;
  z-index: 99999 !important;
}

.lang-trigger:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.1);
}

.lang .flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-label {
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
  line-height: 1;
}

/* ?????????????? - ???? */
body[data-lang="ne"] .lang-label {
  line-height: 1.2;
  vertical-align: middle;
  transform: translateY(-0.5px);
}

body[data-lang="ne"] .lang .flag {
  vertical-align: middle;
  transform: translateY(-0.5px);
}

/* ??????????????? */
body[data-lang="ne"] #register-text,
body[data-lang="ne"] #login-text {
  line-height: 1.2;
  vertical-align: middle;
  transform: translateY(-0.5px);
}


.caret {
  font-size: 20px;
  color: var(--text-gray);
  margin-left: 2px;
}

.lang-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  min-width: 150px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  z-index: 1001;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: var(--text-dark);
  text-align: left;
  touch-action: manipulation;
}

.lang-item:hover {
  background: #f5f7fa;
}


.lang-item:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-item:last-child {
  border-radius: 0 0 8px 8px;
}

.lang-code-badge {
  display: inline-flex;
  flex: 0 0 24px;
  width: 24px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dce3;
  border-radius: 4px;
  background: #f5f7fa;
  color: #344054;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* The current selector uses the flag; its fallback code stays hidden when a
   flag exists. Keep the HTML hidden attribute authoritative over badge styles. */
#current-lang-code[hidden] {
  display: none !important;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-register {
  background: #ff4757 !important;
  color: white !important;
}

.btn-login {
  background: #1e3a8a !important;
  color: white !important;
}

.btn {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.2;
  min-height: 44px;
  touch-action: manipulation;
}

.btn:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.28);
  outline-offset: 2px;
}

.site-footer { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; padding:22px 16px 34px; color:#667085; font-size:12px; line-height:1.5; }
.site-footer a { min-height:44px; display:inline-flex; align-items:center; color:#9e2638; font-weight:700; text-decoration:none; }
.site-footer a:focus-visible { outline:3px solid rgba(30,64,175,.35); outline-offset:2px; border-radius:4px; }
.not-found-page { min-height:calc(100vh - 96px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:32px 20px; text-align:center; color:#475467; }
.not-found-code { margin:0; color:#c73d4d; font-size:clamp(52px,16vw,96px); font-weight:800; line-height:1; }
.not-found-page h1 { margin:0; color:#172033; font-size:clamp(22px,5vw,34px); }
.not-found-link { min-height:44px; display:inline-flex; align-items:center; padding:10px 16px; border-radius:9px; background:#c73d4d; color:#fff; font-weight:700; text-decoration:none; }
.not-found-link:focus-visible { outline:3px solid rgba(30,64,175,.35); outline-offset:2px; }

/* ??/???? - ??????????? (26px) */
.btn-auth {
  background: linear-gradient(90deg, #ff4757, #1e90ff);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  min-height: 40px;
  height: auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-auth:hover,
.btn-auth:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-auth:active {
  transform: translateY(0);
}

/* ??????????/??????? */
body[data-logged-in="true"] #register-btn,
body[data-logged-in="true"] #login-btn { display: none !important; }
body[data-logged-in="true"] #user-avatar { display: flex !important; }

/* Only the three longest translations use the compact header treatment.
   Other languages keep the original announcement and language label UI. */
body[data-lang="ru"] .header,
body[data-lang="fr"] .header,
body[data-lang="de"] .header {
  padding-inline: 8px;
  gap: 6px;
}

body[data-lang="ru"] .header-left,
body[data-lang="fr"] .header-left,
body[data-lang="de"] .header-left {
  display: none;
}

body[data-lang="ru"] .header-right,
body[data-lang="fr"] .header-right,
body[data-lang="de"] .header-right {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 6px;
}

body[data-lang="ru"] .lang-trigger,
body[data-lang="fr"] .lang-trigger,
body[data-lang="de"] .lang-trigger {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  padding-inline: 6px !important;
}

body[data-lang="ru"] .lang-trigger .lang-label,
body[data-lang="fr"] .lang-trigger .lang-label,
body[data-lang="de"] .lang-trigger .lang-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-lang="ru"] .lang-trigger .caret,
body[data-lang="fr"] .lang-trigger .caret,
body[data-lang="de"] .lang-trigger .caret {
  display: none;
}

body[data-lang="ru"] .auth-buttons,
body[data-lang="fr"] .auth-buttons,
body[data-lang="de"] .auth-buttons {
  min-width: 0;
  gap: 6px;
}

body[data-lang="ru"] .btn-auth,
body[data-lang="fr"] .btn-auth,
body[data-lang="de"] .btn-auth {
  min-width: 44px;
  padding-inline: 10px !important;
  font-size: 13px;
}


.tabbar-spacer {
  height: 80px;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100%;
  /* fixed 相对视口；100% 会盖掉上方媒体查询的 430px，导致桌面端铺满全宽 */
  max-width: 430px;
  transform: translateX(-50%);
  height: 68px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 252, 249, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(30, 58, 138, 0.08);
  box-shadow: 0 -10px 28px rgba(30, 58, 138, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.tabbar a,
.tabbar .tabbar-item {
  --tab-navy: #1e3a8a;
  color: #8b93a7;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 4px;
  min-height: 44px;
  flex: 1;
  transition: color 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.tabbar a.active,
.tabbar .tabbar-item.active,
.tabbar .tabbar-item.router-link-active,
.tabbar .tabbar-item.router-link-exact-active {
  color: var(--tab-navy);
}

.tabbar a:hover,
.tabbar .tabbar-item:hover {
  color: var(--tab-navy);
  transform: translateY(-1px);
}

/* TASTE soft structuralism: floating double-bezel circle */
.tabbar-icon-shell {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 138, 0.05);
  border: 1px solid rgba(30, 58, 138, 0.06);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.tabbar-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  box-sizing: border-box;
  display: block;
  border-radius: 50%;
  /* inactive: soft disc + login navy glyph */
  background: linear-gradient(180deg, #ffffff 0%, #f2f4f9 100%);
  border: 1px solid rgba(30, 58, 138, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 10px rgba(30, 58, 138, 0.11),
    0 1px 2px rgba(30, 58, 138, 0.06);
  fill: none;
  stroke: #1e3a8a;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              border-color 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              stroke 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.tabbar .tabbar-item:hover .tabbar-icon-shell {
  transform: translateY(-1px);
}

.tabbar .tabbar-item:hover .tabbar-icon {
  transform: scale(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 6px 14px rgba(30, 58, 138, 0.15),
    0 2px 4px rgba(30, 58, 138, 0.08);
}

.tabbar .tabbar-item.active .tabbar-icon-shell {
  background: rgba(30, 58, 138, 0.10);
  border-color: rgba(30, 58, 138, 0.12);
  transform: translateY(-1px);
}

.tabbar .tabbar-item.active .tabbar-icon {
  /* active: same navy as login button + white glyph */
  background: linear-gradient(165deg, #2a4dad 0%, #1e3a8a 50%, #172e70 100%);
  border-color: rgba(23, 46, 112, 0.4);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.28) inset,
    0 -1px 2px rgba(10, 24, 70, 0.35) inset,
    0 6px 14px rgba(30, 58, 138, 0.28),
    0 2px 4px rgba(30, 58, 138, 0.16);
  stroke: #ffffff;
  stroke-width: 1.9;
  transform: scale(1.04);
}

.tabbar .tabbar-item.active .tabbar-icon path,
.tabbar .tabbar-item.active .tabbar-icon circle,
.tabbar .tabbar-item.active .tabbar-icon rect,
.tabbar .tabbar-item:not(.active) .tabbar-icon path,
.tabbar .tabbar-item:not(.active) .tabbar-icon circle,
.tabbar .tabbar-item:not(.active) .tabbar-icon rect {
  fill: none;
}

.section-title {
  font-size: var(--font-lg);
  font-weight: bold;
  color: var(--text-dark);
  margin: var(--space-lg) 0 var(--space-md) 0;
  padding: 0 var(--space-lg);
}

.section-description {
  font-size: var(--font-sm);
  color: var(--text-gray);
  margin: 0 0 var(--space-md) 0;
  padding: 0 var(--space-lg);
  line-height: var(--line-normal);
}

.card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  margin-bottom: var(--space-md);
}

.scroll-view-horizontal {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
  white-space: nowrap;
}

.horizontal-list {
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.guide-card {
  display: inline-block;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
  width: 215px;
  min-width: 215px;
  min-height: 280px;
  margin-right: 10px;
  vertical-align: top;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Discovery card: city · languages · help · verified · NPR ↑ · View Profile */
.assistant-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  min-width: 220px;
  margin-right: 12px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(42, 28, 20, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  vertical-align: top;
}
.assistant-card:hover,
.assistant-card:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 28, 20, 0.12);
}
.assistant-card-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #efe6dc;
}
.assistant-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
  white-space: normal;
}
.assistant-card-name {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: #1f1a17;
  line-height: 1.25;
}
.assistant-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #1f1a17;
  font-weight: 700;
}
.assistant-card-row.is-triple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.assistant-card-row.is-triple .assistant-card-education {
  justify-self: center;
}
.assistant-card-row.is-triple .is-accent {
  justify-self: end;
}
.assistant-card-row .is-grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}
.assistant-card-row .is-accent {
  color: #df5422;
  font-weight: 600;
  flex-shrink: 0;
}
.assistant-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.assistant-card-hours {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #1f1a17;
  font-weight: 700;
  text-align: left;
}
.assistant-card-foot {
  grid-column: 1;
  grid-row: 2;
  display: block;
  margin-top: 4px;
  padding-top: 4px;
}
.assistant-card-price {
  color: #ff4757;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-align: left;
}
.assistant-card-cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  flex-shrink: 0;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 2px 0;
  border: 2px solid #ff4757;
  border-radius: 8px;
  background: #ff4757;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.05;
}
.assistant-card-cta:hover,
.assistant-card-cta:active {
  background: #e63e4d;
}
body[data-lang="en"] .assistant-card-cta {
  font-size: 9px;
  padding: 0;
}
body[data-lang="ne"] .assistant-card-cta {
  font-size: 8px;
  min-width: 0;
  padding: 0;
}
body[data-lang="ne"] .assistant-card-price {
  font-size: 11px;
  white-space: nowrap;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.guide-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.guide-info {
  padding: var(--space-sm);
  white-space: normal;
  display: flex;
  flex-direction: column;
  min-height: 135px;
}

.guide-name {
  font-size: var(--font-lg);
  font-weight: bold;
  margin-bottom: 3px;
  display: block;
}

.guide-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  position: relative;
}

.guide-stat {
  font-size: var(--font-xs);
  color: var(--text-gray);
}

.guide-nationality {
  text-align: left;
  flex: 1;
}

.guide-physical {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.guide-age {
  color: var(--primary);
  margin-left: auto;
}

.guide-education-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 3px;
  position: relative;
}

.guide-education {
  font-size: var(--font-xs);
  color: var(--text-dark);
  font-weight: normal;
  padding: 0;
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-status {
  position: absolute;
  right: 0;
  font-size: var(--font-xs);
  color: #ff6b6b;
}

.guide-work-time {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 3px;
}

.guide-price-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 3px;
}

.guide-price {
  flex: 1;
  min-width: 0;
  font-weight: bold;
  margin-right: 6px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.3;
  white-space: pre-line;
  text-align: center;
}

.book-btn {
  background-color: var(--primary);
  color: white;
  border-radius: 15px;
  border: none;
  text-align: center;
  line-height: 1.4;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  font-size: var(--font-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 70px;
  max-width: 85px;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-btn:hover,
.book-btn:active {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.food-card {
  display: inline-block;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
  width: 200px;
  min-width: 200px;
  margin-right: 10px;
  vertical-align: top;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.food-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.hotel-card {
  display: inline-block;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
  width: 200px;
  min-width: 200px;
  margin-right: 10px;
  vertical-align: top;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.review-card {
  display: inline-block;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
  width: 200px;
  min-width: 200px;
  margin-right: 10px;
  vertical-align: top;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.title-container {
  display: flex;
  align-items: center;
  margin: 15px 0;
  padding: 0 16px;
  position: relative;
}

.title-container > div:first-child {
  position: relative;
  margin-right: 2px;
  height: 24px;
  width: 16px;
}

.title-container > div:first-child > div:first-child {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, #ff6b6b, #ff4757);
  border-radius: 1px;
}

.title-container > div:first-child > div:last-child {
  position: absolute;
  left: 4px;
  top: 0;
  width: 6px;
  height: 16px;
  background: linear-gradient(to bottom, #ff6b6b, #ff4757);
  border-radius: 3px;
}

@media (max-width: 359px) {
  .hero-chinese-text {
    left: 12px;
    right: 12px;
  }
  
  /* ???????????? */
  .hero-chinese-text[data-lang="zh"] .hero-site-name,
  .hero-chinese-text[data-lang="en"] .hero-site-name {
    font-size: 14px;
    margin-bottom: 6px !important;
  }
  
  .hero-chinese-text[data-lang="zh"] .hero-title,
  .hero-chinese-text[data-lang="en"] .hero-title {
    font-size: 16px;
    margin: 6px 0;
  }
  
  .hero-chinese-text[data-lang="zh"] .hero-slogan,
  .hero-chinese-text[data-lang="zh"] .hero-slogan2-line1,
  .hero-chinese-text[data-lang="zh"] .hero-slogan2-line2,
  .hero-chinese-text[data-lang="en"] .hero-slogan,
  .hero-chinese-text[data-lang="en"] .hero-slogan2-line1,
  .hero-chinese-text[data-lang="en"] .hero-slogan2-line2 {
    margin: 6px 0;
  }
  
  /* ????????????? */
  .hero-chinese-text[data-lang="ne"] .hero-site-name {
    font-size: 14px;
  }
  
  .hero-chinese-text[data-lang="ne"] .hero-title {
    font-size: 16px;
  }
  
  .customize-btn {
    font-size: 10px;
    padding: 4px 8px;
    min-width: 40px !important;
    min-height: 14px !important;
  }
}

@media (min-width: 375px) and (max-width: 413px) {
  /* ????????????? */
  .hero-chinese-text[data-lang="zh"] .hero-title,
  .hero-chinese-text[data-lang="en"] .hero-title {
    font-size: var(--font-xl);
    margin: 8px 0;
  }
  
  /* ?????????????? */
  .hero-chinese-text[data-lang="ne"] .hero-title {
    font-size: var(--font-xl);
  }
}

@media (min-width: 414px) {
  /* ???????????? */
  .hero-chinese-text[data-lang="zh"] .hero-title,
  .hero-chinese-text[data-lang="en"] .hero-title {
    font-size: var(--font-xxl);
    margin: 8px 0;
  }
  
  /* ????????????? */
  .hero-chinese-text[data-lang="ne"] .hero-title {
    font-size: var(--font-xxl);
  }
  
  .customize-btn {
    font-size: var(--font-md);
    padding: 8px 14px;
    min-width: 40px !important;
    min-height: 14px !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero-container {
    height: 80vh;
    min-height: 250px;
  }
  
  .hero-chinese-text {
    top: var(--space-sm);
  }
}

.animate-color {
  animation: simple-color-change 3s ease-in-out infinite alternate;
  background-image: none !important;
  color: #ff4d9a;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 0 10px rgba(255, 77, 154, 0.45);
  transform: perspective(350px) rotateX(20deg) rotateY(-3deg);
  transition: all 0.3s ease;
  letter-spacing: 1px;
  background: none !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.animate-color:hover {
  transform: perspective(350px) rotateX(25deg) rotateY(-5deg) translateY(-2px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32), 0 0 12px rgba(255, 77, 154, 0.55);
}

@keyframes simple-color-change {
  0% { color: #ff4d9a; }
  100% { color: #e02020; }
}

@keyframes colorShine {
  0% { color: var(--bg-white); }
  33% { color: #FFD700; }
  66% { color: #00FF00; }
  100% { color: var(--bg-white); }
}

.shine {
  animation: colorShine 3s linear infinite;
}

/* ???????? */
.user-profile-container {
  padding: 20px;
  background: #f8f9fa;
  min-height: 100vh;
  padding-bottom: 100px;
}

/* ?????? */
.user-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.5s ease;
}

/* ?????? - ???? */
.user-header-male {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ?????? - ???? */
.user-header-female {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* ???? */
.user-header-default {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.user-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.3);
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-edit:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.user-name-section {
  margin-bottom: 8px;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-id {
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 1px;
}

.user-info p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.user-bio {
  margin-top: 8px;
}

.bio-text {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
  font-style: italic;
  line-height: 1.4;
}

.bio-length {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.user-actions {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
}

.btn-login, .btn-logout {
  padding: 8px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-login:hover, .btn-logout:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ?????? */
.quick-actions {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.action-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-item:last-child {
  border-bottom: none;
}

.action-item:hover {
  transform: translateX(8px);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 20px;
  color: white;
}

.action-icon.orders {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.action-icon.favorites {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.action-icon.images {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.action-item span {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.action-item i:last-child {
  color: #ccc;
  font-size: 18px;
}

.account-workspaces {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.account-workspaces-head h4 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark, #1c1917);
}

.account-workspaces-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.account-workspaces-loading {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.account-workspaces-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-workspace-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon desc";
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  width: 100%;
  min-height: 44px;
  padding: 14px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  background: #fafbfc;
  text-align: left;
  cursor: pointer;
}

.account-workspace-card > span {
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 20px;
}

.account-workspace-card strong {
  grid-area: title;
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #111827;
}

.account-workspace-card small {
  grid-area: desc;
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.account-workspace-card.is-admin > span {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.account-workspace-card:active {
  transform: scale(0.99);
}

/* ???? */
.settings-section {
  background: white;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.section-header:hover {
  background: #e9ecef;
}

.section-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.section-header h4 i {
  margin-right: 12px;
  color: var(--primary);
}

.section-header i:last-child {
  color: #999;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.settings-content {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-item label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  min-width: 80px;
}

.setting-select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  font-size: 14px;
  min-width: 150px;
  transition: all 0.3s ease;
}

.setting-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

/* ?????? */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-item {
  display: flex;
  flex-direction: column;
}

.profile-item label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.profile-input, .profile-select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.profile-input:focus, .profile-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.btn-save-profile {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff4757 0%, #e53c4c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-save-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}



/* ?????? */
.other-functions {
  background: white;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.other-functions-title {
  padding: 20px 20px 10px 20px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  background: #f8f9fa;
  border-bottom: 1px solid #f0f0f0;
}

.function-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.function-item:last-child {
  border-bottom: none;
}

.function-item:hover {
  background: #f8f9fa;
  transform: translateX(8px);
}

.function-item i:first-child {
  width: 24px;
  margin-right: 16px;
  font-size: 20px;
  color: var(--primary);
}

.function-item span {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

.function-item i:last-child {
  color: #ccc;
  font-size: 18px;
}

/* ??????? */
.cloud-storage-section {
  margin: 20px 16px;
}

.cloud-storage-status {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.cloud-storage-status.offline {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.status-header:hover {
  background-color: #f8f9fa;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator i {
  font-size: 16px;
  color: #28a745;
}

.cloud-storage-status.offline .status-indicator i {
  color: #dc3545;
}

.status-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sync {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.btn-sync:hover {
  background-color: #e9ecef;
  color: #333;
}

.status-details {
  padding: 0 16px 16px;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}

.detail-label {
  color: #666;
  font-weight: 500;
}

.detail-value {
  color: #333;
  font-weight: 600;
}

/* ???? */
.version-info {
  text-align: center;
  padding: 30px 20px;
  color: #999;
  font-size: 14px;
}

.version-info p:first-child {
  font-weight: 600;
  margin-bottom: 8px;
}

.version-info p:last-child {
  font-size: 12px;
  opacity: 0.7;
}

/* ?????? */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-switch label:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + label {
  background-color: var(--primary);
}

.toggle-switch input:checked + label:before {
  transform: translateX(26px);
}

@media (max-width: 480px) {
  .user-profile-container {
    padding: 16px;
  }
  
  .user-header {
    padding: 20px;
    gap: 16px;
  }
  
  .user-avatar {
    width: 70px;
    height: 70px;
  }
  
  .user-info h3 {
    font-size: 20px;
  }
  
  .action-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  

  
  .user-actions {
    bottom: 20px;
    right: 20px;
  }
}

.profile-grid {
  grid-template-columns: 1fr !important;
}

@media (max-width: 430px) {
  body {
    box-shadow: none;
  }
}

/* ponytail: do not compress .home-hero by viewport height — phones are always <850px and that made them diverge from desktop */

/* ?????? */
.login-devices {
  padding: 16px 0;
}

.devices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 20px;
}

.devices-header h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.btn-refresh {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-refresh:hover {
  transform: rotate(180deg);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-refresh i {
  font-size: 16px;
}

/* ?????? */
.devices-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.stat-item {
  flex: 1;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  transition: all 0.3s ease;
}

.device-item:hover {
  background: #f8f9fa;
}

.device-item.current-device {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-left: 4px solid var(--primary);
}

.device-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.device-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.device-details {
  flex: 1;
}

.device-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.device-location {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.login-time {
  font-size: 12px;
  color: var(--text-light);
}

.device-status {
  margin-left: 16px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.device-actions {
  margin-left: 16px;
}

.btn-force-logout {
  padding: 8px 16px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-force-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.no-other-devices {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-light);
}

.no-other-devices p {
  font-size: 14px;
  margin: 0;
}

/* ?????? */
.loading-devices {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-light);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-devices p {
  font-size: 14px;
  margin: 0;
}

/* ???????? */
.device-details-info {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.os-info, .browser-info {
  font-size: 11px;
  color: var(--text-light);
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ?????? */
.orders-container {
  padding: 20px;
  background: #f8f9fa;
  min-height: 100vh;
  padding-bottom: 100px;
}

.orders-header {
  text-align: center;
  margin-bottom: 24px;
}

.orders-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.orders-header p {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0;
}

.orders-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
}

.search-box input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.status-filter select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  background: white;
  min-width: 120px;
  transition: all 0.3s ease;
}

.status-filter select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.orders-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.orders-stats .stat-item {
  flex: 1;
  min-width: 100px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.orders-stats .stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.orders-stats .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.order-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-id {
  font-size: 14px;
  color: var(--text-light);
}

.order-status {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-content {
  margin-bottom: 16px;
}

.order-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.order-info {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.order-date, .order-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-gray);
}

.order-date i, .order-guide i {
  font-size: 16px;
}

.order-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pay, .btn-cancel, .btn-review {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 80px;
}

.btn-pay {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.btn-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-cancel {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.btn-cancel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-review {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: white;
}

.btn-review:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.orders-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-icon {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 16px;
}

.orders-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.orders-empty p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.btn-book-now {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff4757 0%, #e53c4c 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

/* ?????? */
.order-detail-modal {
  position: fixed;
  top: var(--app-header-clearance);
  left: 0;
  right: 0;
  bottom: var(--app-tabbar-clearance);
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background: #e9ecef;
}

.btn-close i {
  font-size: 18px;
  color: var(--text-gray);
}

.modal-body {
  padding: 24px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row .label {
  font-size: 14px;
  color: var(--text-gray);
  min-width: 80px;
}

.detail-row .value {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  text-align: right;
  flex: 1;
}

.detail-row .value.price {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-footer {
  padding: 16px 24px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pay-large, .btn-cancel-large, .btn-close-modal {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 100px;
}

.btn-pay-large {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.btn-pay-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-cancel-large {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.btn-cancel-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-close-modal {
  background: #f8f9fa;
  color: var(--text-gray);
  border: 1px solid var(--border);
}

.btn-close-modal:hover {
  background: #e9ecef;
}

/* ????? */
@media (max-width: 480px) {
  .orders-container {
    padding: 16px;
  }
  
  .orders-filters {
    flex-direction: column;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .orders-stats {
    flex-direction: column;
  }
  
  .orders-stats .stat-item {
    min-width: auto;
  }
  
  .order-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding: 16px;
  }
}

/* ?????????? */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.service-card:active {
  transform: translateY(-2px) scale(1.01);
}

/* Keep each service card aligned to four readable rows on narrow screens. */
.service-card-copy {
  min-width: 0;
}

.service-card-line {
  min-width: 0;
  min-height: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ???????? */
.service-card .icon-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ?????? */
.lang-modal-overlay {
  position: fixed;
  top: var(--app-header-clearance);
  left: 0;
  width: 100vw;
  min-height: 0;
  height: auto;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 9999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lang-modal {
  background: white;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 24px;
  width: min(100%, 300px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - var(--app-header-clearance) - var(--app-tabbar-clearance) - 32px);
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.lang-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.lang-modal-title {
  font-size: 18px;
  font-weight: bold !important;
  margin: 0;
  line-height: 1.4;
}

.lang-title-line {
  display: block;
  margin: 2px 0;
  font-size: 18px;
  font-weight: bold !important;
}

.lang-title-line:nth-child(2) {
  color: #ff4757 !important;
  text-shadow: 0 1px 3px rgba(255, 71, 87, 0.4);
}

.lang-title-line:not(:nth-child(2)) {
  color: #1e3a8a !important;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #000000;
  background: white;
  text-align: left;
}

.lang-option:hover {
  background: #f8f9fa;
}

.lang-option.selected {
  background: #fff3f3;
  border-color: #ff4757;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.lang-option img {
  width: 24px;
  height: 18px;
  margin-right: 0;
  border-radius: 3px;
}

.lang-option .lang-code-badge {
  flex-basis: 24px;
  height: 24px;
}

.lang-option-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.lang-option-copy strong {
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.lang-check {
  position: relative;
  display: inline-flex;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border: 2px solid #d2d2d2;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-check.is-on {
  border-color: #ff4757;
  background: #ff4757;
  box-shadow: 0 3px 8px rgba(255, 71, 87, 0.28);
}

.lang-check.is-on::after {
  content: '';
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.lang-option:focus-visible,
.lang-modal-confirm:focus-visible {
  outline: 3px solid rgba(30, 64, 175, 0.4);
  outline-offset: 2px;
}

.lang-modal-confirm {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #ff4757;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

.lang-modal-confirm:hover {
  background: #e53c4c;
}

.lang-modal-confirm:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .lang-modal,
  .lang-option,
  .lang-check,
  .lang-modal-confirm {
    animation: none;
    transition: none;
  }
}

/* Compact centered return for selection dialogs (lang / city / gallery). */
.sg-dialog-return {
  display: flex;
  width: auto;
  min-width: 112px;
  max-width: 148px;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5cdc3;
  border-radius: 10px;
  background: #fff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.sg-dialog-return:hover { background: #f7f3ed; }
.sg-dialog-return:active { transform: scale(.98); }
.sg-dialog-return:focus-visible {
  outline: 3px solid rgba(30, 58, 138, .28);
  outline-offset: 2px;
}

/* ===== ?? AI ????? ===== */
.floating-ai-root { position: relative; }

.floating-ai-fab {
  position: fixed;
  /* ?????????????? body ?? max-width:430px?????????? */
  left: max(16px, calc(50% - 215px + 16px));
  bottom: 76px;  /* tabbar ? 60px + 16px ??????? */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff7a3d, #e85b20);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(232, 91, 32, .35);
  cursor: pointer;
  z-index: 200;  /* ?? tabbar ? 100 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.floating-ai-fab:active { transform: scale(.92); }
.floating-ai-fab-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #fff; }
.floating-ai-fab-emoji { display: block; line-height: 1; }
.floating-ai-title-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; flex-shrink: 0; }
.floating-ai-fab-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4757;
  border: 2px solid #fff;
}

.floating-ai-panel {
  position: fixed;
  left: max(8px, calc(50% - 215px + 8px));
  bottom: var(--app-tabbar-clearance);
  width: min(calc(100vw - 16px), 380px, 414px);
  max-width: calc(430px - 16px);
  height: min(62vh, 540px);
  max-height: calc(100dvh - var(--app-header-clearance) - var(--app-tabbar-clearance) - 16px);
  background: #f7f4ef;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  animation: floatingAiPop .18s ease-out;
}
@keyframes floatingAiPop {
  from { opacity: 0; transform: scale(.85) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.floating-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.floating-ai-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.floating-ai-title-emoji { font-size: 22px; line-height: 1; }
.floating-ai-title-text { font-size: 15px; font-weight: 800; color: #3c281d; line-height: 1.2; }
.floating-ai-title-sub { font-size: 11px; color: #777; margin-top: 2px; }
.floating-ai-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.floating-ai-select {
  border: 1px solid #e7c9b2;
  border-radius: 999px;
  background: #fff;
  color: #9d4a25;
  font-size: 12px;
  padding: 5px 8px;
  max-width: 120px;
}
.floating-ai-icon-btn {
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  color: #666;
  border-radius: 8px;
}
.floating-ai-icon-btn:hover { background: #f5f5f5; }

.floating-ai-disclaimer {
  margin: 8px 10px 0;
  background: #fff7ed;
  border: 1px solid #f1cfad;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: #6d4935;
  line-height: 1.55;
  flex-shrink: 0;
}

.floating-ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 4px;
  -webkit-overflow-scrolling: touch;
}
.floating-ai-empty {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  color: #555;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.floating-ai-msg { display: flex; margin: 8px 0; }
.floating-ai-msg.is-user { justify-content: flex-end; }
.floating-ai-msg.is-ai { justify-content: flex-start; }
.floating-ai-bubble {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  white-space: pre-wrap;
  word-break: break-word;
}
.floating-ai-msg.is-user .floating-ai-bubble { background: #e85b20; color: #fff; border-bottom-right-radius: 4px; }
.floating-ai-msg.is-ai .floating-ai-bubble { background: #fff; color: #333; border-bottom-left-radius: 4px; }
.floating-ai-bubble.is-error { background: #fff1f0; color: #c0341d; border: 1px solid #ffd3ce; }
.floating-ai-bubble.is-local { background: #f0f7ee; color: #3a5a3a; border: 1px solid #d6e8d2; }
.floating-ai-bubble.is-loading { color: #999; font-style: italic; }

.floating-ai-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 10px;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.floating-ai-chip {
  white-space: nowrap;
  border: 1px solid #e7c9b2;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  color: #9d4a25;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.floating-ai-chip:disabled { opacity: .5; }

.floating-ai-input {
  display: flex;
  gap: 8px;
  padding: 8px 10px 10px;
  background: #fff;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.floating-ai-input-field {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 9px 12px;
  font-size: 13px;
  min-width: 0;
}
.floating-ai-send {
  border: none;
  border-radius: 20px;
  background: #e85b20;
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.floating-ai-send:disabled { background: #f0a87e; cursor: not-allowed; }

/* ???? */
.floating-ai-settings-mask {
  position: fixed;
  top: var(--app-header-clearance); right: 0; bottom: var(--app-tabbar-clearance); left: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.floating-ai-settings {
  width: 100%;
  max-width: 380px;
  max-height: 86vh;
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: floatingAiPop .18s ease-out;
}
.floating-ai-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
.floating-ai-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}
.floating-ai-settings-row { margin-bottom: 14px; }
.floating-ai-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin: 6px 0 4px;
  font-weight: 600;
}
.floating-ai-key-row { display: flex; gap: 6px; align-items: center; }
.floating-ai-key-row .floating-ai-input-field { flex: 1; }
.floating-ai-disclaimer-small {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  margin-top: 8px;
  padding: 8px 10px;
  background: #f9f9f9;
  border-radius: 8px;
}
.floating-ai-settings-footer {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  justify-content: flex-end;
}
.floating-ai-btn-secondary {
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.floating-ai-btn-primary {
  border: none;
  background: #e85b20;
  color: #fff;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== AI consultation refresh: warm editorial hierarchy ===== */
.floating-ai-root {
  --ai-ink: #2f2925;
  --ai-muted: #776b63;
  --ai-paper: #fbf8f3;
  --ai-surface: #fffdf9;
  --ai-line: #eaded3;
  --ai-accent: #c65f36;
  --ai-accent-deep: #a94825;
  --ai-sage: #3f725d;
}

.floating-ai-fab {
  /* ponytail: same bottom-left on phone and desktop (was right on mobile) */
  left: max(16px, calc(50% - 215px + 16px));
  right: auto;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  background: var(--ai-surface);
  border: 1px solid var(--ai-line);
  box-shadow: 0 12px 28px rgba(82, 57, 43, .18), 0 0 0 5px rgba(255, 253, 249, .75);
}
.floating-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(82, 57, 43, .22), 0 0 0 5px rgba(255, 253, 249, .75); }
.floating-ai-fab:focus-visible,
.floating-ai-icon-btn:focus-visible,
.floating-ai-chip:focus-visible,
.floating-ai-send:focus-visible,
.floating-ai-select:focus-visible,
.floating-ai-input-field:focus-visible,
.floating-ai-btn-secondary:focus-visible,
.floating-ai-btn-primary:focus-visible {
  outline: 3px solid rgba(198, 95, 54, .32);
  outline-offset: 2px;
}
.floating-ai-fab-avatar { width: 46px; height: 46px; border-color: var(--ai-accent); }

.floating-ai-panel {
  left: 12px;
  right: 12px;
  bottom: var(--app-tabbar-clearance);
  width: auto;
  max-width: none;
  height: min(74dvh, 680px);
  max-height: calc(100dvh - var(--app-header-clearance) - var(--app-tabbar-clearance) - 16px);
  background: var(--ai-paper);
  border: 1px solid rgba(234, 222, 211, .95);
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 24px 58px rgba(65, 44, 33, .22), 0 4px 16px rgba(65, 44, 33, .08);
  transform-origin: bottom left;
}

.floating-ai-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px 16px 12px;
  background: var(--ai-surface);
  border-bottom: 1px solid var(--ai-line);
}
.floating-ai-title { gap: 11px; align-items: flex-start; padding-right: 52px; }
.floating-ai-title-avatar { width: 44px; height: 44px; border: 2px solid #f1dfd1; }
.floating-ai-title-eyebrow {
  margin: 1px 0 3px;
  color: var(--ai-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
}
.floating-ai-title-eyebrow,
.floating-ai-title-sub { display: none; }
.floating-ai-title-text {
  color: var(--ai-ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.floating-ai-header-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
}
.floating-ai-select {
  width: 100%;
  max-width: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e3cdbd;
  border-radius: 13px;
  background: #fffaf5;
  color: var(--ai-accent-deep);
  font-size: 13px;
  font-weight: 700;
}
.floating-ai-icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-muted);
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.floating-ai-icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.floating-ai-icon-btn:hover { background: #f7efe7; border-color: var(--ai-line); color: var(--ai-ink); }
.floating-ai-icon-btn:active { transform: scale(.97); }

.floating-ai-disclaimer {
  margin: 10px 14px 0;
  padding: 10px 12px;
  background: #f5eee6;
  border: 0;
  border-left: 3px solid #d4875d;
  border-radius: 10px;
  color: #655348;
  font-size: 12px;
  line-height: 1.5;
}

.floating-ai-body {
  padding: 12px 14px 8px;
  scrollbar-width: thin;
  scrollbar-color: #d9c9bb transparent;
  overscroll-behavior: contain;
}
.floating-ai-empty {
  padding: 16px;
  background: var(--ai-surface);
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  color: var(--ai-muted);
  font-size: 14px;
  line-height: 1.65;
  box-shadow: none;
}
.floating-ai-msg { margin: 10px 0; }
.floating-ai-bubble {
  max-width: 88%;
  padding: 11px 13px;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  color: var(--ai-ink);
  font-size: 14px;
  line-height: 1.62;
  box-shadow: 0 4px 14px rgba(82, 57, 43, .05);
}
.floating-ai-msg.is-user .floating-ai-bubble {
  background: var(--ai-accent);
  border-color: var(--ai-accent);
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 16px rgba(198, 95, 54, .18);
}
.floating-ai-msg.is-ai .floating-ai-bubble { background: var(--ai-surface); border-bottom-left-radius: 6px; }
.floating-ai-bubble.is-error {
  max-width: 100%;
  padding: 9px 12px;
  background: #fff6f1;
  border: 1px solid #f0c9b7;
  border-left: 3px solid #d46c48;
  color: #9a4c32;
  font-size: 12px;
  box-shadow: none;
}
.floating-ai-bubble.is-local { background: #f1f7f1; border-color: #cfe2d1; color: #365943; }
.floating-ai-bubble.is-loading {
  color: var(--ai-muted);
  background: #f4eee8;
  border-color: #e4d5c8;
  font-size: 13px;
  font-style: normal;
}
.floating-ai-bubble.is-loading::after {
  content: '…';
  display: inline-block;
  width: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  animation: floating-ai-loading-dots 1.2s steps(4, end) infinite;
}
@keyframes floating-ai-loading-dots {
  0% { width: 0; }
  33% { width: .4em; }
  66% { width: .8em; }
  100% { width: 1.2em; }
}
.floating-ai-richtext { display: block; }
.floating-ai-richtext p { margin: 0 0 8px; }
.floating-ai-richtext p:last-child { margin-bottom: 0; }
.floating-ai-richtext strong { color: var(--ai-ink); font-weight: 800; }
.floating-ai-richtext ul { margin: 4px 0 8px; padding-left: 20px; }
.floating-ai-richtext li { margin: 4px 0; padding-left: 2px; }
.floating-ai-richtext code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f2e9e1;
  color: var(--ai-accent-deep);
  font: 600 12px/1.4 inherit;
}
.floating-ai-numbered { margin: 6px 0; }
.floating-ai-numbered span { display: inline-block; min-width: 22px; color: var(--ai-accent-deep); font-weight: 800; }
.floating-ai-break { height: 4px; }

.floating-ai-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 126px;
  overflow-y: auto;
  padding: 10px 14px;
  background: #f4eee8;
  border-top: 1px solid var(--ai-line);
  border-bottom: 1px solid var(--ai-line);
  scrollbar-width: thin;
}
.floating-ai-chip {
  min-height: 42px;
  padding: 8px 10px;
  white-space: normal;
  text-align: left;
  border: 1px solid #e6d4c5;
  border-radius: 12px;
  background: var(--ai-surface);
  color: var(--ai-accent-deep);
  font-size: 12px;
  line-height: 1.35;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.floating-ai-chip:hover { background: #fff7ef; border-color: #d79a7c; }
.floating-ai-chip:active { transform: scale(.98); }

.floating-ai-input {
  gap: 10px;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--ai-surface);
  border-top: 0;
}
.floating-ai-input-field {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e3d7ce;
  border-radius: 14px;
  background: #fff;
  color: var(--ai-ink);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.floating-ai-input-field::placeholder { color: #a0948c; }
.floating-ai-input-field:focus { border-color: #d48a68; box-shadow: 0 0 0 4px rgba(198, 95, 54, .1); outline: none; }
.floating-ai-send {
  min-width: 78px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--ai-accent);
  font-size: 14px;
  transition: background-color .2s ease, transform .2s ease;
}
.floating-ai-send:hover { background: var(--ai-accent-deep); }
.floating-ai-send:active { transform: scale(.98); }
.floating-ai-send:disabled { background: #e4b29b; }

.floating-ai-settings-mask { align-items: flex-end; padding: 12px; background: rgba(47, 38, 31, .48); }
.floating-ai-settings { max-width: 420px; max-height: min(86dvh, 720px); border: 1px solid var(--ai-line); border-radius: 22px; box-shadow: 0 22px 60px rgba(47, 38, 31, .25); }
.floating-ai-settings-header { padding: 16px 18px; }
.floating-ai-settings-body { padding: 16px 18px; }
.floating-ai-settings-footer { padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
.floating-ai-btn-secondary,
.floating-ai-btn-primary { min-height: 44px; border-radius: 13px; }

@media (min-width: 700px) {
  .floating-ai-panel {
    left: max(16px, calc(50vw - 215px + 12px));
    right: auto;
    bottom: 76px;
    width: 406px;
    max-width: calc(100vw - 32px);
    transform-origin: bottom left;
  }
  .floating-ai-fab {
    left: max(16px, calc(50vw - 215px + 16px));
    right: auto;
    bottom: 76px;
  }
  .floating-ai-settings-mask { align-items: center; }
}

@media (max-width: 360px) {
  .floating-ai-panel { left: 8px; right: 8px; }
  .floating-ai-header { padding-inline: 12px; }
  .floating-ai-body { padding-inline: 10px; }
  .floating-ai-chips, .floating-ai-input { padding-inline: 10px; }
  .floating-ai-chip { font-size: 11px; }
  .floating-ai-send { min-width: 66px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-ai-panel, .floating-ai-settings { animation: none; }
  .floating-ai-fab, .floating-ai-icon-btn, .floating-ai-chip, .floating-ai-send { transition: none; }
}

/* ============== ??????? ============== */
/* ????"?????"?? */
.ranking-no-ads-pill {
  margin-left: auto;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef7ed;
  color: #347047;
  border: 1px solid #cfe0cc;
  white-space: nowrap;
  font-weight: 600;
}

/* ???? Tab ????/??/????? ??????????????? */
.ranking-category-bar {
  display: flex;
  gap: 0;
  margin: 8px 16px 6px;
  padding: 3px;
  background: #f1f4f0;
  border-radius: 10px;
  border: 1px solid #e2e8df;
}
.ranking-category-tab {
  flex: 1 1 0;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: #5a6b60;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ranking-category-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.28);
}

/* ???? Tab ? */
.ranking-tab-bar {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  margin: 4px 0 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ranking-tab-bar::-webkit-scrollbar { display: none; }

.ranking-tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6b60;
  background: #f1f4f0;
  border: 1px solid #e2e8df;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ranking-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.28);
}

/* ???? / ???? */
.ranking-dim-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #7a8a80;
  flex-wrap: wrap;
}
.ranking-fallback-tag {
  color: #b06a00;
  background: #fff4e0;
  border: 1px solid #f0d6a8;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
}

/* ???? */
.ranking-card {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: 210px;
  min-width: 210px;
  margin-right: 10px;
  vertical-align: top;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #f0f0f0;
}
.ranking-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ranking-card-img-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}
.ranking-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ?????????Top3 ??? */
.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 38px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.rank-badge.rank-1   { background: linear-gradient(135deg, #ffd700, #f5a623); }
.rank-badge.rank-2   { background: linear-gradient(135deg, #c0c0c0, #9aa0a6); }
.rank-badge.rank-3   { background: linear-gradient(135deg, #cd7f32, #a05a2c); }
.rank-badge.rank-other { background: rgba(60, 60, 60, 0.78); }

/* ?????????? */
.rank-recommend-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 71, 87, 0.88);
  backdrop-filter: blur(2px);
  z-index: 2;
}

.ranking-card-body {
  padding: 9px 10px 10px;
}
.ranking-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ?????? */
.ranking-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}
.keyword-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fff4e6;
  color: #c4570f;
  border: 1px solid #ffe0b8;
  white-space: nowrap;
  line-height: 1.4;
}
.keyword-tag:nth-child(2n) {
  background: #e8f4ff;
  color: #1a73c0;
  border-color: #cfe6ff;
}
.keyword-tag:nth-child(3n) {
  background: #f0eaff;
  color: #6c3fc0;
  border-color: #e0d4f5;
}

/* ?? / ??? */
.ranking-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #7a8a80;
  margin-bottom: 7px;
}
.ranking-card-meta .meta-rating {
  color: #ff7a00;
  font-weight: 700;
}
.ranking-card-meta .meta-divider {
  color: #ccc;
}

.ranking-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ranking-card-price {
  color: #ff4757;
  font-size: 13px;
  font-weight: bold;
}

/* ??????? */
.ranking-transparency {
  padding: 8px 16px 4px;
  font-size: 10px;
  color: #9aa6a0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ranking-transparency::before {
  content: "?";
  color: #347047;
  font-weight: bold;
}


/* ============== ????? (Taste redesign) ============== */
.cg-page {
  --cg-coral: #ff4757;
  --cg-navy: #1e3a8a;
  --cg-ink: #2a211c;
  --cg-muted: #7a6f67;
  --cg-cream: #f7f1ea;
  --cg-paper: #fffdfb;
  min-height: 100%;
  padding: 0 0 28px;
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(255, 71, 87, 0.10), transparent 55%),
    radial-gradient(90% 50% at 0% 0%, rgba(30, 58, 138, 0.07), transparent 50%),
    linear-gradient(180deg, #fbf7f2 0%, #ffffff 42%, #f8f4ef 100%);
}

.cg-head {
  padding: 18px 16px 12px;
}

.cg-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cg-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cg-coral);
  margin-bottom: 6px;
}

.cg-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--cg-ink);
  letter-spacing: -0.02em;
}

.cg-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cg-muted);
}

.cg-pill {
  flex: 0 0 auto;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #347047;
  background: #eef7ed;
  border: 1px solid #cfe0cc;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.cg-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 33, 28, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(42, 33, 28, 0.04);
  margin-bottom: 10px;
}

.cg-cat {
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #6d645c;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.28s cubic-bezier(0.32, 0.72, 0, 1),
              color 0.28s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.cg-cat.active {
  background: linear-gradient(165deg, #ff6b78, var(--cg-coral) 55%, #e53c4c);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 71, 87, 0.28);
  transform: translateY(-1px);
}

.cg-dims {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cg-dims::-webkit-scrollbar { display: none; }

.cg-dim {
  flex: 0 0 auto;
  border: 1px solid rgba(42, 33, 28, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: #6d645c;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.cg-dim.active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.22);
}

.cg-status {
  padding: 0 16px 6px;
  font-size: 11px;
  color: var(--cg-muted);
}

.cg-status-local {
  color: #b06a00;
  background: #fff4e0;
  border: 1px solid #f0d6a8;
  border-radius: 999px;
  padding: 3px 8px;
}

.cg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 16px 4px;
}

.cg-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--cg-paper);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(42, 33, 28, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 28px rgba(42, 33, 28, 0.06);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  animation: cgCardIn 0.45s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes cgCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.cg-card:active {
  transform: scale(0.985);
}

.cg-card-left {
  flex: 0 0 148px;
  width: 148px;
  display: flex;
  flex-direction: column;
  background: #f3ebe3;
  border-right: 1px solid rgba(42, 33, 28, 0.05);
}

.cg-card-media {
  position: relative;
  width: 148px;
  height: 120px;
  flex: 0 0 120px;
  background: #efe7de;
}

.cg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Solid chip on photo ? high contrast, no glass mush */
.cg-media-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: stretch;
  max-width: calc(100% - 16px);
  border-radius: 10px;
  overflow: hidden;
  background: #fffdfb;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(42, 33, 28, 0.22);
}

.cg-rank {
  position: static;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-align: center;
  box-shadow: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.cg-rank.rank-1 { background: linear-gradient(165deg, #ffd86b, #f0a820); color: #3d2a00; }
.cg-rank.rank-2 { background: linear-gradient(165deg, #eceff3, #9aa3ad); color: #2a3036; }
.cg-rank.rank-3 { background: linear-gradient(165deg, #e8a978, #b86a38); color: #fff; }
.cg-rank.rank-other { background: #1e3a8a; color: #fff; }

.cg-media-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  padding: 5px 9px;
  background: #fffdfb;
  border-left: 1px solid rgba(42, 33, 28, 0.08);
}

.cg-media-score-label {
  font-size: 10px;
  font-weight: 800;
  color: #5c534c;
  white-space: nowrap;
}

.cg-media-score-num {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #e11d48;
  white-space: nowrap;
}

.cg-card-name {
  padding: 8px 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--cg-ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.cg-card-body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cg-explain {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #9a3412;
  white-space: nowrap;
  overflow: hidden;
  padding: 5px 8px 5px 6px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 71, 87, 0.14), rgba(255, 180, 120, 0.10) 55%, rgba(255, 248, 240, 0.6));
  border: 1px solid rgba(255, 71, 87, 0.22);
  box-shadow:
    inset 3px 0 0 #ff4757,
    0 2px 8px rgba(255, 71, 87, 0.08);
  animation: cgExplainIn 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.cg-explain.is-comprehensive {
  color: #9a3412;
  background:
    linear-gradient(90deg, rgba(255, 71, 87, 0.14), rgba(255, 180, 120, 0.10) 55%, rgba(255, 248, 240, 0.6));
  border-color: rgba(255, 71, 87, 0.22);
  box-shadow:
    inset 3px 0 0 #ff4757,
    0 2px 8px rgba(255, 71, 87, 0.08);
}

.cg-explain.is-satisfaction {
  color: #9a3412;
}

.cg-explain.is-price,
.cg-explain.is-specialty {
  text-overflow: ellipsis;
}

.cg-explain-avg {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(165deg, #ff6b78, #ff4757 55%, #e53c4c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.32);
}

.cg-explain-avg em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.85;
}

.cg-explain-avg b {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.cg-explain-parts {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.cg-explain-parts i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #3d342e;
  letter-spacing: -0.02em;
}

.cg-explain-parts u {
  text-decoration: none;
  color: #8a7f76;
  margin-right: 2px;
  font-weight: 700;
}

@keyframes cgExplainIn {
  from {
    opacity: 0.4;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cg-feature {
  margin: 0;
  padding: 7px 9px;
  background: linear-gradient(165deg, #fff8f2, #fffdfb);
  border: 1px solid rgba(255, 71, 87, 0.10);
  border-radius: 12px;
  flex: 1;
}

.cg-feature-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #c45a3a;
  margin-bottom: 3px;
}

.cg-feature-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #4a3f38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cg-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.cg-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--cg-coral);
  line-height: 1.3;
  min-width: 0;
}

.cg-btn {
  flex: 0 0 auto;
  border: none;
  background: #1e3a8a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

.cg-note {
  margin: 14px 16px 0;
  font-size: 11px;
  color: #9aa6a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cg-note::before {
  content: "?";
  color: #347047;
  font-weight: 800;
}

.cg-festival-current {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 16px 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.cg-festival-list {
  display: grid;
  gap: 12px;
  padding: 4px 16px 8px;
}
.cg-festival-card {
  position: relative;
  padding: 0 16px 16px;
  border: 1px solid rgba(42, 33, 28, 0.08);
  border-radius: 18px;
  background: var(--cg-paper);
  box-shadow: 0 10px 28px rgba(42, 33, 28, 0.06);
}
.cg-festival-image {
  display: block;
  width: calc(100% + 32px);
  height: 150px;
  margin: 0 -16px 14px;
  object-fit: cover;
  background: #efe7de;
}
.cg-festival-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cg-festival-card h2 {
  margin: 0;
  color: var(--cg-ink);
  font-size: 18px;
  line-height: 1.3;
}
.cg-festival-stars {
  flex: 0 0 auto;
  color: #e11d48;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.cg-festival-date,
.cg-festival-location,
.cg-festival-content,
.cg-festival-note {
  margin: 9px 0 0;
  color: var(--cg-muted);
  font-size: 13px;
  line-height: 1.55;
}
.cg-festival-date strong,
.cg-festival-location strong,
.cg-festival-content strong {
  color: var(--cg-ink);
}
.cg-festival-note {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff4e0;
  color: #8a5b00;
  font-size: 11px;
}
.cg-festival-source {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 6px;
  color: #1e3a8a;
  font-size: 11px;
  text-decoration: underline;
}
.cg-festival-detail-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.cg-festival-detail-page {
  padding: 0 16px 24px;
}
.cg-festival-detail-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--cg-paper);
  border: 1px solid rgba(42, 33, 28, 0.08);
  box-shadow: 0 8px 24px rgba(42, 33, 28, 0.08);
}
.cg-festival-detail-toolbar {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 6px 12px;
  background: var(--cg-paper);
  border-bottom: 1px solid rgba(42, 33, 28, 0.08);
}
.cg-festival-detail-close {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cg-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.cg-festival-detail-close:hover,
.cg-festival-detail-close:focus-visible { background: #fff1ed; }
.cg-festival-detail-image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(170px, 30vw, 220px);
  object-fit: cover;
  background: #efe7de;
}
.cg-festival-detail-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 16px 24px;
}
.cg-festival-detail-body h2 { margin: 0 0 8px; color: var(--cg-ink); font-size: 22px; line-height: 1.25; }
.cg-festival-detail-section {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7f4;
  border: 1px solid rgba(255, 71, 87, 0.14);
}
.cg-festival-detail-section strong { display: block; color: var(--cg-ink); font-size: 13px; }
.cg-festival-detail-section p { margin: 5px 0 0; color: var(--cg-muted); font-size: 13px; line-height: 1.6; }

/* ============== ???????taste redesign? ============== */
.guide-detail-page {
  --gd-accent: #e11d48;
  --gd-accent-soft: #fff1f3;
  --gd-ink: #1c1917;
  --gd-muted: #78716c;
  --gd-line: rgba(28, 25, 23, 0.08);
  --gd-card: #ffffff;
  --gd-radius: 16px;
  background: #f1f0ee !important;
  padding-bottom: 24px;
}

.gd-card {
  background: var(--gd-card);
  border-radius: var(--gd-radius);
  border: 1px solid var(--gd-line);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.05);
  padding: 14px;
  margin-bottom: 10px;
}

.gd-hero {
  position: relative;
  margin-bottom: 10px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(28, 25, 23, 0.12);
}

.gd-hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gd-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(28, 25, 23, 0.42);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 16px;
}

.gd-hero-nav.prev { left: 10px; }
.gd-hero-nav.next { right: 10px; }

.gd-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.gd-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.gd-hero-dot.on {
  width: 18px;
  background: #fff;
}

.gd-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gd-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.18);
}

.gd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.gd-role {
  color: var(--gd-muted);
  font-size: 12px;
  font-weight: 650;
}

.gd-name {
  color: var(--gd-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gd-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gd-muted);
  font-size: 12px;
}

.gd-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--gd-accent-soft);
  color: #be123c;
}

.gd-chip.soft {
  background: #f5f5f4;
  color: #57534e;
}

.gd-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.gd-section-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--gd-accent-soft);
  color: var(--gd-accent);
  font-size: 15px;
  flex-shrink: 0;
}

.gd-section-title {
  font-weight: 800;
  color: var(--gd-ink);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.gd-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.gd-kv-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fafaf9;
  border: 1px solid var(--gd-line);
  min-width: 0;
}

.gd-kv-item b {
  display: block;
  font-size: 11px;
  color: var(--gd-muted);
  font-weight: 650;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}

.gd-kv-item span {
  font-size: 12px;
  color: var(--gd-ink);
  font-weight: 600;
  line-height: 1.35;
}

.gd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px solid var(--gd-line);
}

.gd-stat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border-radius: 12px;
  background: #fafaf9;
}

.gd-stat > div {
  min-width: 0;
}

.gd-stat i {
  color: var(--gd-accent);
  font-size: 16px;
  margin-top: 1px;
}

.gd-stat small {
  display: block;
  font-size: 10px;
  color: var(--gd-muted);
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.gd-stat strong {
  font-size: 12px;
  color: var(--gd-ink);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.gd-lang-pill {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #44403c;
  font-size: 11px;
  font-weight: 650;
  margin: 1px 2px 1px 0;
}

.gd-recs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.gd-rec {
  flex-shrink: 0;
  width: 88px;
  text-align: center;
}

.gd-rec img {
  width: 84px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 0 auto 5px;
  border: 1px solid var(--gd-line);
}

.gd-rec span {
  font-size: 11px;
  color: var(--gd-muted);
  line-height: 1.25;
}

.gd-intro {
  color: var(--gd-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ??????????? */
.gd-services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 100% -10%, rgba(225, 29, 72, 0.18), transparent 52%),
    radial-gradient(80% 70% at 0% 100%, rgba(251, 113, 133, 0.10), transparent 46%),
    linear-gradient(165deg, #fff1f3 0%, #ffffff 48%, #fffafb 100%);
  border: 1.5px solid rgba(225, 29, 72, 0.22);
  box-shadow:
    0 16px 36px rgba(225, 29, 72, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 16px 14px 14px;
}

.gd-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e11d48, #fb7185 55%, #fda4af);
}

.gd-services .gd-section-head {
  margin-bottom: 6px;
}

.gd-services .gd-section-ico {
  background: linear-gradient(145deg, #e11d48, #f43f5e);
  color: #fff;
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.28);
}

.gd-services-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gd-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gd-service-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(225, 29, 72, 0.10);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  animation: gd-tile-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gd-service-tile:nth-child(1) { animation-delay: 0.02s; }
.gd-service-tile:nth-child(2) { animation-delay: 0.06s; }
.gd-service-tile:nth-child(3) { animation-delay: 0.10s; }
.gd-service-tile:nth-child(4) { animation-delay: 0.14s; }
.gd-service-tile:nth-child(5) { animation-delay: 0.18s; }
.gd-service-tile:nth-child(6) { animation-delay: 0.22s; }

.gd-service-tile:active {
  transform: scale(0.98);
}

.gd-service-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #e11d48, #fb7185);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.28);
}

.gd-service-tile em {
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
  color: var(--gd-ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: normal;
}

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

@media (prefers-reduced-motion: reduce) {
  .gd-service-tile { animation: none; }
}

.gd-book-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.gd-book-row label {
  min-width: 56px;
  color: var(--gd-muted);
  font-size: 12px;
  font-weight: 650;
}

.gd-field {
  flex: 1;
  padding: 9px 11px;
  border: 1px solid var(--gd-line);
  border-radius: 12px;
  font-size: 12px;
  background: #fff;
  color: var(--gd-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.gd-field.readonly {
  background: #fafaf9;
  color: var(--gd-muted);
  cursor: default;
}

.gd-price {
  background: var(--gd-accent-soft);
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.gd-price strong {
  display: block;
  color: var(--gd-accent);
  font-size: 16px;
  font-weight: 800;
}

.gd-price small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #9f1239;
  line-height: 1.45;
}

@media (max-width: 390px) {
  /* ponytail: narrow screens only; avoid affecting desktop */
  .gd-price {
    padding: 10px 8px;
    margin-bottom: 10px;
  }

  .gd-price strong {
    font-size: 15px;
    line-height: 1.3;
  }

  .gd-price small {
    font-size: 10.5px;
    line-height: 1.4;
  }
}

.gd-cta {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #fff;
  font-weight: 800;
  font-size: clamp(12px, 3.5vw, 14px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: normal;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gd-cta-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.gd-cta-row .gd-cta {
  flex: 1;
  width: auto;
  min-width: 0;
}

.gd-cta-secondary {
  background: #fff;
  color: #1e3a8a;
  border: 1px solid #1e3a8a;
  box-shadow: none;
}

.gd-cta-back {
  margin-top: 8px;
  background: #fff;
  color: #57534e;
  border: 1px solid #e7e5e4;
  box-shadow: none;
  font-weight: 700;
}

.gd-cta:active {
  transform: scale(0.985);
}

.gd-cta:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
}

.gd-cta-note {
  text-align: center;
  color: var(--gd-muted);
  font-size: 11px;
  margin-top: 8px;
}

/* ===== Free Team / ?????? ===== */
.ft-page {
  --ft-ink: #2a1c14;
  --ft-muted: #7a6558;
  --ft-accent: #df5422;
  --ft-accent-deep: #c2410c;
  --ft-paper: #fff9f4;
  --ft-card: #ffffff;
  --ft-line: #eddfd4;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(239, 108, 35, 0.14), transparent 55%),
    linear-gradient(180deg, #fff7ef 0%, #f6efe8 42%, #f3ebe3 100%);
  padding-bottom: 28px;
  color: var(--ft-ink);
}
.ft-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 8px;
}
.ft-back {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  font-size: 18px;
  cursor: pointer;
  color: var(--ft-ink);
  flex-shrink: 0;
}
.ft-top-copy h1 {
  margin: 2px 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ft-top-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--ft-muted);
  line-height: 1.4;
}
.ft-banner {
  margin: 8px 16px 14px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(223,84,34,.12), rgba(255,255,255,.7) 55%),
    #fff;
  border: 1px solid rgba(223,84,34,.18);
  box-shadow: 0 10px 28px rgba(74, 42, 22, 0.06);
}
.ft-banner-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ft-accent-deep);
  margin-bottom: 6px;
}
.ft-banner-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ft-banner-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ft-muted);
}
.ft-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
}
.ft-tab {
  flex: 1;
  border: 1px solid var(--ft-line);
  background: rgba(255,255,255,.75);
  color: var(--ft-muted);
  border-radius: 12px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ft-tab.on {
  background: #2a1c14;
  border-color: #2a1c14;
  color: #fff8f2;
}
.ft-tab-n {
  display: inline-block;
  min-width: 16px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-size: 10px;
}
.ft-tab:not(.on) .ft-tab-n {
  background: #fff1e8;
  color: var(--ft-accent-deep);
}
.ft-toolbar {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.ft-chip {
  flex-shrink: 0;
  border: 1px solid var(--ft-line);
  background: rgba(255,255,255,.8);
  color: var(--ft-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ft-chip.on {
  background: #fff1e8;
  border-color: #f0c3a8;
  color: var(--ft-accent-deep);
}
.ft-publish-btn {
  height: 44px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef6c23, #db4818);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(219, 72, 24, 0.25);
  cursor: pointer;
}
.ft-empty {
  margin: 24px 16px;
  text-align: center;
  color: var(--ft-muted);
  font-size: 13px;
}
.ft-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ft-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(74, 42, 22, 0.05);
}
.ft-card.cancelled { opacity: 0.72; }
.ft-card-media {
  width: 96px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 100%;
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #2a1c14;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ft-card-media img,
.ft-card-media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ft-card-media-fallback {
  background:
    linear-gradient(145deg, rgba(239,108,35,.55), transparent 55%),
    linear-gradient(180deg, #3a261a, #1d120c);
}
.ft-card-date-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 4px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff8f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
.ft-photo-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ft-month {
  font-size: 10px;
  opacity: 0.9;
  font-weight: 600;
}
.ft-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.ft-weekday {
  font-size: 10px;
  margin-top: 1px;
  opacity: 0.8;
}
.ft-card-body { flex: 1; min-width: 0; }
.ft-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.ft-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4efe9;
  color: #6b5346;
}
.ft-tag.type { background: #fff1e8; color: #b84a1e; }
.ft-tag.cost.free { background: #edf7ee; color: #2f6b45; }
.ft-tag.cost.aa { background: #fff7e8; color: #9a6700; }
.ft-tag.cost.fee { background: #f3f0ff; color: #5b4b8a; }
.ft-tag.seats { background: #f1f5f9; color: #475569; }
.ft-tag.cancelled { background: #fee2e2; color: #b91c1c; }
.ft-card-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ft-card-line {
  font-size: 12px;
  color: var(--ft-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}
.ft-card-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: #5c4a3d;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ft-cost-note {
  font-size: 11px;
  color: #9a6700;
  background: #fff8e8;
  border: 1px solid #f3e0b5;
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ft-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ft-host {
  font-size: 11px;
  color: var(--ft-muted);
}
.ft-foot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ft-host-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--ft-accent-deep);
  background: #fff1e8;
  border-radius: 999px;
  padding: 6px 10px;
}
.ft-join-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--ft-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ft-join-btn.ghost {
  background: #fff;
  color: #7a3b22;
  border: 1px solid #e8c4b0;
}
.ft-join-btn:disabled {
  background: #c8bbb2;
  cursor: not-allowed;
}
.ft-manage {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #faf6f1;
  border: 1px solid var(--ft-line);
}
.ft-manage-title {
  font-size: 12px;
  font-weight: 700;
  color: #4a2f22;
  margin-bottom: 6px;
}
.ft-people { display: flex; flex-direction: column; gap: 6px; }
.ft-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #555;
}
.ft-manage-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.ft-mini {
  border: 1px solid var(--ft-line);
  background: #fff;
  color: #4a2f22;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ft-mini.danger {
  border-color: #f0c0c0;
  color: #b91c1c;
  background: #fff5f5;
}
.ft-photo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ft-photo-thumb,
.ft-photo-add {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f3eee7;
}
.ft-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ft-photo-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.ft-photo-add {
  border: 1px dashed #d2c2b4;
  background: #faf6f1;
  color: #9a7b66;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
}
.ft-photo-add:disabled { opacity: 0.5; }
.ft-gallery-mask {
  position: fixed;
  top: var(--app-header-clearance);
  right: 0;
  bottom: var(--app-tabbar-clearance);
  left: 0;
  z-index: 1400;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  overflow-y: auto;
}
.ft-gallery {
  width: min(100%, 430px);
  position: relative;
}
.ft-gallery img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #111;
}
.ft-gallery-close {
  position: absolute;
  top: -40px;
  right: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.ft-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  color: #fff;
  font-size: 13px;
}
.ft-gallery-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.ft-gallery-return {
  margin-top: 16px;
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.94);
}
.ft-sheet-mask {
  position: fixed;
  top: var(--app-header-clearance);
  bottom: var(--app-tabbar-clearance);
  left: max(0px, calc(50% - 215px));
  width: min(100vw, 430px);
  background: rgba(30, 18, 12, 0.45);
  z-index: 1320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  box-sizing: border-box;
}
.ft-sheet {
  width: 100%;
  max-width: 320px;
  max-height: 85vh;
  background: #fffaf6;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(42, 28, 20, 0.22);
  animation: ftSheetIn 0.22s ease;
}
.ft-sheet:not(.ft-sheet-sm) {
  max-width: 340px;
}
.ft-sheet-sm {
  max-width: 300px;
  max-height: 72vh;
}
@keyframes ftSheetIn {
  from { transform: translateY(10px) scale(.98); opacity: 0.6; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.ft-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--ft-line);
}
.ft-sheet-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.ft-sheet-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.ft-sheet-body {
  padding: 12px 16px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ft-sheet-body label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #5c4a3d;
  margin: 10px 0 6px;
}
.ft-sheet-body input,
.ft-sheet-body select,
.ft-sheet-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5d6c9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
}
.ft-sheet-body textarea { resize: vertical; }
.ft-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ft-legal {
  margin: 12px 0 4px;
  font-size: 11px;
  color: var(--ft-muted);
  line-height: 1.5;
}
.ft-join-summary {
  font-size: 13px;
  font-weight: 700;
  color: var(--ft-accent-deep);
  margin-bottom: 4px;
}
.ft-sheet-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ft-line);
  background: #fff;
}
.ft-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ft-btn.ghost {
  border: 1px solid #e5d6c9;
  background: #fff;
  color: #666;
}
.ft-btn.primary {
  border: none;
  background: linear-gradient(135deg, #ef6c23, #db4818);
  color: #fff;
}

/* ===== Messages / ??????? ===== */
.tabbar-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* 住宿页：组件运行时模板不承载样式，统一放在已加载的全局样式表中。 */
.stay-page {
  --stay-navy: var(--community-navy, #173b78);
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 16px 154px;
  background: var(--community-cream, #f7f2ea);
  color: var(--community-ink, #202328);
}

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

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

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

.stay-page button:focus-visible,
.stay-page input:focus-visible,
.stay-page select:focus-visible {
  outline: 3px solid rgba(23, 59, 120, 0.24);
  outline-offset: 2px;
}

.stay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stay-head-copy {
  min-width: 0;
}

.stay-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.stay-subtitle {
  margin: 3px 0 0;
  color: var(--community-muted, #6d7379);
  font-size: 12px;
}

.stay-back {
  min-width: 52px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--community-sand, #e6ddd2);
  border-radius: 12px;
  background: var(--community-paper, #fffefa);
  color: var(--stay-navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.stay-nationality {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--community-sand, #e6ddd2);
  border-radius: 12px;
  background: var(--community-paper, #fffefa);
}

.stay-nationality span {
  flex: 1;
  color: var(--community-muted, #6d7379);
  font-size: 11px;
}

.stay-nationality strong {
  color: var(--stay-navy);
  font-size: 12px;
}

.stay-nationality select {
  min-height: 44px;
  max-width: 130px;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 9px;
  background: #f2ece3;
  color: var(--community-ink, #202328);
  font-size: 12px;
  font-weight: 800;
}

.stay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--community-sand, #e6ddd2);
  border-radius: 14px;
  background: #efe7dc;
}

.stay-tab {
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3a4148;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.stay-tab.active {
  background: var(--community-paper, #fffefa);
  color: var(--stay-navy);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(55, 39, 26, 0.08);
}

.stay-search { display: none; }

.stay-book {
  margin: 0 0 14px;
  padding: 14px 14px 16px;
  border: 1px solid #e6ddd2;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 8px 22px rgba(64, 45, 30, .06);
}
.stay-book-country { margin: 0 0 10px; color: #8a9198; font-size: 12px; font-weight: 700; }
.stay-book-loc {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}
.stay-book-loc-city,
.stay-book-loc-search { min-width: 0; }
.stay-book-loc-city label { display: block; margin-bottom: 3px; color: #8a9198; font-size: 11px; }
.stay-book-loc-city select,
.stay-book-loc-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e6ddd2;
  border-radius: 12px;
  background: #fff;
  color: #202328;
  font-size: 14px;
  font-weight: 700;
}
.stay-book-loc-search input { font-weight: 500; }
.stay-book-locate {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 56px;
  min-height: 44px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #1aa39a;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.stay-book-locate.is-loading { opacity: .7; }
.stay-book-locate.is-done { color: #0f8f86; }
.stay-book-locate span[aria-hidden] { font-size: 18px; line-height: 1; }
.stay-book-locate-note {
  margin: 0 0 10px;
  color: #687078;
  font-size: 11px;
  line-height: 1.4;
}
.stay-book-dates {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid #efe8df;
  border-bottom: 1px solid #efe8df;
}
.stay-book-date { position: relative; min-width: 0; min-height: 48px; }
.stay-book-date span { display: block; color: #8a9198; font-size: 11px; }
.stay-book-date strong { display: block; margin-top: 4px; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.stay-book-date input[type="date"] {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  opacity: 0.01;
  background: transparent;
  color: transparent;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.stay-book-date-out { text-align: right; }
.stay-book-nights {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid #e6ddd2;
  border-radius: 999px;
  background: #f7f3ed;
  color: #3b261b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.stay-book-tips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.stay-book-tips::-webkit-scrollbar { display: none; }
.stay-book-tip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #f1ece5;
  color: #5f666d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.stay-book-tip.active { background: #ffe8dc; color: #c2410c; }
.stay-book-search {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff7a2f, #ff4d18);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 90, 31, .28);
}
.stay-book-search:active { transform: scale(.98); }
.stay-page .stay-bottom-return {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 20px 0 0;
  padding: 0 10px;
  border: 1px solid #cfdae9;
  border-radius: 10px;
  background: #f7faff;
  color: var(--stay-navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.stay-field {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.stay-field span,
.stay-needs-label {
  color: var(--community-muted, #6d7379);
  font-size: 10px;
  font-weight: 700;
}

.stay-field input,
.stay-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--community-sand, #e6ddd2);
  border-radius: 10px;
  background: var(--community-paper, #fffefa);
  color: var(--community-ink, #202328);
  font-size: 11px;
}

.stay-needs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stay-needs::-webkit-scrollbar {
  display: none;
}

.stay-needs-label {
  flex: 0 0 auto;
}

.stay-need {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--community-sand, #e6ddd2);
  border-radius: 999px;
  background: var(--community-paper, #fffefa);
  color: var(--community-muted, #6d7379);
  font-size: 11px;
  cursor: pointer;
}

.stay-need.active {
  border-color: var(--community-yellow, #f2c766);
  background: #fff5dc;
  color: #79520f;
  font-weight: 800;
}

.stay-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.stay-results-head h2 {
  margin: 0;
  font-size: 15px;
}

.stay-results-head span {
  color: var(--community-muted, #6d7379);
  font-size: 10px;
}

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

.stay-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  gap: 11px;
  overflow: hidden;
  padding: 9px;
  border: 1px solid var(--community-sand, #e6ddd2);
  border-radius: 15px;
  background: var(--community-paper, #fffefa);
  box-shadow: 0 4px 14px rgba(64, 45, 30, 0.045);
}

.stay-image {
  width: 104px;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  object-fit: cover;
  border-radius: 10px;
  background: #e7ded2;
}

.stay-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stay-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stay-operator {
  overflow: hidden;
  color: #9b6a1d;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--community-green, #2f7d67);
  font-size: 9px;
  font-weight: 800;
}

.stay-card h3 {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-location {
  overflow: hidden;
  color: var(--community-muted, #6d7379);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-facilities {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.stay-facility {
  padding: 3px 6px;
  border-radius: 5px;
  background: #f3eee7;
  color: #625950;
  font-size: 9px;
}

.stay-card-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
}

.stay-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #e33d4a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.stay-price small {
  display: block;
  color: var(--community-muted, #6d7379);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.stay-inquire {
  min-width: 76px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: var(--stay-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.stay-empty {
  padding: 22px 14px;
  border: 1px dashed #d1c4b5;
  border-radius: 14px;
  background: var(--community-paper, #fffefa);
  text-align: center;
}

.stay-empty strong {
  display: block;
  font-size: 14px;
}

.stay-empty p {
  margin: 6px 0 12px;
  color: var(--community-muted, #6d7379);
  font-size: 11px;
  line-height: 1.5;
}

.stay-empty-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stay-empty button {
  min-height: 44px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.stay-empty-switch {
  border: 0;
  background: var(--stay-navy);
  color: #fff;
}

.stay-empty-clear {
  border: 1px solid var(--community-sand, #e6ddd2);
  background: #fff;
  color: var(--stay-navy);
}

.stay-safety {
  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.5;
}

.stay-helpbar {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  max-width: 488px;
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 8px 8px 14px;
  border-radius: 15px;
  background: var(--stay-navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(23, 59, 120, 0.24);
}

.stay-helpbar span {
  font-size: 11px;
  line-height: 1.35;
}

.stay-helpbar strong {
  display: block;
  font-size: 13px;
}

.stay-helpbar button {
  min-width: 102px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--community-yellow, #f2c766);
  color: var(--stay-navy);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 370px) {
  .stay-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .stay-search {
    grid-template-columns: 1fr 1fr;
  }

  .stay-field:first-child {
    grid-column: 1 / -1;
  }

  .stay-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .stay-image {
    width: 92px;
  }

  .stay-helpbar {
    right: 12px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stay-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.msg-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff8f2 0%, #f5efe8 100%);
  padding: 14px 16px 28px;
  color: #2a1c14;
}
.msg-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 4px;
}
.msg-list-back,
.msg-manage-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #eddfd4;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: #3b261b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.msg-list-back { font-size: 18px; line-height: 1; }
.msg-manage-btn.on {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}
.msg-top-copy { min-width: 0; }
.msg-top h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.msg-top p { margin: 0 0 14px; font-size: 12px; color: #7a6558; }
.msg-filters { display: flex; gap: 6px; margin-bottom: 12px; }
.msg-filter {
  flex: 1;
  border: 1px solid #eddfd4;
  background: rgba(255,255,255,.8);
  border-radius: 999px;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #7a6558;
  cursor: pointer;
  min-height: 44px;
}
.msg-filter.on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.msg-sync-state,
.msg-sync-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.msg-sync-state { background: #fff; color: #5c4a3f; border: 1px solid #eddfd4; }
.msg-sync-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff4f2;
  color: #8d2924;
  border: 1px solid #efc5c1;
}
.msg-sync-error button {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}
.msg-empty { text-align: center; padding: 48px 12px; color: #7a6558; }
.msg-empty-ico { font-size: 42px; margin-bottom: 8px; }
.msg-empty h3 { margin: 0 0 6px; color: #2a1c14; }
.msg-empty p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.msg-empty-actions { display: flex; gap: 8px; justify-content: center; }
.msg-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: #1e3a8a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.msg-btn.ghost { background: #fff; color: #1e3a8a; border: 1px solid #1e3a8a; }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  text-align: left;
  border: 1px solid #eddfd4;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 6px 16px rgba(74,42,22,.05);
  overflow: hidden;
}
.msg-row.pinned { border-color: #f2c766; background: #fffdf6; }
.msg-row-main {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.msg-row.managing .msg-row-main { padding-bottom: 8px; }
.msg-row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}
.msg-act {
  min-height: 44px;
  border: 1px solid #e6ddd2;
  border-radius: 12px;
  background: #f7f3ed;
  color: #3b261b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.msg-act.pin { background: #fff5dc; border-color: #f2c766; color: #79520f; }
.msg-act.del { background: #fff1f0; border-color: #f0c2bd; color: #b42318; }
.msg-pin-mark { margin-right: 4px; }
.msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: #1e3a8a;
}
.msg-avatar.booking { background: #c2410c; }
.msg-avatar.activity { background: #0f766e; }
.msg-avatar.dm { background: #1e3a8a; }
.msg-row-body { flex: 1; min-width: 0; }
.msg-row-top { display: flex; justify-content: space-between; gap: 8px; }
.msg-row-top strong { font-size: 14px; }
.msg-row-top span { font-size: 11px; color: #999; white-space: nowrap; }
.msg-row-meta { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.msg-type {
  font-size: 10px;
  font-weight: 700;
  color: #78503b;
  background: #fff1e8;
  border-radius: 999px;
  padding: 2px 8px;
}
.msg-unread {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.msg-preview {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-sheet {
  position: fixed;
  /* ponytail: keep the global header and bottom tabbar reachable while the thread scrolls. */
  top: var(--app-header-clearance);
  right: 0;
  bottom: var(--app-tabbar-clearance);
  left: 0;
  z-index: 900;
  background: #f7f3ee;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
}
.msg-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1e3a8a;
  color: #fff;
}
.msg-back {
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}
.msg-sheet-head .msg-act {
  min-width: 44px;
}
.msg-sheet-titles { min-width: 0; }
.msg-sheet-titles strong { display: block; font-size: 15px; }
.msg-sheet-titles span { font-size: 11px; opacity: .85; }
.msg-bubble-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}
.msg-bubble-wrap { display: flex; margin-bottom: 12px; }
.msg-bubble-wrap.mine { justify-content: flex-end; }
.msg-bubble-wrap.system { justify-content: center; }
.msg-bubble {
  max-width: 78%;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.msg-bubble-wrap.mine .msg-bubble { background: #1e3a8a; color: #fff; }
.msg-bubble-wrap.system .msg-bubble {
  max-width: 92%;
  background: #fff7ed;
  color: #78503b;
  border: 1px solid #f0d7c2;
}
.msg-from { font-size: 11px; font-weight: 700; margin-bottom: 4px; color: #78503b; }
.msg-text { font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg-time { font-size: 10px; opacity: .7; margin-top: 4px; }
.msg-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eddfd4;
}
.msg-composer input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #e5d6c9;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 16px;
}
.msg-send {
  min-width: 48px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  background: #1e3a8a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.msg-send:disabled,
.msg-composer input:disabled {
  cursor: not-allowed;
  opacity: .52;
}
.msg-page button:focus-visible,
.msg-page input:focus-visible,
.msg-page a:focus-visible {
  outline: 3px solid rgba(30, 58, 138, .35);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .msg-page * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.msg-contact-tip {
  margin: 8px 0 4px;
  padding: 12px;
  border: 1px solid #e6ddd2;
  border-radius: 14px;
  background: #fff8f0;
  color: #3b261b;
}
.msg-contact-tip-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
}
.msg-contact-tip-desc {
  margin: 0 0 10px;
  color: #6d5a4c;
  font-size: 12px;
  line-height: 1.45;
}
.msg-contact-tip-list {
  display: grid;
  gap: 8px;
}
.msg-contact-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e6ddd2;
  border-radius: 12px;
  background: #fffefa;
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.msg-contact-chip span {
  flex: 0 0 auto;
  color: #8a9198;
  font-size: 12px;
  font-weight: 700;
}
.msg-contact-chip strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  word-break: break-all;
}
.msg-contact-tip-copied {
  margin: 8px 0 0;
  color: #0f8f86;
  font-size: 11px;
}
.ft-comments {
  margin-top: 18px;
  padding: 16px 4px 8px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--ft-line, #eddfd4);
}
.ft-cmt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1c1917;
}
.ft-cmt-sort {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px;
}
.ft-cmt-sort span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #444;
}
.ft-cmt-sort span:nth-child(1) { width: 14px; }
.ft-cmt-sort span:nth-child(2) { width: 10px; }
.ft-cmt-sort span:nth-child(3) { width: 16px; }

.ft-cmt-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ft-cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f0d7c4, #e2b99a);
  color: #5c3d2a;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
}
.ft-cmt-avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.ft-cmt-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f3f3;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}
.ft-cmt-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #222;
  outline: none;
  padding: 8px 0;
}
.ft-cmt-input-wrap input::placeholder { color: #aaa; }
.ft-cmt-send {
  border: none;
  border-radius: 999px;
  background: #df5422;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.ft-cmt-reply-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -4px 0 12px 46px;
  font-size: 12px;
  color: #888;
}
.ft-cmt-reply-tip button {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.ft-comment-empty {
  font-size: 13px;
  color: #999;
  padding: 8px 0 4px 46px;
}

.ft-cmt-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0 4px;
}
.ft-cmt-item.reply {
  padding: 10px 0 0;
  margin-top: 4px;
}
.ft-cmt-main { flex: 1; min-width: 0; }
.ft-cmt-name {
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
  margin-bottom: 4px;
}
.ft-cmt-text {
  font-size: 14px;
  line-height: 1.5;
  color: #111;
  word-break: break-word;
}
.ft-cmt-at { color: #df5422; font-weight: 600; }
.ft-cmt-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color: #aaa;
}
.ft-cmt-reply-btn {
  border: none;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.ft-cmt-like {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #bbb;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ft-cmt-like em {
  font-style: normal;
  font-size: 11px;
}
.ft-cmt-like.on { color: #e11d48; }

/* ===== Guides segment tabs (???????? / ??????) ===== */
.guides-seg {
  --gs-ink: #1c1917;
  --gs-muted: #7c6a5c;
  --gs-track: #f1e8df;
  --gs-line: #e4d5c8;
  --gs-active: #1e3a8a;
  --gs-active-deep: #172e70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 48%),
    var(--gs-track);
  border: 1px solid var(--gs-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.guides-seg-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--gs-muted);
  cursor: pointer;
  text-align: left;
  transition:
    color .28s cubic-bezier(.16,1,.3,1),
    background .28s cubic-bezier(.16,1,.3,1),
    border-color .28s cubic-bezier(.16,1,.3,1),
    box-shadow .28s cubic-bezier(.16,1,.3,1),
    transform .18s cubic-bezier(.16,1,.3,1);
  -webkit-tap-highlight-color: transparent;
}
.guides-seg-btn:active {
  transform: scale(.98);
}
.guides-seg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #c9b6a6;
  box-shadow: inset 0 0 0 1px rgba(80,54,36,.08);
  transition: background .28s cubic-bezier(.16,1,.3,1), box-shadow .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1);
}
.guides-seg-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.guides-seg-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
}
.guides-seg-hint {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  opacity: .78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ????? */
.guides-seg-btn:not(.on):hover {
  background: rgba(255,255,255,.45);
  color: #5c4a3d;
}
.guides-seg-btn:not(.on):hover .guides-seg-dot {
  background: #b79f8c;
}

/* ???? */
.guides-seg-btn.on {
  color: #fffaf4;
  background:
    linear-gradient(165deg, #2a4dad 0%, var(--gs-active) 52%, var(--gs-active-deep) 100%);
  border-color: rgba(23, 46, 112, .28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 8px 18px rgba(30, 58, 138, .22);
}
.guides-seg-btn.on .guides-seg-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .22);
  transform: scale(1.08);
}
.guides-seg-btn.on .guides-seg-hint {
  color: rgba(255,250,244,.78);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .guides-seg-btn,
  .guides-seg-dot {
    transition: none;
  }
}

/* ===== Free Team list compact + detail ===== */
.ft-card-compact {
  cursor: pointer;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s cubic-bezier(.16,1,.3,1);
}
.ft-card-compact:active {
  transform: scale(.985);
}
.ft-card-compact .ft-card-media {
  width: 104px;
  pointer-events: none;
}
.ft-card-compact .ft-card-title {
  font-size: 15px;
  margin: 4px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ft-card-compact .ft-card-line {
  font-size: 12px;
  margin-bottom: 8px;
}
.ft-card-foot.compact {
  margin-top: auto;
  padding-top: 2px;
}
.ft-card-go {
  font-size: 12px;
  font-weight: 700;
  color: var(--ft-accent-deep);
  white-space: nowrap;
}
.ft-card-compact .ft-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.ft-detail {
  position: fixed;
  top: var(--app-header-clearance);
  right: 0;
  bottom: var(--app-tabbar-clearance);
  left: 0;
  z-index: 1250;
  max-width: 430px;
  margin: 0 auto;
  background: #1a120e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ftDetailIn .28s cubic-bezier(.16,1,.3,1);
}
@keyframes ftDetailIn {
  from { transform: translateY(16px); opacity: .35; }
  to { transform: translateY(0); opacity: 1; }
}
.ft-detail-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px 8px;
  background: rgba(255,248,242,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ft-line);
  flex-shrink: 0;
}
.ft-detail-top-float {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(20,12,8,.55), rgba(20,12,8,0));
  backdrop-filter: none;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.ft-detail-top-float .ft-back {
  background: rgba(255,255,255,.88);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
}
.ft-detail-top-float .ft-top-copy h1,
.ft-detail-top-float .ft-top-copy p {
  color: #fffaf4;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.ft-detail-top .ft-top-copy h1 {
  font-size: 18px;
}
.ft-detail-top .ft-top-copy p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ??????????? */
.ft-detail-scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ft-detail-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}

.ft-detail-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1a120e;
}
.ft-detail-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: pointer;
}
.ft-detail-track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.ft-detail-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.ft-detail-slide img,
.ft-detail-slide .ft-card-media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ft-detail-gallery-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  pointer-events: none;
}
.ft-detail-date-pill,
.ft-detail-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20,12,8,.48);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff8f2;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.ft-detail-gallery-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.ft-detail-dots {
  display: flex;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(20,12,8,.35);
}
.ft-detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s ease;
}
.ft-detail-dot.on {
  background: #fff;
  transform: scale(1.25);
}

/* ????????????????? */
.ft-detail-sheet {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  padding: 10px 16px 110px;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, #fffaf4 0%, #fff8f2 40%, #f6efe8 100%);
  box-shadow: 0 -12px 28px rgba(20,12,8,.18);
  min-height: calc(100% - 36vh);
  animation: ftSheetLift .34s cubic-bezier(.16,1,.3,1);
}
@keyframes ftSheetLift {
  from { transform: translateY(18px); opacity: .7; }
  to { transform: translateY(0); opacity: 1; }
}
.ft-detail-handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: #e2d2c4;
}
.ft-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 6px;
}
.ft-detail-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.ft-detail-publish {
  flex-shrink: 0;
  margin-top: 7px;
  max-width: 48%;
  font-size: 11px;
  font-weight: 600;
  color: #9a8b7c;
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ft-detail-line,
.ft-detail-host {
  font-size: 13px;
  color: var(--ft-muted);
  margin-bottom: 4px;
}
.ft-detail-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ft-line);
}
.ft-detail-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #4a2f22;
}
.ft-detail-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3f2d22;
}

.ft-detail-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255,248,242,0), #fff8f2 28%, #fff8f2);
  border-top: 1px solid rgba(237,223,212,.8);
}
.ft-act {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform .16s cubic-bezier(.16,1,.3,1),
    background .2s cubic-bezier(.16,1,.3,1),
    color .2s cubic-bezier(.16,1,.3,1),
    border-color .2s cubic-bezier(.16,1,.3,1),
    box-shadow .2s cubic-bezier(.16,1,.3,1),
    opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ft-act:active { transform: scale(.98); }
.ft-act.sm {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}
.ft-act.primary {
  border: none;
  color: #fffaf4;
  background: linear-gradient(165deg, #ef6c23 0%, #df5422 48%, #c2410c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 10px 20px rgba(194, 65, 12, .24);
}
.ft-act.primary:hover {
  filter: brightness(1.03);
}
.ft-act.primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
  transform: none;
}
.ft-act.ghost {
  border: 1px solid #e2c7b4;
  background: #fff;
  color: #7a3b22;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.ft-act.ghost:hover {
  background: #fff4ec;
  border-color: #d9b39a;
}
.ft-detail-bar .ft-host-badge {
  flex: 1;
  text-align: center;
  align-self: center;
}

@media (prefers-reduced-motion: reduce) {
  .ft-card-compact,
  .ft-act,
  .ft-detail,
  .ft-detail-sheet,
  .ft-detail-dot { transition: none; animation: none; }
}

/* Free-team DM popup (same sheet size as join) */
.ft-dm-sheet.ft-sheet-sm,
.ft-dm-sheet {
  max-width: 300px;
  max-height: min(82vh, 640px);
  height: min(78vh, 580px);
  display: flex;
  flex-direction: column;
}
.ft-dm-head-copy {
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}
.ft-dm-head-copy h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.ft-dm-head-copy p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ft-muted, #7a6558);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ft-dm-bubbles {
  flex: 1 1 auto;
  min-height: 280px;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  background: #f4ebe3;
}
.ft-dm-row {
  display: flex;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.ft-dm-row.mine { justify-content: flex-end; }
.ft-dm-bubble {
  max-width: 82%;
  border-radius: 14px;
  padding: 9px 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(42,28,20,.06);
}
.ft-dm-row.mine .ft-dm-bubble {
  background: linear-gradient(165deg, #2a4dad, #1e3a8a);
  color: #fff;
}
.ft-dm-text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.ft-dm-time {
  margin-top: 4px;
  font-size: 10px;
  opacity: .65;
}
.ft-dm-composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ft-line, #eddfd4);
  background: #fffaf6;
}
.ft-dm-composer input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e5d6c9;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  background: #fff;
  outline: none;
}
.ft-dm-composer .ft-btn {
  flex: 0 0 auto;
  min-width: 64px;
  border-radius: 999px;
  padding: 0 14px;
}

/* 住宿页局部收口：避免重复信息与固定操作条遮挡内容。 */
main.stay-page {
  padding-bottom: 96px;
}

main.stay-page .stay-nationality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
}

main.stay-page .stay-nationality span {
  min-width: 0;
  color: var(--community-muted, #6d7379);
  font-size: 12px;
  line-height: 1.35;
}

main.stay-page .stay-nationality select {
  width: 120px;
  max-width: none;
}

main.stay-page .stay-helpbar {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 16px 0 0;
  padding: 12px;
}

main.stay-page .stay-helpbar span {
  min-width: 0;
  font-size: 12px;
}

main.stay-page .stay-helpbar button {
  min-width: 100px;
}

main.stay-page .stay-price-guide {
  display: grid;
  gap: 3px;
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #ead9ba;
  border-radius: 12px;
  background: #fff8e8;
  color: #6f5530;
}

main.stay-page .stay-price-guide strong {
  font-size: 12px;
  color: var(--stay-navy);
}

main.stay-page .stay-price-guide span {
  font-size: 10px;
  line-height: 1.5;
}

main.stay-page .stay-price-suffix {
  font-size: 10px;
  font-weight: 800;
}

main.stay-page .stay-card {
  scroll-margin-bottom: 96px;
}

/* Stay detail keeps the main tabbar; booking CTA lives on each room card. */
body.stay-detail-route .floating-ai-root {
  display: none !important;
}

.stay-detail-page {
  --stay-detail-navy: var(--community-navy, #173b78);
  --stay-detail-ink: var(--community-ink, #202328);
  --stay-detail-muted: #676d73;
  --stay-detail-line: var(--community-sand, #e6ddd2);
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  background: var(--community-cream, #f7f2ea);
  color: var(--stay-detail-ink);
}

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

.stay-detail-page button,
.stay-detail-page input,
.stay-detail-page select {
  font: inherit;
}

.stay-detail-page button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.stay-detail-page button:focus-visible,
.stay-detail-page input:focus-visible,
.stay-detail-page select:focus-visible {
  outline: 3px solid rgba(23, 59, 120, .26);
  outline-offset: 2px;
}

.stay-detail-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 56px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(230, 221, 210, .8);
  background: rgba(255, 254, 250, .96);
}

.stay-detail-nav > span {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.stay-detail-nav-btn {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--stay-detail-navy);
  font-size: 13px;
  font-weight: 800;
}

.stay-detail-nav-btn:first-child { justify-self: start; }
.stay-detail-nav-btn:last-child { justify-self: end; }
.stay-detail-nav-btn:hover { background: #f2ece3; }

.stay-detail-hero {
  position: relative;
  height: clamp(220px, 54vw, 288px);
  margin: 0;
  overflow: hidden;
  background: #ddd2c5;
}

.stay-detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-detail-hero figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(20, 25, 35, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.stay-detail-gallery {
  background: #fffefa;
}

.stay-gallery-stage {
  position: relative;
  height: clamp(230px, 56vw, 300px);
  overflow: hidden;
  background: #2a2f36;
}

.stay-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-gallery-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.stay-gallery-meta span,
.stay-gallery-meta strong {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(20, 25, 35, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.stay-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, .78);
  color: #1d2430;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(20, 25, 35, .18);
}

.stay-gallery-nav.prev { left: 10px; }
.stay-gallery-nav.next { right: 10px; }
.stay-gallery-nav:hover { background: #fff; }

.stay-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 12px 4px;
  overflow-x: auto;
  background: #fffefa;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stay-gallery-thumbs::-webkit-scrollbar { display: none; }

.stay-gallery-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #e8dfd4;
}

.stay-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-gallery-thumb.active {
  border-color: #f2c766;
  box-shadow: 0 0 0 1px rgba(242, 199, 102, .4);
}

.stay-gallery-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fffefa;
  border-bottom: 1px solid rgba(230, 221, 210, .9);
}

.stay-gallery-tabs::-webkit-scrollbar { display: none; }

.stay-gallery-tab {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid #e4d9cc;
  border-radius: 999px;
  background: #fff;
  color: #5d6570;
  white-space: nowrap;
}

.stay-gallery-tab strong {
  font-size: 13px;
  font-weight: 800;
}

.stay-gallery-tab span {
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 59, 120, .08);
  color: #173b78;
  font-size: 11px;
  font-weight: 800;
}

.stay-gallery-tab.active {
  border-color: #173b78;
  background: #173b78;
  color: #fff;
}

.stay-gallery-tab.active span {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.stay-gallery-tab:focus-visible {
  outline: 3px solid rgba(23, 59, 120, .28);
  outline-offset: 2px;
}

.stay-detail-nav-btn span {
  margin: 0 4px;
}

.stay-detail-content {
  display: grid;
  gap: 12px;
  padding: 12px 14px 18px;
}

.stay-detail-summary,
.stay-detail-steps,
.stay-detail-section,
.stay-detail-note {
  border: 1px solid var(--stay-detail-line);
  border-radius: 16px;
  background: var(--community-paper, #fffefa);
}

.stay-detail-summary { padding: 15px; }

.stay-detail-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stay-detail-eyebrow span {
  color: #986412;
  font-size: 10px;
  font-weight: 900;
}

.stay-detail-eyebrow strong,
.stay-room-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4f1;
  color: #286c5b;
  font-size: 9px;
  font-weight: 900;
}

.stay-detail-summary h1 {
  margin: 8px 0 4px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.stay-detail-location-link {
  min-height: 44px;
  margin: 0 0 8px -10px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--stay-detail-navy);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.stay-detail-location-link:hover { background: #f5efe7; }

.stay-detail-from {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--stay-detail-navy);
}

.stay-detail-from span { font-size: 11px; font-weight: 800; }
.stay-detail-from strong { font-size: 24px; line-height: 1; }
.stay-detail-from small { color: var(--stay-detail-muted); font-size: 10px; }

/* Preview template: cream gallery chrome + orange/navy summary card */
.stay-detail-summary.stay-detail-summary-v2 {
  padding: 16px 15px 15px;
}

.stay-detail-summary-v2 .stay-detail-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stay-detail-summary-v2 .stay-detail-eyebrow span {
  color: #c45a18;
  font-size: 12px;
  font-weight: 800;
}

.stay-detail-summary-v2 .stay-detail-eyebrow strong {
  padding: 5px 9px;
  border: 1px solid #9dcfb0;
  border-radius: 999px;
  background: #eef8f1;
  color: #2f7a4f;
  font-size: 11px;
  font-weight: 800;
}

.stay-detail-summary-v2 h1 {
  margin: 0;
  color: #171a1f;
  font-size: clamp(22px, 6vw, 26px);
  letter-spacing: -.03em;
  line-height: 1.25;
}

.stay-detail-intro {
  margin: 10px 0 0;
  color: #5d6570;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.stay-detail-address {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  color: #171a1f;
  font-size: 13px;
  line-height: 1.45;
}

.stay-detail-address span {
  color: #8a93a0;
  font-size: 12px;
  font-weight: 700;
}

.stay-detail-address strong {
  font-weight: 700;
}

.stay-detail-contact {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-radius: 14px;
}

.stay-book-mask {
  position: fixed;
  z-index: 140;
  top: var(--app-header-clearance);
  bottom: var(--app-tabbar-clearance);
  left: 50%;
  width: min(100vw, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background: rgba(28, 22, 16, .46);
  transform: translateX(-50%);
}

.stay-book-sheet {
  width: 100%;
  max-width: 340px;
  max-height: min(78vh, 520px);
  overflow: auto;
  padding: 16px 14px 12px;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 16px 40px rgba(30, 22, 14, .22);
}

.stay-book-sheet-head h2 {
  margin: 0;
  color: #171a1f;
  font-size: 17px;
  line-height: 1.3;
}

.stay-book-sheet-head p {
  margin: 6px 0 0;
  color: #8a93a0;
  font-size: 12px;
  line-height: 1.4;
}

.stay-book-contact {
  margin-top: 14px;
}

.stay-book-hint {
  margin: 12px 2px 0;
  color: #6d7379;
  font-size: 11px;
  line-height: 1.5;
}

.stay-book-toast {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #20252c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.stay-book-sheet .sg-dialog-return {
  margin-top: 16px;
}

.stay-detail-contact-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #ebe3d8;
  border-radius: 12px;
  background: #fff;
  color: #171a1f;
  text-align: left;
  text-decoration: none;
}

.stay-detail-contact-item span {
  flex: 0 0 auto;
  color: #8a93a0;
  font-size: 12px;
  font-weight: 700;
}

.stay-detail-contact-item strong {
  min-width: 0;
  overflow: hidden;
  color: #173b78;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-detail-summary-v2 .stay-detail-location-link {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5d6570;
  font-size: 13px;
  font-weight: 600;
}

.stay-detail-summary-v2 .stay-detail-location-link:hover {
  background: transparent;
}

.stay-detail-summary-v2 .stay-detail-location-link em {
  color: #173b78;
  font-style: normal;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stay-detail-pin {
  color: #8a93a0;
  font-size: 14px;
}

.stay-detail-summary-divider {
  height: 1px;
  margin: 14px 0 12px;
  background: #ebe3d8;
}

.stay-detail-summary-v2 .stay-detail-from {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: #c45a18;
}

.stay-detail-summary-v2 .stay-detail-from span {
  font-size: 13px;
  font-weight: 800;
}

.stay-detail-summary-v2 .stay-detail-from strong {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}

.stay-detail-summary-v2 .stay-detail-from small {
  color: #8a93a0;
  font-size: 12px;
  font-weight: 700;
}

.stay-detail-steps { padding: 13px 14px 14px; }

.stay-detail-steps h2,
.stay-detail-section h2,
.stay-detail-note h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.stay-detail-steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.stay-detail-steps li {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 70px;
  padding: 9px;
  border-radius: 11px;
  background: #f5efe7;
}

.stay-detail-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--stay-detail-navy);
  color: #fff;
  font-size: 10px;
}

.stay-detail-steps li span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.stay-detail-section { padding: 14px; }

.stay-detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.stay-detail-section-head > span {
  color: var(--stay-detail-muted);
  font-size: 10px;
}

.stay-detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.stay-detail-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.stay-detail-fields label > span {
  color: var(--stay-detail-muted);
  font-size: 10px;
  font-weight: 750;
}

.stay-detail-fields input,
.stay-detail-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid var(--stay-detail-line);
  border-radius: 10px;
  background: #fff;
  color: var(--stay-detail-ink);
  font-size: 11px;
}

.stay-rooms-section {
  display: grid;
  gap: 0;
}

.stay-rooms-note {
  margin: 0 0 12px;
  color: var(--stay-detail-muted);
  font-size: 11px;
  line-height: 1.45;
}

.stay-room-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px 0;
  border-top: 1px solid var(--stay-detail-line);
}

.stay-room-card.no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.stay-room-card:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.stay-room-card:last-child {
  padding-bottom: 2px;
}

.stay-room-card.selected .stay-room-book {
  box-shadow: 0 0 0 2px rgba(23, 59, 120, .18);
}

.stay-room-cover {
  position: relative;
  display: block;
  width: 104px;
  min-height: 0;
  height: auto;
  align-self: stretch;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #e8dfd4;
  cursor: pointer;
}

.stay-room-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-room-photo-count {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-width: 18px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(23, 26, 31, .62);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.stay-room-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.stay-room-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.stay-room-top h3 {
  margin: 0;
  min-width: 0;
  color: #171a1f;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.stay-rooms-section .stay-room-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid #9dcfb0;
  border-radius: 999px;
  background: #eef8f1;
  color: #2f7a4f;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.stay-room-specs {
  margin: 0;
  color: #6d7379;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.stay-room-facilities,
.stay-detail-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stay-room-facilities span,
.stay-detail-facilities span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #f3eee7;
  color: #5e574f;
  font-size: 11px;
  font-weight: 700;
}

.stay-room-foot {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.stay-room-prices {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 6px;
  row-gap: 2px;
  align-items: baseline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.stay-room-price {
  display: contents;
}

.stay-room-price span {
  color: #8a93a0;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.stay-room-price strong {
  display: inline-flex;
  align-items: baseline;
  justify-self: end;
  gap: 3px;
  color: #d92d20;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.stay-room-price strong small {
  color: #8a93a0;
  font-size: 10px;
  font-weight: 800;
}

.stay-room-book {
  flex: 0 0 auto;
  align-self: stretch;
  width: 44px;
  min-width: 44px;
  min-height: 0;
  height: auto;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: var(--stay-detail-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.stay-room-book:hover {
  background: #123060;
}

.stay-detail-location button,
.stay-detail-empty button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: var(--stay-detail-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.stay-detail-location button:hover,
.stay-detail-empty button:hover { background: #102f65; }

.stay-detail-section > h2 { margin-bottom: 11px; }

.stay-detail-location > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stay-detail-location p {
  margin: 0;
  color: var(--stay-detail-muted);
  font-size: 11px;
  line-height: 1.6;
}

.stay-detail-location p strong { color: var(--stay-detail-ink); font-size: 13px; }

.stay-detail-note {
  padding: 13px 14px;
  border-color: #ead9ba;
  background: #fff8e8;
}

.stay-detail-note h2 { color: var(--stay-detail-navy); }

.stay-detail-note p {
  margin: 7px 0 0;
  color: #66573e;
  font-size: 10px;
  line-height: 1.6;
}

.stay-detail-booking-bar {
  position: fixed;
  z-index: 120;
  left: 50%;
  right: auto;
  bottom: var(--app-tabbar-clearance);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  min-height: 78px;
  margin: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--stay-detail-line);
  background: rgba(255, 254, 250, .98);
  box-shadow: 0 -8px 24px rgba(46, 35, 25, .09);
  box-sizing: border-box;
  transform: translateX(-50%);
}

.stay-detail-booking-bar > div {
  display: grid;
  min-width: 0;
}

.stay-detail-booking-bar small,
.stay-detail-booking-bar span {
  color: var(--stay-detail-muted);
  font-size: 9px;
}

.stay-detail-booking-bar strong {
  display: block;
  overflow: hidden;
  color: var(--stay-detail-navy);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-detail-booking-bar button {
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--community-yellow, #f2c766);
  color: var(--stay-detail-navy);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.stay-detail-booking-bar button:hover { background: #edbd4d; }

.stay-detail-toast {
  position: fixed;
  z-index: 130;
  left: 50%;
  right: auto;
  bottom: calc(var(--app-tabbar-clearance) + 78px);
  width: min(calc(100% - 36px), 398px);
  max-width: calc(430px - 36px);
  margin: 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: #20252c;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  font-size: 11px;
  line-height: 1.5;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.stay-detail-empty {
  margin: 18px 14px;
  padding: 24px 18px;
  border: 1px dashed #cdbfaf;
  border-radius: 16px;
  background: #fffefa;
  text-align: center;
}

.stay-detail-empty h1 { margin: 0; font-size: 18px; }
.stay-detail-empty p { margin: 8px 0 14px; color: var(--stay-detail-muted); font-size: 12px; }

@media (max-width: 390px) {
  .stay-detail-content { padding-inline: 12px; }
  .stay-detail-fields { grid-template-columns: 1fr 1fr; }
  .stay-room-card { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
  .stay-room-card.no-photo { grid-template-columns: minmax(0, 1fr); }
  .stay-room-cover { width: 92px; height: auto; min-height: 0; }
  .stay-room-price strong { font-size: 14px; }
  .stay-room-book { width: 40px; min-width: 40px; min-height: 0; font-size: 11px; }
  .stay-detail-booking-bar { grid-template-columns: minmax(0, 1fr) 132px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .stay-detail-page * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
/* Home hero — 2em top / 1.5em bottom; left safe column; photo cover-crops the rest */
.home-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2em 16px 1.5em;
  overflow: hidden;
  background: #1a3a5c;
  box-sizing: border-box;
}
.home-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep subject on the right so left copy stays clear */
  object-position: 78% 42%;
  /* ponytail: nudge subject 1em right so EN title does not cover the face */
  transform: translateX(1em);
  z-index: 0;
  pointer-events: none;
}
.home-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 220px;
  color: #1f1510;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
}
.home-hero-brand {
  position: relative;
  margin: 0;
  font-size: clamp(16px, 4.8vw, 19px);
  line-height: 1.15;
  white-space: nowrap;
}
body[data-lang="ru"] .home-hero-brand {
  font-size: 14px;
  letter-spacing: 0;
}
body[data-lang="fr"] .home-hero-brand,
body[data-lang="ko"] .home-hero-brand,
body[data-lang="de"] .home-hero-brand,
body[data-lang="es"] .home-hero-brand {
  font-size: clamp(14px, 4.3vw, 17px);
  letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-brand.animate-color {
    animation: none;
    color: #ff4d9a;
  }
}
.home-hero-title {
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.home-hero-title-line {
  display: block;
}
body[data-lang="en"] .home-hero-title,
body[data-lang="ne"] .home-hero-title,
body[data-lang="de"] .home-hero-title {
  max-width: 100% !important;
}
body[data-lang="en"] .home-hero-title-line,
body[data-lang="ne"] .home-hero-title-line,
body[data-lang="de"] .home-hero-title-line {
  /* ponytail: each span is one visual line; shrink font instead of wrapping */
  white-space: nowrap;
}
.home-hero-intro-card {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home-hero-description {
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  text-align: left;
  /* ponytail: intro is already split into 3 <p> lines — keep each on one row */
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  color: #00ff00;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.65);
}
.home-hero-description.shine {
  animation: none;
  color: #00ff00;
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-description.shine {
    animation: none;
    color: #00ff00;
  }
}
.home-hero-description + .home-hero-description {
  margin-top: 4px;
}
.home-hero-actions {
  position: relative;
  z-index: 2;
  width: 169px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
}
.home-hero-actions-row {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 16px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.home-hero-primary,
.home-hero-secondary {
  width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.home-hero-primary {
  border: 0;
  background: linear-gradient(135deg, #ef6c23, #db4818);
  color: #fff;
  box-shadow: 0 9px 22px rgba(219, 72, 24, 0.27);
}
.home-hero-secondary {
  border: 1.5px solid #df5422;
  background: rgba(255, 252, 247, 0.96);
  color: #d84c1c;
}
.home-hero-apply {
  position: static;
  align-self: flex-end;
  flex: 0 1 169px;
  width: min(169px, calc(100% - 200px));
  min-width: 0;
  height: auto;
  min-height: 36px;
  white-space: normal;
  line-height: 1.15;
}

/* ponytail: hero metrics live in base rules — viewport media queries diverged phone vs desktop preview */

/* Assistant registration auth prompt: bounded on mobile and keyboard-friendly. */
.guide-auth-overlay {
  position: fixed;
  top: var(--app-header-clearance);
  right: 0;
  bottom: var(--app-tabbar-clearance);
  left: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  box-sizing: border-box;
}
.guide-auth-dialog {
  width: min(100%, 360px);
  max-height: min(78vh, 420px);
  overflow: auto;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.28);
  color: #1f2937;
  box-sizing: border-box;
}
.guide-auth-dialog h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}
.guide-auth-dialog p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.guide-auth-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.guide-auth-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
.guide-auth-button-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}
.guide-auth-button-primary {
  border: 0;
  background: #e5484d;
  color: #fff;
}
.guide-auth-cancel {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}
.guide-auth-confirm {
  border: 0;
  background: #e5484d;
  color: #fff;
}
.guide-auth-button:focus-visible {
  outline: 3px solid rgba(34, 84, 168, 0.38);
  outline-offset: 2px;
}
@media (max-width: 380px) {
  .guide-auth-overlay { padding: 14px; }
  .guide-auth-dialog { padding: 18px; }
  .guide-auth-actions { flex-direction: column-reverse; }
  .guide-auth-button { width: 100%; }
}

/* Home role note — one editorial story for role, trust and safety */
.home-role {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 16px 10px;
  box-sizing: border-box;
  background: #f7f4ef;
}
.home-role-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #102f43;
  border: 1px solid #0c2434;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(16, 36, 58, 0.12);
  color: #fff;
}
.home-role-head {
  display: grid;
  gap: 6px;
}
.home-role-voice-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  color: #fff;
}
.home-role-voice-label svg {
  color: #7dd5d8;
}
.home-role-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.home-role-proof span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}
.home-role-proof span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f07a3f;
}
.home-role-quote {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.home-role-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.home-role-scope-item {
  padding: 10px 12px;
}
.home-role-scope-item + .home-role-scope-item {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.home-role-scope-item h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.home-role-scope-item h3 svg {
  flex: 0 0 auto;
}
.home-role-scope-item.is-positive h3 svg {
  color: #7dd5d8;
}
.home-role-scope-item.is-boundary h3 svg {
  color: #f0a07a;
}
.home-role-scope-item ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-role-scope-item li {
  position: relative;
  padding-left: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}
.home-role-scope-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.home-role-safety {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 10px 10px 9px;
  border-radius: 12px;
  border-left: 3px solid #e86a2c;
  background: #f7f1e8;
  color: #333;
}
.home-role-safety-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-role-safety-title > svg {
  flex: 0 0 auto;
  color: #2f6f73;
}
.home-role-safety-title strong {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #333;
}
.home-role-safety-lines {
  display: grid;
  gap: 4px;
}
.home-role-safety-lines p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  color: #333;
}
.home-role-safety-warn {
  color: #e11d2e;
  font-weight: 700;
}
@media (max-width: 374px) {
  .home-role { padding-inline: 14px; }
  .home-role-scope { grid-template-columns: 1fr; }
  .home-role-scope-item + .home-role-scope-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}

/* ===== 全站反馈：对话框 / Toast（手机端） ===== */
.app-window-overlay {
  top: var(--app-header-clearance) !important;
  right: 0 !important;
  bottom: var(--app-tabbar-clearance) !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  z-index: 900 !important;
}

/* Keep every app window below the persistent header and above page content. */
.order-detail-modal,
.lang-modal-overlay,
.floating-ai-settings-mask,
.ft-gallery-mask,
.ft-sheet-mask,
.ft-detail,
.stay-book-mask,
.guide-auth-overlay,
.app-dialog-overlay {
  z-index: 900 !important;
  overflow-y: auto;
}

.app-dialog-overlay {
  position: fixed;
  top: var(--app-header-clearance);
  right: 0;
  bottom: var(--app-tabbar-clearance);
  left: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.48);
  box-sizing: border-box;
}

.app-dialog {
  width: min(92vw, 360px);
  max-height: min(85vh, 520px);
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
}

.app-dialog--scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-dialog-title {
  margin: 0 0 10px;
  color: #1c1917;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
}

.app-dialog-body {
  margin: 0 0 16px;
  color: #44403c;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
  text-align: center;
}

.app-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.app-dialog-btn {
  min-width: 88px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #d8dce3;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.app-dialog-btn:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.28);
  outline-offset: 2px;
}

.app-dialog-btn--primary {
  border-color: transparent;
  background: #ff4757;
  color: #fff;
}

.app-toast {
  position: fixed;
  z-index: 100001;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  animation: app-toast-in 0.2s ease-out both;
  pointer-events: none;
}

.app-toast.is-out {
  animation: app-toast-out 0.18s ease-in both;
}

@keyframes app-toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translateX(-50%); }
}

@keyframes app-toast-out {
  from { opacity: 1; transform: translateX(-50%); }
  to { opacity: 0; transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .app-toast,
  .app-toast.is-out {
    animation: none;
  }
}

/* ===== 登录 / 注册表单（手机端） ===== */
.auth-page {
  min-height: 100svh;
  padding: 12px 16px 28px;
  background: #f5f2ed;
}

.auth-page-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
}

.auth-page-title {
  margin: 16px 0 20px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.auth-page-subtitle {
  margin: -12px 0 20px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8dce3;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: #1f2937;
  box-sizing: border-box;
}

.auth-input:focus-visible {
  outline: 3px solid rgba(255, 71, 87, 0.28);
  outline-offset: 1px;
  border-color: #ff4757;
}

.auth-row-inline {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.auth-row-inline .auth-input {
  flex: 1;
  min-width: 0;
}

.auth-code-btn {
  flex: 0 1 auto;
  min-width: 96px;
  max-width: 44%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: #ff4757;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  touch-action: manipulation;
}

.auth-code-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-code-btn:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.28);
  outline-offset: 2px;
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff4757, #1e90ff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  touch-action: manipulation;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.28);
  outline-offset: 2px;
}

.auth-info {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #ff4757;
  border-radius: 8px;
  background: #fff7f8;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
}

.auth-footnote {
  margin-top: 16px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.auth-link-row {
  margin-top: 20px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.auth-link-row a {
  margin-left: 5px;
  color: #ff4757;
  text-decoration: none;
  cursor: pointer;
}
