/* ============================================================
 * MediaNet · Search & MediaJARVIS overlays — Cinematic 2026
 *
 * Replaces the dated chip-and-list aesthetic of search-ui.js +
 * jarvis-overlay.js with a refined, atmospheric, AAA-streaming look:
 *
 *   SEARCH (Spotlight pattern, à la Raycast / Linear / Vercel)
 *     - Full-viewport blurred backdrop
 *     - Centered glass card, top 12vh, max 720px
 *     - 60px Fraunces serif input, brass caret accent
 *     - Filter chips below input (same family as content-filters)
 *     - Results = vertical list with poster, hover lift, kbd nav
 *
 *   JARVIS (Conversational AI panel)
 *     - Right slide-in 480px panel with backdrop blur
 *     - Animated AI orb header (cinematic gradient pulse)
 *     - Suggestion chips at empty state
 *     - Bottom input bar with mic + send (60px tall)
 *     - Movie cards inline with poster + Play CTA
 *
 * Selectors prefixed with `body` for higher specificity than the
 * JS-injected `<style>` tags from search-ui.js and jarvis-overlay.js.
 * Tokens consumed from design-tokens.css.
 * ============================================================ */

/* =====================================================================
 * SEARCH OVERLAY — .sui-* (search-ui.js)
 * =================================================================== */

