:root {
  --ink: #142744;
  --ink-2: #26364d;
  --muted: #7b7069;
  --soft-muted: #a69a91;
  --teal: #2f98a7;
  --teal-deep: #1e7f90;
  --teal-soft: #dff2f3;
  --orange: #f7aa1f;
  --orange-deep: #9a4f00;
  --orange-soft: #fff0cc;
  --coral: #f1765f;
  --green: #62a578;
  --blue: #58a9d7;
  --purple: #8a6fb4;
  --paper: #fffdf9;
  --page: #fffaf3;
  --surface: rgba(255, 253, 249, 0.94);
  --surface-solid: #fffdf9;
  --line: #eadfd5;
  --line-strong: #ddcfc2;
  --shadow: 0 10px 26px rgba(76, 56, 38, 0.12), 0 2px 7px rgba(76, 56, 38, 0.06);
  --shadow-soft: 0 6px 18px rgba(76, 56, 38, 0.09);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 11px;
  --nav-h: 82px;
  --status-h: 46px;
  --safe-bottom: max(10px, env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: #f5f2ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(255,255,255,.96), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 88% 92%, rgba(255,255,255,.9), rgba(255,255,255,0) 30%),
    #f3f0eb;
  color: var(--ink);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

#app { width: 100%; height: 100dvh; display: grid; place-items: center; }

.phone-shell {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  height: min(920px, calc(100dvh - 18px));
  overflow: hidden;
  isolation: isolate;
  border: 9px solid rgba(255, 252, 246, .96);
  border-radius: 50px;
  background: var(--page);
  box-shadow:
    0 0 0 2px rgba(228, 217, 205, .72),
    0 20px 60px rgba(74, 55, 38, .16),
    inset 0 0 0 1px rgba(255,255,255,.92);
}
.phone-shell::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 8;
  border-radius: 39px;
  pointer-events: none;
  box-shadow: inset 0 0 22px rgba(143, 111, 76, .06);
}

.status-bar {
  position: absolute;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  height: var(--status-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 27px 6px;
  color: #101820;
  font-weight: 720;
  font-size: 16px;
  pointer-events: none;
}
.status-icons { display: flex; align-items: center; gap: 8px; }
.signal { display: flex; gap: 2px; align-items: flex-end; height: 13px; }
.signal i { width: 3px; border-radius: 3px; background: currentColor; }
.signal i:nth-child(1){height:5px}.signal i:nth-child(2){height:8px}.signal i:nth-child(3){height:11px}.signal i:nth-child(4){height:14px}
.wifi-icon { width: 18px; height: 14px; position: relative; overflow: hidden; }
.wifi-icon::before, .wifi-icon::after { content:""; position:absolute; left:50%; transform:translateX(-50%); border:3px solid currentColor; border-color: currentColor transparent transparent transparent; border-radius:50%; }
.wifi-icon::before { width:22px; height:22px; top:1px; }
.wifi-icon::after { width:12px; height:12px; top:7px; }
.battery { width: 25px; height: 12px; border: 1.7px solid currentColor; border-radius: 3px; position: relative; padding: 1.5px; }
.battery::before { content:""; display:block; height:100%; width:86%; border-radius:1px; background: currentColor; }
.battery::after { content:""; position:absolute; right:-3px; top:3px; width:2px; height:5px; border-radius:0 2px 2px 0; background: currentColor; opacity:.75; }

.scroll-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--page);
}
.scroll-view::-webkit-scrollbar { display: none; }
.page { min-height: 100%; padding: var(--status-h) 16px calc(var(--nav-h) + 23px); }
.page.full-bleed { padding-left: 0; padding-right: 0; }

.icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.icon svg { width: 100%; height: 100%; display: block; }

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-lockup { min-width: 0; }
.brand-title { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.05; font-weight: 830; letter-spacing: .02em; }
.brand-subtitle { margin-top: 4px; font-size: 12px; color: #40516b; letter-spacing: .01em; }
.paper-plane-mark { color: #187b9c; position: relative; transform: rotate(-4deg); }
.paper-plane-mark::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 22px;
  right: 15px;
  top: 18px;
  border-bottom: 2px dashed #2b91aa;
  border-radius: 50%;
  transform: rotate(10deg);
  opacity: .9;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.avatar-button, .icon-button {
  border: 0;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.avatar-button { width: 46px; height: 46px; border-radius: 50%; padding: 3px; }
.avatar-button img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.notification-dot { position:absolute; width:9px; height:9px; border-radius:50%; background:#fa4b4b; right:7px; top:6px; box-shadow:0 0 0 2px white; }

.hero-scenic {
  position: relative;
  margin: calc(var(--status-h) * -1) -16px 0;
  padding: calc(var(--status-h) + 19px) 19px 0;
  min-height: 286px;
  overflow: hidden;
  background:
    radial-gradient(circle at 51% 29%, rgba(255,248,191,.98) 0 20px, rgba(255,248,191,.35) 21px, transparent 46px),
    linear-gradient(180deg, #b9ebf5 0%, #e7f7f9 53%, #d7f2f5 70%, #fffaf3 100%);
}
.hero-scenic::after {
  content:"";
  position:absolute;
  right:-10px;
  bottom:0;
  width:73%;
  height:68%;
  background: url('./assets/hero-art.webp') right bottom / contain no-repeat;
  filter: saturate(.95) contrast(.98);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 22%, #000 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 22%, #000 48%, #000 100%);
  opacity:.98;
  pointer-events:none;
}
.hero-scenic::before {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:48px;
  background:linear-gradient(180deg, transparent, var(--page));
  z-index:1;
  pointer-events:none;
}
.hero-scenic > * { position: relative; z-index: 2; }
.hero-copy { margin-top: 32px; max-width: 75%; }
.hero-title { margin: 0; font-size: 27px; letter-spacing: .015em; line-height: 1.22; font-weight: 860; }
.hero-subtitle { margin: 9px 0 0; color: #415067; font-size: 14px; line-height: 1.5; }

.surface-card {
  background: var(--surface);
  border: 1px solid rgba(229, 218, 207, .78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card-pad { padding: 15px; }
.section { margin-top: 18px; }
.section-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 3px 10px; }
.section-title { margin:0; font-size:17px; font-weight:800; color:#241f1d; display:flex; align-items:center; gap:8px; }
.link-button { border:0; background:transparent; color:#766b65; display:flex; align-items:center; gap:3px; font-size:13px; cursor:pointer; padding:4px; }

.stats-overview {
  position: relative;
  z-index: 4;
  margin-top: -44px;
  padding: 14px 10px 12px;
}
.stats-heading { display:flex; justify-content:space-between; align-items:center; margin:0 2px 12px; font-size:15px; font-weight:770; }
.stats-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:0; }
.stat-item { text-align:center; padding:0 5px; min-width:0; position:relative; }
.stat-item + .stat-item::before { content:""; position:absolute; left:0; top:15px; bottom:3px; border-left:1px dashed #ddd0c4; }
.stat-emoji { font-size:24px; line-height:1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.08)); }
.stat-number { display:block; margin-top:7px; font-size:22px; line-height:1; font-weight:850; letter-spacing:.01em; color:#203653; }
.stat-label { display:block; margin-top:6px; color:#4b433e; font-size:10.5px; line-height:1.2; white-space:nowrap; }

.primary-gradient {
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 48%),
    linear-gradient(90deg, #ffd979, #ffb026 72%, #ffa920);
  box-shadow: 0 8px 17px rgba(228, 143, 17, .24), inset 0 -2px 0 rgba(238, 133, 0, .55);
  color: #6d3600;
  font-weight: 830;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.primary-gradient:hover { filter: brightness(1.02); }
.primary-gradient:active { transform: translateY(1px) scale(.995); box-shadow: 0 4px 9px rgba(228, 143, 17, .2), inset 0 -1px 0 rgba(238, 133, 0, .5); }
.big-add { width:100%; min-height:58px; margin-top:17px; display:flex; align-items:center; justify-content:center; gap:10px; font-size:20px; position:relative; overflow:hidden; }
.big-add::before { content:""; position:absolute; inset:0; background:linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.32) 49%, transparent 56%); transform:translateX(-110%); animation:buttonSheen 5.6s ease-in-out infinite; }
@keyframes buttonSheen { 0%,72%{transform:translateX(-110%)} 86%,100%{transform:translateX(110%)} }
.plus-disc { width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:white; background:#7b3a00; font-size:30px; line-height:1; font-weight:300; }

.quick-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-top:14px; }
.quick-tile { border:0; background:rgba(255,255,255,.88); border-radius:18px; min-height:80px; padding:10px 4px 8px; box-shadow:var(--shadow-soft); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:#2f2926; transition:transform .16s ease, box-shadow .16s ease; }
.quick-tile:active { transform:scale(.97); }
.quick-emoji { font-size:31px; line-height:1; filter:drop-shadow(0 3px 3px rgba(73,48,26,.1)); }
.quick-label { font-size:12px; white-space:nowrap; }

.recent-card { display:grid; grid-template-columns:44% 1fr; gap:13px; padding:11px; cursor:pointer; }
.recent-image { width:100%; height:123px; object-fit:cover; border-radius:15px; }
.recent-body { min-width:0; display:flex; flex-direction:column; padding:2px 0; }
.recent-title { font-size:17px; font-weight:820; line-height:1.35; margin:0; color:#201d1b; }
.meta-line { color:#766b64; font-size:11.5px; display:flex; align-items:center; gap:5px; flex-wrap:wrap; margin-top:6px; }
.recent-desc { font-size:11.5px; color:#6b625c; line-height:1.45; margin-top:auto; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.tags-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.tag { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:5px 10px; font-size:11.5px; line-height:1; border:1px solid transparent; }
.tag.coral { background:#ffe2d9; color:#bb4b39; }
.tag.blue { background:#dff2fb; color:#287ba4; }
.tag.green { background:#e4f3e5; color:#407f54; }
.tag.gold { background:#fff0d2; color:#ad6a14; }
.tag.purple { background:#eee6f8; color:#72519a; }
.tag.neutral { background:#f5f1eb; color:#6d635c; border-color:#e0d6cb; }

.guide-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.guide-card { position:relative; overflow:hidden; background:white; border:1px solid rgba(228,216,205,.78); border-radius:16px; box-shadow:var(--shadow-soft); cursor:pointer; min-width:0; }
.guide-card img { width:100%; height:82px; object-fit:cover; }
.guide-card-body { padding:8px 8px 9px; }
.guide-card h3 { margin:0; font-size:12.5px; line-height:1.35; font-weight:760; color:#2d2824; min-height:34px; }
.guide-author { margin-top:4px; font-size:10px; color:#887b72; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.guide-social { margin-top:7px; display:flex; gap:10px; align-items:center; color:#73675f; font-size:10px; }
.guide-social .heart { color:#ef5d5d; }
.bookmark-mini { position:absolute; right:7px; top:7px; width:24px; height:28px; border:0; border-radius:8px; background:rgba(255,255,255,.91); box-shadow:0 2px 7px rgba(0,0,0,.1); display:grid; place-items:center; cursor:pointer; z-index:2; }
.bookmark-mini.active { color:#f4a411; }

.bottom-nav {
  position: absolute;
  z-index: 80;
  left: 9px;
  right: 9px;
  bottom: calc(7px + var(--safe-bottom));
  height: var(--nav-h);
  padding: 8px 8px 12px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(228, 218, 208, .84);
  border-radius: 31px;
  box-shadow: 0 11px 32px rgba(71, 51, 33, .16);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  backdrop-filter: blur(18px);
}
.nav-item { border:0; background:transparent; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#413a35; font-size:11.5px; cursor:pointer; min-width:0; }
.nav-item .nav-icon { width:28px; height:28px; display:grid; place-items:center; }
.nav-item.active { color:var(--teal); font-weight:760; }
.nav-item.nav-add { transform:translateY(-10px); }
.nav-item.nav-add .nav-icon { width:52px; height:52px; border-radius:50%; color:white; background:linear-gradient(180deg,#59bdc6,#3195a4); box-shadow:0 8px 16px rgba(45,147,161,.27); }
.nav-item.nav-add .nav-label { margin-top:-2px; }
.home-indicator { position:absolute; z-index:90; left:50%; bottom:5px; transform:translateX(-50%); width:132px; height:5px; border-radius:8px; background:#000; pointer-events:none; }

/* Login */
.login-hero { min-height: 320px; }
.login-hero .brand { margin-top: 18px; }
.login-hero .hero-copy { margin-top: 30px; max-width:85%; }
.login-panel { position:relative; z-index:5; margin-top:-82px; padding:16px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--line); margin-bottom:14px; }
.auth-tab { position:relative; border:0; background:transparent; padding:9px 0 13px; font-size:18px; color:#564c45; cursor:pointer; }
.auth-tab.active { color:var(--teal); font-weight:800; }
.auth-tab.active::after { content:""; position:absolute; left:26%; right:26%; bottom:-1px; height:3px; background:var(--teal); border-radius:3px; }
.field-shell { min-height:52px; border:1px solid var(--line-strong); border-radius:13px; display:flex; align-items:center; gap:11px; padding:0 13px; background:rgba(255,255,255,.68); margin-top:11px; }
.field-shell input { border:0; outline:0; flex:1; min-width:0; color:#2c2825; background:transparent; font-size:15px; }
.field-shell input::placeholder { color:#9b9087; }
.field-icon { color:#6e625b; width:24px; height:24px; }
.password-toggle { border:0; background:transparent; color:#93877f; cursor:pointer; padding:4px; }
.forgot { display:block; border:0; background:transparent; color:var(--teal-deep); margin:8px 0 12px auto; cursor:pointer; font-size:13px; }
.login-submit { width:100%; height:54px; font-size:19px; }
.divider { display:flex; align-items:center; gap:13px; color:#9a8e84; font-size:12.5px; margin:18px 0 12px; }
.divider::before,.divider::after { content:""; height:1px; background:var(--line); flex:1; }
.social-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.social-button { height:48px; border:1px solid var(--line); background:white; border-radius:13px; box-shadow:var(--shadow-soft); display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; color:#594f49; font-size:13px; }
.social-logo { font-weight:900; font-size:19px; }
.social-logo.google { color:#4285f4; }
.social-logo.facebook { color:#1877f2; }
.social-logo.apple { color:#000; }
.features-card { margin-top:14px; padding:14px 13px 18px; }
.features-title { margin:0 0 13px; font-size:15px; color:#352f2b; font-weight:760; }
.features-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.feature-item { text-align:center; padding:0 7px; position:relative; }
.feature-item + .feature-item::before { content:""; position:absolute; left:0; top:7px; bottom:5px; border-left:1px solid var(--line); }
.feature-item .emoji { font-size:28px; }
.feature-item strong { display:block; margin-top:7px; font-size:12px; color:#302a26; }
.feature-item span { display:block; margin-top:4px; font-size:10px; line-height:1.35; color:#8a7e75; }
.signup-strip { margin-top:11px; min-height:54px; border-radius:15px; background:linear-gradient(90deg,#fffaf0,#fff6e8); display:flex; align-items:center; justify-content:center; gap:7px; color:#5a5049; font-size:13px; }
.signup-strip button { border:0; background:transparent; color:var(--teal-deep); font-weight:760; cursor:pointer; }

/* Generic top bar */
.topbar { height:57px; display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:6px; }
.topbar-title { text-align:center; font-size:19px; font-weight:820; color:#26211e; }
.topbar-action { border:0; border-radius:999px; min-height:38px; padding:0 14px; background:linear-gradient(180deg,#4fb3bd,#2d8c9a); color:white; box-shadow:0 6px 13px rgba(45,140,154,.22); cursor:pointer; font-weight:700; }
.back-button { border:0; background:transparent; width:42px; height:42px; display:grid; place-items:center; cursor:pointer; border-radius:50%; }
.back-button:hover { background:rgba(255,255,255,.65); }

/* Add record */
.page-add { background:linear-gradient(180deg,#fffefa,#fffaf3); }
.upload-grid { display:grid; grid-template-columns:2fr 1fr; gap:10px; }
.upload-card { min-height:158px; padding:12px; position:relative; overflow:hidden; }
.upload-card.small { min-height:158px; }
.upload-head { display:flex; align-items:center; gap:7px; font-weight:760; font-size:15px; color:#352f2b; }
.required { color:#f16d48; font-size:11px; }
.upload-zone { margin-top:10px; height:112px; border:1px dashed #d7c9bd; border-radius:15px; display:flex; align-items:center; justify-content:center; text-align:center; position:relative; overflow:hidden; background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(250,247,242,.62)); cursor:pointer; }
.upload-zone input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.upload-zone .upload-emoji { font-size:36px; }
.upload-zone strong { display:block; margin-top:5px; font-size:12.5px; }
.upload-zone small { display:block; color:#92867d; margin-top:5px; font-size:10.5px; }
.upload-preview { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.upload-overlay { position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%,rgba(0,0,0,.55)); display:flex; align-items:flex-end; justify-content:center; padding:8px; color:white; font-size:11px; }
.form-card { margin-top:11px; overflow:hidden; }
.form-row { min-height:58px; display:grid; grid-template-columns:30px 70px 1fr auto; align-items:center; gap:5px; padding:0 13px; }
.form-row + .form-row { border-top:1px solid var(--line); }
.form-row label { font-weight:720; color:#39312c; font-size:14px; }
.form-row input { min-width:0; border:0; outline:0; background:transparent; color:#514842; font-size:14px; }
.form-row input::placeholder { color:#aaa098; }
.count { color:#9e938a; font-size:11px; }
.map-box { margin-top:11px; padding:12px; }
.map-box-head { display:flex; align-items:center; gap:8px; margin-bottom:9px; }
.map-box-head strong { font-size:15px; }
.map-box-head span { color:#8b7f76; font-size:11.5px; flex:1; }
.secondary-pill { border:1px solid #eadbc5; background:#fff9ef; border-radius:999px; padding:7px 12px; color:#5c4d42; cursor:pointer; font-size:12px; }
.map-preview { height:76px; border-radius:12px; overflow:hidden; position:relative; cursor:pointer; }
.map-preview img { width:100%; height:100%; object-fit:cover; }
.map-pin-pulse { position:absolute; left:50%; top:47%; width:17px; height:17px; border-radius:50%; background:#f45e3f; border:3px solid white; transform:translate(-50%,-50%); box-shadow:0 0 0 0 rgba(244,94,63,.45); animation:pinPulse 2.2s infinite; }
@keyframes pinPulse { 0%{box-shadow:0 0 0 0 rgba(244,94,63,.4)}70%{box-shadow:0 0 0 12px rgba(244,94,63,0)}100%{box-shadow:0 0 0 0 rgba(244,94,63,0)} }
.textarea-card { margin-top:11px; padding:13px; }
.textarea-head { display:flex; align-items:center; gap:8px; font-weight:740; font-size:14px; }
.textarea-card textarea { width:100%; min-height:92px; resize:vertical; border:0; outline:0; background:transparent; color:#524943; line-height:1.6; padding:9px 0 0; }
.textarea-count { text-align:right; color:#a09389; font-size:11px; }
.choice-card { margin-top:11px; padding:12px; }
.choice-head { display:flex; align-items:center; gap:8px; font-weight:760; font-size:14px; margin-bottom:10px; }
.mood-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.mood-choice { border:1px solid var(--line); background:white; border-radius:14px; min-height:58px; display:flex; align-items:center; justify-content:center; gap:7px; cursor:pointer; font-size:12px; }
.mood-choice .mood-emoji { font-size:25px; }
.mood-choice.active { border-color:#f4a30a; box-shadow:inset 0 0 0 1px #f4a30a; background:#fffaf0; }
.tag-choice-grid { display:flex; flex-wrap:wrap; gap:8px; }
.tag-choice { border:1px solid transparent; cursor:pointer; }
.tag-choice.active { box-shadow:0 0 0 2px rgba(44,151,166,.22); }
.custom-tag { border:1px dashed #bdb0a6; background:transparent; color:#5f554f; }
.publish-button { width:100%; height:57px; margin-top:14px; font-size:18px; }

/* Trip detail */
.page-trip { padding-top:0; background:#fffaf3; }
.trip-hero { position:relative; height:290px; overflow:hidden; }
.trip-hero img { width:100%; height:100%; object-fit:cover; }
.trip-hero::after { content:""; position:absolute; inset:auto 0 0; height:80px; background:linear-gradient(180deg,transparent,rgba(0,0,0,.05)); }
.trip-floating-back, .trip-floating-menu { position:absolute; z-index:4; top:calc(var(--status-h) + 16px); border:0; width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,.92); display:grid; place-items:center; box-shadow:var(--shadow-soft); cursor:pointer; }
.trip-floating-back { left:18px; }
.trip-floating-menu { right:18px; }
.trip-detail-panel { position:relative; z-index:5; margin-top:-35px; border-radius:30px 30px 0 0; background:var(--page); padding:22px 18px 8px; }
.trip-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.trip-title-row h1 { margin:0; color:#211e1c; font-size:24px; line-height:1.25; font-weight:860; }
.status-pill { border-radius:999px; background:#e5f4ef; color:#358b80; padding:8px 12px; font-size:12px; white-space:nowrap; display:flex; gap:5px; align-items:center; }
.trip-meta { margin-top:10px; display:flex; gap:12px; flex-wrap:wrap; color:#766b64; font-size:12px; }
.gallery-strip { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; margin-top:15px; }
.gallery-thumb { height:69px; border-radius:12px; overflow:hidden; cursor:pointer; position:relative; }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.gallery-thumb.selected { box-shadow:0 0 0 3px rgba(48,154,169,.42); }
.trip-section { margin-top:18px; }
.trip-section h2 { margin:0 0 9px; font-size:15px; display:flex; align-items:center; gap:8px; color:#292421; }
.trip-story { margin:0; color:#4f4640; font-size:13.5px; line-height:1.72; white-space:pre-line; }
.location-card { display:grid; grid-template-columns:1fr 47%; min-height:118px; overflow:hidden; margin-top:15px; }
.location-copy { padding:13px; }
.location-copy small { display:flex; align-items:center; gap:5px; color:#8b7e75; }
.location-copy strong { display:block; margin-top:7px; font-size:17px; }
.location-copy p { margin:7px 0 0; color:#766b64; font-size:11.5px; }
.location-copy button { border:0; background:transparent; color:var(--teal-deep); padding:8px 0 0; font-size:12px; cursor:pointer; }
.location-map { min-height:118px; position:relative; overflow:hidden; }
.location-map img { width:100%; height:100%; object-fit:cover; }
.action-bar { margin-top:14px; min-height:62px; display:grid; grid-template-columns:repeat(3,1fr); align-items:center; }
.action-button { border:0; background:transparent; min-height:38px; display:flex; align-items:center; justify-content:center; gap:8px; color:#443c37; cursor:pointer; }
.action-button + .action-button { border-left:1px solid var(--line); }
.action-button.active { color:#e15353; }

/* Explore */
.page-explore { padding-top:calc(var(--status-h) + 16px); }
.explore-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.search-box { margin-top:20px; height:56px; display:flex; align-items:center; gap:10px; padding:0 14px; }
.search-box input { border:0; outline:0; flex:1; min-width:0; background:transparent; font-size:15px; color:#4c433d; }
.search-box input::placeholder { color:#9e938c; }
.filter-icon-button { border:0; background:transparent; width:40px; border-left:1px solid var(--line); padding-left:13px; cursor:pointer; }
.filter-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.filter-chip { border:1px solid var(--line); background:rgba(255,255,255,.78); border-radius:999px; padding:8px 13px; color:#4c433e; font-size:12px; cursor:pointer; }
.filter-chip.active { border-color:transparent; color:white; background:linear-gradient(180deg,#43a9b3,#278b99); }
.hot-tags { display:flex; flex-wrap:wrap; gap:9px; }
.hot-tag { border:0; background:white; border-radius:999px; padding:10px 15px; box-shadow:var(--shadow-soft); display:flex; align-items:center; gap:7px; cursor:pointer; font-size:13px; }
.nearby-banner { min-height:104px; padding:15px; display:grid; grid-template-columns:47% 1fr; overflow:hidden; position:relative; }
.nearby-banner::after { content:""; position:absolute; right:0; top:0; width:58%; height:100%; background:url('./assets/add-map.webp') center / cover no-repeat; opacity:.82; -webkit-mask-image:linear-gradient(90deg,transparent,#000 28%); mask-image:linear-gradient(90deg,transparent,#000 28%); }
.nearby-copy { position:relative; z-index:2; }
.nearby-copy strong { font-size:16px; }
.nearby-copy p { margin:6px 0 10px; font-size:11px; color:#786c64; line-height:1.4; }
.teal-button { border:0; background:linear-gradient(180deg,#43aeb8,#258a98); color:white; border-radius:999px; padding:9px 14px; box-shadow:0 5px 12px rgba(38,138,152,.23); cursor:pointer; font-size:12px; font-weight:720; }
.explore-grid .guide-card img { height:94px; }
.explore-grid .guide-card h3 { font-size:12px; min-height:32px; }
.explore-grid .guide-card { min-height:198px; }

/* Guide detail */
.page-guide { padding-top:calc(var(--status-h) + 7px); }
.guide-hero-card { display:grid; grid-template-columns:47% 1fr; gap:13px; padding:0; overflow:hidden; }
.guide-hero-card > img { width:100%; height:154px; object-fit:cover; }
.guide-hero-copy { padding:15px 13px 10px 0; }
.guide-hero-copy h1 { margin:0; font-size:21px; line-height:1.3; color:#221e1b; }
.guide-hero-copy p { margin:5px 0 0; color:#81756d; font-size:12px; line-height:1.5; }
.author-line { margin-top:11px; display:flex; align-items:center; gap:7px; color:#756a63; font-size:11px; }
.author-line img { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.guide-action-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px; }
.guide-action { min-height:55px; border:1px solid var(--line); background:white; border-radius:999px; box-shadow:var(--shadow-soft); display:flex; justify-content:center; align-items:center; gap:9px; cursor:pointer; font-size:15px; }
.guide-action.like { background:linear-gradient(90deg,#ffd878,#ffae24); color:white; border:0; font-weight:760; }
.guide-action.active { color:#e65353; }
.metrics-card { margin-top:12px; padding:11px 6px; display:grid; grid-template-columns:repeat(4,1fr); }
.metric { text-align:center; position:relative; }
.metric + .metric::before { content:""; position:absolute; left:0; top:4px; bottom:4px; border-left:1px solid var(--line); }
.metric span { display:block; font-size:10px; color:#82766e; }
.metric strong { display:block; margin-top:3px; font-size:16px; color:#203653; }
.reco-row { margin-top:10px; min-height:105px; display:grid; grid-template-columns:42px 1fr minmax(0, 55%); align-items:center; gap:10px; padding:11px; }
.reco-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; font-size:25px; background:#f2faf6; }
.reco-copy strong { display:block; font-size:15px; color:#2c2724; }
.reco-copy p { margin:5px 0 0; color:#7e726a; font-size:10.5px; line-height:1.4; }
.reco-images { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; min-width:0; }
.reco-images img { width:100%; height:55px; object-fit:cover; border-radius:9px; }
.notice-row { margin-top:10px; padding:12px; display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:10px; }
.notice-mini-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.notice-mini { width:54px; height:54px; border:1px solid var(--line); border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:9px; color:#6e625a; background:white; }
.notice-mini .emoji { font-size:22px; }
.disabled-comment { margin-top:10px; min-height:62px; padding:13px; background:linear-gradient(90deg,#fff8e8,#fff3d7); display:flex; align-items:center; justify-content:space-between; color:#9a8a7d; }

/* Map */
.page-map { padding-top:var(--status-h); }
.map-hero { position:relative; margin:calc(var(--status-h) * -1) -16px 0; padding:calc(var(--status-h) + 18px) 18px 20px; background:linear-gradient(180deg,#bdebf5,#e7f7f9 65%,#fffaf3); overflow:hidden; }
.map-hero::after { content:""; position:absolute; right:-8px; top:88px; width:63%; height:180px; background:url('./assets/hero-art-profile.webp') right top / contain no-repeat; -webkit-mask-image:linear-gradient(90deg,transparent,#000 20%); mask-image:linear-gradient(90deg,transparent,#000 20%); opacity:.96; }
.map-hero > * { position:relative; z-index:2; }
.map-title-copy { margin-top:28px; }
.map-title-copy h1 { margin:0; font-size:26px; }
.map-title-copy p { margin:8px 0 0; color:#425066; font-size:13px; }
.map-stats { margin-top:22px; display:grid; grid-template-columns:repeat(3,1fr); padding:14px 9px; }
.map-stat { text-align:center; position:relative; }
.map-stat + .map-stat::before { content:""; position:absolute; left:0; top:5px; bottom:5px; border-left:1px solid var(--line); }
.map-stat .emoji { font-size:26px; }
.map-stat strong { font-size:24px; display:block; margin-top:4px; }
.map-stat small { display:block; color:#5c514b; margin-top:3px; font-size:10px; }
.world-map-card { margin-top:12px; position:relative; height:278px; overflow:hidden; border:5px solid rgba(255,255,255,.9); border-radius:24px; box-shadow:var(--shadow-soft); background:#dff3f2; }
.world-map-card img { width:100%; height:100%; object-fit:cover; }
.map-hotspot { position:absolute; width:42px; height:55px; border:0; background:transparent; cursor:pointer; border-radius:50%; }
.map-hotspot:focus-visible { outline:3px solid rgba(47,152,167,.75); }
.map-tip { margin-top:9px; padding:10px 13px; border-radius:12px; background:#fff3dd; color:#765e46; font-size:11px; text-align:center; }
.date-scroller { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding-bottom:4px; }
.date-scroller::-webkit-scrollbar { display:none; }
.date-chip { flex:0 0 72px; height:58px; border:1px solid var(--line); border-radius:14px; background:white; box-shadow:var(--shadow-soft); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:11px; color:#6d625b; }
.date-chip strong { font-size:15px; color:#302a26; }
.date-chip.active { border-color:var(--teal); box-shadow:inset 0 0 0 1px var(--teal), var(--shadow-soft); }
.timeline { margin-top:9px; overflow:hidden; }
.timeline-row { min-height:91px; display:grid; grid-template-columns:56px 94px 1fr 46px; gap:8px; align-items:center; padding:10px 11px; position:relative; cursor:pointer; }
.timeline-row + .timeline-row { border-top:1px solid var(--line); }
.timeline-time { align-self:stretch; padding-top:6px; text-align:center; position:relative; color:#4f4640; font-size:13px; }
.timeline-time::before { content:""; position:absolute; left:3px; top:17px; width:8px; height:8px; border-radius:50%; background:#5ca7b3; }
.timeline-time::after { content:""; position:absolute; left:6.5px; top:26px; bottom:-24px; width:1px; background:#b8cbd0; }
.timeline-row:last-child .timeline-time::after { display:none; }
.timeline-photo { width:94px; height:70px; border-radius:11px; object-fit:cover; }
.timeline-copy { min-width:0; }
.timeline-copy strong { display:block; font-size:14px; color:#292421; }
.timeline-copy .tags-row { margin-top:5px; }
.timeline-copy small { display:block; margin-top:6px; color:#7c7169; }
.photo-count { text-align:center; font-size:11px; color:#665b54; }

/* Cabin */
.page-cabin { padding-top:var(--status-h); background:#f7ecdd; }
.cabin-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.coin-shop { display:flex; gap:8px; }
.coin-pill, .shop-pill { min-height:42px; border:0; border-radius:999px; background:rgba(255,255,255,.88); box-shadow:var(--shadow-soft); display:flex; align-items:center; gap:8px; padding:0 14px; cursor:pointer; font-weight:760; color:#4e3d30; }
.cabin-title { margin:12px 4px 9px; }
.cabin-title h1 { margin:0; font-size:26px; }
.cabin-title p { margin:6px 0 0; color:#6d5b4e; font-size:13px; }
.room-stage { height:480px; margin:0 -16px; background:url('./assets/cabin-room.webp') center / cover no-repeat; position:relative; box-shadow:inset 0 -35px 40px rgba(91,63,40,.08); }
.room-video-hotspot { position:absolute; right:26px; top:112px; width:150px; height:150px; border:0; background:transparent; cursor:pointer; border-radius:18px; }
.room-pet-hotspot { position:absolute; right:38px; bottom:96px; width:142px; height:72px; border:0; background:transparent; cursor:pointer; border-radius:18px; }
.expand-room { position:absolute; right:28px; bottom:28px; min-width:154px; height:50px; font-size:16px; }
.decorator-panel { margin:0 -5px 0; background:rgba(255,255,255,.96); border-radius:27px 27px 0 0; padding:14px 10px 18px; box-shadow:0 -10px 24px rgba(88,61,38,.11); }
.decorator-tabs { display:grid; grid-template-columns:repeat(4,1fr); border-bottom:1px solid var(--line); }
.decorator-tab { border:0; background:transparent; padding:8px 2px 12px; display:flex; align-items:center; justify-content:center; gap:5px; color:#5a483a; cursor:pointer; font-size:12px; position:relative; }
.decorator-tab.active { color:#75410f; font-weight:780; }
.decorator-tab.active::after { content:""; position:absolute; bottom:-1px; left:22%; right:22%; height:3px; border-radius:3px; background:#7b430f; }
.item-carousel { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:11px; }
.shop-item { border:0; border-radius:17px; background:white; box-shadow:var(--shadow-soft); padding:6px 5px 9px; cursor:pointer; position:relative; min-width:0; }
.shop-item img { width:100%; height:84px; object-fit:contain; border-radius:12px; }
.shop-item strong { display:block; margin-top:5px; font-size:11px; color:#4b3b30; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shop-item.selected::after { content:"✓"; position:absolute; top:7px; right:7px; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:var(--teal); color:white; font-weight:800; }

/* Profile */
.page-profile { padding-top:var(--status-h); }
.profile-hero { position:relative; margin:calc(var(--status-h) * -1) -16px 0; padding:calc(var(--status-h) + 17px) 18px 23px; min-height:310px; overflow:hidden; background:linear-gradient(180deg,#b9ebf5,#ecf8f8 62%,#fffaf3); }
.profile-hero::after { content:""; position:absolute; right:-10px; top:112px; width:65%; height:165px; background:url('./assets/hero-art-profile.webp') right top / contain no-repeat; -webkit-mask-image:linear-gradient(90deg,transparent,#000 20%); mask-image:linear-gradient(90deg,transparent,#000 20%); }
.profile-hero > * { position:relative; z-index:2; }
.profile-main { display:grid; grid-template-columns:92px 1fr; gap:13px; align-items:center; margin-top:60px; }
.profile-avatar { width:92px; height:92px; border-radius:50%; padding:5px; background:white; box-shadow:var(--shadow); }
.profile-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.profile-copy h1 { margin:0; font-size:23px; }
.profile-copy p { margin:9px 0 0; color:#4e5a69; font-size:12.5px; line-height:1.65; max-width:245px; }
.edit-profile { margin-top:10px; border:1px solid var(--line); background:rgba(255,255,255,.85); border-radius:999px; padding:9px 14px; box-shadow:var(--shadow-soft); cursor:pointer; font-size:12px; }
.profile-info-bar { position:relative; z-index:4; margin-top:-23px; padding:12px 8px; display:grid; grid-template-columns:repeat(3,1fr); }
.profile-info { display:flex; justify-content:center; align-items:center; gap:6px; color:#70645d; font-size:10.5px; position:relative; }
.profile-info + .profile-info::before { content:""; position:absolute; left:0; top:0; bottom:0; border-left:1px solid var(--line); }
.achievement-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.achievement { border:0; background:transparent; text-align:center; cursor:pointer; padding:0; }
.achievement img { width:76px; height:76px; object-fit:contain; margin:auto; }
.achievement strong { display:block; font-size:12px; color:#342e2a; }
.achievement small { display:block; margin-top:4px; font-size:9.5px; color:#8a7e75; line-height:1.3; }
.profile-stats { display:grid; grid-template-columns:repeat(4,1fr); padding:16px 9px; }
.profile-stat { text-align:center; position:relative; }
.profile-stat + .profile-stat::before { content:""; position:absolute; left:0; top:9px; bottom:4px; border-left:1px dashed #ded1c7; }
.profile-stat .emoji { font-size:27px; }
.profile-stat strong { display:block; margin-top:6px; font-size:21px; }
.profile-stat small { display:block; margin-top:4px; font-size:9.5px; color:#645a53; }
.level-card { margin-top:11px; padding:12px; display:grid; grid-template-columns:64px 1fr; align-items:center; gap:12px; overflow:hidden; position:relative; }
.level-card::after { content:""; position:absolute; right:-5px; bottom:-4px; width:47%; height:80px; background:url('./assets/hero-art-profile.webp') right bottom / cover no-repeat; opacity:.45; -webkit-mask-image:linear-gradient(90deg,transparent,#000 35%); mask-image:linear-gradient(90deg,transparent,#000 35%); }
.level-card > * { position:relative; z-index:2; }
.level-card img { width:64px; height:64px; object-fit:contain; }
.level-copy strong { font-size:17px; }
.level-progress { margin-top:9px; height:7px; border-radius:8px; background:#eee6dd; overflow:hidden; }
.level-progress i { display:block; width:66%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#45aab5,#7bc8cb); }
.level-meta { margin-top:5px; display:flex; justify-content:space-between; color:#7d7169; font-size:10px; }
.memory-row { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; }
.memory-card { min-width:0; border:0; background:transparent; padding:0; cursor:pointer; text-align:left; }
.memory-card img { width:100%; height:72px; object-fit:cover; border-radius:12px; }
.memory-card strong { display:block; margin-top:5px; font-size:9.5px; color:#564c45; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.add-memory { height:72px; border:1px dashed #c9bbb0; border-radius:12px; display:grid; place-items:center; background:rgba(255,255,255,.5); color:#756a63; font-size:26px; }

/* Overlays */
.toast { position:absolute; z-index:150; left:50%; bottom:calc(var(--nav-h) + 26px + var(--safe-bottom)); transform:translate(-50%,16px); min-width:210px; max-width:80%; padding:11px 15px; border-radius:14px; background:rgba(30,36,43,.92); color:white; box-shadow:0 9px 28px rgba(0,0,0,.25); text-align:center; font-size:12.5px; opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.modal-backdrop { position:absolute; z-index:120; inset:0; background:rgba(29,25,22,.28); backdrop-filter:blur(3px); display:grid; align-items:end; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.modal-backdrop.open { opacity:1; pointer-events:auto; }
.modal-sheet { background:#fffdf9; border-radius:28px 28px 0 0; box-shadow:0 -16px 40px rgba(0,0,0,.18); padding:16px 18px calc(22px + var(--safe-bottom)); transform:translateY(100%); transition:transform .25s ease; max-height:78%; overflow:auto; }
.modal-backdrop.open .modal-sheet { transform:translateY(0); }
.modal-handle { width:42px; height:4px; border-radius:4px; background:#d8cec5; margin:0 auto 14px; }
.modal-title { font-size:18px; font-weight:820; margin:0; }
.modal-copy { margin:9px 0 0; color:#756a63; font-size:13px; line-height:1.65; }
.modal-actions { display:flex; gap:10px; margin-top:16px; }
.modal-actions button { flex:1; min-height:46px; border-radius:14px; cursor:pointer; }
.secondary-button { border:1px solid var(--line); background:white; color:#4d443f; }

.empty-state { padding:34px 15px; text-align:center; color:#776c65; }
.empty-state .emoji { font-size:44px; }
.empty-state strong { display:block; margin-top:10px; color:#3d3530; }

.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media (max-width: 520px) {
  body { background: var(--page); }
  #app { display:block; }
  .phone-shell { width:100vw; height:100dvh; border:0; border-radius:0; box-shadow:none; }
  .phone-shell::before { display:none; }
  .status-bar { padding-top:max(13px, env(safe-area-inset-top)); height:calc(var(--status-h) + env(safe-area-inset-top)); }
  .page { padding-top:calc(var(--status-h) + env(safe-area-inset-top)); }
  .hero-scenic { margin-top:calc((var(--status-h) + env(safe-area-inset-top)) * -1); padding-top:calc(var(--status-h) + env(safe-area-inset-top) + 19px); }
  .page-trip { padding-top:0; }
  .map-hero, .profile-hero { margin-top:calc((var(--status-h) + env(safe-area-inset-top)) * -1); padding-top:calc(var(--status-h) + env(safe-area-inset-top) + 17px); }
  .home-indicator { bottom:3px; }
}

@media (max-width: 380px) {
  .page { padding-left:12px; padding-right:12px; }
  .hero-scenic, .map-hero, .profile-hero { margin-left:-12px; margin-right:-12px; }
  .brand-title { font-size:20px; }
  .hero-title { font-size:24px; }
  .stats-overview { padding-left:4px; padding-right:4px; }
  .stat-number { font-size:19px; }
  .stat-label { font-size:9px; }
  .quick-grid { gap:5px; }
  .quick-label { font-size:10.5px; }
  .guide-grid { gap:6px; }
  .guide-card-body { padding:6px; }
  .guide-card h3 { font-size:11px; }
  .mood-choice { flex-direction:column; gap:2px; }
  .gallery-strip { gap:4px; }
  .reco-row { grid-template-columns:36px 1fr; }
  .reco-images { grid-column:1/-1; }
  .achievement img { width:64px; height:64px; }
}

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

.date-fields { display:flex; align-items:center; gap:5px; min-width:0; }
.date-fields input { width:112px; font-size:12px; }

.login-brand-row { display:flex; align-items:center; gap:14px; margin-top:10px; }
.login-brand-avatar { width:62px; height:62px; border-radius:18px; object-fit:cover; padding:3px; background:rgba(255,255,255,.9); box-shadow:var(--shadow-soft); }
.login-brand-row .brand-title { font-size:22px; }

/* =========================================================
   P2 product refinement layer
   ========================================================= */
:root {
  --shadow: 0 8px 22px rgba(76,56,38,.09), 0 2px 6px rgba(76,56,38,.045);
  --shadow-soft: 0 5px 14px rgba(76,56,38,.075);
  --shadow-float: 0 14px 34px rgba(61,47,34,.15);
  --content-gap: 16px;
}
button { min-width:0; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid rgba(47,152,167,.24); outline-offset:2px; }
button:disabled { cursor:not-allowed; opacity:.48; }
input, textarea, select { color:#3d3631; }
textarea { resize:vertical; }
.brand-button { padding:0; border:0; background:transparent; text-align:left; cursor:pointer; }
.soft-button { min-height:38px; padding:0 13px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.9); color:#5b514a; box-shadow:var(--shadow-soft); display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-size:11px; font-weight:720; }
.teal-button { min-height:40px; padding:0 15px; border:0; border-radius:999px; color:#fff; background:linear-gradient(180deg,#58b7bf,#2f8e9a); box-shadow:0 7px 15px rgba(47,152,167,.2); display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-weight:780; }
.danger { color:#c44f47!important; }
.p2-deep-page { padding-bottom:40px; }
.deep-route .toast { bottom:calc(24px + var(--safe-bottom)); }
.offline-banner { position:absolute; z-index:110; left:18px; right:18px; top:calc(var(--status-h) + 8px); padding:9px 12px; border-radius:12px; background:#3b4c59; color:#fff; text-align:center; font-size:10px; box-shadow:var(--shadow); }

.enhanced-topbar {
  position:sticky; top:0; z-index:35;
  margin:calc(var(--status-h) * -1) -16px 12px;
  padding:var(--status-h) 12px 8px;
  height:calc(64px + var(--status-h));
  display:grid; grid-template-columns:46px minmax(0,1fr) 86px; align-items:center;
  background:linear-gradient(180deg,rgba(255,250,243,.98) 68%,rgba(255,250,243,.88) 86%,rgba(255,250,243,0));
  backdrop-filter:blur(16px);
}
.enhanced-topbar .topbar-heading { min-width:0; text-align:center; }
.enhanced-topbar .topbar-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:17px; font-weight:830; }
.topbar-subtitle { margin-top:3px; color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-right { display:flex; justify-content:flex-end; align-items:center; min-width:0; }
.enhanced-topbar .topbar-action { min-height:34px; padding:0 10px; border:0; border-radius:999px; background:var(--teal); color:#fff; font-size:10px; font-weight:760; white-space:nowrap; cursor:pointer; }
.enhanced-topbar .back-button { width:40px; height:40px; border:0; border-radius:50%; background:rgba(255,255,255,.75); display:grid; place-items:center; cursor:pointer; }
.coin-pill { min-height:34px; padding:0 9px; border:1px solid var(--line); border-radius:999px; background:#fff; display:flex; align-items:center; gap:4px; font-size:10px; font-weight:760; cursor:pointer; }

/* Home */
.compact-hero { min-height:236px; }
.compact-hero .hero-copy { margin-top:25px; max-width:79%; }
.compact-hero .hero-title { font-size:25px; }
.p2-stats-overview { margin-top:-34px; padding:14px 12px; }
.p2-stats-grid { grid-template-columns:repeat(3,1fr); }
.p2-stats-grid .stat-item { padding:0 8px; }
.p2-stats-grid .stat-label { font-size:11px; }
.home-primary-cta { min-height:68px; justify-content:flex-start; padding:9px 22px; text-align:left; }
.home-primary-cta > span:last-child { display:flex; flex-direction:column; gap:2px; }
.home-primary-cta strong { font-size:18px; }
.home-primary-cta small { color:#8a510e; font-size:11px; font-weight:600; }
.p2-quick-grid { grid-template-columns:repeat(4,1fr); }
.p2-quick-grid .quick-tile { min-height:84px; }
.ai-assistant-strip { display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; padding:14px; align-items:center; background:linear-gradient(135deg,rgba(232,249,249,.94),rgba(255,252,246,.96)); border-color:rgba(111,191,198,.3); }
.ai-assistant-icon { width:42px; height:42px; border-radius:15px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#68c6cd,#2e919e); box-shadow:0 8px 18px rgba(47,152,167,.2); }
.ai-assistant-strip strong { font-size:15px; }
.ai-assistant-strip p { margin:3px 0 0; color:var(--muted); font-size:11.5px; line-height:1.45; }
.ai-assistant-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ai-assistant-actions button { min-height:40px; border:1px solid rgba(47,152,167,.2); border-radius:12px; background:#fff; color:var(--teal-deep); display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-size:12px; font-weight:700; }
.trip-list-stack { display:grid; gap:10px; }
.trip-list-card { display:grid; grid-template-columns:118px minmax(0,1fr); gap:12px; padding:10px; cursor:pointer; text-align:left; }
.trip-list-card.compact { grid-template-columns:132px minmax(0,1fr); }
.trip-list-card > img { width:100%; height:106px; border-radius:14px; object-fit:cover; }
.trip-list-card.compact > img { height:114px; }
.trip-list-copy { min-width:0; display:flex; flex-direction:column; }
.trip-list-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:7px; }
.trip-list-title-row h3 { margin:0; min-width:0; font-size:15px; line-height:1.3; color:#2c2723; }
.privacy-badge { flex:0 0 auto; padding:4px 6px; border-radius:999px; background:#f3eee8; color:#776b63; font-size:9px; }
.trip-list-bottom { margin-top:auto; display:flex; flex-wrap:wrap; gap:6px 10px; color:#665c55; font-size:10.5px; }
.home-guide-grid, .p2-explore-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.guide-card-detailed img { height:112px; }
.guide-card-detailed h3 { min-height:auto; font-size:14px; }
.guide-facts { display:flex; flex-wrap:wrap; gap:4px; margin-top:7px; }
.guide-facts span { padding:3px 6px; border-radius:999px; background:#f3f6f5; color:#59706d; font-size:9px; }
.guide-author-line { margin-top:7px; display:flex; justify-content:space-between; gap:6px; color:#8a7e75; font-size:9px; }

/* Login */
.p2-login-page { padding-bottom:28px; }
.p2-login-hero { min-height:300px; }
.guest-row { display:flex; justify-content:flex-end; }
.p2-login-panel { position:relative; z-index:4; margin-top:-44px; }
.login-options { display:flex; justify-content:space-between; align-items:center; margin:9px 2px 4px; }
.check-row { display:flex; align-items:center; gap:8px; color:#675d56; font-size:10.5px; line-height:1.45; }
.check-row input { accent-color:var(--teal); }
.password-strength { margin:-1px 3px 10px; height:22px; position:relative; padding-top:6px; }
.password-strength::before { content:""; position:absolute; left:0; right:0; top:0; height:4px; border-radius:99px; background:#eee7df; }
.password-strength i { position:absolute; left:0; top:0; width:0; height:4px; border-radius:99px; background:linear-gradient(90deg,#f0a340,#57ab75); transition:width .2s; }
.password-strength span { color:#92867d; font-size:8.5px; }
.login-benefits { margin-top:12px; padding:13px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.login-benefits > div { display:grid; grid-template-columns:34px 1fr; column-gap:7px; align-items:center; }
.login-benefits > div:first-child { border-right:1px solid var(--line); }
.login-benefits span { grid-row:1/3; font-size:27px; }
.login-benefits strong { font-size:11.5px; }
.login-benefits small { color:var(--muted); font-size:8.8px; }

/* Editor */
.editor-stepper { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:12px; }
.editor-step { min-height:52px; padding:7px 4px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.72); display:flex; align-items:center; justify-content:center; gap:6px; color:#8a7e75; cursor:pointer; }
.editor-step > span { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:#eee8e1; font-size:10px; }
.editor-step strong { font-size:10.5px; }
.editor-step.active { border-color:rgba(47,152,167,.45); color:var(--teal-deep); background:#effafa; box-shadow:0 5px 13px rgba(47,152,167,.09); }
.editor-step.active > span, .editor-step.done > span { color:#fff; background:var(--teal); }
.editor-section-stack { display:grid; gap:12px; }
.editor-card { padding:15px; }
.editor-card-title { display:grid; grid-template-columns:30px 1fr; gap:10px; align-items:center; margin-bottom:15px; }
.editor-card-title > span { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:var(--teal-soft); color:var(--teal-deep); font-weight:850; }
.editor-card-title strong { display:block; font-size:15px; }
.editor-card-title small { display:block; margin-top:3px; color:var(--muted); font-size:10.5px; }
.input-label { display:block; margin:13px 0 6px; color:#514943; font-size:12px; font-weight:730; }
.input-label em { color:#ef795a; font-style:normal; font-size:9px; }
.editor-field { margin-top:0; min-height:48px; }
.editor-field .count { color:#9a8d84; font-size:9px; }
.field-action { flex:0 0 auto; border:0; background:transparent; color:var(--teal-deep); font-size:10px; font-weight:750; cursor:pointer; }
.p2-date-fields { display:grid; grid-template-columns:1fr auto 1fr; }
.p2-date-fields input { width:100%; min-height:45px; border:1px solid var(--line); border-radius:12px; padding:0 8px; color:#514943; background:#fff; }
.compact-check { margin:0 0 7px; }
.segmented-control { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; padding:4px; border-radius:13px; background:#eee9e3; }
.segmented-control button { min-height:36px; border:0; border-radius:10px; background:transparent; color:#7b7068; cursor:pointer; font-size:11px; display:flex; align-items:center; justify-content:center; gap:5px; }
.segmented-control button.active { color:#fff; background:linear-gradient(180deg,#58b5be,#348e9a); box-shadow:0 4px 9px rgba(52,142,154,.22); }
.compact-segment { width:max-content; grid-auto-columns:auto; }
.compact-segment button { padding:0 12px; }
.p2-upload-grid { grid-template-columns:1.45fr 1fr; }
.sample-cover-button { width:100%; margin-top:7px; min-height:32px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--teal-deep); font-size:9.5px; cursor:pointer; }
.gallery-uploader { min-height:42px; border:1px dashed #cbbeb3; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:7px; color:var(--teal-deep); cursor:pointer; font-size:11px; font-weight:730; position:relative; overflow:hidden; }
.gallery-uploader input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.editor-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:9px; }
.editor-photo { position:relative; min-height:82px; border-radius:12px; overflow:hidden; background:#f3eee8; }
.editor-photo img { width:100%; height:82px; object-fit:cover; }
.editor-photo button { position:absolute; top:5px; width:24px; height:24px; border:0; border-radius:8px; display:grid; place-items:center; background:rgba(255,255,255,.92); cursor:pointer; color:#5f554e; font-size:8px; }
.editor-photo button:first-of-type { left:5px; }
.editor-photo button:nth-of-type(2) { right:5px; }
.editor-photo > span { position:absolute; left:5px; bottom:5px; padding:3px 5px; border-radius:6px; background:rgba(20,30,35,.66); color:#fff; font-size:8px; }
.inline-empty { grid-column:1/-1; min-height:70px; border:1px dashed #d8ccc1; border-radius:12px; display:grid; place-items:center; color:#978b82; font-size:10px; }
.editor-textarea { min-height:150px; box-shadow:none; }
.editor-textarea textarea { min-height:120px; }
.expanded-moods { grid-template-columns:repeat(4,1fr); }
.expanded-moods .mood-choice { min-height:62px; flex-direction:column; gap:3px; position:relative; }
.expanded-moods .mood-choice .icon { position:absolute; right:6px; top:6px; }
.choice-head { margin-top:14px; font-size:13px; font-weight:760; }
.p2-tag-choice { margin-top:9px; display:flex; flex-wrap:wrap; gap:7px; }
.tag-choice { cursor:pointer; opacity:.67; }
.tag-choice.active { opacity:1; box-shadow:0 0 0 2px rgba(47,152,167,.2); }
.custom-tag { border-style:dashed; background:#fff; cursor:pointer; }
.privacy-options { display:grid; gap:8px; margin-top:8px; }
.privacy-option { min-height:60px; padding:9px 10px; border:1px solid var(--line); border-radius:14px; background:#fff; display:grid; grid-template-columns:35px 1fr 22px; gap:8px; align-items:center; text-align:left; cursor:pointer; }
.privacy-option > span:first-child { font-size:24px; }
.privacy-option strong, .privacy-option small { display:block; }
.privacy-option strong { font-size:12px; }
.privacy-option small { margin-top:3px; color:var(--muted); font-size:9.5px; }
.privacy-option.active { border-color:rgba(47,152,167,.55); background:#f0fafa; }
.setting-check { margin-top:11px; align-items:flex-start; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.setting-check strong, .setting-check small { display:block; }
.setting-check small { margin-top:3px; color:var(--muted); font-size:9.5px; }
.preview-summary-card { display:grid; grid-template-columns:82px 1fr auto; gap:10px; align-items:center; padding:9px; }
.preview-summary-card img { width:82px; height:62px; object-fit:cover; border-radius:12px; }
.preview-summary-card strong, .preview-summary-card span { display:block; }
.preview-summary-card strong { font-size:12px; }
.preview-summary-card span { color:var(--muted); font-size:9px; margin-top:3px; }
.preview-summary-card button { border:0; background:transparent; color:var(--teal-deep); font-size:10px; display:flex; align-items:center; cursor:pointer; }
.editor-action-bar { position:absolute; z-index:75; left:12px; right:12px; bottom:calc(10px + var(--safe-bottom)); min-height:66px; display:grid; grid-template-columns:1fr 1.55fr; gap:9px; padding:8px; border:1px solid rgba(228,218,208,.84); border-radius:22px; background:rgba(255,255,255,.96); box-shadow:var(--shadow-float); backdrop-filter:blur(16px); }
.editor-action-bar button { min-height:48px; border-radius:15px; }
.editor-bottom-spacer { height:70px; }
.preview-phone-note { margin:0 2px 11px; padding:10px 12px; border-radius:12px; background:#fff2d8; color:#775421; font-size:10.5px; line-height:1.55; }
.publication-preview { overflow:hidden; }
.publication-cover { width:100%; height:225px; object-fit:cover; }
.publication-body { padding:16px; }
.publication-body h1 { margin:9px 0; font-size:22px; }
.preview-story { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; color:#584f48; line-height:1.75; font-size:12px; }
.privacy-reminder { margin-top:12px; padding:9px; border-radius:10px; background:#eef8f8; color:#427177; display:flex; align-items:center; gap:7px; font-size:10px; }
.publish-checklist { margin-top:12px; padding:13px; display:grid; gap:9px; }
.publish-checklist strong { font-size:13px; }
.publish-checklist label { color:#675d56; font-size:10.5px; }

/* Lists and notifications */
.list-toolbar { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:12px; }
.year-filter-row { display:flex; gap:7px; overflow:auto; scrollbar-width:none; margin-bottom:11px; }
.calendar-card { padding:14px; }
.calendar-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.calendar-heading button { width:36px; height:36px; border:0; border-radius:50%; background:#f2ede7; display:grid; place-items:center; cursor:pointer; }
.calendar-weekdays, .calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.calendar-weekdays span { text-align:center; color:#978b83; font-size:9px; padding:6px 0; }
.calendar-cell { aspect-ratio:1; border:0; border-radius:10px; background:transparent; color:#5b514a; display:grid; place-items:center; position:relative; cursor:pointer; font-size:10px; }
.calendar-cell.has-trip { background:#e9f7f7; color:var(--teal-deep); font-weight:800; }
.calendar-cell.has-trip i { position:absolute; bottom:4px; width:4px; height:4px; border-radius:50%; background:var(--teal); }
.calendar-legend { margin-top:10px; display:flex; justify-content:space-between; color:#8b7f76; font-size:9px; }
.calendar-legend i { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--teal); }
.draft-info-banner, .economy-note { margin-bottom:12px; padding:11px 12px; border-radius:12px; background:#fff3df; color:#795b31; display:flex; align-items:flex-start; gap:8px; font-size:10.5px; line-height:1.5; }
.draft-list, .notification-list { display:grid; gap:10px; }
.draft-card { display:grid; grid-template-columns:112px 1fr; gap:12px; padding:10px; }
.draft-card > img { width:112px; height:100%; min-height:112px; object-fit:cover; border-radius:14px; }
.draft-card h3 { margin:2px 0 5px; font-size:14px; }
.draft-card p, .draft-card small { color:var(--muted); font-size:10px; }
.draft-actions { display:flex; gap:6px; margin-top:10px; }
.draft-actions button { min-height:35px; padding:0 10px; font-size:10px; }
.notification-filter { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color:#83776f; font-size:10.5px; }
.notification-filter button { border:0; background:transparent; color:var(--teal-deep); display:flex; align-items:center; cursor:pointer; }
.notification-item { width:100%; padding:12px; display:grid; grid-template-columns:42px 1fr 8px; gap:10px; align-items:start; text-align:left; cursor:pointer; }
.notification-item.unread { border-color:rgba(47,152,167,.36); background:#f8ffff; }
.notification-icon { width:40px; height:40px; border-radius:14px; display:grid; place-items:center; background:#f3eee8; font-size:21px; }
.notification-item strong { font-size:12.5px; }
.notification-item p { margin:4px 0; color:#6f655e; font-size:10px; line-height:1.45; }
.notification-item small { color:#a0948a; font-size:9px; }
.unread-dot { width:7px; height:7px; border-radius:50%; background:#ef5d5d; margin-top:5px; }
.empty-state p { margin:7px auto 13px; max-width:280px; font-size:11px; line-height:1.6; }
.empty-action { min-height:40px; padding:0 17px; }

/* Trip detail and album */
.p2-trip-hero { height:300px; position:relative; }
.p2-trip-hero > img { width:100%; height:100%; object-fit:cover; }
.trip-hero-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,28,40,.15),transparent 48%,rgba(8,25,35,.3)); pointer-events:none; }
.hero-album-button { position:absolute; right:18px; bottom:18px; min-height:34px; padding:0 11px; border:0; border-radius:999px; background:rgba(255,255,255,.91); color:#3c484c; display:flex; align-items:center; gap:5px; font-size:10px; font-weight:760; cursor:pointer; }
.p2-trip-panel { position:relative; margin-top:-25px; padding:23px 18px 24px; border-radius:28px 28px 0 0; background:var(--page); }
.p2-trip-panel .trip-title-row h1 { font-size:23px; }
.completion-badge { flex:0 0 auto; padding:6px 9px; border-radius:999px; background:#e6f4ef; color:#368474; font-size:9.5px; font-weight:760; }
.story-block { margin-top:18px; }
.story-block h2 { margin:0 0 8px; font-size:15px; }
.story-block p { margin:0; color:#504843; font-size:12px; line-height:1.8; }
.trip-map-card { margin-top:14px; padding:11px; display:grid; grid-template-columns:1fr 48%; gap:10px; overflow:hidden; cursor:pointer; }
.trip-map-card > div { display:flex; flex-direction:column; justify-content:center; }
.trip-map-card small, .trip-map-card span { color:var(--muted); font-size:9px; }
.trip-map-card strong { margin:4px 0; font-size:15px; }
.trip-map-card img { width:100%; height:92px; object-fit:cover; border-radius:13px; }
.trip-timeline { margin-top:20px; }
.day-tabs { display:flex; gap:7px; overflow:auto; scrollbar-width:none; margin-bottom:12px; }
.day-tabs button { min-width:86px; min-height:48px; padding:6px 11px; border:1px solid var(--line); border-radius:13px; background:#fff; color:#655b54; cursor:pointer; font-size:10.5px; }
.day-tabs button.active { border-color:rgba(47,152,167,.42); background:#ecf8f8; color:var(--teal-deep); }
.day-tabs small { display:block; margin-top:3px; font-size:8.5px; }
.day-events { display:grid; gap:8px; }
.day-events article { display:grid; grid-template-columns:46px 68px 1fr; gap:9px; align-items:start; padding:9px; border-radius:14px; background:#fff; border:1px solid var(--line); }
.day-events time { color:var(--teal-deep); font-size:10px; font-weight:760; }
.day-events img { width:68px; height:58px; border-radius:10px; object-fit:cover; }
.day-events strong { display:block; font-size:11.5px; }
.day-events span, .day-events p { color:var(--muted); font-size:8.8px; }
.day-events p { margin:4px 0 0; line-height:1.45; }
.trip-ai-actions { margin-top:15px; padding:12px; display:grid; grid-template-columns:1fr auto auto; gap:7px; align-items:center; }
.trip-ai-actions > div { display:grid; grid-template-columns:35px 1fr; column-gap:7px; }
.trip-ai-actions > div > span { grid-row:1/3; width:34px; height:34px; border-radius:11px; background:var(--teal-soft); color:var(--teal-deep); display:grid; place-items:center; }
.trip-ai-actions strong, .trip-ai-actions small { display:block; }
.trip-ai-actions strong { font-size:11px; }
.trip-ai-actions small { font-size:8.5px; color:var(--muted); }
.trip-ai-actions > button { min-height:34px; border:1px solid rgba(47,152,167,.2); border-radius:10px; background:#fff; color:var(--teal-deep); font-size:9px; cursor:pointer; }
.deep-action-bar { position:absolute; z-index:75; left:13px; right:13px; bottom:calc(10px + var(--safe-bottom)); min-height:62px; padding:7px; display:grid; grid-template-columns:repeat(3,1fr); gap:5px; border:1px solid rgba(228,218,208,.8); border-radius:22px; background:rgba(255,255,255,.96); box-shadow:var(--shadow-float); backdrop-filter:blur(16px); }
.deep-action-bar button { min-height:46px; border:0; border-radius:14px; background:transparent; color:#4f4640; display:flex; align-items:center; justify-content:center; gap:5px; font-size:11px; font-weight:720; cursor:pointer; }
.deep-action-bar button.active { color:#d95c4f; background:#fff4f2; }
.page-album { padding:0; background:#0b1116; }
.album-viewer { width:100%; min-height:100dvh; position:relative; background:#090f14; display:grid; place-items:center; overflow:hidden; }
.album-viewer > img { width:100%; max-height:100dvh; object-fit:contain; }
.album-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.38),transparent 25%,transparent 68%,rgba(0,0,0,.58)); pointer-events:none; }
.album-back, .album-more { position:absolute; top:calc(var(--status-h) + 8px); width:42px; height:42px; border:0; border-radius:50%; background:rgba(20,28,33,.55); color:#fff; display:grid; place-items:center; cursor:pointer; }
.album-back { left:16px; }
.album-more { right:16px; }
.album-counter { position:absolute; top:calc(var(--status-h) + 19px); left:50%; transform:translateX(-50%); color:#fff; font-size:12px; }
.album-prev, .album-next { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:58px; border:0; background:rgba(10,18,23,.35); color:#fff; display:grid; place-items:center; cursor:pointer; }
.album-prev { left:0; border-radius:0 16px 16px 0; }
.album-next { right:0; border-radius:16px 0 0 16px; }
.album-caption { position:absolute; left:20px; right:20px; bottom:28px; color:#fff; }
.album-caption strong, .album-caption span { display:block; }
.album-caption strong { font-size:17px; }
.album-caption span { margin-top:4px; font-size:10px; opacity:.75; }

/* Explore */
.p2-page-explore { padding-top:calc(var(--status-h) + 14px); }
.p2-page-explore > .brand { margin-bottom:16px; }
.p2-search-box { min-height:54px; display:grid; grid-template-columns:28px 1fr 42px; align-items:center; gap:4px; padding:0 7px 0 14px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.p2-search-box input { width:100%; border:0; outline:0; background:transparent; font-size:13px; }
.p2-search-box > button { width:38px; height:38px; border:0; border-left:1px solid var(--line); background:transparent; display:grid; place-items:center; cursor:pointer; }
.search-history { min-height:35px; margin-top:7px; display:flex; align-items:center; gap:5px; overflow:auto; scrollbar-width:none; color:#90847b; font-size:8.8px; }
.search-history button { flex:0 0 auto; min-height:25px; padding:0 8px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#6f655e; font-size:8.8px; cursor:pointer; }
.search-history button:last-child { margin-left:auto; border:0; background:transparent; color:var(--teal-deep); }
.explore-controls { margin-top:10px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.explore-controls .filter-chips { flex:1; display:flex; gap:6px; overflow:auto; scrollbar-width:none; }
.filter-chip { flex:0 0 auto; min-height:34px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#5a514b; font-size:10px; cursor:pointer; }
.filter-chip.active { border-color:transparent; background:var(--teal); color:#fff; }
.view-switch { display:flex; padding:3px; border-radius:11px; background:#ece7e1; }
.view-switch button { width:30px; height:30px; border:0; border-radius:9px; background:transparent; color:#80746b; display:grid; place-items:center; cursor:pointer; }
.view-switch button.active { background:#fff; color:var(--teal-deep); box-shadow:var(--shadow-soft); }
.hot-tags { margin-top:15px; }
.tag-cloud { display:flex; flex-wrap:wrap; gap:7px; }
.tag-cloud button { min-height:35px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#625851; cursor:pointer; font-size:10.5px; box-shadow:var(--shadow-soft); }
.nearby-banner { margin-top:15px; min-height:118px; padding:14px; display:grid; grid-template-columns:1.15fr 1fr; gap:8px; overflow:hidden; }
.nearby-banner h2 { margin:0; font-size:16px; }
.nearby-banner p { margin:6px 0 10px; color:var(--muted); font-size:9.5px; line-height:1.45; }
.nearby-banner img { width:100%; height:100%; min-height:90px; object-fit:cover; border-radius:13px; }
.result-count { padding:3px 6px; border-radius:999px; background:#eaf5f5; color:var(--teal-deep); font-size:9px; }
.sort-select { min-height:31px; padding:0 8px; border:1px solid var(--line); border-radius:10px; color:#766b64; background:#fff; display:flex; align-items:center; gap:4px; font-size:9px; }
.sort-select select { border:0; background:transparent; color:#564d47; font-size:9px; }
.skeleton-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.skeleton-card { height:236px; border-radius:17px; background:linear-gradient(90deg,#eee8e2 20%,#f8f5f1 45%,#eee8e2 70%); background-size:250% 100%; animation:skeleton 1.25s linear infinite; }
@keyframes skeleton { to { background-position:-250% 0; } }
.explore-map-view { display:grid; gap:10px; }
.explore-map-canvas { position:relative; height:255px; border-radius:18px; overflow:hidden; border:1px solid var(--line); background:#dbeff3; }
.explore-map-canvas > img { width:100%; height:100%; object-fit:cover; }
.map-result-pin { position:absolute; width:32px; height:38px; border:0; background:#f37c57; color:#fff; clip-path:polygon(50% 100%,0 40%,0 15%,15% 0,85% 0,100% 15%,100% 40%); display:grid; place-items:start center; padding-top:7px; font-size:10px; font-weight:800; cursor:pointer; filter:drop-shadow(0 4px 5px rgba(0,0,0,.2)); }
.map-result-pin.pin-1 { left:69%; top:36%; }.map-result-pin.pin-2 { left:82%; top:31%; }.map-result-pin.pin-3 { left:49%; top:25%; }.map-result-pin.pin-4 { left:43%; top:42%; }.map-result-pin.pin-5 { left:73%; top:56%; }
.map-result-rail { display:flex; gap:8px; overflow:auto; scrollbar-width:none; }
.map-result-rail button { flex:0 0 220px; min-height:65px; padding:6px; border:1px solid var(--line); border-radius:13px; background:#fff; display:grid; grid-template-columns:65px 1fr; gap:8px; text-align:left; cursor:pointer; }
.map-result-rail img { width:65px; height:52px; object-fit:cover; border-radius:9px; }
.map-result-rail b, .map-result-rail small { display:block; }
.map-result-rail b { font-size:10.5px; }
.map-result-rail small { margin-top:5px; color:var(--muted); font-size:8.5px; }

/* Guide detail */
.page-guide { padding-top:0; }
.guide-cover { height:285px; position:relative; overflow:hidden; }
.guide-cover > img { width:100%; height:100%; object-fit:cover; }
.guide-cover-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(9,26,36,.25),transparent 42%,rgba(7,24,34,.72)); }
.guide-back, .guide-share { position:absolute; top:calc(var(--status-h) + 8px); width:42px; height:42px; border:0; border-radius:50%; background:rgba(255,255,255,.92); color:#3c3936; display:grid; place-items:center; cursor:pointer; }
.guide-back { left:16px; }.guide-share { right:16px; }
.guide-cover-copy { position:absolute; left:20px; right:20px; bottom:18px; color:#fff; }
.guide-cover-copy > span { font-size:9.5px; opacity:.82; }
.guide-cover-copy h1 { margin:5px 0 4px; font-size:25px; line-height:1.25; }
.guide-cover-copy p { margin:0; font-size:11px; opacity:.88; }
.guide-detail-body { position:relative; margin-top:-1px; padding:14px 16px 88px; border-radius:26px 26px 0 0; background:var(--page); }
.guide-summary-panel { padding:14px; }
.guide-author-summary { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.author-button { border:0; background:transparent; display:grid; grid-template-columns:38px 1fr 18px; gap:8px; align-items:center; text-align:left; cursor:pointer; }
.author-button img { width:38px; height:38px; border-radius:50%; object-fit:cover; }
.author-button small, .author-button strong { display:block; }
.author-button small { color:var(--muted); font-size:8.5px; }.author-button strong { font-size:11.5px; }
.verified-guide { padding:5px 7px; border-radius:999px; background:#e7f5f1; color:#2f8373; font-size:8.5px; }
.guide-summary-panel > p { margin:12px 0; color:#574e48; font-size:11px; line-height:1.65; }
.guide-fact-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.guide-fact-grid > div { min-height:66px; padding:7px 4px; border-radius:11px; background:#f7f3ee; text-align:center; }
.guide-fact-grid span { display:block; font-size:20px; }.guide-fact-grid strong { display:block; margin-top:3px; font-size:10.5px; }.guide-fact-grid small { display:block; margin-top:2px; color:var(--muted); font-size:7.5px; }
.guide-action-row { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:10px; }
.guide-action-row button { min-height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; gap:7px; cursor:pointer; font-size:11px; font-weight:760; }
.guide-action-row .surface-card.active { color:var(--teal-deep); background:#effafa; }
.guide-metrics { margin-top:10px; padding:10px 5px; display:grid; grid-template-columns:repeat(4,1fr); }
.guide-metrics > div { text-align:center; position:relative; }
.guide-metrics > div + div::before { content:""; position:absolute; left:0; top:4px; bottom:4px; border-left:1px solid var(--line); }
.guide-metrics .icon { color:var(--teal); }.guide-metrics strong,.guide-metrics small { display:block; }.guide-metrics strong { margin-top:3px; font-size:12px; }.guide-metrics small { color:var(--muted); font-size:8px; }
.guide-content-section { margin-top:19px; }
.itinerary-list { display:grid; gap:8px; }
.itinerary-card { padding:11px; display:grid; grid-template-columns:52px 1fr; gap:10px; }
.day-badge { height:32px; border-radius:10px; background:linear-gradient(145deg,#62bdc4,#318c99); color:#fff; display:grid; place-items:center; font-size:9px; font-weight:800; }
.itinerary-card h3 { margin:2px 0 7px; font-size:12.5px; }
.spot-flow { display:flex; flex-wrap:wrap; gap:5px; }
.spot-flow button { min-height:27px; padding:0 7px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#625851; display:flex; align-items:center; gap:3px; font-size:8.5px; cursor:pointer; }
.recommendation-stack { display:grid; gap:8px; margin-top:10px; }
.recommendation-row { width:100%; min-height:78px; padding:9px; display:grid; grid-template-columns:40px 105px 1fr 18px; gap:8px; align-items:center; text-align:left; cursor:pointer; }
.recommendation-emoji { width:38px; height:38px; border-radius:13px; background:#f4eee7; display:grid; place-items:center; font-size:23px; }
.recommendation-row strong,.recommendation-row small { display:block; }.recommendation-row strong { font-size:11px; }.recommendation-row small { margin-top:4px; color:var(--muted); font-size:8px; line-height:1.4; }
.recommendation-images { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }
.recommendation-images img { width:100%; height:48px; border-radius:8px; object-fit:cover; }
.caution-card { margin-top:16px; padding:11px; }
.caution-head { margin-bottom:6px; font-size:12.5px; font-weight:780; }
.caution-card > button { width:100%; min-height:40px; padding:4px 2px; border:0; border-top:1px solid var(--line); background:transparent; display:grid; grid-template-columns:20px 1fr 18px; gap:5px; align-items:center; text-align:left; color:#625851; font-size:9.5px; cursor:pointer; }
.guide-comments { margin-top:18px; }
.comment-item { padding:10px; display:grid; grid-template-columns:34px 1fr; gap:9px; margin-top:8px; }
.comment-item img { width:34px; height:34px; border-radius:50%; object-fit:cover; }
.comment-item strong { font-size:10.5px; }.comment-item p { margin:4px 0; color:#5e554f; font-size:9.5px; line-height:1.45; }.comment-item small { color:var(--muted); font-size:8px; }
.comment-composer { margin-top:8px; min-height:44px; padding:4px 4px 4px 12px; border:1px solid var(--line); border-radius:999px; background:#fff; display:grid; grid-template-columns:1fr 38px; gap:5px; }
.comment-composer input { border:0; outline:0; background:transparent; font-size:10px; }
.comment-composer button { border:0; border-radius:50%; background:var(--teal); color:#fff; display:grid; place-items:center; cursor:pointer; }
.guide-bottom-action { grid-template-columns:1fr 1.7fr; }
.guide-bottom-action .primary-gradient { color:#6d3600; }
.conversion-banner { margin-bottom:12px; padding:12px; display:grid; grid-template-columns:40px 1fr; gap:9px; background:linear-gradient(135deg,#eaf8f8,#fffaf2); }
.conversion-banner > span { width:38px; height:38px; border-radius:12px; background:var(--teal); color:#fff; display:grid; place-items:center; }
.conversion-banner strong { font-size:12px; }.conversion-banner p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.45; }
.guide-editor-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.guide-editor-grid label { color:#6a6059; font-size:9px; }
.guide-editor-grid input,.guide-editor-grid select { width:100%; min-height:40px; margin-top:5px; padding:0 8px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.privacy-review-check { margin-top:12px; padding:10px; border-radius:12px; background:#fff5df; align-items:flex-start; }
.privacy-review-check strong,.privacy-review-check small { display:block; }.privacy-review-check strong { font-size:10px; }.privacy-review-check small { margin-top:3px; color:#826c4c; font-size:8.5px; }
.publish-guide-button { width:100%; min-height:52px; margin-top:12px; font-size:14px; }

/* Map and place */
.p2-page-map { padding-top:var(--status-h); }
.p2-map-hero { min-height:258px; }
.map-hero-copy { margin-top:35px; max-width:76%; }
.map-hero-copy h1 { margin:0; font-size:25px; }.map-hero-copy p { margin:7px 0 0; color:#42546a; font-size:11.5px; }
.map-summary { position:relative; z-index:4; margin-top:-40px; padding:14px 8px; display:grid; grid-template-columns:repeat(3,1fr); }
.map-summary > div { display:grid; grid-template-columns:35px 1fr; column-gap:6px; align-items:center; position:relative; }
.map-summary > div + div::before { content:""; position:absolute; left:0; top:4px; bottom:4px; border-left:1px solid var(--line); }
.map-summary span { grid-row:1/3; font-size:28px; }.map-summary strong { font-size:19px; }.map-summary small { color:var(--muted); font-size:8px; }
.map-mode-tabs { margin:12px 0; padding:4px; display:grid; grid-template-columns:1fr 1fr; gap:4px; border-radius:14px; background:#ece7e1; }
.map-mode-tabs button { min-height:38px; border:0; border-radius:11px; background:transparent; color:#71665f; display:flex; align-items:center; justify-content:center; gap:6px; font-size:10.5px; cursor:pointer; }
.map-mode-tabs button.active { background:#fff; color:var(--teal-deep); box-shadow:var(--shadow-soft); font-weight:760; }
.world-map-card { height:380px; position:relative; overflow:hidden; }
.world-map-card > img { width:100%; height:100%; object-fit:cover; }
.world-pin { position:absolute; width:42px; height:52px; border:0; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:#5ba8ad; color:#fff; display:grid; place-items:center; font-size:18px; cursor:pointer; filter:drop-shadow(0 5px 6px rgba(0,0,0,.2)); }
.world-pin::first-letter { transform:rotate(45deg); }
.world-pin.north-america { left:19%; top:28%; }.world-pin.europe { left:48%; top:22%; background:#e76952; }.world-pin.asia { left:76%; top:27%; background:#f5aa42; }.world-pin.taiwan { left:72%; top:45%; background:#73a65e; }.world-pin.oceania { left:82%; top:61%; background:#3e85c3; }
.map-zoom { position:absolute; left:10px; top:115px; display:grid; gap:1px; overflow:hidden; border-radius:13px; box-shadow:var(--shadow); }
.map-zoom button { width:39px; height:39px; border:0; background:#fff; color:#49515a; font-size:18px; cursor:pointer; }
.map-legend { position:absolute; left:10px; right:10px; bottom:10px; padding:8px; border-radius:12px; background:rgba(255,255,255,.92); display:flex; flex-wrap:wrap; justify-content:center; gap:7px 10px; font-size:7.8px; }
.map-tip { margin:9px 0 14px; padding:9px 11px; border-radius:12px; background:#fff3df; color:#765a33; font-size:9px; text-align:center; }
.route-map { height:190px; position:relative; overflow:hidden; }
.route-map > img { width:100%; height:100%; object-fit:cover; }
.route-map svg { position:absolute; inset:0; width:100%; height:100%; fill:#ef7152; stroke:#2f98a7; stroke-width:1.8; stroke-dasharray:4 3; }
.route-map > button { position:absolute; right:10px; top:10px; min-height:34px; padding:0 10px; border:0; border-radius:999px; background:rgba(255,255,255,.94); color:var(--teal-deep); display:flex; align-items:center; gap:4px; font-size:9px; cursor:pointer; }
.itinerary-map-section > .section-title-row { margin-top:14px; }
.date-strip { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-bottom:10px; }
.date-strip button { min-height:55px; border:1px solid var(--line); border-radius:13px; background:#fff; color:#655c55; cursor:pointer; }
.date-strip button.active { border:2px solid var(--teal); color:var(--teal-deep); background:#f4ffff; }
.date-strip strong,.date-strip span { display:block; }.date-strip strong { font-size:12px; }.date-strip span { margin-top:3px; font-size:8.5px; }
.timeline-list { display:grid; gap:1px; overflow:hidden; border-radius:17px; background:#fff; border:1px solid var(--line); }
.timeline-row { min-height:88px; padding:8px; border:0; border-bottom:1px solid var(--line); background:#fff; display:grid; grid-template-columns:43px 88px 1fr 18px; gap:8px; align-items:center; text-align:left; cursor:pointer; }
.timeline-row:last-child { border-bottom:0; }
.timeline-row time { font-size:10.5px; color:#4c4540; }.timeline-row > img { width:88px; height:66px; border-radius:11px; object-fit:cover; }
.timeline-row > span { min-width:0; }.timeline-row strong { display:block; font-size:11.5px; }.timeline-row small { display:block; margin-top:5px; color:var(--muted); font-size:8.5px; }.timeline-row small b { padding:3px 5px; border-radius:999px; background:#eaf6f6; color:var(--teal-deep); font-weight:600; }.timeline-row em { display:block; margin-top:6px; color:#746a62; font-style:normal; font-size:8px; }
.page-place { padding-top:0; }
.place-hero { height:310px; position:relative; overflow:hidden; }
.place-hero > img { width:100%; height:100%; object-fit:cover; }.place-hero-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(5,20,30,.25),transparent 43%,rgba(5,22,31,.75)); }
.place-hero > button { position:absolute; top:calc(var(--status-h) + 9px); width:42px; height:42px; border:0; border-radius:50%; background:rgba(255,255,255,.92); display:grid; place-items:center; cursor:pointer; }
.place-hero > button:first-of-type { left:16px; }.place-hero > button:nth-of-type(2) { right:16px; }
.place-hero > div:last-child { position:absolute; left:20px; right:20px; bottom:20px; color:#fff; }.place-hero span { font-size:10px; opacity:.8; }.place-hero h1 { margin:4px 0; font-size:27px; }.place-hero p { margin:0; font-size:11px; }
.place-body { padding:14px 16px 35px; }
.place-facts { padding:11px 5px; display:grid; grid-template-columns:repeat(4,1fr); }
.place-facts > div { text-align:center; position:relative; }.place-facts > div + div::before { content:""; position:absolute; left:0; top:5px; bottom:5px; border-left:1px solid var(--line); }.place-facts span,.place-facts small,.place-facts strong { display:block; }.place-facts span { font-size:20px; }.place-facts small { margin-top:3px; color:var(--muted); font-size:7.5px; }.place-facts strong { margin-top:3px; font-size:9px; }
.place-description { margin-top:11px; padding:14px; }.place-description h2 { margin:0; font-size:14px; }.place-description p { margin:7px 0 0; color:#5e554e; font-size:10.5px; line-height:1.7; }
.place-actions { margin-top:11px; padding:8px; display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }.place-actions button { min-height:42px; border:0; border-radius:11px; background:#f6f1eb; color:#625851; display:flex; align-items:center; justify-content:center; gap:5px; font-size:9.5px; cursor:pointer; }

/* Cabin, shop and coins */
.p2-page-cabin { padding:0 0 32px; background:#f8f0e5; }
.cabin-header { padding:calc(var(--status-h) + 14px) 16px 13px; background:linear-gradient(180deg,#f3e9dd,#f8f0e5); }
.cabin-title-row { margin-top:23px; display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.cabin-title-row h1 { margin:0; font-size:25px; }.cabin-title-row p { margin:5px 0 0; max-width:235px; color:#746458; font-size:9.5px; line-height:1.45; }
.cabin-wallet { display:flex; gap:5px; }.cabin-wallet button { min-height:36px; padding:0 10px; border:1px solid rgba(139,91,42,.16); border-radius:999px; background:rgba(255,255,255,.84); color:#76501f; display:flex; align-items:center; gap:4px; cursor:pointer; font-size:9.5px; font-weight:760; }
.cabin-mode-tabs { margin:0 16px 10px; padding:4px; display:grid; grid-template-columns:repeat(3,1fr); gap:4px; border-radius:14px; background:#e5d9cd; }.cabin-mode-tabs button { min-height:36px; border:0; border-radius:10px; background:transparent; color:#796a5d; cursor:pointer; font-size:10px; }.cabin-mode-tabs button.active { background:#fff; color:#7c4b18; box-shadow:var(--shadow-soft); font-weight:760; }
.p2-room-stage { height:510px; position:relative; overflow:hidden; background:#d6c4ac; touch-action:none; }
.room-background { width:100%; height:100%; object-fit:cover; }
.cabin-video-hotspot { position:absolute; right:30px; top:177px; width:142px; height:90px; border:0; border-radius:12px; background:transparent; display:grid; place-items:center; cursor:pointer; }.cabin-video-hotspot span { width:50px; height:50px; border-radius:50%; background:rgba(39,42,43,.62); color:#fff; display:grid; place-items:center; }
.pet-hotspot { position:absolute; left:42%; top:65%; width:95px; height:120px; border:0; background:transparent; cursor:pointer; }.pet-label { position:absolute; left:50%; bottom:-4px; transform:translateX(-50%); min-width:100px; padding:5px 8px; border-radius:999px; background:rgba(255,255,255,.94); color:#72503c; font-size:8.5px; box-shadow:var(--shadow-soft); }
.p2-room-stage .expand-room { right:17px; bottom:16px; min-width:138px; height:43px; font-size:12px; }
.placed-room-item { position:absolute; width:86px; padding:0; border:0; background:transparent; transform:translate(-50%,-50%); cursor:pointer; filter:drop-shadow(0 6px 7px rgba(51,35,22,.16)); z-index:4; }.placed-room-item img { width:100%; height:75px; object-fit:contain; }.placed-room-item span { display:none; }.placed-room-item.draggable { cursor:grab; outline:2px dashed rgba(47,152,167,.65); outline-offset:2px; border-radius:8px; }.placed-room-item.dragging { cursor:grabbing; z-index:15; transform:translate(-50%,-50%) scale(1.06); }
.cabin-view-panel { padding:10px 16px 0; display:grid; gap:9px; }
.pet-progress-card { padding:11px; display:grid; grid-template-columns:40px 1fr auto; gap:9px; align-items:center; }.pet-progress-card > span { font-size:30px; }.pet-progress-card strong,.pet-progress-card small { display:block; }.pet-progress-card strong { font-size:11px; }.pet-progress-card small { margin-top:3px; color:var(--muted); font-size:8.5px; }.pet-progress-card i { display:block; height:5px; margin-top:6px; border-radius:99px; background:#eee6dc; overflow:hidden; }.pet-progress-card i b { display:block; height:100%; background:linear-gradient(90deg,#f6b340,#73b8b8); }.pet-progress-card button { min-height:34px; padding:0 9px; border:0; border-radius:10px; background:#fff0cd; color:#865317; font-size:8.5px; cursor:pointer; }
.cabin-reward-card { padding:11px; display:flex; align-items:center; justify-content:space-between; gap:10px; }.cabin-reward-card > div { display:grid; grid-template-columns:32px 1fr; column-gap:8px; }.cabin-reward-card > div > span { grid-row:1/3; width:32px; height:32px; border-radius:10px; background:var(--teal-soft); color:var(--teal-deep); display:grid; place-items:center; }.cabin-reward-card strong { font-size:10.5px; }.cabin-reward-card p { margin:3px 0 0; color:var(--muted); font-size:8px; }.cabin-reward-card > button { min-height:32px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--teal-deep); font-size:8.5px; cursor:pointer; }
.p2-decorator-panel { margin:0; border-radius:0; padding:12px 12px 20px; }
.decorate-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; color:#796a5e; font-size:9px; }.decorate-toolbar > div { display:flex; gap:4px; }.decorate-toolbar button { width:32px; height:32px; border:1px solid var(--line); border-radius:9px; background:#fff; display:grid; place-items:center; cursor:pointer; }
.shop-item small { display:block; margin-top:3px; color:var(--muted); font-size:8px; }.shop-item.locked { opacity:.72; }
.cabin-shop-panel { margin:0; border-radius:0; }
.shop-category-row { display:flex; gap:6px; overflow:auto; margin-bottom:12px; }.shop-category-row button { min-height:34px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#675d56; font-size:9px; }.shop-category-row button.active { background:var(--teal); color:#fff; border-color:transparent; }
.shop-product-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.shop-product { overflow:hidden; }.shop-product > img { width:100%; height:145px; object-fit:contain; padding:10px; background:#f7f1ea; }.shop-product > div { padding:10px; }.shop-product span { color:var(--teal-deep); font-size:8px; }.shop-product h3 { margin:4px 0; font-size:12px; }.shop-product p { min-height:25px; margin:0 0 8px; color:var(--muted); font-size:8.5px; line-height:1.45; }.shop-product button { width:100%; min-height:38px; border-radius:11px; font-size:9.5px; }
.coin-balance-card { min-height:120px; padding:18px; border-radius:22px; background:linear-gradient(135deg,#ffd77a,#f6a82d); color:#6b3b09; display:flex; align-items:center; gap:15px; box-shadow:0 12px 27px rgba(222,143,24,.2); }.coin-balance-card > span { width:60px; height:60px; border-radius:50%; background:rgba(255,255,255,.38); display:grid; place-items:center; }.coin-balance-card small,.coin-balance-card strong { display:block; }.coin-balance-card small { font-size:10px; }.coin-balance-card strong { margin-top:2px; font-size:30px; }
.coin-rules { margin-top:12px; padding:14px; }.coin-rules h2 { margin:0 0 9px; font-size:14px; }.coin-rules p { margin:0; padding:8px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; font-size:10px; }.coin-rules p strong { color:var(--teal-deep); }
.coin-history-list { margin-top:12px; display:grid; gap:8px; }.coin-history-list article { padding:11px; display:grid; grid-template-columns:54px 1fr; gap:10px; align-items:center; }.coin-history-list > article > span { font-size:13px; font-weight:800; }.coin-history-list .plus { color:#419069; }.coin-history-list .minus { color:#d36a58; }.coin-history-list strong,.coin-history-list small { display:block; }.coin-history-list strong { font-size:10.5px; }.coin-history-list small { margin-top:3px; color:var(--muted); font-size:8.5px; }
.room-item-modal { text-align:center; }.room-item-modal img { width:150px; height:120px; margin:auto; object-fit:contain; }.room-item-modal p { color:var(--muted); font-size:11px; }.room-item-modal strong { color:#8d5d1b; }
.pet-modal { text-align:center; }.pet-modal > span { font-size:72px; }.pet-modal p { margin:5px 0; }.pet-progress { height:7px; border-radius:99px; background:#ece4db; overflow:hidden; }.pet-progress i { display:block; height:100%; background:linear-gradient(90deg,#f5aa2e,#5ab4b7); }.pet-modal small { display:block; margin-top:8px; color:var(--muted); font-size:9px; }

/* Profile, achievements, collections, settings */
.p2-profile-hero { min-height:305px; }
.profile-menu-grid { margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.profile-menu-card { min-height:84px; padding:11px; display:grid; grid-template-columns:36px 1fr 18px; grid-template-rows:auto auto; gap:1px 7px; align-items:center; text-align:left; cursor:pointer; }.profile-menu-card > span { grid-row:1/3; font-size:27px; }.profile-menu-card strong { font-size:11.5px; }.profile-menu-card small { color:var(--muted); font-size:8.5px; }.profile-menu-card .icon { grid-column:3; grid-row:1/3; }
.achievement.locked { filter:grayscale(.65); opacity:.55; }
.profile-login,.profile-logout { width:100%; min-height:46px; margin-top:18px; border-radius:14px; }.profile-logout { border:1px solid #f0c9c3; background:#fff; color:#bd574d; display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; }
.achievement-progress-summary { min-height:112px; padding:16px; border-radius:20px; background:linear-gradient(135deg,#e8f8f8,#fff5dd); display:grid; grid-template-columns:55px 1fr; gap:10px; align-items:center; box-shadow:var(--shadow); }.achievement-progress-summary > span { font-size:44px; }.achievement-progress-summary strong,.achievement-progress-summary small { display:block; }.achievement-progress-summary strong { font-size:24px; }.achievement-progress-summary small { color:var(--muted); font-size:9px; }.achievement-progress-summary > i { grid-column:1/-1; height:7px; border-radius:99px; background:#e7ded5; overflow:hidden; }.achievement-progress-summary > i b { display:block; height:100%; background:linear-gradient(90deg,#4eabb4,#efad37); }
.achievement-filter-row { display:flex; gap:6px; margin:12px 0; }.achievement-filter-row button { min-height:34px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:9px; }.achievement-filter-row button.active { background:var(--teal); color:#fff; border-color:transparent; }
.achievement-list { display:grid; gap:9px; }.achievement-list-card { padding:10px; display:grid; grid-template-columns:76px 1fr 25px; gap:9px; align-items:center; }.achievement-list-card > img { width:76px; height:76px; object-fit:contain; }.achievement-list-card > div > span { color:var(--teal-deep); font-size:8px; }.achievement-list-card h3 { margin:3px 0; font-size:12.5px; }.achievement-list-card p { margin:0; color:var(--muted); font-size:8.5px; }.achievement-progress { height:6px; margin:7px 0 4px; border-radius:99px; background:#ebe3da; overflow:hidden; }.achievement-progress i { display:block; height:100%; background:linear-gradient(90deg,#56adb5,#edb143); }.achievement-list-card small { color:#8d8178; font-size:8px; }.achievement-list-card > button { width:25px; height:30px; border:0; background:transparent; display:grid; place-items:center; cursor:pointer; }
.achievement-modal { text-align:center; }.achievement-modal img { width:120px; height:120px; margin:auto; object-fit:contain; }.achievement-modal p { color:#5e554f; font-size:11px; }.achievement-modal strong,.achievement-modal small { display:block; }.achievement-modal small { margin-top:6px; color:var(--muted); font-size:9px; }
.author-profile-card { padding:14px; display:grid; grid-template-columns:70px 1fr auto; gap:11px; align-items:center; }.author-profile-card > img { width:70px; height:70px; border-radius:50%; object-fit:cover; }.author-profile-card h1 { margin:0; font-size:18px; }.author-profile-card p { margin:5px 0; color:var(--muted); font-size:9px; line-height:1.5; }.author-profile-card > div > div { display:flex; gap:8px; color:#665c55; font-size:8px; }.author-profile-card > button { min-height:36px; padding:0 12px; }
.collection-list { display:grid; gap:10px; }.collection-card { min-height:116px; padding:10px; display:grid; grid-template-columns:112px 1fr 28px; gap:10px; align-items:center; }.collection-cover-stack { width:112px; height:92px; position:relative; }.collection-cover-stack img { position:absolute; width:76px; height:76px; border:3px solid #fff; border-radius:13px; object-fit:cover; box-shadow:var(--shadow-soft); }.collection-cover-stack img:nth-child(1){left:0;top:8px;z-index:3}.collection-cover-stack img:nth-child(2){left:18px;top:3px;z-index:2}.collection-cover-stack img:nth-child(3){left:36px;top:0;z-index:1}.collection-card h2 { margin:0; font-size:14px; }.collection-card p { margin:4px 0; color:var(--muted); font-size:9px; }.collection-card > div:nth-child(2) button { border:0; background:transparent; color:var(--teal-deep); display:flex; align-items:center; font-size:9px; cursor:pointer; }.collection-more { width:28px; height:32px; border:0; background:transparent; display:grid; place-items:center; cursor:pointer; }
.settings-group { margin-bottom:11px; padding:13px; }.settings-group h2 { margin:0 0 7px; font-size:13px; }.setting-row { min-height:58px; display:grid; grid-template-columns:35px 1fr auto; gap:8px; align-items:center; border-top:1px solid var(--line); }.setting-emoji { font-size:23px; }.setting-row strong,.setting-row small { display:block; }.setting-row strong { font-size:10.5px; }.setting-row small { margin-top:2px; color:var(--muted); font-size:8px; }.setting-row > button { min-height:30px; padding:0 9px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--teal-deep); font-size:8.5px; cursor:pointer; }.setting-row select { max-width:90px; min-height:32px; border:1px solid var(--line); border-radius:9px; background:#fff; font-size:8.5px; }
.switch { width:42px; height:24px; position:relative; }.switch input { position:absolute; opacity:0; }.switch i { position:absolute; inset:0; border-radius:99px; background:#d8d0c8; transition:.2s; }.switch i::after { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.2); transition:.2s; }.switch input:checked + i { background:var(--teal); }.switch input:checked + i::after { transform:translateX(18px); }
.danger-zone > button { width:100%; min-height:42px; margin-top:7px; border:1px solid var(--line); border-radius:11px; background:#fff; font-size:9.5px; cursor:pointer; }.danger-zone > button.danger { border-color:#f0c8c2; background:#fff5f4; }
.settings-version { margin:16px 0 0; color:#a0948b; text-align:center; font-size:8px; }

/* AI tools */
.voice-card { padding:20px 15px; text-align:center; background:linear-gradient(145deg,#e7f8f8,#fffaf2); }
.voice-orb { width:82px; height:82px; margin:0 auto 12px; border-radius:50%; background:linear-gradient(145deg,#69c7cd,#2f8e9a); color:#fff; display:grid; place-items:center; box-shadow:0 14px 28px rgba(47,152,167,.25); position:relative; }.voice-card.recording .voice-orb::before,.voice-card.recording .voice-orb::after { content:""; position:absolute; inset:-10px; border:2px solid rgba(47,152,167,.25); border-radius:50%; animation:pulseRing 1.5s ease-out infinite; }.voice-card.recording .voice-orb::after { animation-delay:.55s; }
@keyframes pulseRing { 0%{transform:scale(.8);opacity:.7}100%{transform:scale(1.35);opacity:0} }
.voice-card h1 { margin:0; font-size:20px; }.voice-card p { max-width:330px; margin:7px auto 13px; color:#625a54; font-size:10.5px; line-height:1.65; }.record-button { min-width:148px; min-height:44px; }
.voice-wave { height:36px; margin-top:13px; display:flex; align-items:center; justify-content:center; gap:3px; }.voice-wave i { width:3px; height:8px; border-radius:3px; background:var(--teal); opacity:.35; }.recording .voice-wave i { animation:wave 1s ease-in-out infinite; animation-delay:calc(var(--i) * -.06s); }
@keyframes wave { 0%,100%{height:7px;opacity:.3}50%{height:31px;opacity:1} }
.transcript-card { margin-top:12px; padding:13px; }.transcript-card .textarea-head { display:flex; justify-content:space-between; align-items:center; }.transcript-card .textarea-head button { border:0; background:transparent; color:var(--teal-deep); font-size:9px; cursor:pointer; }.transcript-card textarea { width:100%; min-height:130px; margin-top:8px; padding:11px; border:1px solid var(--line); border-radius:13px; background:#fff; line-height:1.65; font-size:11px; }
.transcript-examples { margin-top:8px; display:flex; gap:5px; overflow:auto; align-items:center; scrollbar-width:none; color:#90847a; font-size:8.5px; }.transcript-examples button { flex:0 0 auto; min-height:27px; padding:0 8px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#675e57; font-size:8px; cursor:pointer; }
.analyze-record-button { width:100%; margin-top:11px; }
.ai-processing { margin-top:12px; padding:18px 14px; text-align:center; }.processing-orb { width:54px; height:54px; margin:auto; border-radius:18px; background:var(--teal-soft); color:var(--teal-deep); display:grid; place-items:center; animation:processing 1.25s ease-in-out infinite; }@keyframes processing{50%{transform:scale(1.08) rotate(4deg)}}.ai-processing strong { display:block; margin-top:9px; font-size:12px; }.ai-processing p { margin:5px 0 0; color:var(--muted); font-size:9px; line-height:1.5; }
.ai-result-card { margin-top:12px; padding:14px; }.ai-result-head { display:flex; justify-content:space-between; align-items:center; }.ai-result-head button { border:0; background:transparent; color:var(--teal-deep); font-size:9px; cursor:pointer; }.ai-generated-badge { padding:5px 8px; border-radius:999px; background:#eaf8f8; color:var(--teal-deep); font-size:8.5px; font-weight:800; }
.ai-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:10px; }.ai-field-grid > div { padding:9px; border-radius:11px; background:#f7f3ee; }.ai-field-grid small,.ai-field-grid strong { display:block; }.ai-field-grid small { color:var(--muted); font-size:7.5px; }.ai-field-grid strong { margin-top:3px; font-size:10px; }.ai-result-card > p { color:#5d544e; font-size:10.5px; line-height:1.65; }.ai-result-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:8px; }.ai-result-actions button { min-height:42px; border-radius:12px; font-size:10px; }
.ai-photo-stepper { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-bottom:12px; }.ai-photo-stepper span { min-height:35px; border-radius:11px; background:#eee8e1; color:#91857c; display:grid; place-items:center; font-size:8.5px; }.ai-photo-stepper span.active { background:#e7f6f6; color:var(--teal-deep); font-weight:760; }
.photo-import-card { padding:28px 18px; text-align:center; }.photo-import-card > span { width:68px; height:68px; margin:auto; border-radius:22px; background:var(--teal-soft); color:var(--teal-deep); display:grid; place-items:center; }.photo-import-card h1 { margin:12px 0 5px; font-size:18px; }.photo-import-card p { margin:0 auto 15px; max-width:320px; color:var(--muted); font-size:9.5px; line-height:1.65; }.photo-import-button { min-height:42px; padding:0 14px; border-radius:999px; background:var(--teal); color:#fff; display:inline-flex; align-items:center; gap:6px; cursor:pointer; font-size:10px; font-weight:760; position:relative; overflow:hidden; }.photo-import-button input { position:absolute; inset:0; opacity:0; cursor:pointer; }.photo-import-card .soft-button { margin-left:7px; }
.ai-category-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:10px; }.ai-category-summary > div { min-height:55px; padding:7px 3px; border-radius:12px; background:#fff; border:1px solid var(--line); text-align:center; }.ai-category-summary strong,.ai-category-summary span { display:block; }.ai-category-summary strong { font-size:16px; color:var(--teal-deep); }.ai-category-summary span { margin-top:3px; color:var(--muted); font-size:8px; }
.ai-photo-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }.ai-photo-item { overflow:hidden; position:relative; }.ai-photo-item > img { width:100%; height:125px; object-fit:cover; }.ai-photo-item > div { padding:8px; }.ai-photo-item > div > span { color:var(--teal-deep); font-size:7.5px; }.ai-photo-item strong,.ai-photo-item small { display:block; }.ai-photo-item strong { margin-top:2px; font-size:10.5px; }.ai-photo-item small { margin-top:3px; color:#6c9b73; font-size:7.5px; display:flex; align-items:center; gap:3px; }.ai-photo-item.privacy-risk small { color:#c77c31; }.ai-photo-item > button { position:absolute; right:6px; top:6px; width:25px; height:25px; border:0; border-radius:8px; background:var(--teal); color:#fff; display:grid; place-items:center; cursor:pointer; }.ai-photo-item > button.excluded,.ai-photo-item:has(>button.excluded) { opacity:.45; }
.privacy-review-panel { margin-top:11px; padding:12px; }.privacy-review-panel > div { display:grid; grid-template-columns:30px 1fr; gap:8px; align-items:start; }.privacy-review-panel > div > .icon { width:30px!important; height:30px!important; padding:6px; border-radius:10px; background:#fff0d7; color:#b67620; }.privacy-review-panel strong,.privacy-review-panel small { display:block; }.privacy-review-panel strong { font-size:10px; }.privacy-review-panel small { margin-top:4px; color:var(--muted); font-size:8.5px; line-height:1.45; }.privacy-review-panel label { margin-top:10px; }.apply-photo-result { width:100%; min-height:48px; margin-top:11px; }
.plan-brief { padding:14px; }.plan-brief-head { display:grid; grid-template-columns:40px 1fr; gap:9px; align-items:center; }.plan-brief-head > span { width:40px; height:40px; border-radius:13px; background:var(--teal); color:#fff; display:grid; place-items:center; }.plan-brief-head strong,.plan-brief-head small { display:block; }.plan-brief-head strong { font-size:13px; }.plan-brief-head small { margin-top:3px; color:var(--muted); font-size:8.5px; }
.plan-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:13px; }.plan-form-grid label { color:#695f58; font-size:8.5px; }.plan-form-grid input,.plan-form-grid select { width:100%; min-height:40px; margin-top:4px; padding:0 8px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:9.5px; }
.plan-source-list { display:grid; gap:7px; margin-top:8px; }.plan-source-list label { min-height:62px; padding:6px; border:1px solid var(--line); border-radius:12px; background:#fff; display:grid; grid-template-columns:20px 60px 1fr; gap:7px; align-items:center; }.plan-source-list input { accent-color:var(--teal); }.plan-source-list img { width:60px; height:48px; border-radius:8px; object-fit:cover; }.plan-source-list strong,.plan-source-list small { display:block; }.plan-source-list strong { font-size:9.5px; }.plan-source-list small { margin-top:3px; color:var(--muted); font-size:7.5px; }.generate-plan-button { width:100%; min-height:48px; margin-top:12px; }
.plan-result { margin-top:12px; }.plan-health { padding:12px; display:grid; grid-template-columns:55px 1fr; gap:10px; align-items:center; background:linear-gradient(135deg,#eaf8f8,#fff7e7); }.plan-score { width:55px; height:55px; border-radius:50%; border:6px solid #67b8b8; display:grid; place-items:center; color:var(--teal-deep); font-size:17px; font-weight:850; }.plan-health strong { font-size:12px; }.plan-health p { margin:4px 0 0; color:var(--muted); font-size:8.5px; line-height:1.45; }
.plan-days { display:grid; gap:10px; margin-top:10px; }.plan-day { padding:12px; }.plan-day-head { display:grid; grid-template-columns:48px 1fr 28px; gap:8px; align-items:center; }.plan-day-head > span { min-height:30px; border-radius:9px; background:var(--teal); color:#fff; display:grid; place-items:center; font-size:8px; font-weight:800; }.plan-day-head strong,.plan-day-head small { display:block; }.plan-day-head strong { font-size:11px; }.plan-day-head small { margin-top:2px; color:var(--muted); font-size:8px; }.plan-day-head button { width:28px; height:30px; border:0; background:transparent; display:grid; place-items:center; cursor:pointer; }
.plan-event-list { margin-top:10px; display:grid; gap:4px; }.plan-event { min-height:58px; display:grid; grid-template-columns:42px 32px 1fr 24px; gap:6px; align-items:center; border-top:1px solid var(--line); }.plan-event time { color:var(--teal-deep); font-size:8.5px; font-weight:760; }.plan-event-icon { font-size:19px; }.plan-event strong,.plan-event small { display:block; }.plan-event strong { font-size:9.5px; }.plan-event small { margin-top:3px; color:var(--muted); font-size:7.5px; }.plan-order-buttons { display:grid; gap:2px; }.plan-order-buttons button { width:23px; height:22px; border:1px solid var(--line); border-radius:6px; background:#fff; color:#70655d; font-size:8px; cursor:pointer; }.save-plan-button { width:100%; min-height:50px; margin-top:11px; }
.recap-trip-card { padding:9px; display:grid; grid-template-columns:78px 1fr auto; gap:9px; align-items:center; }.recap-trip-card img { width:78px; height:62px; border-radius:11px; object-fit:cover; }.recap-trip-card small,.recap-trip-card strong,.recap-trip-card span { display:block; }.recap-trip-card small { color:var(--muted); font-size:7.5px; }.recap-trip-card strong { margin:3px 0; font-size:10.5px; }.recap-trip-card span { color:#776d65; font-size:8px; }.recap-trip-card button { border:0; background:transparent; color:var(--teal-deep); font-size:8.5px; cursor:pointer; }
.recap-type-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:11px; }.recap-type { min-height:78px; padding:10px; display:grid; grid-template-columns:34px 1fr 18px; gap:7px; align-items:center; text-align:left; cursor:pointer; }.recap-type > span { font-size:27px; }.recap-type strong,.recap-type small { display:block; }.recap-type strong { font-size:10.5px; }.recap-type small { margin-top:3px; color:var(--muted); font-size:7.5px; line-height:1.35; }.recap-type.active { border-color:rgba(47,152,167,.45); background:#f2ffff; }.recap-type.active > .icon { color:var(--teal-deep); }
.generate-recap-button { width:100%; min-height:48px; margin-top:11px; }.recap-result-card { margin-top:11px; padding:14px; }.recap-result-head { display:flex; justify-content:space-between; align-items:center; }.recap-result-head > div { display:flex; gap:5px; }.recap-result-head button { min-height:30px; padding:0 8px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#625850; display:flex; align-items:center; gap:4px; font-size:8px; cursor:pointer; }.recap-text { margin-top:12px; color:#504842; font-size:10.5px; line-height:1.75; }.recap-disclaimer { margin-top:12px; padding:8px; border-radius:9px; background:#fff1d8; color:#775b34; font-size:8px; line-height:1.45; }
.storyboard-list { margin-top:12px; display:grid; gap:7px; }.storyboard-list article { min-height:74px; display:grid; grid-template-columns:105px 1fr; gap:9px; border:1px solid var(--line); border-radius:12px; overflow:hidden; }.storyboard-list img { width:105px; height:100%; object-fit:cover; }.storyboard-list > article > div { padding:8px 8px 8px 0; }.storyboard-list strong { font-size:9px; color:var(--teal-deep); }.storyboard-list p { margin:4px 0 0; color:#5e554f; font-size:8.5px; line-height:1.5; }

/* Share card */
.share-style-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:4px; border-radius:13px; background:#ece7e1; }.share-style-tabs button { min-height:35px; border:0; border-radius:10px; background:transparent; color:#766b64; font-size:9px; cursor:pointer; }.share-style-tabs button.active { background:#fff; color:var(--teal-deep); box-shadow:var(--shadow-soft); font-weight:760; }
.share-card-preview { position:relative; aspect-ratio:4/5; margin:11px auto; max-height:580px; overflow:hidden; border-radius:22px; box-shadow:var(--shadow-float); background:#123; }.share-card-preview > img { width:100%; height:100%; object-fit:cover; }.share-card-overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(7,25,37,.04) 18%,rgba(8,26,37,.25) 47%,rgba(8,24,34,.92)); }.share-card-copy { position:absolute; left:24px; right:24px; bottom:24px; color:#fff; }.share-card-copy > span:first-child { font-size:8px; letter-spacing:.18em; opacity:.8; }.share-card-copy h1 { margin:7px 0 5px; font-size:25px; line-height:1.25; }.share-card-copy p { margin:0; font-size:9px; opacity:.82; }.share-tags { display:flex; gap:5px; margin-top:9px; }.share-tags b { font-size:8px; color:#ffdc8f; }.share-card-copy blockquote { margin:12px 0 8px; font-size:9.5px; line-height:1.6; border-left:2px solid rgba(255,255,255,.6); padding-left:8px; }.share-author { font-size:8px; opacity:.78; }
.share-card-preview.journal { border:10px solid #fff9ef; border-radius:8px; }.share-card-preview.journal .share-card-copy { color:#493b30; background:rgba(255,250,241,.9); left:12px; right:12px; bottom:12px; padding:16px; border-radius:4px; }.share-card-preview.journal .share-card-overlay { background:linear-gradient(180deg,transparent 55%,rgba(255,249,238,.7)); }.share-card-preview.journal .share-tags b { color:#b56f18; }
.share-card-preview.minimal .share-card-copy blockquote,.share-card-preview.minimal .share-tags { display:none; }.share-card-preview.minimal .share-card-copy h1 { font-size:29px; }
.share-options { padding:12px; display:grid; gap:8px; }.download-share-button,.share-native-button { width:100%; min-height:48px; margin-top:9px; }.share-native-button { border-radius:14px; }

/* Modals, 404 and misc */
.modal-title-row { display:flex; justify-content:space-between; align-items:center; }.modal-title-row > button { width:34px; height:34px; border:0; border-radius:50%; background:#f3eee8; display:grid; place-items:center; cursor:pointer; }
.create-menu-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:13px; }.create-menu-grid button { min-height:105px; padding:13px; border:1px solid var(--line); border-radius:16px; background:#fff; text-align:left; cursor:pointer; }.create-menu-grid button > span { font-size:28px; }.create-menu-grid strong,.create-menu-grid small { display:block; }.create-menu-grid strong { margin-top:7px; font-size:12px; }.create-menu-grid small { margin-top:4px; color:var(--muted); font-size:8.5px; line-height:1.4; }
.filter-form { margin-top:13px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }.filter-form label { color:#71665e; font-size:9px; }.filter-form select { width:100%; min-height:42px; margin-top:5px; padding:0 9px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.modal-textarea { margin-top:8px; box-shadow:none; }.modal-textarea textarea { min-height:90px; }.verification-field input { text-align:center; font-size:20px; letter-spacing:.25em; }
.modal-menu-list { margin-top:10px; display:grid; }.modal-menu-list button { min-height:49px; padding:0 4px; border:0; border-top:1px solid var(--line); background:transparent; display:grid; grid-template-columns:30px 1fr; gap:7px; align-items:center; text-align:left; cursor:pointer; }.modal-menu-list span { font-size:11px; }
.location-picker { margin-top:10px; }.location-map { height:160px; position:relative; overflow:hidden; border-radius:14px; }.location-map img { width:100%; height:100%; object-fit:cover; }.location-map span { position:absolute; left:58%; top:42%; width:24px; height:24px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:#f06c4b; box-shadow:0 4px 8px rgba(0,0,0,.25); }.location-picker > button { width:100%; min-height:43px; border:0; border-top:1px solid var(--line); background:transparent; display:grid; grid-template-columns:24px 1fr 20px; gap:5px; align-items:center; text-align:left; font-size:10px; cursor:pointer; }
.not-found-scene { min-height:600px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }.not-found-scene > span { font-size:68px; }.not-found-scene h1 { margin:12px 0 5px; font-size:22px; }.not-found-scene p { max-width:280px; margin:0 0 16px; color:var(--muted); font-size:10.5px; line-height:1.6; }.not-found-scene button { min-height:44px; padding:0 18px; }

/* Real-phone behavior: remove the decorative duplicate status chrome. */
@media (max-width:520px) {
  :root { --status-h:0px; --nav-h:78px; }
  .status-bar,.home-indicator { display:none!important; }
  .page { padding-top:max(12px,env(safe-area-inset-top)); padding-bottom:calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); }
  .p2-deep-page { padding-bottom:calc(30px + env(safe-area-inset-bottom)); }
  .hero-scenic,.map-hero,.profile-hero { margin-top:calc(max(12px,env(safe-area-inset-top)) * -1); padding-top:calc(max(12px,env(safe-area-inset-top)) + 17px); }
  .enhanced-topbar { margin-top:calc(max(12px,env(safe-area-inset-top)) * -1); padding-top:max(12px,env(safe-area-inset-top)); height:calc(64px + max(12px,env(safe-area-inset-top))); }
  .guide-back,.guide-share,.place-hero > button,.album-back,.album-more { top:calc(max(12px,env(safe-area-inset-top)) + 8px); }
  .album-counter { top:calc(max(12px,env(safe-area-inset-top)) + 19px); }
  .cabin-header { padding-top:calc(max(12px,env(safe-area-inset-top)) + 14px); }
  .bottom-nav { bottom:max(5px,env(safe-area-inset-bottom)); }
  .editor-action-bar,.deep-action-bar { bottom:max(8px,env(safe-area-inset-bottom)); }
  .offline-banner { top:calc(max(12px,env(safe-area-inset-top)) + 8px); }
  .page-album { padding:0; }
}
@media (max-width:380px) {
  .trip-list-card,.trip-list-card.compact { grid-template-columns:105px 1fr; }
  .trip-list-card > img,.trip-list-card.compact > img { height:103px; }
  .guide-fact-grid { grid-template-columns:1fr 1fr; }
  .recommendation-row { grid-template-columns:36px 90px 1fr 16px; }
  .recommendation-images img { height:42px; }
  .p2-room-stage { height:470px; }
  .profile-menu-grid,.recap-type-grid,.ai-photo-grid,.shop-product-grid { gap:7px; }
}

/* P2 mobile overflow correction: the legacy room stage used negative gutters. */
.p2-page-cabin .p2-room-stage {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}
