:root{color-scheme:light;--bg:#faf9f5;--sidebar:#f0eee6;--paper:#fffefa;--text:#292824;--muted:#77756c;--line:#dedbd2;--hover:#e8e5dc;--accent:#c26745;--accent-hover:#ad5638;--green:#537860;--red:#ac4942;--font:"Helvetica Neue","PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;--serif:Georgia,"Songti SC","Noto Serif CJK SC",serif;--sidebar-width:252px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 var(--font);min-width:340px}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{border:0;color:inherit;background:none;cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #a7936e;outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:500}svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}i{display:inline-flex;font-style:normal}.hidden{display:none!important}input,textarea,select{color:var(--text);background:var(--paper);border:1px solid var(--line);border-radius:8px}textarea{resize:none}input:focus,textarea:focus,select:focus{outline:none;border-color:#aaa395}textarea::placeholder,input::placeholder{color:#969186}.icon-button{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;color:#6e6b62;font-size:18px}.icon-button:hover{background:var(--hover)}.primary{background:var(--accent);color:#fff;border-radius:9px;padding:10px 17px;font-weight:500}.primary:hover,.send-button:hover{background:var(--accent-hover)}.secondary{border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:9px 14px;font-size:13px}.secondary:hover{background:var(--hover)}.text-button{color:var(--muted);font-size:12px;padding:7px 0}.text-button:hover{color:var(--text)}.full{width:100%}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);padding:18px 12px 10px;background:var(--sidebar);display:flex;flex-direction:column;z-index:30;border-right:1px solid #e7e4db;transition:transform .18s}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;padding:0 8px 24px}.brand{font:600 25px/1 var(--serif);letter-spacing:-1px;display:inline-flex;align-items:baseline;gap:7px}.brand span{font:11px var(--font);letter-spacing:0;color:var(--muted)}.new-chat{display:flex;align-items:center;gap:9px;text-align:left;margin:0 4px 15px;padding:8px 9px;border-radius:7px;font-weight:500;font-size:14px}.new-chat>span{display:grid;place-items:center;border:1px solid #c6bdb0;background:#faf8f1;color:#a45c40;border-radius:50%;width:22px;height:22px;font-size:20px;font-weight:300}.new-chat:hover,.nav-item:hover,.recent-task:hover,.sidebar-link:hover{background:var(--hover)}.nav-item{display:flex;align-items:center;gap:11px;text-align:left;padding:9px 12px;margin:1px 0;width:100%;border-radius:7px;font-size:13px;color:#55544e}.nav-item.active{background:#e5e2d8;color:#24231f}.nav-item svg{width:17px;height:17px}.count{margin-left:auto;font-size:11px;color:#8b877e}.recent-heading{margin:25px 12px 11px;font-size:11px;color:#8e897d}.recent-tasks{overflow:auto;flex:1;min-height:100px;scrollbar-width:thin;padding-bottom:20px}.recent-tasks>p{padding:10px 12px;color:#989185;font-size:12px}.recent-task{display:block;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:9px 12px;width:100%;border-radius:6px;color:#666158;font-size:12px}.recent-task.selected{background:#e5e2d8;color:#302b24}.sidebar-bottom{padding-top:10px}.sidebar-link{display:flex;width:100%;justify-content:space-between;text-align:left;padding:7px 12px;border-radius:6px;color:#797367;font-size:12px}.engine-inline{display:flex;gap:6px;align-items:center;margin:15px 12px;color:#8d887d;font-size:10px}.engine-inline>span:last-child{margin-left:auto}.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#68836b}.profile{display:flex;align-items:center;gap:10px;padding:11px 8px 5px;border-top:1px solid var(--line);width:100%;text-align:left}.avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#ddd6c7;color:#695a43;font:14px var(--serif)}.profile>span:nth-child(2){flex:1}.profile b{font-size:12px;font-weight:500}.profile small{display:block;font-size:10px;color:#9a9285;margin-top:2px}.profile>span:last-child{color:#8b8375}.app-shell{margin-left:var(--sidebar-width);transition:margin .18s}.topbar{height:64px;padding:0 25px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--bg);position:relative;z-index:10}.header-left{display:flex;gap:10px;align-items:center;font-size:13px}.header-chevron{font-size:15px;color:#aaa296}.top-actions{display:flex;align-items:center;gap:15px}.private-badge{display:flex;align-items:center;gap:5px;color:#969084;font-size:11px}.private-badge svg{width:11px;height:11px}.header-file-button{display:none;align-items:center;gap:6px;font-size:12px;color:#6c665b;padding:6px 9px;border-radius:7px}.header-file-button:hover{background:var(--hover)}body[data-page=chat] .header-file-button{display:flex}#chat-file-count{font-size:10px;color:#969084}#mobile-menu{display:none}body.sidebar-collapsed .sidebar{transform:translateX(-100%)}body.sidebar-collapsed .app-shell{margin-left:0}body.sidebar-collapsed #mobile-menu{display:grid}#sidebar-backdrop{display:none}
main{padding:0 28px}.page{display:none}.page.active{display:block}.home-layout{max-width:780px;margin:0 auto;padding:clamp(60px,12vh,140px) 0 35px}.hero{text-align:center;margin-bottom:32px}.greeting-mark{font-size:43px;line-height:1;color:var(--accent);margin-bottom:19px}.hero h1{font:400 38px/1.4 var(--serif);letter-spacing:-1.1px}.hero-copy>p{font-size:15px;color:#8b8375;margin-top:9px}.prompt-launch{border:1px solid #d8d3c8;border-radius:20px;padding:18px 18px 12px;background:var(--paper);box-shadow:0 3px 10px #3a2c1710}.prompt-launch:focus-within{border-color:#b4aa98;box-shadow:0 3px 13px #3a2c1717}.prompt-launch textarea{display:block;width:100%;border:0;background:transparent;box-shadow:none;outline:none;padding:0 2px;font:17px/1.65 var(--serif);min-height:83px}.prompt-bottom{display:flex;align-items:center;gap:10px;margin-top:13px}.home-attachment,.attachment-button{display:flex;align-items:center;gap:7px;cursor:pointer;color:#827b6e;font-size:12px;padding:6px 3px}.home-attachment:hover,.attachment-button:hover{color:var(--text)}.model-label{margin-left:auto;font-size:11px;color:#8f877b;white-space:nowrap}.send-button{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--accent);color:#fff;font-size:21px;line-height:1;margin-left:5px}.feature-grid{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:18px}.feature-card{border:1px solid var(--line);border-radius:9px;text-align:left;padding:11px 15px;background:transparent;display:flex;align-items:center;gap:9px;transition:background .15s}.feature-card:hover{background:#f0ede5;border-color:#c8bfae}.feature-card h3{font-size:12px;font-weight:400}.feature-card .feature-tag,.feature-card>p,.feature-card .feature-bottom{display:none}.feature-illustration{color:#887c68}.feature-illustration svg{width:17px;height:17px}.home-guide{display:block;margin:23px auto 0;color:#9a9285;font-size:11px}.home-guide:hover{color:#665c4c}.home-guide span{margin-left:8px}
.library-page{max-width:980px;margin:32px auto 70px}.page-title{margin:0 0 29px}.page-title h1{font:400 30px/1.4 var(--serif);letter-spacing:-.6px}.page-title p{font-size:13px;color:var(--muted);margin-top:7px}.row-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.template-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.category-tabs{display:flex;gap:5px;flex-wrap:wrap}.category-tabs button{padding:6px 10px;border-radius:6px;color:var(--muted);font-size:12px}.category-tabs button.active{background:#eae6dc;color:#393127}.template-toolbar input{padding:9px 12px;width:215px;font-size:12px;background:transparent}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.template-grid .feature-card{display:grid;grid-template-columns:30px 1fr;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:23px 5px;background:none;gap:5px 10px}.template-grid .feature-illustration{grid-row:span 3;align-self:start;margin-top:3px}.template-grid .feature-illustration svg{width:23px;height:23px}.template-grid .feature-card h3{font-size:15px}.template-grid .feature-card>p{display:block;font-size:12px;color:var(--muted)}.template-grid .feature-card .feature-bottom{display:flex;justify-content:space-between;grid-column:2;font-size:10px;color:#a09889;margin-top:6px}.template-grid .feature-card:hover h3{color:#a6593e}.task-row{display:flex;align-items:center;gap:15px;padding:20px 5px;text-align:left;width:100%;border-bottom:1px solid var(--line)}.task-row:hover{background:#f2efe6}.task-row-icon{color:#a0937c}.task-row-title{flex:1;font-size:14px;min-width:0}.task-row-title small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.task-row>span:last-child{color:#8d8372;font-size:11px}.empty-state{padding:45px 15px;text-align:center;color:#9c9383;font-size:13px}.empty-state b{display:block;margin:8px 0;font-weight:400}.empty-state svg{margin:auto;color:#aea38f}.file-row{display:flex;gap:12px;align-items:center;padding:16px 3px;border-bottom:1px solid var(--line);font-size:13px}.file-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.file-row small{display:block;color:#9d9384;font-size:10px;margin-top:5px}.file-row a{font-size:11px;color:#866a50;white-space:nowrap}.file-ext{display:grid;place-items:center;width:36px;min-width:36px;height:42px;border:1px solid #dfd7c9;border-radius:6px;font-size:9px;color:#8c745c;background:#fbf9f1}.starter-files{margin-top:50px;color:var(--muted);font-size:12px}.starter-files>summary{cursor:pointer;list-style:none}.starter-files>summary>span{float:right}.example-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.file-card{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:var(--paper);font-family:var(--font);font-size:12px;text-align:left;min-width:0}.file-card:hover{border-color:#bdad97;background:#fcfaf3}.file-card>div{flex:1;min-width:0;overflow-wrap:anywhere}.file-card small{display:block;font-size:10px;color:#9e9282;margin-top:5px}.file-card>b{font-weight:400;color:#98785c}.about-content{max-width:650px;font-size:14px;line-height:1.9;color:#777064}.about-content h2{font-size:17px;color:var(--text);margin:28px 0 10px}.about-content p{margin:12px 0}.about-content a{display:block;color:#9c5c41;font-size:12px;margin:8px 0}
body[data-page=chat] main{padding:0 28px}.chat-layout{height:calc(100dvh - 64px);max-width:800px;margin:auto}.chat-main{height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.chat-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 5px 17px;border-bottom:1px solid #eae6dc}.chat-top h2{font-size:13px;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#6b6356}.task-status{font-size:10px;color:#a49783;white-space:nowrap}.messages{flex:1;overflow-y:auto;padding:22px 12px 35px 4px;scrollbar-width:thin;scrollbar-color:#d9d3c7 transparent;min-height:100px;scroll-behavior:smooth;overscroll-behavior:contain}.message{margin-bottom:28px}.message.user{margin:0 0 30px auto;max-width:85%;width:fit-content}.message.user .message-content{font:14px/1.8 var(--font);background:#eeeae1;border-radius:13px;padding:12px 17px;color:#514b40;overflow-wrap:anywhere}.message.user p{margin:0}.user-brief{margin-top:8px;font-size:12px;color:#847768}.user-brief summary{cursor:pointer}.user-brief[open]{max-height:300px;overflow:auto}.user-brief p{margin-top:12px!important}.message.assistant{position:relative;padding:0 9px}.message-label{display:flex;align-items:center;gap:8px;color:#a5a090;font-size:10px;margin-bottom:13px}.assistant-mark{color:var(--accent);font-size:24px;line-height:1}.message-label>span:last-child{display:none}.message-content{font:17px/1.85 var(--serif);color:#34312a;overflow-wrap:anywhere}.answer-content p{margin:12px 0 17px}.answer-content>p:first-child{margin-top:5px}.message-content h1,.message-content h2,.message-content h3,.message-content h4{font-family:var(--font);font-weight:600;line-height:1.5;color:#373129;margin:27px 0 12px}.message-content h1{font-size:23px}.message-content h2{font-size:20px}.message-content h3{font-size:17px}.message-content h4{font-size:15px}.message-content strong{font-weight:600}.message-content ul,.message-content ol{padding-left:25px;margin:12px 0 20px}.message-content li{padding:4px 0 4px 4px}.message-content li p{margin:4px 0}.message-content a{color:#8c593d;text-decoration:underline;text-underline-offset:3px}.message-content hr{border:0;border-top:1px solid var(--line);margin:25px 0}.message-content blockquote{border-left:3px solid #d1c5b2;padding:2px 17px;color:#7d7060;margin:20px 0}.message-content pre,.tool-detail pre{background:#f0ede5;border:1px solid #e1dbcf;border-radius:8px;padding:16px;overflow:auto;font:12px/1.7 ui-monospace,"SFMono-Regular",Consolas,monospace;color:#5c5141;white-space:pre-wrap;overflow-wrap:anywhere}.message-content code{font:13px/1.6 ui-monospace,"SFMono-Regular",Consolas,monospace;background:#eeebe2;padding:2px 5px;border-radius:4px}.message-content pre code{padding:0;background:none}.message-content table{border-collapse:collapse;font-family:var(--font);font-size:13px;display:block;max-width:100%;overflow:auto;margin:20px 0}.message-content th,.message-content td{padding:10px 13px;border-bottom:1px solid var(--line);text-align:left}.message-content th{background:#efebe1;font-weight:500}.message-content img{max-width:100%;border-radius:9px}.answer-artifacts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:23px 0 15px}.answer-actions{display:flex;align-items:center;gap:15px;font-size:10px;color:#a29785;margin-top:16px}.answer-actions button{padding:4px 0}.answer-actions button:hover{color:#6d5941}.copy-answer{display:flex;gap:5px;align-items:center}.copy-answer svg{width:13px;height:13px}.answer-wait{font-size:13px;color:#b1a48f;padding:8px 0 15px}.chat-composer{border:1px solid #d6cfc2;border-radius:18px;background:var(--paper);box-shadow:0 2px 10px #3528120d;padding:16px 17px 11px;margin:0 0 5px;flex-shrink:0}.chat-composer:focus-within{border-color:#b8aa96;box-shadow:0 3px 12px #35281213}.chat-composer textarea{display:block;width:100%;background:none;border:0;outline:none;box-shadow:none;padding:0 2px;font:16px/1.65 var(--serif);min-height:52px;max-height:200px}.composer-actions{display:flex;align-items:center;gap:10px;margin-top:9px}.attachment-button{font-size:11px}.stop-button{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;border:1px solid #ddd4c5;color:#8e6a4d;font-size:11px}.stop-button:disabled{display:none}.composer-actions .send-button{width:30px;height:30px;font-size:20px}.chat-disclaimer{text-align:center;font-size:10px;color:#aca18f;padding:5px 0 10px;flex-shrink:0}.uploaded-item{display:inline-flex;max-width:100%;overflow-wrap:anywhere;align-items:center;font-size:10px;border:1px solid #dfd5c3;background:#f5f0e5;border-radius:6px;padding:5px 8px;margin:3px}.chat-files{display:none;position:fixed;right:0;top:64px;bottom:0;width:350px;padding:0 20px 24px;background:#f5f2e9;border-left:1px solid var(--line);overflow:auto;z-index:25}.file-drawer-top{display:flex;align-items:center;justify-content:space-between;padding:18px 0 15px}.file-drawer-top h3{font-size:14px}.chat-files .file-row{font-size:11px;gap:9px;padding:15px 0}.chat-files .file-row a{font-size:10px}.chat-files .native-link{display:block;margin-top:30px;font-size:10px;color:#a08b6c}.chat-files #chat-refresh-files{margin-top:15px}.chat-files iframe{width:100%;height:65dvh;border:1px solid var(--line);border-radius:8px;background:white}.chat-files img{width:100%;border-radius:8px}.chat-files .preview-back{font-size:11px;color:#8f7959;margin:0 0 10px}.files-open .chat-files{display:block}@media(min-width:1350px){body.files-open .chat-layout{margin-right:350px;max-width:800px}}
.process-capsule{font-family:var(--font);font-size:12px;color:#8e8371;margin:0 0 17px;max-width:100%}.process-capsule>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;width:fit-content;max-width:100%;padding:6px 0;user-select:none}.process-capsule>summary::-webkit-details-marker,.tool-detail>summary::-webkit-details-marker{display:none}.process-capsule>summary:hover{color:#5d4f3c}.process-orb{font-size:15px;color:#9a8c72}.is-working .process-orb{animation:spin 2.5s linear infinite;display:inline-block}.process-count{font-size:10px;color:#b0a38f;padding-left:3px}.detail-chevron{margin-left:auto;padding-left:8px;color:#a89b86;font-size:14px;transition:transform .15s}.process-capsule[open]>summary>.detail-chevron,.tool-detail[open]>summary>.detail-chevron{transform:rotate(180deg)}.process-body{border-left:1px solid #ddd3c3;padding:12px 0 8px 17px;margin:8px 0 10px 7px;max-width:100%}.process-body h4{font-size:12px;font-weight:500;color:#6d5d47;overflow-wrap:anywhere;margin:0 0 17px}.process-stages{padding:0;margin:0 0 18px;list-style:none}.process-stage{display:flex;align-items:flex-start;gap:9px;min-height:30px;font-size:11px;padding:5px 0}.step-symbol{width:13px;flex-shrink:0;color:#aca38f}.step-state{min-width:36px;flex-shrink:0;color:#a69b85}.step-label{flex:1;color:#7d715e}.step-duration{font-size:10px;color:#b1a48e;margin-left:auto;padding-left:10px;white-space:nowrap}.process-stage.completed .step-symbol{color:#708267}.process-stage.running .step-symbol{color:#b58249;animation:spin 2s linear infinite}.process-stage.running .step-state,.process-stage.running .step-label{color:#94703e}.process-stage.error .step-symbol,.tool-error,.tool-state.error{color:var(--red)}.process-stage.planned .step-label{color:#b0a693}.execution-details>summary{cursor:pointer;font-size:10px;color:#aa977c;list-style:none;display:flex;gap:10px;padding:7px 0}.execution-details>summary:hover{color:#7b5e3d}.tool-detail{margin:5px 0;border-top:1px solid #e8e0d2;font-size:11px}.tool-detail>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:11px 0;color:#8a785e}.tool-state{font-size:11px;color:#b28d53}.tool-state.completed{color:#809173}.tool-detail-body{padding:0 3px 12px 21px}.tool-detail-body>p{font-size:11px;color:#9a896f;line-height:1.8;margin:3px 0 12px}.tool-detail-body>b{display:block;font-weight:400;font-size:9px;color:#b2a087;margin-top:10px}.tool-detail-body>pre{font-size:10px;line-height:1.7;margin:6px 0 10px;max-height:260px;overflow:auto;background:#f1ede3}.tool-detail-body>a{display:inline-block;font-size:10px;color:#9d7952;text-decoration:underline}.reasoning{margin:15px 0 3px;font-size:11px;color:#a38e71}.reasoning>summary{cursor:pointer;font-size:10px;list-style:none;padding:5px 0}.reasoning>summary:after{content:'⌄';margin-left:9px}.reasoning>p{white-space:pre-wrap;font-size:11px;color:#a2927d;line-height:1.85;margin-top:12px}.process-note{font-size:11px;color:#9e896c;line-height:1.85;margin:14px 0}.process-note p{margin:8px 0}.process-note h2,.process-note h3{font-size:12px;margin:14px 0 5px}.process-note ul,.process-note ol{padding-left:20px}.tool-error{font-family:var(--font);font-size:12px;line-height:1.8;margin:10px 0;overflow-wrap:anywhere}
#permission-list,#form-list{max-height:32vh;overflow:auto;flex-shrink:0}.permission-card{background:#f5f0e4;border:1px solid #ddd0b9;border-radius:9px;padding:12px 14px;margin:6px 0 10px;color:#8b6d44;font-size:11px}.permission-card>b{font-size:12px;font-weight:500}.permission-card pre{font:10px/1.7 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:90px;overflow:auto;margin:8px 0}.permission-card p{font-size:10px;color:#a48a64;margin:8px 0}.permission-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:9px}.permission-actions button{font-size:11px;padding:5px 11px;border:1px solid #d4c2a5;border-radius:6px}.permission-actions button:first-child{background:#a68757;border-color:#a68757;color:#fff}.form-request{padding:14px 16px;background:#f3efe4;border:1px solid #ded3bf;border-radius:10px;font-size:12px;margin:10px 0}.form-request>b{font-weight:500}.form-field{margin:15px 0}.form-field>label{display:block;font-size:12px}.form-field>p{font-size:11px;color:#9b8c75;line-height:1.7;margin:5px 0}.form-field>input,.form-field>select{width:100%;padding:9px;margin-top:6px}.form-field input[type=checkbox]{width:15px;height:15px;margin:0 7px 0 0;accent-color:var(--accent);vertical-align:middle}.form-choice{display:flex;align-items:center;padding:7px 0;font-size:12px}.form-choice small{color:#a38d6d;font-size:10px;margin-left:8px}.error-message{color:var(--red);font-size:11px;line-height:1.7;margin-top:10px;white-space:pre-wrap;overflow-wrap:anywhere}
dialog{background:var(--bg);color:var(--text);border:1px solid #d8d0c2;border-radius:16px;max-width:590px;width:calc(100% - 32px);max-height:90dvh;overflow:auto;padding:25px 28px;box-shadow:0 20px 90px #35251330}dialog::backdrop{background:#29241c55;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;color:#9e8b6d;font-size:11px}.close-dialog{font-size:22px;color:#a28e6e;width:25px;height:25px;line-height:1}#wizard-heading h2{font:27px/1.5 var(--serif)}#wizard-heading p{font-size:12px;color:var(--muted);margin:8px 0 25px}.wizard-field,dialog label{display:block;font-size:12px;color:#7d6f5b;margin-top:18px}.wizard-field textarea,dialog label>input{width:100%;padding:11px 12px;margin-top:7px;font-size:13px;line-height:1.8}.wizard-field textarea{min-height:75px}.upload-zone{position:relative;border:1px dashed #d0c0a6;border-radius:9px;padding:15px;display:flex;align-items:center;gap:11px;cursor:pointer}.upload-zone>span{font-size:12px}.upload-zone b{font-weight:400}.upload-zone small{display:block;color:#ab997d;font-size:10px;margin-top:5px}.upload-zone input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.form-note{font-size:10px;color:#b3a084;margin-top:12px}#wizard-upload-names{font-size:10px;color:#987951;margin-top:8px;overflow-wrap:anywhere}.wizard-footer{display:flex;justify-content:flex-end;margin-top:28px}.guide-visual{display:none}.guide-step-label{font-size:10px;color:#b1956b;margin:8px 0 18px}#guide-body h2{font:28px/1.55 var(--serif);margin-bottom:18px}#guide-body>p{font-size:14px;line-height:1.9;color:#87775e}.guide-tip{font-size:11px;color:#ad9470;line-height:1.9;margin:25px 0 5px;padding-top:17px;border-top:1px solid #e3d7c3}.guide-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:28px}#guide-dots{display:flex;gap:6px}#guide-dots>span{display:block;width:5px;height:5px;background:#d9c8ab;border-radius:50%}#guide-dots>span.active{background:#ac7b46;width:17px;border-radius:4px}#profile-dialog{max-width:390px}#profile-dialog h2{font:26px var(--serif)}#profile-dialog p{font-size:12px;color:#9c896c;margin:13px 0}#profile-dialog .primary{margin-top:24px}.login-screen{position:fixed;inset:0;z-index:100;background:#faf9f5;display:grid;place-items:center;padding:20px}.login-card{width:360px;max-width:100%;text-align:center}.login-card .brand{justify-content:center;margin-bottom:50px;font-size:30px}.login-card h1{font:37px/1.5 var(--serif);letter-spacing:-.6px}.login-card>p{font-size:13px;color:#a39279;margin-top:11px}.login-card form{text-align:left;margin-top:38px}.login-card label{font-size:11px;color:#94826a}.password-wrap{display:flex;margin-top:9px;border:1px solid #d7cbb7;border-radius:10px;background:var(--paper);padding:4px}.password-wrap input{flex:1;min-width:0;padding:11px;border:0;outline:none;background:none;font-size:13px}.password-wrap button{width:36px;background:var(--accent);color:#fff;border-radius:7px;font-size:19px}.login-foot{font-size:10px;color:#b6a68e;margin-top:32px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;z-index:200;padding:10px 17px;border:1px solid #d4c5ab;background:#fffaf0;border-radius:9px;box-shadow:0 4px 20px #3c2c1312;font-size:12px;color:#8d704d;max-width:90vw;transition:opacity .15s,transform .15s}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){:root{--sidebar-width:226px}.topbar{padding:0 20px}main,body[data-page=chat] main{padding:0 22px}.home-layout{padding-top:10vh}.answer-artifacts{grid-template-columns:1fr}.template-grid{gap:0 18px}.chat-files{width:330px}.private-badge{display:none}}
@media(max-width:760px){:root{--sidebar-width:252px}.sidebar{transform:translateX(-100%);box-shadow:10px 0 60px #49351c1a}.sidebar.open{transform:none}.app-shell{margin-left:0}#mobile-menu{display:grid}.sidebar.open~#sidebar-backdrop{display:block;position:fixed;inset:0;background:#30261944;z-index:29}.topbar{height:56px;padding:0 15px}.top-actions{gap:8px}.header-left{font-size:12px;gap:8px}main,body[data-page=chat] main{padding:0 16px}.home-layout{padding-top:13vh}.hero{margin-bottom:25px}.hero h1{font-size:31px}.hero-copy>p{font-size:13px}.greeting-mark{font-size:35px}.prompt-launch{padding:15px 15px 11px;border-radius:17px}.prompt-launch textarea{font-size:16px;min-height:95px}.home-attachment span{display:none}.model-label{font-size:10px}.feature-grid{gap:7px}.feature-card{padding:9px 10px;gap:7px}.feature-card h3{font-size:11px}.feature-illustration svg{width:15px;height:15px}.home-guide{font-size:10px}.chat-layout{height:calc(100dvh - 56px)}.chat-top{padding-bottom:13px}.chat-top h2{font-size:12px;max-width:75%}.chat-top .task-status{font-size:9px}.messages{padding:17px 3px 25px 0}.message.assistant{padding:0 3px}.message.user{max-width:91%}.message.user .message-content{font-size:13px;padding:10px 14px}.message-content{font-size:16px;line-height:1.9}.message-content h2{font-size:19px}.message-content table{font-size:11px}.message-content th,.message-content td{padding:8px}.chat-composer{padding:13px 13px 9px;border-radius:16px}.chat-composer textarea{font-size:16px;min-height:45px}.attachment-button>span{display:none}.composer-actions{gap:8px}.chat-disclaimer{font-size:9px;padding-bottom:8px}.process-capsule{font-size:11px}.process-count{font-size:9px}.process-body{padding-left:12px}.process-stage{font-size:10px;gap:6px}.step-state{min-width:30px}.step-duration{font-size:9px;padding-left:4px}.process-body h4{font-size:11px}.process-capsule>summary{gap:6px}.chat-files{width:min(100%,390px);top:56px}.library-page{margin-top:26px}.page-title h1{font-size:27px}.page-title p{font-size:12px}.template-toolbar{flex-direction:column;align-items:stretch;gap:14px}.template-toolbar input{width:100%}.category-tabs button{font-size:11px;padding:6px 8px}.template-grid{grid-template-columns:1fr}.template-grid .feature-card{padding:20px 4px}.task-row-title{font-size:13px}.task-row>span:last-child{font-size:10px}.example-grid{grid-template-columns:1fr}.row-title{gap:8px}.row-title>.secondary{font-size:11px;padding:7px 9px}.file-card{font-size:11px}.file-row{font-size:12px}.file-row a{font-size:10px}dialog{padding:22px;max-height:92dvh}#guide-body h2{font-size:25px}#guide-body>p{font-size:13px}.tool-detail>summary{font-size:10px}.tool-detail-body{padding-left:12px}.process-note{font-size:10px}.permission-card{padding:10px 12px}.login-card h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.process-filename{max-width:330px;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.process-activity{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b09e81;font-size:10px}@media(max-width:760px){.process-filename{max-width:155px}.process-activity{max-width:105px;font-size:9px}.process-filename~.process-count{display:none}}

/* Match the Studio conversation: quiet controls, serif answers, one process row. */
:root{--font:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;--serif:Charter,"Iowan Old Style","Palatino Linotype","Songti SC",Georgia,serif;--text:#30302e;--muted:#79776f;--paper:#fff;--line:#dedcd3;--accent:#c46b4b;--sidebar-width:244px}
body{min-width:320px}
svg,i{flex-shrink:0}
button{line-height:1.5}
.icon-button{width:32px;height:32px;flex-shrink:0;padding:7px}
.icon-button svg{width:18px;height:18px}
.secondary,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.secondary{white-space:nowrap}
.text-button svg{width:14px;height:14px}
.sidebar{padding:14px 10px 10px}
.sidebar-brand{padding:0 7px 16px}
.brand{font-size:27px}
.new-chat,.nav-item{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:8px 12px;margin:1px 0;text-align:left;font-size:13px}
.new-chat{font-weight:400;margin-bottom:8px}
.new-chat>span{display:inline;width:auto;height:auto;border:0;background:none;border-radius:0;color:inherit;font:inherit}
.new-chat>i,.nav-item>i{width:18px;height:18px;display:grid;place-items:center}
.new-chat svg,.nav-item svg{width:17px;height:17px}
.new-chat kbd{margin-left:auto;font:10px var(--font);color:var(--muted);opacity:0;transition:opacity .15s}
.new-chat:hover kbd,.new-chat:focus-visible kbd{opacity:1}
.sidebar-link{align-items:center;min-height:34px}
.sidebar-link svg{width:14px;height:14px}
.profile{border:0;padding:10px 8px 3px;border-radius:8px}
.profile:hover{background:var(--hover)}
.profile>i{color:var(--muted)}
.profile>i svg{width:16px;height:16px}
.profile>span:last-child{color:inherit}
.recent-heading{margin-top:22px}
.recent-task{font-size:12px;line-height:20px}
.topbar{height:48px;padding:0 20px;background:transparent}
.header-left{min-width:0}
#page-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px}
.header-file-button{min-height:32px}
.home-layout{max-width:736px;padding-top:clamp(65px,18vh,170px)}
.hero-copy{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:0 16px}
.greeting-mark{font-size:48px;margin:0;grid-row:span 2}
.hero h1{font-size:35px;text-align:left}
.hero-copy>p{text-align:left;font-size:13px;color:var(--muted);margin-top:4px}
.prompt-launch{border-radius:22px;padding:19px 20px 12px;box-shadow:0 2px 6px #00000005}
.prompt-launch textarea,.chat-composer textarea{font-family:var(--font);font-size:15px;line-height:1.75;overflow-y:auto}
.prompt-launch textarea{min-height:72px;max-height:200px}
.send-button,.composer-actions .send-button{width:32px;height:32px;margin-left:2px;padding:7px;flex-shrink:0;border-radius:10px}
.send-button svg{width:19px;height:19px;stroke-width:2}
.home-attachment,.attachment-button{position:relative;min-height:32px;gap:7px}
.home-attachment input,.attachment-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.home-attachment:focus-within,.attachment-button:focus-within{outline:2px solid var(--accent);outline-offset:3px;border-radius:5px}
.home-guide{min-height:32px}
.chat-layout{height:calc(100dvh - 48px);max-width:768px}
.chat-top{flex-shrink:0;padding:7px 8px 12px;border:0}
.chat-top{display:none}
.chat-top h2{min-width:0}
.messages-wrap{position:relative;flex:1;min-height:0;display:flex}
.messages{min-height:0;width:100%;padding:22px 15px 28px 8px;overflow-anchor:none;scroll-behavior:auto}
.message{margin-bottom:28px}
.message.user{margin-bottom:36px;max-width:94%}
.message.user .message-content{font-size:15px;line-height:1.75;border-radius:18px;background:var(--sidebar);padding:12px 18px;color:var(--text)}
.message.assistant{padding:0 0 0 0}
.message-content{font:16px/1.85 var(--serif);color:var(--text)}
.message-content :is(h1,h2,h3,h4,h5,h6){font-family:var(--serif);font-weight:600;letter-spacing:-.02em;color:var(--text);line-height:1.5;margin:24px 0 12px}
.message-content h1{font-size:24px}.message-content h2{font-size:21px}.message-content h3{font-size:18px}.message-content h4,.message-content h5,.message-content h6{font-size:16px}
.answer-content p{margin:0 0 1em}
.answer-content>p:first-child{margin-top:0}
.message-content li{padding:2px 0 2px 2px}
.message-content pre{font-size:13px;background:#f1f0eb;border:0;border-radius:10px}
.message-content table{font-size:13px}
.answer-artifacts{grid-template-columns:1fr;margin:18px 0;gap:10px}
.file-card{padding:9px 10px;min-height:66px;gap:8px;border-radius:12px;background:var(--paper)}
.file-card-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:2px 3px;color:var(--text)}
.file-card-name{font-size:13px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
.file-card small{font-size:11px;color:var(--muted);margin-top:3px}
.file-ext{width:36px;min-width:36px;height:40px;background:var(--sidebar);border-color:var(--line);color:var(--muted)}
.file-download{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;color:var(--muted)}
.file-download svg{width:15px;height:15px}
.answer-actions{margin-top:7px;gap:8px;color:var(--muted);opacity:.7}
.answer-actions:hover{opacity:1}
.answer-actions .icon-button{padding:7px;width:30px;height:30px}
.answer-actions svg{width:15px;height:15px}
.answer-actions .view-turn-files{display:flex;align-items:center;gap:5px;min-height:30px;font-size:11px;padding:4px}
.chat-composer{margin:0 8px 5px;padding:17px 17px 10px;border-radius:22px;box-shadow:0 2px 6px #00000005}
.chat-composer textarea{min-height:50px}
.composer-actions{margin-top:10px}
.composer-actions .send-button:disabled{display:none}
.stop-button{width:32px;height:32px;padding:7px;flex-shrink:0;border-radius:10px}
.stop-button svg{width:18px;height:18px}
.chat-disclaimer{padding:5px 0 9px;color:var(--muted)}
.process-capsule{font:13px/1.65 var(--font);color:var(--muted);margin:0 0 14px}
.process-capsule>summary{width:fit-content;max-width:100%;gap:8px;min-height:32px;padding:4px 0}
.detail-chevron{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0;padding:0;color:inherit;flex-shrink:0;transform-origin:center;transition:transform .15s}
.detail-chevron svg{width:14px;height:14px}
details[open]>summary>.detail-chevron,.process-capsule[open]>summary>.detail-chevron,.tool-detail[open]>summary>.detail-chevron{transform:rotate(90deg)}
.process-orb{width:16px;height:16px;display:inline-flex;color:var(--accent)}
.process-orb svg{width:16px;height:16px}
.process-body{padding:0 0 0 17px;margin:8px 0 10px 2px;max-height:440px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-color:var(--line)}
.tool-detail{border:0;margin:0 0 3px}
.tool-detail>summary{font-size:13px;line-height:1.6;padding:8px 0;gap:9px;color:var(--muted)}
.tool-detail>summary:hover,.tool-detail[open]>summary{color:var(--text)}
.tool-label{min-width:0;overflow-wrap:anywhere}
.tool-state{display:inline-flex;width:15px;height:15px;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}
.tool-state svg{width:14px;height:14px}
.tool-state.running,.tool-state.streaming{animation:spin 2s linear infinite;color:var(--accent)}
.tool-detail .detail-chevron{margin-left:auto}
.step-duration{margin-left:auto;font-size:11px;color:var(--muted);padding-left:8px;font-variant-numeric:tabular-nums}
.step-duration+.detail-chevron{margin-left:0}
.tool-detail-body{padding:0 0 12px 24px}
.tool-detail-body>p{font-size:12px;color:var(--muted);line-height:1.85;margin:4px 0 12px}
.tool-detail-body>p.reasoning-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.tool-detail-body>b{font-size:10px;color:var(--muted)}
.tool-detail-body>pre{font-size:11px;padding:10px 12px;max-height:220px;background:#f1f0eb;border:0}
.process-filename{max-width:440px}.process-activity{font-size:11px;color:var(--muted)}
.starter-files>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
summary{list-style:none}summary::-webkit-details-marker{display:none}
.user-brief>summary{display:flex;align-items:center;gap:6px}
.user-brief>summary:after{content:'';width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(-45deg);transition:transform .15s}
.user-brief[open]>summary:after{transform:rotate(45deg)}
.chat-files{top:48px;background:var(--bg)}
#scroll-latest{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);border:1px solid var(--line);border-radius:50%;background:var(--paper);box-shadow:0 2px 8px #0000000d;z-index:2}
.thinking-line{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;padding:10px 0}
.close-dialog{display:grid;place-items:center;width:32px;height:32px;border-radius:6px}
.close-dialog:hover{background:var(--hover)}
.model-label{font-size:11px;color:var(--muted)}
@media(min-width:1350px){body.files-open .chat-layout{max-width:768px}}
@media(max-width:1100px){:root{--sidebar-width:226px}.home-layout{padding-top:13vh}}
@media(max-width:760px){
  :root{--sidebar-width:244px}
  .topbar{height:48px;padding:0 12px}
  .home-layout{padding-top:14vh}.hero-copy{gap:0 11px}.hero h1{font-size:28px}.greeting-mark{font-size:38px}.hero-copy>p{font-size:12px}
  .prompt-launch{padding:16px 16px 11px;border-radius:18px}.prompt-launch textarea{font-size:16px}
  .chat-layout{height:calc(100dvh - 48px)}.chat-top{padding:5px 2px 10px}.chat-top h2{max-width:72%;font-size:12px}
  .messages{padding:18px 2px 24px}.message.user{max-width:95%;margin-bottom:28px}.message.user .message-content{font-size:14px;padding:11px 15px}
  .message-content{font-size:16px}.message-content h2{font-size:20px}.message-content h3{font-size:18px}
  .chat-composer{margin:0 0 4px;padding:14px 14px 9px;border-radius:18px}.chat-composer textarea{font-size:16px}
  .model-label{font-size:10px}.chat-files{top:48px}
  .process-capsule{font-size:12px}.process-body{padding-left:12px;max-height:360px}.tool-detail>summary{font-size:12px;gap:7px}.tool-detail-body{padding-left:22px}
  .step-duration{font-size:10px}.process-filename{max-width:215px}.process-activity{display:none}
  .file-card-name{font-size:12px}.file-card small{font-size:10px}.file-card{padding:9px 7px}
  .row-title>div{min-width:0}.task-row-title{overflow-wrap:anywhere}.task-row>span:last-child{white-space:nowrap;font-size:10px}
}

/* Geometry measured from the live Studio reference at 1982 x 1060. */
:root{--sidebar-width:245px}
.sidebar{padding:12px 8px 4px 4px;border-right:0}
.sidebar-brand{height:42px;padding:0 0 0 10px;margin-bottom:2px}
.brand{font-size:25px;letter-spacing:-1px}
.brand span{font-size:10px;margin-left:0}
.sidebar-brand .icon-button{width:30px;height:30px}
.sidebar-brand .icon-button svg{width:16px;height:16px}
.new-chat,.nav-item{min-height:32px;height:32px;margin:0;padding:6px 8px;gap:9px;border-radius:8px}
.new-chat>i,.nav-item>i,.new-chat svg,.nav-item svg{width:16px;height:16px}
.new-chat kbd,.nav-item kbd{margin-left:auto;font:10px var(--font);color:#a5a39a;opacity:0}
.new-chat:hover kbd,.nav-item:hover kbd,.new-chat:focus-visible kbd,.nav-item:focus-visible kbd{opacity:1}
.sidebar-models{margin:10px 2px 0}
.sidebar-models>summary{display:flex;align-items:center;justify-content:space-between;height:24px;margin:0 2px 2px 8px;font-size:12px;cursor:pointer}
.sidebar-models .detail-chevron{width:11px;height:11px;opacity:0;margin-right:2px}
.sidebar-models:hover .detail-chevron{opacity:1}
.sidebar-model{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 8px;font-size:12px}
.model-monogram{display:grid;place-items:center;width:14px;height:14px;border-radius:3px;background:#fff;font-size:7px;font-weight:600}
.sidebar-section-link{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 12px);height:28px;margin:10px 2px 2px 10px;padding:0;font-size:12px;text-align:left;color:var(--text);border-radius:5px}
.sidebar-section-link>i{padding:6px}.sidebar-section-link svg{width:14px;height:14px}
.sidebar-section-link:hover{background:var(--hover)}
.recent-heading{display:flex;align-items:center;justify-content:space-between;height:28px;margin:0 2px 0 10px;padding:0;font-size:12px;color:var(--text);cursor:pointer}
.recent-heading .count{padding-right:9px;color:var(--muted);font-size:10px;opacity:0}
.recent-heading:hover .count{opacity:1}
.recent-tasks{padding:0 2px 12px;min-height:0}
.history-date{padding:1px 10px 2px;font-size:12px;line-height:22px;color:#99978e}
.recent-task{height:32px;border-radius:18px;padding:6px 11px;font-size:13px;line-height:20px;color:var(--text)}
.recent-task.selected{background:var(--hover);color:var(--text)}
.sidebar-footer{display:flex;align-items:center;justify-content:space-between;margin:0 4px 8px}
.sidebar-footer .sidebar-link{min-height:28px;width:auto;padding:5px 8px;font-size:11px;color:var(--muted)}
.sidebar-footer .sidebar-link:last-child{font-size:10px}
.profile{height:40px;padding:5px 8px;gap:10px}
.avatar{width:24px;height:24px;font:12px var(--font);background:#d7d3c9;color:#6f6859}
.profile b{font-size:12px;font-weight:400}.profile>i{opacity:0}.profile:hover>i,.profile:focus-visible>i{opacity:1}
.messages{padding:60px 24px 28px}
.message.user{max-width:95%;margin-bottom:58px}
.message.user .message-content{font-size:14.5px;line-height:1.75;color:#364153}
.message-content{font-size:14.5px;line-height:1.85}
.message-content :is(h1,h2,h3,h4,h5,h6){margin:0 0 4px;line-height:1.375}
.message-content h1{font-size:22px}.message-content h2{font-size:18px}.message-content h3{font-size:16px}.message-content h4,.message-content h5,.message-content h6{font-size:14.5px}
.answer-content>:is(h1,h2,h3,h4,h5,h6):not(:first-child){margin-top:22px}
.message.assistant{margin-bottom:32px}
.chat-composer{margin:0 16px 16px;padding:18px 25px 11px;min-height:122px}
.chat-composer textarea{padding:0;min-height:50px}
.chat-composer .composer-actions{margin-top:9px}
.process-capsule{margin-bottom:10px}
.process-capsule>summary{min-height:31px;padding:5px 0}
.process-capsule>summary>.detail-chevron{width:9px;height:16px;margin-left:2px}
.process-capsule>summary>.detail-chevron svg{width:9px;height:14px}
.answer-artifacts{margin:14px 0 18px}
.file-card{min-height:66px}
.file-card-main{gap:12px}
.file-card-name{font-weight:500}
.file-card small{font-weight:400}
.answer-actions{gap:2px;margin-top:8px}
#search-dialog{padding:18px;max-width:600px;top:-18vh}
#search-dialog .dialog-top{margin-bottom:15px}
.search-field{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:0 5px 12px}
.search-field input{border:0;background:none;border-radius:0;min-width:0;width:100%;padding:8px 0;font-size:15px;outline:none}
#chat-search-results{max-height:50vh;overflow:auto;margin-top:9px}
.search-result{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px 8px;border-radius:7px;font-size:13px}
.search-result:hover{background:var(--hover)}
.search-result span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-result svg{width:16px;height:16px;color:var(--muted)}
.home-layout{padding: max(70px,calc((100dvh - 48px)/2 - 95px)) 0 28px}
.hero{margin-bottom:32px}
.hero-copy{display:flex;justify-content:center;align-items:center;gap:18px}
.hero h1{font:400 35px/1.5 var(--serif);letter-spacing:-1px}
.greeting-mark{font:400 52px/1 Georgia,serif}
.prompt-launch{padding:18px 25px 11px;min-height:122px}
.prompt-launch textarea{height:50px;min-height:50px;font-size:15px}
.prompt-bottom{margin-top:9px}
.feature-grid{margin-top:26px;gap:8px}
.feature-grid .feature-card{padding:7px 13px;min-height:34px}
.feature-grid .feature-card h3{color:var(--muted);font-size:12px}
.feature-grid .feature-illustration{display:none}
.home-guide{display:none}
.brand{align-items:center;gap:7px}
.brand .brand-symbol{width:16px;height:16px;border-radius:4px;display:grid;place-items:center;background:var(--paper);font:600 9px var(--font);color:var(--text);margin-right:7px}
.sidebar-brand{padding-left:10px}
body[data-page=home] .new-chat{background:var(--hover)}
.topbar{padding:0 8px}
.header-left{gap:3px}
.header-left{flex:1;min-width:0}
.top-actions{flex-shrink:0}
.header-file-button{white-space:nowrap;flex-shrink:0}
.header-tab{display:flex;align-items:center;gap:6px;max-width:340px;min-width:0;height:32px;padding:4px 8px;background:#f4f3ef;border-radius:8px}
.header-tab>i svg{width:14px;height:14px;color:var(--muted)}
#page-label{font-size:13px;color:var(--text)}
.header-options{position:relative;margin-left:2px}
.header-options>summary{display:grid;place-items:center;width:18px;height:24px;cursor:pointer;color:#a5a39a}
.header-options>summary svg{width:14px;height:14px}
.header-options-menu{position:absolute;top:32px;left:0;min-width:150px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 8px 25px #00000012}
.header-options-menu button{display:block;width:100%;padding:8px 10px;text-align:left;font-size:12px;border-radius:6px;white-space:nowrap}
.header-options-menu button:hover{background:var(--hover)}
#header-new{color:#aaa79d;width:27px;height:28px;padding:7px}
#header-new svg{width:13px;height:13px}
svg{stroke-width:1.5}
.file-card{flex-wrap:wrap;gap:0 3px;padding:10px}
.file-card .file-ext svg{width:15px;height:15px}
.file-open{width:27px;color:var(--muted);padding:6px}
.file-open svg{width:15px;height:15px}
.inline-preview{flex-basis:calc(100% + 20px);max-width:calc(100% + 20px);margin:10px -10px -10px;display:flex;min-height:150px;max-height:290px;overflow:auto;border-top:1px solid var(--line);padding:14px 8px;background:var(--bg);border-radius:0 0 12px 12px;font-size:12px;line-height:1.75}
.inline-preview pre{margin:0;font:12px/1.75 ui-monospace,"SFMono-Regular",monospace;background:none;border:0;padding:0;white-space:pre;overflow:visible}
.inline-preview .preview-gutter{color:#aaa79d;border-right:1px solid var(--line);padding:0 12px 0 3px;user-select:none}
.inline-preview .preview-text{padding-left:12px;color:var(--text)}
.inline-preview iframe{width:100%;height:290px;border:0}.inline-preview:has(iframe){padding:0;max-height:none}
.inline-preview img{max-width:100%;object-fit:contain}
@media(max-width:760px){
  :root{--sidebar-width:245px}
  .messages{padding:30px 0 24px}.message.user{margin-bottom:36px}.message.user .message-content{font-size:14px}
  .message-content{font-size:15px}.message-content h2{font-size:18px}.message-content h3{font-size:16px}
  .chat-composer{margin:0 0 12px;padding:15px 16px 10px;min-height:112px}
  .sidebar-brand{padding-left:10px}.new-chat,.nav-item{height:36px}
  .process-capsule>summary{font-size:12px}
  .home-layout{padding-top:max(90px,calc((100dvh - 48px)/2 - 110px))}
  .hero-copy{gap:12px}.hero h1{font-size:25px;letter-spacing:-.5px}.greeting-mark{font-size:38px}
  .hero{margin-bottom:24px}.prompt-launch{padding:15px 16px 10px;min-height:112px}.prompt-launch textarea{font-size:16px}
  .feature-grid{gap:7px;margin-top:18px}.feature-grid .feature-card{padding:6px 10px}.feature-grid .feature-card h3{font-size:11px}
  .header-tab{flex:1;max-width:none}.topbar{padding:0 9px;gap:8px}.header-tab #page-label{font-size:12px}
  .header-options-menu{left:auto;right:0}
}

/* Studio v4: the same persistent process DOM during and after generation. */
.process-capsule{font:14.5px/1.85 var(--serif);margin:7px 0 14px;color:#9ca3af}
.process-capsule>summary{width:100%;min-height:31px;gap:6px;padding:2px 0;line-height:1.85}
.process-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.process-capsule>summary>.detail-chevron{width:12px;height:12px;margin-left:0;color:#9ca3af}
.process-capsule>summary>.detail-chevron svg{width:12px;height:12px;stroke-width:3.5}
.process-capsule[open]>summary>.detail-chevron{transform:rotate(180deg)}
.process-orb{width:16px;height:16px;color:inherit;display:inline-flex;align-items:center;justify-content:center}
.process-orb svg{width:16px;height:16px;stroke-width:2}
.is-complete .process-orb{color:#10b981}.is-error .process-orb{color:var(--red)}.is-stopped .process-orb{color:var(--muted)}
.process-body{font:14.5px/1.85 var(--serif);border:0;padding:4px 0 0;margin:0;max-height:440px}
.tool-detail>summary{font:14.5px/1.85 var(--serif);padding:2px 0;min-height:31px;gap:6px;color:#6b7280}
.tool-detail-body>p{font-family:var(--serif);font-size:14.5px}
.tool-detail-body>p.reasoning-text{font-family:var(--serif);font-size:14.5px}
.tool-detail-body{padding-left:22px}
.tool-state.completed{color:#10b981}
.tool-detail .detail-chevron svg{width:12px;height:12px;stroke-width:2.75}
.tool-detail[open]>summary>.detail-chevron{transform:rotate(180deg)}
.reasoning-detail>summary{width:fit-content;max-width:100%;gap:8px}
.reasoning-detail .tool-detail-body{padding-left:0}
.file-workspace[hidden],#preview-resizer[hidden]{display:none}
.file-workspace{position:fixed;inset:0 0 0 auto;width:var(--preview-width);height:100dvh;border-left:1px solid var(--line);background:var(--paper);color:var(--text);z-index:60;display:flex;flex-direction:column;font-family:var(--font)}
.preview-header{height:56px;min-height:56px;display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid var(--line);background:var(--paper)}
#preview-title{flex:1;min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:13px;font-weight:500}
.preview-actions{display:flex;align-items:center;gap:8px}
.preview-actions>a,.preview-actions>button{font:12px var(--font);color:var(--muted);background:none;border:0;border-radius:7px;padding:7px 9px;cursor:pointer}
.preview-actions>a:hover,.preview-actions>button:hover{background:var(--hover);color:var(--text)}
.preview-actions #preview-close{font-size:24px;line-height:24px;padding:3px 8px}
#preview-content{flex:1;min-height:0;overflow:auto;background:var(--paper)}
#preview-content>iframe{width:100%;height:100%;display:block;border:0;background:var(--paper)}
#preview-content>img{display:block;max-width:100%;height:auto;margin:auto}
.preview-placeholder{padding:24px;font-size:13px;color:var(--muted)}
.preview-code{display:flex;min-height:100%;min-width:max-content;padding:15px 0;font:12px/1.75 ui-monospace,"SFMono-Regular",monospace}
.preview-code pre{margin:0;white-space:pre;font:inherit}
.preview-code .preview-gutter{padding:0 12px;color:#999;border-right:1px solid var(--line);user-select:none}
.preview-code .preview-text{padding:0 15px;color:var(--text)}
#preview-resizer{position:fixed;inset:0 auto 0 calc(100vw - var(--preview-width) - 5px);width:10px;height:100dvh;z-index:65;cursor:col-resize;touch-action:none}
#preview-resizer:hover:after,#preview-resizer:focus-visible:after{content:'';position:absolute;inset:0 auto 0 4px;width:2px;background:var(--accent)}
.preview-resizing{cursor:col-resize;user-select:none}.preview-resizing iframe{pointer-events:none}
body.preview-open .app-shell{margin-right:var(--preview-width);transition:none}
body.preview-open .chat-layout{margin:0 auto;max-width:768px}
body.preview-open main{min-width:0}
body.preview-open .file-active{border-color:#c4bdb0}
@media(max-width:759px){
  body.preview-open .app-shell{margin-right:0;height:45dvh;overflow:hidden}
  body.preview-open .chat-layout{height:calc(45dvh - 48px)}
  body.preview-open .chat-composer{min-height:105px;margin-bottom:8px;padding-top:10px}
  body.preview-open .chat-composer textarea{min-height:42px}
  body.preview-open .messages{padding-top:12px}
  .file-workspace{inset:45dvh 0 0;width:100vw;height:55dvh;border-left:0;border-top:1px solid var(--line)}
  .preview-header{height:48px;min-height:48px;padding:0 12px}
  #preview-resizer{display:none}
  .process-capsule,.tool-detail>summary{font-size:14.5px}
}
.appearance{position:relative;font:12px var(--font);color:var(--muted);margin:8px 5px}
.appearance>summary{padding:7px;border-radius:7px;cursor:pointer;white-space:nowrap}
.appearance>summary:hover{background:var(--hover)}
.appearance-options{position:fixed;bottom:84px;left:12px;z-index:75;min-width:155px;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 8px 28px #00000012}
.appearance-options>button,.appearance-options>a{display:block;font:12px var(--font);width:100%;padding:8px 10px;text-align:left;border-radius:6px;color:var(--muted)}
.appearance-options>button:hover,.appearance-options>a:hover{background:var(--hover);color:var(--text)}
:root[data-theme=night]{color-scheme:dark;--bg:#262624;--sidebar:#20201e;--paper:#30302e;--text:#e8e6df;--muted:#a5a39a;--line:#464640;--hover:#383833;--accent:#da8b6b;--accent-hover:#c57658}
[data-theme=night] :is(.message-content,.message-content h1,.message-content h2,.message-content h3,.message-content h4,.message-content h5,.message-content h6,.message.user .message-content){color:var(--text)}
[data-theme=night] :is(.message-content pre,.message-content code,.tool-detail-body>pre){background:#1f1f1d;color:var(--text);border-color:var(--line)}
[data-theme=night] :is(.header-tab,.file-card:hover,.task-row:hover){background:var(--hover)}
[data-theme=night] :is(.file-card,.file-ext,.file-row,.prompt-launch,.chat-composer,.upload-zone,dialog){border-color:var(--line)}
[data-theme=night] :is(.sidebar-section-link,.nav-item,.recent-task,.profile b){color:var(--text)}
[data-theme=night] .file-active{border-color:var(--muted)}
