:root{--bg: #f4f6fb;--card: #ffffff;--border: #e2e7f0;--text: #17203a;--muted: #61708b;--accent: #1f6feb;--accent-dark: #1a5fd0;--user-bubble: #1f6feb;--user-text: #ffffff;--error: #b3261e;--refused: #f6f8fc;--radius: 16px;--shadow: 0 6px 24px rgba(23, 32, 58, .07)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.page{height:100%;height:100dvh;display:flex;flex-direction:column;max-width:760px;margin:0 auto;padding:0 12px}.header{padding:16px 4px 12px}.header__title{margin:0;font-size:1.25rem;line-height:1.25;letter-spacing:-.01em}.header__subtitle{margin:6px 0 0;color:var(--muted);font-size:.875rem}.chat{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.chat__scroll{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 14px 8px}.chat__list{display:flex;flex-direction:column;gap:12px;margin-top:auto}.row{display:flex}.row--user{justify-content:flex-end}.row--bot{justify-content:flex-start}.bubble{max-width:88%;padding:10px 14px;border-radius:18px;font-size:.95rem;word-wrap:break-word;overflow-wrap:anywhere}.bubble--bot{background:#fff;border:1px solid var(--border);border-bottom-left-radius:6px}.bubble--user{background:var(--user-bubble);color:var(--user-text);border-bottom-right-radius:6px}.bubble--refused{background:var(--refused);border-color:var(--border)}.bubble--error{background:#fdf3f2;border-color:#f3d4d1;color:var(--error)}.bubble__text{margin:0;white-space:pre-wrap}.sources{margin-top:10px;border-top:1px dashed var(--border);padding-top:8px;font-size:.8125rem;color:var(--muted)}.sources summary{cursor:pointer;color:var(--accent);font-weight:600;list-style:none;display:inline-flex;align-items:center;gap:6px}.sources summary::-webkit-details-marker{display:none}.sources summary:before{content:"▸";transition:transform .15s ease}.sources[open] summary:before{transform:rotate(90deg)}.sources__count{background:#eaf1ff;color:var(--accent-dark);border-radius:999px;padding:0 7px;font-size:.75rem}.sources__list{margin:8px 0 0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:6px}.sources__item{display:flex;flex-direction:column;gap:2px;padding-left:8px;border-left:2px solid #e6ecf7}.sources__file{font-weight:600;color:var(--text)}.sources__snippet{color:var(--muted);font-size:.78rem}.bubble--typing{display:flex;align-items:center;gap:5px;color:var(--muted)}.dot{width:7px;height:7px;border-radius:50%;background:#b9c4d6;animation:pulse 1.2s infinite ease-in-out}.dot:nth-child(2){animation-delay:.15s}.dot:nth-child(3){animation-delay:.3s}.bubble__typing-label{margin-left:6px;font-size:.8125rem}@keyframes pulse{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}.chat__composer{border-top:1px solid var(--border);padding:10px 12px 6px;background:#fbfcfe}.composer{display:flex;gap:8px;align-items:flex-end}.composer__input{flex:1;resize:none;min-height:44px;max-height:140px;padding:11px 14px;border:1px solid var(--border);border-radius:14px;font:inherit;font-size:1rem;color:var(--text);background:#fff}.composer__input:focus{outline:2px solid rgba(31,111,235,.35);outline-offset:1px;border-color:var(--accent)}.composer__send{border:0;border-radius:14px;padding:12px 16px;min-height:44px;font:inherit;font-weight:600;font-size:.95rem;color:#fff;background:var(--accent);cursor:pointer;transition:background .15s ease}.composer__send:hover:not(:disabled){background:var(--accent-dark)}.composer__send:disabled{background:#c4cddd;cursor:not-allowed}.disclaimer{padding:8px 14px calc(12px + env(safe-area-inset-bottom));font-size:.75rem;color:var(--muted);text-align:center;background:#fbfcfe}@media (max-width: 480px){.page{padding:0 8px}.header{padding:12px 2px 10px}.header__title{font-size:1.1rem}.chat{border-radius:14px}.bubble{max-width:94%;font-size:.9375rem}.composer__send{padding:12px}}@media (min-width: 761px){.page{padding:24px 16px}.header{padding:0 4px 14px}.header__title{font-size:1.5rem}}@media (prefers-reduced-motion: reduce){.dot,.voice-btn--rec,.voice-btn__spinner{animation:none}}.composer__input{min-width:0}.voice-btn{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:44px;padding:0 11px;border:1px solid var(--border);border-radius:14px;background:#fff;color:var(--accent);font:inherit;font-size:.8125rem;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.voice-btn:hover:not(:disabled){border-color:var(--accent);background:#f5f8ff}.voice-btn:focus-visible{outline:2px solid rgba(31,111,235,.35);outline-offset:1px}.voice-btn:disabled{color:#8fa0bd;background:#f7f9fd;cursor:not-allowed}.voice-btn--rec{color:var(--error);border-color:#f0c7c3;background:#fdeeed;animation:voice-rec-pulse 1.4s infinite ease-in-out}.voice-btn--busy{color:var(--muted);background:#fff}.voice-btn__timer{white-space:nowrap}.voice-btn__spinner{width:14px;height:14px;border-radius:50%;border:2px solid #cbd6e6;border-top-color:var(--accent);animation:voice-spin .8s linear infinite}@keyframes voice-rec-pulse{0%,to{box-shadow:0 0 #b3261e38}50%{box-shadow:0 0 0 6px #b3261e00}}@keyframes voice-spin{to{transform:rotate(360deg)}}.voice-notice{margin:0 2px 6px;font-size:.8125rem;line-height:1.4;color:var(--muted)}.voice-notice--error{color:var(--error)}.bubble--user .bubble__voice-badge{display:block;margin-top:3px;font-size:.6875rem;opacity:.78}.msg__audio{display:block;width:100%;max-width:320px;height:36px;margin-top:8px}@media (max-width: 480px){.voice-btn{padding:0 9px}.msg__audio{max-width:100%}}.vpage{height:100%;height:100dvh;max-width:560px;margin:0 auto;padding:24px 16px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center}.vpage__title{margin:0;font-size:1.25rem;letter-spacing:-.01em}.vpage__hint{margin:0;max-width:40ch;color:var(--muted);font-size:.875rem;line-height:1.45;min-height:2.6em}.vpage__unsupported{margin:0;color:var(--error);font-size:.9375rem}.vbtn{width:clamp(180px,52vmin,240px);height:clamp(180px,52vmin,240px);padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:none;border-radius:50%;background:var(--accent);color:#fff;font:inherit;font-size:1.375rem;font-weight:600;cursor:pointer;box-shadow:var(--shadow);transition:background .2s ease,transform .12s ease}.vbtn:active{transform:scale(.97)}.vbtn:focus-visible{outline:3px solid rgba(31,111,235,.45);outline-offset:4px}.vbtn:disabled{background:#9db1d2;cursor:not-allowed}.vbtn__label{line-height:1.15}.vbtn__icon{flex:0 0 auto}.vbtn__label,.vbtn__icon{pointer-events:none}.vbtn--rec{background:var(--error);animation:voice-rec-pulse 1.4s infinite ease-in-out}.vbtn--busy{background:#64748b}.vbtn--speak{background:#157f4a}@media (prefers-reduced-motion: reduce){.vbtn--rec{animation:none}}.composer-tools{display:flex;justify-content:flex-end;padding:0 2px 8px}.provider-picker{display:inline-flex;padding:3px;gap:2px;border:1px solid var(--border);border-radius:999px;background:#fff}.provider-picker__option{border:0;border-radius:999px;padding:6px 14px;min-height:32px;font:inherit;font-size:.8125rem;font-weight:600;color:var(--muted);background:transparent;cursor:pointer;transition:background .15s ease,color .15s ease}.provider-picker__option:hover:not(:disabled):not(.provider-picker__option--active){color:var(--text);background:var(--refused)}.provider-picker__option--active{color:#fff;background:var(--accent)}.provider-picker__option:disabled{cursor:not-allowed;opacity:.65}.provider-picker__option:focus-visible{outline:3px solid rgba(31,111,235,.4);outline-offset:2px}.provider-picker--compact .provider-picker__option{padding:5px 12px;min-height:28px;font-size:.75rem}.vpage__provider{display:flex;justify-content:center;padding:2px;border-radius:999px}.vpage__provider--attention{outline:2px solid rgba(179,38,30,.55);outline-offset:4px}.provider-toast{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 8px;padding:9px 12px;border:1px solid rgba(179,38,30,.35);border-left:4px solid var(--error);border-radius:12px;background:#fdf3f2;color:var(--error);font-size:.8125rem;line-height:1.4}.provider-toast__text{flex:1}.provider-toast__switch{flex:0 0 auto;border:0;border-radius:999px;padding:6px 12px;min-height:30px;font:inherit;font-size:.8125rem;font-weight:600;color:#fff;background:var(--error);cursor:pointer}.provider-toast__switch:hover{background:#96201a}.provider-toast__switch:focus-visible{outline:3px solid rgba(179,38,30,.4);outline-offset:2px}@media (max-width: 480px){.composer-tools{padding:0 0 6px}.provider-picker__option{padding:5px 11px}.provider-toast{flex-wrap:wrap}}.stats{min-height:100%;max-width:1080px;margin:0 auto;padding:16px 12px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}.stats__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.stats__title{margin:0;font-size:1.25rem;letter-spacing:-.01em}.section-title{margin:0 0 8px;font-size:.9375rem;font-weight:650}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 14px;min-width:0}.card--wide{grid-column:1 / -1}.card__label{margin:0;font-size:.6875rem;font-weight:650;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}.card__value{margin:4px 0 0;font-size:1.375rem;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.card__value--warn{color:#8a5a00}.card__value--bad{color:var(--error)}.card__sub{margin:2px 0 0;font-size:.75rem;color:var(--muted);font-variant-numeric:tabular-nums}.latency{width:100%;margin-top:6px;border-collapse:collapse;font-size:.8125rem;font-variant-numeric:tabular-nums}.latency th,.latency td{padding:4px 8px 4px 0;text-align:right}.latency thead th{color:var(--muted);font-size:.6875rem;font-weight:650;text-transform:uppercase;letter-spacing:.03em}.latency tbody th{text-align:left;font-weight:500}.latency__total th,.latency__total td{font-weight:650;border-top:1px dashed var(--border)}.providers__list{display:grid;gap:10px}.provider{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:10px 14px 12px}.provider__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}.provider__name{font-weight:650;font-size:.9375rem}.provider__total{font-size:.8125rem;color:var(--muted);font-variant-numeric:tabular-nums}.provider__bar{height:8px;margin-top:8px;border-radius:999px;background:#eaeff8;overflow:hidden}.provider__fill{height:100%;border-radius:999px;background:var(--accent);transition:width .2s ease}.provider__fill--openai{background:#64748b}.provider__split{margin:6px 0 0;font-size:.75rem;color:var(--muted);font-variant-numeric:tabular-nums}.filters{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 14px}.filters__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:10px}.field{display:flex;flex-direction:column;gap:3px;min-width:0}.field--wide{grid-column:1 / -1}.field__label{font-size:.6875rem;font-weight:650;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}.field__input{min-height:36px;padding:7px 10px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:.875rem;width:100%}.field__input:focus{outline:2px solid rgba(31,111,235,.35);outline-offset:1px;border-color:var(--accent)}.filters__actions{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}.filters__current{min-width:0;font-size:.6875rem;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats-btn{flex:0 0 auto;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--accent);font:inherit;font-size:.8125rem;font-weight:600;padding:8px 14px;min-height:34px;cursor:pointer;transition:background .15s ease,color .15s ease}.stats-btn:hover:not(:disabled){border-color:var(--accent);background:#f5f8ff}.stats-btn--primary{color:#fff;background:var(--accent);border-color:var(--accent)}.stats-btn--primary:hover:not(:disabled){background:var(--accent-dark)}.stats-btn:disabled{color:#8fa0bd;background:#f7f9fd;cursor:not-allowed}.stats-btn:focus-visible{outline:2px solid rgba(31,111,235,.35);outline-offset:1px}.turns__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.turns__table{width:100%;min-width:1020px;border-collapse:collapse;font-size:.8125rem}.turns__table th{padding:9px 10px;text-align:left;white-space:nowrap;font-size:.6875rem;font-weight:650;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);background:#fbfcfe;border-bottom:1px solid var(--border)}.turns__table td{padding:10px;vertical-align:top;border-bottom:1px solid #eef2f9}.turns__table tbody tr:last-child td{border-bottom:0}.turn--refused{background:var(--refused)}.turn__cell{min-width:0}.turn__time{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}.turn__text{width:23%;min-width:170px}.turn__answer{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.turn__toggle{display:inline-block;margin-top:4px;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer}.turn__toggle:focus-visible{outline:2px solid rgba(31,111,235,.35);outline-offset:2px}.turn__error{display:block;margin-top:4px;color:var(--error);font-size:.75rem}.turn__num{white-space:nowrap}.turn__strong{display:block;font-weight:650;font-variant-numeric:tabular-nums}.turn__mini{display:block;margin-top:2px;color:var(--muted);font-size:.6875rem;font-variant-numeric:tabular-nums;white-space:normal}.badge{display:inline-block;padding:1px 8px;border-radius:999px;font-size:.6875rem;font-weight:650;white-space:nowrap}.badge--refused{color:var(--error);background:#fdf3f2;border:1px solid #f3d4d1}.badge--ok{color:var(--muted);background:#f4f6fb;border:1px solid var(--border)}.badge--est{margin-top:4px;color:#8a5a00;background:#fff7e6;border:1px solid #f2e0b8}.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.pager__info{font-size:.75rem;color:var(--muted);font-variant-numeric:tabular-nums}.pager__buttons{display:flex;gap:8px}.state{display:flex;flex-direction:column;align-items:center;gap:8px;padding:28px 16px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);color:var(--muted);font-size:.875rem;text-align:center}.state__text{margin:0}.state--error{color:var(--error)}.state__dots{display:inline-flex;gap:5px}.token-box{background:#fdf3f2;border:1px solid rgba(179,38,30,.35);border-left:4px solid var(--error);border-radius:12px;padding:12px 14px}.token-box__text{margin:0;font-size:.8125rem;line-height:1.45;color:var(--error)}.token-box__text code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem}.token-box__row{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.token-box__input{flex:1 1 220px;min-height:36px;padding:7px 10px;border:1px solid rgba(179,38,30,.35);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:.875rem}.token-box__input:focus{outline:2px solid rgba(179,38,30,.3);outline-offset:1px}@media (max-width: 480px){.stats{padding:12px 8px calc(20px + env(safe-area-inset-bottom));gap:12px}.cards{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.card__value{font-size:1.1875rem}}@media (prefers-reduced-motion: reduce){.provider__fill{transition:none}}.shell{height:100%;height:100dvh;display:flex;flex-direction:column}.shell .page,.shell .vpage{height:auto;flex:1 1 auto;min-height:0}.shell .stats{min-height:0;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.topnav{flex:0 0 auto;padding:10px 12px 0}.topnav__list{display:flex;gap:2px;width:fit-content;margin:0 auto;padding:3px;list-style:none;background:var(--card);border:1px solid var(--border);border-radius:999px;box-shadow:0 2px 10px #17203a0d}.topnav__link{display:inline-block;padding:6px 14px;border-radius:999px;color:var(--muted);font-size:.8125rem;font-weight:600;text-decoration:none;transition:background .15s ease,color .15s ease}.topnav__link:hover:not(.topnav__link--active){color:var(--text);background:var(--refused)}.topnav__link--active{color:#fff;background:var(--accent)}.topnav__link:focus-visible{outline:2px solid rgba(31,111,235,.35);outline-offset:2px}@media (max-width: 480px){.topnav{padding:8px 8px 0}.topnav__link{padding:5px 11px;font-size:.75rem}}.vpage__actions{display:flex;flex-direction:column;align-items:center;gap:14px}.vstop{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 18px;border:1px solid rgba(179,38,30,.35);border-radius:999px;background:#fff;color:var(--error);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease}.vstop:hover{background:#fdf3f2;border-color:var(--error)}.vstop:focus-visible{outline:3px solid rgba(179,38,30,.35);outline-offset:2px}.vstop__icon{width:9px;height:9px;border-radius:2px;background:currentColor}.tl{display:block}.tl__wrap{position:relative;display:block;padding-top:5px}.tl__track{position:relative;display:flex;height:9px;border-radius:999px;overflow:hidden;background:#eaeff8;box-shadow:inset 0 0 0 1px #17203a0f}.tl__seg{display:block;height:100%;min-width:0}.tl__seg--stt{background:#157f4a}.tl__seg--chat{background:var(--accent)}.tl__seg--tts{background:#64748b}.tl__seg--empty{flex:1 1 auto;background:#e3e9f4}.tl__wait{position:absolute;top:0;left:0;height:3px;border-radius:999px;background:#d9a441}.tl--detailed .tl__track{height:14px}.tl__legend{display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 0 0}.tl__item{display:flex;align-items:baseline;gap:6px}.tl__term{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:.75rem}.tl__value{margin:0;color:var(--text);font-size:.8125rem;font-weight:650;font-variant-numeric:tabular-nums}.tl__item--wait .tl__term{color:#8a5a00}.tl__chip{display:inline-block;width:8px;height:8px;border-radius:2px}.tl__chip--stt{background:#157f4a}.tl__chip--chat{background:var(--accent)}.tl__chip--tts{background:#64748b}.tl__chip--wait{background:#d9a441}.turn__metrics{min-width:190px}.turn__metrics .tl{margin-bottom:6px}
