.av-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.av-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-3);min-width:var(--touch-target-min);min-height:var(--touch-target-min);padding:0 var(--space-6);border:1px solid transparent;border-radius:var(--radius-pill);font-family:var(--font-family-sans);font-size:var(--type-body);font-weight:var(--fw-medium);line-height:var(--lh-snug);text-align:center;cursor:pointer;transition:background-color var(--motion-fast) var(--motion-ease),opacity var(--motion-fast) var(--motion-ease);-webkit-tap-highlight-color:transparent}.av-button--lg{min-height:var(--control-height-lg);font-size:var(--type-body-lg)}.av-button--full{display:flex;width:100%}.av-button--primary{background:var(--color-action-primary);color:var(--color-text-on-action)}.av-button--primary:active:not(:disabled){background:var(--color-action-primary-pressed)}.av-button--secondary{color:var(--color-text-heading)}.av-button--danger,.av-button--secondary{background:var(--surface-card);border-color:var(--border-subtle)}.av-button--danger{color:var(--color-text-danger)}.av-button--text{background:transparent;color:var(--color-text-link);padding:0 var(--space-4)}.av-button--danger:active:not(:disabled),.av-button--secondary:active:not(:disabled),.av-button--text:active:not(:disabled){background:var(--surface-alt)}.av-button:disabled{background:var(--surface-disabled);border-color:transparent;color:var(--color-text-muted);cursor:not-allowed}.av-button[aria-busy=true]{cursor:progress}.av-button__icon,.av-chip__icon,.av-icon-button__icon,.av-text-field__leading{display:inline-flex;font-size:20px;line-height:0}.av-spinner{width:18px;height:18px;border:2px solid;border-right:2px solid transparent;border-radius:50%;animation:av-spin .8s linear infinite}@keyframes av-spin{to{transform:rotate(1turn)}}.av-icon-button{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--touch-target-min);height:var(--touch-target-min);padding:0;border:none;border-radius:50%;color:var(--color-text-heading);cursor:pointer;-webkit-tap-highlight-color:transparent}.av-icon-button__icon{font-size:22px}.av-icon-button--surface{background:var(--surface-card)}.av-icon-button--ghost{background:transparent}.av-icon-button--primary{background:var(--color-action-primary);color:var(--color-text-on-action)}.av-icon-button--ghost:active:not(:disabled),.av-icon-button--surface:active:not(:disabled){background:var(--surface-alt)}.av-icon-button:disabled{color:var(--color-text-muted);cursor:not-allowed;opacity:.6}.av-text-field{display:flex;flex-direction:column;gap:var(--space-3);min-width:0}.av-text-field__label{font-size:var(--type-body);font-weight:var(--fw-medium);color:var(--color-text-heading)}.av-text-field__box{display:flex;align-items:center;gap:var(--space-3);min-height:var(--control-height-lg);padding:0 var(--space-5);background:var(--surface-card);border:1px solid var(--border-input);border-radius:var(--radius-sm);transition:border-color var(--motion-fast) var(--motion-ease)}.av-text-field__leading{color:var(--color-text-muted)}.av-text-field__control{flex:1 1;min-width:0;min-height:var(--touch-target-min);padding:0;border:none;outline:none;background:transparent;font-family:var(--font-family-sans);font-size:var(--type-body-lg);line-height:var(--lh-normal);color:var(--color-text-body)}.av-text-field__control--multiline{padding:var(--space-4) 0;resize:vertical}.av-text-field__control::placeholder{color:var(--color-text-muted)}.av-text-field__box:focus-within{border-color:var(--border-focus);box-shadow:0 0 0 1px var(--border-focus)}.av-text-field--invalid .av-text-field__box{border-color:var(--border-danger)}.av-text-field--invalid .av-text-field__box:focus-within{box-shadow:0 0 0 1px var(--border-danger)}.av-text-field:has(.av-text-field__control:disabled) .av-text-field__box{background:var(--surface-disabled)}.av-text-field__error,.av-text-field__hint{margin:0;font-size:var(--type-small);line-height:var(--lh-normal)}.av-text-field__hint{color:var(--color-text-muted)}.av-text-field__error{color:var(--color-text-danger);font-weight:var(--fw-medium)}.av-chip{display:inline-flex;flex:none;align-items:center;gap:var(--space-2);min-height:var(--touch-target-min);padding:0 var(--space-5);border:1px solid var(--border-subtle);border-radius:var(--radius-pill);background:var(--surface-card);color:var(--color-text-heading);font-family:var(--font-family-sans);font-size:var(--type-body);font-weight:var(--fw-medium);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}.av-chip--selected{background:var(--color-action-primary);border-color:var(--color-action-primary);color:var(--color-text-on-action)}.av-chip:disabled{color:var(--color-text-muted);cursor:not-allowed}.av-list-state{display:flex;flex-direction:column}.av-list-state--loading{gap:var(--space-4)}.av-list-state--empty,.av-list-state--error{align-items:center;gap:var(--space-3);padding:var(--space-10) var(--space-7);text-align:center;background:var(--surface-card);border-radius:var(--radius-card)}.av-list-state__icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:var(--space-3);border-radius:var(--radius-md);background:var(--surface-alt);color:var(--color-action-primary);font-size:var(--icon-md)}.av-list-state__icon--danger{color:var(--color-danger)}.av-list-state__title{margin:0;font-size:var(--type-h3);font-weight:var(--fw-semibold);color:var(--color-text-heading)}.av-list-state__description{margin:0;max-width:320px;font-size:var(--type-body);line-height:var(--lh-normal);color:var(--color-text-muted)}.av-list-state__action{margin-top:var(--space-4)}.av-skeleton-row{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-5);background:var(--surface-card);border-radius:var(--radius-card)}.av-skeleton-row__lines{display:flex;flex:1 1;flex-direction:column;gap:var(--space-3)}.av-skeleton{display:block;background:var(--surface-alt);animation:av-pulse 1.4s var(--motion-ease) infinite}.av-skeleton--avatar{flex:none;width:48px;height:48px;border-radius:var(--radius-md)}.av-skeleton--line{height:12px;border-radius:var(--radius-pill)}.av-skeleton--short{width:55%}@keyframes av-pulse{50%{opacity:.45}}.av-bottom-nav{position:fixed;left:var(--gutter);right:var(--gutter);bottom:calc(var(--space-6) + env(safe-area-inset-bottom, 0px));z-index:10;display:flex;align-items:center;gap:var(--space-4)}.av-bottom-nav__pill{flex:1 1;min-width:0;padding:6px;border:1px solid var(--border-nav);border-radius:var(--radius-pill);background:var(--surface-nav);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow-nav)}.av-bottom-nav__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:var(--space-1);gap:var(--space-1);margin:0;padding:0;list-style:none}.av-bottom-nav__item{display:flex;min-width:0}.av-bottom-nav__tab{display:flex;flex:1 1;min-width:var(--touch-target-min);flex-direction:column;align-items:center;justify-content:center;gap:var(--space-1);min-height:var(--control-height-lg);padding:0 var(--space-1);border:none;border-radius:var(--radius-pill);background:transparent;color:var(--color-text-muted);font-family:var(--font-family-sans);text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.av-bottom-nav__tab--active{background:var(--surface-card);color:var(--color-action-primary);box-shadow:var(--shadow-sm)}.av-bottom-nav__icon{display:inline-flex;font-size:22px;line-height:0}.av-bottom-nav__label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--type-small);font-weight:var(--fw-semibold);line-height:var(--lh-snug)}.av-bottom-nav__create{display:inline-flex;flex:none;align-items:center;justify-content:center;width:64px;height:64px;padding:0;border:none;border-radius:50%;background:var(--color-action-create-gradient);color:var(--color-text-on-action);font-size:30px;box-shadow:var(--shadow-card);cursor:pointer;-webkit-tap-highlight-color:transparent}.av-sticky-action-bar{position:-webkit-sticky;position:sticky;bottom:0;z-index:5;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-gap:10px;gap:10px;padding:var(--space-4) var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));background:var(--surface-card);box-shadow:var(--shadow-action-bar)}.av-sticky-action-bar>.av-button{width:100%}.av-sheet{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}.av-sheet__scrim{position:absolute;inset:0;background:var(--surface-scrim);animation:av-fade-in var(--motion-base) var(--motion-ease)}.av-sheet__panel{position:relative;display:flex;flex-direction:column;gap:var(--space-5);width:100%;max-width:640px;max-height:calc(100dvh - var(--space-10));padding:10px var(--space-6) calc(var(--space-9) + env(safe-area-inset-bottom, 0px));overflow-y:auto;background:var(--surface-card);border-radius:var(--radius-card) var(--radius-card) 0 0;box-shadow:var(--shadow-modal);outline:none;animation:av-slide-up var(--motion-base) var(--motion-ease)}.av-sheet__grabber{align-self:center;width:40px;height:5px;border-radius:var(--radius-pill);background:var(--border-subtle)}.av-sheet__header{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin-right:calc(-1 * var(--space-3))}.av-sheet__title{margin:0;font-size:var(--type-h2);font-weight:var(--fw-bold);line-height:var(--lh-snug);color:var(--color-text-heading)}.av-sheet__description{margin:0;font-size:var(--type-body);line-height:var(--lh-normal);color:var(--color-text-muted)}.av-sheet__footer{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-gap:10px;gap:10px}@keyframes av-fade-in{0%{opacity:0}}@keyframes av-slide-up{0%{transform:translateY(100%)}}.av-bottom-nav__create:focus-visible,.av-bottom-nav__tab:focus-visible,.av-button:focus-visible,.av-chip:focus-visible,.av-icon-button:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus);outline-offset:2px}.av-stage{flex-direction:column;gap:var(--space-7);min-height:100%;padding:var(--space-7) var(--gutter);color:var(--color-text-body)}.av-stage,.av-stage__body{display:flex;align-items:center;width:100%}.av-stage__body{flex:1 1;flex-direction:column;justify-content:center;gap:var(--space-4);min-width:0;text-align:center}.av-stage__ring{--av-ring-color:var(--border-subtle);display:flex;align-items:center;justify-content:center;width:176px;height:176px;border:6px solid var(--av-ring-color);border-radius:50%;transition:border-color var(--motion-base) var(--motion-ease)}.av-stage__ring--listening{--av-ring-color:var(--avatar-state-listening)}.av-stage__ring--thinking{--av-ring-color:var(--avatar-state-thinking);animation:av-stage-pulse 1.2s var(--motion-ease) infinite}.av-stage__ring--speaking{--av-ring-color:var(--avatar-state-speaking);animation:av-stage-pulse .7s var(--motion-ease) infinite}.av-stage__avatar{width:100%;height:100%;border-radius:inherit;display:flex;align-items:center;justify-content:center;width:144px;height:144px;overflow:hidden;border-radius:50%;background:var(--surface-alt);color:var(--color-text-heading);font-size:var(--text-xl);font-weight:var(--fw-bold)}.av-stage__name{margin:0;color:var(--color-text-heading);font-size:var(--type-h1);line-height:var(--lh-snug)}.av-stage__role{color:var(--color-text-muted)}.av-stage__role,.av-stage__status{margin:0;font-size:var(--type-body-lg)}.av-stage__status{color:var(--color-text-heading);font-weight:var(--fw-semibold)}.av-stage__caption-history{display:flex;flex-direction:column;gap:var(--space-1);width:100%;max-width:32rem;color:var(--color-text-muted);font-size:var(--type-body-lg);line-height:var(--lh-normal)}.av-stage__caption-history-line{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.av-stage__captions{display:-webkit-box;min-height:calc(2 * 1.4em);max-width:32rem;margin:0;overflow:hidden;color:var(--color-text-body);font-size:var(--type-body-lg);line-height:var(--lh-normal);-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.av-stage__speaker{color:var(--color-text-muted);font-weight:var(--fw-semibold)}.av-stage__citations{display:flex;flex-wrap:wrap;gap:var(--space-2);max-width:32rem}.av-stage__citation-chip{padding:var(--space-1) var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-pill);background:var(--surface-alt);color:var(--color-text-heading);font:inherit;font-size:var(--type-small);font-weight:var(--fw-semibold);cursor:pointer}.av-stage__citation-chip[aria-expanded=true]{border-color:var(--border-focus);background:var(--surface-card)}.av-stage__citation-chip:focus-visible{outline:var(--focus-ring-width) solid var(--border-focus);outline-offset:2px}.av-stage__citation-detail{max-width:32rem;padding:var(--space-4) var(--space-5);border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--surface-card);text-align:left}.av-stage__citation-source{margin:0 0 var(--space-2);color:var(--color-text-heading);font-size:var(--type-small);font-weight:var(--fw-semibold)}.av-stage__citation-excerpt{margin:0;color:var(--color-text-body);font-size:var(--type-small);line-height:var(--lh-normal)}.av-stage__chat{display:flex;gap:var(--space-3);align-items:center;width:100%;max-width:32rem}.av-stage__chat-input{flex:1 1;min-width:0;min-height:var(--control-height-lg);padding:0 var(--space-5);border:1px solid var(--border-input);border-radius:var(--radius-pill);background:var(--surface-card);color:var(--color-text-body);font:inherit;font-size:var(--type-body-lg)}.av-stage__chat-input:focus-visible{outline:var(--focus-ring-width) solid var(--border-focus);outline-offset:2px}.av-stage__controls{display:flex;gap:var(--space-5);align-items:center;justify-content:center;padding-bottom:env(safe-area-inset-bottom)}.av-stage--video{--av-stage-video-max:512px;--av-ring-color:var(--stage-video-border);position:relative;z-index:0;flex:1 1;gap:var(--space-5);padding:calc(env(safe-area-inset-top) + var(--space-5)) var(--gutter) calc(env(safe-area-inset-bottom) + var(--space-5));overflow:hidden;background:var(--stage-video-bg);color:var(--stage-video-text)}.av-stage--video[data-state=listening]{--av-ring-color:var(--avatar-state-listening)}.av-stage--video[data-state=thinking]{--av-ring-color:var(--avatar-state-thinking)}.av-stage--video[data-state=speaking]{--av-ring-color:var(--avatar-state-speaking)}.av-stage__media{position:absolute;inset:0;z-index:-1;background:var(--stage-video-bg)}.av-stage__media>*{width:100%;height:100%}.av-stage__media video{display:block;width:100%;height:100%;object-fit:cover}.av-stage__media:after{position:absolute;inset:0;background:var(--stage-video-scrim);content:"";pointer-events:none}.av-stage__header{display:flex;gap:var(--space-4);align-items:flex-start;width:100%}.av-stage__heading{flex:1 1;min-width:0;text-align:left}.av-stage--video .av-stage__name{overflow:hidden;color:var(--stage-video-text);font-size:var(--type-body-lg);font-weight:var(--fw-semibold);text-overflow:ellipsis;white-space:nowrap}.av-stage--video .av-stage__role,.av-stage--video .av-stage__status{color:var(--stage-video-text);font-size:var(--type-small)}.av-stage--video .av-stage__status{display:inline-flex;flex:none;gap:var(--space-2);align-items:center;padding:var(--space-2) var(--space-4);border-radius:var(--radius-pill);background:var(--stage-video-surface)}.av-stage--video .av-stage__status:before{width:8px;height:8px;border-radius:50%;background:var(--av-ring-color);content:""}.av-stage__notices:empty{display:none}.av-stage__notices{display:flex;flex-direction:column;gap:var(--space-3);width:100%}.av-stage__footer{gap:var(--space-5);margin-top:auto}.av-stage__footer,.av-stage__transcript{display:flex;flex-direction:column;align-items:center;width:100%}.av-stage__transcript{gap:var(--space-3);max-width:32rem;text-align:center}.av-stage--video .av-stage__caption-history{color:var(--stage-video-text)}.av-stage--video .av-stage__captions{max-height:calc(2 * 1.4em + 2 * var(--space-4));padding:var(--space-4) var(--space-5);border-radius:var(--radius-md);background:var(--stage-video-surface);color:var(--stage-video-text)}.av-stage--video .av-stage__captions[data-empty]{background:transparent}.av-stage--video .av-stage__speaker{color:var(--stage-video-text)}.av-stage--video .av-icon-button--surface{border:1px solid var(--stage-video-border);background:var(--stage-video-control);color:var(--stage-video-text)}@media (min-width:600px){.av-stage--video{justify-content:center}.av-stage--video .av-stage__header,.av-stage--video .av-stage__notices{max-width:var(--av-stage-video-max)}.av-stage__media{position:relative;inset:auto;z-index:auto;flex:none;width:min(var(--av-stage-video-max),100%,max(15rem,100dvh - 22rem));aspect-ratio:1;overflow:hidden;border-radius:var(--radius-card);box-shadow:0 0 0 4px var(--av-ring-color)}.av-stage__media:after{display:none}.av-stage__footer{margin-top:0}}@keyframes av-stage-pulse{50%{transform:scale(1.04)}}.av-debug-panel__empty{margin:0;color:var(--color-text-muted);font-size:var(--type-body)}.av-debug-panel__turns{display:flex;flex-direction:column;gap:var(--space-7);margin:0;padding:0;list-style:none}.av-debug-panel__turn{display:flex;flex-direction:column;gap:var(--space-4);padding-bottom:var(--space-6);border-bottom:1px solid var(--border-subtle)}.av-debug-panel__turn:last-child{padding-bottom:0;border-bottom:none}.av-debug-panel__turn-title{margin:0;color:var(--color-text-heading);font-size:var(--type-body-lg);font-weight:var(--fw-semibold)}.av-debug-panel__latency{display:grid;grid-template-columns:1fr auto;grid-gap:var(--space-2) var(--space-4);gap:var(--space-2) var(--space-4);margin:0}.av-debug-panel__latency-row{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:baseline}.av-debug-panel__latency-row dt{color:var(--color-text-muted);font-size:var(--type-small)}.av-debug-panel__latency-row dd{margin:0;color:var(--color-text-body);font-size:var(--type-small);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-align:right}.av-debug-panel__latency-row--total dd,.av-debug-panel__latency-row--total dt{color:var(--color-text-heading);font-weight:var(--fw-semibold)}.av-debug-panel__section{display:flex;flex-direction:column;gap:var(--space-3)}.av-debug-panel__section-title{margin:0;color:var(--color-text-muted);font-size:var(--type-small);font-weight:var(--fw-semibold);text-transform:uppercase}.av-debug-panel__chunks,.av-debug-panel__tool-calls{display:flex;flex-direction:column;gap:var(--space-3);margin:0;padding:0;list-style:none}.av-debug-panel__chunk{padding:var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--surface-alt)}.av-debug-panel__chunk-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3)}.av-debug-panel__chunk-title{color:var(--color-text-heading);font-size:var(--type-small);font-weight:var(--fw-semibold)}.av-debug-panel__chunk-score{color:var(--color-text-muted);font-size:var(--type-small);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.av-debug-panel__chunk-excerpt{margin:var(--space-2) 0 0;color:var(--color-text-body);font-size:var(--type-small);line-height:var(--lh-normal)}.av-debug-panel__tool-call{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-3) var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--surface-alt);font-size:var(--type-small)}.av-debug-panel__tool-call-name{color:var(--color-text-heading);font-weight:var(--fw-semibold)}.av-debug-panel__tool-call-meta{color:var(--color-text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}@media (prefers-reduced-motion:reduce){.av-skeleton,.av-spinner,.av-stage__ring{animation-duration:0s;animation-iteration-count:1}.av-sheet__panel,.av-sheet__scrim{animation:none}}