@import url('./widgets.css');
:root {
  color-scheme: dark;
  --bg: #0b0e19;
  --text: #f1eff8;
  --muted: #9a9bad;
  --faint: #717589;
  --violet: #b4a5ef;
  --primary: #5260dd;
  --mint: #8ccec0;
  --line: #ffffff12;
  --card: #f8f9fc;
  --ink: #273146;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-extra-bottom: max(0px, calc(var(--safe-bottom) - 21px));
  --font:
    Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
  font-family: var(--font);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  height: 100dvh;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #b5a4ff;
  outline-offset: 4px;
}
button svg {
  flex-shrink: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button[hidden],
section[hidden],
form[hidden],
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 47%, #3b2c6421, transparent 55%),
    radial-gradient(ellipse at 3% 0%, #28395d20, transparent 35%);
  z-index: -1;
}
.ambient:after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.25' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.masthead {
  height: calc(100px + var(--safe-top));
  max-width: 1680px;
  width: 100%;
  margin: auto;
  padding: var(--safe-top) 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-icon {
  width: 39px;
  height: 39px;
  border: 1px solid #b9bdd427;
  background: linear-gradient(135deg, #ffffff09, #ffffff01);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1.3px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand-by {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.header-center {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: #b9bbc9;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px #8ccec033;
  flex-shrink: 0;
}
.header-divider {
  height: 12px;
  width: 1px;
  background: #ffffff1b;
  margin: 0 4px;
}
.preview-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--faint);
}
.header-actions {
  display: flex;
  gap: 23px;
  align-items: center;
}
.demo-date {
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 1.6px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #ffffff09;
  color: white;
}
.experience {
  max-width: 1440px;
  width: 100%;
  margin: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px 0;
}
.voice-space {
  width: 100%;
  max-width: 760px;
  max-height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
}
.intro {
  text-align: center;
  z-index: 1;
  position: relative;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.3px;
  font-weight: 500;
  color: #8c8aab;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.eyebrow > span:not([data-i18n]) {
  height: 1px;
  width: 20px;
  background: #827599;
}
h1 {
  font-size: clamp(36px, 3.5vw, 51px);
  line-height: 1.19;
  font-weight: 400;
  letter-spacing: -1.9px;
  margin-top: 23px;
}
h1 em {
  font-style: normal;
  color: #b7adc9;
}
.intro-description {
  color: #8f90a4;
  font-size: 12px;
  font-weight: 400;
  margin-top: 17px;
  letter-spacing: 0.15px;
}
.presence-wrap {
  width: min(520px, 100%);
  height: 330px;
  position: relative;
  margin-top: -3px;
  isolation: isolate;
  flex-shrink: 0;
}
#presence {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.presence-halo {
  position: absolute;
  inset: 24% 29%;
  border-radius: 50%;
  background: #8f6cce08;
  filter: blur(35px);
  pointer-events: none;
}
.presence-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: #aeabc2;
  letter-spacing: 0.4px;
}
.state-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a99bc1;
  box-shadow: 0 0 8px #ac91e066;
}
.caption-space {
  text-align: center;
  max-width: 620px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  margin: 15px 15px 20px;
}
.user-caption {
  color: #9d98b2;
  font-size: 12px;
  line-height: 1.6;
}
.assistant-caption-frame {
  position: relative;
  min-height: 0;
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
  max-height: calc(1.7em * 5);
}
.assistant-caption {
  font-size: inherit;
  color: #e0dce9;
  line-height: inherit;
  text-wrap: pretty;
  max-height: inherit;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.assistant-caption::-webkit-scrollbar {
  display: none;
}
.assistant-caption-frame.overflowing:after,
.assistant-caption-frame.overflowing.scrolled:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.assistant-caption-frame.overflowing:after {
  bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.assistant-caption-frame.overflowing.scrolled:before {
  top: 0;
  height: 1.4em;
  background: linear-gradient(to top, transparent, var(--bg));
}
.assistant-caption-frame.overflowing.scrolled-end:after {
  content: none;
}
.assistant-caption.partial:after {
  content: ' …';
  color: var(--muted);
}
.caption-space.quiet {
  opacity: 0.35;
  transition: opacity 1.5s;
}
.suggestions {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}
.suggestion {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #ffffff10;
  border-radius: 12px;
  min-height: 49px;
  padding: 0 16px;
  font-size: 10px;
  color: #b9b6c8;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.suggestion:hover {
  background: #b39bdc0b;
  border-color: #b39bdc38;
  transform: translateY(-2px);
}
.suggestion-icon {
  color: #a59abf;
  display: flex;
}
.suggestion-icon svg {
  width: 15px;
  height: 15px;
}
.suggestion-arrow {
  color: #68697e;
  margin-left: 7px;
}
.conversation-dock {
  padding: 25px 16px max(21px, var(--safe-bottom));
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 17px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 100%;
}
.dock-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dock-secondary {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff12;
  background: #ffffff03;
  color: #9994ae;
  transition: background 0.2s;
}
.dock-secondary:hover {
  background: #ffffff0c;
  color: #ebe6f5;
}
.start-button {
  min-height: 54px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #e5dafa;
  background: linear-gradient(120deg, #e9e3f2, #d8cee9);
  color: #332d43;
  border-radius: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  box-shadow: 0 3px 18px #bda1ed10;
  min-width: 223px;
}
.start-button:hover {
  background: #f0e9fc;
}
.start-button > span:first-child {
  display: flex;
}
.button-spark {
  margin-left: 4px;
  width: 4px;
  height: 4px;
  background: #73638c;
  border-radius: 50%;
}
.start-button.live {
  background: #c9b8e917;
  border-color: #b0a0d551;
  color: #e7def3;
}
.start-button.muted {
  border-color: #dcaf805a;
  color: #ead0b7;
}
.end-button {
  border-color: #e0a0a023;
  color: #d39a9a;
}
.dock-note {
  color: #737487;
  font-size: 9px;
  letter-spacing: 0.35px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.note-dot {
  width: 3px;
  height: 3px;
  background: #7b768e;
  border-radius: 50%;
}
.text-form {
  display: flex;
  align-items: center;
  width: min(610px, 100%);
  border: 1px solid #ada1c43d;
  border-radius: 18px;
  background: #171b2a;
  padding: 6px;
  box-shadow: 0 12px 50px #0003;
}
.text-form input {
  background: transparent;
  color: #eee7f7;
  border: 0;
  outline: none !important;
  min-width: 0;
  flex: 1;
  padding: 10px;
  font-size: 16px;
}
.text-form input::placeholder {
  color: #878298;
}
.send-button {
  background: #d9cfe9;
  border: 0;
  color: #302940;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.notice {
  position: fixed;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #c5b1e238;
  background: #242235;
  color: #e3d9ef;
  font-size: 12px;
  line-height: 1.6;
  max-width: min(580px, 90vw);
  box-shadow: 0 8px 32px #0005;
}
.context-tray {
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 0;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.context-chip {
  border: 1px solid #b2a0cb2b;
  border-radius: 20px;
  background: #b2a0cb09;
  font-size: 11px;
  padding: 8px 14px;
  color: #beb3cc;
  min-height: 40px;
}
.has-stage {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
  gap: 50px;
  align-items: center;
  padding: 24px 50px;
}
.has-stage .voice-space {
  min-width: 0;
}
.has-stage .intro h1 {
  font-size: 35px;
}
.has-stage .intro-description {
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.has-stage .presence-wrap {
  height: 310px;
  width: 100%;
  margin-top: 4px;
}
.has-stage .suggestions {
  display: none;
}
.has-stage .assistant-caption-frame {
  font-size: 15px;
}
.has-stage .caption-space {
  min-height: 90px;
  margin-bottom: 0;
}
.settings-dialog {
  background: #161a28;
  border: 1px solid #bcb2ce26;
  color: var(--text);
  border-radius: 22px;
  padding: 28px;
  width: min(430px, calc(100% - 28px));
  box-shadow: 0 30px 100px #0006;
}
.settings-dialog::backdrop {
  background: #050813a6;
  backdrop-filter: blur(8px);
}
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.settings-heading .eyebrow {
  font-size: 8px;
  justify-content: flex-start;
}
.settings-heading h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 400;
  margin-top: 12px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: #9690a6;
  margin-top: 6px;
}
.setting-row input {
  width: 36px;
  height: 24px;
  accent-color: #af99d5;
  cursor: pointer;
}
.settings-info {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #aba4bc;
  font-size: 11px;
  line-height: 1.8;
  padding: 20px 0;
}
.settings-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}
.settings-action span {
  color: #b29bdb;
}
.install-help {
  font-size: 11px;
  line-height: 1.7;
  color: #9390a6;
  margin-bottom: 20px;
}
.reset-action {
  color: #d4b7a8;
}
.settings-footnote {
  font-size: 10px;
  color: #858296;
  line-height: 1.9;
  margin-top: 16px;
}
.reduced-motion *,
.reduced-motion *:before,
.reduced-motion *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (min-width: 1500px) {
  .experience {
    padding-top: 35px;
  }
  .presence-wrap {
    height: 380px;
    width: 570px;
  }
  .has-stage .presence-wrap {
    height: 360px;
  }
  .conversation-dock {
    padding-top: 35px;
  }
}
@media (max-height: 800px) and (min-width: 801px) {
  .masthead {
    height: calc(80px + var(--safe-top));
  }
  .experience {
    min-height: 0;
  }
  h1 {
    font-size: 39px;
    margin-top: 17px;
  }
  .presence-wrap {
    height: 270px;
  }
  .intro-description {
    margin-top: 12px;
  }
  .caption-space {
    margin: 7px 15px 16px;
    min-height: 25px;
  }
  .conversation-dock {
    padding-top: 18px;
  }
  .has-stage .presence-wrap {
    height: 260px;
  }
}
@media (max-width: 1000px) {
  .masthead {
    padding-left: 25px;
    padding-right: 25px;
  }
  .header-center .preview-label,
  .header-divider {
    display: none;
  }
  .has-stage {
    gap: 25px;
    padding: 20px 25px;
    grid-template-columns: minmax(250px, 0.8fr) minmax(340px, 1fr);
  }
  .suggestion {
    padding: 0 12px;
    font-size: 10px;
  }
  .has-stage .intro h1 {
    font-size: 29px;
  }
}
@media (max-width: 800px) {
  .masthead {
    height: calc(83px + var(--safe-top));
    padding-left: 22px;
    padding-right: 22px;
  }
  .brand-name {
    font-size: 26px;
  }
  .header-center {
    display: none;
  }
  .demo-date {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .header-actions {
    gap: 5px;
  }
  .experience {
    padding: 20px 18px 0;
    min-height: 0;
  }
  .has-captions .intro {
    display: none;
  }
  .has-captions:not(.has-stage) .presence-wrap {
    height: min(285px, 32dvh);
    min-height: 140px;
    flex-shrink: 1;
  }
  .intro .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 39px;
    line-height: 1.2;
    margin-top: 23px;
    letter-spacing: -1.7px;
  }
  .intro-description {
    font-size: 11px;
    max-width: 260px;
    line-height: 1.8;
    margin: 16px auto 0;
  }
  .presence-wrap {
    width: 100%;
    height: 285px;
    margin-top: 0;
  }
  .caption-space {
    margin: 10px 9px 15px;
    min-height: 30px;
  }
  .assistant-caption-frame {
    font-size: 15px;
    max-height: calc(1.7em * 4);
  }
  .suggestions {
    gap: 7px;
    flex-wrap: wrap;
    max-width: 430px;
  }
  .suggestion {
    min-height: 44px;
    flex: 0 1 auto;
    font-size: 10px;
    padding: 0 11px;
  }
  .suggestion:nth-child(3) {
    display: none;
  }
  .suggestion-arrow {
    display: none;
  }
  .conversation-dock {
    padding-top: 24px;
    gap: 15px;
    background: linear-gradient(0deg, var(--bg) 55%, transparent);
  }
  .dock-controls {
    gap: 13px;
  }
  .dock-secondary {
    width: 43px;
    height: 43px;
  }
  .start-button {
    min-width: 216px;
    padding: 0 18px;
    font-size: 11px;
  }
  .dock-note {
    font-size: 8px;
    letter-spacing: 0.2px;
  }
  .has-stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-height: 0;
    padding-top: 0;
  }
  .has-stage .voice-space {
    max-width: 100%;
    display: grid;
    grid-template-columns: 95px 1fr;
    grid-template-rows: auto;
    align-items: center;
    gap: 3px;
    min-height: 100px;
  }
  .has-stage .intro {
    display: none;
  }
  .has-stage .presence-wrap {
    width: 100px;
    height: 105px;
    margin: 0;
  }
  .has-stage .presence-caption {
    bottom: 0;
    font-size: 8px;
    white-space: nowrap;
    left: -10px;
    right: -10px;
    gap: 4px;
  }
  .has-stage .caption-space {
    margin: 0 8px 0 6px;
    text-align: left;
    min-height: 0;
    gap: 4px;
  }
  .has-stage .assistant-caption-frame {
    font-size: 12px;
    line-height: 1.6;
    max-height: calc(1.6em * 4);
  }
  .has-stage .user-caption {
    font-size: 10px;
    max-height: 35px;
    overflow: hidden;
  }
  .has-stage + .context-tray {
    margin-top: 12px;
  }
  .stage-open .conversation-dock {
    position: sticky;
    bottom: 0;
    padding-top: 19px;
    z-index: 5;
  }
  .stage-open .dock-note {
    margin-bottom: 0;
  }
  .notice {
    bottom: 132px;
    font-size: 11px;
  }
  .widget-stage {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
  .context-tray {
    padding: 0 14px;
  }
  .text-form {
    margin-bottom: 4px;
  }
  .brand-by {
    font-size: 10px;
  }
  .presence-halo {
    inset: 24% 17%;
  }
}
@media (max-width: 380px) {
  .masthead {
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand-by {
    display: none;
  }
  h1 {
    font-size: 35px;
  }
  .intro-description {
    font-size: 10px;
  }
  .presence-wrap {
    height: 255px;
  }
  .suggestion {
    font-size: 9px;
    gap: 6px;
    padding: 0 9px;
  }
  .start-button {
    min-width: 190px;
    padding: 0 15px;
  }
  .dock-controls {
    gap: 10px;
  }
  .dock-note {
    font-size: 7.5px;
  }
  .has-stage {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* The listening controls remain reachable while a large view is open. */
:root {
  --faint: #9195a7;
}
.dock-note {
  color: #9899ab;
  font-size: 10px;
}
.dock-secondary {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}
.context-chip {
  min-height: 44px;
}
.send-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
@media (min-width: 801px) {
  .stage-open .experience {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .stage-open .widget-stage {
    max-height: calc(100dvh - 285px - var(--safe-top) - var(--safe-extra-bottom));
    overflow: auto;
    scrollbar-width: thin;
    border-radius: 21px;
  }
  .stage-open .widget-actions {
    position: sticky;
    bottom: 0;
    background: #f8f9fc;
    z-index: 2;
    border-top: 1px solid #e9e9f0;
  }
  .stage-open .conversation-dock {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 800px) {
  .dock-controls {
    gap: 9px;
    width: 100%;
    justify-content: center;
  }
  .start-button.compact {
    min-width: 0;
    flex: 1;
    max-width: 240px;
    padding: 0 12px;
    gap: 7px;
    font-size: 11px;
  }
  .start-button.compact .button-spark {
    display: none;
  }
  .dock-note {
    font-size: 10px;
  }
  .has-stage .assistant-caption-frame {
    font-size: 13px;
  }
  .context-chip {
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}
