:root{color:#18211f;background:#f6f7f4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:#f6f7f4}button,input,select,textarea{font:inherit}button{max-width:100%;min-height:44px;border:0;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}button:disabled{cursor:not-allowed;opacity:.62}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8fc6b7;outline-offset:2px}input,select,textarea{width:100%;min-height:48px;border:1px solid #ccd4cf;border-radius:8px;color:#18211f;font-size:16px;background:#fff}input,select{padding:0 12px}textarea{resize:vertical;padding:12px;line-height:1.4}label{display:grid;gap:8px;color:#4e5d58;font-size:.92rem;font-weight:650}.app-shell{display:grid;grid-template-rows:auto 1fr auto;width:min(100%,760px);min-height:100dvh;margin:0 auto;background:#fff}.app-shell.live-shell{width:100%;background:#0c1110}.top-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px 12px;border-bottom:1px solid #e3e8e5}.top-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.user-chip{max-width:min(44vw,220px);overflow:hidden;color:#263833;font-size:.78rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.eyebrow{margin:0 0 4px;color:#5b6c66;font-size:.72rem;font-weight:800;letter-spacing:0;text-transform:uppercase}h1,h2{margin:0;letter-spacing:0}h1{font-size:1.25rem}h2{font-size:1.8rem}.screen{min-height:0;overflow:auto;padding:18px 16px 96px}.screen.live-screen{overflow:hidden;padding:0}.page-stack,.form-stack{display:grid;gap:16px}.page-heading{display:grid;gap:2px}.panel{border:1px solid #e0e6e2;border-radius:8px;padding:16px;background:#fff}.auth-form{display:grid;gap:16px}.auth-message,.error-message,.settings-note{margin:0;font-size:.92rem;font-weight:700}.auth-message{color:#126a5a}.error-message{color:#9c2f36}.settings-note{color:#5b6c66}.settings-page{align-content:start}.settings-intent-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;border:1px solid #d7e6df;border-radius:8px;padding:12px;color:#263833;background:#edf5f1}.settings-intent-bar strong,.settings-action-copy strong{font-size:.9rem;font-weight:850}.settings-intent-bar span,.settings-action-copy span{min-width:0;color:#4e5d58;font-size:.86rem;font-weight:720;line-height:1.35}.settings-form,.settings-controls-panel,.settings-prompt-panel,.settings-trigger-panel,.settings-action-stack{display:grid;gap:16px}.settings-prompt-panel,.settings-trigger-panel,.settings-controls-panel{align-content:start}.settings-prompt-label textarea{min-height:212px}.settings-trigger-fieldset{display:grid;gap:10px;min-width:0;margin:0;border:0;padding:0}.settings-trigger-fieldset legend{margin:0;padding:0;color:#4e5d58;font-size:.92rem;font-weight:650}.settings-trigger-fieldset:disabled{opacity:.72}.settings-trigger-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.settings-trigger-toolbar span{min-width:0;color:#5b6c66;font-size:.8rem;font-weight:800;line-height:1.25;overflow-wrap:anywhere}.settings-trigger-button{min-height:44px;padding:0 12px;font-size:.86rem;font-weight:800}.settings-trigger-label textarea{min-height:220px;font-family:ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace;font-size:16px}.settings-validation-message{margin:0;border-radius:8px;padding:10px 12px;font-size:.86rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.settings-validation-message.valid{color:#126a5a;background:#e8f3ef}.settings-validation-message.invalid{color:#9c2f36;background:#fff4f5}.settings-toggle-field{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;border:1px solid #d5dfd9;border-radius:8px;padding:10px 12px;color:#263833;background:#f8faf8}.settings-toggle-field input{width:20px;height:20px;min-height:0}.settings-toggle-field span{display:grid;min-width:0;gap:2px}.settings-toggle-field strong{color:#18211f;font-size:.92rem;font-weight:850;line-height:1.25}.settings-toggle-field small{color:#5b6c66;font-size:.76rem;font-weight:720;line-height:1.25;overflow-wrap:anywhere}.settings-choice-field{display:grid;gap:8px;min-width:0;margin:0;border:0;padding:0}.settings-choice-field legend{margin:0 0 8px;padding:0;color:#4e5d58;font-size:.92rem;font-weight:650}.settings-choice-field:disabled{opacity:.72}.settings-choice-grid{display:grid;gap:8px}.settings-tone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-response-grid,.settings-reasoning-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-follow-grid{grid-template-columns:1fr}.choice-option{position:relative;display:grid;align-content:center;gap:3px;min-width:0;min-height:64px;border:1px solid #d5dfd9;border-radius:8px;padding:10px 12px;color:#263833;background:#f8faf8}.choice-option input{position:absolute;width:1px;min-height:0;height:1px;margin:0;opacity:0}.choice-option span,.choice-option small{min-width:0;overflow-wrap:anywhere}.choice-option span{color:#18211f;font-size:.92rem;font-weight:850;line-height:1.25}.choice-option small{color:#5b6c66;font-size:.76rem;font-weight:720;line-height:1.25}.choice-option.selected{border-color:#126a5a;background:#e8f3ef;box-shadow:inset 0 0 0 1px #126a5a}.choice-option:focus-within{outline:3px solid #8fc6b7;outline-offset:2px}.settings-select-field{min-width:0}.settings-action-bar{display:grid;gap:12px;align-items:center;border:1px solid #dce4df;border-radius:8px;padding:12px;background:#f8faf8}.settings-action-copy{display:grid;gap:3px}.settings-save-button{min-height:52px;padding:0 18px;font-size:1rem}.split-actions,.action-grid,.session-controls{display:grid;gap:10px}.split-actions{grid-template-columns:1fr 1fr}.primary-button{color:#fff;background:#126a5a;font-weight:800}.secondary-button{color:#17211e;background:#e8eee9;font-weight:750}.compact-button{min-height:38px;padding:0 10px;font-size:.82rem}.danger-button{color:#fff;background:#9c2f36;font-weight:800}.tall{min-height:68px}.home-page{align-content:start;gap:18px}.home-action-layout,.home-secondary-actions,.home-status-panel{display:grid;gap:10px}.home-start-button{min-height:92px;padding:0 18px;font-size:1.08rem}.home-secondary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.home-secondary-actions .secondary-button{min-height:58px;padding:0 12px}.home-error{border:1px solid #f0c7cb;border-radius:8px;padding:12px;background:#fff4f5}.metric-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.metric-row span,.empty-state span,.transcript-panel span{color:#5b6c66}.empty-state,.transcript-panel{display:grid;gap:6px}.history-layout{display:grid;gap:16px;align-items:start}.history-list,.history-detail{display:grid;gap:12px}.history-subsection{display:grid;gap:10px}.history-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:7px 12px;align-items:center;min-height:64px;padding:12px;border:1px solid #dce4df;color:#18211f;background:#f8faf8;text-align:left}.history-row.active{border-color:#126a5a;background:#e8f3ef}.history-row-title{color:#18211f;font-weight:850}.history-row span,.history-row small{min-width:0}.history-row small{grid-column:1 / -1;color:#5b6c66;font-size:.8rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.history-row-action{grid-column:1 / -1;justify-self:end;border:1px solid #c8d9d2;border-radius:999px;padding:6px 10px;color:#126a5a;background:#edf5f1;font-size:.76rem;font-weight:850;line-height:1}.history-row.active .history-row-action{border-color:#126a5a;color:#fff;background:#126a5a}.status-pill{justify-self:end;border-radius:999px;padding:4px 8px;color:#4e5d58;background:#e8eee9;font-size:.74rem;font-weight:850}.status-pill.active{color:#fff;background:#126a5a}.export-actions{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,minmax(96px,max-content));gap:8px}.history-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#263833;font-size:.9rem;font-weight:800}.history-section-heading strong,.mobile-history-bar span{min-width:0;overflow-wrap:anywhere;text-align:right}.mobile-history-bar{display:none;align-items:center;justify-content:flex-start;gap:12px;padding-bottom:2px}.mobile-history-bar span{color:#263833;font-size:.86rem;font-weight:850}.history-back-button{min-height:48px;border:1px solid #c8d9d2;padding:0 14px;color:#126a5a;background:#edf5f1;font-size:.9rem;font-weight:850}.snapshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.snapshot-grid div{min-width:0;border:1px solid #e0e6e2;border-radius:8px;padding:10px;background:#f8faf8}.snapshot-grid dt{color:#5b6c66;font-size:.72rem;font-weight:850;text-transform:uppercase}.snapshot-grid dd{min-width:0;margin:4px 0 0;overflow-wrap:anywhere;font-weight:800}.history-usage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.history-usage-empty{border:1px solid #e0e6e2;border-radius:8px;padding:10px;background:#f8faf8}.history-diagnostics-count{color:#5b6c66;font-size:.82rem;font-weight:800}.usage-event-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}.usage-event-row{display:grid;gap:10px;border:1px solid #e0e6e2;border-radius:8px;padding:10px;background:#fff}.usage-event-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.usage-event-details{background:#f8faf8}.snapshot-details{border:1px solid #e0e6e2;border-radius:8px;padding:10px;background:#fff}.snapshot-details summary{cursor:pointer;color:#263833;font-weight:850}.snapshot-details pre{max-height:260px;overflow:auto;margin:10px 0 0;color:#263833;font-size:.78rem;line-height:1.45;white-space:pre-wrap}.turn-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}.turn-row{display:grid;gap:8px;border:1px solid #e0e6e2;border-left:4px solid #6c7b75;border-radius:8px;padding:10px;background:#fff}.turn-row.role-user{border-left-color:#126a5a}.turn-row.role-assistant{border-left-color:#5969a8}.turn-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#263833;font-size:.8rem}.turn-meta strong{text-transform:capitalize}.turn-meta span,.turn-row small{color:#5b6c66;font-weight:750}.turn-row p{margin:0;color:#18211f;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}.frame-groups,.frame-group{display:grid;gap:10px}.frame-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#4e5d58;font-size:.82rem}.frame-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.frame-tile{min-width:0;margin:0;overflow:hidden;border:1px solid #dce4df;border-radius:8px;background:#f8faf8}.frame-tile img,.frame-placeholder{display:grid;width:100%;aspect-ratio:4 / 3;place-items:center;background:#e8eee9;object-fit:cover}.frame-placeholder{gap:4px;color:#4e5d58;font-size:.78rem;text-align:center}.frame-placeholder span,.frame-tile figcaption span{color:#5b6c66}.frame-tile figcaption{display:grid;gap:3px;padding:8px;font-size:.74rem}.frame-tile figcaption strong,.frame-tile figcaption span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-layout{position:relative;display:grid;min-height:100dvh;overflow:hidden;background:#0c1110}.camera-preview{position:relative;min-height:100dvh;overflow:hidden;border-radius:0;background:#101514}.camera-video{position:absolute;inset:0;width:100%;height:100%;background:#101514;object-fit:cover}.assistant-audio{display:none}.camera-fallback{position:absolute;inset:0;display:grid;place-items:center;padding:24px;color:#f7faf8;background:linear-gradient(145deg,#101514eb,#126a5a52),repeating-linear-gradient(90deg,#17211f 0 1px,#25302d 1px 28px);font-weight:850}.camera-overlay{position:absolute;z-index:2;top:max(14px,env(safe-area-inset-top));right:14px;left:14px;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;gap:12px}.timer{border-radius:999px;padding:8px 10px;color:#fff;background:#00000075;font-size:.86rem;font-weight:800}.session-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.live-controls{position:absolute;z-index:4;right:14px;bottom:max(14px,env(safe-area-inset-bottom));left:14px;grid-template-columns:minmax(96px,.75fr) minmax(0,1.25fr)}.live-controls .end-session-action{min-height:58px;font-size:1rem}.live-controls .mic-toggle-action{min-height:58px}.live-session-panel{position:absolute;z-index:3;right:14px;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 70px);left:14px;display:grid;gap:8px;border:1px solid rgb(255 255 255 / .22);border-radius:8px;padding:12px;color:#f7faf8;background:#0a0e0dc2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.live-session-header,.live-session-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.live-session-header{font-size:.82rem;font-weight:850}.live-session-meta{flex-wrap:nowrap;color:#eaf5ef;font-size:.76rem;font-weight:760}.live-session-header span:first-child,.live-session-meta>span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.barge-in-toggle{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;margin-left:auto;min-height:28px;border:1px solid rgb(255 255 255 / .2);border-radius:999px;padding:4px 6px 4px 9px;color:#eaf5ef;background:#ffffff1a;font-size:.72rem;font-weight:850}.barge-in-toggle input{position:absolute;width:1px;min-height:0;height:1px;margin:0;opacity:0}.barge-in-toggle:has(input:focus-visible){outline:3px solid #8fc6b7;outline-offset:2px}.barge-in-toggle:has(input:disabled){opacity:.58}.barge-in-switch{position:relative;width:30px;height:18px;border-radius:999px;background:#fff3}.barge-in-switch:after{position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:999px;background:#fff;content:"";transition:transform .12s ease}.barge-in-toggle.active{border-color:#8fc6b7b8;background:#126a5ab8}.barge-in-toggle.active .barge-in-switch{background:#0f5f51}.barge-in-toggle.active .barge-in-switch:after{transform:translate(12px)}.live-error{margin:0;border-radius:8px;padding:9px 10px;color:#ffeef0;background:#701c23db;font-size:.84rem;font-weight:800;line-height:1.3;overflow-wrap:anywhere}.live-notice{margin:0;border-radius:8px;padding:9px 10px;color:#fff4d8;background:#694712d1;font-size:.82rem;font-weight:780;line-height:1.3;overflow-wrap:anywhere}.live-retry-actions{display:flex;flex-wrap:wrap;gap:8px}.live-panel-stack{position:absolute;z-index:3;right:14px;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 166px);left:14px;display:grid;gap:10px;max-height:min(42dvh,360px);overflow:auto}.voice-test-panel,.conversation-list-panel,.capture-debug{display:grid;gap:10px;border:1px solid rgb(255 255 255 / .2);border-radius:8px;padding:12px;color:#f7faf8;background:#0a0e0dd6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.voice-test-header,.capture-debug-header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.76rem;font-weight:850}.voice-status{border-radius:999px;padding:5px 8px;color:#fff;background:#ffffff29;font-size:.72rem;font-weight:850}.voice-status-listening{background:#126a5a}.voice-status-speaking{background:#7356c0}.voice-status-reconnecting,.voice-status-audio_blocked,.voice-status-sync_delayed{background:#8a5a12}.voice-status-ending{background:#5b6c66}.voice-status-error{background:#9c2f36}.voice-test-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.voice-error,.capture-debug-error{margin:0;color:#ffdfe2;font-size:.82rem;font-weight:750}.voice-event-log{display:grid;gap:6px;max-height:104px;overflow:auto}.voice-event-empty,.voice-event-row{min-width:0;color:#eaf5ef;font-size:.74rem;font-weight:740}.voice-event-row{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px}.voice-event-row span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-list{display:grid;gap:6px}.conversation-row{display:grid;grid-template-columns:minmax(58px,max-content) minmax(52px,max-content) minmax(0,1fr);gap:8px;align-items:center;min-width:0;color:#eaf5ef;font-size:.74rem;font-weight:760}.conversation-row span:last-child{min-width:0;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.capture-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.capture-thumb{display:grid;gap:6px;min-width:0;margin:0}.capture-thumb img{width:100%;aspect-ratio:4 / 3;border:1px solid rgb(255 255 255 / .24);border-radius:6px;background:#101514;object-fit:cover}.capture-thumb figcaption{min-width:0;color:#eaf5ef;font-size:clamp(.58rem,2.3vw,.72rem);font-weight:750;line-height:1.25;overflow-wrap:anywhere}.bottom-nav{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid #e0e6e2;background:#fffffff5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.nav-button{min-width:0;padding:8px 4px;color:#5b6c66;background:transparent;font-size:clamp(.7rem,2.8vw,.86rem);font-weight:750}.nav-button.active{color:#fff;background:#263833}.dev-status{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 10px;color:#263833;background:#edf2ee;font-size:.82rem;font-weight:800;white-space:nowrap}.status-dot{width:9px;height:9px;border-radius:999px;background:#b8841d}.dev-status.online .status-dot{background:#1f8f69}.dev-status.offline .status-dot{background:#bc343d}@media(max-width:520px){.top-bar{display:grid;align-items:start;padding-top:14px}.top-actions{justify-content:start;width:100%}.user-chip{max-width:100%;flex-basis:100%}.export-actions,.compact-grid,.frame-grid{grid-template-columns:1fr}.settings-intent-bar{display:grid}.settings-response-grid,.settings-reasoning-grid,.history-usage-grid,.usage-event-grid{grid-template-columns:1fr}.settings-prompt-label textarea{min-height:196px}.settings-trigger-label textarea{min-height:190px}.turn-meta{align-items:flex-start;flex-direction:column;gap:4px}}@media(max-width:679px){.mobile-history-bar{display:flex}.history-back-button{width:100%}.history-detail{scroll-margin-top:12px}.history-detail .compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-page.mobile-pane-session .page-heading,.history-page.mobile-pane-conversation .page-heading,.history-layout.mobile-pane-sessions .session-detail-panel,.history-layout.mobile-pane-sessions .conversation-detail-panel,.history-layout.mobile-pane-session .history-list-panel,.history-layout.mobile-pane-session .conversation-detail-panel,.history-layout.mobile-pane-conversation .history-list-panel,.history-layout.mobile-pane-conversation .session-detail-panel{display:none}}@media(min-width:680px){.app-shell{border-right:1px solid #e0e6e2;border-left:1px solid #e0e6e2}.app-shell.live-shell{border-right:0;border-left:0}.screen{padding:24px 24px 104px}.action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-action-layout{grid-template-columns:minmax(0,2fr) minmax(190px,1fr);align-items:stretch}.home-start-button{min-height:126px}.home-secondary-actions{grid-template-columns:1fr}.home-secondary-actions .secondary-button{min-height:58px}.settings-form{grid-template-columns:minmax(0,1.06fr) minmax(300px,.94fr);align-items:start}.settings-prompt-panel{grid-column:1;grid-row:1;align-self:start}.settings-controls-panel{grid-column:2;grid-row:1;max-height:calc(100dvh - 300px);overflow:auto}.settings-trigger-panel{grid-column:1 / -1;grid-row:2}.settings-action-bar{grid-column:1 / -1;grid-row:3;grid-template-columns:minmax(0,1fr) minmax(220px,300px)}.settings-save-button{width:100%}.history-layout{grid-template-columns:minmax(220px,.72fr) minmax(0,1fr)}.history-list-panel{position:sticky;top:24px;max-height:calc(100dvh - 196px);overflow:auto}.conversation-detail-panel{grid-column:2}.camera-overlay{top:max(24px,env(safe-area-inset-top));right:24px;left:24px}.live-controls{right:24px;bottom:max(24px,env(safe-area-inset-bottom));left:auto;width:240px}.live-session-panel{right:auto;bottom:max(24px,env(safe-area-inset-bottom));left:24px;width:min(360px,calc(100% - 320px))}.live-panel-stack{right:auto;bottom:calc(max(24px,env(safe-area-inset-bottom)) + 96px);left:24px;width:min(420px,calc(100% - 48px));max-height:min(44dvh,420px)}}@media(min-width:980px){.app-shell.settings-shell{width:min(100%,980px)}.settings-tone-grid,.settings-follow-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app-shell.history-shell{width:min(100%,1180px)}.history-layout:has(.conversation-detail-panel){grid-template-columns:minmax(240px,.72fr) minmax(330px,.9fr) minmax(0,1.15fr)}.history-layout:has(.conversation-detail-panel) .conversation-detail-panel{grid-column:auto}}
