:root {
  --canvas: #fffafb;
  --surface: #ffffff;
  --white: #ffffff;
  --ink: #29282d;
  --muted: #8f939d;
  --soft: #f2f1f3;
  --line: #ecebef;
  --accent: #fd2d61;
  --accent-2: #ff6559;
  --blue: #3b82f6;
  --shadow: 0 22px 55px rgba(54, 25, 37, 0.16);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; }
.gradient-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(253, 45, 97, 0.08), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255, 101, 89, 0.09), transparent 32%),
    var(--canvas);
}

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border: 1px solid rgba(48, 37, 43, 0.1);
  border-radius: 44px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(46, 27, 35, 0.18);
}

.app, .screen { width: 100%; height: 100%; }
.screen { position: relative; overflow: hidden; background: var(--surface); }
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar, .detail-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 4px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -0.055em;
}
.wordmark .mark { font-size: 22px; line-height: 1; }
.wordmark.compact { font-size: 20px; }
.topbar-actions { display: flex; gap: 8px; }
.square-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}
.square-button:hover { background: var(--soft); }
.square-button:focus-visible, button:focus-visible {
  outline: 3px solid rgba(253, 45, 97, 0.3);
  outline-offset: 2px;
}

.filter-summary {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.filter-summary span { color: var(--ink); }
.filter-summary b { font-weight: 520; }
.filter-summary button { padding: 4px 8px; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 680; cursor: pointer; }

.deck {
  position: relative;
  width: calc(100% - 36px);
  height: 574px;
  margin: 2px 18px 0;
  perspective: 1000px;
}
.opportunity-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #202025;
  box-shadow: var(--shadow);
  touch-action: none;
  transform-origin: 50% 100%;
  transition: transform 260ms var(--ease), opacity 220ms ease;
  user-select: none;
}
.opportunity-card.is-behind {
  z-index: 0;
  opacity: 0.46;
  transform: translateY(10px) scale(0.965);
  pointer-events: none;
}
.opportunity-card:not(.is-behind) { z-index: 2; }
.opportunity-card.is-dragging { transition: none; }
.opportunity-card.fly-left { opacity: 0; transform: translateX(-145%) rotate(-18deg) !important; }
.opportunity-card.fly-right { opacity: 0; transform: translateX(145%) rotate(18deg) !important; }
.opportunity-card.open-detail { opacity: .96; transform: translateY(-18px) scale(1.018) !important; }
.opportunity-card:not(.is-behind) > img,
.detail-hero > img { view-transition-name: mohae-hero; }
.opportunity-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.opportunity-card > img.is-fallback,
.detail-hero img.is-fallback {
  padding: 42px;
  background: #171419;
  object-fit: contain;
}
.opportunity-card::before {
  position: absolute;
  z-index: 1;
  inset: 32% 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 7, 10, 0.1) 28%, rgba(8, 5, 8, 0.9) 100%);
  content: "";
  pointer-events: none;
}
.opportunity-card[data-direction]::after {
  position: absolute;
  z-index: 6;
  top: 70px;
  padding: 9px 15px;
  border: 4px solid currentColor;
  border-radius: 8px;
  opacity: var(--decision-opacity, 0);
  font-size: 27px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-10deg);
  pointer-events: none;
}
.opportunity-card[data-direction="save"]::after { left: 24px; color: #43dfaf; content: "SAVE"; }
.opportunity-card[data-direction="pass"]::after { right: 24px; color: #ff5d6c; content: "PASS"; transform: rotate(10deg); }

.photo-progress {
  position: absolute;
  z-index: 5;
  top: 17px;
  pointer-events: none;
  right: 18px;
  left: 18px;
  display: flex;
  gap: 5px;
}
.photo-progress i {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  flex: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.photo-progress i.is-current, .photo-progress i.is-seen { background: #fff; }
.card-photo-count {
  position: absolute;
  z-index: 5;
  top: 34px;
  right: 18px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(18,17,20,.5);
  color: #fff;
  font-size: 10px;
  font-weight: 720;
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.card-collection-chip {
  position: relative;
  z-index: 6;
  max-width: 190px;
  min-width: 0;
  min-height: 28px;
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(28,24,31,.72);
  color: #fff;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.card-collection-chip .icon { width: 13px; height: 13px; flex: 0 0 auto; }
.card-collection-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-collection-chip.is-mohae-collection { border-color: rgba(255,255,255,.46); background: rgba(239,35,76,.94); }
.card-collection-chip.is-mohae-collection .icon { color: #fff; }
.card-collection-chip.is-external-source { border-color: rgba(255,255,255,.42); background: rgba(17,16,19,.92); }
.card-collection-chip.is-external-source .icon { color: #fff; }
.card-collection-chip > b { margin-left: 1px; font-size: 14px; line-height: 1; }
.card-selection-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(28,24,31,.76);
  color: #fff;
  font-size: 10px;
  font-weight: 760;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.card-selection-chip .icon { width: 13px; height: 13px; flex: 0 0 auto; }
.card-selection-chip.is-institution {
  border-color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.94);
  color: #171419;
}
.card-selection-chip .michelin-star-marks { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 1px; }
.card-selection-chip .michelin-mark { display: block; flex: 0 0 auto; object-fit: contain; }
.card-selection-chip .michelin-mark.is-star { width: 11px; height: 13px; }
.card-selection-chip .michelin-mark.is-bib { width: 15px; height: 14px; }
.photo-cycle {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.card-information {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 250px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 41px 22px 58px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  pointer-events: none;
}
.category-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.category-kicker.accent { color: var(--accent); }
.card-information strong {
  max-width: 95%;
  font-size: 31px;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.card-subtitle {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 13px;
  font-weight: 500;
}
.card-event-meta { max-width: 100%; display: flex; align-items: center; gap: 5px; margin-top: 10px; color: rgba(255,255,255,.86); font-size: 10px; white-space: nowrap; }
.card-event-meta .icon { width: 12px; height: 12px; flex: 0 0 auto; }
.card-event-meta b { min-width: 0; overflow: hidden; font-weight: 650; text-overflow: ellipsis; }
.card-event-meta i { color: rgba(255,255,255,.48); font-style: normal; }
.card-chip-row { width: 100%; min-width: 0; display: flex; align-items: center; gap: 7px; margin-top: 12px; overflow: hidden; white-space: nowrap; pointer-events: none; }
.card-chip-row .card-chips { min-width: 0; flex: 0 1 auto; margin-top: 0; }
.card-chip-row .card-chips i { max-width: 150px; }
.card-chips { max-width: 100%; display: flex; gap: 7px; margin-top: 14px; pointer-events: none; }
.card-chips i {
  max-width: 195px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.card-chips i .icon { width: 12px; height: 12px; flex: 0 0 auto; }
.card-chips i span { overflow: hidden; text-overflow: ellipsis; }
.card-chips i.is-blue_ribbon { border-color: rgba(143, 202, 255, .72); background: rgba(0, 91, 187, .88); }
.card-chips i.is-michelin { border-color: rgba(255, 185, 185, .72); background: rgba(189, 24, 39, .9); }
.card-chips i.is-forbes { border-color: rgba(255, 224, 140, .7); background: rgba(38, 32, 20, .92); color: #f7df9d; }
.card-chips i.is-tripadvisor { border-color: rgba(204,255,236,.72); background: rgba(0, 106, 82, .92); }
.card-chips i.is-competition { border-color: rgba(255, 220, 130, .72); background: rgba(153, 101, 0, .9); }
.card-chips i.is-media { border-color: rgba(255, 194, 214, .72); background: rgba(175, 42, 93, .9); }
.card-chips i.is-editorial { border-color: rgba(225, 217, 255, .7); background: rgba(56, 46, 92, .9); }
.card-chips i.is-institution { border-color: rgba(210,226,255,.72); background: rgba(40,78,134,.92); }
.card-chips i.is-heritage { border-color: rgba(255,225,180,.72); background: rgba(119,71,35,.92); }
.card-chips i.is-design { border-color: rgba(255,211,242,.72); background: rgba(133,48,105,.92); }
.card-chips i.is-wellness { border-color: rgba(195,247,208,.72); background: rgba(35,105,67,.92); }
.card-chips i.is-global { border-color: rgba(201,223,255,.72); background: rgba(33,62,111,.92); }
.card-chips i.is-participant { border-color: rgba(192, 238, 255, .72); background: rgba(0, 108, 138, .9); }
.card-chips i.is-payoff { border-color: rgba(185, 255, 226, .72); background: rgba(0, 126, 83, .9); }
.detail-hint {
  position: absolute;
  right: 18px;
  bottom: 21px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}
.detail-hint .icon { width: 14px; height: 14px; }

.deck-actions {
  position: relative;
  z-index: 8;
  height: 65px;
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: -32px;
  pointer-events: auto;
}
.action-button {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(60, 25, 38, 0.19);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms var(--ease);
}
.action-button:hover { transform: translateY(-3px) scale(1.03); }
.action-button .icon { width: 27px; height: 27px; stroke-width: 2.8; }
.pass-button { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.save-button { color: #41d7ae; }
.save-button .icon { fill: currentColor; stroke: currentColor; }
.gesture-note {
  margin: 2px 0 0;
  color: #adb0b8;
  font-size: 10px;
  font-weight: 550;
  text-align: center;
}
.deck-empty {
  position: absolute;
  inset: 45px 0 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.deck-empty > span { color: var(--accent); font-size: 38px; }
.deck-empty h2 { margin: 18px 0 7px; font-size: 22px; letter-spacing: -0.04em; }
.deck-empty p { width: 260px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.deck-empty button { margin-top: 22px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }

.bottom-nav {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(72px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 7px 76px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(235, 233, 237, 0.92);
  background: rgba(255, 250, 251, 0.94);
  backdrop-filter: blur(18px);
  transition: transform 240ms var(--ease), opacity 180ms ease;
}
.bottom-nav.is-hidden { visibility: hidden; opacity: 0; transform: translateY(100%); pointer-events: none; }
.tab-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #979ba5;
  cursor: pointer;
}
.tab-button::before {
  position: absolute;
  width: 45px;
  height: 38px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(253,45,97,.11), rgba(255,101,89,.08));
  content: "";
  opacity: 0;
  transform: scale(.75);
  transition: 180ms var(--ease);
}
.tab-button svg { position: relative; z-index: 1; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab-button.is-active { color: var(--accent); }
.tab-button.is-active::before { opacity: 1; transform: scale(1); }
.tab-button.is-active svg { stroke: url("#tab-accent-gradient"); stroke-width: 2.2; }

.detail-screen { background: #fff; touch-action: pan-y; }
.detail-screen.is-entering .detail-scroll { animation: detail-enter 260ms var(--ease) both; }
.detail-screen.is-returning .detail-scroll { animation: detail-leave 210ms var(--ease) both; }
.explore-screen.is-returning .deck { animation: card-return 260ms var(--ease) both; }
@keyframes detail-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes detail-leave {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(24px) scale(.985); }
}
@keyframes card-return {
  from { opacity: 0; transform: translateY(-18px) scale(1.015); }
  to { opacity: 1; transform: none; }
}
html.is-detail-transition::view-transition-old(root) {
  animation: mohae-root-out 260ms ease both;
  mix-blend-mode: normal;
}
html.is-detail-transition::view-transition-new(root) {
  animation: mohae-root-in 340ms var(--ease) both;
  mix-blend-mode: normal;
}
html.is-detail-transition::view-transition-group(mohae-hero) {
  overflow: hidden;
  border-radius: 32px;
  animation-duration: 420ms;
  animation-timing-function: var(--ease);
}
html.is-detail-transition::view-transition-old(mohae-hero),
html.is-detail-transition::view-transition-new(mohae-hero) {
  height: 100%;
  object-fit: cover;
  animation: none;
  mix-blend-mode: normal;
}
@keyframes mohae-root-out { to { opacity: .72; } }
@keyframes mohae-root-in { from { opacity: 0; } to { opacity: 1; } }
.detail-topbar {
  position: relative;
  z-index: 20;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background: #fff;
}
.detail-back-button {
  justify-self: start;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 13px 0 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.detail-back-button .icon { width: 22px; height: 22px; }
.detail-topbar-spacer { width: 44px; justify-self: end; }
.detail-scroll {
  height: calc(100% - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.detail-scroll::-webkit-scrollbar, .profile-screen::-webkit-scrollbar { display: none; }
.detail-hero {
  position: relative;
  height: 400px;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 32px;
  background: #222;
}
.detail-hero img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-hero::after { position: absolute; inset: 62% 0 0; background: linear-gradient(transparent, rgba(5,3,5,.48)); content: ""; pointer-events: none; }
.detail-photo-caption { position: absolute; z-index: 5; right: 17px; bottom: 15px; left: 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.9); font-size: 10px; pointer-events: none; }
.detail-photo-caption span { padding: 5px 8px; border-radius: 999px; background: rgba(13,12,15,.55); font-weight: 760; }
.detail-photo-caption b { max-width: 75%; overflow: hidden; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.detail-body { padding: 22px 22px 54px; }
.detail-body h1 { margin: 0; font-size: 29px; line-height: 1.12; letter-spacing: -0.055em; }
.detail-subtitle { margin: 7px 0 22px; color: var(--muted); font-size: 14px; }
.fact-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-grid > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-grid .icon { width: 19px; height: 19px; color: var(--accent); }
.fact-grid span { display: grid; gap: 3px; }
.fact-grid small { color: var(--muted); font-size: 10px; }
.fact-grid b { font-size: 13px; font-weight: 620; }
.fact-grid .operation-fact { align-items: start; }
.fact-grid .operation-fact > .icon { margin-top: 2px; }
.operation-hours { display: grid; gap: 2px; }
.operation-hours b { font-size: 12px; line-height: 1.45; }
.operation-notes { display: flex !important; flex-wrap: wrap; gap: 5px 8px !important; margin-top: 4px; }
.operation-notes em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; line-height: 1.35; }
.why-card { margin: 22px 0; padding: 18px; border-radius: 22px; background: #fff2f5; }
.why-card span { color: var(--accent); font-size: 11px; font-weight: 720; }
.why-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; }
.detail-copy h2 { margin: 0 0 9px; font-size: 18px; letter-spacing: -0.035em; }
.detail-copy p { margin: 0; color: #55545a; font-size: 14px; line-height: 1.68; }
.detail-copy .note { margin-top: 13px; padding-left: 13px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 12px; }
.detail-highlight { overflow: hidden; margin: 0 0 17px; padding: 9px 11px; border-radius: 8px; color: #e44739; background: #fff0ed; font-size: 13px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.evidence-section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.agent-provenance > p { margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.agent-provenance > a { display: grid; grid-template-columns: minmax(0,1fr) auto 16px; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #f0c9d4; border-radius: 12px; background: #fff5f7; color: inherit; text-decoration: none; }
.agent-provenance > a strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.agent-provenance > a span { color: var(--muted); font-size: 8px; }
.agent-provenance > a .icon { width: 14px; height: 14px; color: var(--accent); }
.evidence-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin-bottom: 15px; }
.evidence-heading h2, .source-section h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.evidence-heading > span { color: var(--muted); font-size: 9px; font-weight: 650; }
.evidence-label { width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 780; letter-spacing: .03em; }
.evidence-label.is-official { background: #eaf2ff; color: #2e61a7; }
.evidence-label.is-provider { background: #edf8ef; color: #26703e; }
.evidence-label.is-observation { background: #fff3dd; color: #926000; }
.program-list { display: grid; gap: 9px; }
.program-card { display: grid; gap: 5px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 17px; color: inherit; text-decoration: none; }
.program-card:hover { border-color: rgba(253,45,97,.35); background: #fffafb; }
.program-card strong { font-size: 13px; line-height: 1.4; }
.program-card span { color: #626167; font-size: 11px; }
.program-card small { color: var(--accent); font-size: 10px; font-weight: 690; }
.detail-location-section { margin-top: 24px; }
.detail-location-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-location-heading > span { min-width: 0; display: grid; gap: 2px; }
.detail-location-heading small { color: var(--muted); font-size: 9px; font-weight: 720; }
.detail-location-heading strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.detail-location-heading button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid rgba(253,45,97,.22); border-radius: 999px; background: #fff2f5; color: #d91f4c; font-size: 10px; font-weight: 760; cursor: pointer; }
.detail-location-heading button .icon { width: 13px; height: 13px; }
.detail-location-map-wrap { position: relative; height: 214px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #edf0ea; }
.detail-location-map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; transition: opacity .18s; }
.detail-location-map.is-ready { opacity: 1; }
.detail-location-status { position: absolute; z-index: 2; top: 50%; left: 50%; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.94); color: #72767a; font-size: 10px; transform: translate(-50%,-50%); }
.detail-location-status.is-hidden { display: none; }
.detail-location-status.is-error { color: #9b304d; }
.detail-location-address { display: flex; align-items: flex-start; gap: 7px; margin: 10px 3px 0; color: #5d5b62; font-size: 10px; line-height: 1.5; }
.detail-location-address .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); }
.evidence-reason-list { display: grid; gap: 12px; margin-bottom: 15px; }
.evidence-reason-line { display: grid; grid-template-columns: max-content 8px minmax(0,1fr); align-items: center; gap: 7px; }
.evidence-reason-line > b { color: #aaa5ad; font-size: 12px; }
.evidence-reason-line > p { margin: 0; color: #4f4c54; font-size: 11px; line-height: 1.5; }
.detail-reason-chip { margin: 0; }
.detail-reason-chip i { max-width: 145px; }
.source-evidence-link { display: grid; gap: 6px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 17px; background: #faf9fb; color: inherit; text-decoration: none; }
.source-evidence-link > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.source-evidence-link .icon { width: 15px; height: 15px; flex: 0 0 auto; color: #7655bd; }
.source-evidence-link strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.source-evidence-link small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.source-caveat { margin: 11px 0 0; padding: 13px 14px; border: 1px solid #f3ddaf; border-radius: 14px; background: #fff8e8; color: #71521f; font-size: 11px; line-height: 1.58; }
.caveat-section { margin-top: 22px; padding: 17px 18px; border: 1px solid #f3ddaf; border-radius: 18px; background: #fff8e8; }
.caveat-section .evidence-heading { margin-bottom: 7px; }
.caveat-section .evidence-heading h2 { color: #865400; font-size: 14px; }
.caveat-section p { margin: 0; color: #71521f; font-size: 12px; line-height: 1.6; }
.coverage-note { margin: -3px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.menu-list { display: grid; border: 0; border-radius: 0; overflow: visible; }
.menu-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.menu-list > div:last-child { border-bottom: 0; }
.menu-list span { min-width: 0; display: grid; gap: 4px; }
.menu-list b { font-size: 12px; font-weight: 650; }
.menu-list small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.menu-list > div > strong { flex: 0 0 auto; color: #48474c; font-size: 11px; font-weight: 650; }
.menu-more-note { margin: 16px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.menu-media { display: flex; gap: 10px; margin: 14px -22px 24px; padding: 0 22px 5px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.menu-media::-webkit-scrollbar { display: none; }
.menu-media figure { flex: 0 0 238px; margin: 0; scroll-snap-align: start; }
.menu-media img { width: 238px; height: 280px; display: block; border: 1px solid var(--line); border-radius: 18px; background: #f7f6f7; object-fit: contain; }
.menu-media figcaption { margin: 8px 3px 0; color: #55535a; font-size: 10px; font-weight: 620; }
.signal-card { display: grid; gap: 4px; padding: 14px 15px; border-radius: 17px; background: #fff8e9; }
.signal-card.is-empty { background: var(--soft); }
.signal-card span { color: #9a6a0d; font-size: 9px; font-weight: 750; }
.signal-card strong { font-size: 13px; }
.signal-card small { color: #77736b; font-size: 10px; line-height: 1.5; }
.parking-quote { margin: 11px 0 0; padding: 13px 14px; border-left: 3px solid #e0ad3d; border-radius: 0 14px 14px 0; background: #fffbf3; }
.parking-quote span { color: #8c7548; font-size: 9px; font-weight: 700; }
.parking-quote p { margin: 7px 0 0; color: #56534c; font-size: 11px; line-height: 1.55; white-space: pre-line; }
.raw-review-list { display: grid; gap: 10px; margin-top: 13px; }
.raw-review-list article { padding: 14px; border: 1px solid var(--line); border-radius: 17px; }
.raw-review-list header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.raw-review-list header b { color: var(--accent); font-size: 11px; }
.raw-review-list header span { color: var(--muted); font-size: 9px; text-align: right; }
.raw-review-list p { margin: 9px 0 0; color: #4e4d52; font-size: 11px; line-height: 1.58; white-space: pre-line; }
.raw-review-list article > small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.empty-evidence { color: var(--muted); font-size: 11px; }
.source-section { margin-top: 28px; padding: 20px; border-radius: 20px; background: #f7f6f8; }
.source-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.source-links a { padding: 7px 9px; border: 1px solid #dddbe0; border-radius: 999px; background: #fff; color: #56545d; font-size: 9px; font-weight: 670; text-decoration: none; }
.source-section > p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.source-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--line); }
.source-footer > span { color: var(--muted); font-size: 9px; }
.source-footer .source-links { margin-top: 0; justify-content: flex-end; }
.missing-callout { margin-top: 13px; padding: 13px; border: 1px solid #efd6b7; border-radius: 14px; background: #fff9f1; }
.missing-callout b { color: #885516; font-size: 10px; }
.missing-callout ul { margin: 7px 0 0; padding-left: 17px; color: #735b3e; font-size: 10px; line-height: 1.55; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.detail-tags span { padding: 7px 10px; border-radius: 999px; background: var(--soft); color: #68666d; font-size: 10px; font-weight: 620; }
.detail-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.detail-cta-row.is-single { grid-template-columns: 1fr; }
.detail-cta-row button, .detail-cta-row a { height: 52px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 16px; color: inherit; text-decoration: none; cursor: pointer; }
.detail-cta-row .icon { width: 18px; height: 18px; }
.secondary-cta { border: 1px solid var(--line); background: #fff; }
.secondary-cta.is-naver-map { border-color: #03c75a; color: #fff; background: #03c75a; font-weight: 760; }
.primary-action-cta { border: 0; background: #242127; color: #fff !important; font-weight: 700; }
.naver-map-cta { background: #03c75a; box-shadow: 0 8px 20px rgba(3, 199, 90, .22); }
.naver-map-cta b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; background: #fff; color: #03b152; font-size: 12px; font-weight: 900; }
.naver-map-cta.is-canonical-cta { background: #f3edff; color: #6740be !important; box-shadow: 0 8px 20px rgba(103,64,190,.12); }
.naver-map-cta.is-canonical-cta .icon { width: 17px; height: 17px; }
.primary-cta { border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 680; }
.primary-cta .icon { fill: currentColor; }

.sheet-handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: #dad7da; }

.profile-screen {
  overflow-y: auto;
  padding: 24px 18px 104px;
  background:
    radial-gradient(circle at 0 18%, rgba(253,45,97,.075), transparent 31%),
    radial-gradient(circle at 100% 42%, rgba(255,101,89,.055), transparent 28%),
    #faf9fa;
  scrollbar-width: none;
}
.profile-header { display: grid; grid-template-columns: 42px 52px 1fr; align-items: center; gap: 11px; padding: 4px 2px 21px; }
.profile-back { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.profile-back .icon { width: 21px; height: 21px; }
.avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 17px; font-weight: 800; }
.profile-header small { color: var(--accent); font-size: 9px; font-weight: 760; letter-spacing: .11em; }
.profile-header h1 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.045em; }
.account-card { display: grid; grid-template-columns: 45px 1fr; gap: 12px; padding: 18px; border-radius: 27px; background: var(--ink); color: #fff; box-shadow: 0 16px 38px rgba(41,40,45,.16); }
.account-card-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.1); color: #fff; }
.account-card-icon .icon { width: 21px; height: 21px; }
.account-card h2 { margin: 2px 0 6px; font-size: 17px; letter-spacing: -.035em; }
.account-card p { margin: 0; color: rgba(255,255,255,.66); font-size: 10px; line-height: 1.55; }
.account-card > button { grid-column: 1 / -1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 5px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 720; cursor: pointer; }
.account-card > button .icon { width: 17px; height: 17px; }
.profile-section { margin-top: 27px; }
.profile-section-heading { margin: 0 2px 11px; }
.profile-section-heading small { color: var(--accent); font-size: 8px; font-weight: 760; letter-spacing: .11em; }
.profile-section-heading h2 { margin: 3px 0 0; font-size: 16px; letter-spacing: -.035em; }
.profile-list { overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(45,36,40,.045); }
.profile-list > button { width: 100%; min-height: 67px; display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 11px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.profile-list > button:last-child { border-bottom: 0; }
.profile-row-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: #fff1f4; color: var(--accent); }
.profile-row-icon .icon { width: 18px; height: 18px; }
.profile-list > button > span:nth-child(2) { display: grid; gap: 4px; }
.profile-list b { font-size: 12px; }
.profile-list small { color: var(--muted); font-size: 9px; }
.profile-list > button > .icon { width: 16px; height: 16px; color: #b3afb6; }

.sheet-overlay {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(34, 27, 31, 0.35);
  backdrop-filter: blur(3px);
  animation: fade-in 180ms ease;
}
.filter-sheet { width: 100%; padding: 11px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: #fff; box-shadow: 0 -18px 55px rgba(42,30,36,.18); animation: sheet-up 260ms var(--ease); }
.filter-sheet h2 { margin: 14px 0 6px; font-size: 22px; letter-spacing: -.045em; }
.filter-sheet > p { margin: 0; color: var(--muted); font-size: 12px; }
.filter-options { display: grid; gap: 8px; margin-top: 18px; }
.filter-options button { display: grid; grid-template-columns: 36px 1fr 20px; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: #fff; text-align: left; cursor: pointer; }
.filter-option-icon { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--accent); }
.filter-option-icon .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.filter-options b { font-size: 13px; }
.filter-options small { color: var(--muted); font-size: 10px; }
.filter-options .filter-option-check { grid-row: 1 / 3; grid-column: 3; width: 17px; height: 17px; opacity: 0; color: var(--accent); }
.filter-options button[aria-pressed="true"] { border-color: rgba(253,45,97,.35); background: #fff8fa; }
.filter-options button[aria-pressed="true"] .filter-option-check { opacity: 1; }
.sheet-close { width: 100%; height: 48px; margin-top: 15px; border: 0; border-radius: 15px; background: var(--ink); color: #fff; cursor: pointer; }

.toast {
  position: absolute;
  z-index: 80;
  right: 22px;
  bottom: 92px;
  left: 22px;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(35,33,37,.94);
  color: #fff;
  opacity: 0;
  font-size: 11px;
  text-align: center;
  transform: translateY(12px);
  transition: 200ms var(--ease);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(45px); } }

@media (max-width: 430px) {
  .stage { display: block; min-height: 100dvh; padding: 0; background: var(--surface); }
  .phone { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .deck { height: calc(100dvh - 270px); min-height: 490px; max-height: 574px; }
  .opportunity-card { border-radius: 30px; }
}

@media (max-height: 760px) and (max-width: 430px) {
  .topbar { height: 62px; }
  .filter-summary { height: 26px; }
  .deck { min-height: 430px; }
  .card-information { min-height: 184px; padding-top: 34px; }
  .card-information strong { font-size: 27px; }
  .gesture-note { display: none; }
}

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

/* Radar-derived MOHAE map shell. The map itself uses the NAVER Maps SDK. */
.mohae-map-screen {
  position: relative;
  overflow: hidden;
  background: #edf0ea;
}
.mohae-naver-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #edf0ea;
}
.mohae-naver-map:not(.is-ready) { opacity: .2; }
.mohae-map-status {
  position: absolute;
  z-index: 13;
  top: 62px;
  right: 14px;
  left: 14px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(222, 224, 227, .95);
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 18px rgba(46, 56, 50, .1);
  color: #3f4944;
}
.mohae-map-status strong { font-size: 12px; }
.mohae-map-status span { color: #7c8580; font-size: 10px; }
.mohae-map-status.is-hidden { display: none; }
.mohae-map-status.is-error { border-color: rgba(253,45,97,.18); color: #8d3049; }
.mohae-map-tools {
  position: absolute;
  z-index: 14;
  top: 12px;
  display: flex;
  gap: 8px;
}
.mohae-map-tools-left { left: 12px; }
.mohae-map-tools-right { right: 12px; }
.mohae-map-tools button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(222, 224, 227, .92);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 3px 14px rgba(45,50,55,.12);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.mohae-map-tools button .icon { width: 19px; height: 19px; }
.mohae-map-tools-left button .icon { color: var(--accent); }
.mohae-map-tools button.round-button { width: 38px; padding: 0; }
.mohae-map-tools button:disabled { color: var(--muted); cursor: wait; }

.mohae-map-sheet {
  position: absolute;
  z-index: 20;
  top: 48px;
  right: 0;
  left: 0;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(45,48,54,.14);
  transform: translateY(var(--sheet-offset, calc(100% - 64px)));
  transition: transform .28s cubic-bezier(.22,.78,.24,1);
  will-change: transform;
}
.mohae-map-sheet.is-dragging { transition: none; }
.mohae-sheet-handle {
  position: relative;
  width: 100%;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 7px;
  border: 0;
  outline: 0;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.mohae-sheet-handle:active { cursor: grabbing; }
.mohae-sheet-handle:focus-visible { box-shadow: inset 0 0 0 3px rgba(253,45,97,.16); }
.sheet-grabber {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #d3d5d8;
  transform: translateX(-50%);
}
.sheet-summary { display: flex; min-width: 0; align-items: baseline; gap: 8px; text-align: left; }
.sheet-summary strong { font-size: 13px; font-weight: 760; }
.sheet-summary small { overflow: hidden; color: #898c92; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mohae-sheet-handle > .icon { width: 20px; height: 20px; color: #777a80; transition: transform .2s; }
.mohae-sheet-handle > .icon.is-down { transform: rotate(180deg); }
.mohae-sheet-content {
  height: calc(100% - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
  scrollbar-width: none;
}
.mohae-sheet-content::-webkit-scrollbar { display: none; }
.mohae-map-sheet[data-sheet-state="collapsed"] .mohae-sheet-content { visibility: hidden; opacity: 0; }
.mohae-map-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 12px;
  color: var(--accent);
}
.mohae-map-brand .mark { font-size: 21px; }
.mohae-map-brand > span:last-child { display: grid; gap: 1px; }
.mohae-map-brand b { font-size: 21px; letter-spacing: -.055em; }
.mohae-map-brand small { color: var(--muted); font-size: 9px; font-weight: 650; }
.mohae-agent-scene { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 12px; padding: 10px 12px; border: 1px solid #f0c9d4; border-radius: 12px; background: #fff5f7; }
.mohae-agent-scene > span { min-width: 0; display: grid; gap: 2px; }
.mohae-agent-scene small { color: var(--accent); font-size: 8px; font-weight: 760; }
.mohae-agent-scene strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mohae-agent-scene em { overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.mohae-agent-scene button { flex: 0 0 auto; padding: 6px 8px; border: 0; border-radius: 8px; background: #fff; color: var(--accent); font-size: 9px; font-weight: 760; cursor: pointer; }
.mohae-map-search {
  height: 42px;
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: center;
  gap: 7px;
  margin: 0 16px 12px;
  padding: 0 12px;
  border: 1px solid #e3e4e6;
  border-radius: 10px;
  background: #f7f8f8;
}
.mohae-map-search .icon { width: 18px; height: 18px; color: #8b8e94; }
.mohae-map-search input { min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; }
.mohae-map-filter-section { padding: 0 16px 11px; }
.mohae-map-filter-section h2 { margin: 0 0 7px; color: #777a80; font-size: 10px; font-weight: 720; }
.mohae-map-filter-section.is-single-row { padding-bottom: 10px; }
.mohae-map-chips { display: flex; gap: 10px; overflow-x: auto; padding-right: 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.mohae-map-chips::-webkit-scrollbar { display: none; }
.mohae-map-chip-pair { display: inline-flex; flex: 0 0 auto; gap: 4px; }
.mohae-map-chips button {
  --map-type: #777;
  flex: 0 0 auto;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #e3e4e6;
  border-radius: 999px;
  background: #fff;
  color: #666970;
  font-size: 9.5px;
  font-weight: 680;
  scroll-snap-align: start;
  cursor: pointer;
}
.mohae-map-chips button.is-restaurant { --map-type: #ef7a32; }
.mohae-map-chips button.is-cafe { --map-type: #85583f; }
.mohae-map-chips button.is-culture { --map-type: #edc64b; }
.mohae-map-chips button.is-event { --map-type: var(--blue); }
.mohae-map-chips button.is-other { --map-type: #8f9398; }
.mohae-map-chips button > i { width: 8px; height: 8px; border: 2px solid var(--map-type); border-radius: 50%; }
.mohae-map-chips button[aria-pressed="true"] {
  border-color: var(--map-type);
  background: color-mix(in srgb, var(--map-type) 12%, white);
  color: #29272a;
}
.mohae-map-list-toolbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mohae-map-list-toolbar strong { font-size: 11px; }
.mohae-map-list-toolbar span { color: var(--muted); font-size: 9px; }
.mohae-map-place-list { display: grid; }
.mohae-map-place {
  min-height: 76px;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.mohae-map-place > img { width: 54px; height: 54px; border-radius: 12px; background: #f1f1f2; object-fit: cover; }
.mohae-map-place > span { min-width: 0; display: grid; gap: 2px; }
.mohae-map-source-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.mohae-map-source-chips i { padding: 2px 5px; border-radius: 999px; background: #f0f1f2; color: #676a70; font-size: 7.5px; font-style: normal; font-weight: 760; line-height: 1.15; }
.mohae-map-source-chips i.is-hidden_archive { background: #edf5ef; color: #4e7257; }
.mohae-map-source-chips i.is-michelin_2026 { background: #fff0ee; color: #9c5147; }
.mohae-map-source-chips i.is-agent_external { background: #fff0f4; color: #a72a53; }
.mohae-map-place strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mohae-map-place em { overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.mohae-map-place > .icon { width: 16px; height: 16px; color: #a8abb0; }
.mohae-map-list-more { margin: 0; padding: 16px 22px 24px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.mohae-map-empty { display: grid; justify-items: center; padding: 54px 24px; text-align: center; }
.mohae-map-empty > span { color: var(--accent); font-size: 34px; }
.mohae-map-empty h2 { margin: 13px 0 6px; font-size: 18px; letter-spacing: -.035em; }
.mohae-map-empty p { max-width: 280px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.mohae-map-popup-host {
  position: absolute;
  z-index: 22;
  right: 12px;
  bottom: 84px;
  left: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .18s ease, transform .18s ease;
}
.mohae-map-popup-host.is-visible { pointer-events: auto; opacity: 1; transform: translateY(0) scale(1); }
.mohae-map-preview-card {
  position: relative;
  width: min(100%, 330px);
  min-height: 128px;
  display: grid;
  grid-template-columns: 108px minmax(0,1fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(34,32,34,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 32px rgba(36,31,33,.2);
  backdrop-filter: blur(12px);
}
.mohae-map-preview-card > img { width: 108px; height: 100%; min-height: 128px; background: #eee; object-fit: cover; }
.mohae-map-preview-close { position: absolute; z-index: 2; top: 7px; right: 7px; width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(245,245,246,.94); color: #65666b; cursor: pointer; }
.mohae-map-preview-close .icon { width: 13px; height: 13px; }
.mohae-map-preview-body { min-width: 0; display: grid; align-content: center; gap: 4px; padding: 13px 13px 11px; }
.mohae-map-preview-type { --map-type: #777; display: inline-flex; width: fit-content; align-items: center; gap: 5px; color: #747176; font-size: 8px; font-weight: 760; }
.mohae-map-preview-type.is-restaurant { --map-type: #ef7a32; }
.mohae-map-preview-type.is-cafe { --map-type: #85583f; }
.mohae-map-preview-type.is-culture { --map-type: #edc64b; }
.mohae-map-preview-type.is-event { --map-type: var(--blue); }
.mohae-map-preview-type.is-other { --map-type: #8f9398; }
.mohae-map-preview-type > i { width: 8px; height: 8px; border: 2px solid var(--map-type); border-radius: 50%; }
.mohae-map-preview-body > strong { overflow: hidden; padding-right: 25px; font-size: 14px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.mohae-map-preview-body > small { overflow: hidden; color: #777a80; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.mohae-map-preview-body > p { display: -webkit-box; overflow: hidden; margin: 2px 0; color: #55575b; font-size: 9px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mohae-map-preview-body dl { display: grid; gap: 2px; margin: 2px 0 0; }
.mohae-map-preview-body dl > div { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 4px; font-size: 8px; }
.mohae-map-preview-body dt { color: #9a9ca1; }
.mohae-map-preview-body dd { overflow: hidden; margin: 0; color: #44464a; text-overflow: ellipsis; white-space: nowrap; }
.mohae-map-preview-actions { display: flex; gap: 5px; margin-top: 3px; }
.mohae-map-preview-actions > * { min-height: 25px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 0; border-radius: 8px; background: #f0f1f2; color: #404145; font: inherit; font-size: 8.5px; font-weight: 720; text-decoration: none; cursor: pointer; }
.mohae-map-preview-actions > button { background: #1f2023; color: #fff; }
.mohae-map-collision-list {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(34,32,34,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 32px rgba(36,31,33,.2);
  backdrop-filter: blur(12px);
}
.mohae-map-collision-list > header { min-height: 42px; display: flex; align-items: center; padding: 10px 44px 9px 14px; border-bottom: 1px solid var(--line); }
.mohae-map-collision-list > header strong { font-size: 11px; }
.mohae-map-collision-list > div { max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.mohae-map-collision-card { min-height: 96px; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.mohae-map-collision-card:last-child { border-bottom: 0; }
.mohae-map-collision-card > img { width: 72px; height: 76px; border-radius: 12px; background: #eee; object-fit: cover; }
.mohae-map-collision-card > div { min-width: 0; display: grid; align-content: center; gap: 4px; }
.mohae-map-collision-card strong, .mohae-map-collision-card small { overflow: hidden; padding-right: 4px; text-overflow: ellipsis; white-space: nowrap; }
.mohae-map-collision-card strong { font-size: 12px; }
.mohae-map-collision-card small { color: #777a80; font-size: 8px; }
.mohae-map-collision-card .mohae-map-preview-actions { margin-top: 1px; }
.mohae-donut-marker {
  --map-type: #8f9398;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 5px solid var(--map-type);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 5px rgba(36,31,33,.22);
  cursor: pointer;
  pointer-events: auto;
}
.mohae-donut-marker.is-restaurant { --map-type: #ef7a32; }
.mohae-donut-marker.is-cafe { --map-type: #85583f; }
.mohae-donut-marker.is-culture { --map-type: #edc64b; }
.mohae-donut-marker.is-event { --map-type: var(--blue); }
.mohae-donut-marker.is-other { --map-type: #8f9398; }
.mohae-donut-marker.is-count { width: 30px; height: 30px; display: grid; place-items: center; border-width: 5px; background: #fff; color: var(--map-type); font-size: 8px; font-weight: 850; }
.mohae-location-marker { position: relative; width: 28px; height: 34px; filter: drop-shadow(0 3px 6px rgba(69,25,38,.28)); }
.mohae-location-marker > span { position: absolute; top: 2px; left: 3px; width: 22px; height: 22px; border: 4px solid #fff; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }
.mohae-location-marker > span::after { position: absolute; top: 5px; left: 5px; width: 4px; height: 4px; border-radius: 50%; background: #fff; content: ""; }
.mohae-anchor-marker { width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #252329; color: #fff; box-shadow: 0 3px 9px rgba(30,27,34,.3); }
.mohae-anchor-marker span { font-size: 10px; font-weight: 850; }
.current-location-marker { position: relative; width: 22px; height: 22px; border: 4px solid #fff; border-radius: 50%; background: #2e77ed; box-shadow: 0 2px 9px rgba(20,72,156,.35); }
.current-location-marker::before { position: absolute; inset: -8px; z-index: -1; border-radius: 50%; background: rgba(46,119,237,.18); content: ""; }

/* Shared trip room: simple human choices, accumulated context, Agent synthesis. */
.profile-trip-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 15px 10px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255,135,148,.42), transparent 39%),
    linear-gradient(145deg, #33252d 0%, #201e24 72%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(48,25,35,.18);
}
.profile-trip-feature.is-active { background: radial-gradient(circle at 92% 4%, rgba(255,167,177,.52), transparent 41%), linear-gradient(145deg, #4b2432 0%, #231d23 72%); }
.profile-trip-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.profile-trip-copy small { color: #ff9fb3; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.profile-trip-copy h2 { margin: 7px 0 7px; font-size: 19px; line-height: 1.22; letter-spacing: -.045em; }
.profile-trip-copy p { margin: 0; color: rgba(255,255,255,.65); font-size: 10px; line-height: 1.55; }
.profile-trip-art { position: relative; grid-column: 2; grid-row: 1; min-height: 86px; }
.profile-trip-art > span { position: absolute; top: -2px; right: -5px; width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; background: rgba(255,255,255,.1); color: #fff; transform: rotate(7deg); }
.profile-trip-art > span .icon { width: 31px; height: 31px; transform: rotate(-7deg); }
.profile-trip-art > div { position: absolute; right: 0; bottom: 0; display: flex; }
.profile-trip-art i { width: 27px; height: 27px; display: grid; place-items: center; margin-left: -6px; border: 2px solid #2b2027; border-radius: 50%; background: #ece7e9; color: #554b50; font-size: 8px; font-style: normal; font-weight: 850; }
.profile-trip-art i.is-ready { background: var(--accent); color: #fff; }
.profile-trip-art i .icon { width: 12px; height: 12px; }
.profile-trip-feature > button { grid-column: 1 / -1; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.94); color: #2b252a; font-size: 11px; font-weight: 780; cursor: pointer; }
.profile-trip-feature > button .icon { width: 16px; height: 16px; color: #8d7c84; }
.group-trip-invite-trigger {
  position: absolute;
  z-index: 25;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(39,35,41,.96);
  color: #fff;
  box-shadow: 0 10px 26px rgba(45,27,35,.24);
  font-size: 11px;
  font-weight: 790;
  letter-spacing: -.01em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  animation: group-trip-invite-arrive 320ms var(--ease) both;
  transition: opacity 160ms ease, transform 180ms var(--ease), visibility 160ms;
}
.group-trip-invite-trigger:hover { transform: translateY(-2px); }
.group-trip-invite-trigger:active { transform: translateY(0) scale(.97); }
.group-trip-invite-trigger.is-map { z-index: 19; bottom: calc(146px + env(safe-area-inset-bottom)); }
.group-trip-invite-trigger.is-hidden { visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none; }
.group-trip-invite-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.group-trip-invite-icon .icon { width: 15px; height: 15px; stroke-width: 2.2; }
@keyframes group-trip-invite-arrive { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.group-trip-scene { display: grid; gap: 4px; margin-bottom: 15px; padding: 13px 14px; border: 1px solid #f0dce2; border-radius: 15px; background: #fff7f9; }
.group-trip-scene .eyebrow { margin: 0; color: var(--accent); font-size: 8px; }
.group-trip-scene > strong { font-size: 12px; line-height: 1.35; letter-spacing: -.02em; }
.group-trip-scene > small, .group-trip-scene > span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.group-room-strip {
  width: calc(100% - 36px);
  height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) 16px;
  align-items: center;
  gap: 9px;
  margin: 0 18px 2px;
  padding: 4px 10px;
  border: 1px solid #f1cbd5;
  border-radius: 13px;
  background: #fff5f7;
  text-align: left;
  cursor: pointer;
}
.group-room-strip > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.group-room-strip strong, .group-room-strip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-room-strip strong { font-size: 10px; }
.group-room-strip small { color: #9b6878; font-size: 8px; }
.group-room-strip > .icon { width: 14px; height: 14px; color: #ba7187; }
.group-room-avatars { display: flex; padding-left: 3px; }
.group-room-avatars i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-left: -4px;
  border: 2px solid #fff5f7;
  border-radius: 50%;
  background: #ddd7da;
  color: #5d575a;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.group-room-avatars i.is-ready { background: var(--accent); color: #fff; }
.has-group-room .deck { height: 538px; }
.card-route-order {
  position: absolute;
  z-index: 6;
  top: 34px;
  left: 18px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(24,21,25,.68);
  color: #fff;
  font-size: 9px;
  font-weight: 720;
  backdrop-filter: blur(12px);
}
.card-route-order b { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-size: 9px; }

.group-trip-overlay { z-index: 70; }
.group-trip-sheet {
  width: 100%;
  max-height: min(78%, 650px);
  overflow-y: auto;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(49,31,38,.2);
}
.group-trip-sheet > header { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 18px; }
.group-trip-sheet > header > span { display: grid; gap: 2px; }
.group-trip-sheet > header small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.group-trip-sheet h2 { margin: 0; font-size: 23px; letter-spacing: -.045em; }
.group-trip-sheet > header > button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; }
.group-trip-sheet > header .icon { width: 16px; height: 16px; }
.group-trip-name { display: grid; gap: 7px; }
.group-trip-name span { color: #666168; font-size: 10px; font-weight: 760; }
.group-trip-name input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #ddd9de; border-radius: 13px; outline: 0; background: #fbfafb; font: inherit; font-size: 14px; }
.group-trip-name input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(253,45,97,.1); }
.group-trip-help, .group-trip-warning { margin: 11px 2px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.group-trip-warning { color: #a45b70; }
.group-trip-primary, .group-trip-copy {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: #242227;
  color: #fff;
  font-weight: 780;
  cursor: pointer;
}
.group-trip-primary.is-ready { background: #fff0f4; color: var(--accent); }
.group-trip-primary:disabled { opacity: .5; cursor: wait; }
.group-trip-primary .icon, .group-trip-copy .icon { width: 17px; height: 17px; }
.group-trip-copy { border: 1px solid #e9dfe3; background: #fff; color: #494449; }
.group-trip-invite-summary { display: grid; gap: 3px; margin-bottom: 17px; padding: 15px; border: 1px solid #f0dce2; border-radius: 16px; background: #fff7f9; }
.group-trip-invite-summary span { color: var(--accent); font-size: 9px; font-weight: 800; }
.group-trip-invite-summary strong { font-size: 17px; letter-spacing: -.03em; }
.group-trip-invite-summary small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.group-trip-members { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.group-trip-members li { min-height: 44px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 13px; }
.group-trip-members li.is-me { border-color: #f1c5d1; background: #fff8fa; }
.group-trip-members li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #ece9eb; font-size: 9px; font-weight: 820; }
.group-trip-members li b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.group-trip-members li small { color: var(--muted); font-size: 8px; }
.group-trip-secondary-actions { display: flex; justify-content: center; gap: 15px; margin-top: 14px; }
.group-trip-secondary-actions button, .group-trip-error button { padding: 5px; border: 0; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.group-trip-error { display: grid; justify-items: center; gap: 9px; padding: 25px 12px; text-align: center; }
.group-trip-error p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.mohae-route-marker { width: 32px; height: 32px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 4px 11px rgba(91,25,47,.34); cursor: pointer; }
.mohae-route-marker span { font-size: 11px; font-weight: 880; }
.mohae-map-preview-actions > button:disabled { background: #fff0f4; color: var(--accent); cursor: default; }
.mohae-map-preview-actions > button .icon { width: 11px; height: 11px; }

@media (max-width: 430px) {
  .has-group-room .deck { height: calc(100dvh - 308px); min-height: 452px; }
}

/* Destination search and the browser-local Tokyo travel map (Leaflet + OSM). */
.mohae-map-tools-right { display: flex; gap: 8px; }
.mohae-map-tools button.mohae-travel-trigger.is-active { background: var(--accent); color: #fff; }
.mohae-travel-trigger:focus-visible, .mohae-travel-panel :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mohae-destination-dialog { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px; border: 1px solid #eee; border-radius: 24px; color: #24252a; background: #fff; box-shadow: 0 20px 70px #0003; }
.mohae-destination-dialog::backdrop { background: #15151c66; backdrop-filter: blur(3px); }
.mohae-destination-dialog > header { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-size: 12px; font-weight: 700; }
.mohae-destination-dialog > header span { display: inline-flex; gap: 7px; align-items: center; }
.mohae-destination-dialog > header button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f4f4f5; cursor: pointer; }
.mohae-destination-dialog .icon { width: 19px; height: 19px; }
.mohae-destination-dialog h2 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -.05em; }
.mohae-destination-dialog > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mohae-destination-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #ddd; border-radius: 12px; }
.mohae-destination-search:focus-within { border-color: var(--accent); }
.mohae-destination-search input { min-width: 0; width: 100%; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.mohae-destination-result { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 10px; border: 0; border-radius: 12px; background: #fff4f7; text-align: left; cursor: pointer; }
.mohae-destination-result > span:first-child { font-size: 25px; }
.mohae-destination-result > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.mohae-destination-result strong { font-size: 15px; }
.mohae-destination-result small, .mohae-destination-empty { color: var(--muted); font-size: 11px; line-height: 1.6; }
.mohae-destination-exit { width: 100%; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #666; font-size: 12px; cursor: pointer; }
.mohae-travel-title { display: block; margin-bottom: 8px; font-size: 14px; }
.mohae-travel-research { margin: 3px 0; font-size: 10px; line-height: 1.5; }
.mohae-travel-research summary { padding: 6px 0; font-weight: 700; cursor: pointer; }
.mohae-travel-research > small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.mohae-travel-research a { color: var(--accent); }
.mohae-travel-research-sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.mohae-map-status button { width: fit-content; margin-top: 5px; padding: 6px 11px; border: 0; border-radius: 8px; background: #1f2023; color: #fff; font-size: 10px; font-weight: 720; cursor: pointer; }

.mohae-travel-screen { display: flex; flex-direction: column; padding-bottom: calc(72px + env(safe-area-inset-bottom)); background: #fff; }
.mohae-travel-stage { position: relative; flex: 1 1 auto; min-height: 150px; }
.mohae-travel-map { position: absolute; inset: 0; z-index: 0; isolation: isolate; background: #edf0ea; }
.mohae-travel-map:not(.is-ready) { opacity: .35; }
.mohae-travel-map.is-picking, .mohae-travel-map.is-picking .leaflet-interactive { cursor: crosshair; }
.mohae-travel-map .leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.88); }
.mohae-travel-marker { background: transparent; border: 0; }
.mohae-travel-pin {
  --pin: #7b7f87;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pin);
  color: #fff;
  box-shadow: 0 3px 9px rgba(30,27,34,.3);
}
.mohae-travel-pin b { font-size: 13px; font-weight: 850; line-height: 1; }
.mohae-travel-pin.is-sauna { --pin: #2f86c9; }
.mohae-travel-pin.is-hotel { --pin: #fff; border-color: #e9892b; color: #c46a12; }
.mohae-travel-pin.is-hotel-confirmed { --pin: var(--accent); }
.mohae-travel-pin.is-place { --pin: #6f7480; }
.mohae-travel-pin.is-draft { --pin: #1f2023; border-style: dashed; }
.mohae-travel-pin.is-selected { outline: 3px solid rgba(253,45,97,.45); outline-offset: 2px; }

.mohae-travel-panel {
  position: relative;
  z-index: 15;
  flex: 0 0 auto;
  max-height: 48%;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(45,48,54,.14);
}
.mohae-travel-panel.is-editing { max-height: 64%; }
/* Radar-inspired two-stage detail sheet: it fills the app container (not the browser viewport)
   and slides between partial (46% visible, map usable above) and full (one roomy reader).
   Stage changes only move a transform, so the reader DOM, scroll, photo and focus are kept. */
.mohae-travel-panel.is-detail-open { display: none; }
.mohae-travel-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(45,48,54,.14);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22,.78,.24,1), border-radius .28s cubic-bezier(.22,.78,.24,1);
  will-change: transform;
}
.mohae-travel-sheet[hidden] { display: none; }
.mohae-travel-sheet:focus { outline: none; }
.mohae-travel-sheet[data-stage="partial"] { transform: translateY(54%); touch-action: none; }
.mohae-travel-sheet[data-stage="full"] { transform: translateY(0); border-radius: 0; }
.mohae-travel-sheet[data-stage="closing"] { pointer-events: none; }
.mohae-travel-sheet.is-dragging { transition: none; }
.mohae-travel-sheet :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mohae-travel-sheet-handle { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 20px; align-items: center; gap: 8px; min-height: 44px; padding: 18px 18px 6px; border: 0; background: #fff; color: #66696f; font: inherit; font-size: 12px; font-weight: 720; text-align: left; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.mohae-travel-sheet-handle:active { cursor: grabbing; }
.mohae-travel-sheet-handle:focus-visible { outline-offset: -3px; }
.mohae-travel-sheet[data-stage="full"] .mohae-travel-sheet-handle { padding-top: calc(18px + env(safe-area-inset-top)); }
.mohae-travel-sheet[data-stage="full"] .mohae-travel-sheet-handle .sheet-grabber { top: calc(8px + env(safe-area-inset-top)); }
.mohae-travel-sheet-hint { min-width: 0; overflow-wrap: anywhere; }
.mohae-travel-sheet-handle > .icon { width: 18px; height: 18px; color: #777a80; transition: transform .2s; }
.mohae-travel-sheet[data-stage="full"] .mohae-travel-sheet-handle > .icon { transform: rotate(180deg); }
.mohae-travel-sheet-detail { flex: 1 1 auto; display: flex; min-height: 0; }
.mohae-travel-sheet .mohae-travel-detail { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; }
.mohae-travel-sheet .mohae-travel-detail > header { flex-shrink: 0; padding: 2px 16px 8px; border-bottom: 1px solid var(--line); background: #fff; }
.mohae-travel-sheet .mohae-map-preview-close { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 76px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: #34343a; background: #f3f4f5; font-size: 13px; font-weight: 750; }
.mohae-travel-detail-content { min-height: 0; }
.mohae-travel-sheet .mohae-travel-detail-content { flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); scroll-padding: 16px; }
/* Partial previews the top of the reader only; the body is inert and drags expand instead of scrolling. */
.mohae-travel-sheet[data-stage="partial"] .mohae-travel-detail-content { overflow: hidden; pointer-events: none; }
.mohae-travel-sheet .mohae-travel-detail h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.35; }
.mohae-travel-sheet .mohae-travel-kind { font-size: 12px; }
.mohae-travel-sheet .mohae-travel-cost { margin-bottom: 12px; padding: 12px; gap: 5px 10px; }
.mohae-travel-sheet .mohae-travel-cost strong { font-size: 16px; }
.mohae-travel-sheet .mohae-travel-cost span, .mohae-travel-sheet .mohae-travel-cost small { font-size: 11px; }
.mohae-travel-sheet .mohae-travel-award { margin: 10px 0; font-size: 12px; }
.mohae-travel-sheet .mohae-travel-photo { margin: 14px 0 18px; }
.mohae-travel-sheet .mohae-travel-photo img { max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 12px; }
.mohae-travel-sheet .mohae-travel-photo figcaption { margin-top: 7px; font-size: 11px; }
.mohae-travel-sheet .mohae-travel-address, .mohae-travel-sheet .mohae-travel-note { margin: 12px 0; font-size: 14px; line-height: 1.65; }
.mohae-travel-sheet .mohae-travel-detail dl { gap: 14px; margin: 18px 0; }
.mohae-travel-sheet .mohae-travel-detail dl > div { grid-template-columns: 1fr; gap: 4px; font-size: 14px; line-height: 1.6; }
.mohae-travel-sheet .mohae-travel-detail dt { color: #69747d; font-size: 12px; font-weight: 750; }
.mohae-travel-sheet .mohae-travel-research { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; }
.mohae-travel-sheet .mohae-travel-research summary { padding: 8px 0; font-size: 15px; }
.mohae-travel-sheet .mohae-travel-research > small { font-size: 11px; }
.mohae-travel-sheet .mohae-travel-research-sources { gap: 8px 14px; font-size: 12px; }
.mohae-travel-sheet .mohae-travel-actions { gap: 8px; margin-top: 24px; }
.mohae-travel-sheet .mohae-travel-actions > * { min-height: 44px; padding: 0 14px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .mohae-travel-sheet, .mohae-travel-sheet-handle > .icon { transition: none; }
}
.mohae-travel-panel-head { padding: 10px 16px 6px; border-bottom: 1px solid var(--line); }
.mohae-travel-panel-head > p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.mohae-travel-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.mohae-travel-legend[hidden] { display: none; }
.mohae-travel-legend li { display: inline-flex; align-items: center; gap: 4px; color: #55575b; font-size: 10px; font-weight: 680; }
.mohae-travel-legend .mohae-travel-pin, .mohae-travel-list-items .mohae-travel-pin { width: 20px; height: 20px; border-width: 2px; box-shadow: none; }
.mohae-travel-legend .mohae-travel-pin b, .mohae-travel-list-items .mohae-travel-pin b { font-size: 9px; }
.mohae-travel-panel-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px 16px; }
.mohae-travel-list summary { padding: 6px 2px; font-size: 11px; font-weight: 760; cursor: pointer; }
.mohae-travel-list-items { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.mohae-travel-list-items button { width: 100%; min-height: 50px; display: grid; grid-template-columns: 20px minmax(0,1fr) 16px; align-items: center; gap: 10px; padding: 7px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.mohae-travel-list-items button[aria-pressed="true"] { background: #fff5f7; }
.mohae-travel-list-items button > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.mohae-travel-list-items strong, .mohae-travel-list-items em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mohae-travel-list-items strong { font-size: 12px; }
.mohae-travel-list-items em { color: var(--muted); font-size: 9px; font-style: normal; }
/* Approximate price wraps instead of truncating, so duration/unit text stays readable. */
.mohae-travel-list-price { min-width: 0; color: #1f5f8f; font-size: 10px; font-weight: 720; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.mohae-travel-list-items .icon { width: 14px; height: 14px; color: #a8abb0; }
.mohae-travel-empty { margin: 8px 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.mohae-travel-detail { position: relative; display: grid; gap: 6px; margin-bottom: 8px; padding: 12px 13px; border: 1px solid #f0dce2; border-radius: 15px; background: #fffafb; }
.mohae-travel-detail > header { display: flex; align-items: center; justify-content: space-between; min-height: 27px; }
.mohae-travel-detail .mohae-map-preview-close { position: static; }
.mohae-travel-kind { display: inline-flex; align-items: center; gap: 5px; color: #6b6e75; font-size: 9px; font-weight: 760; }
.mohae-travel-kind i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #6f7480; color: #fff; font-size: 9px; font-style: normal; }
.mohae-travel-kind.is-sauna i { background: #2f86c9; }
.mohae-travel-kind.is-hotel i { border: 2px solid #e9892b; background: #fff; color: #c46a12; }
.mohae-travel-kind.is-hotel-confirmed i { background: var(--accent); }
.mohae-travel-detail h2 { margin: 0; font-size: 16px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.mohae-travel-cost { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 2px 8px; margin: 0; padding: 7px 9px; border-radius: 10px; background: #eef6fc; line-height: 1.4; }
.mohae-travel-cost span { color: #1f5f8f; font-size: 9.5px; font-weight: 760; }
.mohae-travel-cost strong { min-width: 0; color: #1f2023; font-size: 12.5px; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.mohae-travel-cost small { grid-column: 2; color: #6b6e75; font-size: 9px; }
.mohae-travel-award { margin: 0; color: #796522; font-size: 10px; font-weight: 760; }
.mohae-travel-photo { margin: 3px 0 5px; min-width: 0; }
.mohae-travel-photo img { display: block; width: 100%; height: auto; max-height: 180px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #eee9e5; }
.mohae-travel-photo img[hidden], .mohae-travel-photo-fallback[hidden] { display: none; }
.mohae-travel-photo figcaption { margin-top: 4px; font-size: 9px; line-height: 1.4; }
.mohae-travel-photo figcaption a { color: #777; text-decoration: none; }
.mohae-travel-photo-fallback { display: block; padding: 16px 8px; color: #777; background: #f2eeeb; border-radius: 10px; font-size: 10px; }
.mohae-travel-address, .mohae-travel-note { margin: 0; color: #55575b; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.mohae-travel-note { white-space: pre-line; }
.mohae-travel-detail dl { display: grid; gap: 3px; margin: 0; }
.mohae-travel-detail dl > div { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 6px; font-size: 9.5px; }
.mohae-travel-detail dt { color: #9a9ca1; }
.mohae-travel-detail dd { margin: 0; overflow-wrap: anywhere; }
.mohae-travel-detail dd a { color: var(--accent); font-weight: 700; }
.mohae-travel-research dl > div { grid-template-columns: 78px minmax(0,1fr); margin: 3px 0; }
.mohae-travel-research dt { overflow-wrap: anywhere; font-weight: 650; }
.mohae-travel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mohae-travel-actions > * { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 0; border-radius: 9px; background: #f0f1f2; color: #404145; font-size: 10px; font-weight: 720; text-decoration: none; cursor: pointer; }
.mohae-travel-actions > a { background: #1f2023; color: #fff; }
.mohae-travel-actions > .is-danger { background: #fff0f2; color: #b3264b; }

.mohae-travel-form { display: grid; gap: 9px; margin-bottom: 8px; padding: 12px 13px; border: 1px solid #f0dce2; border-radius: 15px; background: #fffafb; }
.mohae-travel-form > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mohae-travel-form > header strong { font-size: 14px; }
.mohae-travel-form > header small, .mohae-travel-help { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.mohae-travel-form label { min-width: 0; display: grid; gap: 4px; }
.mohae-travel-form label[hidden] { display: none; }
.mohae-travel-form label > span, .mohae-travel-form legend { color: #666168; font-size: 10px; font-weight: 760; }
.mohae-travel-form input, .mohae-travel-form select, .mohae-travel-form textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #ddd9de; border-radius: 10px; outline: 0; background: #fff; font: inherit; font-size: 16px; }
.mohae-travel-form textarea { resize: vertical; }
.mohae-travel-form input:focus, .mohae-travel-form select:focus, .mohae-travel-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(253,45,97,.1); }
.mohae-travel-form [aria-invalid="true"] { border-color: #d6385f; }
.mohae-travel-form fieldset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.mohae-travel-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mohae-travel-field-error, .mohae-travel-form-alert { color: #b3264b; font-size: 9.5px; line-height: 1.4; }
.mohae-travel-form-alert { margin: 0; padding: 7px 9px; border-radius: 8px; background: #fff0f2; font-weight: 700; }
.mohae-travel-pick { width: fit-content; min-height: 30px; padding: 0 10px; border: 1px dashed #e4b8c5; border-radius: 9px; background: #fff; color: var(--accent); font-size: 10px; font-weight: 720; cursor: pointer; }
.mohae-travel-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.mohae-travel-form-actions button { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 12px; font-weight: 720; cursor: pointer; }
.mohae-travel-form-actions .is-primary { border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
