@font-face { font-family:Inter; src:url('fonts/InterVariable.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
:root { color-scheme:light; font-family:Inter,Arial,sans-serif; color:#fff; background:#fafafa; --teal:#3d9e88; --panel:#101814; }
* { box-sizing:border-box; }
html,body { margin:0; width:100%; height:100%; }
body { overflow:hidden; }
button,textarea,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.5; }
button,select,textarea { -webkit-tap-highlight-color:transparent; }
button:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #fff; outline-offset:3px; }
[hidden] { display:none !important; }
.sr-only,#status:not(.error) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.app-shell { display:flex; flex-direction:column; width:100%; height:100svh; background:#fafafa; container-type:inline-size; }
.app-header { display:flex; flex-shrink:0; align-items:center; justify-content:center; height:clamp(68px,9.69svh,95.2px); padding-top:env(safe-area-inset-top); }
.app-home { display:inline-flex; align-items:center; justify-content:center; border-radius:5px; }
.app-home:focus-visible { outline:2px solid var(--teal); outline-offset:5px; }
.app-logo { width:136px; height:67.15px; object-fit:contain; filter:none; }
.live-stage { position:relative; flex:1; min-height:0; margin:0 6px; border-radius:22px 22px 0 0; overflow:hidden; background:var(--panel); isolation:isolate; }
#idle-video,#remote-video { position:absolute; left:0; top:-18%; width:100%; height:125%; }
#idle-video,#remote-video video { object-fit:cover; object-position:35% center; }
#remote-video { visibility:hidden; }
#remote-video.is-active { visibility:visible; }
#remote-video video,#remote-video > div { width:100% !important; height:100% !important; }
#empty-preview { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
#empty-preview p { font-size:24px; margin:0 0 8px; }
#empty-preview span { font-size:13px; }
.video-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 25%,rgba(0,0,0,.38) 58%,rgba(0,0,0,.95) 100%); pointer-events:none; }
.stage-toolbar { position:absolute; z-index:2; top:16px; left:20px; right:20px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.stage-disclaimer { display:flex; flex:0 1 auto; align-items:center; gap:9px; min-width:40px; max-width:48ch; min-height:40px; margin:0; padding:9px; overflow:hidden; border:1px solid #728d7b; border-radius:12px; background:#fffffff0; color:#244b36; font-size:11px; line-height:1.45; text-align:left; backdrop-filter:blur(12px); transition:border-radius .32s,background .16s; }
.stage-disclaimer > img { flex:none; display:block; width:20px; height:20px; }
.disclaimer-copy { display:block; flex:1; min-width:0; opacity:1; visibility:visible; transition:opacity .16s,visibility 0s; }
.stage-disclaimer[aria-expanded=false] { width:40px; height:40px; border-radius:20px; }
.stage-disclaimer[aria-expanded=false] .disclaimer-copy { opacity:0; visibility:hidden; transition:opacity .16s,visibility 0s .16s; }
.stage-disclaimer:hover { background:#fff; }
.stage-disclaimer:focus-visible { outline:2px solid #176b54; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) {
  .stage-disclaimer,.disclaimer-copy,.stage-disclaimer[aria-expanded=false] .disclaimer-copy { transition:none; }
}
.mode-switch { flex:none; display:flex; padding:3px; border:1px solid #ffffff70; border-radius:28px; background:#ffffff26; backdrop-filter:blur(12px); }
.mode-switch button { display:grid; place-items:center; width:42px; height:32px; border:0; border-radius:22px; background:transparent; }
.mode-switch img { width:19px; height:19px; filter:invert(1); }
.mode-switch button[aria-pressed=true] { background:#fff; }
.mode-switch button[aria-pressed=true] img { filter:none; }
.account-tools { display:flex; flex-shrink:0; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; padding:0 12px 14px; }
.account-tools a,.account-tools button,.account-balance { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:40px; margin:0; border:1px solid #ffffff70; border-radius:999px; background:#1b201ecc; padding:10px 14px; color:#fff; font:500 12px/1.2 Inter,Arial,sans-serif; text-decoration:none; white-space:nowrap; }
.account-tools a:hover,.account-tools button:hover:not(:disabled) { background:#2b3d34; }
@container (max-width:359px) {
  .account-tools { gap:6px; padding-inline:8px; }
  .account-tools a,.account-tools button,.account-balance { padding-inline:10px; font-size:11px; }
}
.stream-bottom { position:absolute; z-index:1; bottom:0; left:0; width:100%; display:flex; flex-direction:column; gap:14px; padding:0 20px max(28px,env(safe-area-inset-bottom)); max-height:60%; }
.conversation { min-height:0; display:flex; flex-direction:column; }
#messages { display:flex; flex-direction:column; gap:16px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#ffffff40 transparent; font-size:13px; line-height:1.35; }
.conversation:has(#messages:empty) { display:none; }
.message { flex-shrink:0; }
.message > strong { display:none; }
.message p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.message.user { align-self:flex-end; max-width:90%; min-width:40%; border:1px solid #ffffff45; border-radius:22px 22px 0 22px; padding:12px 18px; text-align:center; background:#ffffff16; backdrop-filter:blur(16px); }
.message.assistant { padding:0; color:#fff; }
.message .turn-error:not(:first-of-type) { margin-top:12px; }
.message-sources { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.message-source { font-size:11px; color:#d9eee8; text-underline-offset:3px; }
.chat-composer { flex-shrink:0; min-height:78px; border:1px solid #ffffff26; border-radius:21px; padding:12px 12px 7px 18px; background:#171918b8; backdrop-filter:blur(20px); }
#question { display:block; width:100%; min-height:24px; max-height:64px; resize:none; border:0; border-radius:4px; padding:3px 0; background:transparent; color:#fff; font-size:13px; line-height:1.4; }
#question::placeholder { color:#d1dcd8; opacity:1; }
.composer-footer { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-height:32px; }
.speech-button { touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.speech-button,#ask { display:grid; place-items:center; flex-shrink:0; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:var(--teal); }
.speech-button img,#ask img { width:18px; height:18px; filter:invert(1); }
#speak-label { display:none; }
#ask { display:none; background:#fff; }
#ask img { filter:none; }
.has-draft #ask { display:grid; }
.speech-button[data-recording=true] { background:#b44243; box-shadow:0 0 0 5px #ffffff20; }
.speech-button[data-interrupt=true] { background:#b44243; }
.speech-button[data-interrupt=true]:hover { background:#983537; }
.feedback { display:contents; font-size:12px; line-height:1.4; }
.feedback > :not(#status):not([hidden]) { flex-shrink:0; }
.feedback p { margin:0; }
.credit-empty-notice { margin:0; padding:12px 16px; border:1px solid #ffffff40; border-radius:12px; background:#161c19ef; color:#fff; font-size:13px; line-height:1.5; }
.credit-empty-notice a { color:#b6efda; text-decoration:underline; text-underline-offset:3px; }
.credit-empty-notice a:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.feedback .error,.setup-notice,#speech-status[data-error=true] { border-radius:12px; padding:10px 12px; background:#161c19ef; color:#fff; }
.feedback button { margin:6px 6px 0 0; border:1px solid #ffffff60; border-radius:12px; background:#161c19; color:#fff; padding:8px 12px; }
.call-view .conversation,.call-view #question,.call-view .composer-options,.call-view #ask { display:none; }
.call-view .stream-bottom { max-height:44%; padding-bottom:max(64px,env(safe-area-inset-bottom)); align-items:center; }
.call-view .chat-composer { padding:0; min-height:0; border:0; background:transparent; backdrop-filter:none; }
.call-view .composer-footer { display:block; }
.call-view .speech-button { position:relative; width:80px; height:80px; border:1px solid #ffffff60; }
.call-view .speech-button img { width:34px; height:34px; }
.call-view #speak-label { position:absolute; display:block; top:calc(100% + 12px); left:50%; transform:translateX(-50%); width:max-content; font-size:13px; color:#d5e1dc; }
@container (min-width:600px) {
  .stage-toolbar { top:24px; left:28px; right:28px; }
  .stage-disclaimer { font-size:12px; }
  .stream-bottom { padding-left:32px; padding-right:32px; padding-bottom:32px; gap:20px; }
  #messages { font-size:16px; gap:20px; line-height:1.45; }
  .message.user { min-width:30%; }
  .chat-composer { min-height:96px; padding:16px 16px 10px 22px; }
  #question { font-size:16px; min-height:30px; }
  .speech-button,#ask { width:38px; height:38px; }
  .call-view .stream-bottom { padding-bottom:88px; }
  .call-view .speech-button { width:90px; height:90px; }
  .call-view #speak-label { font-size:15px; }
}
@media (min-width:1101px) and (hover:hover) and (pointer:fine) {
  :root { background:#090d0d; }
  body { display:flex; flex-direction:column; align-items:center; }
  .app-shell { flex-shrink:0; width:768px; height:1024px; zoom:var(--desktop-layout-scale,1); }
  .app-header { height:95.2px; }
  .app-logo { width:170px; height:83.3px; }
}
@media (max-height:600px) {
  .app-header { height:61.2px; }
  .app-logo { width:168px; height:45px; }
  .call-view .stream-bottom { padding-bottom:48px; }
  .call-view .speech-button { width:64px; height:64px; }
}
@media (orientation:landscape) {
  #idle-video,#remote-video { top:0; height:100%; }
  #idle-video,#remote-video video { object-position:center 22%; }
}
@media (min-width:1101px) and (hover:hover) and (pointer:fine) {
  #idle-video,#remote-video { top:-18%; height:125%; }
  #idle-video,#remote-video video { object-position:35% center; }
  .app-shell .app-header { height:95.2px; }
  .app-shell .app-logo { width:170px; height:83.3px; }
  .app-shell.call-view .stream-bottom { padding-bottom:88px; }
  .app-shell.call-view .speech-button { width:90px; height:90px; }
}

/* The light brand header and charcoal glass composer follow the conversation reference. */
.app-logo{width:155px;height:46px;filter:none}
.chat-composer{border-color:#ffffff60;border-radius:25px;box-shadow:inset 0 0 0 5px #ffffff04}
.message.user{background:#ffffff25;border-color:#ffffff70}
.room-gate .room-brand img{display:block;width:180px;height:auto}
@media(min-width:1101px) and (hover:hover) and (pointer:fine){.app-shell .app-logo{width:190px;height:52px}}
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px) {
  #idle-video,#remote-video video { object-position:center 30%; }
}
