:root{color:#f1f3f5;background:#0f1012;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0;color-scheme:dark;--ink: #f1f3f5;--muted: #999fa8;--subtle: #747b84;--line: #292d32;--line-strong: #3a3f46;--surface: #15171a;--surface-raised: #1b1e22;--surface-hover: #22262b;--canvas: #0f1012;--accent: #ef5a62;--accent-hover: #ff6b73;--accent-soft: rgba(239, 90, 98, .12);--green: #45c978;--green-soft: rgba(69, 201, 120, .12);--focus: #5ba8ff;--shadow: 0 12px 36px rgba(0, 0, 0, .28)}:root[data-theme=light]{color:#1c252e;background:#f5f6f8;color-scheme:light;--ink: #1c252e;--muted: #68727c;--subtle: #87909a;--line: #dce1e6;--line-strong: #c9d0d7;--surface: #ffffff;--surface-raised: #f8f9fa;--surface-hover: #eef1f3;--canvas: #f5f6f8;--accent: #df444c;--accent-hover: #c9363e;--accent-soft: rgba(223, 68, 76, .1);--green: #288b4b;--green-soft: rgba(40, 139, 75, .1);--focus: #1971c2;--shadow: 0 10px 30px rgba(28, 37, 46, .1)}*{box-sizing:border-box;letter-spacing:0}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;min-height:100dvh;overflow:hidden;color:var(--ink);background:var(--canvas)}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.48}.app-shell{min-height:100vh;min-height:100dvh;background:var(--canvas)}.app-header{position:relative;z-index:40;height:60px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 18px;background:var(--surface);border-bottom:1px solid var(--line)}.header-start,.header-actions,.status-group,.brand{min-width:0;display:flex;align-items:center}.header-start,.header-actions{gap:9px}.brand{gap:10px;color:var(--ink);font-size:19px;font-weight:760}.brand img{width:35px;height:35px;padding:3px;object-fit:contain;background:var(--surface-raised);border:1px solid var(--line);border-radius:7px}.status-group{gap:7px;padding-right:9px;border-right:1px solid var(--line)}.status-badge{max-width:230px;min-height:27px;display:inline-flex;align-items:center;gap:7px;padding:3px 9px;overflow:hidden;color:var(--muted);background:var(--surface-raised);border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:680;white-space:nowrap}.status-label{overflow:hidden;text-overflow:ellipsis}.status-dot{width:7px;height:7px;flex:0 0 7px;background:var(--subtle);border-radius:50%}.status-badge.is-online .status-dot{background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}.status-badge.is-offline{color:var(--accent-hover);background:var(--accent-soft);border-color:#ef5a6240}.status-badge.is-offline .status-dot{background:var(--accent)}.icon-button,.command-button,.send-button,.history-delete{display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer}.icon-button{width:34px;height:34px;flex:0 0 34px;color:var(--muted);background:transparent;border-radius:6px;text-decoration:none}.icon-button:hover:not(:disabled){color:var(--ink);background:var(--surface-hover)}.command-button{min-height:36px;gap:7px;padding:0 13px;color:#fff;background:var(--accent);border-radius:6px;font-size:13px;font-weight:730}.command-button:hover:not(:disabled){background:var(--accent-hover)}.history-toggle,.history-backdrop{display:none}.workspace-grid{height:calc(100vh - 60px);height:calc(100dvh - 60px);display:grid;grid-template-columns:244px minmax(0,1fr) 320px}.history-sidebar{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border-right:1px solid var(--line)}.history-heading{height:49px;flex:0 0 49px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px 0 15px;border-bottom:1px solid var(--line)}.history-heading h2{margin:0;color:var(--ink);font-size:13px;font-weight:760}.history-heading-actions{display:flex;align-items:center;gap:1px}.history-search{position:relative;display:flex;align-items:center;gap:8px;margin:8px 8px 0;padding:0 8px;background:var(--surface-raised);border:1px solid var(--line);border-radius:7px}.history-search:focus-within{border-color:var(--focus);box-shadow:0 0 0 2px color-mix(in srgb,var(--focus) 20%,transparent)}.history-search>svg{flex:0 0 auto;color:var(--subtle)}.history-search input{width:100%;min-height:34px;color:var(--ink);background:transparent;border:0;outline:0;font-size:12px}.history-search input::placeholder{color:var(--subtle)}.history-search input::-webkit-search-cancel-button{display:none}.history-search-clear{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;color:var(--muted);background:transparent;border:0;border-radius:5px;cursor:pointer}.history-search-clear:hover{color:var(--ink);background:var(--surface-hover)}.history-result-count{margin:2px 4px 4px;color:var(--subtle);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.history-snippet{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;line-height:1.4}.history-entry small:has(.history-snippet){white-space:normal;overflow:visible}.history-entry mark{color:var(--ink);background:color-mix(in srgb,var(--accent) 34%,transparent);border-radius:3px;padding:0 1px}.history-list{min-height:0;display:flex;flex-direction:column;gap:3px;overflow-y:auto;padding:8px}.history-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;border-radius:6px}.history-row:hover,.history-row.is-active{background:var(--surface-hover)}.history-row.is-active{box-shadow:inset 2px 0 0 var(--accent)}.history-entry{min-width:0;min-height:55px;display:grid;grid-template-columns:17px minmax(0,1fr);align-items:center;gap:9px;padding:7px 5px 7px 10px;color:var(--muted);background:transparent;border:0;cursor:pointer;text-align:left}.history-entry>svg{color:var(--subtle)}.history-entry>span{min-width:0;display:flex;flex-direction:column;gap:3px}.history-entry strong,.history-entry small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-entry strong{color:var(--ink);font-size:12px;font-weight:680}.history-entry small{color:var(--subtle);font-size:10px}.history-delete{width:27px;height:27px;padding:0;color:var(--subtle);background:transparent;border-radius:5px;opacity:0}.history-row:hover .history-delete,.history-delete:focus-visible{opacity:1}.history-delete:hover:not(:disabled){color:var(--accent-hover);background:var(--accent-soft)}.chat-column{min-width:0;min-height:0;display:grid;grid-template-rows:49px minmax(0,1fr) auto;background:var(--canvas)}.chat-titlebar{min-width:0;display:flex;align-items:center;gap:8px;padding:0 18px;color:var(--muted);background:var(--canvas);border-bottom:1px solid var(--line)}.chat-titlebar strong{min-width:0;overflow:hidden;color:var(--ink);font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.chat-titlebar>span{flex:0 0 auto;padding:2px 6px;color:var(--green);background:var(--green-soft);border-radius:4px;font-size:9px;font-weight:780;text-transform:uppercase}.message-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.empty-state{width:min(720px,calc(100% - 40px));min-height:100%;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:46px 0 62px}.empty-state>img{width:68px;height:68px;margin-bottom:17px;object-fit:contain}.empty-state h1{margin:0 0 20px;color:var(--ink);font-size:28px;line-height:1.2;font-weight:720;text-align:center}.open-whiteboard-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-bottom:22px;padding:0 13px;color:var(--ink);background:var(--surface-raised);border:1px solid var(--line-strong);border-radius:6px;cursor:pointer;font-size:12px;font-weight:700}.open-whiteboard-button:hover{color:var(--accent-hover);background:var(--surface-hover);border-color:var(--accent)}.suggestion-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.suggestion-grid button{min-height:84px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:9px;padding:14px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px;cursor:pointer;text-align:left;line-height:1.4;font-size:12px;font-weight:650}.suggestion-grid button:hover{background:var(--surface-raised);border-color:var(--line-strong)}.suggestion-grid button>svg:first-child{color:var(--accent)}.suggestion-grid button>svg:last-child{color:var(--subtle)}.message-list{width:min(790px,calc(100% - 42px));margin:0 auto;padding:36px 0 52px}.message{display:flex;align-items:flex-start;gap:10px;margin-bottom:24px}.message-user{justify-content:flex-end}.message-body{min-width:0;max-width:min(650px,86%)}.message-body>p{margin:0;color:var(--ink);font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.message-user .message-body{padding:9px 13px;background:var(--surface-hover);border:1px solid var(--line);border-radius:8px 8px 2px}.assistant-avatar{width:28px;height:28px;flex:0 0 28px;padding:2px;object-fit:contain;background:var(--surface-raised);border:1px solid var(--line);border-radius:6px}.message-assistant .message-body{padding-top:3px}.pending-message{display:flex;align-items:center;gap:9px;color:var(--muted)}.pending-message p{color:var(--muted)}.result-link{width:min(490px,100%);min-height:62px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;margin-top:13px;padding:9px 11px;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:7px;text-decoration:none}.result-link:hover{background:var(--surface-raised);border-color:var(--line-strong)}.result-icon{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;color:var(--green);background:var(--green-soft);border-radius:6px}.result-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.result-copy strong,.result-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-copy strong{color:var(--ink);font-size:13px}.result-copy small{color:var(--muted);font-size:11px}.result-link>svg{color:var(--subtle)}.composer{position:relative;padding:10px 20px 15px;background:color-mix(in srgb,var(--canvas) 94%,transparent);border-top:1px solid var(--line)}.composer-inner{width:min(790px,100%);margin:0 auto}.mode-segment{width:fit-content;display:flex;align-items:center;gap:2px;margin:0 0 7px 2px;padding:3px;background:var(--surface-raised);border:1px solid var(--line);border-radius:7px}.mode-segment button{min-height:27px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;color:var(--muted);background:transparent;border:0;border-radius:5px;cursor:pointer;font-size:11px;font-weight:700}.mode-segment button:hover:not(:disabled){color:var(--ink)}.mode-segment button.is-active{color:var(--ink);background:var(--surface-hover);box-shadow:0 1px 3px #0003}.textarea-frame{min-height:68px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:10px;padding:9px;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;box-shadow:var(--shadow)}.attach-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:7px;cursor:pointer}.attach-button:hover:not(:disabled){color:var(--ink);background:var(--surface-hover)}.attach-button:disabled{opacity:.5;cursor:not-allowed}.textarea-frame:focus-within{border-color:var(--focus);box-shadow:0 0 0 2px color-mix(in srgb,var(--focus) 22%,transparent),var(--shadow)}.textarea-frame textarea{width:100%;max-height:150px;resize:none;padding:3px 0;color:var(--ink);background:transparent;border:0;outline:0;line-height:1.5;font-size:14px}.textarea-frame textarea::placeholder{color:var(--subtle)}.send-button{width:40px;height:40px;color:#fff;background:var(--accent);border-radius:7px}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button.is-stop{color:var(--accent-hover);background:var(--accent-soft);border:1px solid rgba(239,90,98,.32)}.send-button.is-stop:hover{color:#fff;background:var(--accent)}.composer-inner.is-drag .textarea-frame{border-color:var(--focus);border-style:dashed;box-shadow:0 0 0 2px color-mix(in srgb,var(--focus) 22%,transparent),var(--shadow)}.attachment-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px 2px}.attachment-chip{position:relative;width:58px;height:58px;border-radius:8px;overflow:hidden;border:1px solid var(--line-strong);background:var(--surface-raised)}.attachment-chip img{width:100%;height:100%;object-fit:cover;display:block}.attachment-chip button{position:absolute;top:2px;right:2px;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;color:#fff;background:#0009;border:0;border-radius:5px;cursor:pointer}.attachment-chip button:hover{background:#000000d1}.message-images{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.message-images img{max-width:220px;max-height:220px;border-radius:10px;border:1px solid var(--line);object-fit:cover}.artifact-panel{min-width:0;min-height:0;overflow-y:auto;padding:19px 18px;background:var(--surface);border-left:1px solid var(--line)}.artifact-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:18px}.section-label{display:block;margin-bottom:3px;color:var(--subtle);font-size:9px;font-weight:800;text-transform:uppercase}.artifact-heading h2{margin:0;color:var(--ink);font-size:15px;line-height:1.3}.artifact-content{display:flex;flex-direction:column;gap:15px}.scene-preview{min-height:220px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:18px 20px;padding:20px;background-color:var(--surface-raised);background-image:radial-gradient(var(--line-strong) .7px,transparent .7px);background-size:16px 16px;border:1px solid var(--line);border-radius:7px}.scene-node{min-width:0;min-height:46px;display:flex;align-items:center;gap:7px;padding:8px;overflow:hidden;color:var(--muted);background:color-mix(in srgb,var(--surface) 96%,transparent);border:1px solid;border-radius:5px;box-shadow:0 2px 7px #00000024;font-size:9px;line-height:1.3}.scene-node>span{width:5px;height:21px;flex:0 0 5px;border-radius:3px}.scene-node-2{grid-column:1 / -1;width:calc(50% - 10px);justify-self:center}.artifact-meta h3{margin:0 0 8px;color:var(--ink);font-size:17px;line-height:1.35;overflow-wrap:anywhere}.stat-row{display:flex;flex-wrap:wrap;gap:7px 12px;color:var(--muted);font-size:11px}.stat-row span{display:inline-flex;align-items:center;gap:5px}.primary-link{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;color:#fff;background:var(--accent);border-radius:6px;text-decoration:none;font-size:12px;font-weight:740}.primary-link:hover{background:var(--accent-hover)}.artifact-empty{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:var(--subtle);border:1px dashed var(--line-strong);border-radius:7px;font-size:12px;font-weight:650}.artifact-empty img{width:56px;height:56px;filter:grayscale(.35);opacity:.54}.modal-backdrop{position:fixed;z-index:100;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:#000000a3}.whiteboard-dialog{width:min(680px,100%);max-height:min(720px,calc(100dvh - 48px));display:grid;grid-template-rows:auto auto minmax(180px,1fr);overflow:hidden;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 24px 70px #0000007a}.dialog-heading{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px 12px 18px;border-bottom:1px solid var(--line)}.dialog-heading h2{margin:0;color:var(--ink);font-size:17px;line-height:1.3}.whiteboard-search{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto 34px;align-items:center;gap:8px;margin:14px 14px 10px;padding:5px 5px 5px 11px;background:var(--surface-raised);border:1px solid var(--line);border-radius:7px}.whiteboard-search>svg{color:var(--subtle)}.whiteboard-search input{min-width:0;height:34px;padding:0;color:var(--ink);background:transparent;border:0;outline:0;font-size:13px}.whiteboard-search input::placeholder{color:var(--subtle)}.whiteboard-search>button[type=submit]{min-height:30px;padding:0 10px;color:#fff;background:var(--accent);border:0;border-radius:5px;cursor:pointer;font-size:11px;font-weight:720}.whiteboard-search>button[type=submit]:hover:not(:disabled){background:var(--accent-hover)}.whiteboard-list{min-height:0;overflow-y:auto;padding:2px 14px 14px}.whiteboard-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;border-bottom:1px solid var(--line)}.whiteboard-row:last-child{border-bottom:0}.whiteboard-row:hover{background:var(--surface-raised)}.whiteboard-entry{min-width:0;min-height:66px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:11px;padding:8px 6px 8px 8px;color:var(--muted);background:transparent;border:0;cursor:pointer;text-align:left}.whiteboard-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;color:var(--accent-hover);background:var(--accent-soft);border-radius:6px}.whiteboard-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.whiteboard-copy strong,.whiteboard-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whiteboard-copy strong{color:var(--ink);font-size:13px;font-weight:700}.whiteboard-copy small{color:var(--subtle);font-size:10px}.history-indicator{padding:3px 6px;color:var(--green);background:var(--green-soft);border-radius:4px;font-size:9px;font-weight:760;text-transform:uppercase}.dialog-state{min-height:180px;display:flex;align-items:center;justify-content:center;gap:9px;padding:24px;color:var(--muted);text-align:center;font-size:13px}.dialog-state.is-error{color:var(--accent-hover)}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1150px){.workspace-grid{grid-template-columns:224px minmax(0,1fr) 280px}.status-badge{max-width:145px}.artifact-panel{padding-inline:15px}}.auth-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--bg);color:var(--text)}.auth-card{display:flex;flex-direction:column;align-items:center;gap:24px;padding:48px 40px;max-width:380px;width:100%;border-radius:16px;background:var(--bg-card);border:1px solid var(--border);box-shadow:0 8px 32px #0000004d}.auth-brand{display:flex;flex-direction:column;align-items:center;gap:12px}.auth-brand img{filter:drop-shadow(0 2px 8px rgba(0,0,0,.2))}.auth-brand h1{margin:0;font-size:1.5rem;font-weight:700;color:var(--text);letter-spacing:-.02em}.auth-field{width:100%}.auth-input{width:100%;padding:12px 16px;font-size:1rem;background:var(--bg);border:1px solid var(--border);border-radius:10px;color:var(--text);outline:none;transition:border-color .15s ease;box-sizing:border-box}.auth-input:focus{border-color:var(--accent-hover)}.auth-input.is-error{border-color:var(--accent-hover)}.auth-error{font-size:.85rem;color:var(--accent-hover);text-align:center}.auth-submit{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 16px;font-size:1rem;font-weight:600;color:#fff;background:var(--accent-hover);border:none;border-radius:10px;cursor:pointer;transition:background .15s ease,opacity .15s ease}.auth-submit:hover:not(:disabled){background:#e5534a}.auth-submit:disabled{opacity:.5;cursor:not-allowed}@media(max-width:620px){.auth-card{padding:32px 24px}}@media(max-width:940px){.workspace-grid{grid-template-columns:224px minmax(0,1fr)}.artifact-panel{display:none}}@media(max-width:760px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.history-toggle{display:inline-flex}.history-sidebar{position:fixed;z-index:35;top:60px;bottom:0;left:0;width:min(286px,calc(100vw - 48px));transform:translate(-100%);visibility:hidden;transition:transform .16s ease;box-shadow:18px 0 40px #00000047}.history-sidebar.is-open{transform:translate(0);visibility:visible}.history-backdrop{position:fixed;z-index:30;inset:60px 0 0;width:100%;height:auto;padding:0;background:#0000007a;border:0;opacity:0;pointer-events:none}.history-backdrop.is-open{display:block;opacity:1;pointer-events:auto}.history-delete{opacity:1}}@media(max-width:620px){.app-header{height:56px;padding:0 10px}.brand{gap:7px;font-size:17px}.brand img{width:32px;height:32px}.header-start,.header-actions{gap:5px}.workspace-grid{height:calc(100vh - 56px);height:calc(100dvh - 56px)}.history-sidebar{top:56px}.history-backdrop{inset:56px 0 0}.status-group{display:none}.command-button{width:34px;min-width:34px;min-height:34px;padding:0;font-size:0}.chat-column{grid-template-rows:44px minmax(0,1fr) auto}.chat-titlebar{padding:0 12px}.message-list{width:calc(100% - 26px);padding:26px 0 38px}.message-body{max-width:90%}.empty-state{width:calc(100% - 26px);justify-content:flex-start;padding-top:46px}.empty-state>img{width:60px;height:60px}.empty-state h1{margin-bottom:17px;font-size:24px}.suggestion-grid{grid-template-columns:1fr}.suggestion-grid button{min-height:58px;align-items:center}.composer{padding:8px 9px 10px}.mode-segment{width:100%}.mode-segment button{min-width:0;flex:1;justify-content:center;padding:0 4px}.textarea-frame{min-height:64px}.modal-backdrop{align-items:flex-end;padding:0}.whiteboard-dialog{width:100%;max-height:calc(100dvh - 28px);border-right:0;border-bottom:0;border-left:0;border-radius:8px 8px 0 0}.whiteboard-search{grid-template-columns:auto minmax(0,1fr) 34px}.whiteboard-search>button[type=submit]{display:none}.history-indicator{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