/* Backdrop */
body .sui-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  background: rgba(8, 9, 11, 0.92) !important;
  backdrop-filter: saturate(180%) blur(28px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(28px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 12vh 20px 40px !important;
  animation: sui-backdrop-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sui-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Topbar = the input row + close X. Style as a centered glass card. */
body .sui-overlay .sui-topbar {
  width: 100%;
  max-width: 720px;
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  animation: sui-card-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sui-card-in {
  from { transform: translateY(-12px) scale(0.985); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Back arrow — keep but reduce visual weight to a subtle ghost */
body .sui-overlay .sui-back {
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: 0 !important;
  color: rgba(232, 230, 225, 0.6) !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: background 150ms ease-out, color 150ms ease-out;
}
body .sui-overlay .sui-back:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Close ✕ — same treatment */
body .sui-overlay .sui-x {
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: 0 !important;
  color: rgba(232, 230, 225, 0.6) !important;
  font-size: 22px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: background 150ms ease-out, color 150ms ease-out;
}
body .sui-overlay .sui-x:hover {
  background: rgba(229, 9, 20, 0.18) !important;
  color: #ffffff !important;
}

/* Input wrapper — large glass surface */
body .sui-overlay .sui-input-wrap {
  position: relative !important;
  background: rgba(20, 22, 28, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 60px -8px rgba(0, 0, 0, 0.7),
              0 2px 12px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
body .sui-overlay .sui-input-wrap:focus-within {
  border-color: rgba(212, 165, 116, 0.5) !important;  /* brass */
  box-shadow: 0 18px 60px -8px rgba(0, 0, 0, 0.8),
              0 0 0 4px rgba(212, 165, 116, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
body .sui-overlay .sui-input-wrap svg.sui-search-icon {
  color: rgba(212, 165, 116, 0.85) !important;  /* brass */
  margin: 0 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
}

/* The actual input — serif display font for cinematic feel */
body .sui-overlay .sui-input {
  flex: 1 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  font-family: var(--mn-font-headline, "Fraunces", Georgia, serif) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: -0.005em !important;
  color: #ffffff !important;
  padding: 22px 22px 22px 16px !important;
  caret-color: #d4a574 !important;  /* brass */
  height: auto !important;
  min-height: 64px !important;
  border-radius: 0 !important;
}
body .sui-overlay .sui-input::placeholder {
  color: rgba(232, 230, 225, 0.35) !important;
  font-style: italic !important;
  font-weight: 300 !important;
}

/* Suggest dropdown — anchored under input */
body .sui-overlay .sui-suggest {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0; right: 0 !important;
  background: rgba(15, 17, 21, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 80px -8px rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 6px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
}
body .sui-overlay .sui-suggest-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  color: rgba(232, 230, 225, 0.85) !important;
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 14px !important;
  transition: background 120ms ease-out, color 120ms ease-out, transform 120ms ease-out;
}
body .sui-overlay .sui-suggest-item:hover,
body .sui-overlay .sui-suggest-item.is-active {
  background: rgba(212, 165, 116, 0.12) !important;
  color: #ffffff !important;
  transform: translateX(2px) !important;
}
body .sui-overlay .sui-suggest-item mark {
  background: transparent !important;
  color: #d4a574 !important;
  font-weight: 600 !important;
}

/* Filters strip — full-width brass-accented chips below the input card */
body .sui-overlay .sui-filters {
  width: 100% !important;
  max-width: 720px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 16px !important;
  padding: 20px 4px 8px !important;
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
}
body .sui-overlay .sui-filter-label {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(232, 230, 225, 0.45) !important;
  margin: 0 4px 0 0 !important;
  flex-shrink: 0 !important;
}
body .sui-overlay .sui-pill-row { gap: 6px !important; }
body .sui-overlay .sui-pill {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(232, 230, 225, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
body .sui-overlay .sui-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
body .sui-overlay .sui-pill.is-active {
  background: rgba(212, 165, 116, 0.18) !important;
  border-color: rgba(212, 165, 116, 0.6) !important;
  color: #ffffff !important;
}
body .sui-overlay .sui-pill .sui-count {
  margin-left: 6px !important;
  padding: 1px 6px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  color: rgba(232, 230, 225, 0.6) !important;
}
body .sui-overlay .sui-pill.is-active .sui-count {
  background: rgba(0, 0, 0, 0.4) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}
body .sui-overlay .sui-sort-select {
  background: rgba(20, 22, 28, 0.85) !important;
  color: rgba(232, 230, 225, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 12px !important;
}

/* Results body — vertical list of cards with poster + meta */
body .sui-overlay .sui-body {
  width: 100% !important;
  max-width: 720px !important;
  margin-top: 12px !important;
  padding: 0 4px !important;
  overflow-y: auto !important;
  flex: 1 !important;
}
body .sui-overlay .sui-results-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 0 14px !important;
}
body .sui-overlay .sui-results-count {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(232, 230, 225, 0.45) !important;
}

/* Result cards — list view with hover lift */
body .sui-overlay .sui-result,
body .sui-overlay .sui-result-card {
  display: flex !important;
  gap: 16px !important;
  padding: 10px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  margin-bottom: 4px !important;
  transition: background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
body .sui-overlay .sui-result:hover,
body .sui-overlay .sui-result.is-active {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}
body .sui-overlay .sui-result-poster {
  width: 56px !important;
  height: 84px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
body .sui-overlay .sui-result-title {
  font-family: var(--mn-font-headline, "Fraunces", serif) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 4px !important;
}
body .sui-overlay .sui-result-meta {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 12px !important;
  color: rgba(232, 230, 225, 0.6) !important;
}

/* Empty state — large icon + suggestion text */
body .sui-overlay .sui-empty,
body .sui-overlay .sui-no-results {
  text-align: center !important;
  padding: 60px 20px !important;
  color: rgba(232, 230, 225, 0.5) !important;
  font-family: var(--mn-font-headline, "Fraunces", serif) !important;
  font-size: 18px !important;
  font-style: italic !important;
  font-weight: 300 !important;
}

/* Mobile */
@media (max-width: 600px) {
  body .sui-overlay { padding: 6vh 12px 20px !important; }
  body .sui-overlay .sui-input { font-size: 18px !important; padding: 18px 18px 18px 12px !important; min-height: 56px !important; }
  body .sui-overlay .sui-input-wrap svg.sui-search-icon { margin-left: 18px !important; }
}

/* =====================================================================
 * JARVIS OVERLAY — #jarvis-overlay (jarvis-overlay.js)
 * =================================================================== */

body #jarvis-overlay {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 480px !important;
  max-width: 100vw !important;
  /* z-index BUMP 2026-05-19: was 1100, which lost to #profile-gate (z:9999).
     If JARVIS opened before user picked a profile, the gate intercepted ALL
     clicks (including X). Now JARVIS sits above the gate too. */
  z-index: 10000 !important;
  background: linear-gradient(180deg,
    rgba(15, 17, 21, 0.96) 0%,
    rgba(8, 9, 11, 0.98) 100%) !important;
  backdrop-filter: saturate(180%) blur(28px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(28px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: -32px 0 80px -16px rgba(0, 0, 0, 0.6) !important;
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  padding: 0 !important;
  animation: jv-slide-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes jv-slide-in {
  from { transform: translateX(100%); opacity: 0.5; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Backdrop pseudo-element behind the panel (covers main content) */
body #jarvis-overlay::before {
  content: "";
  position: fixed !important;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: jv-backdrop-in 280ms ease-out both;
}
@keyframes jv-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Close button — top right. Bumped to 44×44 for Apple HIG touch target
   compliance. Solid background ensures finger-friendly hit area on mobile
   (transparent was invisible against busy backgrounds). z-index 1000 puts
   it ABOVE input area + safe-area inset top so it clears iPhone notch.
   pointer-events:auto defends against parent overlay rules. */
body #jarvis-overlay .jv-close {
  position: absolute !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  right: 12px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 150ms ease-out, color 150ms ease-out, transform 200ms ease-out;
  -webkit-tap-highlight-color: rgba(229, 9, 20, 0.3);
}
body #jarvis-overlay .jv-close:hover {
  background: rgba(229, 9, 20, 0.18) !important;
  color: #ffffff !important;
  transform: rotate(90deg) !important;
}

/* Scroll area = header + messages */
body #jarvis-overlay .jv-scroll-area {
  overflow-y: auto !important;
  padding: 60px 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
body #jarvis-overlay .jv-scroll-area::-webkit-scrollbar { width: 6px; }
body #jarvis-overlay .jv-scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }

/* Title — large Fraunces serif with animated AI orb */
body #jarvis-overlay .jv-title {
  font-family: var(--mn-font-headline, "Fraunces", serif) !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
/* Replace text emoji with animated orb */
body #jarvis-overlay .jv-title::before {
  content: "" !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0%, transparent 30%),
    conic-gradient(from 180deg, #d4a574, #e50914, #5b8a72, #d4a574) !important;
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.55),
              inset 0 -4px 12px rgba(0, 0, 0, 0.3) !important;
  animation: jv-orb 3.6s ease-in-out infinite !important;
  flex-shrink: 0 !important;
}
@keyframes jv-orb {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.08); filter: brightness(1.2); }
}
/* Hide the text emoji that was hardcoded in the title */
body #jarvis-overlay .jv-title { font-size: 0 !important; gap: 0 !important; }
body #jarvis-overlay .jv-title::after {
  content: "MediaJARVIS" !important;
  font-family: var(--mn-font-headline, "Fraunces", serif) !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  margin-left: 14px !important;
}

/* Subtitle */
body #jarvis-overlay .jv-sub {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(232, 230, 225, 0.6) !important;
  line-height: 1.55 !important;
  margin: 4px 0 8px !important;
}

/* Status messages */
body #jarvis-overlay .jv-status {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 13px !important;
  color: rgba(212, 165, 116, 0.85) !important;
  padding: 8px 0 !important;
  font-style: italic !important;
}
body #jarvis-overlay .jv-status:empty { display: none !important; }

/* Reasoning text */
body #jarvis-overlay .jv-reason {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 12px !important;
  color: rgba(232, 230, 225, 0.45) !important;
  border-left: 2px solid rgba(212, 165, 116, 0.3) !important;
  padding: 8px 0 8px 12px !important;
  margin: 6px 0 !important;
  font-style: italic !important;
}
body #jarvis-overlay .jv-reason:empty { display: none !important; }

/* Movie result cards */
body #jarvis-overlay .jv-results { display: flex !important; flex-direction: column !important; gap: 10px !important; }
body #jarvis-overlay .jv-card {
  display: grid !important;
  grid-template-columns: 64px 1fr !important;
  gap: 14px !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
body #jarvis-overlay .jv-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(212, 165, 116, 0.35) !important;
  transform: translateY(-1px) !important;
}
body #jarvis-overlay .jv-card-art {
  width: 64px !important;
  height: 96px !important;
  border-radius: 6px !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: rgba(255,255,255,0.04) !important;
  flex-shrink: 0 !important;
}
body #jarvis-overlay .jv-card-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
}
body #jarvis-overlay .jv-card-title {
  font-family: var(--mn-font-headline, "Fraunces", serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body #jarvis-overlay .jv-card-meta {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 12px !important;
  color: rgba(232, 230, 225, 0.55) !important;
  letter-spacing: 0.01em !important;
}

/* Input area — bottom, prompt + mic + send.
   IMPORTANT: jarvis-overlay.js injects `position: absolute; bottom: 0` on
   .jv-input-area at script-time (line 69). On desktop the CSS grid layout
   absorbs the extra row; on mobile the absolute element is REMOVED from
   grid flow → the `auto` row collapses to 0px → title/sub get rendered
   inside the (now full-height) scroll-area and flex-center vertically,
   producing the "design crash" the user reported.
   Fix: force position:relative here so the grid honors the input area
   as a proper row again. Higher specificity (`body ...`) + !important
   beats the JS-injected style. */
body #jarvis-overlay .jv-input-area {
  position: relative !important;
  inset: auto !important;
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(8, 9, 11, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  z-index: 4 !important;
}

/* Force scroll-area to start at top (not flex-center) and reset the
   JS-injected `padding-bottom: 220px` which was reserved for the old
   absolute input-area position. */
body #jarvis-overlay .jv-scroll-area {
  justify-content: flex-start !important;
  padding-bottom: 24px !important;
}

/* Suggestion chips — horizontal scroll on mobile to prevent 3-row stack
   that eats half the screen at 375px width. */
body #jarvis-overlay .jv-examples {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
@media (max-width: 640px) {
  body #jarvis-overlay .jv-examples {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  body #jarvis-overlay .jv-examples::-webkit-scrollbar { display: none; }
  body #jarvis-overlay .jv-example { flex-shrink: 0 !important; }
  /* When bottom-tabs are visible (mobile), add extra bottom padding so
     the input area doesn't sit under the tab bar. */
  body #jarvis-overlay .jv-input-area {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 64px) !important;
  }
  /* Hide bottom-tabs while JARVIS is open — they'd peek through. */
  body:has(#jarvis-overlay[style*="display: flex"]) .mn-bottom-tabs,
  body:has(#jarvis-overlay:not([style*="display: none"])) .mn-bottom-tabs {
    display: none !important;
  }
  /* Scroll-area: more top padding so title clears the X button (X sits at
     top:12px+safe + 44px = ~56px+notch). */
  body #jarvis-overlay .jv-scroll-area {
    padding-top: 72px !important;
  }
}
body #jarvis-overlay .jv-example {
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(232, 230, 225, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  letter-spacing: 0.01em !important;
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
body #jarvis-overlay .jv-example:hover {
  background: rgba(212, 165, 116, 0.14) !important;
  border-color: rgba(212, 165, 116, 0.45) !important;
  color: #ffffff !important;
}

/* Input wrap */
body #jarvis-overlay .jv-input-wrap {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  gap: 8px !important;
  align-items: stretch !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 6px !important;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
body #jarvis-overlay .jv-input-wrap:focus-within {
  border-color: rgba(212, 165, 116, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.12) !important;
}
body #jarvis-overlay .jv-input {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  padding: 10px 12px !important;
  caret-color: #d4a574 !important;
}
body #jarvis-overlay .jv-input::placeholder {
  color: rgba(232, 230, 225, 0.35) !important;
}

