*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root{color-scheme:light dark;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--bg: #282c34;--panel: rgba(33, 37, 43, .95);--border: rgba(92, 99, 112, .3);--assistant: #2c313c;--user: rgba(97, 175, 239, .15);--system: rgba(229, 192, 123, .15);--text: #abb2bf;--text-muted: #5c6370;--accent: #61afef;--accent-strong: #c678dd;--primary: #61afef;--sidebar-bg: #21252b;--divider: rgba(92, 99, 112, .2)}[data-theme=light]{--bg: #fafafa;--panel: rgba(255, 255, 255, .95);--border: rgba(160, 161, 167, .25);--assistant: rgba(250, 250, 250, .95);--user: rgba(64, 120, 242, .08);--system: rgba(202, 152, 73, .12);--text: #383a42;--text-muted: #a0a1a7;--accent: #4078f2;--accent-strong: #a626a4;--primary: #4078f2;--sidebar-bg: #ffffff;--divider: rgba(160, 161, 167, .2);--input-bg: rgba(255, 255, 255, .9);--input-border: rgba(160, 161, 167, .3);--button-bg: rgba(250, 250, 250, .8);--button-hover: rgba(245, 245, 245, .95)}[data-theme=light] body{background:linear-gradient(135deg,#fafafa,#f0f0f1)}[data-theme=light] .composer{background:#fffffff2;border-top:1px solid rgba(160,161,167,.25)}[data-theme=light] .quick-model-button{background:#ffffff80;color:#9ca3af;border-color:#a0a1a726}[data-theme=light] .quick-model-button:hover:not(:disabled){background:#3b82f60f;color:#3b82f6;border-color:#3b82f626}[data-theme=light] .composer-textarea{background:#fffffff2;border:1px solid rgba(160,161,167,.3);color:#383a42}[data-theme=light] .composer-textarea:focus{border-color:#4078f299;box-shadow:0 0 0 3px #4078f21a}[data-theme=light] .composer-mic{background:#fffffff2;border:1px solid rgba(160,161,167,.3);box-shadow:0 2px 8px #00000014}[data-theme=light] .composer-mic:hover:not(:disabled){background:#fafafa;border-color:#4078f280}[data-theme=light] select,[data-theme=light] textarea,[data-theme=light] input[type=text]{background:#fffc;border:1px solid rgba(160,161,167,.25);color:#383a42}[data-theme=light] select:focus,[data-theme=light] textarea:focus,[data-theme=light] input[type=text]:focus{background:#fffffff2;border-color:#4078f280}[data-theme=light] .welcome-placeholder h2{color:#383a42}[data-theme=light] .welcome-placeholder p,[data-theme=light] .welcome-placeholder li{color:#a0a1a7}[data-theme=light] .welcome-placeholder li:before{color:#4078f2}[data-theme=light] .endpoint-card{background:#fafafa99;border:1px solid rgba(160,161,167,.2)}[data-theme=light] .field-label{color:#a0a1a7}[data-theme=light] label.sidebar-field{color:#383a42}[data-theme=light] .action-button{background:#ffffffe6;border:1px solid rgba(160,161,167,.25);color:#a0a1a7}[data-theme=light] .action-button:hover{background:#fafafa;border-color:#a0a1a766;color:#383a42}[data-theme=light] .code-block-copy{background:#ffffffe6;border:1px solid rgba(160,161,167,.25);color:#a0a1a7}[data-theme=light] .code-block-copy:hover{background:#fafafa;border-color:#a0a1a766;color:#383a42}[data-theme=light] .code-block-header{background:#fafafa99;border-color:#a0a1a733}[data-theme=light] .thinking-indicator{color:#3b82f6b3;background:#fffc;border-color:#3b82f633}[data-theme=light] .thinking-label{background:linear-gradient(90deg,#3b82f680,#3b82f6e6,#3b82f680);background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:shimmer 2s infinite linear}[data-theme=light] .chat-toggle{background:#fffffff2;border:1px solid rgba(160,161,167,.3);box-shadow:0 2px 8px #00000014}[data-theme=light] .chat-toggle:hover{background:#4078f214;border-color:#4078f280}[data-theme=light] .usage-details{background:#ffffff80;border-top:1px solid rgba(160,161,167,.25)}[data-theme=light] .turn-metrics{color:#a0a1a7}[data-theme=light] .turn-metrics span{background:#a0a1a71a;border:1px solid rgba(160,161,167,.2);color:#383a42}[data-theme=light] .status{background:#ffffff80;color:#a0a1a7;border-top:1px solid rgba(160,161,167,.25)}[data-theme=light] .status.error{color:#e45649}[data-theme=light] .session-row.active{background:#4078f21a}[data-theme=light] .session-row:hover{background:#4078f20d}[data-theme=light] .session-delete{color:#a0a1a7}[data-theme=light] .session-delete:hover{background:#ef44441a;color:#e45649}body{margin:0;height:100vh;height:100dvh;overflow:hidden;background:#282c34;color:var(--text);display:flex;justify-content:center;position:fixed;width:100%;top:0;left:0}#root{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.app-shell{width:100%;height:100%;display:flex;gap:0;overflow:hidden}.sidebar{width:320px;flex-shrink:0;height:100%;display:flex;flex-direction:column;background:var(--sidebar-bg);border-right:1px solid var(--divider);padding:20px 16px;overflow-y:auto;overflow-x:hidden;transition:transform .22s ease,box-shadow .22s ease;z-index:3;position:relative}.sidebar-tabs{display:flex;gap:0;border-bottom:1px solid rgba(148,163,184,.3);margin-bottom:16px}.sidebar-tab{flex:1;border:none;border-bottom:2px solid transparent;background:transparent;color:var(--text-muted);padding:12px 6px;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;cursor:pointer;transition:color .2s ease,border-color .2s ease}.sidebar-tab.active{color:var(--text);border-bottom-color:#6366f1cc}.sidebar-tab:not(.active):hover{color:#fffc}.sidebar-content{flex:1;display:flex;flex-direction:column;gap:16px;overflow-y:auto;padding-right:4px}.sidebar.closed{transform:translate(-110%);position:fixed;left:0;top:0;bottom:0;box-shadow:12px 0 24px #0006}.sidebar.open{transform:translate(0)}.sidebar-backdrop{position:fixed;inset:0;background:#00000073;z-index:2;opacity:0;pointer-events:none;transition:opacity .2s ease}.sidebar-backdrop.visible{opacity:1;pointer-events:auto}.sidebar-panel{background:transparent;border:none;border-radius:0;padding:0;margin-bottom:32px}.sidebar-panel.sessions-panel{flex:1;display:flex;flex-direction:column;margin-bottom:0;overflow:hidden}.brand h1{margin:0 0 8px;font-size:1.3rem;display:flex;align-items:center;gap:10px;font-weight:600}.sidebar-close{margin-left:auto;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172acc;color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:1rem;transition:border-color .2s ease,background .2s ease,transform .2s ease}.sidebar-close:hover{border-color:#6366f199;transform:translateY(-1px)}.brand h1 svg{color:var(--accent-strong);font-size:1.6rem}.brand p{margin:0;color:var(--text-muted);font-size:.88rem;line-height:1.5}.brand{padding-bottom:24px;border-bottom:1px solid var(--divider);margin-bottom:24px}.sidebar-toggle{margin-top:12px;border-radius:6px;border:1px solid rgba(92,99,112,.2);background:transparent;color:var(--text);padding:8px 12px;cursor:pointer;font-size:.85rem;display:inline-flex;align-items:center;gap:6px;transition:border-color .2s ease,background .2s ease}.sidebar-toggle:hover{border-color:#61afef80;background:#61afef14}.sidebar-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--divider)}.sidebar-section:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}.sidebar-section h2{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;margin:0 0 16px;color:var(--text-muted);font-weight:600;display:flex;align-items:center;gap:8px}label.sidebar-field{font-size:.85rem;color:var(--text);display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.field-label{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:var(--text)}select,textarea,input[type=text]{border-radius:8px;border:1px solid rgba(92,99,112,.15);background:#050b1980;color:var(--text);padding:10px 12px;font-family:inherit;font-size:.9rem;transition:border-color .2s ease,background .2s ease;width:100%;box-sizing:border-box}select{cursor:pointer;appearance:auto;-webkit-appearance:menulist;-moz-appearance:menulist}select:focus,textarea:focus,input[type=text]:focus{outline:none;border-color:#61afef66;background:#050b19cc}select:disabled,textarea:disabled,input:disabled{opacity:.6}textarea{min-height:240px;resize:vertical}.field-note{font-size:.75rem;color:var(--text-muted)}.price-note{font-size:.8rem;color:var(--text)}.endpoint-card{border:1px solid rgba(92,99,112,.1);border-radius:8px;padding:12px;background:#050b1966}.endpoint-label{font-size:.7rem;text-transform:uppercase;color:var(--text-muted);letter-spacing:.1em;font-weight:600;display:flex;align-items:center;gap:6px}.endpoint-value{font-family:JetBrains Mono,Fira Code,monospace;font-size:.8rem;margin:8px 0 12px;word-break:break-all;color:var(--text)}.endpoint-actions{display:flex;gap:8px}.endpoint-actions button,.sessions-header button{border-radius:6px;border:1px solid rgba(92,99,112,.2);background:transparent;color:var(--text);padding:8px 12px;cursor:pointer;font-size:.85rem;transition:border-color .2s ease,background .2s ease}.endpoint-actions button:hover,.sessions-header button:hover{border-color:#61afef80;background:#61afef14}.sessions-header{max-height:2rem;flex:1;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.sessions-header span{text-transform:uppercase;font-size:.75rem;color:var(--text-muted);letter-spacing:.1em;font-weight:600;display:inline-flex}.sessions-list{flex:1;display:flex;flex-direction:column;gap:0;overflow-y:auto;border-top:1px solid var(--divider)}.session-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--divider);background:transparent;padding:12px 8px;cursor:pointer;transition:background .15s ease;min-width:0}.session-row.active{background:#61afef1f}.session-row:hover{background:#61afef0f}.session-row-main{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.session-delete{border-radius:50%;border:1px solid transparent;background:#ef44441f;color:#fca5a5;padding:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s ease,color .2s ease}.session-delete:hover{background:#ef444433;color:#fee2e2}.session-title{font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;min-width:0}.session-time{font-size:.75rem;color:var(--text-muted)}.chat-toggle{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid rgba(97,175,239,.4);background:#0f172ad9;color:var(--text);padding:10px;cursor:pointer;font-size:1.15rem;box-shadow:0 2px 6px #00000026}.chat-toggle:hover{border-color:#61afef99}.chat-column{flex:1;height:100%;display:flex;flex-direction:column;gap:0;overflow:hidden;box-sizing:border-box}.chat-toolbar{display:flex;align-items:center;gap:12px;padding:12px 24px;min-height:66px;border-bottom:1px solid rgba(255,255,255,.05);background:#050b19b3}.chat-toolbar-spacer{flex:1}.chat-toolbar-actions{display:flex;align-items:center;gap:10px}.chat-surface{flex:1;height:100%;background:var(--panel);border-radius:0;border:none;display:flex;flex-direction:column;overflow:hidden;min-height:0}.icon-circle{width:42px;height:42px;border-radius:999px;border:1px solid rgba(92,99,112,.3);background:#21252bb3;color:var(--text);display:inline-flex;align-items:center;justify-content:center;font-size:1.1rem;cursor:pointer;transition:background .2s ease,transform .2s ease,border-color .2s ease}.icon-circle:hover{transform:translateY(-1px);border-color:#61afef99}.icon-circle.primary{background:linear-gradient(135deg,var(--accent),var(--accent-strong));border-color:transparent;color:#fff;box-shadow:0 8px 24px #4f46e559}.chat-container{flex:1;padding:20px 24px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:16px;min-height:0}.welcome-placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px;color:var(--text-muted);max-width:600px;margin:0 auto}.welcome-placeholder h2{font-size:2rem;margin-bottom:1rem;color:var(--text)}.welcome-placeholder p{font-size:1.125rem;margin-bottom:1.5rem;color:var(--text-muted)}.welcome-placeholder ul{list-style:none;padding:0;margin:0;text-align:left;display:inline-block}.welcome-placeholder li{font-size:1rem;color:var(--text-muted);position:relative;padding:.75rem 0 .75rem 1.5rem}.welcome-placeholder li:before{content:"→";position:absolute;left:0;color:var(--primary);font-weight:700}.thinking-indicator{font-size:.8rem;color:#61afef99;background:#21252b99;border:1px solid rgba(97,175,239,.3);padding:8px 14px;border-radius:6px;align-self:flex-start;margin-bottom:8px}.thinking-label{display:inline-block;background:linear-gradient(90deg,#61afef66,#61afefcc,#61afef66);background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:shimmer 2s infinite linear}.thinking-placeholder-row{animation:fadeIn .2s ease-in}.thinking-placeholder{font-size:.85rem;color:#5c637066}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.message-row{display:flex;padding:16px 20px;border-radius:16px;border:1px solid transparent;margin-bottom:8px;position:relative}.message-row.assistant{background:var(--assistant);border-color:#61afef26}.message-row.user{background:var(--user);border-color:#2563eb26}.message-row.system{background:var(--system);border-color:#ecc45e80}.bubble{flex:1;white-space:pre-wrap;line-height:1.55;color:var(--text);position:relative;width:100%}.assistant .bubble{padding-top:8px}.message-actions{position:absolute;top:8px;right:8px;display:flex;gap:6px;opacity:0;transition:opacity .2s ease;z-index:1}.message-row:hover .message-actions,.message-actions:hover{opacity:1}.action-button{width:32px;height:32px;border-radius:8px;border:1px solid rgba(92,99,112,.3);background:#21252bd9;color:var(--text-muted);font-size:.95rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.action-button:hover{background:#2c323bf2;border-color:#5c637080;color:var(--text);transform:translateY(-1px)}.action-button:active{transform:translateY(0)}.action-button.speaking{background:#22c55e33;border-color:#22c55e80;color:#22c55e;animation:pulse-speaking 1.5s ease-in-out infinite}@keyframes pulse-speaking{0%,to{box-shadow:0 0 #22c55e66}50%{box-shadow:0 0 0 6px #22c55e00}}.bubble h1,.bubble h2,.bubble h3,.bubble h4,.bubble h5,.bubble h6{margin:.4em 0 .25em;font-weight:600;line-height:1.3;color:var(--text)}.bubble h1:first-child,.bubble h2:first-child,.bubble h3:first-child,.bubble h4:first-child,.bubble h5:first-child,.bubble h6:first-child{margin-top:0}.bubble h1{font-size:1.8em}.bubble h2{font-size:1.5em}.bubble h3{font-size:1.3em}.bubble h4{font-size:1.1em}.bubble h5{font-size:1em}.bubble h6{font-size:.9em;color:var(--text-muted)}.bubble p{margin:.35em 0}.bubble p:first-child{margin-top:0}.bubble p:last-child{margin-bottom:0}.bubble ul,.bubble ol{margin:.35em 0;padding-left:1.5em}.bubble li{margin:.15em 0}.bubble li>p{margin:.15em 0}.bubble code{background:#61afef26;border:1px solid rgba(97,175,239,.3);border-radius:4px;padding:.15em .4em;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:.9em;color:#c084fc}.bubble pre{background:#21252bf2;border:1px solid rgba(97,175,239,.3);border-radius:10px;padding:1em;margin:.4em 0;overflow-x:auto}.bubble pre code{background:none;border:none;padding:0;color:var(--text);font-size:.85em;line-height:1.6}.code-block-wrapper{position:relative;margin:.4em 0}.code-block-header{display:flex;align-items:center;justify-content:space-between;background:#21252bf2;border:1px solid rgba(97,175,239,.3);border-bottom:none;border-radius:10px 10px 0 0;padding:.5em .75em;min-height:2rem}.code-block-language{font-size:.75rem;color:var(--text-muted);text-transform:uppercase;font-weight:600;letter-spacing:.05em}.code-block-copy{width:28px;height:28px;border-radius:6px;border:1px solid rgba(92,99,112,.3);background:#21252bd9;color:var(--text-muted);font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;margin-left:auto}.code-block-copy:hover{background:#2c323bf2;border-color:#5c637080;color:var(--text);transform:translateY(-1px)}.code-block-copy:active{transform:translateY(0)}.code-block-wrapper pre{margin:0;border-radius:0 0 10px 10px;border-top:none}.bubble blockquote{border-left:3px solid rgba(97,175,239,.5);margin:.4em 0;padding:.3em 0 .3em 1em;color:var(--text-muted);background:#61afef0d;border-radius:4px}.bubble blockquote p{margin:.3em 0}.bubble hr{border:none;border-top:1px solid var(--border);margin:.8em 0}.bubble a{color:var(--accent);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s ease}.bubble a:hover{border-bottom-color:var(--accent)}.bubble table{border-collapse:collapse;width:100%;margin:.75em 0;font-size:.9em;display:block;overflow-x:auto;max-width:100%}.bubble table th,.bubble table td{border:1px solid var(--border);padding:.5em .75em;text-align:left}.bubble table th{background:#61afef26;font-weight:600}.bubble table tr:nth-child(2n){background:#61afef0d}.bubble strong{font-weight:600;color:var(--text)}.bubble em{font-style:italic;color:var(--text)}.bubble img{max-width:100%;height:auto;border-radius:8px;margin:.75em 0}.bubble del{text-decoration:line-through;color:var(--text-muted)}.bubble input[type=checkbox]{margin-right:.5em}.message-input-container{display:flex;flex-direction:column;gap:0;flex-shrink:0}.composer-model-row{display:flex;justify-content:flex-start;align-items:center;height:2rem;max-height:2rem;padding:0 12px;margin-top:4px}.quick-model-selector{display:flex;align-items:center;height:100%}.quick-model-button{border:1px solid rgba(92,99,112,.15);background:#21252b66;color:var(--text-muted);font-size:.75rem;font-weight:400;padding:4px 10px;border-radius:6px;cursor:pointer;transition:all .2s ease;height:24px;display:flex;align-items:center;white-space:nowrap;min-width:fit-content;max-width:220px;overflow:hidden;text-overflow:ellipsis;line-height:1}.quick-model-button:hover:not(:disabled){color:var(--accent);background:#61afef1a;border-color:#61afef4d}.quick-model-button:disabled{opacity:.4;cursor:not-allowed}.quick-model-select-hidden{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.composer{display:flex;flex-direction:row;gap:10px;padding:16px 20px;border-top:1px solid var(--border);background:#21252bd9;flex-shrink:0;align-items:center;position:relative}.composer-input-wrapper{flex:1;position:relative;display:flex;gap:8px;align-items:center}.composer-textarea-wrapper{position:relative;flex:1}.composer-mic{width:48px;height:48px;min-width:48px;min-height:48px;border-radius:50%;border:1px solid rgba(97,175,239,.4);background:#21252bf2;color:var(--text);font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0;padding:0;box-shadow:0 4px 14px #282c3473}.composer-mic:hover:not(:disabled){background:#2c323bf2;border-color:#61afef99}.composer-mic.listening{background:#ef444433;border-color:#ef444499;color:#ef4444;animation:pulse-mic 1.5s ease-in-out infinite}.composer-mic:disabled{opacity:.5;cursor:not-allowed}@keyframes pulse-mic{0%,to{box-shadow:0 0 #ef444466}50%{box-shadow:0 0 0 8px #ef444400}}.composer-textarea{flex:1;border-radius:16px;border:1px solid rgba(97,175,239,.4);background:#21252be6;color:var(--text);padding:14px 16px;font-size:1rem;font-family:inherit;line-height:1.5;width:100%;box-sizing:border-box}.composer-textarea:focus{outline:none;border-color:#61afefb3;box-shadow:0 0 0 3px #61afef26}.composer-textarea:disabled{opacity:.5;cursor:not-allowed}.composer-submit{width:50px;height:50px;min-width:50px;min-height:50px;border-radius:50%;border:none;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#fff;font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .2s ease,box-shadow .15s ease;flex-shrink:0;box-shadow:0 4px 12px #61afef4d;padding:0}.composer-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #61afef66}.composer-submit:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #61afef4d}.composer-submit:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.composer-submit svg{width:20px;height:20px}.composer-submit .spinner{animation:spin 1s linear infinite}.usage-details{padding:12px 24px;font-size:.85rem;color:var(--text-muted);display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--divider);flex-shrink:0;overflow-x:auto;overflow-y:visible}.turn-metrics{display:flex;gap:16px;flex-wrap:wrap;font-weight:500;color:#5c6370;font-family:Monaco,Menlo,monospace;font-size:.8rem;min-width:fit-content}.turn-metrics span{display:inline-block;padding:4px 10px;background:#5c63701a;border-radius:6px;border:1px solid rgba(92,99,112,.2);white-space:nowrap}.session-stats{line-height:1.5;word-wrap:break-word;word-break:break-word;overflow-wrap:break-word}.status{text-align:center;font-size:.85rem;color:#5c6370e6;padding:12px;display:flex;align-items:center;justify-content:center;gap:6px;border-top:1px solid var(--divider);flex-shrink:0}.status.error{color:#f87171}.empty-note{font-size:.85rem;color:var(--text-muted);margin:0}.token-modal-overlay{position:fixed;inset:0;background:#000c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000}.token-modal{background:var(--sidebar-bg);border:1px solid rgba(92,99,112,.2);border-radius:12px;padding:32px;max-width:400px;width:90%;box-shadow:0 8px 32px #0006}.token-modal h2{margin:0 0 16px;font-size:1.3rem;display:flex;align-items:center;gap:10px;color:var(--text)}.token-modal p{margin:0 0 24px;color:var(--text-muted);line-height:1.5}.token-modal-actions{display:flex;gap:12px;justify-content:flex-end}.token-submit-btn{border-radius:8px;border:none;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#fff;padding:12px 24px;font-weight:600;font-size:.95rem;cursor:pointer;transition:opacity .2s ease}.token-submit-btn:hover{opacity:.9}@media(max-width:1024px){.app-shell{flex-direction:column}aside.sidebar{width:85%;max-width:320px;position:fixed}.chat-column{padding-top:12px;gap:0;position:relative;min-height:0;max-height:100%}.chat-toggle{display:inline-flex;padding:12px 20px;font-size:1rem;gap:8px;align-self:flex-start;margin:0 0 8px 16px;flex-shrink:0}.chat-surface{flex:1;min-height:0;display:flex;flex-direction:column}.message-row{padding:12px 14px}.message-row .bubble{overflow:auto}.bubble{font-size:.95rem}.chat-toolbar{padding:10px 16px;min-height:58px}.icon-circle,.chat-toggle{width:38px;height:38px;padding:0}.bubble p{margin:.5em 0}.bubble ul,.bubble ol{padding-left:1.2em;margin:.5em 0}.bubble li{margin:.15em 0}.composer{padding:12px 16px}.usage-details{padding:10px 16px;font-size:.8rem;gap:6px}.turn-metrics{gap:8px;font-size:.7rem}.turn-metrics span{padding:3px 8px;font-size:.7rem}}@media(max-width:640px){aside.sidebar{width:90%;max-width:none}.message-row{padding:14px 16px;margin-bottom:6px}.message-row .bubble{overflow:auto}.bubble{font-size:.9rem}.chat-toolbar{gap:10px;padding:8px 12px;min-height:54px}.chat-toolbar-actions{gap:8px}.bubble p{margin:.4em 0}.bubble ul,.bubble ol{padding-left:1em;margin:.4em 0}.bubble li{margin:.1em 0}.bubble h1,.bubble h2,.bubble h3,.bubble h4,.bubble h5,.bubble h6{margin:.5em 0 .3em}.composer{padding:12px;gap:8px}.composer-textarea{font-size:16px}.message-actions{top:6px;right:6px;gap:4px}.action-button{width:36px;height:36px;font-size:1.05rem}.usage-details{padding:8px 12px;font-size:.75rem;gap:5px}.turn-metrics{flex-wrap:wrap;gap:5px;font-size:.65rem}.turn-metrics span{font-size:.65rem;padding:2px 6px}.session-stats{font-size:.7rem;line-height:1.4}.bubble pre{overflow-x:auto;max-width:100%}.bubble code{word-break:break-all}.bubble table{display:block;overflow-x:auto;max-width:100%}}@media(min-width:1024px){.chat-toggle{display:none!important}}.auth-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--bg);padding:1rem}.auth-card{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:2rem;width:100%;max-width:400px;box-shadow:0 10px 25px #0000004d}.auth-header{text-align:center;margin-bottom:2rem}.auth-header h1{color:var(--text);font-size:1.5rem;font-weight:600;margin-bottom:.5rem}.auth-header p{color:var(--text-muted);font-size:.875rem;margin:0}.auth-icon{font-size:3rem;color:var(--accent);margin-bottom:1rem}.auth-form{display:flex;flex-direction:column;gap:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{color:var(--text);font-size:.875rem;font-weight:500}.input-with-icon{position:relative;display:flex;align-items:center}.input-with-icon svg{position:absolute;left:.75rem;color:var(--text-muted);font-size:1rem;z-index:1}.input-with-icon input{background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);padding:.75rem 1rem .75rem 2.5rem;font-size:.875rem;width:100%;transition:border-color .2s}.input-with-icon input:focus{outline:none;border-color:var(--accent)}.password-toggle{position:absolute;right:.75rem;background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.25rem;border-radius:4px;display:flex;align-items:center;justify-content:center}.password-toggle:hover{color:var(--text);background:var(--border)}.auth-button{background:var(--accent);border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:.875rem;font-weight:500;padding:.75rem 1rem;transition:background-color .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.auth-button:hover:not(:disabled){background:var(--accent-strong)}.auth-button:disabled{opacity:.5;cursor:not-allowed}.auth-button.secondary{background:transparent;border:1px solid var(--border);color:var(--text)}.auth-button.secondary:hover:not(:disabled){background:var(--border)}.auth-error,.auth-success{display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:6px;font-size:.875rem}.auth-error{background:#e553531a;border:1px solid rgba(229,83,83,.3);color:#e55353}.auth-success{background:#57b25f1a;border:1px solid rgba(87,178,95,.3);color:#57b25f}.auth-footer{text-align:center;margin-top:1.5rem}.auth-footer p{color:var(--text-muted);font-size:.875rem;margin:0}.auth-link{background:none;border:none;color:var(--accent);cursor:pointer;font-size:.875rem;text-decoration:underline;padding:0}.auth-link:hover:not(:disabled){color:var(--accent-strong)}.success-icon{display:flex;justify-content:center;margin-bottom:1rem}.success-icon svg{width:4rem;height:4rem;color:#57b25f}.auth-instructions{background:var(--panel);border:1px solid var(--border);border-radius:.5rem;padding:1rem;margin-bottom:1.5rem}.auth-instructions p{color:var(--text);font-size:.875rem;line-height:1.5;margin:0}.disabled-input{background:var(--panel);border-color:var(--border);color:var(--text-muted);cursor:not-allowed;opacity:.7}.password-requirements{background:var(--panel);border:1px solid var(--border);border-radius:.5rem;padding:1rem;margin-bottom:1.5rem}.password-requirements p{color:var(--text);font-size:.875rem;font-weight:600;margin:0 0 .5rem}.password-requirements ul{list-style:none;padding:0;margin:0}.password-requirements li{color:var(--text-muted);font-size:.813rem;margin-bottom:.25rem;padding-left:1rem;position:relative}.password-requirements li:before{content:"○";position:absolute;left:0;color:var(--text-muted)}.password-requirements li.valid{color:#57b25f}.password-requirements li.valid:before{content:"✓";color:#57b25f}.email-display{color:var(--accent);font-weight:500;word-break:break-all}.confirmation-code-input{text-align:center;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:1.25rem;letter-spacing:.2em}.password-requirements{display:flex;flex-direction:column;gap:.25rem;margin-top:.5rem}.requirement{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--text-muted)}.requirement.valid{color:var(--accent)}.password-mismatch{color:#e55353;font-size:.75rem;margin-top:.25rem}.auth-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:var(--bg);color:var(--text);gap:1rem}.auth-loading-spinner{width:2rem;height:2rem;border:2px solid var(--border);border-top:2px solid var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.main-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:var(--bg);color:var(--text);gap:1rem}.main-loading-spinner{width:2rem;height:2rem;animation:spin 1s linear infinite}.user-info{display:flex;align-items:center;gap:.75rem;padding:1rem;background:var(--bg);border-radius:6px;margin-bottom:1rem;border:1px solid var(--border)}.user-avatar{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;background:var(--accent);color:#fff;border-radius:50%;font-size:1rem}.user-details{flex:1;display:flex;flex-direction:column;gap:.25rem}.user-email{color:var(--text);font-size:.875rem;font-weight:500;word-break:break-all}.user-verified{color:var(--text-muted);font-size:.75rem}.logout-button{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.5rem;border-radius:4px;display:flex;align-items:center;justify-content:center}.logout-button:hover{color:var(--text);background:var(--border)}.auth-button.google{background:#fff;border:1px solid #dadce0;color:#3c4043;padding:.75rem 1rem;font-weight:500}.auth-button.google:hover:not(:disabled){background:#f8f9fa;border-color:#c0c4c9;box-shadow:0 1px 3px #3c40434d}.auth-button.google:active:not(:disabled){background:#f1f3f4}.auth-button.google svg{width:18px;height:18px}.auth-divider{display:flex;align-items:center;margin:1rem 0;color:var(--text-muted)}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:var(--border)}.auth-divider span{padding:0 1rem;font-size:.875rem;font-weight:500}.usage-page{display:flex;flex-direction:column;height:100%;background:var(--bg);color:var(--text)}.usage-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--divider);background:#21252bb3;flex-shrink:0}.usage-header h2{margin:0;font-size:1.3rem;font-weight:600;color:var(--text);display:flex;align-items:center;gap:10px}.usage-header h2 svg{color:var(--accent)}.btn-back{background:#5c637033;border:1px solid rgba(92,99,112,.3);color:var(--text);padding:8px 16px;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s ease;display:flex;align-items:center;gap:6px}.btn-back:hover{background:#61afef1a;border-color:#61afef66;color:var(--accent)}.usage-content{flex:1;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:24px}.usage-loading,.usage-error{display:flex;align-items:center;justify-content:center;gap:12px;padding:40px 20px;color:var(--text-muted);font-size:1rem}.usage-error{color:#f87171}.usage-overview{display:flex;flex-direction:column;gap:24px}.overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.stat-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px;display:flex;align-items:flex-start;gap:16px;transition:transform .2s ease,box-shadow .2s ease}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.stat-icon{width:48px;height:48px;border-radius:10px;background:#61afef26;border:1px solid rgba(97,175,239,.3);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex-shrink:0}.stat-info{flex:1;display:flex;flex-direction:column;gap:8px}.stat-info h3{margin:0;font-size:.9rem;font-weight:600;color:var(--text);text-transform:uppercase;letter-spacing:.05em}.stat-value{margin:0;font-size:1.8rem;font-weight:700;color:var(--text);line-height:1.2}.stat-breakdown{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--text-muted)}.model-breakdown{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px}.model-breakdown h3{margin:0 0 20px;font-size:1.1rem;font-weight:600;color:var(--text);display:flex;align-items:center;gap:8px}.model-grid{display:flex;flex-direction:column;gap:16px}.model-stat{display:flex;flex-direction:column;gap:8px;padding:16px;background:#21252b80;border:1px solid rgba(92,99,112,.15);border-radius:8px;transition:background .2s ease}.model-stat:hover{background:#21252bcc}.model-stat h4{margin:0;font-size:1rem;font-weight:600;color:var(--text);word-break:break-word}.model-stats{display:flex;gap:16px;flex-wrap:wrap;font-size:.9rem;color:var(--text-muted)}.model-progress{display:flex;align-items:center;gap:12px;margin-top:8px}.progress-bar{flex:1;height:8px;background:#5c637033;border-radius:4px;overflow:hidden;min-width:80px}.progress-fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-strong));border-radius:4px;transition:width .3s ease}.progress-label{font-size:.85rem;font-weight:600;color:var(--text);min-width:40px;text-align:right}.usage-history{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px}.usage-history h3{margin:0 0 20px;font-size:1.1rem;font-weight:600;color:var(--text);display:flex;align-items:center;gap:8px}.history-list{display:flex;flex-direction:column;gap:12px;max-height:400px;overflow-y:auto}.history-item{padding:16px;background:#21252b80;border:1px solid rgba(92,99,112,.15);border-radius:8px;transition:background .2s ease}.history-item:hover{background:#21252bcc}.history-info{display:flex;flex-direction:column;gap:8px}.history-main{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.history-date{font-size:.9rem;color:var(--text);font-weight:500}.history-model{font-size:.85rem;color:var(--accent);background:#61afef26;padding:4px 8px;border-radius:4px;border:1px solid rgba(97,175,239,.3)}.history-stats{display:flex;gap:16px;flex-wrap:wrap;font-size:.85rem;color:var(--text-muted)}.history-details{display:flex;gap:16px;flex-wrap:wrap;font-size:.8rem;color:var(--text-muted);opacity:.8}.no-usage{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:var(--text-muted);text-align:center;gap:16px}.no-usage svg{font-size:3rem;color:var(--text-muted);opacity:.5}.no-usage h3{margin:0;font-size:1.3rem;color:var(--text)}.no-usage p{margin:0;font-size:1rem;color:var(--text-muted)}[data-theme=light] .usage-page{background:#fafafa}[data-theme=light] .usage-header{background:#fffffff2;border-bottom-color:#a0a1a740}[data-theme=light] .stat-card,[data-theme=light] .model-breakdown,[data-theme=light] .usage-history{background:#fffffff2;border-color:#a0a1a740}[data-theme=light] .model-stat,[data-theme=light] .history-item{background:#fafafacc;border-color:#a0a1a726}[data-theme=light] .model-stat:hover,[data-theme=light] .history-item:hover{background:#f5f5f5f2}[data-theme=light] .progress-bar{background:#a0a1a733}[data-theme=light] .btn-back{background:#fafafacc;border-color:#a0a1a74d;color:#a0a1a7}[data-theme=light] .btn-back:hover{background:#4078f214;border-color:#4078f24d;color:#4078f2}[data-theme=light] .stat-icon{background:#4078f21a;border-color:#4078f233;color:#4078f2}[data-theme=light] .history-model{background:#4078f214;border-color:#4078f233;color:#4078f2}@media(max-width:1024px){.usage-header{padding:12px 16px}.usage-content{padding:16px}.overview-cards{grid-template-columns:1fr}.stat-card{padding:16px}.stat-value{font-size:1.5rem}}@media(max-width:640px){.usage-header{padding:10px 12px;gap:8px}.usage-header h2{font-size:1.1rem}.btn-back{padding:6px 12px;font-size:.85rem}.usage-content{padding:12px;gap:16px}.stat-card{padding:12px;gap:12px}.stat-icon{width:40px;height:40px;font-size:1.1rem}.stat-value{font-size:1.3rem}.model-breakdown,.usage-history{padding:16px}.model-stats,.history-stats{flex-direction:column;gap:8px}.history-main{flex-direction:column;align-items:flex-start;gap:8px}}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}
