/**
 * Maxim Orel — mockup design system
 * Based on HMI DCK deck artifact (Manrope, #faed00 accent, light/dark slides)
 */

:root {
  --mo-bg: #ffffff;
  --mo-surface: #f4f4f4;
  --mo-surface-2: #ececec;
  --mo-ink: #000000;
  --mo-ink-2: #3d3d3d;
  --mo-ink-3: #767676;
  --mo-rule: #e2e2e2;
  --mo-yellow: #faed00;
  --mo-yellow-deep: #8a8300;
  --mo-dbg: #000000;
  --mo-dsurface: #1a1a1a;
  --mo-dink: #ffffff;
  --mo-dink-2: #a8a8a8;
  --mo-font: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mo-radius: 20px;
  --mo-radius-sm: 16px;
}

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

html { scroll-behavior: smooth; }

body.mo-deck {
  margin: 0;
  font-family: var(--mo-font);
  background: var(--mo-dbg);
  color: var(--mo-ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Landing (hero + fixed search) ── */

body.mo-landing {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--mo-dbg);
  color: var(--mo-dink);
}

.mo-anim-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mo-landing-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mo-landing-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 5vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
  backdrop-filter: blur(8px);
}

.mo-landing-top-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mo-landing-search-slot {
  flex: 1;
  min-width: 0;
}

.mo-landing-search-slot[hidden] {
  display: none;
}

.mo-landing-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mo-dink-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Brand mark (see docs/BRAND.md): tile + m + dot, animated via static/brand/mark-motion.css */
.mo-brand-link { display: inline-flex; align-items: center; gap: 10px;
                 text-decoration: none; color: inherit; }
.mo-brand-mark { width: 28px; height: 28px; display: block; flex: none; }
.mo-chat-brand { align-self: center; flex: none; }
.mo-chat-mark { width: 34px; height: 34px; }
.mo-chat-titles { flex: 1; min-width: 0; }

/* Phones: the mark already says whose site this is, and the kicker would wrap into a 4-line column. */
@media (max-width: 720px) {
  .mo-chat-top-inner { align-items: center; gap: 12px; }
  .mo-chat-titles .mo-kicker { display: none; }
  .mo-chat-top h1 { font-size: clamp(20px, 5.5vw, 26px); }
  .mo-chat-actions { flex: none; }
}

.mo-landing-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mo-dsurface);
  border: 1px solid #2b2b2b;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mo-landing-search:focus-within {
  border-color: var(--mo-yellow);
  box-shadow: 0 0 0 1px rgba(250, 237, 0, 0.35);
}

.mo-landing-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--mo-dink);
  font: inherit;
  font-size: 15px;
  line-height: 24px;
  padding: 8px 0;
  outline: none;
  min-width: 0;
}

.mo-landing-search input::placeholder {
  color: var(--mo-dink-2);
}

.mo-landing-search .mo-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.mo-landing-deck {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  padding-top: 72px;
  padding-bottom: 88px;
}

body.mo-search-foot .mo-landing-deck {
  padding-bottom: 130px;
}

body.mo-search-top .mo-landing-foot {
  padding-bottom: 14px;
}

body.mo-landing .mo-slide.dark {
  background: rgba(0, 0, 0, 0.72);
}

body.mo-landing .mo-slide.light {
  background: rgba(255, 255, 255, 0.96);
}

.mo-landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 9vw 140px;
}

.mo-landing-hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 15ch;
}

.mo-landing-hero .mo-lede {
  color: var(--mo-dink-2);
  max-width: 42ch;
  font-size: clamp(18px, 1.8vw, 22px);
  margin: 0 auto 32px;
}

.mo-landing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 640px;
}

.mo-landing-foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 5vw 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
}

.mo-landing-foot-inner {
  max-width: 960px;
  margin: 0 auto;
}

.mo-landing-top .mo-lang {
  flex-shrink: 0;
}

.mo-landing-foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: center;
  margin-bottom: 10px;
}

.mo-landing-foot-meta a {
  color: var(--mo-dink-2);
  text-decoration: none;
}

.mo-landing-foot-meta a:hover {
  color: var(--mo-yellow);
}

.mo-landing-disclaimer {
  font-size: 11px;
  line-height: 1.4;
  color: var(--mo-dink-2);
  text-align: center;
  margin: 8px 0 0;
  opacity: 0.85;
}

