/* Hubbly voice invitation. Audio values are supplied by the controller. */
#hubbly-voice-assistant.hubbly-voice {
  --voice-size: 64px;
  --voice-float: 2px;
  --voice-orange: var(--orange, #f46a24);
  --voice-ivory: var(--paper, #f2f0eb);
  position: fixed;
  z-index: 80;
  left: var(--voice-x, auto);
  top: var(--voice-y, auto);
  width: var(--voice-width, 64px);
  color: var(--voice-ivory);
  font-family: var(--font-body, Arial, sans-serif);
  pointer-events: auto;
}
#hubbly-voice-assistant[hidden],
#hubbly-voice-assistant [hidden] { display: none !important; }
#hubbly-voice-assistant .hubbly-voice-frame { position: relative; width: 100%; }
#hubbly-voice-assistant button,
#hubbly-voice-assistant a { font: inherit; }
#hubbly-voice-assistant .hubbly-voice-launch {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
#hubbly-voice-assistant .hubbly-voice-launch:focus-visible,
#hubbly-voice-assistant .hubbly-voice-close:focus-visible,
#hubbly-voice-assistant .hubbly-voice-panel button:focus-visible,
#hubbly-voice-assistant .hubbly-voice-handoff:focus-visible {
  outline: 2px solid var(--voice-orange);
  outline-offset: 4px;
}
#hubbly-voice-assistant .hubbly-voice-visual {
  display: grid;
  place-items: center;
  width: var(--voice-size);
  height: var(--voice-size);
}
#hubbly-voice-assistant .hubbly-orb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  isolation: isolate;
  animation: hubbly-orb-float 7.5s ease-in-out infinite;
}
#hubbly-voice-assistant .hubbly-orb::before {
  position: absolute;
  z-index: -1;
  inset: 5%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(244, 106, 36, .24), transparent 67%);
  box-shadow: 0 0 28px rgba(244, 106, 36, .18);
  content: "";
}
#hubbly-voice-assistant .hubbly-orb-breath {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  animation: hubbly-orb-breathe 6s ease-in-out infinite;
  transform-origin: center;
}
#hubbly-voice-assistant .hubbly-orb-breath::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  background: conic-gradient(from 35deg, transparent 0deg 205deg, rgba(244, 106, 36, .1) 235deg, var(--voice-orange) 269deg, #ffe0a1 283deg, rgba(244, 106, 36, .7) 296deg, transparent 322deg 360deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 93%, #000 96%, #000 98%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 93%, #000 96%, #000 98%, transparent 100%);
  opacity: .8;
  animation: hubbly-orange-flow 9s linear infinite;
}
#hubbly-voice-assistant .hubbly-orb-texture,
#hubbly-voice-assistant .hubbly-orb-response {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}
#hubbly-voice-assistant .hubbly-orb-texture {
  /* The filament image is attached by html.hubbly-orb-art, which voice-orb-boot.js sets after load/idle. */
  background: 50% 50% / 220% auto no-repeat #030303;
  box-shadow:
    inset 0 0 0 1px rgba(255, 205, 143, .12),
    0 0 0 1px rgba(244, 142, 71, .34);
  mix-blend-mode: screen;
  filter: brightness(calc(.88 + var(--voice-agent, 0) * .22)) saturate(1.08);
  transition: filter 120ms linear;
  animation: hubbly-filament-turn 28s linear infinite;
}
html.hubbly-orb-art #hubbly-voice-assistant .hubbly-orb-texture { background-image: url("/assets/hubbly-orb-filament.webp"); }
#hubbly-voice-assistant .hubbly-orb-response {
  background: radial-gradient(circle, rgba(255, 232, 188, .34), rgba(244, 106, 36, .2) 42%, transparent 70%);
  opacity: calc(.05 + var(--voice-agent, 0) * .44 + var(--voice-mic, 0) * .18);
  transform: scale(calc(1 + var(--voice-mic, 0) * .045 + var(--voice-agent, 0) * .025));
  filter: brightness(calc(1 + var(--voice-agent, 0) * .38 + var(--voice-mic, 0) * .14));
  mix-blend-mode: screen;
  transition: opacity 120ms linear, transform 120ms linear, filter 120ms linear;
}
#hubbly-voice-assistant .hubbly-voice-invitation,
#hubbly-voice-assistant .hubbly-voice-launch-label,
#hubbly-voice-assistant .hubbly-voice-kind,
#hubbly-voice-assistant .hubbly-voice-launch-status {
  margin: 0;
  text-align: center;
}
#hubbly-voice-assistant .hubbly-voice-invitation {
  color: var(--voice-ivory);
  font-family: "Barlow Condensed", var(--font-heading, sans-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: .98;
}
#hubbly-voice-assistant .hubbly-voice-launch-label {
  color: var(--voice-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
#hubbly-voice-assistant .hubbly-voice-kind,
#hubbly-voice-assistant .hubbly-voice-launch-status {
  color: #aaa49b;
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.25;
}
#hubbly-voice-assistant .hubbly-voice-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: max-content;
  padding: 7px 9px;
  border: 1px solid rgba(242, 240, 235, .2);
  background: rgba(10, 10, 9, .96);
  color: var(--voice-ivory);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 140ms linear, transform 140ms linear;
}
@media (hover: hover) and (pointer: fine) {
  #hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-launch:hover .hubbly-voice-tooltip {
    opacity: 1;
    transform: translateY(-50%);
  }
}
#hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-launch:focus-visible .hubbly-voice-tooltip {
  opacity: 1;
  transform: translateY(-50%);
}
#hubbly-voice-assistant .hubbly-voice-panel {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(242, 240, 235, .23);
  background: rgba(12, 12, 11, .9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
}
#hubbly-voice-assistant[data-expanded="false"] .hubbly-voice-panel,
#hubbly-voice-assistant .hubbly-voice-panel[hidden] { display: none !important; }
#hubbly-voice-assistant[data-expanded="true"] .hubbly-voice-panel:not([hidden]) { display: flex; }
#hubbly-voice-assistant .hubbly-voice-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
#hubbly-voice-assistant .hubbly-voice-panel h2 {
  margin: 0;
  color: var(--voice-ivory);
  font-family: "Barlow Condensed", var(--font-heading, sans-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}
