/* ---- Global fix: ensure [hidden] always wins over display: flex/block ---- */
/* Without this, classes like .results-loading { display: flex } override the
   browser's default [hidden] { display: none }, causing multiple states to
   render simultaneously. */
[hidden] { display: none !important; }

/* ---- App layout ---- */
.app-body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Nav ---- */
.app-nav {
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-surface);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

/* ---- App layout ---- */
.app-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 56px);
}

/* ---- Panels ---- */
.panel {
  overflow-y: auto;
  padding: 28px 24px;
}

.panel-left {
  width: 360px;
  min-width: 300px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-shrink: 0;
}

.panel-right {
  flex: 1;
  background: var(--bg);
}

.panel-header h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.panel-sub {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.validation-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #6366f1);
  background: rgba(99,102,241,0.12);
  border-radius: 50%;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
}
.validation-tip:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #1e293b;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  width: 220px;
  white-space: normal;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  pointer-events: none;
}
.validation-tip:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
  z-index: 101;
}

/* ---- Form ---- */
.research-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder {
  color: var(--fg-dim);
}

.form-group input:focus {
  border-color: var(--accent);
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 5px 12px;
  transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--fg);
}

.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ---- Spinner ---- */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- History ---- */
.history-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-header h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.history-item:hover {
  border-color: rgba(79, 125, 249, 0.4);
  background: #1a1a22;
}

.history-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.history-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-company {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-date {
  font-size: 11px;
  color: var(--fg-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.empty-state {
  font-size: 13px;
  color: var(--fg-dim);
  text-align: center;
  padding: 24px 0;
  line-height: 1.6;
}

/* ---- Results: Empty state ---- */
.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--fg-muted);
  gap: 12px;
}

.results-empty .empty-icon {
  font-size: 48px;
  opacity: 0.4;
}

.results-empty h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.results-empty p {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 300px;
  line-height: 1.6;
}

/* ---- Results: Loading state ---- */
.results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 28px;
  text-align: center;
}

.loading-animation {
  position: relative;
  width: 64px;
  height: 64px;
}

.loading-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,125,249,0.5) 0%, transparent 70%);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.results-loading h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.3s;
}

.loading-step.active { color: var(--fg); }
.loading-step.done { color: var(--green); }

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: background 0.3s;
}

.loading-step.active .step-dot {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: dot-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes dot-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.5); }
}

/* ---- Results: Content ---- */
.results-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.results-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.prospect-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prospect-meta h2 {
  font-size: 1.4rem;
}

.prospect-company {
  font-size: 14px;
  color: var(--fg-muted);
}

.badge-complete {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Training-data fallback — degraded but usable */
.badge-training-data {
  font-size: 12px;
  font-weight: 500;
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Rate-limited — service unavailable */
.badge-rate-limited {
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Warning banner for degraded research entries */
.research-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  margin: 0 0 14px 0;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 6px;
  font-size: 12px;
  color: #d97706;
  line-height: 1.5;
}

.research-warning .warning-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.research-warning .warning-text {
  color: #b45309;
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 0;
  padding: 20px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px 10px;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--accent); }

/* ---- Tab panels ---- */
.tab-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px 28px;
  gap: 12px;
}

/* ---- Email editor ---- */
.email-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-label {
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.email-actions {
  display: flex;
  gap: 8px;
}

.email-editor {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 280px;
  padding: 16px;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.email-editor:focus {
  border-color: rgba(79, 125, 249, 0.4);
}

.save-confirmation {
  font-size: 13px;
  color: var(--green);
  text-align: right;
  padding-top: 4px;
}

/* ---- Research summary ---- */
.research-summary {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-y: auto;
  padding: 20px;
  white-space: pre-wrap;
  flex: 1;
}

/* ---- Research sub-tabs (Key Findings / Company Intel / Pain Points) ---- */
.research-sub-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.research-sub-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px 10px;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.research-sub-tab:hover {
  color: var(--fg);
}

.research-sub-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.research-sub-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  animation: rtab-fade-in 0.2s ease-out;
}

@keyframes rtab-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.research-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}

.research-bullet:hover {
  border-color: rgba(255,255,255,0.12);
}

.bullet-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.5;
}

.bullet-text {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .app-body {
    overflow-x: hidden;
  }

  .app-layout {
    flex-direction: column;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .panel-left {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 20px;
  }

  .panel-right {
    min-height: 600px;
  }

  /* On mobile the guide widget is fixed to the right of the panel-right
     (which is full-width below panel-left), so we anchor it to the
     bottom-right of the viewport but push it up enough that it doesn't
     overlap past-research entries in the panel-left above. */
  .guide-widget {
    bottom: 16px;
    right: 16px;
  }
}

/* ──────────────────────────────────────────────────────────
   Onboarding Guide Widget
   A scripted instructor widget that walks new users through
   the validation sequence: signup → first research (known)
   → second research (stranger) → wall awareness.
   Does NOT own research logic — hooks into app state events.
────────────────────────────────────────────────────────── */

/* Floating container — fixed bottom-right */
.guide-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none; /* children re-enable pointer-events */
}