.mo-landing-foot-meta .mo-cap {
  margin: 0;
  color: var(--mo-dink-2);
  font-size: 13px;
}

.mo-landing-foot .mo-landing-search-slot {
  max-width: 960px;
  margin: 0 auto;
}

.mo-landing-foot .mo-landing-search {
  width: 100%;
}

@media (max-width: 720px) {
  .mo-landing-brand span.label { display: none; }
  .mo-landing-top-inner { gap: 10px; }
  .mo-landing-hero { padding-top: 100px; padding-bottom: 180px; }
}

/* ── Deck (slides) ── */

.mo-deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.mo-slide {
  min-height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vh 9vw 9vh;
  position: relative;
}

.mo-slide.light { background: var(--mo-bg); color: var(--mo-ink); }
.mo-slide.dark { background: var(--mo-dbg); color: var(--mo-dink); }

.mo-wrap { max-width: 1360px; margin: 0 auto; width: 100%; }
.mo-wrap.narrow { max-width: 960px; }

.mo-kicker {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mo-ink-3);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mo-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mo-yellow);
  flex-shrink: 0;
}

.mo-slide.dark .mo-kicker { color: var(--mo-dink-2); }

.mo-slide h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.mo-slide h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.008em;
  margin: 0 0 16px;
  max-width: 22ch;
}

.mo-slide h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  margin: 0 0 6px;
}

.mo-lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--mo-ink-2);
  max-width: 62ch;
  margin: 0 0 8px;
}

.mo-slide.dark .mo-lede { color: var(--mo-dink-2); }

.mo-hl { color: var(--mo-yellow); }

.mo-stat {
  font-size: clamp(56px, 7vw, 108px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mo-stat.md {
  font-size: clamp(40px, 4.6vw, 64px);
}

.mo-cap {
  font-size: 15px;
  color: var(--mo-ink-3);
  line-height: 1.4;
  margin-top: 6px;
}

.mo-slide.dark .mo-cap { color: var(--mo-dink-2); }

.mo-card {
  background: var(--mo-surface);
  border-radius: var(--mo-radius);
  padding: 34px;
}

.mo-slide.dark .mo-card { background: var(--mo-dsurface); }

.mo-card.on-dark { background: #000 !important; color: #fff; }
.mo-card.on-yellow { background: var(--mo-yellow) !important; color: #000; }

.mo-row { display: flex; gap: 24px; }
.mo-col { display: flex; flex-direction: column; gap: 24px; }
.mo-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mo-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.mo-tag {
  display: inline-block;
  padding: 3px 11px 4px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.mo-tag.yellow { background: var(--mo-yellow); color: #000; }
.mo-tag.dark { background: #000; color: #fff; }
.mo-tag.mid { background: #c9c9c9; color: #000; }
.mo-tag.light { background: #e2e2e2; color: #5c5c5c; }

.mo-foot {
  position: absolute;
  left: 9vw;
  bottom: 5vh;
  font-size: 13px;
  color: var(--mo-ink-3);
}

.mo-slide.dark .mo-foot { color: var(--mo-dink-2); }

.mo-pagenum {
  position: absolute;
  right: 9vw;
  bottom: 5vh;
  font-size: 13px;
  color: var(--mo-ink-3);
  font-variant-numeric: tabular-nums;
}

.mo-slide.dark .mo-pagenum { color: var(--mo-dink-2); }

.mo-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 50;
}

.mo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9c9c9;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}

.mo-dot.active {
  background: var(--mo-yellow);
  transform: scale(1.4);
  box-shadow: 0 0 0 1.5px #000 inset;
}

.mo-navbtn {
  position: fixed;
  right: 22px;
  z-index: 50;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--mo-rule);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--mo-ink);
}

.mo-navbtn.up { bottom: 96px; }
.mo-navbtn.down { bottom: 52px; }
.mo-navbtn:hover { background: #fff; }

/* Topic cards (landing) */
.mo-topic {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--mo-radius);
  padding: 28px 30px;
  background: var(--mo-surface);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  text-align: left;
  font: inherit;
}

.mo-topic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mo-topic .mo-stat.md { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }

/* Landing composer on dark slide */
.mo-landing-composer {
  width: 100%;
  max-width: 720px;
  margin-top: 28px;
}

.mo-landing-composer form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  background: var(--mo-dsurface);
  border-radius: var(--mo-radius);
  padding: 14px 16px;
  border: 1px solid #2b2b2b;
}

.mo-landing-composer textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--mo-dink);
  font: inherit;
  font-size: 17px;
  line-height: 1.45;
  resize: none;
  min-height: 28px;
  max-height: 120px;
  outline: none;
}

.mo-landing-composer textarea::placeholder { color: var(--mo-dink-2); }

.mo-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--mo-yellow);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.mo-send:disabled { opacity: 0.35; cursor: default; }

.mo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mo-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #333;
  background: transparent;
  color: var(--mo-dink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mo-chip:hover {
  background: var(--mo-yellow);
  color: #000;
  border-color: var(--mo-yellow);
}

.mo-chip-skeleton {
  pointer-events: none;
  opacity: 0.35;
  min-width: 88px;
  animation: mo-chip-pulse 1.2s ease-in-out infinite;
}

@keyframes mo-chip-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.45; }
}

