:root,[data-theme=dark]{--bg-page: #0a0a0a;--bg-surface: #111111;--bg-elevated: #1a1a1a;--border: rgba(255, 255, 255, .08);--text-primary: #f4f4f5;--text-muted: #a1a1aa;--accent: #2dd4bf;--accent-dim: rgba(45, 212, 191, .15);--error: #f87171;--radius-bar: 14px;--radius-pill: 9999px;--shadow-bar: 0 4px 24px rgba(0, 0, 0, .4);--font: "Inter", system-ui, -apple-system, sans-serif;--column-width: min(720px, 100% - 2rem)}[data-theme=light]{--bg-page: #fafafa;--bg-surface: #ffffff;--bg-elevated: #f4f4f5;--border: rgba(0, 0, 0, .08);--text-primary: #18181b;--text-muted: #71717a;--accent: #0d9488;--accent-dim: rgba(13, 148, 136, .12);--error: #dc2626;--shadow-bar: 0 4px 24px rgba(0, 0, 0, .06)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}*{box-sizing:border-box}html{color-scheme:dark light}html[data-theme=dark]{color-scheme:dark}html[data-theme=light]{color-scheme:light}body{margin:0;min-height:100vh;display:flex;flex-direction:column;font-family:var(--font);background:var(--bg-page);color:var(--text-primary);line-height:1.5;-webkit-font-smoothing:antialiased}#root{flex:1;display:flex;flex-direction:column;min-height:0;width:100%}.app-shell{flex:1;min-height:0;display:flex;flex-direction:column}.response-loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:180;display:flex;align-items:center;justify-content:center;padding:1rem;padding-top:max(1rem,env(safe-area-inset-top,0px));padding-bottom:max(1rem,env(safe-area-inset-bottom,0px));pointer-events:none}.response-loading-card{display:inline-flex;align-items:center;gap:.75rem;padding:.9rem 1.35rem;border-radius:var(--radius-pill);background:var(--bg-elevated);border:1px solid var(--border);box-shadow:var(--shadow-bar)}.response-loading-spinner{flex-shrink:0;width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:response-loading-spin .75s linear infinite}.response-loading-label{font-size:.9375rem;font-weight:500;color:var(--text-primary)}@keyframes response-loading-spin{to{transform:rotate(360deg)}}.app-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;padding:.75rem 1.25rem;border-bottom:1px solid var(--border);background:var(--bg-surface)}.app-wordmark{font-size:1.125rem;font-weight:600;letter-spacing:-.02em;color:var(--text-primary);text-decoration:none}.app-header-actions{display:flex;align-items:center;gap:.5rem}.app-header-desktop{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.menu-btn{display:none;min-width:44px;min-height:44px;padding:0 .65rem;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--bg-elevated);color:var(--text-primary);font-size:1.25rem;line-height:1;cursor:pointer;align-items:center;justify-content:center}.menu-btn:hover{border-color:#ffffff24}@media(max-width:640px){.menu-btn{display:inline-flex}.app-header-actions .desktop-only{display:none!important}}.mobile-menu-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200}.mobile-menu-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:none;padding:0;margin:0;background:#00000080;cursor:pointer}.mobile-sheet{position:absolute;left:0;right:0;bottom:0;max-height:min(85vh,640px);display:flex;flex-direction:column;background:var(--bg-elevated);border-top-left-radius:16px;border-top-right-radius:16px;border:1px solid var(--border);border-bottom:none;box-shadow:var(--shadow-bar);transform:translateY(0);animation:mobile-sheet-in .25s ease}@keyframes mobile-sheet-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}.mobile-sheet-handle{width:36px;height:4px;margin:.5rem auto 0;border-radius:2px;background:var(--border)}.mobile-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem .25rem}.mobile-sheet-title{font-weight:600;font-size:1rem}.mobile-sheet-close{min-width:44px;min-height:44px;border:none;background:transparent;color:var(--text-muted);font-size:1.5rem;line-height:1;cursor:pointer;border-radius:8px}.mobile-sheet-close:hover{color:var(--text-primary)}.mobile-sheet-body{overflow-y:auto;padding:0 1rem 1.25rem;display:flex;flex-direction:column;gap:.75rem}.mobile-sheet-user{margin:0;font-size:.875rem;color:var(--text-muted)}.mobile-sheet-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.theme-toggle--sheet{flex-shrink:0}.mobile-sheet-section{padding-top:.25rem;border-top:1px solid var(--border)}.mobile-sheet-section-title{margin:0 0 .5rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.mobile-sheet-signout{margin-top:.25rem;width:100%}.theme-toggle{min-width:44px;min-height:44px;padding:0 .75rem;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--bg-elevated);color:var(--text-muted);font-size:.8125rem;cursor:pointer}.theme-toggle:hover{color:var(--text-primary);border-color:#ffffff24}.settings-wrap{position:relative}.settings-btn{min-width:44px;min-height:44px;padding:0 .5rem;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--bg-elevated);color:var(--text-muted);font-size:1.25rem;cursor:pointer;line-height:1}.settings-btn:hover{color:var(--text-primary);border-color:#ffffff24}.settings-panel{position:absolute;top:100%;right:0;margin-top:.25rem;padding:1rem;min-width:220px;border-radius:10px;border:1px solid var(--border);background:var(--bg-elevated);box-shadow:var(--shadow-bar);z-index:100}.settings-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.settings-row:last-child{margin-bottom:0}.settings-row label{flex:1;font-size:.875rem;color:var(--text-primary)}.settings-toggle{width:2.5rem;height:1.25rem;accent-color:var(--accent);cursor:pointer}.settings-slider{flex:1;min-width:0;accent-color:var(--accent);cursor:pointer}.settings-slider-value{flex-shrink:0;font-size:.8125rem;font-variant-numeric:tabular-nums;color:var(--text-muted)}.realtime-indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:.25rem;vertical-align:middle;animation:realtime-pulse 1.2s ease-in-out infinite}@keyframes realtime-pulse{0%,to{opacity:1}50%{opacity:.4}}.sign-in-placeholder{font-size:.8125rem;color:var(--text-muted);padding:.5rem .75rem;border-radius:var(--radius-pill);border:1px dashed var(--border)}.app-main{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;padding:.75rem 1rem 0;width:100%;overflow:hidden}.conversation-scroll{flex:1;min-height:0;align-self:stretch;width:100%;max-width:min(1100px,100%);margin-left:auto;margin-right:auto;overflow-y:auto;overflow-x:hidden;padding:.75rem 1rem 1rem;border-radius:var(--radius-bar);border:1px solid var(--border);background:var(--bg-surface);-webkit-overflow-scrolling:touch}.composer-dock{flex-shrink:0;width:100%;max-width:var(--column-width);margin:0 auto;padding:.75rem 0 1rem;border-top:1px solid var(--border);background:var(--bg-page);padding-bottom:max(1rem,env(safe-area-inset-bottom,0px))}.composer-dock .error{margin-top:.5rem;text-align:left}.login-form{max-width:var(--column-width);margin:0 auto;padding-top:.5rem}.login-field{margin-bottom:1rem}.login-field-label{display:block;font-size:.8125rem;font-weight:500;color:var(--text-muted);margin-bottom:.4rem}.login-ask-bar{width:100%}.login-ask-bar input[type=text],.login-ask-bar input[type=password]{flex:1;min-width:0;width:100%;border:none;background:transparent;color:var(--text-primary);font-size:1rem;outline:none;padding:.65rem 0}.login-ask-bar input::placeholder{color:var(--text-muted)}.login-error{margin:0 0 .75rem;text-align:center}.login-submit-wrap{margin-top:.25rem}.login-submit-wrap .submit-btn{width:100%;min-height:44px}.app-hero{width:var(--column-width);margin:0 auto;padding-top:clamp(1rem,3vh,2rem);padding-bottom:.75rem}.app-hero-title{font-size:clamp(1.5rem,4vw,2rem);font-weight:600;letter-spacing:-.03em;text-align:center;margin:0 0 .5rem;color:var(--text-primary)}.app-hero-sub{text-align:center;font-size:.875rem;color:var(--text-muted);margin:0 0 1.5rem}.status-row{text-align:center;font-size:.75rem;color:var(--text-muted);margin-bottom:.75rem}.response-time-estimate{text-align:center;font-size:.75rem;color:var(--text-muted);margin:-.25rem 0 .75rem;font-variant-numeric:tabular-nums}.request-id{text-align:center;font-size:.6875rem;color:var(--text-muted);word-break:break-all;margin:0 0 1rem;opacity:.85}.ask-form{width:100%}.ask-bar{display:flex;flex-direction:row;align-items:stretch;gap:.5rem;padding:.5rem .5rem .5rem 1rem;background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-bar);box-shadow:var(--shadow-bar)}.ask-bar__line--input{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}.ask-bar__line--submit,.ask-bar-input-tools{display:flex;align-items:center;gap:.35rem;flex-shrink:0}@media(max-width:640px){.ask-bar{flex-direction:column;align-items:stretch;gap:.5rem;padding:.5rem .75rem .65rem}.ask-bar__line--submit{justify-content:stretch;gap:.5rem}.ask-bar__line--submit .submit-btn{flex:1;min-height:44px}}.ask-bar:focus-within{border-color:#2dd4bf59;box-shadow:var(--shadow-bar),0 0 0 1px #2dd4bf1f}[data-theme=light] .ask-bar:focus-within{border-color:#0d948866}.ask-bar input[type=text]{flex:1;min-width:0;border:none;background:transparent;color:var(--text-primary);font-size:1rem;outline:none;padding:.65rem 0}.ask-bar input::placeholder{color:var(--text-muted)}.attach-menu-root{position:relative;flex-shrink:0;display:inline-flex;align-items:center}.attach-popover{position:absolute;bottom:100%;left:0;margin-bottom:6px;min-width:11rem;padding:.25rem;border-radius:var(--radius-bar);border:1px solid var(--border);background:var(--bg-elevated);box-shadow:var(--shadow-bar);z-index:30}.attach-popover-item{display:block;width:100%;text-align:left;padding:.5rem .65rem;border:none;border-radius:8px;background:transparent;color:var(--text-primary);font-size:.875rem;cursor:pointer}.attach-popover-item:hover{background:var(--bg-surface)}.attach-btn{flex-shrink:0;width:28px;height:28px;border-radius:50%;border:1px solid var(--border);background:transparent;color:var(--text-muted);font-size:1.15rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s,border-color .15s}.attach-btn:hover:not(:disabled){background:var(--bg-elevated);border-color:#2dd4bf66;color:var(--text-primary)}.attach-btn:disabled{opacity:.4;cursor:not-allowed}.attach-input-hidden{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.file-chips{display:flex;flex-wrap:wrap;gap:.35rem;padding:.35rem .5rem .25rem}.file-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;border-radius:999px;border:1px solid var(--border);background:var(--bg-elevated);font-size:.75rem;color:var(--text-primary);max-width:180px}.file-chip-icon{font-size:.85rem}.file-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}.file-chip-remove{flex-shrink:0;background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:.9rem;line-height:1;padding:0 2px;border-radius:50%}.file-chip-remove:hover{color:var(--error)}.mic-btn{min-width:44px;min-height:44px;padding:0 .75rem;font-size:.875rem;cursor:pointer;border-radius:10px;border:1px solid var(--border);background:var(--bg-surface);color:var(--text-primary);display:inline-flex;align-items:center;justify-content:center}.mic-btn:hover{background:var(--bg-elevated)}.mic-btn--active{background:var(--error);border-color:var(--error);color:#fff}.mic-btn--compact{min-width:44px;padding:0;font-size:1.15rem}.submit-btn{min-width:44px;min-height:44px;padding:0 1rem;border-radius:10px;border:none;background:var(--accent);color:#0a0a0a;font-weight:600;font-size:.875rem;cursor:pointer}.submit-btn:hover:not(:disabled){filter:brightness(1.08)}.submit-btn:disabled{background:var(--bg-elevated);color:var(--text-muted);cursor:not-allowed;filter:none}[data-theme=light] .submit-btn{color:#fff}[data-theme=light] .submit-btn:disabled{color:var(--text-muted)}.error{color:var(--error);font-size:.875rem;margin-top:.75rem;text-align:center}.upload-notice{color:var(--text-muted);font-size:.8125rem;margin-top:.5rem;text-align:left}.live-transcript{margin-top:.75rem;padding:.75rem 1rem;border-radius:var(--radius-bar);background:var(--bg-surface);border:1px solid var(--border);font-size:.875rem;color:var(--text-muted);min-height:2.75rem}.live-transcript strong{color:var(--text-primary);font-weight:500}.live-transcript--idle{opacity:.65}.live-transcript--idle section h2{font-size:.6875rem;margin-bottom:.25rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.thread-layout{width:var(--column-width);margin:.75rem auto 0}.thread-layout .thread{width:100%;margin:0}.thread{width:var(--column-width);margin:.5rem auto 0;display:flex;flex-direction:column;gap:1rem}.thread-empty .thread{display:none}.bubble-user{align-self:flex-end;max-width:90%;padding:.75rem 1rem;border-radius:var(--radius-bar) var(--radius-bar) 4px var(--radius-bar);background:var(--accent-dim);border:1px solid rgba(45,212,191,.2);color:var(--text-primary);font-size:.9375rem}[data-theme=light] .bubble-user{border-color:#0d948840}.bubble-assistant{padding:1rem 0;border-top:1px solid var(--border)}.word-doc-download-wrap{margin:.75rem 0 0}.word-doc-download-btn{font-size:.8125rem}.thread section[data-testid=response-panel] h2,.thread section[data-testid=transcript-panel] h2{font-size:.6875rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin:0 0 .5rem;font-weight:600}.thread section[data-testid=response-panel] p,.thread section[data-testid=transcript-panel] p{margin:0;white-space:pre-wrap;color:var(--text-primary)}.references-inline{margin-top:.75rem;padding:.65rem .9rem .85rem;border-radius:10px;border:1px solid var(--border);background:var(--bg-elevated);max-width:100%}.references-inline-title{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-primary);margin:0 0 .5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.references-inline-title:hover{color:var(--accent)}.references-inline-section{margin-top:.65rem}.references-inline-section:first-of-type{margin-top:.35rem}.references-inline-subheading{font-size:.75rem;font-weight:600;color:var(--text-muted);margin:0 0 .35rem;letter-spacing:normal;text-transform:none}.references-inline-list{margin:0;padding-left:1.1rem;color:var(--text-primary);font-size:.8125rem}.references-inline-list li{margin-bottom:.35rem}.references-inline-list li:last-child{margin-bottom:0}.references-inline-list a{color:var(--accent);text-decoration:none;word-break:break-word}.references-inline-list a:hover{text-decoration:underline}.audio-wrap{margin-top:1rem}.audio-wrap audio.tts-audio-el{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.response-audio-panel{margin-top:.75rem;padding:.75rem 1rem;border-radius:8px;background:#f0f0f0;border:1px solid #ccc}.response-audio-progress-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.response-audio-scrub{flex:1;min-width:0;height:6px;accent-color:#111;cursor:pointer}.response-audio-scrub:disabled{opacity:.5;cursor:not-allowed}.response-audio-time{flex-shrink:0;font-size:.85rem;font-variant-numeric:tabular-nums;color:#111}.response-audio-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.response-audio-btn{font:inherit;font-size:.95rem;padding:.45rem 1rem;border-radius:6px;cursor:pointer;border:1px solid #999;background:#fff;color:#111}.response-audio-btn:hover{background:#f5f5f5}.response-audio-btn:active{background:#eaeaea}.app-footer{padding:1rem 1.25rem 1.25rem;border-top:1px solid var(--border);background:var(--bg-surface)}.app-footer-license{font-size:.75rem;color:var(--text-muted);line-height:1.5;max-width:var(--column-width);margin:0 auto}.app-footer-license a{color:var(--accent);text-decoration:none}.app-footer-license a:hover{text-decoration:underline}.markdown-body{font-size:.95rem;line-height:1.55}.markdown-body p{margin:.5rem 0}.markdown-body p:first-child{margin-top:0}.markdown-body h1,.markdown-body h2,.markdown-body h3{font-size:1.05rem;font-weight:600;margin:.75rem 0 .35rem}.markdown-body ul,.markdown-body ol{margin:.35rem 0 .5rem 1.25rem;padding:0}.markdown-body code{font-family:ui-monospace,monospace;font-size:.88em;padding:.1em .35em;border-radius:4px;background:var(--bg-elevated)}.markdown-body pre{margin:.5rem 0;padding:.75rem;overflow:auto;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--border)}.markdown-body pre code{padding:0;background:none}.markdown-body table{border-collapse:collapse;width:100%;margin:.5rem 0;font-size:.9rem}.markdown-body th,.markdown-body td{border:1px solid var(--border);padding:.35rem .5rem;text-align:left}.response-panel--inline .markdown-body{margin-top:0}.app-workspace{flex:1;min-height:0;display:flex;flex-direction:row;align-items:stretch;width:100%}.app-workspace-main{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}.spaces-sidebar{flex-shrink:0;width:min(280px,38vw);max-width:100%;display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--bg-surface);padding:.5rem .65rem;overflow:hidden auto}.spaces-sidebar--collapsed{width:36px;padding:.35rem;align-items:center}.spaces-sidebar-expand,.spaces-sidebar-collapse{flex-shrink:0;border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--bg-elevated);color:var(--text-primary);cursor:pointer;font-size:1rem;line-height:1;padding:.25rem .45rem}.spaces-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.35rem}.spaces-sidebar-title{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.spaces-sidebar-incognito{font-size:.75rem;color:var(--accent);margin:0 0 .5rem}.spaces-sidebar-actions{margin-bottom:.5rem}.spaces-sidebar-new-space{font-size:.8125rem;padding:.35rem .65rem;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--bg-elevated);color:var(--text-primary);cursor:pointer}.spaces-sidebar-nav{display:flex;flex-direction:column;gap:.35rem}.spaces-sidebar-space-row{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap}.spaces-sidebar-space{flex:1;min-width:0;text-align:left;border:none;background:transparent;color:var(--text-primary);cursor:pointer;font-size:.9rem;padding:.35rem .25rem;border-radius:6px}.spaces-sidebar-space--active{background:var(--accent-dim);font-weight:600}.spaces-sidebar-icon-btn{flex-shrink:0;border:none;background:transparent;color:var(--text-muted);cursor:pointer;font-size:1.1rem;line-height:1;padding:.2rem}.spaces-sidebar-private{display:inline-flex;align-items:center;gap:.25rem;font-size:.7rem;color:var(--text-muted)}.spaces-sidebar-private input{accent-color:var(--accent)}.spaces-sidebar-threads{margin-left:.35rem;padding-left:.5rem;border-left:1px solid var(--border)}.spaces-sidebar-thread-actions{margin-bottom:.35rem}.spaces-sidebar-new-thread{font-size:.75rem;padding:.25rem .5rem;border-radius:var(--radius-pill);border:1px dashed var(--border);background:transparent;color:var(--text-muted);cursor:pointer}.spaces-thread-list{list-style:none;margin:0;padding:0}.spaces-thread-row{display:flex;align-items:flex-start;gap:.25rem}.spaces-thread-btn{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;border:none;background:transparent;color:var(--text-primary);cursor:pointer;text-align:left;padding:.35rem .25rem;border-radius:6px;font-size:.8125rem}.spaces-thread-btn--active{background:var(--accent-dim)}.spaces-thread-title{word-break:break-word}.spaces-thread-date{font-size:.68rem;color:var(--text-muted)}.spaces-sidebar-rename-form input{width:100%;font-size:.85rem;padding:.25rem .35rem;border-radius:6px;border:1px solid var(--border);background:var(--bg-elevated);color:var(--text-primary)}
