/* Studio: desktop workspace approved 27 October 2026. */
:root{color-scheme:light;--bg:#fff;--sidebar:#eef2f7;--surface:#f6f8fb;--raised:#f2f5f9;--line:#dde3ec;--text:#243044;--muted:#5d6b80;--accent:#365f9e;--selected:#dbe5f4;--sidebar-width:264px;--panel-width:520px;--viewport-height:100dvh;font:13px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#b1bac9 transparent;caret-color:var(--accent)}
[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button,select,summary{cursor:pointer}button{border:1px solid var(--line);background:#fff;padding:7px 11px;border-radius:8px;line-height:1.4}button:hover{background:#e9eef6}button:disabled{opacity:.5;cursor:default}.primary{background:var(--accent);color:#fff;border-color:transparent;font-weight:600}.primary:hover{background:#2b4f86}a{color:var(--accent);text-underline-offset:3px}input,select,textarea{background:#fff;border:1px solid #c8d0dd;border-radius:8px;padding:9px;width:100%;min-width:0}input::placeholder,textarea::placeholder{color:#65738a}textarea{resize:vertical;line-height:1.6}svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}::selection{background:#d1e0f4;color:#203c66}h1,h2,h3,p{margin-top:0}h1{font-size:18px;line-height:1.4;font-weight:600}h2{font-size:18px;font-weight:600}h3{font-size:14px;font-weight:600}p{color:var(--muted)}label{display:grid;gap:6px;font-size:12px}summary{padding:6px 0}summary:hover{color:var(--accent)}.quiet{background:transparent;border:0;color:var(--muted)}.quiet:hover{background:#e4eaf3;color:var(--text)}.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:7px;min-width:32px;min-height:32px;border:0;background:transparent;color:var(--muted);text-decoration:none}.icon-button:hover{color:var(--accent);background:#e4eaf3}.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}.mobile-only{display:none}kbd{font:11px/1.5 inherit;color:var(--muted)}
.app-header{height:52px;padding:15px 24px;background:var(--sidebar);border-bottom:1px solid var(--line)}.brand{font-size:15px;font-weight:650;color:var(--text);text-decoration:none;letter-spacing:-.025em}body:has(#workspace:not([hidden]))>.app-header{display:none}#workspace{height:var(--viewport-height);display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.sidebar{position:relative;display:flex;flex-direction:column;min-height:0;background:var(--sidebar);border-right:1px solid var(--line);padding:0 8px 10px;gap:9px}.sidebar-brand{height:52px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 9px}.main-nav{display:grid;gap:2px}.nav-button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:transparent;padding:9px 11px;font-size:13px;min-height:34px}.nav-button kbd,.nav-button small{margin-left:auto}.nav-button small{font-size:11px;color:#8b5b12;background:#fbf1de;border-radius:4px;padding:0 4px}.nav-button small:empty{display:none}.nav-button[aria-current=true]{background:var(--selected);color:#2b4f86}.side-scroll{overflow:auto;flex:1;min-height:0;margin-top:6px}.section-label{font-size:11.5px;font-weight:550;color:var(--muted);margin:14px 10px 7px}.project-heading{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.project-heading .section-label{margin-top:7px}.project-heading button{min-width:28px;min-height:28px}.session-heading{display:flex;align-items:center;gap:5px;padding:0 10px 5px}.session-heading select{border:0;padding:3px 0;background:transparent;font-size:11.5px;width:auto;color:var(--muted)}#session-count{font-size:11px;color:var(--muted);margin-left:auto}.sidebar nav button{border:0;background:transparent;text-align:left;width:100%;margin:1px 0;border-radius:7px}.sidebar nav button:hover{background:#e4eaf3}.sidebar nav button[aria-current=true]{background:var(--selected);color:#2b4f86}.project-row{display:flex;align-items:center;gap:1px}.sidebar nav .project-disclosure{width:22px;flex:none;padding:5px 4px;display:flex;align-items:center;justify-content:center;color:var(--muted);height:32px}.project-disclosure svg{width:12px;height:12px}.project-disclosure[aria-expanded=true] svg{transform:rotate(90deg)}.sidebar nav .project-select{display:flex;gap:8px;align-items:center;padding:5px 5px 5px 0;min-width:0;font-weight:550;font-size:12.5px}.project-select>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-count{margin-left:auto;font-size:11px;font-weight:400;color:var(--muted)}.project-badge{display:inline-grid;place-items:center;width:23px;height:23px;flex:none;background:white;border:1px solid var(--line);border-radius:6px;font-size:12px;font-weight:600;color:#3c5d8d}.project-sessions{padding-bottom:7px}.sidebar nav .chat-row{display:flex;align-items:center;gap:7px;padding:6px 10px 6px 37px;min-height:29px;font-size:12.5px;position:relative}.chat-row>span:not(.session-dot):not(.project-badge){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-row .session-dot{margin-left:auto}.session-dot{display:inline-block;width:6px;height:6px;flex:none;border-radius:50%;background:transparent}.session-dot[data-status=running],.session-dot[data-status=starting],.session-dot[data-status=queued]{background:#6c8ab6}.session-dot[data-status=attention]{background:#b87b24}.session-dot[data-status=failed]{background:#a34b42}.sidebar nav .more-chats{padding:4px 10px 4px 37px;font-size:11px;color:var(--muted)}#pinned-chats .chat-row{padding-left:9px}.nav-empty,.project-empty{font-size:12px;padding:8px 10px 8px 35px}.aside-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:7px}#connection{margin:4px 10px 0;font-size:11px;color:var(--muted)}#project-form{padding:10px;background:#fff;border:1px solid var(--line);border-radius:8px;margin:5px}#project-form p{font-size:11px;margin:8px 0}#project-form>div{display:flex;gap:6px}
.resizer{position:absolute;width:7px;z-index:6;cursor:col-resize;touch-action:none;top:0;bottom:0}.resizer:hover,.resizer:focus-visible{background:#365f9e2b}.side-resizer{right:-4px}.panel-resizer{left:-4px}#workspace[data-collapsed=true]{grid-template-columns:60px minmax(0,1fr)}#workspace[data-collapsed=true] .sidebar-brand{padding:0;justify-content:center}#workspace[data-collapsed=true] .sidebar-brand .brand,#workspace[data-collapsed=true] .nav-button>span,#workspace[data-collapsed=true] .nav-button>kbd,#workspace[data-collapsed=true] .nav-button>small,#workspace[data-collapsed=true] .section-label,#workspace[data-collapsed=true] #new-project,#workspace[data-collapsed=true] .session-heading,#workspace[data-collapsed=true] .project-disclosure,#workspace[data-collapsed=true] .project-count,#workspace[data-collapsed=true] .project-select>span:nth-child(2),#workspace[data-collapsed=true] .project-sessions,#workspace[data-collapsed=true] #pinned-section,#workspace[data-collapsed=true] #connection,#workspace[data-collapsed=true] #sidebar-resizer{display:none}#workspace[data-collapsed=true] .nav-button{justify-content:center;padding:10px 5px}#workspace[data-collapsed=true] .project-select{justify-content:center;padding:7px 0}#workspace[data-collapsed=true] .project-badge{width:33px;height:33px;font-size:14px;border-radius:10px}#workspace[data-collapsed=true] .project-row.selected-project .project-badge{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
#conversation-view{display:flex;flex-direction:column;min-height:0;min-width:0}.conversation-top,.scene-header{height:52px;flex:none;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 18px}.conversation-heading{min-width:0;flex:1}.conversation-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0}.conversation-breadcrumb>button{padding:4px 0;border:0;background:transparent;color:var(--muted);max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.conversation-breadcrumb>span{color:#a2abba}.conversation-heading h1{margin:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.conversation-actions{display:flex;align-items:center;gap:4px;flex:none}.voice-button{display:flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-size:12px;padding:7px;border-radius:7px}.panel-toggle{display:flex;align-items:center;gap:7px;background:transparent;border:0;font-size:12px;padding:7px 10px}.panel-toggle[aria-expanded=true],#pin-conversation[aria-pressed=true]{background:#eaf0f9;color:#2b4f86}.menu{position:relative}.menu summary{list-style:none;display:grid;place-items:center;padding:7px;border-radius:7px}.menu summary::-webkit-details-marker{display:none}.popover{position:absolute;top:34px;right:0;min-width:170px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px;z-index:10;box-shadow:0 10px 30px #233b5a20}.popover button{display:block;width:100%;text-align:left;background:transparent;border:0}.popover button:hover{background:var(--surface)}.rename-form{display:flex;gap:8px;padding:12px 20px}.rename-form input{flex:1}.inline-notice{padding:9px 22px;background:#fbf1de;font-size:12px;color:#785321}.conversation-layout{display:flex;flex:1;min-height:0;min-width:0;position:relative}.chat-workspace{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}#messages{overflow:auto;overscroll-behavior:contain;flex:1;min-height:60px;padding:30px max(30px,calc((100% - 720px)/2)) 20px;scroll-padding:20px}.message{margin:0 auto 30px;max-width:72ch;overflow-wrap:anywhere;font-size:15px;line-height:1.65}.message>strong{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:12px;font-weight:600}.message>strong::before{content:'tr';font-family:Georgia,serif;background:#eef2f8;color:#45648f;border-radius:6px;width:26px;height:26px;display:inline-grid;place-items:center;font-size:15px}.message.user{background:#e9eef6;border-radius:14px;padding:12px 16px;max-width:85%;width:fit-content;margin-left:auto;margin-right:0}.message.user>strong{display:none}.message.user p{color:var(--text);white-space:pre-wrap;margin:0}.prose{font-size:15px;line-height:1.7}.prose p,.prose li{color:var(--text)}.prose p{margin:8px 0 14px}.prose h1,.prose h2,.prose h3{font-size:18px;margin:24px 0 12px}.prose ul,.prose ol{padding-left:22px}.prose blockquote{margin:16px 0;padding:0 0 0 15px;border-left:1px solid #99adc9;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--raised);border-radius:8px;padding:14px;max-height:420px;overflow:auto;font:12px/1.7 ui-monospace,Menlo,monospace}code{font-family:ui-monospace,Menlo,monospace;font-size:.9em}.prose p code,.prose li code{background:#edf1f6;padding:2px 4px;border-radius:4px}.message details{font-size:12px;color:var(--muted);margin:13px 0}.message-tools{display:flex;gap:5px;margin-top:8px;opacity:0}.message:hover .message-tools,.message:focus-within .message-tools{opacity:1}.message-tools button{padding:4px 7px;font-size:11px;background:transparent;border:0;color:var(--muted)}.working-message{font-size:12px;color:var(--accent);margin:16px 0}.message-error{color:#9b362d!important;background:#fbecea;padding:12px;border-radius:8px}.approval{background:#fffbf3;border:1px solid #e3d5b6;border-radius:12px;padding:17px;margin:16px 0}.approval>strong{font-size:13px}.approval label{margin:12px 0}.approval button{margin:8px 8px 0 0}.approval-options{display:flex;gap:6px;flex-wrap:wrap}.approval-options button{background:#fff;font-size:12px}.response-progress{margin:0 0 16px}.response-final{margin-top:18px}.response-final:first-of-type{margin-top:0}
.empty{text-align:center;max-width:58ch;margin:30px auto}.empty .project-badge{width:48px;height:48px;border-radius:13px;font-size:22px;margin-bottom:19px}.empty h2{font-size:30px;letter-spacing:-.03em;margin:0 0 12px}.empty p{font-size:13px;line-height:1.8;margin:0 auto;max-width:55ch}#conversation-view[data-empty=true] .chat-workspace{justify-content:center;padding-bottom:7vh}#conversation-view[data-empty=true] #messages{flex:none;max-height:45%;padding-top:10px;padding-bottom:0}#conversation-view[data-empty=true] #compose{width:100%;max-width:820px;margin:0 auto}#conversation-view[data-empty=true] #prompt{min-height:65px}
#compose{padding:9px max(30px,calc((100% - 760px)/2)) max(16px,env(safe-area-inset-bottom));flex:none;background:#fff}.composer-settings{display:flex;gap:6px;align-items:center;margin-bottom:8px;min-width:0}.composer-settings select{padding:5px 20px 5px 9px;width:auto;max-width:200px;border:1px solid var(--line);border-radius:15px;font-size:11.5px;background:white}.composer-settings label{flex:none}#mode-hint{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:4px}.composer-box{border:1px solid #c9d1df;border-radius:18px;padding:12px 12px 9px;box-shadow:0 3px 10px #20344b06;background:#fff}.composer-box:focus-within{border-color:#6d89af}#prompt{border:0;background:transparent;resize:vertical;min-height:52px;max-height:180px;font-size:15px;padding:0 4px 7px;line-height:1.6}#prompt:focus-visible{outline:0}.compose-bottom{display:flex;align-items:center;gap:5px}.keyboard-hint{font-size:11px;color:var(--muted);margin-left:auto;white-space:nowrap}.compose-bottom #send{font-size:12px;padding:7px 10px;margin-left:5px}.compose-bottom #stop{font-size:12px}.composer-hint{font-size:12px;margin:8px 3px 0}.attachments{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;max-height:150px;overflow:auto}.attachment{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:9px 10px;max-width:100%;min-width:0}.attachment>span{min-width:0}.attachment strong,.attachment small{display:block;overflow-wrap:anywhere}.attachment strong{font-size:12px;font-weight:500}.attachment small{font-size:11px;color:var(--muted)}.attachment button{border:0;background:transparent;padding:6px}.attachment svg{width:15px;height:15px}.message-attachments{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}.message-attachments>button{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:220px;background:transparent;text-align:left;font-size:12px;padding:10px}.message-attachments img{width:100%;max-height:150px;object-fit:contain;border-radius:4px}.message-attachments span{overflow-wrap:anywhere;min-width:0}.message-attachments small{font-size:11px;color:var(--muted)}#queue{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:10px;font-size:12px}#queue>div{display:flex;align-items:center;gap:8px;padding:5px}#queue span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#queue button{font-size:11px;padding:4px 7px}
#result{margin:0 max(30px,calc((100% - 760px)/2)) 6px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:10px;flex:none}#result>div:first-child{flex:1;min-width:0}#result strong{font-size:12px}#delivery{font-size:11px;margin:3px 0 0}.result-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.result-actions button,.result-actions a{font-size:11px}.result-card{display:flex;align-items:center;gap:14px;border:1px solid #c9d4e4;background:#fbfcff;border-radius:13px;padding:16px;width:min(100%,480px);margin:17px 0 4px;text-align:left}.result-card svg{width:30px;height:30px;padding:4px;background:#edf2f9;border-radius:7px;color:#5675a1}.result-card strong,.result-card small{display:block}.result-card strong{font-size:13px}.result-card small{font-size:11px;color:var(--muted);margin-top:4px}
.inspector{width:var(--panel-width);max-width:calc(100% - 420px);min-width:360px;flex:none;min-height:0;display:flex;flex-direction:column;background:#fff;border-left:1px solid var(--line);position:relative}.inspector-heading{height:52px;min-height:52px;display:flex;align-items:center;gap:3px;padding:0 9px 0 18px}.inspector-heading h2{font-size:13px;margin:0;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inspector-tabs{display:flex;gap:3px;padding:7px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.inspector-tabs button{border:0;background:transparent;color:var(--muted);font-size:12px;padding:6px 9px;border-radius:6px}.inspector-tabs button[aria-selected=true]{background:#eaf0f9;color:#2b4f86;font-weight:550}.version-picker{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:8px 14px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}.version-picker select{font-size:11px;width:auto;max-width:80%;padding:5px 8px}.inspector-content{padding:18px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;font-size:12px}.inspector-content h3{font-size:13px}.inspector-content p{font-size:12px;line-height:1.7}.preview-content{flex:1;min-height:0;display:flex;padding:16px;background:#f2f5f9}#result-viewer{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}#result-view-status{font-size:11.5px;line-height:1.6;margin:0 0 10px}#result-entry{font-size:12px;margin-bottom:10px}#result-frame{display:block;flex:1;width:100%;min-height:160px;border:1px solid var(--line);border-radius:12px;background:#fff}#result-image{max-width:100%;max-height:100%;object-fit:contain;min-height:0;margin:auto}#result-text{overflow:auto;background:white;border:1px solid var(--line);border-radius:12px;padding:24px;flex:1;min-height:0}.inspector-footer{display:flex;align-items:center;gap:12px;min-height:50px;border-top:1px solid var(--line);padding:9px 12px}.inspector-footer span{flex:1;color:var(--muted);font-size:11px;min-width:0}.inspector-footer button{font-size:12px}.conversation-layout[data-expanded=true]>.chat-workspace{display:none}.conversation-layout[data-expanded=true]>.inspector{max-width:100%;width:100%;border-left:0}.conversation-layout[data-expanded=true] .panel-resizer{display:none}.files-toolbar{display:flex;gap:10px;align-items:center}.files-toolbar p{margin:0;flex:1}#file-search{font-size:12px;margin:12px 0}.file-list{border-bottom:1px solid var(--line);padding-bottom:12px;max-height:250px;overflow:auto}.file-list button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;padding:7px 5px;font-size:12px;overflow-wrap:anywhere}.file-list button svg{width:15px;height:15px;color:var(--muted)}.file-list button:hover,.file-list button[aria-current=true]{background:var(--surface)}.file-preview-heading{display:flex;align-items:flex-start;gap:8px;margin-top:18px}.file-preview-heading h3{font:12px/1.6 ui-monospace,Menlo,monospace;overflow-wrap:anywhere;flex:1}.file-preview-heading button{font-size:11px;padding:4px 6px}#file-content{font-size:12px;white-space:pre;overflow-wrap:normal;max-height:none;min-height:90px}.change{padding:8px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.change pre{white-space:pre;overflow-wrap:normal;font-size:12px}.transfer-review{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.transfer-review button{font-size:12px;margin:6px 6px 6px 0}#transfer-status{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin-top:13px;color:var(--muted)}#transfer-diff{white-space:pre;overflow:auto;max-height:380px;font-size:11px}#transfer-target{overflow-wrap:anywhere}
.scene{min-width:0;min-height:0;display:flex;flex-direction:column}.scene-header h1{font-size:14px;margin:0;flex:1}.scene-header button{font-size:12px}.scene-body{padding:30px clamp(28px,5vw,80px);overflow:auto;flex:1;min-height:0}.scene-title{font-size:25px;letter-spacing:-.025em;margin-bottom:6px}.scene-body>p{font-size:13px;max-width:75ch;margin-bottom:22px}#project-intro{display:flex;gap:17px;margin-bottom:26px}#project-intro .project-badge{width:50px;height:50px;border-radius:13px;font-size:24px}#project-intro h2{font-size:26px;margin:0 0 3px;letter-spacing:-.025em}#project-intro p{font-size:12px;margin:0;line-height:1.8}#project-compose{position:relative;border:1px solid #c9d1df;border-radius:17px;padding:12px;margin-bottom:28px;display:grid;justify-items:end}#project-compose textarea{border:0;resize:vertical;font-size:15px;padding:0 4px 10px}#project-compose textarea:focus-visible{outline:0}#project-compose:focus-within{border-color:#6d89af}#project-compose button{font-size:12px}.project-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,30%);gap:28px}.project-columns h2{font-size:13px;margin:0}.project-list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.project-list-heading select{font-size:11px;padding:5px 8px;border:0;background:var(--surface);width:auto}.project-chat{display:flex;gap:12px;padding:15px 3px;width:100%;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:left}.project-chat>span:first-child{flex:1;min-width:0}.project-chat strong{font-size:13px;font-weight:600}.project-chat small{display:block;font-size:11.5px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-chat .chat-time{font-size:11px;color:var(--muted);flex:none}.project-info{border:1px solid var(--line);border-radius:13px;padding:17px;margin-bottom:14px}.project-info h2{margin-bottom:10px}.project-info p{font-size:12px;line-height:1.8}.project-info>button{font-size:12px}#project-results .result-card{padding:10px;margin:8px 0}.project-info .result-card strong{font-size:12px}.project-info .result-card svg{width:24px;height:24px}
#activity-filter,#library-project{width:auto;font-size:12px;padding:7px 10px;margin:0 0 24px}#activity-list h3{font-size:12px;color:var(--muted);margin:25px 0 12px}.activity-row{display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:10px}.activity-row[data-kind=attention]{background:#fffcf5;border-color:#e6d6b2}.activity-copy{flex:1;min-width:0}.activity-copy strong{font-size:13px;display:block}.activity-copy>span{font-size:12px;color:var(--muted)}.activity-copy p{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0}.activity-row>button{font-size:12px}.activity-status{font-size:11px;color:var(--muted)}.activity-empty{padding:30px 0}.activity-empty h2{font-size:20px}#library-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.library-card{padding:18px;text-align:left;background:white;border-radius:13px;display:flex;flex-direction:column;gap:9px;min-width:0}.library-card svg{width:32px;height:32px;padding:5px;border-radius:7px;background:var(--surface);color:#5675a1}.library-card strong{font-size:14px;overflow-wrap:anywhere}.library-card p{font-size:12px;line-height:1.8;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.library-card small{font-size:11px;color:var(--muted);margin-top:auto}.library-card:hover{border-color:#9cafca}
#devices-view{min-width:0;overflow:auto;padding:30px clamp(24px,5vw,80px);max-width:1000px}#devices-view>h1{font-size:26px;margin-top:24px}#devices-view>p{max-width:70ch}.preferences{border-bottom:1px solid var(--line);padding:5px 0 18px;margin-bottom:20px}.preferences label{max-width:300px;display:flex;align-items:center;gap:20px}.preferences select{width:auto}.preferences p{font-size:12px;margin:9px 0 0}.account-details{margin:16px 0 24px}.account-details summary{font-size:14px;font-weight:550}.account-popover{max-width:440px;padding:15px;background:var(--surface);border-radius:10px;margin-top:8px}.account-popover form{display:grid;gap:12px}.device{display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:17px 0}.device>div{flex:1;min-width:0}.device p{font-size:12px;margin:3px 0}.device button{font-size:12px}#logout{margin:20px 0}#pair-form{display:grid;gap:14px;max-width:420px}#pair-result{margin:20px 0;max-width:700px}#pair-code{user-select:all}#login{padding:30px;height:calc(var(--viewport-height) - 52px);overflow:auto}.login-form{max-width:440px;margin:10vh auto}.login-form h1{font-size:28px;letter-spacing:-.025em}.login-form p{line-height:1.9;margin-bottom:22px}.login-form button{width:100%;margin-top:16px}
dialog{background:#fff;color:var(--text);border:1px solid #c7d1df;border-radius:14px;padding:22px;max-height:85dvh;width:min(640px,calc(100vw - 32px));box-shadow:0 20px 80px #233b5a26}dialog::backdrop{background:#23334b50}dialog header,.command-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}dialog h2,.command-heading h2{font-size:18px;margin:0}#command-query{font-size:15px;margin-bottom:12px}#command-results{max-height:48dvh;overflow:auto}#command-results button{display:flex;justify-content:space-between;gap:16px;align-items:center;width:100%;border:0;background:transparent;padding:12px 10px;text-align:left;font-size:13px}#command-results button:hover,#command-results button:focus-visible{background:var(--surface)}#command-results small{font-size:11px;color:var(--muted);max-width:45%;text-align:right}.command-hint{font-size:11px;margin:15px 0 0}#checks-dialog .inspector-content{padding:0}#check-form{display:grid;gap:14px}#check-form button{justify-self:start}#checks{margin-top:20px}.check{font-size:12px;margin:12px 0}#attachment-viewer{width:min(900px,calc(100vw - 32px))}#attachment-title{overflow-wrap:anywhere;font-size:16px}#attachment-image{max-width:100%;max-height:65dvh;object-fit:contain;display:block;margin:15px auto}#attachment-text{max-height:65dvh}#attachment-download{display:inline-block;margin-top:15px}#error,#completion-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:13px 18px;max-width:min(700px,90vw);width:max-content;z-index:30;border-radius:10px;box-shadow:0 8px 24px #233b5a24;font-size:13px}#error{background:#fbecea;border:1px solid #dfafa8;color:#8d3028;cursor:pointer}#completion-toast{background:#29384f;color:#fff;display:flex;align-items:center;gap:18px}#completion-toast button{background:#ffffff18;color:#fff;border:0;font-size:12px}.panel-scrim{display:none}
@media(min-width:901px){.conversation-layout:has(.inspector:not([hidden])) #messages{padding-left:36px;padding-right:36px}.conversation-layout:has(.inspector:not([hidden])) #compose{padding-left:36px;padding-right:36px}.conversation-layout:has(.inspector:not([hidden])) #result{margin-left:36px;margin-right:36px}.conversation-layout:has(.inspector:not([hidden])) #result>div:first-child{display:none}.conversation-layout:has(.inspector:not([hidden])) #result{display:none}}
@media(max-width:1200px){.conversation-breadcrumb>button{max-width:130px}.scene-body{padding:28px}.project-columns{gap:20px}.activity-status{display:none}}
@media(max-width:900px){#workspace,#workspace[data-collapsed=true]{grid-template-columns:minmax(0,1fr)}.mobile-only{display:inline-flex}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(310px,86vw);z-index:20;transform:translateX(-100%);visibility:hidden}.sidebar[data-expanded=true]{transform:none;visibility:visible}.sidebar-brand #collapse-sidebar{display:none}.side-resizer,.panel-resizer{display:none}.panel-scrim{position:fixed;inset:0;z-index:19;background:#24304466;border:0;border-radius:0}.panel-scrim:not([hidden]){display:block}.inspector{position:fixed;right:0;top:0;bottom:0;width:min(580px,100vw);max-width:100vw;min-width:0;z-index:22;box-shadow:-12px 0 40px #24304420}.conversation-layout[data-expanded=true]>.chat-workspace{display:flex}.conversation-top{padding:0 10px}.conversation-actions{gap:0}.conversation-breadcrumb>button,.conversation-breadcrumb>span{display:none}.conversation-heading h1{font-size:13px}.conversation-actions .voice-button span,.panel-toggle span{display:none}.project-columns{grid-template-columns:1fr}.project-columns>aside{display:grid;grid-template-columns:1fr 1fr;gap:14px}.scene-body{padding:24px}button,.icon-button,.nav-button{min-height:40px}#messages{padding:24px}#compose{padding:10px 20px 18px}.message-tools{opacity:1}.composer-settings select{max-width:180px}.resizer{display:none}}
@media(max-width:600px){#mode-hint{display:none}#messages{padding:20px 18px}#compose{padding:8px 12px max(12px,env(safe-area-inset-bottom))}#prompt{font-size:16px;max-height:140px}.keyboard-hint{display:none}.compose-bottom #send{margin-left:auto}.message.user{max-width:95%}.conversation-top{gap:4px}.conversation-actions .icon-button,.panel-toggle{padding:7px;min-width:34px}.scene-body{padding:20px}.project-columns>aside{grid-template-columns:1fr}#result{margin:0 16px}#delivery{display:none}.activity-row{padding:14px;gap:10px}.activity-copy strong{font-size:12px}#library-list{grid-template-columns:1fr}.empty h2{font-size:26px}#conversation-view[data-empty=true] .chat-workspace{padding-bottom:4vh}.scene-title{font-size:23px}.inspector-heading{padding-left:12px}.scene-header{padding:0 14px}.scene-header button{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.sidebar{transition:transform .16s ease-out,visibility .16s ease-out}.composer-box{transition:border-color .15s ease-out}.library-card{transition:border-color .15s ease-out}}

/* Frozen preview thumbnails share the existing sandboxed result endpoint. */
.result-thumb{display:block;position:relative;flex:0 0 92px;width:92px;height:70px;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--surface);pointer-events:none;text-align:left}
.result-thumb iframe{display:block;width:920px;height:700px;border:0;transform:scale(.1);transform-origin:top left;background:white}
.result-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-text{display:flex;flex-direction:column;gap:8px;padding:9px;font-size:8px;line-height:1.5;color:var(--muted)}.thumb-text b{color:var(--text);font-size:9px}
.result-card>span:last-child{min-width:0}.result-card small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.library-card .result-thumb{flex:0 0 150px;width:100%;height:150px;margin-bottom:16px;border-radius:8px}.library-card .result-thumb iframe{width:1000px;height:600px;transform:scale(.25)}.library-card .thumb-text{padding:16px;font-size:11px;gap:12px}.library-card .thumb-text b{font-size:13px}
.project-info .result-card{gap:10px}.project-info .result-thumb{flex-basis:64px;width:64px;height:54px}.project-info .result-thumb iframe{transform:scale(.075)}

/* Project context and independent conversation branches use the Studio controls. */
#project-instructions-summary{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}
#project-instructions-form{display:grid;gap:10px;margin-top:12px}#project-instructions-form label{font-size:12px;font-weight:600}#project-instructions-form textarea{min-height:160px;resize:vertical}#project-instructions-form p{margin:0;font-size:11px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.project-material{display:flex;align-items:center;gap:6px;margin:10px 0}.project-material .message-attachments{min-width:0;flex:1}.project-material button{font-size:11px;overflow-wrap:anywhere}.project-material>button{flex-shrink:0}#add-project-material{margin:4px 0 8px}
.branch-origin{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:10px 24px;font-size:12px;color:var(--muted)}.branch-origin button{font-size:11px}.branch-ready{color:var(--muted);font-size:13px}.branch-history>summary{color:var(--muted);font-size:12px;margin-bottom:24px}.branch-history{border-bottom:1px solid var(--line);margin-bottom:24px}.branch-history .message{margin-bottom:24px}.message.user .message-tools{justify-content:flex-end}.message-tools{flex-wrap:wrap}#message-edit-text{display:block;width:100%;min-height:180px;margin-top:8px;resize:vertical}#message-edit-form>p{font-size:13px;color:var(--muted);max-width:65ch}#branch-pending{display:flex;align-items:center;gap:12px}
.branch-origin,#branch-pending{flex:none}