/* ── Chat layout (deck-inspired, not Claude sidebar) ── */

.mo-chat-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mo-bg);
}

.mo-chat-top {
  flex-shrink: 0;
  background: var(--mo-dbg);
  color: var(--mo-dink);
  padding: 20px 9vw 22px;
  border-bottom: 1px solid #222;
}

.mo-chat-top-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.mo-chat-top h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  max-width: none;
}

.mo-chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mo-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #333;
  color: var(--mo-dink-2);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.mo-icon-link:hover {
  border-color: var(--mo-yellow);
  color: var(--mo-yellow);
}

.mo-lang {
  display: flex;
  border: 1px solid #333;
  border-radius: 999px;
  overflow: hidden;
}

.mo-lang button {
  border: none;
  background: transparent;
  color: var(--mo-dink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.mo-lang button.is-active {
  background: var(--mo-yellow);
  color: #000;
}

.mo-chat-main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 9vw 160px;
}

.mo-chat-thread {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mo-msg {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-radius: var(--mo-radius-sm);
  padding: 20px 26px;
}

/* .mo-msg's own `display: flex` (author, normal) beats the browser's built-in
   `[hidden] { display: none }` (UA, normal) at equal specificity — an
   [attr] selector always loses to a same-specificity class rule from the
   page's own stylesheet. Without this, hidden="" does nothing and the
   typing-indicator bubble shows up before any message was ever sent. */
.mo-msg[hidden] {
  display: none;
}

.mo-msg.user {
  background: var(--mo-yellow);
  color: #000;
  margin-left: 48px;
}

.mo-msg.assistant {
  background: var(--mo-surface);
}

.mo-msg-label {
  width: 72px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mo-ink-3);
  padding-top: 4px;
}

.mo-msg.user .mo-msg-label { color: #5c5700; }

.mo-msg-body {
  flex: 1;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--mo-ink-2);
}

.mo-msg.user .mo-msg-body { color: #000; font-weight: 500; }

.mo-msg-body p { margin: 0 0 12px; }
.mo-msg-body p:last-child { margin-bottom: 0; }
.mo-msg-body ul { margin: 0 0 12px; padding-left: 1.2em; }
.mo-msg-body a { color: inherit; font-weight: 700; }
.mo-msg-body strong { color: var(--mo-ink); font-weight: 700; }

.mo-typing {
  display: flex;
  gap: 6px;
  padding: 8px 0;
}

.mo-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mo-ink-3);
  animation: mo-bounce 1.2s infinite ease-in-out;
}

.mo-typing span:nth-child(2) { animation-delay: 0.15s; }
.mo-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes mo-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* "Did you know" fact shown under the typing dots while the answer is generated */
.mo-typing-body { display: flex; flex-direction: column; gap: 10px; }
.mo-fact[hidden] { display: none; }
.mo-fact {
  border-left: 3px solid var(--mo-yellow);
  padding: 2px 0 2px 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mo-fact.is-in { opacity: 1; transform: none; }
.mo-fact-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mo-ink-3);
}
.mo-fact-text {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  color: var(--mo-ink-2);
}

.mo-chat-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mo-dbg);
  border-top: 1px solid #222;
  padding: 16px 9vw 22px;
  z-index: 100;
}

.mo-chat-dock-inner {
  max-width: 960px;
  margin: 0 auto;
}

