/* Native Smart Guide — visual layer (behaviour lives in native-guide.js).
   Sized to sit inside the hero card so the guide is usable from the first screen. */
.native-guide-shell {
  background: var(--see-white);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.native-guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--see-line);
  background: var(--see-paper);
}
.native-guide-brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.native-guide-brand strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.native-guide-brand span {
  font-size: 12px;
  color: var(--see-muted);
}
.native-guide-poc-pill {
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  background: var(--season-soft);
  color: var(--see-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.native-guide-messages {
  flex: 1;
  min-height: 0;
  max-height: min(46vh, 400px);
  overflow-y: auto;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.native-message {
  max-width: 90%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.native-message.assistant {
  align-self: flex-start;
  background: var(--see-paper);
  color: var(--see-ink);
  border: 1px solid var(--see-line);
  border-bottom-left-radius: 5px;
}
.native-message.user {
  align-self: flex-end;
  background: var(--see-ink);
  color: var(--see-paper);
  border-bottom-right-radius: 5px;
}
.native-message.error {
  align-self: flex-start;
  background: #fff4ef;
  color: #8d3d22;
  border: 1px solid #f0c8b8;
}

/* Editorial (magazine) and verified official-source badges */
.native-guide-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.native-source {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--see-line);
  background: var(--see-white);
  color: var(--see-muted);
  font-size: 11px;
  line-height: 1.2;
  padding: 5px 9px;
}
.native-source[href] {
  border-color: var(--see-gold-dark);
  background: var(--see-sand);
  color: var(--see-ink) !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  box-shadow: 0 2px 8px rgba(28, 27, 26, .08);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.native-source[href]:hover,
.native-source[href]:focus-visible {
  background: var(--see-white);
  box-shadow: 0 4px 12px rgba(28, 27, 26, .12);
  transform: translateY(-1px);
  outline: none;
}
.native-source-live[href] {
  border-color: var(--see-green);
  background: #e7f0ec;
}

.native-guide-thinking:empty { display: none; }
.native-guide-thinking:not(:empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 5px;
  width: max-content;
  min-width: 54px;
  min-height: 38px;
  margin: 0 16px 12px;
  padding: 8px 15px 10px;
  border: 1px solid var(--see-gold-dark);
  border-radius: 15px;
  border-bottom-left-radius: 5px;
  background: var(--see-sand);
  box-shadow: 0 3px 12px rgba(28, 27, 26, .10);
  line-height: 1;
}
.native-guide-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--see-gold-dark);
  animation: see-guide-dot-bounce .9s ease-in-out infinite;
  transform-origin: center bottom;
}
.native-guide-dot:nth-child(2) { animation-delay: .12s; }
.native-guide-dot:nth-child(3) { animation-delay: .24s; }
@keyframes see-guide-dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .52; }
  30% { transform: translateY(-6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .native-guide-dot { animation: none; opacity: .75; }
  .native-guide-messages { scroll-behavior: auto; }
}

.native-guide-form {
  border-top: 1px solid var(--see-line);
  padding: 10px 10px 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--see-white);
}
.native-guide-input {
  flex: 1;
  min-width: 0;
  resize: none;
  min-height: 54px;
  max-height: 130px;
  border: 1px solid var(--see-line);
  border-radius: 16px;
  background: var(--see-paper);
  color: var(--see-ink);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.35;
  padding: 9px 13px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.native-guide-input::placeholder { color: #8a847d; }
.native-guide-input:focus {
  border-color: var(--see-ink);
  background: var(--see-white);
  box-shadow: 0 0 0 3px var(--season-soft);
}
.native-guide-send {
  flex-shrink: 0;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--season);
  color: var(--see-ink);
  padding: 0 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s, transform .12s;
}
.native-guide-send:hover:not(:disabled) { filter: brightness(1.06) saturate(1.05); }
.native-guide-send:active:not(:disabled) { transform: scale(0.97); }
.native-guide-send:focus-visible { outline: 2px solid var(--see-ink); outline-offset: 2px; }
.native-guide-send:disabled { opacity: .45; cursor: wait; }
.native-guide-test-note {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--see-line);
  background: var(--see-paper);
  color: var(--see-muted);
  font-size: 11.5px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .native-guide-messages { min-height: 0; max-height: 52vh; padding: 14px 12px; }
  .native-message { max-width: 94%; font-size: 14.5px; }
  .native-guide-form { padding: 10px; }
  .native-guide-send { padding: 0 16px; }
  .native-source[href] { font-size: 11px; padding: 7px 11px; }
  .native-guide-thinking:not(:empty) { margin-left: 12px; }
}

/* ── Phase 2 (visual only): cleaner composer ───────────────────────────────
   The topbar and the first welcome bubble ("Ask me about…") are hidden visually;
   the DOM and the JS that builds them are untouched. */
.native-guide-topbar { display: none; }
.native-guide-messages > .native-message.assistant:first-child { display: none; }
.native-guide-messages:not(:has(.native-message.user)) { padding: 0; }
.native-guide-form { border-top: 0; padding: 12px; }
.native-guide-messages:has(.native-message.user) + .native-guide-thinking + .native-guide-form,
.native-guide-messages:has(.native-message.user) ~ .native-guide-form { border-top: 1px solid var(--see-line); }
.native-guide-input { min-height: 58px; border-radius: 14px; font-size: 15px; }
.native-guide-send { min-height: 58px; }
.native-guide-test-note { border-top: 0; background: transparent; padding: 0 16px 12px; font-size: 11px; line-height: 1.5; color: #8a847d; }


/* Commercial preview refinements: keep the composer as the primary action. */
.native-guide-test-note { display: none !important; }
.native-guide-messages:empty { display: none; }
.native-guide-shell:has(.native-guide-messages:empty) .native-guide-form { border-top: 0; }
