.chat-response{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7;margin-top:10px;color:var(--text,#e9eee9)}
#new-chat{margin:0}
.chat-card .bot-content{min-width:0;flex:1}
#panel-playground .feedback-card{display:none}
body.chat-page #workspace:not([hidden]){height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#0b100c}
body.chat-page #workspace .app-header{height:64px;flex:0 0 64px;padding:0 24px;background:transparent}
body.chat-page #workspace .panel-heading,body.chat-page #workspace .playground-side,body.chat-page #workspace .typed-panel,
body.chat-page #workspace .learning-panel,body.chat-page #workspace .charge-note,body.chat-page #workspace .card-top>span:first-child{display:none!important}
body.chat-page #workspace .app-layout{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1 1 0;min-height:0;overflow:hidden}
body.chat-page #workspace .app-main{display:flex;flex-direction:column;flex:1;min-height:0;max-width:1000px;width:100%;margin:0 auto;padding:20px 24px}
#panel-playground{display:flex;flex-direction:column;flex:1;min-height:0}
body.chat-page #workspace .playground-grid{display:flex;align-items:stretch;flex:1 1 0;min-height:0;min-width:0;gap:0;overflow:hidden}
body.chat-page #workspace .chat-card{display:flex;flex-direction:column;align-self:stretch;flex:1 1 0;min-width:0;min-height:0;border:1px solid #2c392d;border-radius:20px;background:#101711;overflow:hidden}
body.chat-page #workspace .card-top{display:flex;justify-content:center;flex:0 0 auto;padding:14px 20px;background:transparent;border-bottom:1px solid #263027}
body.chat-page #workspace .chat-messages{height:0;min-height:0;min-width:0;flex:1 1 0;overflow-x:hidden;overflow-y:auto;scroll-behavior:auto;overscroll-behavior:contain;padding:24px;scrollbar-width:thin}
body.chat-page #workspace .chat-empty{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px;text-align:center}
body.chat-page #workspace .empty-bit{font-size:52px;line-height:1.1;margin-bottom:14px}
body.chat-page #workspace .chat-empty h2{font-size:clamp(22px,4vw,30px);letter-spacing:-1px;margin:0 0 10px}
body.chat-page #workspace .chat-empty p{max-width:440px;font-size:14px;line-height:1.6;margin:0 0 16px}
body.chat-page #workspace .composer{flex:0 0 auto;padding:16px 20px 12px;background:#151e16;border-top:1px solid #2b382c}
body.chat-page #workspace .composer textarea#prompt{display:block;width:100%;height:64px;min-height:48px;max-height:120px;resize:none;overflow-y:auto;font-size:16px;line-height:1.5;padding:10px 0;background:transparent;border:0;box-shadow:none}
.chat-method-row{display:flex;align-items:center;gap:12px;margin-bottom:4px}
.chat-method-row label{margin:0;font:12px var(--mono);color:#a4b49c}
#chat-method{width:auto;max-width:240px;height:38px;min-height:38px;margin:0;padding:7px 30px 7px 12px;border:1px solid #42513b;border-radius:8px;background:#202c1c;color:#dcf8bb;font:13px var(--mono)}
#chat-options-wrap{padding-top:8px}
#chat-options-wrap label{margin:0 0 6px;font-size:12px;color:#b1bfaa}
#chat-options{height:70px;min-height:50px;max-height:100px;resize:vertical;font-size:14px;line-height:1.5;padding:8px 12px;margin:0;border:1px solid #42513b;border-radius:8px}
body.chat-page #workspace .composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}
body.chat-page #workspace #input-meter{color:#81957c;font-size:11px}
body.chat-page #workspace #send-button{min-height:40px;border-radius:10px;padding:8px 18px;font-size:14px}
.chat-footnote{text-align:center;font-size:11px;color:#7d9077;margin:9px 0 0}
.message-method{font:10px var(--mono);letter-spacing:.6px;color:#8da77c;margin-left:8px}
.chat-response.decision-response{font-size:26px;line-height:1.4;font-weight:600;color:#d7f7a4}
body.chat-page #workspace .user-message{white-space:pre-wrap;overflow-wrap:anywhere;max-width:88%;font-size:15px}
body.chat-page #workspace .assistant-message{min-width:0;max-width:100%;margin:0}
body.chat-page #workspace #dashboard-error{flex:0 0 auto;max-height:80px;overflow:auto;margin-bottom:10px}
@media(max-width:600px){
 body.chat-page #workspace .app-header{height:56px;flex-basis:56px;padding:0 12px;gap:8px}
 body.chat-page #workspace .app-header .brand.brand-wordmark{width:110px}
 body.chat-page #workspace .app-header-right{gap:6px}
 body.chat-page #workspace .app-header-right .button{min-height:38px;font-size:12px;padding:6px 9px;gap:5px}
 body.chat-page #workspace .app-main{padding:8px 8px max(8px,env(safe-area-inset-bottom))}
 body.chat-page #workspace .chat-card{border-radius:14px}
 body.chat-page #workspace .chat-messages{padding:18px 14px}
 body.chat-page #workspace .composer{padding:10px 12px}
 body.chat-page #workspace .card-top{padding:10px}
 body.chat-page #workspace .chat-empty .example-prompt{max-width:100%;white-space:normal}
 body.chat-page #workspace .chat-empty p{font-size:13px}
 body.chat-page #workspace .chat-footnote{font-size:10px}
}
@media(max-height:560px){body.chat-page #workspace .card-top,body.chat-page #workspace .chat-empty .empty-bit,body.chat-page #workspace .chat-empty p,body.chat-page #workspace .chat-footnote{display:none}body.chat-page #workspace .composer textarea#prompt{height:48px}body.chat-page #workspace .chat-empty h2{font-size:18px}}

body.chat-page #workspace .sidebar{min-height:0;overflow-y:auto}
body.chat-page #workspace .sidebar-bottom{padding-top:24px}
@media(max-width:1000px){body.chat-page #workspace .app-layout{grid-template-columns:175px minmax(0,1fr)}}
@media(max-width:760px){
 body.chat-page #workspace .app-layout{display:flex;flex-direction:column}
 body.chat-page #workspace .sidebar{flex:0 0 auto;position:static;overflow-x:auto;overflow-y:hidden;padding:8px 12px}
 body.chat-page #workspace .app-main{min-height:0;flex:1}
 body.chat-page #workspace .balance-chip{display:none}
}

/* Messages keep their natural height inside the one scrolling region. */
body.chat-page #workspace .chat-messages > *{flex-shrink:0}
body.chat-page #workspace .bot-mark{flex-shrink:0}
.shared-feedback{margin-top:8px;font-size:12px}
.shared-feedback-actions{display:flex;gap:8px;flex-wrap:wrap}
.shared-feedback .button{min-height:36px;font-size:12px;padding:5px 10px}
.shared-feedback-editor{margin-top:8px;padding:12px;border:1px solid #34432a;border-radius:8px}
.shared-feedback-editor textarea{width:100%;min-height:64px;max-height:160px;font-size:16px;resize:vertical}
.shared-feedback-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin:10px 0}
.shared-feedback-consent input{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin-top:3px}
