/* Stevie the TV: homepage assistant. Markup is injected by stevie.js. */
.stv, .stv * { box-sizing: border-box; font-family: Verdana, sans-serif; }
.stv {
  --b-panel: #242424; --b-head: #2E302F; --b-line: #3a3a3a; --b-ink: #f0f0f0; --b-muted: #b8b8b8;
  --b-bot: #333333; --b-me: #f9bf48; --b-me-ink: #1a1a1a; --b-accent: #f9bf48; --b-accent-ink: #1a1a1a;
  --b-chip-line: #d29114; --b-input: #1a1a1a; --b-link: #f9bf48;
}
[data-theme="light"] .stv {
  --b-panel: #ffffff; --b-head: #e2e2e2; --b-line: #cccccc; --b-ink: #1a1a1a; --b-muted: #555555;
  --b-bot: #efefef; --b-me: #1f8038; --b-me-ink: #ffffff; --b-accent: #1f8038; --b-accent-ink: #ffffff;
  --b-chip-line: #2a9a4a; --b-input: #ffffff; --b-link: #1a6b30;
}
.stv-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Stevie himself */
.stv-launch { position: fixed; right: 20px; bottom: 14px; z-index: 1002; width: 116px; height: 112px; }
.stv-launch.stv-moved { right: auto; bottom: auto; }
body:has(#back-to-top.visible) .stv-launch:not(.stv-moved) { bottom: 84px; }
.stv-btn {
  display: block; width: 100%; height: 100%; margin: 0; padding: 0;
  background: none; border: none; border-radius: 16px; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.stv-btn:focus-visible { outline: 3px solid var(--b-accent); outline-offset: 2px; }
.stv-svg { display: block; width: 116px; height: 112px; color: #d6d6d6; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)); }
[data-theme="light"] .stv-svg { color: #2b2b2b; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25)); }
.stv-btn .stv-svg { transform: rotate(-6deg); }
.stv-svg .stv-lid { transform-origin: 52px 67px; }
.stv-btn .stv-arm { transform-origin: 110px 70px; }
/* Stevie only waves, and only while hovered or keyboard-focused */
.stv-btn:hover .stv-arm, .stv-btn:focus-visible .stv-arm { animation: stv-wave 1.1s ease-in-out infinite; }
@keyframes stv-wave { 0%, 100% { transform: rotate(0deg); } 25%, 75% { transform: rotate(18deg); } 50% { transform: rotate(-4deg); } }
.stv-dragging .stv-btn .stv-svg { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .stv-svg, .stv-svg * { animation: none !important; } }

.stv-bubble {
  position: absolute; right: calc(100% + 6px); bottom: 46px; width: max-content; max-width: 210px;
  margin: 0; text-align: left; cursor: pointer;
  background: var(--b-accent); color: var(--b-accent-ink);
  font-size: 13.5px; font-weight: 700; line-height: 1.35;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.stv-flip .stv-bubble { right: auto; left: calc(100% + 6px); border-radius: 14px 14px 14px 4px; }
.stv-open .stv-bubble, .stv-dragging .stv-bubble { display: none; }

/* Chat panel */
.stv-panel {
  position: fixed; right: 112px; bottom: 60px; z-index: 1001;
  width: 372px; height: 540px; max-height: calc(100vh - 16px);
  display: none; flex-direction: column; overflow: hidden;
  background: var(--b-panel); color: var(--b-ink);
  border: 1px solid var(--b-line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  font-size: 13.5px; line-height: 1.45; text-align: left;
}
.stv-open .stv-panel { display: flex; }
.stv-panel:focus { outline: none; }
.stv-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex: none;
  background: var(--b-head); border-bottom: 1px solid var(--b-line);
}
.stv-head .stv-svg { width: 44px; height: 42px; flex: none; filter: none; }
.stv-title { display: block; font-size: 15px; font-weight: 700; color: var(--b-ink); line-height: 1.25; }
.stv-sub { display: block; font-size: 12px; color: var(--b-muted); line-height: 1.3; }
.stv-x {
  margin: 0 0 0 auto; background: none; border: none; color: var(--b-muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.stv-x:hover, .stv-x:focus-visible { color: var(--b-ink); }
.stv-log {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.stv-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; flex: none; }
.stv-bot { align-self: flex-start; background: var(--b-bot); color: var(--b-ink); border-bottom-left-radius: 4px; }
.stv-me { align-self: flex-end; background: var(--b-me); color: var(--b-me-ink); border-bottom-right-radius: 4px; }
.stv-p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.stv-p + .stv-p { margin-top: 8px; }
.stv-b { font-weight: 700; color: inherit; }
.stv-tel { color: inherit !important; font-weight: 700; white-space: nowrap; text-decoration: none; -webkit-user-select: all; user-select: all; }
a.stv-tel { text-decoration: underline; }
.stv-link { display: inline-block; margin-top: 8px; color: var(--b-link) !important; font-weight: 700; text-decoration: underline; }
.stv-inbtn {
  display: inline-block; margin: 8px 0 0; padding: 7px 12px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 700; background: transparent; color: var(--b-ink); border: 1.5px solid var(--b-chip-line);
}
.stv-src { align-self: flex-start; flex: none; font-size: 11px; color: var(--b-muted); margin-top: -4px; }
.stv-acts { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; flex: none; }
.stv-acts button {
  margin: 0; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  background: var(--b-accent); color: var(--b-accent-ink); border: 1.5px solid var(--b-accent);
}
.stv-acts button.stv-ghost { background: transparent; color: var(--b-ink); border-color: var(--b-chip-line); }
.stv-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: none; padding-top: 2px; }
.stv-chips[hidden], .stv-form[hidden] { display: none; }
.stv-chips button {
  margin: 0; font-size: 12px; line-height: 1.3; padding: 6px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--b-ink); border: 1px solid var(--b-chip-line);
}
.stv-chips button:hover, .stv-chips button:focus-visible,
.stv-acts button.stv-ghost:hover, .stv-inbtn:hover { background: rgba(249,191,72,0.14); }
[data-theme="light"] .stv-chips button:hover, [data-theme="light"] .stv-chips button:focus-visible,
[data-theme="light"] .stv-acts button.stv-ghost:hover, [data-theme="light"] .stv-inbtn:hover { background: rgba(42,154,74,0.12); }
.stv-reach { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.stv-reach .stv-inbtn { margin: 0; }
.stv-callbtn, a.stv-callbtn:hover, a.stv-callbtn:active, a.stv-callbtn:focus {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  background: var(--b-accent); color: var(--b-accent-ink) !important;
  font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.stv-callbtn svg { flex: none; }
.stv-num { white-space: nowrap; -webkit-user-select: all; user-select: all; }
.stv-form { display: flex; gap: 8px; padding: 10px 12px; flex: none; border-top: 1px solid var(--b-line); }
.stv-form input {
  flex: 1; min-width: 0; margin: 0; padding: 10px 12px; font-size: 13.5px; border-radius: 10px;
  background: var(--b-input); color: var(--b-ink); border: 1px solid var(--b-line);
}
.stv-form input::placeholder { color: var(--b-muted); opacity: 1; }
.stv-form button {
  flex: none; width: 42px; margin: 0; padding: 0; border-radius: 10px; border: none; cursor: pointer;
  background: var(--b-accent); color: var(--b-accent-ink); display: grid; place-items: center;
}
.stv-foot { flex: none; font-size: 11px; color: var(--b-muted); text-align: center; padding: 8px 12px 10px; border-top: 1px solid var(--b-line); }
.stv-form:not([hidden]) + .stv-foot { border-top: none; padding-top: 0; }

/* Desktop with a mouse: Stevie can be dragged */
@media (min-width: 601px) and (pointer: fine) {
  .stv-btn { cursor: grab; touch-action: none; }
  .stv-dragging .stv-btn { cursor: grabbing; }
}

/* Phones: fixed corner, bottom sheet */
@media (max-width: 600px) {
  .stv-launch { right: 8px; bottom: 8px; width: 82px; height: 79px; }
  .stv-btn .stv-svg { width: 82px; height: 79px; }
  body:has(#back-to-top.visible) .stv-launch:not(.stv-moved) { bottom: 8px; }
  body:has(.mobile-call-bar.is-floating) .stv-launch,
  body:has(.mobile-call-bar.is-floating):has(#back-to-top.visible) .stv-launch:not(.stv-moved) { bottom: 76px; }
  .stv-bubble { bottom: 32px; right: calc(100% + 4px); max-width: 170px; font-size: 12.5px; }
  .stv-seen .stv-bubble { display: none; }
  .stv-open .stv-launch { display: none; }
  .stv-panel {
    left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 78vh; max-height: none;
    border-radius: 18px 18px 0 0; border-width: 1px 0 0 0;
  }
}
