/* ═══════════════════════════════════════════════════════════
   THOUGHT PARTNER — CSS (Light Theme)
   Bounded Intelligence overlay (Thought Partner) for ExecWise.ai
   White background, black text, orange accents
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────── */
.advisor-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.advisor-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Panel ────────────────────────────────────────────────── */
.advisor-panel {
  width: 100%; max-width: 740px;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}
.advisor-overlay.open .advisor-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* ── Site Header Bar (matches platform) ────────────────── */
.advisor-site-hdr {
  display: flex; align-items: center; justify-content: space-between;
  background: #0a0a0a;
  padding: 0 20px; height: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.advisor-site-logo {
  cursor: pointer; display: flex; align-items: center;
  text-decoration: none;
}
.advisor-site-logo img {
  height: 28px; width: auto;
}
.advisor-site-hdr-right {
  display: flex; align-items: center; gap: 8px;
}
.advisor-site-hdr-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.advisor-site-hdr-icon svg { width: 16px; height: 16px; stroke: #1a1a1a; }
.advisor-site-hdr-title {
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 600; color: #fff; letter-spacing: 0.01em;
}

/* ── Header ──────────────────────────────────────────────── */
.advisor-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fffbf5 0%, #ffffff 100%);
  flex-shrink: 0;
}
.advisor-hdr-left {
  display: flex; align-items: center; gap: 12px;
}
.advisor-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}
.advisor-title {
  font-family: var(--font-display); font-size: 1.08rem;
  font-weight: 600; color: #111; line-height: 1.2;
}
.advisor-subtitle {
  font-size: 0.72rem; color: #444;
  font-family: var(--font-body); line-height: 1.3;
  margin-top: 2px;
}
.advisor-hdr-right {
  display: flex; align-items: center; gap: 4px;
}

/* Header buttons */
.advisor-profile-btn, .advisor-history-btn {
  background: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.10);
  color: #444; border-radius: 8px;
  cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; font-size: 0.78rem;
  font-family: var(--font-display); font-weight: 500;
}
.advisor-profile-btn:hover, .advisor-history-btn:hover {
  background: #eee; border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}
.advisor-profile-btn.has-profile {
  border-color: rgba(230, 126, 34, 0.4);
  color: #d35400;
  background: rgba(230, 126, 34, 0.06);
}
.advisor-profile-label { display: inline; }
.advisor-close {
  background: none; border: none; color: #555;
  font-size: 1.2rem; cursor: pointer; padding: 6px 8px;
  border-radius: 6px; transition: all 0.2s ease;
  margin-left: 4px; line-height: 1;
}
.advisor-close:hover {
  color: #1a1a1a; background: #f0f0f0;
}

/* ── New Session button ──────────────────────────────────── */
.advisor-new-btn {
  background: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.10);
  color: #444; border-radius: 8px;
  cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px; font-size: 0.75rem;
  font-family: var(--font-display); font-weight: 500;
}
.advisor-new-btn:hover {
  background: #eee; color: #1a1a1a;
}

