@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&display=swap');
:root{font-family:var(--interface-font);color:#f1eaf6;background:#0c0b18;color-scheme:dark;--interface-font:'TT Firs Neue',Manrope,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:280px;min-height:100svh;position:relative;isolation:isolate;background:radial-gradient(ellipse at 10% 0%,#40113c55,transparent 52%),#0c0b18}button{-webkit-tap-highlight-color:transparent;font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,.messages:focus-visible{outline:2px solid #d6a9f4;outline-offset:6px}button:disabled{cursor:default}.ambient{position:fixed;pointer-events:none;z-index:-1;border-radius:50%;filter:blur(70px)}.ambient-top{width:min(700px,110vw);height:470px;top:-285px;left:calc(50% - 450px);background:#c30e8650}.ambient-bottom{width:min(600px,110vw);height:420px;bottom:-285px;left:calc(50% - 180px);background:#b116bf65}.app{width:100%;max-width:920px;margin:0 auto;min-height:100svh;display:flex;flex-direction:column;padding:0 36px}header{position:relative;display:flex;align-items:center;justify-content:center;min-height:115px;flex-shrink:0}h1{font-size:21px;font-weight:500;letter-spacing:-.6px;margin:0}.wordmark,.edition{position:absolute;font:9px var(--interface-font);letter-spacing:1.5px;color:#a495ae}.wordmark{left:0}.wordmark span{color:#675f75}.edition{right:0;font-size:8px;color:#777080}main{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:14px 0 0}.voice{width:100%;text-align:center}.presence{height:300px;max-width:360px;margin:0 auto;display:flex;justify-content:center;align-items:center}canvas{display:block;width:320px;height:320px;max-width:100%;aspect-ratio:1}.session-info{color:#b9aebf;font-size:12px;font-weight:400;letter-spacing:.05px;min-height:38px;display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:8px}#timer{font:9px var(--interface-font);color:#82718c;opacity:0;transition:opacity .3s}.voice:has(.live) #timer{opacity:1}.transcript{width:100%;max-width:430px;position:relative;margin:36px auto 0;min-height:120px}.transcript-heading{display:none;align-items:center;justify-content:space-between;padding:0 12px 8px;color:#a99bb4;font:8px var(--interface-font);letter-spacing:1.5px}#collapse-transcript{background:transparent;padding:6px;display:grid;place-items:center}#collapse-transcript svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.3}.messages{max-height:178px;overflow:hidden;padding:16px 10px 22px;cursor:pointer;mask-image:linear-gradient(transparent,#000 18px,#000 calc(100% - 23px),transparent);-webkit-mask-image:linear-gradient(transparent,#000 18px,#000 calc(100% - 23px),transparent)}.empty{text-align:center;padding:8px 0 12px}.empty p{font-size:20px;line-height:1.7;letter-spacing:-.4px;color:#e9dfef;margin:0 0 12px;font-weight:400}.empty span{font-size:12px;color:#8c7a9a}.message{max-width:91%;display:flex;flex-direction:column;align-items:flex-start;margin-bottom:13px}.message.user{margin-left:auto;align-items:flex-end}.message:last-child{margin-bottom:0}.text{margin:0;background:#b399d00c;border-radius:18px;padding:11px 15px;font-size:13px;line-height:1.75;color:#dfd1e7;white-space:pre-wrap;overflow-wrap:anywhere}.user .text{background:#a851cc16;color:#eee3f3}.transcript:not(.expanded) .text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.transcript.expanded{margin-top:24px}.transcript.expanded .transcript-heading{display:flex}.transcript.expanded .messages{max-height:35svh;overflow-y:auto;cursor:default;scrollbar-width:thin;scrollbar-color:#704d7950 transparent;mask-image:none;-webkit-mask-image:none}.bottom{flex-shrink:0;padding:35px 0 max(25px,env(safe-area-inset-bottom));text-align:center}.controls{display:flex;align-items:center;justify-content:center;gap:50px}.secondary{width:39px;height:39px;border-radius:50%;background:#a97dbe0d;display:grid;place-items:center;position:relative;transition:background .2s,color .2s;color:#c9b5d4}.secondary:before{content:'';position:absolute;inset:-7px;border-radius:50%;box-shadow:0 0 0 1px #d97af010}.secondary svg{height:22px;width:22px;fill:none;stroke:currentColor;stroke-width:1.1}.secondary:hover{background:#c28fe521;color:#fff}.secondary:disabled{opacity:.45}.mic-wrap{position:relative;display:grid;place-items:center;width:80px;height:80px}.mic-halo{position:absolute;border-radius:50%;pointer-events:none;box-shadow:0 0 0 1px #e43fc51f}.halo-1{inset:0}.halo-2{inset:-12px;box-shadow:0 0 0 1px #d23ddb13}#call{height:66px;width:66px;background:linear-gradient(145deg,#b11bc8,#7a09c2 75%);border-radius:50%;position:relative;display:grid;place-items:center;box-shadow:0 0 28px #a122be35,inset 0 1px 1px #ef81e552;transition:transform .2s,filter .2s}#call:hover{filter:brightness(1.17);transform:scale(1.04)}#call:disabled{opacity:.6}#call svg{height:25px;width:25px;fill:none;stroke:#fff;stroke-width:1.7}#call.active{background:linear-gradient(145deg,#c42dba,#8909cf)}#hint{font-size:10px;color:#ac91b9;margin:22px 0 0;line-height:1.8}.bottom-mark{font:7px var(--interface-font);letter-spacing:2px;color:#725e80;margin-top:30px}.bottom-mark span{margin:0 6px;color:#b288c4}#error{max-width:430px;font:11px/1.8 var(--interface-font);color:#f0c1d5;text-align:center;margin:12px 0 0;padding:12px 15px;background:#76234c22;border-radius:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app:has(.transcript.expanded) .presence{height:230px}.app:has(.transcript.expanded) canvas{width:240px;height:240px}@media(min-width:1000px){.ambient-top{filter:blur(110px);height:600px;top:-400px}.ambient-bottom{filter:blur(100px);width:750px;bottom:-350px}header{min-height:120px}main{padding-top:0}.presence{height:310px}.transcript{margin-top:42px}.bottom{padding-top:35px;padding-bottom:32px}}@media(max-width:600px){.app{padding:0 25px}header{min-height:100px;padding-top:env(safe-area-inset-top)}h1{font-size:19px}.wordmark{font-size:7px;letter-spacing:1px}.edition{font-size:7px;letter-spacing:.5px}.ambient-top{left:-230px;top:-280px;height:470px;width:540px;background:#d80c9850;filter:blur(60px)}.ambient-bottom{left:calc(50% - 180px);bottom:-260px;background:#d00ebf60;width:430px;filter:blur(65px)}main{padding-top:0}.presence{height:260px}canvas{width:290px;height:290px}.session-info{margin-top:0;font-size:11px}.transcript{margin-top:25px;min-height:110px}.empty p{font-size:17px}.empty span{font-size:11px}.controls{gap:39px}.bottom{padding-top:20px;padding-bottom:max(22px,env(safe-area-inset-bottom))}.bottom-mark{margin-top:20px;font-size:6px}.app:has(.transcript.expanded) .presence{height:175px}.app:has(.transcript.expanded) canvas{width:205px;height:205px}.transcript.expanded .messages{max-height:30svh}}@media(max-height:720px){header{min-height:82px}.presence{height:210px}canvas{width:245px;height:245px}.transcript{margin-top:12px}.bottom{padding-top:18px}.bottom-mark{margin-top:16px}.app:has(.transcript.expanded) .presence{height:145px}.app:has(.transcript.expanded) canvas{width:175px;height:175px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Fixed viewport; scrolling belongs only to conversation panels. */
html,body{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}body{position:relative}.app{height:var(--app-height,100dvh);min-height:0;max-height:var(--app-height,100dvh);overflow:hidden;padding-bottom:env(safe-area-inset-bottom)}header{min-height:65px;height:10%;max-height:94px}main{flex:1;min-height:0;overflow:hidden;justify-content:center;padding:0}.presence{height:clamp(155px,32dvh,280px)}canvas{width:clamp(175px,33dvh,300px);height:clamp(175px,33dvh,300px)}.session-info{font-size:14px;min-height:34px;margin-top:0}.transcript{margin-top:clamp(8px,3dvh,30px);min-height:0;flex:0 1 155px;overflow:hidden;display:flex;flex-direction:column}.messages{min-height:0;max-height:100%;overflow:hidden}.empty p{font-size:16px}.empty span,#hint{font-size:12px}.text{font-size:14px}.bottom{padding:18px 0 16px;flex:none}.bottom-mark{display:none}.controls{gap:45px}.secondary{width:44px;height:44px}.mic-wrap{width:80px;height:80px}#call.active{background:linear-gradient(145deg,#64606c,#37333f);box-shadow:0 0 22px #9b90aa20,inset 0 1px 1px #ffffff40}#call.active svg{stroke:#fff}#call.active:after{content:'';position:absolute;width:6px;height:6px;background:#fff;border-radius:50%;bottom:9px}#call[aria-pressed="true"]{filter:grayscale(1)}#hint{margin:13px 0 0}.app:has(.transcript.expanded) .presence{height:clamp(110px,22dvh,180px)}.app:has(.transcript.expanded) canvas{width:clamp(135px,24dvh,210px);height:clamp(135px,24dvh,210px)}.transcript.expanded{flex:1;min-height:0;margin-top:10px}.transcript.expanded .messages{flex:1;min-height:0;max-height:100%;overscroll-behavior:contain}.transcript-heading{font-size:12px}#error{font-size:12px;max-height:70px;overflow-y:auto;margin:6px 0 0;flex-shrink:0}.ambient{overflow:hidden}[hidden]{display:none!important}dialog{position:fixed;border:0;border-radius:24px 24px 0 0;color:#eee6f2;background:#16101f;width:min(100%,540px);max-width:100%;height:min(78dvh,690px);max-height:calc(var(--app-height,100dvh) - 24px);padding:0;margin:auto auto 0;box-shadow:0 -20px 90px #08050bb3;overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#080610b0;backdrop-filter:blur(8px)}.sheet-head{display:flex;align-items:center;gap:12px;padding:22px 20px 10px;flex:none}.sheet-head h2{font-size:18px;font-weight:500;margin:0;flex:1;overflow-wrap:anywhere}.sheet-head button{background:#ffffff09;width:38px;height:38px;flex:none;border-radius:50%;font-size:24px}.sheet-head #sheet-back{font-size:28px}#sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:12px 22px max(24px,env(safe-area-inset-bottom));flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#76558555 transparent}.sheet-lead{font-size:16px;line-height:1.7;color:#d4c7dd;margin:8px 0 25px}.sheet-note{font-size:13px;line-height:1.7;color:#aa98b8;margin:8px 0 17px}.sheet-notice{font-size:14px;line-height:1.6;color:#ecc4dc;background:#72265320;padding:14px;border-radius:16px}.provider-button,.pack-button{width:100%;display:block;border-radius:16px;background:#79429133;text-align:center;padding:16px;color:#eee7f5;margin:12px 0;text-decoration:none;font-size:15px;line-height:1.5}.provider-button:disabled{opacity:.45;cursor:default}.provider-button:hover:not(:disabled),.pack-button:hover{background:#8b49b04d}.history-tab{display:flex;flex-direction:column;gap:8px;text-align:left;width:100%;padding:16px;background:transparent;border-radius:inherit;margin:0}.history-tab strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}.history-tab span{font-size:12px;color:#a997b7}.text-button{background:transparent;color:#b69fc9;font-size:14px;padding:16px;margin-top:10px}.minute-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:24px;background:#8f50b00f;border-radius:20px;margin:15px 0 26px}.minute-number{font:42px var(--interface-font);font-variant-numeric:tabular-nums}.minute-card .sheet-note{margin:0}.account-name{font-size:20px}#sheet-body h3{font-size:16px;font-weight:500}.recording-box{margin-bottom:24px}.recording-box audio{display:block;width:100%;height:40px;margin:8px 0 18px}.archive-messages .text{font-size:14px}#history-note:empty{display:none}#history-note{font-size:12px;color:#efbfd6;padding:0 20px}.history-delete.confirming{display:flex;flex-direction:row-reverse;align-items:center;gap:6px;width:auto;padding:0 12.5px;color:#ffd3de}
.history-delete-label{display:none;font-size:12px;white-space:nowrap}
.history-delete.confirming .history-delete-label{display:inline}
[data-theme="light"] .history-delete.confirming{color:#97254e}
@media(max-height:600px){header{min-height:48px}.presence{height:135px}canvas{width:170px;height:170px}.bottom{padding-top:10px;padding-bottom:10px}.mic-wrap{width:68px;height:68px}#call{height:58px;width:58px}.transcript{flex-basis:100px;margin-top:0}.messages{padding-top:10px;padding-bottom:10px}.empty{padding:0}.session-info{min-height:24px;font-size:12px}#hint{margin-top:8px;font-size:11px}.app:has(.transcript.expanded) .presence{height:90px}.app:has(.transcript.expanded) canvas{width:120px;height:120px}}@media(max-width:600px){.app{padding-left:20px;padding-right:20px}.edition{display:none}h1{font-size:18px}.wordmark{font-size:10px}.halo-2{inset:-9px}}

/* Keep the same scroll area and message nodes in both transcript sizes. */
#call.active::after{content:none}
.transcript,.transcript.expanded{flex:0 1 155px;min-height:0;margin-top:clamp(8px,3dvh,30px);transition:flex-basis 260ms ease}
.transcript.expanded{flex-basis:46dvh}
.presence{transition:height 260ms ease}
#voice-orb{transition:width 260ms ease,height 260ms ease}
.transcript .messages,.transcript.expanded .messages{
  flex:1;min-height:0;max-height:none;min-width:0;overflow:auto;overflow-x:hidden;
  cursor:pointer;overscroll-behavior:contain;scrollbar-width:thin;
  scrollbar-color:#704d7950 transparent;padding-top:22px;padding-bottom:22px;
  mask-image:linear-gradient(to bottom,transparent,#000 20px,#000 calc(100% - 20px),transparent);
}
.transcript:not(.expanded) .text{display:block;overflow:visible}
.message,.message .text{min-width:0;max-width:100%;overflow-wrap:anywhere}
.message{max-width:91%}
.text-arrive{animation:text-arrive 270ms ease-out both}
@keyframes text-arrive{from{opacity:.2}to{opacity:1}}
dialog[open]{animation:sheet-arrive 240ms cubic-bezier(.2,.75,.3,1) both}
dialog[open]::backdrop{animation:text-arrive 200ms ease-out both}
@keyframes sheet-arrive{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
.history-item{display:flex;align-items:center;background:#a084bf0d;border-radius:18px;margin:10px 0}
.history-item:has(.history-tab:hover){background:#a084bf1c}
.history-item .history-tab{min-width:0;flex:1}
.history-delete{flex:none;display:grid;place-items:center;width:44px;height:44px;margin-right:6px;background:transparent;color:#bcaac7}
.history-delete:hover{color:#ffd3de}
.history-delete svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6}
@media(max-height:600px){.transcript{flex-basis:100px}.transcript.expanded{flex-basis:38dvh}}
@media(prefers-reduced-motion:reduce){.text-arrive,dialog[open],dialog[open]::backdrop{animation:none}}

/* Hide the scrollbar while keeping the transcript scrollable. */
.transcript .messages,
.transcript.expanded .messages{scrollbar-width:none}
.transcript .messages::-webkit-scrollbar{display:none}

/* Keep the portrait aligned to the canvas at every orb size. */
.orb-stage {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  flex: none;
  isolation: isolate;
}
.orb-stage canvas { position: relative; pointer-events: none }
.orb-defs { position: absolute; pointer-events: none }
.orb-portrait {
  position: absolute;
  inset: 0;
  opacity: .82;
  pointer-events: none;
  mask-image: url(#orb-edge);
}
.orb-float {
  position: absolute;
  inset: 20% 20% 22%;
  animation: portrait-float 7s ease-in-out infinite;
}
.orb-float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  transition: opacity 520ms ease-in-out;
}
.orb-float img { opacity: 0 }
.orb-float[data-pose="idle"] [data-portrait="idle"],
.orb-float[data-pose="listen"] [data-portrait="listen"],
.orb-float[data-pose="think"] [data-portrait="think"],
.orb-float[data-pose="explain"] [data-portrait="explain"],
.orb-float[data-pose="knowledge"] [data-portrait="knowledge"],
.orb-float[data-pose="clarify"] [data-portrait="clarify"],
.orb-float[data-pose="next_step"] [data-portrait="next_step"] { opacity: 1 }
@keyframes portrait-float {
  0%, 100% { transform: translateY(1.2%) }
  50% { transform: translateY(-1.7%) }
}
@media (prefers-reduced-motion: reduce) {
  .orb-float { animation: none }
  .orb-float img { transition: none }
}

@font-face {
  font-family: 'TT Firs Neue';
  src: local('TT Firs Neue Regular'), local('TTFirsNeue-Regular'), url('/tt-firs-neue-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Organetto Bold Ext';
  src: url('/organetto-boldext.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
header h1 {
  font-family: 'Organetto Bold Ext', var(--interface-font);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}
@media (max-width: 600px) {
  header h1 { margin-inline: 70px; font-size: clamp(15px, 4.2vw, 18px) }
}

#theme-toggle {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #a97dbe16;
  color: #dfcde9;
  transition: background-color .2s, color .2s;
}
#theme-toggle:hover { background: #a97dbe30 }
#theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round }
#theme-toggle .theme-moon, [data-theme="light"] #theme-toggle .theme-sun { display: none }
[data-theme="light"] #theme-toggle .theme-moon { display: block }

[data-theme="light"] {
  color-scheme: light;
  --light-paper: #f5f1f8;
  --light-ink: #261a30;
  --light-muted: #66546f;
  --light-accent: #63218c;
  --light-tint: #eee4f5;
  background: var(--light-paper);
  color: var(--light-ink);
}
[data-theme="light"] body { background: radial-gradient(ellipse at 40% 0%, #eadcf0, transparent 60%), var(--light-paper) }
[data-theme="light"] .ambient-top { background: #cf8bc636 }
[data-theme="light"] .ambient-bottom { background: #ad78ca2e }
[data-theme="light"] :is(.wordmark,.wordmark span,.session-info,#timer,#hint,.empty span,.sheet-note,.history-tab span,.transcript-heading) { color: var(--light-muted) }
[data-theme="light"] :is(.empty p,.sheet-lead,.account-name) { color: var(--light-ink) }
[data-theme="light"] :is(.text,.user .text) { color: var(--light-ink); background: #fff }
[data-theme="light"] .user .text { background: var(--light-tint) }
[data-theme="light"] .orb-stage canvas { filter: brightness(.74) saturate(1.25) }
[data-theme="light"] .orb-portrait { opacity: .93 }
[data-theme="light"] .mic-halo { box-shadow: 0 0 0 1px #8b539b35 }
[data-theme="light"] #call { background: linear-gradient(145deg,#963197,#622089) }
[data-theme="light"] #call.active { background: #514b57 }
[data-theme="light"] :is(.secondary,#theme-toggle,.sheet-head button,.provider-button,.pack-button) { color: var(--light-accent); background: var(--light-tint) }
[data-theme="light"] :is(.secondary,#theme-toggle,.sheet-head button,.provider-button,.pack-button):hover:not(:disabled) { background: #e4d4ef }
[data-theme="light"] :is(button,.messages,a):focus-visible { outline-color: var(--light-accent) }
[data-theme="light"] dialog { color: var(--light-ink); background: #fcf9fd; box-shadow: 0 -16px 72px #38214330 }
[data-theme="light"] dialog::backdrop { background: #31233c4d }
[data-theme="light"] :is(.history-item,.minute-card) { background: #f3ecf6 }
[data-theme="light"] .history-item:has(.history-tab:hover) { background: var(--light-tint) }
[data-theme="light"] :is(.text-button,.history-delete) { color: var(--light-accent) }
[data-theme="light"] .history-delete:hover { color: #97254e }
[data-theme="light"] :is(#error,.sheet-notice) { color: #792243; background: #f8e4ed }
[data-theme="light"] #history-note { color: #792243 }

.orb-float img { filter: grayscale(1) }
[data-theme="light"] .orb-float img { filter: none }

/* One entrance per page load. Animate wrappers to preserve inner motion. */
@media (prefers-reduced-motion: no-preference) {
  .app > header,
  .voice > .presence,
  .voice > .session-info,
  main > .transcript,
  .app > .bottom {
    animation: page-arrive 440ms cubic-bezier(.2,.75,.3,1) backwards;
  }
  .voice > .presence { animation-delay: 65ms; --arrival-offset: 8px }
  .voice > .session-info { animation-delay: 135ms }
  main > .transcript { animation-delay: 185ms }
  .app > .bottom { animation-delay: 235ms }
  .ambient { animation: page-glow 660ms ease-out backwards }
}
@keyframes page-arrive {
  from { opacity: 0; transform: translateY(var(--arrival-offset, 6px)) }
  to { opacity: 1; transform: translateY(0) }
}
@keyframes page-glow {
  from { opacity: 0 }
  to { opacity: 1 }
}

.messages:has(.starter-question) { mask-image: none; cursor: default; overflow: clip }
.starter-question { padding: 0 0 10px }
.starter-question p { max-width: 33ch; margin: 0 auto 5px; line-height: 1.45 }

/* Keep room for the switch throughout the call and its exit animation. */
.bottom { padding-top: 42px }
.mic-wrap { isolation: isolate }
#call { position: relative; z-index: 2 }
#mic-mute {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform: translateY(0) scale(.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(.25,.75,.3,1), opacity 240ms ease 65ms, visibility 0s linear 320ms;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #ead9f2;
  border-radius: 50%;
}
#mic-mute::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #36243e;
  z-index: -1;
}
#mic-mute svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
[data-theme="light"] #mic-mute { color: var(--light-accent) }
[data-theme="light"] #mic-mute::before { background: var(--light-tint) }
#mic-mute[aria-pressed="true"] { color: #fff }
#mic-mute[aria-pressed="true"]::before { background: #96344b99 }
#mic-mute:disabled { cursor: wait }


#mic-mute[data-visible="true"] {
  transform: translateY(-56px) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 360ms cubic-bezier(.2,.8,.25,1), opacity 220ms ease-out, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  #mic-mute, #mic-mute[data-visible="true"] { transition: none }
}

.history-edit{flex:none;display:grid;place-items:center;width:40px;height:44px;padding:0;background:transparent;color:#bcaac7}
.history-edit:hover{color:#fff}
.history-edit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.history-item{position:relative}
.history-item.editing>:is(.history-tab,.history-edit,.history-delete){visibility:hidden}
.history-item:is(.title-saved,.title-cancelled)>:is(.history-tab,.history-edit,.history-delete){visibility:visible;pointer-events:none}
.history-item.title-saved>:is(.history-tab,.history-edit,.history-delete){animation:history-title-saved 220ms ease-out both}
.history-item.title-cancelled>:is(.history-tab,.history-edit,.history-delete){animation:history-title-restored 190ms ease-out both}
.history-title-form{position:absolute;inset:0;display:flex;align-items:center;min-width:0;padding:6px 6px 6px 12px;animation:history-editor-in 220ms cubic-bezier(.2,.75,.3,1) both}
.history-title-input{flex:1;min-width:0;padding:8px;color:inherit;font:inherit;font-size:16px;background:transparent;border:0}
.history-title-input:focus{outline:none}
.history-title-form .history-edit:disabled{opacity:.45}
[data-theme="light"] .history-edit{color:var(--light-accent)}


.title-saved>.history-title-form{animation:history-editor-save 220ms ease-out both}
.title-cancelled>.history-title-form{animation:history-editor-cancel 190ms ease-out both}
@keyframes history-editor-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes history-editor-save{0%{opacity:1}55%,100%{opacity:0;transform:translateY(-4px)}}
@keyframes history-editor-cancel{0%{opacity:1}60%,100%{opacity:0;transform:translateX(-5px)}}
@keyframes history-title-saved{0%,42%{opacity:0;transform:translateY(4px)}100%{opacity:1;transform:translateY(0)}}
@keyframes history-title-restored{0%,42%{opacity:0;transform:translateX(4px)}100%{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){
 .history-item .history-title-form,.history-item:is(.title-saved,.title-cancelled)>:is(.history-tab,.history-edit,.history-delete){animation:none}
}


:is(#call,#mic-mute,#theme-toggle,.secondary,.sheet-head,.history-edit,.history-delete) svg.solar-icon{fill:none;stroke:none}
#call svg.solar-icon{color:#fff}
.sheet-head .solar-icon{width:20px;height:20px;display:block;margin:auto}

/* Suppress the native touch overlay while keeping keyboard focus styles. */
html{-webkit-tap-highlight-color:transparent}

/* The existing blurred backdrop also serves as the glass behind the sheet. */
@supports ((backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px))){
 #workspace-dialog{
  background:linear-gradient(155deg,#382044a1,#171122c7 72%);
  box-shadow:inset 0 1px 0 #fff5,inset 1px 0 0 #fff1,inset -1px 0 0 #fff1,0 -16px 64px #08050b80;
 }
 #workspace-dialog::backdrop{
  background:#08061055;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
 }
 [data-theme="light"] #workspace-dialog{
  background:linear-gradient(155deg,#fffbffc2,#f4e6f8a6 72%);
  box-shadow:inset 0 1px 0 #ffff,inset 1px 0 0 #fff8,inset -1px 0 0 #fff8,0 -16px 64px #38214330;
 }
 [data-theme="light"] #workspace-dialog::backdrop{background:#31233c29}
}

@media(prefers-reduced-motion:no-preference){
 #call:not(.active):not(:disabled){animation:mic-idle-pulse 3.2s ease-in-out infinite}
 .mic-wrap:has(#call:not(.active):not(:disabled)) .mic-halo{animation:mic-ring-pulse 3.8s ease-in-out infinite}
 .mic-wrap:has(#call:not(.active):not(:disabled)) .halo-2{animation-delay:180ms}
}
@keyframes mic-idle-pulse{
 0%,100%{scale:1}
 50%{scale:1.035}
}
@keyframes mic-ring-pulse{
 0%,100%{scale:1;opacity:.68}
 50%{scale:1.07;opacity:1}
}

.profile-about{display:grid;gap:8px;margin:18px 0}
.profile-about label{font-weight:500}
.profile-about .sheet-note{margin:0}
.profile-about [role="status"]:empty{display:none}
.profile-about textarea{width:100%;min-height:92px;padding:10px 12px;resize:vertical;border:0;border-radius:3px;background:#a084bf18;color:inherit;font:inherit;font-size:16px}
.profile-about textarea[aria-invalid="true"]{box-shadow:inset 0 -2px #b45373}
.profile-about-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-about-actions .provider-button{width:auto;margin:0}

.starter-question{padding:0}
.starter-viewport{
 overflow:hidden;
 overflow:clip;
 touch-action:pan-y pinch-zoom;
 user-select:none;
 mask-image:linear-gradient(90deg,transparent,#0005 9%,#000 19%,#000 81%,#0005 91%,transparent);
}
.starter-track{
 --starter-width:76%;
 --starter-gap:6px;
 position:relative;
 display:grid;
 grid-template-columns:repeat(3,var(--starter-width));
 align-items:start;
 gap:var(--starter-gap);
 margin-inline-start:calc((100% - 3 * var(--starter-width))/2 - var(--starter-gap));
 width:100%;
}
.starter-track :is(p,.starter-neighbor){
 max-width:none;
 margin:0;
 padding:4px 3px;
 color:inherit;
 font-size:clamp(14px,3.9vw,19px);
 line-height:1.45;
 letter-spacing:-.4px;
 text-align:center;
}
.starter-neighbor{
 width:100%;
 background:transparent;
}
.starter-extra{
 position:absolute;
 width:var(--starter-width);
 top:0;
 pointer-events:none;
}
.starter-extra-previous{right:calc(100% + var(--starter-gap))}
.starter-extra-next{left:calc(3 * (var(--starter-width) + var(--starter-gap)))}
.starter-neighbor:focus-visible{outline-offset:-3px}

.access-code{display:grid;gap:8px;margin:14px 0}
.access-code .sheet-note{margin:0}
.access-code .provider-button{margin:0}
.access-code [hidden],.access-code [role="status"]:empty{display:none}
.access-code input{width:100%;min-width:0;padding:10px 12px;border:0;border-radius:3px;background:#a084bf18;color:inherit;font:16px ui-monospace,monospace}
.access-code-reminder{display:flex;align-items:flex-start;gap:8px;margin:10px 0;font-size:14px;line-height:1.45}

@media(prefers-reduced-motion:no-preference){
 #workspace-dialog[open][data-closing]{
  pointer-events:none;
  animation:sheet-depart 270ms cubic-bezier(.45,0,.65,1) both;
 }
 #workspace-dialog[open][data-closing]::backdrop{
  animation:sheet-backdrop-depart 270ms ease-out both;
 }
}
@keyframes sheet-depart{
 from{opacity:1;transform:translateY(0) scale(1)}
 to{opacity:0;transform:translateY(36px) scale(.985)}
}
@keyframes sheet-backdrop-depart{to{opacity:0}}

:root.theme-changing::view-transition-old(root),
:root.theme-changing::view-transition-new(root){
 mix-blend-mode:normal;
 animation:none;
}
:root.theme-changing[data-theme="light"]::view-transition-new(root){
 animation:theme-reveal 520ms cubic-bezier(.22,.65,.25,1) both;
}
:root.theme-changing[data-theme="dark"]::view-transition-old(root){
 z-index:1;
 animation:theme-reveal 520ms cubic-bezier(.22,.65,.25,1) reverse both;
}
@keyframes theme-reveal{
 from{clip-path:circle(0 at var(--theme-x) var(--theme-y))}
 to{clip-path:circle(var(--theme-radius) at var(--theme-x) var(--theme-y))}
}

.model-picker{display:grid;gap:8px;margin:16px 0;font-size:14px}


#workspace-dialog :is(input,textarea,select):focus{outline:none}
#workspace-dialog :is(input,textarea,select):focus-visible{box-shadow:inset 0 -2px #a084bf80}
#workspace-dialog textarea[aria-invalid="true"]{box-shadow:inset 0 -2px #b45373}
.extra-packs[hidden]{display:none}

.account-sheet{
 --account-surface:#a084bf15;
 --account-hover:#a084bf28;
 --account-selected:#a084bf35;
 --account-muted:#bea9c9;
 --account-accent:#ebd9f6;
 --account-radius:16px;
}
[data-theme="light"] .account-sheet{
 --account-surface:#85539b0e;
 --account-hover:#85539b1c;
 --account-selected:#85539b26;
 --account-muted:var(--light-muted);
 --account-accent:var(--light-accent);
}
.account-sheet .minute-card{
 align-items:flex-start;
 gap:6px;
 margin:0 0 20px;
 padding:16px 18px;
 background:var(--account-surface);
 border-radius:var(--account-radius);
}
.account-sheet .minute-number{font-size:clamp(30px,8vw,38px);line-height:1.12}
.account-sheet .sheet-note{color:var(--account-muted);line-height:1.45}
.account-sheet h3{margin:18px 0 8px}
.account-sheet .model-picker{gap:8px;margin:0 0 18px}
.account-sheet .model-picker h3{margin:0}
.model-switch{
 position:relative;
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 isolation:isolate;
 padding:4px;
 border-radius:16px;
 background:var(--account-surface);
}
.model-switch::before{
 content:"";
 position:absolute;
 z-index:-1;
 inset:4px auto 4px 4px;
 width:calc(50% - 4px);
 border-radius:12px;
 background:var(--account-selected);
 transition:transform .26s cubic-bezier(.22,.7,.25,1);
}
.model-switch[data-model="dark"]::before{transform:translateX(100%)}
.model-option{
 min-height:42px;
 display:flex;
 align-items:center;
 justify-content:center;
 gap:8px;
 border-radius:12px;
 background:transparent;
 color:var(--account-muted);
 font:inherit;
 transition:color .2s;
}
.model-option:hover,.model-option[aria-pressed="true"]{color:var(--account-accent)}
.model-rate{font-size:11px;font-variant-numeric:tabular-nums}
.model-picker [role="status"]:empty,.account-code-actions [role="status"]:empty,.account-code-actions [hidden]{display:none}
.account-access{display:grid;gap:6px;margin-top:22px}
.account-access h3{margin:0 0 4px}
.account-action{
 display:flex;
 align-items:center;
 gap:10px;
 width:100%;
 min-height:44px;
 padding:9px 12px;
 border-radius:var(--account-radius);
 color:inherit;
 background:var(--account-surface);
 text-align:left;
 transition:background-color .2s;
}
.account-action:hover{background:var(--account-hover)}
.account-action svg{width:18px;height:18px;flex:none;color:var(--account-accent)}
.account-signout{color:#edbacd}
[data-theme="light"] .account-signout{color:#8e3152}
.account-signout svg{color:inherit}
.account-code-actions{display:grid;gap:6px}
.account-code-actions .provider-button,.account-code-actions .sheet-note{margin:0}
#workspace-dialog .profile-about textarea:focus-visible:not([aria-invalid="true"]){box-shadow:none;background:var(--account-hover)}
@media(prefers-reduced-motion:reduce){.model-switch::before{transition:none}}
.account-sheet :is(.profile-about textarea,.access-code input,.provider-button,.pack-button){
 border-radius:var(--account-radius);
}
.account-sheet :is(.profile-about textarea,.access-code input){
 background:var(--account-surface);
 resize:none;
}
.account-sheet :is(textarea,input)::placeholder{color:var(--account-muted);opacity:.8}
.account-sheet :is(.provider-button,.pack-button){min-height:44px}

.agent-markdown{overflow-wrap:anywhere}
.agent-markdown > :first-child{margin-top:0}
.agent-markdown > :last-child{margin-bottom:0}
.agent-markdown :is(p,ul,ol,blockquote,pre,table){margin:.55em 0}
.agent-markdown :is(ul,ol){padding-inline-start:1.4em}
.agent-markdown li+li{margin-top:.25em}
.agent-markdown blockquote{padding-inline-start:.75em;border-inline-start:2px solid #a084bf78}
.agent-markdown a{color:#dfb6f5;text-decoration:underline;text-underline-offset:2px}
[data-theme="light"] .agent-markdown a{color:var(--light-accent)}
.agent-markdown :is(h1,h2,h3,h4,h5,h6){font-size:1em;line-height:1.35;margin:.7em 0 .3em}
.agent-markdown pre{white-space:pre-wrap}
.agent-markdown code{font:inherit;font-family:ui-monospace,monospace}
.agent-markdown table{max-width:100%;border-collapse:collapse}
.agent-markdown :is(th,td){padding:.25em .4em;text-align:start;border-bottom:1px solid #a084bf40}
.message.user .text,.message.agent.partial .text{white-space:pre-wrap}

.recording-player{
 display:grid;
 gap:12px;
 padding:14px;
 border-radius:18px;
 background:#a084bf18;
 --recording-accent:#d6a9f4;
 --recording-track:#a084bf37;
}
[data-theme="light"] .recording-player{
 background:#85539b14;
 --recording-accent:var(--light-accent);
 --recording-track:#85539b32;
}
.recording-transport{display:grid;grid-template-columns:44px minmax(0,1fr) auto 32px;align-items:center;gap:8px}
.recording-toggle{width:44px;height:44px;border-radius:50%;background:#a084bf28;color:var(--recording-accent);font:inherit}
.recording-toggle:hover{background:#a084bf40}
.recording-toggle:disabled{opacity:.45}
.recording-time{white-space:nowrap;font:11px ui-monospace,monospace}
.recording-toggle,.recording-volume-toggle{display:grid;place-items:center;padding:0}
.recording-toggle svg,.recording-volume-toggle svg{width:18px;height:18px}
.recording-volume-menu{position:relative}
.recording-volume-toggle{width:32px;height:32px;border-radius:50%;background:transparent;color:var(--recording-accent)}
.recording-volume-toggle:hover{background:#a084bf28}
.recording-volume{
 position:absolute;
 z-index:3;
 right:0;
 top:100%;
 display:flex;
 align-items:center;
 width:120px;
 padding:4px 10px;
 border-radius:12px;
 background:#352640;
 box-shadow:0 6px 18px #0b07162e;
 opacity:0;
 visibility:hidden;
 transition:opacity .16s,visibility .16s;
}
[data-theme="light"] .recording-volume{background:#f2e7f6}
.recording-volume-menu.open .recording-volume,.recording-volume-menu:focus-within .recording-volume{opacity:1;visibility:visible}
@media(hover:hover){.recording-volume-menu:hover .recording-volume{opacity:1;visibility:visible}}
.recording-player input[type="range"]{
 appearance:none;
 width:100%;
 min-width:0;
 height:28px;
 margin:0;
 cursor:pointer;
 touch-action:pan-y;
 background:linear-gradient(to right,var(--recording-accent) var(--recording-fill),var(--recording-track) 0) center/100% 4px no-repeat;
}
.recording-player input[type="range"]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:var(--recording-accent)}
.recording-player input[type="range"]::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:var(--recording-accent)}
.recording-player input[type="range"]:disabled{opacity:.45;cursor:default}
.recording-status{margin:0}
.recording-status:empty{display:none}

.dark-model-label{display:none}
:root[data-assistant-model="dark"]{
 --dark-mic-top:#63446e;
 --dark-mic-bottom:#30213e;
 --dark-ring:#ac78bd55;
 --dark-label:#dfc2eb;
 --dark-label-surface:#a270b333;
}
:root[data-theme="light"][data-assistant-model="dark"]{
 --dark-mic-top:#795484;
 --dark-mic-bottom:#4d365d;
 --dark-ring:#9863a64a;
 --dark-label:#613873;
 --dark-label-surface:#9b63b126;
}
:root[data-assistant-model="dark"] #call:not(.active){
 background:linear-gradient(145deg,var(--dark-mic-top),var(--dark-mic-bottom) 80%);
 box-shadow:0 0 24px #80578d39,inset 0 1px 1px #e3b8f44a;
}
:root[data-assistant-model="dark"] #call.active{background:#343039}
:root[data-assistant-model="dark"] .mic-halo{box-shadow:0 0 0 1px var(--dark-ring)}
:root[data-assistant-model="dark"] .dark-model-label{
 display:inline-block;
 margin-inline-end:7px;
 padding:2px 7px;
 border-radius:20px;
 color:var(--dark-label);
 background:var(--dark-label-surface);
 font-size:11px;
}
.model-switch[data-model="dark"]{
 --account-selected:#67417d;
 --account-accent:#f7eafb;
 --account-muted:#d1badc;
 background:#30223e;
}
[data-theme="light"] .model-switch[data-model="dark"]{
 --account-selected:#d8bfeb;
 --account-accent:#432656;
 --account-muted:#684c77;
 background:#eae0f0;
}
.model-switch{transition:background-color .26s}
.model-switch::before{transition:transform .26s cubic-bezier(.22,.7,.25,1),background-color .26s}
@media(prefers-reduced-motion:reduce){.model-switch,.model-switch::before{transition:none}}

/* Organetto only includes the Cyrillic glyphs needed by the wordmark. */
#sheet-back[hidden] ~ #sheet-title{
 font-family:var(--interface-font);
 font-size:clamp(18px,4.4vw,22px);
 font-weight:600;
 line-height:1.2;
 letter-spacing:-.025em;
}