/* Minimized indicator — shown when guide is dismissed */
.guide-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent, #6366f1);
  box-shadow: 0 4px 20px rgba(99,102,241,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 20px;
  user-select: none;
}
.guide-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(99,102,241,0.6);
}
/* Pulse dot — indicates unread step */
.guide-bubble-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--bg, #0f0f17);
  animation: guide-dot-pulse 2s ease-in-out infinite;
}
@keyframes guide-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

/* Main panel */
.guide-panel {
  width: 300px;
  background: #1a1a2e;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.1);
  pointer-events: auto;
  overflow: hidden;
  transition: opacity 0.25s, transform 0.25s;
  transform-origin: bottom right;
}
.guide-panel.guide-hidden {
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  pointer-events: none;
}

/* Panel header */
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guide-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.guide-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg, #e2e8f0);
}
.guide-subtitle {
  font-size: 10px;
  color: var(--fg-muted, #94a3b8);
  letter-spacing: 0.04em;
}
.guide-close-btn {
  background: transparent;
  border: none;
  color: var(--fg-muted, #94a3b8);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.guide-close-btn:hover { color: var(--fg, #e2e8f0); }

/* Progress bar */
.guide-progress-wrap {
  height: 2px;
  background: rgba(255,255,255,0.06);
}
.guide-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.4s ease;
}

/* Message area */
.guide-body {
  padding: 14px 16px;
}
.guide-message {
  font-size: 13.5px;
  color: var(--fg, #e2e8f0);
  line-height: 1.55;
  margin-bottom: 12px;
}
.guide-message strong {
  color: #a5b4fc;
}
.guide-message em {
  color: var(--fg-muted, #94a3b8);
  font-style: normal;
}

/* Action buttons */
.guide-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.guide-btn-primary {
  flex: 1;
  background: var(--accent, #6366f1);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 12px;
  font-family: var(--font-display, inherit);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  text-align: center;
}
.guide-btn-primary:hover { opacity: 0.88; }
.guide-btn-secondary {
  background: transparent;
  color: var(--fg-muted, #94a3b8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.guide-btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--fg, #e2e8f0);
}

/* Celebration animation on step complete */
@keyframes guide-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.guide-panel.guide-pop {
  animation: guide-pop 0.35s ease;
}

/* Step dots */
.guide-step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 16px 12px;
}
.guide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s, transform 0.3s;
}
.guide-dot.active {
  background: #6366f1;
  transform: scale(1.3);
}
.guide-dot.done {
  background: #10b981;
}

/* Clickable links inside guide messages — scroll to/focus the form */
.guide-focus-link {
  color: #a5b4fc;
  text-decoration: underline;
  text-decoration-color: rgba(165,180,252,0.4);
  text-underline-offset: 2px;
  cursor: pointer;
  transition: text-decoration-color 0.15s;
}
.guide-focus-link:hover {
  text-decoration-color: #a5b4fc;
}

/* When guide panel is open, add bottom padding to right panel so the
   fixed-position widget doesn't cover email content or research results. */
.guide-visible .panel-right {
  padding-bottom: 260px;
}

/* Mobile: compact right-anchored guide — no longer spans full viewport */
@media (max-width: 640px) {
  .guide-widget {
    bottom: 16px;
    right: 16px;
    /* removed left:16px — it stretched the widget to full viewport width,
       causing the guide panel to cover the history sidebar on the left */
    align-items: flex-end;
  }
  .guide-panel {
    /* fixed 280px — contained, not full-viewport, so it stays in the right column */
    width: 280px;
    max-width: 280px;
    box-sizing: border-box;
  }
  .guide-body {
    padding: 12px 12px;
  }
  .guide-message {
    font-size: 13px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .guide-header {
    padding: 10px 12px 8px;
  }
  .guide-btn-primary,
  .guide-btn-secondary {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ── Scroll-down indicator ───────────────────────────────────────────────── */
.scroll-indicator {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e1e2e;
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 99px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.1);
  animation: scroll-indicator-enter 0.3s ease;
}

.scroll-indicator-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  white-space: nowrap;
}

.scroll-indicator-arrow {
  color: #a5b4fc;
  flex-shrink: 0;
  animation: scroll-indicator-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-indicator-enter {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes scroll-indicator-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Show only on narrow viewports (where results tend to be below fold) */
@media (min-width: 769px) {
  .scroll-indicator { display: none; }
}

/* On mobile: guide widget sits bottom-right; nudge pill up so they don't overlap */
@media (max-width: 640px) {
  .scroll-indicator {
    bottom: 80px;
  }
}

@media (max-width: 400px) {
  .scroll-indicator {
    bottom: 72px;
    padding: 7px 14px;
  }
  .scroll-indicator-text {
    font-size: 12px;
  }
}