.mo-chat-dock .mo-chips {
  margin-top: 0;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.mo-chat-dock .mo-chips::-webkit-scrollbar { display: none; }

.mo-chat-dock .mo-chip {
  border-color: #444;
  flex-shrink: 0;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mo-chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--mo-dsurface);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  min-height: 52px;
  border: 1px solid #2b2b2b;
}

.mo-chat-form textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--mo-dink);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  padding: 8px 0;
  margin: 0;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  outline: none;
  vertical-align: middle;
}

.mo-chat-form textarea::placeholder { color: var(--mo-dink-2); }

.mo-chat-form .mo-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.mo-chat-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--mo-dink-2);
  margin: 10px 0 0;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Content-item cards (photos, links, quotes, etc.) inside deck chat — chat.css
   styles these for a dark bubble (white text, near-invisible white-tint
   background); re-tint for our light cards. */
.mo-msg-body .content-item {
  background: var(--mo-surface);
  border: 1px solid var(--mo-rule);
  border-radius: var(--mo-radius-sm);
  margin-top: 12px;
}
.mo-msg-body .content-item.image {
  background: var(--mo-surface);
  border: 1px solid var(--mo-rule);
}
.mo-msg-body .content-caption,
.mo-msg-body .content-item.image .content-caption {
  color: var(--mo-ink);
}
.mo-msg-body .content-item:hover {
  background: var(--mo-surface-2);
}

/* Music player inside deck chat */
.mo-music-wrap {
  margin-top: 16px;
}

.mo-msg-body .music-player-container {
  max-width: 100%;
}

.mo-msg-body .music-player {
  background: var(--mo-bg);
  border-radius: var(--mo-radius-sm);
  border: 1px solid var(--mo-rule);
}

/* music-player.css was designed for a dark bubble — re-tint its text for our
   light message cards so track name/artist/links stay readable. */
.mo-msg-body .music-player-container {
  background: var(--mo-surface);
  box-shadow: none;
}
.mo-msg-body .track-name { color: var(--mo-ink); }
.mo-msg-body .track-artist { color: var(--mo-ink-3); }
.mo-msg-body .streaming-links p { color: var(--mo-ink-3); }
.mo-msg-body .no-links { color: var(--mo-ink-3); }
.mo-msg-body .platform-link {
  color: var(--mo-ink-2);
  background: var(--mo-surface-2);
  border-color: var(--mo-rule);
}
.mo-msg-body .platform-link:hover {
  background: var(--mo-yellow);
  border-color: var(--mo-yellow-deep);
  color: var(--mo-ink);
}
.mo-msg-body .audio-player {
  background: var(--mo-surface-2);
  border-color: var(--mo-rule);
}

@media (max-width: 820px) {
  .mo-grid2, .mo-grid3 { grid-template-columns: 1fr; }
  .mo-row { flex-direction: column; }
  .mo-dots, .mo-navbtn { display: none; }
  .mo-slide { padding: 6vh 6vw 8vh; }
  .mo-msg.user { margin-left: 0; }
  .mo-chat-top, .mo-chat-main, .mo-chat-dock { padding-left: 6vw; padding-right: 6vw; }
}

/* ── Streaming caret + travel photos in answers ── */

.mo-msg-body.is-streaming::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--mo-ink);
  animation: mo-caret 1s steps(1) infinite;
}

@keyframes mo-caret {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mo-msg-body.is-streaming::after { animation: none; }
}

.mo-travel-wrap { margin-top: 14px; }

.mo-msg-body .travel-country h4 {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mo-ink-2);
}

.mo-msg-body .travel-country:first-child h4 { margin-top: 0; }

.mo-msg-body .travel-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.mo-msg-body .travel-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--mo-radius-sm);
  background: var(--mo-surface-2);
  cursor: zoom-in;
}

.mo-msg-body .travel-photo.travel-video { cursor: default; }

.mo-msg-body .travel-photo img,
.mo-msg-body .travel-photo video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mo-msg-body .travel-photo .photo-info {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mo-ink-2);
}

.mo-msg-body .travel-photo .photo-info:not(:has(.photo-description)) { display: none; }

/* Call-to-action button rendered by agents inside an answer (e.g. "Open synthesizer") */
.mo-msg-body .mo-cta-wrap { margin: 14px 0 2px; }

.mo-msg-body a.mo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--mo-yellow);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mo-msg-body a.mo-cta:hover,
.mo-msg-body a.mo-cta:focus-visible {
  background: var(--mo-dbg);
  color: var(--mo-yellow);
}
