/* Ask Viddy (David 10/15): the chat helper in the corner of the main pages. Self contained colors, so it looks the same
   on any page of the site. */
/* David 10/21: "way too small and hidden in the corner", so about a third bigger and a little further from the edge */
.vy-launch { position: fixed; z-index: 60; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 26px 9px 12px; border: 0; border-radius: 999px; background: #1B1728; color: #FFFFFF;
  font: 500 19px/1 "DM Sans", "Segoe UI", system-ui, sans-serif; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 202, 40, .45), 0 14px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 202, 40, .12); transition: transform .2s, box-shadow .2s; }
.vy-launch:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 202, 40, .85), 0 18px 44px rgba(0, 0, 0, .55), 0 0 36px rgba(255, 202, 40, .22); }
.vy-launch:focus-visible { outline: 2px solid #FFCA28; outline-offset: 3px; }
.vy-launch[aria-expanded="true"] { display: none; }
.vy-stage { display: block; width: 68px; height: 65px; margin: -24px 0 -6px; }
.vy-stage svg, .vy-face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.vy-launch .lv-limb, .vy-panel .lv-limb { stroke: #EDE7F5; }
.vy-launch .lv-glove, .vy-panel .lv-glove { fill: #FFF8EE; stroke: #17120F; }
.vy-launch .lv-shadow, .vy-panel .lv-shadow { fill: rgba(0, 0, 0, .45); }
.vy-mark { display: block; width: 100%; height: 100%; }

.vy-panel { position: fixed; z-index: 61; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); height: min(600px, calc(100dvh - 110px));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; overflow: hidden; margin: 0; padding: 0; border-radius: 22px;   /* site.css pads every section: not this one */ background: #15111F; color: #D1CECE;
  font: 400 15px/1.5 "DM Sans", "Segoe UI", system-ui, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(255, 202, 40, .38), 0 30px 80px rgba(0, 0, 0, .6); animation: vyIn .35s cubic-bezier(.2, .75, .12, 1); }
.vy-panel[hidden] { display: none; }
@keyframes vyIn { from { opacity: 0; transform: translateY(12px); } }
.vy-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(255, 202, 40, .08), rgba(255, 202, 40, 0)); }
.vy-face { flex: none; width: 48px; height: 46px; }
.vy-who { min-width: 0; }
.vy-who b { display: block; color: #FFFFFF; font-weight: 500; font-size: 16px; }
.vy-who small { display: block; color: #9D9797; font-size: 12.5px; line-height: 1.35; }
.vy-x { flex: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #D1CECE; font: 400 20px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.vy-x:hover { color: #FFFFFF; background: rgba(255, 255, 255, .1); }
.vy-x:focus-visible, .vy-chip:focus-visible, .vy-send:focus-visible, .vy-cta:focus-visible { outline: 2px solid #FFCA28; outline-offset: 2px; }
.vy-log { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 6px; display: grid; gap: 10px; align-content: start; }
.vy-msg { max-width: 88%; margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.vy-msg.me { justify-self: end; background: #2C2834; color: #FFFFFF; border-bottom-right-radius: 4px; }
.vy-msg.ai { justify-self: start; background: rgba(255, 202, 40, .1); color: #E4E0E7; box-shadow: inset 0 0 0 1px rgba(255, 202, 40, .22); border-bottom-left-radius: 4px; }
.vy-cta { justify-self: start; margin-top: -4px; font-size: 13px; font-weight: 500; color: #FFCA28; text-decoration: none; }
.vy-cta:hover { text-decoration: underline; }
.vy-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.vy-dots i { width: 6px; height: 6px; border-radius: 50%; background: #FFCA28; opacity: .35; animation: vyDot 1s infinite; }
.vy-dots i:nth-child(2) { animation-delay: .15s; } .vy-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vyDot { 50% { opacity: 1; } }
.vy-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.vy-chips:empty { display: none; }
.vy-chip { padding: 8px 12px; border: 0; border-radius: 999px; background: #1F1A2B; color: #E4E0E7; font: 400 13.5px/1.2 "DM Sans", system-ui, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); text-align: left; }
.vy-chip:hover { box-shadow: inset 0 0 0 1px rgba(255, 202, 40, .6); color: #FFFFFF; }
.vy-form { display: flex; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.vy-form input { flex: 1; min-width: 0; margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; background: #0E0918; color: #FFFFFF; font: 400 16px/1.3 "DM Sans", system-ui, sans-serif; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.vy-form input::placeholder { color: #77717F; }
.vy-form input:focus { outline: none; box-shadow: inset 0 0 0 1.5px #FFCA28, 0 0 0 4px rgba(255, 202, 40, .12); }
.vy-send { flex: none; width: 46px; border: 0; border-radius: 12px; background: linear-gradient(30deg, #FFD23F, #D5A000); color: #171612; cursor: pointer; display: grid; place-items: center; }
.vy-send svg { width: 18px; height: 18px; }
.vy-send[aria-disabled="true"] { opacity: .5; cursor: progress; }
.vy-ts:empty { display: none; }
.vy-foot { margin: 0; padding: 0 14px 12px; font-size: 12px; color: #9D9797; }
.vy-foot a { color: #FFCA28; }
.vy-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .vy-launch { padding: 8px; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .vy-label { display: none; }
  .vy-stage { width: 62px; height: 59px; margin: -20px 0 -5px; }
  .vy-panel { left: 0; right: 0; bottom: 0; width: 100%; height: min(82vh, 640px); height: min(82dvh, 640px); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (prefers-reduced-motion: reduce) { .vy-panel { animation: none; } .vy-dots i { animation: none; opacity: .8; } .vy-launch { transition: none; } }
