:root{font-family:Arial,Helvetica,sans-serif;color:#152536;background:#f6f8fa;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}
.app-shell{display:grid;grid-template-columns:minmax(320px,37%) 1fr;min-height:100vh}
.brand-panel{padding:47px clamp(28px,4vw,68px);display:flex;flex-direction:column;justify-content:space-between;background:#0065af;color:white;position:relative;overflow:hidden}
.brand-panel:after{content:"";position:absolute;width:390px;height:390px;border:1px solid rgba(255,255,255,.15);border-radius:50%;bottom:-210px;right:-170px;pointer-events:none}
.brand-name{font-weight:900;letter-spacing:1.4px;font-size:23px;z-index:1}.brand-name span{font-size:11px;letter-spacing:2.2px;font-weight:400;display:block;margin-top:5px}
.brand-copy{max-width:450px;z-index:1}.brand-copy h1{font-size:clamp(33px,3.4vw,54px);line-height:1.1;margin:12px 0 24px;letter-spacing:-1.8px}.brand-copy>p:last-child{line-height:1.65;color:#d7eaf8;max-width:390px;font-size:15px}
.brand-footer{color:#c8e2f2;font-size:12px;z-index:1}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2.5px;color:#c9e6fa;margin:0 0 15px}.eyebrow.blue{color:#0065af}
.workspace{display:flex;min-width:0;flex-direction:column}.centered-view{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:35px 45px}.auth-panel{width:100%;max-width:418px}.auth-panel h2,.topline h2{font-size:32px;letter-spacing:-.8px;margin:0 0 9px;color:#172a3b}.subcopy{color:#637587;line-height:1.6;font-size:14px;margin:0 0 30px}.form-layout{display:flex;flex-direction:column;gap:12px}.form-layout label,.toolbar label{font-size:13px;font-weight:700;color:#294054}.form-layout input,.toolbar select,.query-row input{width:100%;border:1px solid #cbd5df;background:white;border-radius:6px;outline:none;padding:14px;color:#142939;transition:border-color .15s}.form-layout input:focus,.toolbar select:focus,.query-row input:focus{border-color:#0065af;box-shadow:0 0 0 3px rgba(0,101,175,.12)}.form-layout input{margin-bottom:9px}.primary-btn{background:#0065af;color:white;border:1px solid #0065af;border-radius:6px;padding:13px 20px;font-weight:700;transition:background .2s}.primary-btn:hover{background:#004b87}.text-link{color:#0065af;font-size:13px;font-weight:700;display:inline-block;margin-top:25px;text-decoration:none}.text-link:hover{text-decoration:underline}.message{font-size:13px;line-height:1.5;min-height:20px;color:#9a3b30;margin-top:15px}.message.success{color:#146640}
.dashboard{display:flex;flex-direction:column;min-height:100vh}.topline{padding:42px clamp(24px,4vw,60px) 24px;display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #e5eaef;gap:18px;background:white}.topline h2{font-size:29px}.topline .subcopy{margin:0}.account-box{text-align:right;display:flex;flex-direction:column;gap:8px;align-items:flex-end}.account-email{font-size:12px;max-width:210px;overflow-wrap:anywhere;color:#536677}.text-button{background:none;border:0;color:#0065af;font-size:13px;font-weight:700;padding:0}.text-button:hover{text-decoration:underline}.dashboard-content{display:flex;flex-direction:column;flex:1;padding:20px clamp(24px,4vw,60px) 35px;gap:18px;min-height:0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar select{width:200px;padding:10px 14px;font-size:13px}.hint{font-size:11px;color:#6c7b88;max-width:320px;line-height:1.45;margin:0}.conversation{background:white;border:1px solid #e0e6ed;border-radius:8px;display:flex;flex-direction:column;flex:1;min-height:440px;overflow:hidden}.conversation-header{font-size:11px;font-weight:800;letter-spacing:1.7px;padding:20px 24px;border-bottom:1px solid #e9edf2;color:#0065af}.messages{flex:1;min-height:240px;max-height:56vh;overflow:auto;padding:23px;display:flex;flex-direction:column;align-items:stretch;gap:14px}.message-bubble{max-width:92%;padding:14px 17px;border-radius:8px;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.message-bubble p{margin:0 0 8px}.message-bubble p:last-child{margin:0}.assistant-bubble{background:#f0f5f9;align-self:start}.user-bubble{background:#0065af;color:white;align-self:end}.muted-small{color:#6b7986;font-size:12px}.json-output{overflow:auto;max-height:360px;margin:12px 0 0;padding:14px;background:#172b3c;color:#d6eaf9;font:12px/1.55 Consolas,Monaco,monospace;border-radius:5px;white-space:pre-wrap;word-break:break-word}.quick-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 23px 15px}.quick-btn{font-size:12px;background:#fff;border:1px solid #b8c9d8;color:#0065af;border-radius:6px;padding:9px 12px}.quick-btn:hover{background:#eef6fc}.query-row{display:flex;gap:10px;padding:16px 23px 0;border-top:1px solid #edf0f3}.query-row .primary-btn{white-space:nowrap}.query-status{font-size:12px;color:#8a5260;min-height:16px;margin:7px 23px 14px}.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(max-width:960px){.app-shell{grid-template-columns:1fr}.brand-panel{min-height:190px;padding:25px 25px 18px;gap:20px}.brand-copy{display:none}.brand-footer{margin:0}.centered-view{min-height:calc(100vh - 190px);padding:50px 24px}.topline{padding:27px 22px 20px}.dashboard-content{padding:18px 16px 25px}.dashboard{min-height:calc(100vh - 190px)}}
@media(max-width:560px){.topline{flex-direction:column}.account-box{align-items:flex-start;text-align:left}.query-row{padding:13px;flex-direction:column}.quick-actions{padding:0 13px 12px}.messages{padding:14px}.conversation-header{padding:16px}.toolbar{align-items:stretch;flex-direction:column}.toolbar select{width:100%}.brand-panel{min-height:128px}.centered-view{min-height:calc(100vh - 128px)}.message-bubble{max-width:100%}}
/* Respeita quebras de linha das respostas da IA, sem interpretar HTML */
.message-bubble{white-space:pre-wrap}