/* ── Profile Drawer ──────────────────────────────────────── */
.advisor-profile-drawer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fdfaf6;
  border-bottom: 1px solid transparent;
}
.advisor-profile-drawer.open {
  max-height: 420px;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.advisor-profile-inner {
  padding: 18px 22px 20px;
  overflow-y: auto;
  max-height: 400px;
}
.advisor-profile-note {
  font-size: 0.9rem; color: #1a1a1a;
  line-height: 1.6; margin-bottom: 18px;
  padding: 11px 14px; border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(230, 126, 34, 0.15);
}
.advisor-field { margin-bottom: 16px; position: relative; }
.advisor-field-label {
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 600; color: #222;
  letter-spacing: 0.03em; margin-bottom: 7px; display: block;
}

/* Role select */
.advisor-select-wrap { position: relative; }
.advisor-select {
  width: 100%; padding: 10px 14px;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px; color: #222;
  font-family: var(--font-body); font-size: 0.9rem;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color 0.2s ease;
}
.advisor-select:focus {
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}
.advisor-select option {
  background: #fff; color: #222;
}

/* Industry searchable dropdown */
.advisor-industry-wrap { position: relative; }
.advisor-industry-input {
  width: 100%; padding: 10px 14px;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px; color: #222;
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
.advisor-industry-input::placeholder { color: #555555; }
.advisor-industry-input:focus {
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}
.advisor-industry-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px; margin-top: 4px;
  max-height: 0; overflow-y: auto;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}
.advisor-industry-dropdown.open {
  max-height: 200px; opacity: 1;
}
.advisor-industry-option {
  padding: 10px 14px; cursor: pointer;
  font-size: 0.92rem; color: #1a1a1a;
  transition: all 0.12s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.advisor-industry-option:hover {
  background: rgba(230, 126, 34, 0.08); color: #111;
}
.advisor-industry-option:last-child { border-bottom: none; }

/* Profile actions */
.advisor-profile-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px;
}
.advisor-profile-clear {
  background: none; border: 1px solid rgba(0, 0, 0, 0.12);
  color: #555; padding: 7px 16px;
  border-radius: 7px; font-size: 0.8rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 500;
  transition: all 0.2s ease;
}
.advisor-profile-clear:hover {
  border-color: rgba(0, 0, 0, 0.25); color: #555;
}
.advisor-profile-done {
  background: #e67e22; border: none;
  color: #fff; padding: 7px 20px;
  border-radius: 7px; font-size: 0.8rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(230, 126, 34, 0.25);
}
.advisor-profile-done:hover {
  background: #d35400;
  box-shadow: 0 3px 10px rgba(230, 126, 34, 0.35);
}

/* ── History Drawer ──────────────────────────────────────── */
.advisor-history-drawer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
  background: #fafafa;
}
.advisor-history-drawer.open {
  max-height: 280px;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.advisor-history-inner {
  padding: 14px 22px 16px;
  max-height: 260px; overflow-y: auto;
}
.advisor-history-title {
  font-family: var(--font-display); font-size: 0.82rem;
  font-weight: 600; color: #444;
  margin-bottom: 10px; letter-spacing: 0.04em;
}
.advisor-history-empty {
  font-size: 0.88rem; color: #555;
  padding: 20px 0; text-align: center;
}
.advisor-history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; margin-bottom: 4px;
  border-radius: 7px; cursor: pointer;
  transition: all 0.15s ease;
}
.advisor-history-item:hover {
  background: rgba(230, 126, 34, 0.06);
}
.advisor-history-q {
  font-size: 0.92rem; color: #1a1a1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; margin-right: 12px;
}
.advisor-history-date {
  font-size: 0.72rem; color: #444444;
  font-family: var(--font-mono); white-space: nowrap;
}


/* ── Modal Overlays (Profile & History) ────────────────── */
.advisor-modal-overlay {
  position: fixed; inset: 0; z-index: 310;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.advisor-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.advisor-modal-box {
  background: #fff; border-radius: 14px;
  width: 100%; max-width: 480px;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: advisorModalIn 0.25s ease;
}
@keyframes advisorModalIn {
  from { transform: translateY(12px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.advisor-modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky; top: 0; background: #fff; z-index: 1;
  border-radius: 14px 14px 0 0;
}
.advisor-modal-title {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 600; color: #111;
}
.advisor-modal-close {
  background: #f5f5f5; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #555; transition: all 0.2s ease;
}
.advisor-modal-close:hover {
  background: #eee; color: #1a1a1a;
}

/* ── Body — Conversation Area ────────────────────────────── */
.advisor-body {
  flex: 1; overflow-y: auto; padding: 0;
  min-height: 250px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Welcome State */
.advisor-welcome {
  padding: 10px 20px 6px; text-align: left;
}
.advisor-welcome-title {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 600; color: #111; margin-bottom: 4px;
}
.advisor-welcome-desc {
  font-size: 0.92rem; color: #1a1a1a;
  line-height: 1.7; max-width: 100%; margin: 0 0 0;
}
.advisor-examples {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  max-width: 100%; margin: 0; padding: 10px 0 4px;
}
.advisor-examples:empty { display: none; padding: 0; }
.advisor-example {
  text-align: left; padding: 13px 15px;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px; cursor: pointer;
  font-size: 0.9rem; color: #1a1a1a;
  line-height: 1.5; transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.advisor-example:hover {
  border-color: rgba(230, 126, 34, 0.35);
  color: #222; background: #fffbf5;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.08);
  transform: translateY(-1px);
}

/* Conversation Thread */
.advisor-thread {
  display: none;
  padding: 24px 22px 16px;
}

/* Messages */
.advisor-msg { margin-bottom: 24px; }

/* User message */
.advisor-msg-user {
  display: flex; justify-content: flex-end;
}
.advisor-msg-user .advisor-msg-content {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff;
  padding: 12px 18px; border-radius: 16px 16px 4px 16px;
  max-width: 85%; font-size: 0.93rem; line-height: 1.55;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
}

/* Advisor message */
.advisor-msg-advisor {
  display: flex; gap: 12px; align-items: flex-start;
}
.advisor-msg-avatar {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: #fff; font-weight: 700;
  flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 2px 6px rgba(230, 126, 34, 0.2);
}
.advisor-msg-advisor .advisor-msg-content {
  flex: 1; min-width: 0;
}

/* Response text */
.advisor-resp-text {
  color: #1a1a1a; font-size: 0.94rem;
  line-height: 1.78;
}
.advisor-resp-text p { margin-bottom: 14px; }
.advisor-resp-text p:last-child { margin-bottom: 0; }
.advisor-resp-text strong { color: #000; font-weight: 600; }

/* Loading state */
.advisor-loading {
  padding: 16px 0 !important;
}
.advisor-loading-status {
  font-family: var(--font-display); font-size: 0.84rem;
  color: #c0392b; margin-bottom: 10px;
  font-weight: 500;
}
.advisor-loading-bar {
  width: 100%; height: 4px; background: rgba(0,0,0,0.06);
  border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.advisor-loading-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, #e67e22, #f39c12);
  border-radius: 4px; transition: width 0.8s ease;
}
.advisor-loading-timer {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}
}

/* Error state */
.advisor-error {
  background: #fef2f2 !important;
  border: 1px solid rgba(220, 53, 69, 0.2) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}
.advisor-error-text {
  color: #b91c1c; font-size: 0.9rem;
}

/* Source chips */
.advisor-sources {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.advisor-sources-label {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #555555; margin-bottom: 8px;
}
.advisor-source-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; margin: 3px 5px 3px 0;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 7px; cursor: pointer;
  transition: all 0.2s ease; font-size: 0.8rem;
}
.advisor-source-chip:hover {
  background: rgba(230, 126, 34, 0.06);
  border-color: rgba(230, 126, 34, 0.3);
}
.advisor-source-pillar {
  color: #444; font-weight: 500; font-size: 0.75rem;
}
.advisor-source-nav { color: #1a1a1a; font-weight: 500; }

/* Explore deeper links */
.advisor-explore {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.advisor-explore-label {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #d35400; margin-bottom: 10px;
}
.advisor-explore-group { margin-bottom: 12px; }
.advisor-explore-nav {
  font-size: 0.74rem; color: #555;
  font-weight: 600; margin-bottom: 6px;
  font-family: var(--font-display);
}
.advisor-explore-item {
  padding: 11px 14px; margin-bottom: 6px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s ease;
}
.advisor-explore-item:hover {
  background: rgba(230, 126, 34, 0.04);
  border-color: rgba(230, 126, 34, 0.25);
  transform: translateX(3px);
}
.advisor-explore-meta {
  font-family: var(--font-mono); font-size: 0.66rem;
  color: #d35400; letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.advisor-explore-title {
  font-family: var(--font-display); font-size: 0.88rem;
  font-weight: 600; color: #222;
  line-height: 1.35;
}
.advisor-explore-tldr {
  font-size: 0.8rem; color: #444;
  line-height: 1.55; margin-top: 5px;
}


/* ── Suggested Questions Section ───────────────────────── */
.advisor-suggestions-section {
  padding: 4px 20px 20px;
}
.advisor-suggestions-label {
  font-family: var(--font-display); font-size: 0.88rem;
  font-weight: 600; color: #555;
  margin-bottom: 10px; padding-top: 4px;
}
.advisor-close-section {
  text-align: center; padding: 16px 0 8px;
}
.advisor-close-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px; padding: 9px 18px;
  font-family: var(--font-display); font-size: 0.84rem;
  font-weight: 500; color: #444444; cursor: pointer;
  transition: all 0.2s ease;
}
.advisor-close-btn:hover {
  border-color: rgba(230,126,34,0.4); color: #e67e22;
  background: rgba(230,126,34,0.04);
}

/* ── Input Area (always visible at bottom) ───────────────── */
.advisor-input-area {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  flex-shrink: 0;
}
.advisor-input-row {
  display: flex; align-items: flex-end; gap: 10px;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px; padding: 6px 8px 6px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.advisor-input-row:focus-within {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}
.advisor-input-row.advisor-input-hero {
  border: 2px solid rgba(230, 126, 34, 0.40);
  border-radius: 14px; padding: 6px 8px 6px 16px;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.08);
  background: #fff;
}
.advisor-input-row.advisor-input-hero:focus-within {
  border-color: rgba(230, 126, 34, 0.65);
  box-shadow: 0 4px 24px rgba(230, 126, 34, 0.15);
}
.advisor-input {
  flex: 1; background: none; border: none; color: #111;
  font-family: var(--font-body); font-size: 0.94rem;
  line-height: 1.5; resize: none; padding: 7px 0;
  max-height: 120px; min-height: 22px;
}
.advisor-input::placeholder { color: #555555; }
.advisor-input:focus { outline: none; }
.advisor-send {
  border-radius: 8px; padding: 10px 18px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  flex-shrink: 0; transition: all 0.2s ease;
  color: #000; font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}
.advisor-send:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.4);
}
.advisor-send.disabled {
  opacity: 0.4; pointer-events: none;
}
.advisor-input-footer {
  margin-top: 8px; text-align: center;
}
.advisor-bounded-badge { display: none !important;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.69rem; color: #555555;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.02em;
}
.advisor-bounded-badge svg { opacity: 0.7; stroke: #555555; }

/* ── Desktop Large — Expanded panel ───────────────────── */
@media (min-width: 1025px) {
  .advisor-panel {
    max-width: 860px;
  }
  .advisor-title { font-size: 1.15rem; }
  .advisor-resp-text { font-size: 1rem; line-height: 1.82; }
  .advisor-welcome-title { font-size: 1.65rem; }
  .advisor-welcome-desc { font-size: 0.96rem; }

  .advisor-example { font-size: 0.88rem; padding: 15px 17px; }
  .advisor-explore-title { font-size: 0.92rem; }
  .advisor-input { font-size: 1rem; }
}

/* ── Mobile Responsive ───────────────────────────────────── */

/* Mobile: Thought Partner button — show short "Ask" label */
@media (max-width: 768px) {
  .search-btn .se-kbd { display: none; }
  .search-btn .se-text { display: none; }
  .search-btn .se-mob { display: inline; }
  .search-btn { padding: 7px 14px 7px 10px; font-size: 0.78rem; gap: 6px; }
  .search-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 700px) {
  .advisor-overlay { padding: 0; align-items: stretch; }
  .advisor-panel {
    max-width: 100%; max-height: 100vh;
    border-radius: 0; border: none;
    touch-action: auto;
  }
  .advisor-hdr { padding: 12px 14px 10px; }
  .advisor-subtitle { display: none; }
  .advisor-profile-label { display: none; }
  .advisor-welcome { padding: 12px 18px 6px; }
  .advisor-welcome-title { font-size: 1.25rem; }
  .advisor-examples { grid-template-columns: 1fr; max-width: 100%; padding: 0; }
  .advisor-thread { padding: 16px 14px 10px; }
  .advisor-msg-user .advisor-msg-content { max-width: 92%; }
  .advisor-input-area { padding: 10px 12px 12px; }

  .advisor-input { font-size: 16px !important; }
  .advisor-select, .advisor-industry-input { font-size: 16px !important; }
  .advisor-resp-text { font-size: 0.92rem; word-wrap: break-word; overflow-wrap: break-word; }
  .advisor-explore-item { padding: 10px 12px; }
  .advisor-explore-title { font-size: 0.86rem; word-wrap: break-word; }
  .advisor-explore-meta { font-size: 0.64rem; }
  .advisor-source-chip { font-size: 0.76rem; padding: 5px 10px; }
  .advisor-profile-inner { padding: 14px 16px 16px; max-height: 320px; overflow-y: auto; }
}
@media (max-width: 420px) {
  .advisor-profile-btn svg, .advisor-history-btn svg { width: 16px; height: 16px; }
  .advisor-new-btn span { display: none; }
}


@media (max-width: 700px) {
  .advisor-site-hdr { height: 48px; padding: 0 14px; }
  .advisor-site-logo img { height: 22px; }
  .advisor-site-hdr-title { font-size: 0.85rem; }
  .advisor-site-hdr-icon { width: 28px; height: 28px; border-radius: 6px; }
  .advisor-site-hdr-icon svg { width: 14px; height: 14px; }
  .advisor-modal-overlay { padding: 16px; }
  .advisor-modal-box { max-height: 85vh; }
  .advisor-suggestions-section { padding: 0 16px 16px; }
}
/* ── Back to Thought Partner floating button ──────────────── */
.advisor-back-float {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 250;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff; font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.35), 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.25s ease;
  animation: advisorBackIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.advisor-back-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(230, 126, 34, 0.4), 0 4px 12px rgba(0,0,0,0.15);
}
@keyframes advisorBackIn {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  .advisor-back-float {
    bottom: 16px; right: 16px;
    padding: 10px 16px; font-size: 0.82rem;
    border-radius: 10px;
  }
}