/* Mic button — round, prominent on active */
body #jarvis-overlay .jv-btn-mic {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 0 !important;
  color: rgba(232, 230, 225, 0.7) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}
body #jarvis-overlay .jv-btn-mic:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
body #jarvis-overlay .jv-btn-mic.is-recording {
  background: rgba(229, 9, 20, 0.18) !important;
  color: #e50914 !important;
  animation: jv-mic-pulse 1.2s ease-in-out infinite !important;
}
@keyframes jv-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(229, 9, 20, 0); }
}

/* Send button — brass primary */
body #jarvis-overlay .jv-btn-go {
  height: 40px !important;
  padding: 0 18px !important;
  background: linear-gradient(180deg, #e3b988 0%, #d4a574 100%) !important;
  color: #1a1714 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: var(--mn-font-ui, "Inter Tight", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px -2px rgba(212, 165, 116, 0.35) !important;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out;
}
body #jarvis-overlay .jv-btn-go:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
  box-shadow: 0 6px 22px -2px rgba(212, 165, 116, 0.55) !important;
}
body #jarvis-overlay .jv-btn-go:active {
  transform: translateY(0) !important;
}

/* Mobile: full-width slide-up sheet */
@media (max-width: 640px) {
  body #jarvis-overlay {
    width: 100vw !important;
    height: 92vh !important;
    top: auto !important;
    bottom: 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px 24px 0 0 !important;
    animation: jv-slide-up 280ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }
  @keyframes jv-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  body #jarvis-overlay .jv-scroll-area { padding: 48px 20px 16px !important; }
  body #jarvis-overlay .jv-title::after { font-size: 22px !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body .sui-overlay,
  body .sui-overlay .sui-topbar,
  body #jarvis-overlay,
  body #jarvis-overlay::before,
  body #jarvis-overlay .jv-title::before,
  body #jarvis-overlay .jv-btn-mic.is-recording {
    animation: none !important;
  }
  body .sui-overlay *,
  body #jarvis-overlay * { transition: none !important; }
}
