:root{--paper:#faf9f6;--ink:#243b32;--muted:#7d827a;--line:#e8e8df;--accent:#cf6848;--sage:#e7ede3;--sidebar:#182c25;--font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{overflow-x:hidden;max-width:100vw;width:100%}body{margin:0;font-family:var(--font);background:var(--paper);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,input,textarea,summary{outline-offset:5px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid var(--accent)}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;padding:30px 20px 16px;background:var(--sidebar);color:#e8ece4;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:0 10px;margin-bottom:36px;position:relative}.brand svg{width:30px;height:30px;color:#d1ddc8}.brand>span{font-size:33px;font-weight:650;letter-spacing:-1.7px}.brand-dot{color:#d88a69}.brand small{font-size:8px;letter-spacing:2px;position:absolute;left:53px;top:38px;color:#8eaa9a}.new-chat{display:flex;align-items:center;gap:12px;background:#30473b;border:1px solid #49604d;color:#f3f5ec;border-radius:9px;padding:13px 12px;text-align:left;font-size:12px;margin-bottom:36px}.new-chat>span{font-size:19px;font-weight:300}kbd{font-size:10px;color:#a5b8a7;margin-left:auto;font-family:inherit}.nav-label{font-size:9px;letter-spacing:1.8px;font-weight:600;color:#8fa495;padding-left:12px}nav{display:grid;gap:6px;margin-top:14px}nav a{padding:12px;border-radius:8px;display:flex;align-items:center;gap:12px;color:#b9c9bd;font-size:12px}nav a:hover,nav a.active{background:#2d4337;color:#fff}.nav-icon{font-size:19px;width:19px;text-align:center;color:#a4baa3}nav a small{margin-left:auto;font-size:10px;border:1px solid #506354;border-radius:4px;padding:1px 5px;color:#c3d1bd}.projects-head{display:flex;align-items:center;justify-content:space-between;margin-top:34px}.projects-head button{background:none;border:0;color:#a0b39f;font-size:21px}.project-list{overflow-y:auto;max-height:180px;margin-top:10px}.project-list button{border:0;background:none;color:#b5c6b7;text-align:left;width:100%;padding:10px 12px;border-radius:7px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-list button.active{background:#2d4337;color:white}.project-list .muted{font-size:11px;padding:0 12px;color:#8fa495;line-height:1.7}.sidebar-bottom{margin-top:auto;padding-top:22px}.upgrade{display:block;background:linear-gradient(120deg,#304336,#233a2e);border:1px solid #485b44;border-radius:10px;padding:17px 13px;color:#e6e8d8}.upgrade-mark{display:block;font-size:22px;color:#bfce9e;margin-bottom:10px}.upgrade strong{display:block;font-size:12px;margin-bottom:6px}.upgrade>span:not(.upgrade-mark){font-size:10px;color:#a6b79e}.upgrade b{border-top:1px solid #4c5e46;margin-top:15px;padding-top:11px;display:flex;justify-content:space-between;font-size:10px;font-weight:500;color:#d0dbbc}.account{display:flex;width:100%;align-items:center;gap:10px;text-align:left;background:none;border:0;color:#e2e9dc;padding:21px 0 2px}.avatar{display:grid;place-items:center;background:#e5d6b7;color:#4d5038;border-radius:50%;width:32px;height:32px;font-size:12px;flex-shrink:0}.account strong{font-size:10px;display:block}.account small{font-size:9px;color:#9ab09e;display:block;margin-top:4px}.account-dots{margin-left:auto;color:#9bad9e}.main-shell{margin-left:250px;min-height:100dvh;display:flex;flex-direction:column}.topbar{height:73px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:16px}.breadcrumb{font-size:11px;color:#9a9c91}.breadcrumb span{margin:0 14px;color:#b7b9ae}.breadcrumb strong{font-weight:500;color:#4d5d4c}.top-actions{display:flex;align-items:center;gap:27px}.engine-status{font-size:10px;color:#777f72;display:flex;align-items:center;gap:7px}.engine-status i{height:5px;width:5px;background:#abae9d;border-radius:50%}.engine-status.ready i{background:#6f965c}.quiet-link{font-size:10px;color:#616d5b}.quiet-link span{margin-left:10px}.icon-button{background:none;border:0;padding:8px;font-size:22px;line-height:1}#menuButton{display:none}main{flex:1;display:flex;flex-direction:column;min-height:0}.view{width:100%}.chat-view{position:relative;display:flex;flex-direction:column;min-height:calc(100dvh - 112px);padding:0 36px}.chat-topline{display:flex;align-items:center;gap:16px;padding-top:24px}.agent-picker{background:none;border:0;padding:0;font-size:12px;font-weight:600}.agent-picker span{margin-left:10px;color:#8b9683}.private-label{color:#999e90;font-size:10px;border-left:1px solid #dedfd4;padding-left:16px}.text-button{background:none;border:0;font-size:11px;padding:8px 0;color:#5b6c54}.chat-topline .text-button{margin-left:auto}.welcome{width:100%;max-width:810px;margin:auto; padding-top:58px;padding-bottom:48px;text-align:center}.eyebrow,.section-eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#7f8c72}.mini-logo{font-family:Georgia,serif;font-size:18px;margin-right:10px;font-style:italic;color:#b77a58}.welcome h1,.content-view>h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(42px,4.8vw,66px);line-height:1.09;letter-spacing:-2.2px;margin:28px 0 20px}.welcome h1 em,.content-view>h1 em{font-weight:400;color:#7f8c67}.welcome>p{font-size:12px;line-height:1.9;color:#909184;margin:0}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:36px auto 0;max-width:760px;text-align:left}.suggestions button{position:relative;text-align:left;background:#fffefa;border:1px solid var(--line);border-radius:11px;padding:17px 16px;transition:transform .15s,border-color .15s}.suggestions button:hover{transform:translateY(-3px);border-color:#aebc9c}.card-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;margin-bottom:16px;font-size:21px}.sage{background:#e8ecdf;color:#738665}.peach{background:#f6e8dd;color:#c3825c}.sand{background:#efeade;color:#9c8b63}.suggestions strong{font-weight:500;font-size:11px;display:block;margin-bottom:7px}.suggestions small{font-size:9px;color:#9a9c8e}.card-arrow{position:absolute;right:14px;top:17px;font-size:15px;color:#a3ab97}.composer-wrap{width:100%;max-width:810px;margin:0 auto;padding-bottom:10px}.composer{background:#fffefa;border:1px solid #dcded1;border-radius:14px;padding:17px 17px 12px;box-shadow:0 7px 22px #25342105}.composer textarea{resize:none;width:100%;border:0;outline:none;background:transparent;color:#2b3f30;font-size:12px;line-height:1.7;min-height:55px;max-height:180px}.composer textarea::placeholder{color:#a1a294}.composer-bottom,.composer-tools,.send-tools{display:flex;align-items:center}.composer-bottom{justify-content:space-between}.composer-tools{gap:13px}.composer-tools>.icon-button{font-weight:300;color:#808b75;font-size:24px;padding:1px 4px}.team-button{border:1px solid #e6e7dd;border-radius:6px;background:#f9f9f3;font-size:9px;padding:6px 9px;display:flex;gap:6px;align-items:center;color:#7b856e}.team-button[aria-pressed=true]{background:#e9eddf;border-color:#a8b88f;color:#3d5537}.team-button span{font-size:13px}.send-tools{gap:14px}.enter-hint{font-size:9px;color:#b2b2a5}.send-button{width:33px;height:33px;display:grid;place-items:center;background:var(--accent);color:#fff9ee;border:0;border-radius:8px;font-size:21px}.send-button:hover{background:#b75236}.composer-note{text-align:center;font-size:8px;color:#a4a696;line-height:1.8;margin:12px 0 0}.composer-note span{margin-left:13px;color:#8c9781}.messages{width:100%;max-width:810px;margin:30px auto;display:flex;flex-direction:column;gap:26px}.messages:empty{display:none}.message{max-width:100%;line-height:1.8;white-space:pre-wrap;font-size:13px;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#f0f2ee;color:#172923;border-radius:20px;padding:12px 18px;max-width:min(85%,680px);box-shadow:0 1px 3px rgba(0,0,0,.04)}.message.assistant{padding:4px 0}.message.assistant:before{display:none!important}.message.error{color:#a94934}.activity{max-width:810px;width:100%;margin:0 auto 18px;padding:12px 16px;border:1px solid #e0e5d7;border-radius:9px;background:#f2f4ec;font-size:11px;color:#6e805c;line-height:1.8}.activity .failed{color:#b3593f}.attachment-label{font-size:10px;color:#6b7d60;padding-bottom:9px}.stop-button{border:1px solid #d6d9cb;background:#f2f3e9;padding:7px 10px;border-radius:6px;font-size:10px}.site-footer{height:39px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;color:#9c9e90;font-size:9px}.site-footer>span:first-child{color:#6c7d60;font-weight:600}.site-footer .muted{font-weight:400;margin-left:9px;color:#a4a698}.content-view{max-width:1160px;margin:0 auto;padding:58px 48px 65px}.content-view>h1{font-size:53px;margin-top:19px}.section-intro{color:#8a8f80;font-size:12px;line-height:1.9;max-width:570px;margin-bottom:35px}.agent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.agent-card{border:1px solid var(--line);background:#fffefa;border-radius:12px;padding:22px;display:flex;flex-direction:column;align-items:flex-start}.agent-monogram{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:#e8eddf;color:#6b7d55;font-family:Georgia,serif;font-size:19px;margin-bottom:25px}.agent-card:nth-child(2n) .agent-monogram{background:#f2e4d9;color:#aa7451}.agent-card h2{font-size:14px;margin:0 0 8px;font-weight:550}.agent-card p{font-size:11px;line-height:1.8;color:#8b9181;min-height:48px;margin-bottom:19px}.agent-card button{font-size:11px;background:none;border:0;padding:0;margin-top:auto;color:#5e744d}.info-strip{margin-top:25px;padding:18px 21px;border-left:2px solid #aebb97;background:#f0f2e9;color:#818a76;font-size:11px;line-height:1.9}.api-heading,.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px}h2{font-size:15px;font-weight:550}.tag{font-size:9px;padding:5px 9px;border:1px solid #dce3d1;background:#f0f4e8;border-radius:6px;color:#7a8965}.usage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:14px 0 20px}.usage-grid>div{border:1px solid var(--line);border-radius:10px;padding:20px;background:#fffefa}.usage-grid span{font-size:11px;color:#858e7a}.usage-grid strong{display:block;font-size:29px;letter-spacing:-1px;font-weight:500;margin:12px 0 9px}.usage-grid small{font-size:9px;color:#a1a493}.api-columns{display:grid;grid-template-columns:1fr 1.35fr;gap:18px}.panel{padding:22px;border:1px solid var(--line);border-radius:12px;background:#fffefa;margin-bottom:20px;min-width:0}.panel h2{margin:0 0 12px}.panel .panel-title h2{margin:0}.panel p{font-size:11px;color:#8b9180;line-height:1.9}.primary-button{background:var(--ink);color:#f4f5e8;border:0;border-radius:7px;padding:12px 17px;font-size:11px;display:inline-flex;justify-content:center;gap:25px;align-items:center}.primary-button:hover{background:#405b46}.code-panel{background:#20372c;color:#e2e8d6;border:0}.code-panel .text-button{color:#b4c3a4}.code-panel pre{font-size:10px;line-height:1.9;overflow-x:auto;color:#c5d3b8;white-space:pre-wrap;word-break:break-word}.key-result{margin-top:18px;font-size:10px}.key-result code{display:block;word-break:break-all;background:#eef0e5;padding:10px;border-radius:6px}.key-result small{display:block;font-size:9px;color:#8a8d7f;line-height:1.7}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:10px;text-align:left;margin-top:18px}th{font-weight:500;color:#8b9580;padding:12px 8px;border-bottom:1px solid var(--line)}td{padding:13px 8px;color:#828a77;border-bottom:1px solid #f0f0e8}tr:last-child td{border-bottom:0}.api-docs{font-size:11px;line-height:1.9;color:#88907b}.api-docs h2{color:var(--ink)}.api-docs code{background:#ecefe3;padding:2px 4px;border-radius:3px;font-size:10px}.pricing-caption{display:flex;align-items:center;gap:12px;font-size:11px;color:#969b8b;margin-bottom:30px}.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.plan-card{border:1px solid var(--line);border-radius:13px;padding:25px 23px;background:#fffefa;position:relative;display:flex;flex-direction:column}.plan-card.featured{border-color:#7b9066;background:#f2f5eb}.plan-recommend{position:absolute;left:23px;top:-11px;font-size:8px;letter-spacing:1px;background:#6e855b;color:#f8faef;padding:6px 10px;border-radius:5px}.plan-card h2{margin:7px 0 14px}.price{font-size:35px;font-weight:500;letter-spacing:-1.5px}.price span{font-size:14px;margin-right:5px;color:#8a967b;letter-spacing:0}.plan-card>p{font-size:11px;color:#949985;line-height:1.9;min-height:44px}.token-count{font-size:13px;color:#5c724b;margin:20px 0 8px}.plan-card ul{padding-left:15px;margin:13px 0 28px;color:#858e79;font-size:10px;line-height:2.4}.plan-card button{margin-top:auto;width:100%}.plan-card:not(.featured) button{border:1px solid #d9dfcc;background:none;color:#5e7251}.checkout-notice{font-size:11px;color:#9a866c;line-height:1.8;margin-top:24px}.faq{margin-top:46px;max-width:780px}.faq h2{font-size:21px;font-family:Georgia,serif;font-weight:400;margin-bottom:24px}details{border-bottom:1px solid var(--line);padding:16px 0}summary{cursor:pointer;font-size:12px;color:#5f7251}details p{font-size:11px;line-height:1.9;color:#8a927e}.modal{width:min(440px,calc(100% - 32px));background:var(--paper);border:1px solid #dddccf;border-radius:17px;padding:36px;color:var(--ink);box-shadow:0 30px 100px #15221933;max-height:90dvh}.modal::backdrop{background:#13231d66;backdrop-filter:blur(3px)}.modal h2{font-family:Georgia,serif;font-size:29px;font-weight:400;letter-spacing:-.5px;margin:16px 0 10px}.modal p{font-size:11px;color:#8e9582;line-height:1.9}.dialog-close{position:absolute;right:17px;top:12px;border:0;background:none;font-size:25px;color:#8c927f}.modal form{display:grid;gap:17px;margin-top:25px}.modal label{display:grid;gap:8px;font-size:11px;color:#68795a}.modal input,.modal textarea{width:100%;border:1px solid #d9decb;background:#fffefa;padding:12px;border-radius:7px;color:#384d2d;font-size:12px;resize:vertical}.modal textarea{min-height:100px}.modal .primary-button{width:100%}.auth-toggle{width:100%;margin-top:17px;text-align:center}.modal .small-note{font-size:9px;text-align:center;margin-top:17px;color:#9da48e}.form-error{color:#ae543d!important;margin:0;min-height:0}.form-error:empty{display:none}.agent-options{display:grid;margin-top:26px;gap:9px}.agent-options button{border:1px solid #e0e4d5;background:#fffefa;border-radius:8px;text-align:left;padding:12px;font-size:12px}.agent-options small{display:block;color:#919b83;margin-top:6px;font-size:10px}.agent-options button:hover{background:#edf1e5}.wide-modal{width:min(600px,calc(100% - 32px))}.memory-item{margin-top:17px;padding:12px;border:1px solid #e4e7da;border-radius:8px;font-size:11px;color:#7c8970;line-height:1.8}.memory-item p{white-space:pre-wrap;color:#5b7050}.memory-item button{border:0;background:none;color:#a46c4f;font-size:10px;padding:0}.toast{position:fixed;bottom:28px;left:calc(50% + 125px);transform:translateX(-50%);background:#253d30;color:#f0f1e4;padding:15px 22px;border-radius:9px;z-index:99;font-size:12px;max-width:calc(100vw - 32px);line-height:1.6;box-shadow:0 12px 35px #19312322}.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}@media(min-width:1500px){.welcome{padding-top:100px;padding-bottom:70px}.chat-view{padding-left:70px;padding-right:70px}}@media(max-width:1100px){.sidebar{width:220px;padding-left:15px;padding-right:15px}.main-shell{margin-left:220px}.topbar{padding:0 24px}.chat-view{padding:0 24px}.content-view{padding:42px 28px}.welcome{padding-top:44px;padding-bottom:33px}.welcome h1{font-size:52px}.suggestions button{padding:14px 12px}.suggestions strong{font-size:10px}.suggestions small{font-size:8px}.agent-grid{grid-template-columns:repeat(2,1fr)}.plan-grid{gap:10px}.plan-card{padding:23px 16px}.price{font-size:30px}.top-actions{gap:16px}.toast{left:calc(50% + 110px)}}@media(max-width:760px){.sidebar{transform:translateX(-100%);width:250px;transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #17231b66}.main-shell{margin-left:0}.topbar{height:60px;padding:0 19px;justify-content:flex-start}#menuButton{display:block;font-size:17px;padding:0}.breadcrumb{font-size:10px;flex:1}.breadcrumb span{margin:0 8px}.top-actions .quiet-link{display:none}.engine-status{font-size:9px}.chat-view{padding:0 20px;min-height:calc(100dvh - 99px)}.chat-topline{gap:10px;padding-top:20px}.private-label{display:none}.chat-topline .text-button{font-size:10px}.welcome{padding-top:44px;padding-bottom:30px}.welcome h1{font-size:48px;letter-spacing:-1.8px}.welcome>p{font-size:11px}.eyebrow{font-size:8px;letter-spacing:1.5px}.suggestions{gap:8px;margin-top:30px}.suggestions button{padding:13px 10px;min-height:120px}.suggestions strong{line-height:1.6;font-size:10px}.suggestions small{display:none}.card-icon{margin-bottom:12px;width:26px;height:26px;font-size:18px}.card-arrow{display:none}.composer{padding:13px}.composer textarea{font-size:12px}.enter-hint{display:none}.composer-note span{display:none}.composer-note{font-size:8px}.composer-wrap{padding-bottom:18px}.site-footer{padding:0 20px;font-size:8px}.site-footer .muted{display:none}.content-view{padding:40px 22px}.content-view>h1{font-size:43px;letter-spacing:-1.5px}.agent-grid{gap:12px}.agent-card{padding:18px 15px}.agent-card p{font-size:10px}.usage-grid{gap:8px}.usage-grid>div{padding:13px 10px}.usage-grid span{font-size:9px}.usage-grid strong{font-size:22px}.usage-grid small{font-size:8px}.api-columns{grid-template-columns:1fr}.api-heading .tag{font-size:7px}.plan-grid{grid-template-columns:1fr;gap:24px}.plan-card{padding:25px}.plan-card>p{min-height:0}.plan-card ul{margin:8px 0 20px}.plan-card .price{font-size:40px}.pricing-caption{font-size:10px}.toast{left:50%;width:max-content}.modal{padding:30px 24px}.private-label{display:none}.team-button{font-size:8px}.messages{gap:20px}.message{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Visual escolhido pelo proprietário: referência de 24/10/2026. */
:root{--paper:#f7f8f5;--ink:#173532;--muted:#70858b;--sidebar:#122b27;--accent:#173532;--line:#dde4e0}
body{color:var(--ink);background:radial-gradient(ellipse at 55% 42%,#fffefa70,transparent 65%),var(--paper)}
.sidebar{width:clamp(230px,16vw,290px);background:radial-gradient(ellipse at 10% 90%,#1a393344,transparent 70%),linear-gradient(135deg,#102723,#17332e);padding:26px 17px 22px}
.main-shell{margin-left:clamp(230px,16vw,290px)}
.brand{padding-left:10px;gap:13px;margin-bottom:41px}.brand>span{font-size:29px;letter-spacing:-1.1px;font-weight:600}.brand small{top:37px;font-size:8px;color:#9bb2ac}.brand svg{width:26px;height:26px;color:#f3f7f1}.brand-dot{color:inherit}
.new-chat{background:linear-gradient(110deg,#385d55,#2b4942);border-color:#49695f55;font-size:14px;padding:11px 12px;margin-bottom:32px}.new-chat kbd{font-size:12px;color:#d0ded8}
.nav-label{font-size:10px;letter-spacing:1.5px;color:#b0c4c0}.nav-icon{display:flex;align-items:center;width:21px;height:21px;color:#eff4ee}.nav-icon svg{width:20px;height:20px}nav a{font-size:14px;padding:12px;gap:13px;color:#edf2ed}nav a.active,nav a:hover{background:linear-gradient(110deg,#41615799,#36514999)}nav a small{font-size:11px;border:0;background:#52726644;color:#e2ece6;padding:3px 9px}
.projects-head{margin-top:39px}.projects-head button{color:#e0ebe5}.project-list .muted{font-size:12px;color:#c0d0c9;padding-left:9px}
.upgrade{background:linear-gradient(130deg,#36534b88,#29483f88);border-color:#42615366;padding:17px 19px;border-radius:12px}.upgrade-mark{font-size:19px;margin-bottom:13px;color:#edf4e8}.upgrade strong{font-size:14px}.upgrade>span:not(.upgrade-mark){font-size:12px;color:#c0d1cb}.upgrade b{font-size:12px;color:#eff4ed;padding-top:12px;border-color:#6f8b6e44}.account{gap:13px;padding-top:29px}.avatar{width:37px;height:37px;background:#f0f0df;color:#21463c;font-size:15px}.account strong{font-size:12px}.account small{font-size:11px;color:#bccbc8}.account-dots{font-size:17px}
.topbar{height:71px;padding:0 40px}.breadcrumb{font-size:12px;color:#365451}.breadcrumb strong{color:#203e38}.breadcrumb span{margin:0 18px}.engine-status{font-size:12px;color:#24413c}.engine-status i{width:9px;height:9px}.engine-status.ready i{background:#4f7c4a}.quiet-link{font-size:12px;color:#2f4945}.top-actions{gap:25px}
.chat-view{min-height:calc(100dvh - 133px);padding:0 60px}.chat-topline{padding-top:27px;gap:20px}.agent-picker{font-size:14px}.private-label{font-size:12px;color:#7e9399;padding-left:19px}.chat-topline .text-button{font-size:12px;display:flex;align-items:center;gap:15px;color:#365452}.text-button svg{width:19px;height:19px}
.welcome{max-width:820px;text-align:center;margin:36px auto 0;padding:0 16px 20px}.welcome .eyebrow{display:none}.welcome h1{font-family:var(--font);font-weight:500;font-size:clamp(32px,4.5vw,50px);line-height:1.18;letter-spacing:-1.2px;border-left:0;padding-left:0;margin:16px auto 14px}.welcome h1 em{color:#4b6f57;font-weight:500;font-style:normal}.welcome>p{font-size:clamp(14px,1.2vw,16px);line-height:1.6;color:#556c64;margin:0 auto 30px;max-width:580px}
.suggestions{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;max-width:820px;margin:0 auto;text-align:left}.suggestions button{padding:18px 20px 20px;border-radius:14px;background:#ffffff;border:1px solid #dce4de;min-height:120px;box-shadow:0 2px 8px rgba(0,0,0,.03);display:flex;flex-direction:column;justify-content:flex-start;transition:all .18s cubic-bezier(0.16,1,0.3,1)}.suggestions button:hover{transform:translateY(-2px);border-color:#28c76f;box-shadow:0 8px 24px rgba(40,199,111,0.12)}.card-icon{width:36px;height:36px;border-radius:10px;margin-bottom:12px}.card-icon svg{width:19px;height:19px}.sage{background:linear-gradient(130deg,#e7eee5,#dbe8dc);color:#385f54}.peach,.blue{background:linear-gradient(130deg,#e3eaeb,#d7e1e3);color:#4e6e78}.sand{background:linear-gradient(130deg,#f1ede1,#e9e4d7);color:#8c7b54}.card-arrow{top:20px;right:18px;color:#8fa39a;font-size:16px}.suggestions strong{font-size:14px;font-weight:600;margin-bottom:6px;color:#18362b}.suggestions small{font-size:12px;color:#70867d;line-height:1.5}
.composer-wrap{width:100%;max-width:820px;margin:16px auto 0;padding-bottom:24px;min-width:0;box-sizing:border-box}.composer{border:1px solid #d4dfda;border-radius:20px;padding:14px 18px 10px;box-shadow:0 4px 20px rgba(0,0,0,.05);background:#ffffff;transition:border-color .15s ease,box-shadow .15s ease;min-width:0}.composer:focus-within{border-color:#28c76f;box-shadow:0 6px 26px rgba(40,199,111,0.12)}.composer textarea{font-size:14px;min-height:48px;max-height:180px;color:#172923;line-height:1.6}.composer textarea::placeholder{color:#8fa099}.composer-tools{gap:16px}.composer-tools>.icon-button{color:#355a54}.team-button{font-size:11.5px;color:#29463f;background:#f0f4ef;border-color:#d5e2d8;padding:6px 12px;border-radius:8px;gap:8px}.team-button span{display:flex}.team-button svg{width:14px;height:14px}.send-button{background:#17382d;color:#ffffff;width:36px;height:36px;border-radius:50%;font-size:18px;box-shadow:0 2px 6px rgba(0,0,0,.12);display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}.send-button:hover:not(:disabled){background:#235444;transform:scale(1.05)}.enter-hint{font-size:11px;color:#8a9ca1}.send-tools{gap:16px}.composer-note{display:none}
.site-footer{height:54px;padding:0 32px;font-size:11px;color:#82969c;border-top:1px solid var(--line)}.site-footer>span:first-child{color:#294d45}.site-footer .muted{color:#7f959a;margin-left:16px}.messages,.activity{max-width:820px;width:100%;min-width:0}.messages{margin-top:40px}.messages:not(:empty)~.composer-wrap{margin-top:auto}.content-view>h1{font-family:var(--font);font-weight:500;letter-spacing:-.03em}.content-view>h1 em{color:#4b6f57}.section-intro{font-size:14px}.panel p,.api-docs{font-size:13px}.toast{left:calc(50% + clamp(115px,8vw,145px))}
@media(min-height:850px) and (min-width:1101px){.composer-wrap{margin-top:auto}.welcome{margin-top:70px}}
@media(max-width:1250px) and (min-width:761px){.chat-view{padding:0 30px}.welcome{margin-top:50px}.welcome h1{margin-left:18px;padding-left:25px;font-size:43px}.welcome>p{margin-left:45px;font-size:14px}.suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:32px}.suggestions button{min-height:125px;padding:16px}.suggestions strong{font-size:13px}.suggestions small{font-size:11px}.composer-wrap{padding-bottom:28px}}
@media(max-width:760px){.sidebar{width:270px;padding:25px 17px}.main-shell{margin-left:0}.topbar{height:62px;padding:0 20px}.engine-status{font-size:10px}.breadcrumb{font-size:10px}.chat-view{padding:0 22px;min-height:calc(100dvh - 112px)}.chat-topline{padding-top:21px}.chat-topline .text-button{font-size:10px;gap:8px}.agent-picker{font-size:13px}.welcome{margin:40px auto 0;padding-bottom:30px}.welcome h1{font-size:36px;letter-spacing:-1.3px;margin:12px 0 24px;padding-left:20px;line-height:1.25}.welcome>p{margin-left:22px;font-size:12px;line-height:1.7}.welcome>p br{display:none}.suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:28px}.suggestions button{padding:14px 12px;min-height:130px}.card-icon{width:32px;height:32px;margin-bottom:13px}.card-icon svg{width:18px;height:18px}.suggestions strong{font-size:11px}.suggestions small{display:block;font-size:9px}.card-arrow{display:none}.composer-wrap{margin-top:auto;padding-bottom:26px}.composer{padding:14px}.composer textarea{font-size:13px}.composer-tools{gap:10px}.team-button{font-size:10px;padding:7px 8px;gap:6px}.send-button{width:34px;height:34px}.site-footer{height:50px;padding:0 22px;font-size:9px}.toast{left:50%}.content-view>h1{font-size:38px}.section-intro{font-size:12px}}

.google-button{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border:1px solid #cdd7d1;border-radius:7px;background:#fff;color:#263b34;font-weight:500;font-size:14px;margin:24px 0 0;padding:10px 16px}.google-button:hover{background:#f1f5f0}.google-button:disabled{cursor:not-allowed;opacity:.6}.google-note{font-size:10px!important;text-align:center;margin:8px 0}.auth-divider{display:flex;align-items:center;gap:12px;color:#8a968a;font-size:10px;margin:22px 0 0}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#dfe5dc;flex:1}

.voice-button{display:inline-flex;align-items:center;gap:8px;background:#eef2ed;border:1px solid #d2dfd5;color:#294d43;padding:8px 10px;border-radius:9px;font-size:11px}.voice-button svg{width:17px;height:17px}.voice-button.active{background:#234d3d;color:#fff;border-color:#234d3d}.voice-panel{max-width:994px;width:100%;margin:0 auto 15px;background:#eef3ec;border:1px solid #d5e1d3;border-radius:12px;padding:17px 20px}.voice-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.voice-panel-heading strong{font-size:13px}.voice-panel-heading span{font-size:10px;color:#758a79}#voiceStatus{font-size:12px;color:#42674c;line-height:1.7}.voice-transcript{font-size:12px;line-height:1.7;color:#748479;max-height:90px;overflow:auto}.voice-actions{display:flex;gap:10px;flex-wrap:wrap}.voice-actions button{padding:7px 10px;font-size:10px;border:1px solid #cdd9c9;border-radius:6px;background:#fafcf7;color:#3d5b43}@media(max-width:760px){.voice-button span{display:none}.voice-button{padding:7px}.voice-button svg{width:18px;height:18px}.voice-panel-heading{align-items:flex-start;flex-direction:column}.voice-panel{padding:14px}.send-tools{gap:9px}.voice-actions{gap:7px}}

.price small{font-size:12px;font-weight:400;letter-spacing:0;color:#80917a}.subscription-panel{background:#eff4eb}.team-button{background:#e9f0e6;border-color:#cbdcc5;cursor:pointer}.team-button.direct-mode{background:#f4f5f1;color:#6b7c76;border-style:dashed}.plan-card .token-count{line-height:1.6}

.avatar{overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.chat-metrics{font-size:12px;color:var(--muted,#637570);padding:10px 4px;line-height:1.6}.response-metrics{font-size:12px;color:#637570;border-top:1px solid #dce3df;margin-top:18px;padding-top:10px}.response-steps{font-size:13px;color:#49635a;margin-top:10px;white-space:normal}.response-steps summary{cursor:pointer}.response-steps div{padding:5px 0}#accountManage{margin:12px 0}#accountIdentity{overflow-wrap:anywhere}

.public-guide{max-width:920px;margin:48px auto;padding:24px;line-height:1.8}.public-guide article{overflow-wrap:anywhere}.public-guide nav{margin-bottom:36px}.public-guide input,.public-guide textarea,#personaText,#webMode{display:block;width:100%;padding:12px;margin:8px 0 16px;border:1px solid #cbd7d0;border-radius:8px;background:#fff;color:#18352c}.public-guide button{margin:8px;padding:9px 14px}.response-sources{white-space:normal;display:grid;gap:8px;font-size:13px;margin-top:16px}.response-sources a{color:#365f4c}.response-sources small{color:#637570}#accountDialog{max-height:90vh;overflow:auto}

.public-guide pre{white-space:pre-wrap;overflow-wrap:anywhere}.public-guide section{margin:28px 0}#integrationsForm input,#grantForm input{max-width:100%}

/* O chat ocupa o espaço antes reservado ao rodapé. */
.chat-view{min-height:calc(100dvh - 71px)}
@media(max-width:760px){.chat-view{min-height:calc(100dvh - 62px)}}

.thinking-indicator{display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;line-height:1.6}.thinking-dots{display:inline-flex;align-items:center;gap:5px;height:20px}.thinking-dots i{display:block;width:6px;height:6px;border-radius:50%;background:#65846c;animation:thought-bounce 1.15s ease-in-out infinite}.thinking-dots i:nth-child(2){animation-delay:.16s}.thinking-dots i:nth-child(3){animation-delay:.32s}@keyframes thought-bounce{0%,65%,100%{transform:translateY(0);opacity:.5}32%{transform:translateY(-5px);opacity:1}}.research-globe{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;animation:research-pulse 1.5s ease-in-out infinite}@keyframes research-pulse{50%{opacity:.4}}.activity .thinking-indicator{margin-right:12px}.activity>div{display:flex;align-items:center;gap:8px}.activity .thinking-indicator>span:last-child{display:inline}.composer-wrap{padding-bottom:12px;margin-top:auto}@media(max-width:760px){.composer-wrap{padding-bottom:10px}}@media(prefers-reduced-motion:reduce){.thinking-dots i,.research-globe{animation:none}}

.cpu-working-pulse{width:22px;height:22px;color:#547b60;animation:agent-pulse 1.5s ease-in-out infinite}.agent-name-pulse{animation:agent-pulse 1.5s ease-in-out infinite}@keyframes agent-pulse{50%{color:#35604a;filter:drop-shadow(0 0 4px #88a99380)}}@media(prefers-reduced-motion:reduce){.cpu-working-pulse,.agent-name-pulse{animation:none}}

.mode-switch{display:flex;gap:3px;padding:4px;background:#e8eee7;border:1px solid #d3dfd2;border-radius:12px}.mode-switch button{border:0;background:transparent;padding:8px 20px;border-radius:9px;color:#547064}.mode-switch button[aria-pressed=true]{background:#fff;color:#163d2d;box-shadow:0 2px 7px #12302212}.work-tree{list-style:none;padding:0;margin:0}.work-tree li{border-left:2px solid #adc2ad;padding:10px 0 10px 15px;margin-left:4px;display:grid;gap:5px}.work-tree strong{font-size:12px;font-weight:500}.work-tree li[data-state=running]{border-color:#376648;background:#eaf2e8}.work-tree li[data-state=failed]{border-color:#ae665b}.work-files{display:grid;gap:8px}.work-files a{padding:10px;border:1px solid #d4dfd0;border-radius:8px;color:#31583d;text-decoration:none;font-size:12px}.code-block{margin:16px 0;border:1px solid #21262d;border-radius:12px;overflow:hidden;white-space:normal;max-width:100%;min-width:0;background:#0d1117;box-shadow:0 6px 20px #00000040}.code-block header{display:flex;align-items:center;justify-content:space-between;background:#161b22;border-bottom:1px solid #21262d;padding:8px 14px;font-size:12px;min-width:0;max-width:100%}.code-block button{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:#c9d1d9;font-size:12px;cursor:pointer}.code-block button:hover{color:#58a6ff}.code-block svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}.code-block pre{margin:0;padding:14px 16px;overflow-x:auto;max-width:100%;min-width:0;background:#0d1117;color:#e6edf3;font-size:13px;line-height:1.55;white-space:pre;font-family:'Fira Code','Cascadia Code',Consolas,'SF Mono',Monaco,monospace}.code-block code{display:block;max-width:100%;min-width:0;white-space:pre}.response-prose{white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}.activity{min-height:28px}@media(prefers-reduced-motion:reduce){.thinking-dots i,.cpu-working-pulse{animation:none}}
#conversationList{display:grid;gap:4px;margin:12px 0;max-height:35vh;overflow:auto}#conversationList button{border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;padding:9px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#conversationList button.active{background:#ffffff12}.browser-workspace{border-top:1px solid var(--line,#dae2dd);margin-top:20px;padding-top:12px}.browser-workspace form{display:flex;gap:6px}.browser-workspace input{min-width:0;width:100%;padding:8px}.browser-workspace img{width:100%;border:1px solid #d8e1db;cursor:crosshair}.browser-workspace button{padding:6px 9px;margin:3px}.browser-workspace p{font-size:12px;line-height:1.4}.browser-expanded .work-panel{width:min(850px,70vw);z-index:20;box-shadow:-10px 0 30px #0002}.browser-expanded.work-mode .chat-view{margin-right:min(850px,70vw)}

.browser-chrome{display:flex;align-items:center;gap:4px;background:#edf1eb;padding:8px;border:1px solid #dce2d9;border-radius:12px 12px 0 0}.browser-chrome input{font-size:11px;flex:1;width:0;min-width:0;background:#fff;border:1px solid #d4ddcf;border-radius:16px;padding:6px 9px;color:#4d6050}.browser-chrome button,.browser-controls button{border:0;background:transparent;color:#4d6050;padding:5px;min-width:25px}.browser-controls{display:flex;justify-content:flex-end;gap:7px;padding:6px}.browser-workspace img{display:block;border:1px solid #dce2d9;border-top:0}.browser-workspace>p{font-size:11px;color:#6f806e;padding:0 8px}

#agentSelect{max-width:240px;padding:7px 10px;border:1px solid #d8e1d8;border-radius:8px;background:transparent;color:inherit}.response-specialist{font-size:11px;color:#63836a;margin-bottom:8px}

.source-cards{display:flex;flex-direction:column;gap:5px;margin:8px 0 12px 0;max-width:100%}.source-cards a{display:flex;align-items:center;gap:8px;padding:5px 9px;border:1px solid #dce4dc;border-radius:8px;background:#fbfdfa;text-decoration:none;color:#283a2e;font-size:12px;line-height:1.35;transition:background .15s ease,border-color .15s ease;min-width:0;max-width:100%}.source-cards a:hover{background:#edf4ec;border-color:#cad8cc;color:#18281d}.source-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#e5ede6;font-size:10px;font-weight:600;color:#416049;flex-shrink:0;position:relative;overflow:hidden}.source-icon img{position:absolute;inset:1px;width:16px;height:16px;border-radius:50%}.source-badge{font-size:11px;font-weight:600;color:#45674c;background:#e8f0e5;padding:1px 5px;border-radius:4px;flex-shrink:0}.source-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;color:#223326}.source-meta{font-size:11px;color:#6f8373;white-space:nowrap;flex-shrink:0;margin-left:auto}@media(max-width:600px){.source-cards a{flex-wrap:wrap;gap:3px 6px}.source-meta{width:100%;margin-left:26px;font-size:10px}}.specialist-council{border:1px solid #dce5df;border-radius:12px;padding:14px;margin:12px 0}.specialist-council details{padding:10px 0}.response-exports{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.message figure img{max-width:100%;border-radius:12px}.memory-saved{color:#52755b}.artifact-preview{position:fixed;right:0;top:0;bottom:0;width:min(48vw,850px);z-index:30;background:#f8faf7;border-left:1px solid #dce5df;display:flex;flex-direction:column;padding:14px;box-shadow:-8px 0 30px #132e2410}.artifact-preview header{display:flex;justify-content:space-between;align-items:center;gap:12px}.artifact-preview iframe{border:0;width:100%;flex:1;background:white;margin-top:14px}.artifact-open .main-shell{padding-right:48vw}.image-skeleton{min-height:160px;animation:preview-pulse 1.2s ease-in-out infinite;background:#e7ede8;border-radius:12px}@keyframes preview-pulse{50%{opacity:.45}}@media(max-width:900px){.artifact-preview{width:100%;height:75vh;top:auto}.artifact-open .main-shell{padding-right:0}}@media(prefers-reduced-motion:reduce){.image-skeleton{animation:none}}

.chat-metrics{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:8px 2px;font-size:11px}.usage-meter{position:relative;display:flex;align-items:center;gap:7px;min-width:190px}.usage-meter progress{width:90px;height:5px;border:0;border-radius:10px;overflow:hidden;appearance:none;background:#e5e9e6}.usage-meter progress::-webkit-progress-bar{background:#e5e9e6}.usage-meter progress[data-tone=blue]::-webkit-progress-value{background:#417cc5}.usage-meter progress[data-tone=yellow]::-webkit-progress-value{background:#d3b330}.usage-meter progress[data-tone=orange]::-webkit-progress-value{background:#db873d}.usage-meter progress[data-tone=red]::-webkit-progress-value{background:#c75151}.usage-meter progress[data-tone=blue]{accent-color:#417cc5}.usage-meter progress[data-tone=yellow]{accent-color:#d3b330}.usage-meter progress[data-tone=orange]{accent-color:#db873d}.usage-meter progress[data-tone=red]{accent-color:#c75151}.meter-help{display:none;position:absolute;bottom:120%;left:0;width:260px;padding:12px;background:#172e26;color:white;border-radius:10px;z-index:40;line-height:1.5}.usage-meter:hover .meter-help,.usage-meter:focus .meter-help{display:block}.chat-metrics button{font-size:11px;border:0;background:transparent;text-decoration:underline;color:inherit}

.message-tools{display:flex;gap:8px;align-items:center;margin-top:10px;opacity:.65}.message:hover .message-tools,.message:focus-within .message-tools{opacity:1}.message-tools button,.message-tools select,.conversation-versions button{font-size:11px;padding:5px;border:1px solid #dbe3dc;border-radius:6px;background:transparent}.conversation-versions{display:inline-flex;gap:6px;align-items:center;font-size:11px}.history-item{padding:5px 0;border-bottom:1px solid #ffffff10;display:flex;gap:4px;flex-wrap:wrap}.history-item>button:first-child{flex:1;min-width:100px;text-align:left}.history-item.pinned{border-left:2px solid #aec3b2}.history-item>select,.history-item>button:not(:first-child){font-size:10px;max-width:110px}.numbered-code{display:flex;gap:16px;min-width:0;max-width:100%;overflow-x:auto}.code-lines{white-space:pre;text-align:right;opacity:.4;user-select:none;border-right:1px solid #ffffff20;padding-right:12px;flex-shrink:0}.numbered-code>code{flex:1;min-width:0;white-space:pre}.arena-dialog{width:min(1200px,95vw);max-width:95vw}.arena-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:15px 0}.arena-columns>section{padding:18px;border:1px solid #dce4dd;border-radius:12px}.daily-usage{padding:12px 0}.daily-usage progress{width:100%;height:6px;accent-color:#4b7856}#historyControls{display:grid;gap:6px;margin:10px 0}#historyControls input{width:100%;min-width:0;background:#ffffff0d;border:1px solid #ffffff20;color:inherit;padding:8px;border-radius:8px}.voice-wave{display:flex;align-items:center;gap:3px;height:28px}.voice-wave i{display:block;width:3px;height:7px;background:#648c6c;border-radius:3px;animation:voice-wave 1s ease-in-out infinite}.voice-wave i:nth-child(2n){animation-delay:.2s}.voice-wave i:nth-child(3n){animation-delay:.4s}@keyframes voice-wave{50%{height:24px}}@media(prefers-reduced-motion:reduce){.voice-wave i{animation:none}}@media(max-width:700px){.arena-columns{grid-template-columns:1fr}.message-tools{opacity:1}}

.voice-wave[hidden]{display:none}.voice-wave i{animation:none;transition:height .08s linear}

/* Shared controls also cover dynamically created tools and dialogs. */
:root{--control-bg:#f7f9f5;--control-line:#d7e1d9;--control-hover:#edf3ed;--control-focus:#6b8a76}
:where(button){appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:7px 11px;border:1px solid var(--control-line);border-radius:8px;background:var(--control-bg);color:var(--ink);font:inherit;line-height:1.35;vertical-align:middle;transition:background .15s,border-color .15s,box-shadow .15s}
:where(button):hover:not(:disabled){background:var(--control-hover);border-color:#b8cbbd}
:where(button):disabled{cursor:not-allowed}
:where(select){appearance:none;font:inherit;line-height:1.4;color:var(--ink);border:1px solid var(--control-line);border-radius:8px;background-color:var(--control-bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23536e60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding:7px 29px 7px 10px;min-height:32px;max-width:100%;cursor:pointer}
:where(button,select,input,textarea):focus-visible{outline:2px solid var(--control-focus);outline-offset:3px}
.chat-topline{flex-wrap:wrap;gap:8px 12px;align-items:center}
.chat-topline .private-label{flex:1 1 200px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-topline>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;border:1px solid transparent;border-radius:8px;padding:7px 9px;background:transparent;color:#547165;font-size:11px;line-height:1.35;white-space:nowrap}
.chat-topline>button:hover:not(:disabled){background:#edf3ed;border-color:#d7e1d9;color:#244d3e}
.chat-topline #memoryButton{margin-left:auto}
.chat-topline #memoryButton svg{width:17px;height:17px;flex-shrink:0}
.conversation-versions:empty{display:none}.conversation-versions{flex-wrap:wrap}
.message-tools{flex-wrap:wrap;white-space:normal;opacity:1;gap:7px}
.message-tools button,.message-tools select,.conversation-versions button{min-height:30px;border:1px solid #dce5de;border-radius:8px;background-color:#f7f9f5;color:#617b6d;font-size:11px;line-height:1.4;padding:6px 10px}
.message-tools select{padding-right:29px}.message-tools button:hover,.conversation-versions button:hover{background:#eaf1e9;color:#2d5442}
.response-exports{gap:7px;white-space:normal;padding-top:2px}
.response-exports button,.message>button,.message figure button,.artifact-preview header button{min-height:32px;font-size:11px;padding:7px 11px;border:1px solid #d5e1d8;border-radius:8px;background:#f1f6ef;color:#3c624e}
.response-exports button:hover,.message>button:hover,.message figure button:hover,.artifact-preview header button:hover{background:#e4eee2;border-color:#b8cbb7}
.message figure{margin:18px 0;white-space:normal}.message figure figcaption{font-size:11px;color:#73877b;margin:8px 0}
.message figure a,.message>a[download]{display:inline-flex;align-items:center;min-height:32px;padding:7px 11px;margin:4px 7px 4px 0;border:1px solid #d5e1d8;border-radius:8px;background:#f1f6ef;color:#3c624e;font-size:11px;text-decoration:none}
#historyControls{gap:8px;margin:10px 0 12px}#historyControls input{font:inherit;font-size:12px;padding:9px 11px;background:#ffffff08;border-color:#ffffff20;color:#e1ebe5}#historyControls input::placeholder{color:#9bafa5}
#historyControls button{justify-self:start;width:auto;padding:6px 10px;min-height:30px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff08;color:#c4d6cb;text-align:center;font-size:11px;line-height:1.4}#historyControls button:hover{background:#ffffff13;border-color:#ffffff35}
#conversationList .history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:6px;border:1px solid transparent;border-radius:10px;min-width:0;background:#ffffff03}
#conversationList .history-item:hover{background:#ffffff07;border-color:#ffffff10}#conversationList .history-item.pinned{border-left:2px solid #8daa96}
#conversationList .history-item>button:first-child{width:100%;min-width:0;min-height:32px;padding:7px 8px;justify-content:flex-start;text-align:left;display:block;font-size:12px}
#conversationList .history-item>button:not(:first-child){width:auto;min-height:28px;min-width:0;padding:5px 7px;border:1px solid transparent;border-radius:7px;font-size:10px;color:#aabfb2;text-align:center;background:transparent}
#conversationList .history-item>button:not(:first-child):hover{border-color:#ffffff1c;background:#ffffff0d;color:#e5eee8}
#conversationList .history-item>select{grid-column:1/-1;width:100%;max-width:none;min-width:0;min-height:29px;padding:5px 28px 5px 9px;border:1px solid #ffffff1c;border-radius:7px;background-color:#213e33;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23b8cfc0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");color:#bcd0c2;font-size:11px}
#conversationList select option{background:#213e33;color:#e2eee6}#conversationList details{padding:8px 0;border-color:#ffffff12;min-width:0}#conversationList summary{color:#bcd0c2;font-size:11px;padding:5px 7px;overflow-wrap:anywhere}
:where(dialog:not(.modal)){width:min(580px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:28px;border:1px solid #d7e1d5;border-radius:18px;background:var(--paper);color:var(--ink);font-family:var(--font);box-shadow:0 24px 80px #132d252b}
:where(dialog:not(.modal))::backdrop{background:#142c2566;backdrop-filter:blur(4px)}
dialog:not(.modal) h2{margin:0 0 14px;font-size:22px;line-height:1.3;letter-spacing:-.5px;font-weight:500}dialog:not(.modal) h3{font-size:14px;color:#315743}
dialog:not(.modal) p{font-size:13px;color:#698173;line-height:1.7;overflow-wrap:anywhere}dialog:not(.modal)>p{margin:8px 0 18px}
dialog:not(.modal) :is(input,textarea){display:block;width:100%;min-width:0;padding:11px 12px;margin:12px 0;border:1px solid #d5dfd5;border-radius:10px;background:#fff;color:#294b3b;font:inherit;font-size:13px;line-height:1.6}dialog:not(.modal) textarea{min-height:100px;resize:vertical}
dialog:not(.modal) button{margin:5px 7px 5px 0;min-height:34px;padding:8px 12px;font-size:12px}dialog:not(.modal)>div>p{padding:12px;border:1px solid #dde6dc;border-radius:10px;background:#f4f7f1}dialog:not(.modal)>div>p button{margin-left:10px}
.arena-dialog{width:min(1100px,calc(100vw - 32px))}.arena-columns{min-width:0;gap:16px}.arena-columns>section{min-width:0;overflow-wrap:anywhere;background:#f7faf4}.arena-columns small{display:block;color:#778b7e;margin:12px 0 6px}.arena-columns .response-prose{font-size:13px;line-height:1.8}
.daily-usage>button{margin-top:10px;font-size:12px}.daily-usage>span{display:block;font-size:12px;line-height:1.7;color:#6b826f;margin-bottom:8px}.usage-meter{min-width:0;max-width:100%}.meter-help{width:min(280px,calc(100vw - 48px));max-width:calc(100vw - 48px);white-space:normal;box-shadow:0 8px 24px #132d251a}
.action-timeline{margin:10px 0 18px;padding:12px 15px;border:1px solid #dbe5d8;border-radius:12px;background:#f3f7ef;font-size:12px;white-space:normal}.action-timeline summary{font-size:12px;color:#4b6c56}.action-timeline>div>div{padding:7px 0;color:#70846e}.fact-check{padding:13px 16px;margin:12px 0;border:1px solid #d5e2d2;border-radius:12px;background:#eff5e9;white-space:normal}.fact-check strong{font-size:13px;color:#426349}.fact-check p{font-size:12px;line-height:1.7;color:#687d65;margin:7px 0 0}
.citation-badge{font-size:11px;border-radius:5px;padding:1px 4px;background:#e9f0e2;color:#527148}
@media(max-width:760px){.chat-topline{gap:5px 7px}.chat-topline>button{font-size:10px;min-height:30px;padding:6px 7px}.chat-topline #memoryButton{margin-left:0}.mode-switch{margin-right:auto}.message-tools,.response-exports{gap:6px}.message-tools button,.message-tools select,.response-exports button{font-size:10px;min-height:32px}.chat-metrics{gap:9px}.usage-meter{flex:1 1 100%;justify-content:space-between}.usage-meter progress{width:110px}dialog:not(.modal){padding:22px 18px}.arena-columns{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){:where(button){transition:none}}

.chat-actions{display:flex;flex:1 1 560px;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px 8px;min-width:0;max-width:100%;margin-left:auto}.chat-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:7px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#547165;font-size:11px;line-height:1.35;white-space:nowrap}.chat-actions>button:hover:not(:disabled){background:#edf3ed;border-color:#d7e1d9;color:#244d3e}.chat-actions #memoryButton{margin-left:0}.chat-actions #memoryButton svg{width:17px;height:17px;flex-shrink:0}.message-tools select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23536e60' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}@media(max-width:760px){.chat-actions{flex-basis:100%;justify-content:flex-start;gap:4px}.chat-actions>button{font-size:10px;padding:6px 7px;min-height:30px}}

/* Clean UI & Visual Polish: fixes for scrollbars, work-panel, pwa button, and sidebar pollution */
.work-panel-close{position:absolute;top:10px;right:12px;border:0;background:transparent;font-size:22px;color:#7a8e81;cursor:pointer;line-height:1;padding:4px 8px;border-radius:6px;transition:all .15s ease}
.work-panel-close:hover{background:#e7efe5;color:#18362b}

.sidebar, .project-list, #conversationList, .work-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.sidebar::-webkit-scrollbar, .project-list::-webkit-scrollbar, #conversationList::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track, .project-list::-webkit-scrollbar-track, #conversationList::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb, .project-list::-webkit-scrollbar-thumb, #conversationList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover, .project-list::-webkit-scrollbar-thumb:hover, #conversationList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.work-panel {
  scrollbar-width: thin;
  scrollbar-color: #cbd8cf transparent;
}
.work-panel::-webkit-scrollbar {
  width: 5px;
}
.work-panel::-webkit-scrollbar-track {
  background: transparent;
}
.work-panel::-webkit-scrollbar-thumb {
  background: #cbd8cf;
  border-radius: 4px;
}

.sidebar>button:last-child {
  appearance: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #c8ded4 !important;
  border-radius: 9px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  font-weight: 500;
  width: 100% !important;
  margin-top: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.sidebar>button:last-child:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.upgrade {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 10px;
}
.upgrade-mark { display: none; }
.upgrade strong { font-size: 12px; margin-bottom: 2px; }
.upgrade>span:not(.upgrade-mark) { font-size: 11px; opacity: 0.7; }
.upgrade b { margin-top: 8px; padding-top: 8px; font-size: 11px; }

#conversationList .history-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
}
#conversationList .history-item>button:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#conversationList .history-item>button:not(:first-child),
#conversationList .history-item>select {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
#conversationList .history-item:hover>button:not(:first-child),
#conversationList .history-item:hover>select,
#conversationList .history-item:focus-within>button:not(:first-child),
#conversationList .history-item:focus-within>select {
  opacity: 1;
  pointer-events: auto;
}

.activity{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}.activity .thinking-indicator{flex:1 1 240px;min-width:0;margin:0;align-items:center}.activity .activity-label{white-space:normal;overflow-wrap:anywhere}.activity .thinking-dots,.activity .research-globe,.activity .cpu-working-pulse{flex-shrink:0}.activity-elapsed{font-size:11px;color:#718276;white-space:nowrap}.activity-return{font-size:11px;padding:6px 10px;background:#f6faf1;border:1px solid #cfdcc9;border-radius:8px;color:#45684e}#conversationList .history-pending{grid-column:1/-1;font-size:10px;color:#aecab5;padding:0 8px 4px}#conversationList .history-item.generating{border-color:#7b9c8040}

/* VSCode Live Editor & Work Panel Modernization: Docked Flush to Right Corner (ChatGPT Canvas / Artifacts Standard) */
.work-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  width: min(520px, 42vw);
  overflow-y: auto;
  overflow-x: hidden;
  background: #0d1117;
  border-left: 1px solid #30363d;
  border-right: none;
  border-top: none;
  border-bottom: none;
  border-radius: 0;
  padding: 16px 20px 26px;
  z-index: 50;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  color: #e6edf3;
}

.work-panel.work-panel-expanded {
  width: min(920px, 72vw);
  z-index: 55;
  box-shadow: -16px 0 50px rgba(0, 0, 0, 0.6);
}

.work-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #21262d;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  background: #0d1117;
  z-index: 5;
}

/* Chat view padding adjustment when work-panel is open without overflowing */
body.work-panel-open .main-shell {
  padding-right: min(520px, 42vw);
}
body.work-panel-open.work-expanded .main-shell {
  padding-right: min(920px, 72vw);
}

@media(max-width: 900px) {
  .work-panel {
    width: 100vw;
    max-width: 100vw;
    z-index: 200;
  }
  body.work-panel-open .main-shell {
    padding-right: 0 !important;
  }
}

.work-panel-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-panel-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0;
}

.work-panel-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 12px;
  background: #1f3326;
  color: #5eff9b;
  border: 1px solid #28c76f44;
}

.work-panel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-panel-expand {
  border: 1px solid #30363d;
  background: #161b22;
  color: #c9d1d9;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}

.work-panel-expand:hover {
  background: #21262d;
  color: #ffffff;
  border-color: #58a6ff;
}

.work-panel-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #8b949e;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all .15s ease;
}

.work-panel-close:hover {
  background: #21262d;
  color: #f85149;
}

.work-state-text {
  font-size: 12px;
  color: #8b949e;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

/* VSCode Editor Window */
.vscode-editor {
  background: #111814;
  border: 1px solid #233529;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  margin-bottom: 16px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.vscode-tabs {
  display: flex;
  overflow-x: auto;
  background: #0b110e;
  border-bottom: 1px solid #1c2b21;
  padding: 4px 6px 0 6px;
  gap: 3px;
}

.vscode-tabs::-webkit-scrollbar {
  height: 4px;
}
.vscode-tabs::-webkit-scrollbar-thumb {
  background: #233529;
  border-radius: 2px;
}

.vscode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #131c16;
  color: #8fa797;
  border: 0;
  border-radius: 6px 6px 0 0;
  padding: 7px 12px;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .15s ease;
}

.vscode-tab:hover {
  background: #18241c;
  color: #cde0d3;
}

.vscode-tab.active {
  background: #18241c;
  color: #ffffff;
  border-bottom: 2px solid #28c76f;
  font-weight: 500;
}

.vscode-tab-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c76f;
  animation: pulseLive 1.4s infinite ease-in-out;
}

.vscode-file-icon {
  font-size: 12px;
}

.vscode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #162019;
  border-bottom: 1px solid #213227;
  font-size: 11px;
  gap: 8px;
}

.vscode-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a1b8a9;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vscode-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vscode-action-btn {
  background: #223126;
  border: 1px solid #304537;
  color: #d1e5d7;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s ease;
}

.vscode-action-btn:hover {
  background: #2c3f31;
  color: #ffffff;
  border-color: #425e4c;
}

.vscode-preview-btn {
  background: #124027;
  border-color: #28c76f;
  color: #5eff9b;
  font-weight: 600;
}

.vscode-preview-btn:hover {
  background: #175433;
  color: #ffffff;
}

.vscode-window {
  display: flex;
  max-height: 380px;
  min-height: 180px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.6;
  background: #121915;
}

.vscode-window::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.vscode-window::-webkit-scrollbar-thumb {
  background: #25392d;
  border-radius: 3px;
}

.vscode-gutter {
  padding: 12px 10px 12px 12px;
  background: #0d1117;
  color: #6e7681;
  text-align: right;
  user-select: none;
  border-right: 1px solid #21262d;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, 'SF Mono', Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  min-width: 36px;
}

.vscode-code {
  padding: 12px 14px;
  flex: 1;
  overflow-x: auto;
  white-space: pre;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, 'SF Mono', Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e6edf3;
  background: #0d1117;
  tab-size: 2;
}

.vscode-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #28c76f;
  margin-left: 2px;
  vertical-align: -2px;
  animation: blinkCursor 0.9s steps(2, start) infinite;
}

@keyframes blinkCursor {
  to {
    visibility: hidden;
  }
}

@keyframes pulseLive {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* VSCode File Explorer Cards */
.vscode-explorer-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c8876;
  font-weight: 600;
  margin: 12px 0 8px 0;
}

.vscode-explorer-list {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.vscode-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d8e4d5;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}

.vscode-file-card:hover {
  background: #f3f8f1;
  border-color: #28c76f;
  transform: translateY(-1px);
}

.vscode-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1a3c2c;
}

.vscode-file-badge {
  font-size: 10.5px;
  color: #668270;
  background: #eef5ed;
  padding: 2px 7px;
  border-radius: 6px;
}

.vscode-file-badge.live {
  background: #daf5e3;
  color: #177839;
  font-weight: 600;
  animation: pulseLive 1.4s infinite ease-in-out;
}

/* Sidebar Collapse & Minimize */
.sidebar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.sidebar-top-row .brand {
  margin-bottom: 0;
}
.sidebar-collapse-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #c5dbd1;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .15s ease;
}
.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* Always-visible topbar sidebar toggle button */
.topbar-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: #eef3eb;
  border: 1px solid #c9d8c6;
  border-radius: 8px;
  color: #1a4233;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.topbar-sidebar-toggle:hover {
  background: #e2ede0;
  border-color: #28c76f;
  color: #0d281e;
}
body.sidebar-collapsed .topbar-sidebar-toggle {
  background: #17382d;
  color: #55efc4;
  border-color: #27ae60;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.sidebar {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease;
}
.main-shell {
  transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
  pointer-events: none;
}
body.sidebar-collapsed .main-shell {
  margin-left: 0 !important;
}

/* Topbar in-system browser button */
.topbar-browser-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  background: #152d24;
  color: #62ff9f;
  border: 1px solid #234839;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}
.topbar-browser-btn:hover {
  background: #1c3c30;
  color: #ffffff;
  border-color: #28c76f;
  box-shadow: 0 0 12px rgba(40, 199, 111, 0.25);
}

/* In-System Canvas & Live App Runner (ChatGPT Canvas / Artifacts Standard) */
.felipe-canvas-runner, .felipe-browser {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  margin-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.felipe-canvas-runner.browser-fullscreen, .felipe-browser.browser-fullscreen {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  z-index: 1000;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
}

.canvas-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 8px 14px;
  min-height: 44px;
  gap: 12px;
  user-select: none;
}

.canvas-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.canvas-title-icon {
  display: flex;
  align-items: center;
  color: #58a6ff;
  flex-shrink: 0;
}

.canvas-title-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #e6edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvas-type-pill {
  font-size: 10.5px;
  font-weight: 500;
  color: #8b949e;
  background: #21262d;
  border: 1px solid #30363d;
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.canvas-tab-switcher {
  display: flex;
  align-items: center;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.canvas-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: #8b949e;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s ease;
}

.canvas-tab-btn:hover {
  color: #e6edf3;
}

.canvas-tab-btn.active {
  background: #21262d;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.canvas-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.canvas-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-size: 11px;
  padding: 4px 8px;
  min-height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}

.canvas-tool-btn:hover {
  background: #30363d;
  color: #ffffff;
  border-color: #8b949e;
}

.canvas-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #8b949e;
  font-size: 14px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}

.canvas-close-btn:hover {
  background: #21262d;
  color: #f85149;
}

.canvas-viewport-wrapper, .browser-viewport-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
  height: 520px;
  position: relative;
  overflow: hidden;
  transition: height .2s ease;
}

.felipe-canvas-runner.browser-fullscreen .canvas-viewport-wrapper,
.felipe-browser.browser-fullscreen .browser-viewport-wrapper {
  height: calc(100vh - 60px) !important;
}

.canvas-viewport-wrapper.viewport-mobile .canvas-viewport-frame,
.browser-viewport-wrapper.viewport-mobile .browser-viewport-frame {
  width: 375px !important;
  max-width: 375px;
  border-left: 1px solid #30363d;
  border-right: 1px solid #30363d;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
}

.canvas-viewport-frame, .browser-viewport-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #090d16;
  display: block;
}

.canvas-code-wrapper {
  display: flex;
  flex-direction: column;
  background: #0d1117;
  height: 520px;
  overflow: hidden;
}

.felipe-canvas-runner.browser-fullscreen .canvas-code-wrapper {
  height: calc(100vh - 60px) !important;
}

.canvas-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  padding: 6px 14px;
  font-size: 11px;
}

.canvas-code-label {
  color: #8b949e;
  font-weight: 500;
}

.canvas-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s ease;
}

.canvas-copy-btn:hover {
  background: #30363d;
  color: #fff;
}

.canvas-code-pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  flex: 1;
  background: #0d1117;
  color: #e6edf3;
  font-size: 12.5px;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Button to run in browser inside code block */
.code-run-browser-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  background: #238636;
  color: #ffffff;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 6px;
  padding: 3px 9px;
  cursor: pointer;
  transition: all .15s ease;
}
.code-run-browser-btn:hover {
  background: #2ea043;
  color: #ffffff;
}

/* VSCode Dark+ Complete Syntax Highlighting Theme */
.code-block pre, .vscode-code {
  background: #0d1117 !important;
  color: #e6edf3 !important;
}

.code-block .hljs-keyword,
.vscode-code .hljs-keyword,
.code-block .hljs-selector-tag,
.vscode-code .hljs-selector-tag,
.code-block .hljs-type,
.vscode-code .hljs-type {
  color: #ff7b72 !important;
  font-weight: 600;
}

.code-block .hljs-built_in,
.vscode-code .hljs-built_in,
.code-block .hljs-literal,
.vscode-code .hljs-literal,
.code-block .hljs-boolean,
.vscode-code .hljs-boolean {
  color: #79c0ff !important;
}

.code-block .hljs-string,
.vscode-code .hljs-string,
.code-block .hljs-regexp,
.vscode-code .hljs-regexp {
  color: #7ee787 !important;
}

.code-block .hljs-number,
.vscode-code .hljs-number {
  color: #f2cc60 !important;
}

.code-block .hljs-title,
.vscode-code .hljs-title,
.code-block .hljs-title.function_,
.vscode-code .hljs-title.function_,
.code-block .hljs-function,
.vscode-code .hljs-function {
  color: #d2a8ff !important;
  font-weight: 500;
}

.code-block .hljs-params,
.vscode-code .hljs-params,
.code-block .hljs-variable,
.vscode-code .hljs-variable,
.code-block .hljs-property,
.vscode-code .hljs-property {
  color: #ffa657 !important;
}

.code-block .hljs-comment,
.vscode-code .hljs-comment,
.code-block .hljs-quote,
.vscode-code .hljs-quote {
  color: #8b949e !important;
  font-style: italic;
}

.code-block .hljs-tag,
.vscode-code .hljs-tag,
.code-block .hljs-name,
.vscode-code .hljs-name {
  color: #569cd6 !important;
  font-weight: 600;
}

.code-block .hljs-attr,
.vscode-code .hljs-attr,
.code-block .hljs-attribute,
.vscode-code .hljs-attribute {
  color: #79c0ff !important;
}

.code-block .hljs-meta,
.vscode-code .hljs-meta,
.code-block .hljs-meta .hljs-keyword,
.vscode-code .hljs-meta .hljs-keyword {
  color: #d2a8ff !important;
}

.code-block .hljs-operator,
.vscode-code .hljs-operator,
.code-block .hljs-punctuation,
.vscode-code .hljs-punctuation {
  color: #c9d1d9 !important;
}

.code-block .code-lines {
  color: #6e7681 !important;
  border-right: 1px solid #30363d !important;
}

/* Real-Time Live Streaming & Typing Indicators */
.assistant-waiting-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f0f4ee;
  border: 1px solid #d8e3d6;
  border-radius: 14px;
  font-size: 12px;
  color: #496c56;
  margin-top: 4px;
}
.assistant-waiting-pill .waiting-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #477054;
  animation: waiting-pulse 1.2s infinite ease-in-out;
}
.assistant-waiting-pill .waiting-dot:nth-child(2) { animation-delay: 0.2s; }
.assistant-waiting-pill .waiting-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes waiting-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #3b634c;
  vertical-align: -2px;
  margin-left: 3px;
  border-radius: 1px;
  animation: cursor-blink 0.8s infinite;
}
.live-code-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #58a6ff;
  vertical-align: -2px;
  margin-left: 2px;
  border-radius: 1px;
  box-shadow: 0 0 6px #58a6ff88;
  animation: cursor-blink 0.8s infinite;
}
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.code-streaming-badge {
  font-size: 10px;
  font-weight: 600;
  color: #58a6ff;
  background: #1f2937;
  border: 1px solid #388bfd40;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  animation: pulse-stream-badge 1.5s infinite ease-in-out;
}
@keyframes pulse-stream-badge {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; border-color: #58a6ff; }
}

/* Bounded workspace layout, shared with generated content and remote pages. */
[hidden]{display:none!important}
html,body{max-width:100%;overflow-x:clip}
.main-shell,.chat-view,.chat-stage,.chat-scroll,.chat-messages,.message,.response-prose,.chat-topline,.composer-wrap{min-width:0;max-width:100%}
.message,.response-prose{overflow-wrap:anywhere}
.message pre,.message table,.message svg,.message canvas,.message figure{max-width:100%}
.message pre{overflow:auto}.message table{display:block;overflow:auto}
.sidebar{min-width:0;overflow-x:hidden}.sidebar nav,.sidebar section,.sidebar button{max-width:100%;min-width:0}
.work-panel{min-width:0;max-width:100vw;overflow:auto;overscroll-behavior:contain}
.work-panel :is(.vscode-editor,.vscode-window,.vscode-tabs,.vscode-explorer-list,.canvas-topbar){min-width:0;max-width:100%}
.vscode-tabs{overflow-x:auto;flex-wrap:nowrap}.vscode-tab{flex-shrink:0;max-width:260px;overflow:hidden}
.vscode-window{display:grid;grid-template-columns:3em minmax(0,1fr);overflow:auto}.vscode-code{white-space:pre;overflow:auto;max-height:55dvh}
.vscode-file-card{min-width:0}.vscode-file-name{min-width:0}.vscode-file-name strong{overflow-wrap:anywhere;white-space:normal}
.canvas-topbar{flex-wrap:wrap;gap:8px}.canvas-actions{flex-wrap:wrap}.canvas-viewport-wrapper{min-width:0;max-width:100%;overflow:auto}
.remote-browser{min-width:0;border:1px solid var(--control-line);border-radius:12px;background:var(--paper);padding:10px}
.browser-chrome{display:flex;gap:6px;align-items:center}.browser-chrome input{width:0;min-width:0;flex:1;padding:8px;border:1px solid var(--control-line);border-radius:8px;background:transparent;color:inherit}
.remote-browser img{display:block;width:100%;height:auto;cursor:crosshair}.browser-status{font-size:12px;overflow-wrap:anywhere}.browser-controls{display:flex;gap:8px;margin-top:8px}
.work-panel-title{font-size:14px;overflow-wrap:anywhere}.work-panel-top{gap:8px;flex-wrap:wrap}
@media(max-width:900px){body.work-panel-open .main-shell{margin-right:0!important}.work-panel{position:fixed!important;inset:65px 8px 8px!important;width:auto!important;height:auto!important;z-index:60}.canvas-title-group{flex:1}.canvas-actions button span{display:none}}

.sidebar-top-row{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}.sidebar-top-row .brand{min-width:0;flex:1;font-size:30px}.sidebar-top-row .brand svg{width:25px;flex-shrink:0}.sidebar-collapse-btn{flex:0 0 30px!important;width:30px!important;min-width:30px!important;padding:5px!important}.sidebar-collapse-btn span{display:none}.file-tree-folder{border:0;margin:5px 0;padding:0 0 0 12px}.file-tree-folder>summary{font-size:12px;color:#8aa492;cursor:pointer;padding:5px}.file-tree-folder .vscode-file-card{margin:3px 0}.file-tree-folder .vscode-file-name strong{font-size:11px}

.code-block pre{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px}.code-block .code-lines{user-select:none;color:#76827c;text-align:right;border-right:1px solid #ffffff12;padding-right:12px;white-space:pre}.code-block pre code{min-width:0;overflow:auto}

.mode-demo-button{font:inherit;font-size:12px;color:#234c3e;background:#edf3eb;border:1px solid #c9d9cd;border-radius:8px;padding:8px 12px;cursor:pointer;white-space:nowrap}.mode-demo-button:hover{background:#dfeddf}.vscode-code{tab-size:2}.vscode-code .hljs-keyword,.response-code .hljs-keyword{color:#c5a3ff}.vscode-code .hljs-string{color:#a3dca0}.vscode-code .hljs-number{color:#f6bf7e}

.project-starter{margin:4px 28px 10px;color:var(--muted,#607c73);font:12px system-ui}.project-starter summary{cursor:pointer;width:fit-content}.project-starter button{margin:8px 8px 0 0;padding:8px 12px;border:1px solid #cbdcd2;border-radius:8px;background:#f0f5f1;color:#214b3b;cursor:pointer}

.activity .response-sources{flex:1 1 100%;min-width:0;max-width:100%;margin-top:0;max-height:140px;overflow:auto;overflow-wrap:anywhere}

/* Inline prompt drafting preserves the existing composer layout. */
.prompt-editor-status{padding:4px 18px 10px;font-size:12px;color:var(--muted,#60746d);line-height:1.5}.prompt-editor-status[hidden]{display:none}.prompt-editor-busy textarea{opacity:.65}.prompt-editor-busy .prompt-editor-status::before{content:"";display:inline-block;width:11px;height:11px;margin-right:8px;border:2px solid #ccd6ce;border-top-color:#28564b;border-radius:50%;animation:prompt-editor-spin .8s linear infinite;vertical-align:-2px}@keyframes prompt-editor-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.prompt-editor-busy .prompt-editor-status::before{animation:none}}.composer .send-tools{flex-wrap:wrap}#generatePromptButton{white-space:nowrap}

body #generatePromptButton span{display:inline}