#hubbly-voice-assistant .hubbly-voice-panel h2 span { color: var(--voice-orange); }
#hubbly-voice-assistant .hubbly-voice-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  border: 0;
  background: transparent;
  color: var(--voice-ivory);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
#hubbly-voice-assistant .hubbly-voice-prompt {
  margin: 9px 0 12px;
  color: #c7c2ba;
  font-size: 13px;
  line-height: 1.4;
}
#hubbly-voice-assistant .hubbly-voice-status,
#hubbly-voice-assistant .hubbly-voice-disclosure,
#hubbly-voice-assistant .hubbly-voice-error {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}
#hubbly-voice-assistant .hubbly-voice-status { color: #d89a70; }
#hubbly-voice-assistant[data-state="idle"] .hubbly-voice-status,
#hubbly-voice-assistant[data-state="connected"] .hubbly-voice-status { color: #9bc5a0; }
#hubbly-voice-assistant .hubbly-voice-disclosure { margin-top: 9px; color: #98928a; }
#hubbly-voice-assistant .hubbly-voice-memory { margin-top: 9px; color: #98928a; font-size: 12px; line-height: 1.45; }
#hubbly-voice-assistant .hubbly-voice-forget {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
#hubbly-voice-assistant .hubbly-voice-error { margin-top: 9px; color: #efad88; }
#hubbly-voice-assistant .hubbly-voice-start,
#hubbly-voice-assistant .hubbly-voice-actions button,
#hubbly-voice-assistant .hubbly-voice-retry,
#hubbly-voice-assistant .hubbly-voice-handoff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(242, 240, 235, .35);
  background: transparent;
  color: var(--voice-ivory);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.1;
  text-transform: uppercase;
}
#hubbly-voice-assistant .hubbly-voice-start { margin-top: 12px; border-color: var(--voice-orange); color: var(--voice-orange); }
#hubbly-voice-assistant .hubbly-voice-start:disabled,
#hubbly-voice-assistant .hubbly-voice-actions button:disabled,
#hubbly-voice-assistant .hubbly-voice-retry:disabled { border-color: rgba(242, 240, 235, .16); color: #77726b; cursor: not-allowed; }
#hubbly-voice-assistant .hubbly-voice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
#hubbly-voice-assistant .hubbly-voice-retry,
#hubbly-voice-assistant .hubbly-voice-handoff { width: 100%; margin-top: 10px; text-decoration: none; }
#hubbly-voice-assistant .hubbly-voice-handoff { border-color: rgba(244, 106, 36, .6); color: var(--voice-orange); }
#hubbly-voice-assistant .hubbly-voice-handoff-primary { background: var(--voice-orange); color: #111; border-color: var(--voice-orange); }
#hubbly-voice-assistant .hubbly-voice-handoff-secondary,
#hubbly-voice-assistant .hubbly-voice-handoff-report { border-color: rgba(242, 240, 235, .45); color: var(--voice-ivory, #f2f0eb); background: transparent; }
#hubbly-voice-assistant .hubbly-voice-link-caption { margin: 12px 0 0; color: var(--voice-ivory, #f2f0eb); font-size: 14px; line-height: 1.4; }
/* Fixed corner mini: orb only until intentionally opened. */
#hubbly-voice-assistant[data-placement="dock"] { width: 64px; height: 64px; }
#hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-frame,
#hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-launch { width: 64px; height: 64px; }
#hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-invitation,
#hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-launch-label,
#hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-kind,
#hubbly-voice-assistant[data-placement="dock"] .hubbly-voice-launch-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#hubbly-voice-assistant[data-placement="dock"][data-expanded="true"] { width: min(320px, calc(100vw - 32px)); height: auto; }
#hubbly-voice-assistant[data-placement="dock"][data-expanded="true"] .hubbly-voice-frame { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; width: 100%; height: auto; }
#hubbly-voice-assistant[data-placement="dock"][data-expanded="true"] .hubbly-voice-launch { flex: 0 0 64px; }
#hubbly-voice-assistant[data-placement="dock"][data-expanded="true"] .hubbly-voice-panel { position: static; width: 100%; }
#hubbly-voice-assistant[data-placement="dock"][data-dock-side="left"] .hubbly-voice-tooltip { left: calc(100% + 10px); right: auto; }
/* Hero position is measured by the controller from the document slot. */
#hubbly-voice-assistant[data-placement="hero"] { --voice-size: 240px; --voice-float: 7px; position: absolute; width: min(260px, var(--voice-width, 260px)); }
#hubbly-voice-assistant[data-placement="hero"] .hubbly-voice-panel { position: relative; top: auto; bottom: auto; width: 100%; margin-top: 12px; }
#hubbly-voice-assistant[data-placement="hero"] .hubbly-voice-launch-status { max-width: 230px; }
/* The rail is only used when the controller cannot safely retain the corner placement. */
#hubbly-voice-assistant[data-placement="rail"] {
  position: fixed;
  z-index: 90;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  max-height: 60svh;
  overflow-y: auto;
  background: rgba(10, 10, 9, .98);
  border-bottom: 1px solid rgba(242, 240, 235, .2);
}
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-frame { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 64px; padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); }
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-launch { width: 64px; height: 64px; }
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-visual { grid-row: 1; }
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-invitation,
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-launch-label,
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-kind { display: none; }
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-launch-status { text-align: left; }
#hubbly-voice-assistant[data-placement="rail"][data-expanded="true"] .hubbly-voice-launch-status { display: none; }
#hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-panel { position: relative; grid-column: 2; right: auto; bottom: auto; width: 100%; margin: 4px 0 8px; }
#hubbly-voice-assistant[data-placement="rail"][data-expanded="true"] .hubbly-voice-frame { align-items: start; }
body.voice-safe-rail { padding-top: var(--voice-rail-height, 76px); }
body.voice-safe-rail .site-header,
body.voice-safe-rail .mobile-nav { transform: translateY(var(--voice-rail-height, 76px)); }
body.voice-safe-rail .mobile-nav { max-height: max(80px, calc(100svh - 112px - var(--voice-rail-height, 76px))); overflow-y: auto; }
@keyframes hubbly-orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes hubbly-orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(-1 * var(--voice-float))); }
}
@keyframes hubbly-filament-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes hubbly-orange-flow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@supports not ((mask-image: radial-gradient(closest-side, transparent, #000)) or (-webkit-mask-image: radial-gradient(closest-side, transparent, #000))) {
  #hubbly-voice-assistant .hubbly-orb-breath::after { display: none; }
}
@media (max-width: 850px) {
  #hubbly-voice-assistant[data-placement="hero"] { --voice-size: 140px; --voice-float: 4px; width: min(180px, var(--voice-width, 180px)); }
  #hubbly-voice-assistant[data-placement="hero"] .hubbly-voice-invitation { font-size: 13px; }
  #hubbly-voice-assistant[data-placement="hero"] .hubbly-voice-launch-label { font-size: 10px; }
  #hubbly-voice-assistant[data-placement="hero"] .hubbly-voice-kind,
  #hubbly-voice-assistant[data-placement="hero"] .hubbly-voice-launch-status { max-width: 180px; font-size: 9px; }
  #hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-invitation { font-size: 14px; }
}
@media (max-width: 430px) {
  #hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-kind { display: none; }
  #hubbly-voice-assistant[data-placement="rail"] .hubbly-voice-launch-status { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #hubbly-voice-assistant *, #hubbly-voice-assistant *::before, #hubbly-voice-assistant *::after { animation: none !important; transition: none !important; }
  #hubbly-voice-assistant .hubbly-orb-breath,
  #hubbly-voice-assistant .hubbly-orb-response { transform: none !important; }
}
body.motion-paused #hubbly-voice-assistant *,
body.motion-paused #hubbly-voice-assistant *::before,
body.motion-paused #hubbly-voice-assistant *::after,
html[data-motion="off"] #hubbly-voice-assistant *,
html[data-motion="off"] #hubbly-voice-assistant *::before,
html[data-motion="off"] #hubbly-voice-assistant *::after,
body[data-motion="off"] #hubbly-voice-assistant *,
body[data-motion="off"] #hubbly-voice-assistant *::before,
body[data-motion="off"] #hubbly-voice-assistant *::after,
#hubbly-voice-assistant[data-motion="off"] *,
#hubbly-voice-assistant[data-motion="off"] *::before,
#hubbly-voice-assistant[data-motion="off"] *::after { animation: none !important; transition: none !important; }
body.motion-paused #hubbly-voice-assistant .hubbly-orb-breath,
body.motion-paused #hubbly-voice-assistant .hubbly-orb-response,
html[data-motion="off"] #hubbly-voice-assistant .hubbly-orb-breath,
html[data-motion="off"] #hubbly-voice-assistant .hubbly-orb-response,
body[data-motion="off"] #hubbly-voice-assistant .hubbly-orb-breath,
body[data-motion="off"] #hubbly-voice-assistant .hubbly-orb-response,
#hubbly-voice-assistant[data-motion="off"] .hubbly-orb-breath,
#hubbly-voice-assistant[data-motion="off"] .hubbly-orb-response { transform: none !important; }
