/* V36.4: compact conversation workspace; existing studio assets untouched. */
.bao-chatbar{display:flex;align-items:center;gap:8px;min-width:0}.bao-chatbar>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#c7ccd5}
#aiChat .ch-side[hidden]{display:none!important}#aiChat .ch-grid{grid-template-columns:minmax(0,1fr)}
#aiChat .ch-main{min-height:0;height:min(720px,calc(var(--bao-viewport,100dvh) - 250px));display:flex;overflow:hidden;padding:12px}
#aiChat #chFeed{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:8px 2px 16px;scrollbar-width:thin}
#aiChat .ch-entry{position:relative!important;inset:auto!important;flex-shrink:0;margin:0!important;padding:8px!important;width:100%!important;box-sizing:border-box;background:#171b22!important}
#aiChat .ch-follow{flex-shrink:0;overflow:auto;flex-wrap:nowrap;max-height:42px}#aiChat .ch-follow button{white-space:nowrap}
#aiChat .ch-bubble{font-size:15px;line-height:1.5;padding:10px 12px;max-width:90%}#aiChat .ch-av{width:24px;height:24px}#aiChat .ch-meta{margin-top:6px}#aiChat .ch-tools summary{cursor:pointer;font-size:12px;color:#b9c3ce}#aiChat .ch-tools p{font-size:12px}#aiChat .ch-orb{width:120px;height:110px}
#baoActionDock{max-height:35%;overflow:auto;flex-shrink:0}#aiChat .ch-hint{font-size:10px;margin:5px 0 0}#aiChat .ch-state{max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:5px 10px}
.bao-library{background:#15191f;color:#edf0f5;border:1px solid #46505d;border-radius:20px;width:min(620px,calc(100vw - 24px));max-height:85dvh;padding:18px;box-sizing:border-box}.bao-library::backdrop{background:#000a;backdrop-filter:blur(6px)}.bao-library header{display:flex;align-items:center;justify-content:space-between}.bao-library h2{font-size:20px}.bao-library p,.bao-library small{color:#b8c0cb;font-size:13px}.bao-library button,.bao-library select,.bao-library input{font:inherit;color:inherit;background:#242b35;border:1px solid #424c5b;border-radius:10px;min-height:44px;padding:8px 12px}.bao-library input{width:100%;box-sizing:border-box;margin:12px 0}.bao-library-actions{display:flex;flex-wrap:wrap;gap:6px}.bao-chat-card{padding:14px 0;border-bottom:1px solid #343c47;display:grid;gap:8px}.bao-open{text-align:left;overflow-wrap:anywhere}.bao-open[aria-current=true]{border-color:#b5c9de}.st-jump{text-align:left;font:inherit;color:inherit;cursor:pointer}.st-jump:hover{outline:1px solid #7e8c9f}.st-jump:focus-visible,.bao-library :focus-visible{outline:2px solid #cad9f0;outline-offset:3px}
@media(max-width:600px){body:has(#aiChat:not(.hidden)) #aiChat.ch{padding:10px 10px 100px!important}#aiChat .sx-top{gap:6px;margin-bottom:0}#aiChat .sx-greet h1{font-size:22px}#aiChat .ch-avatar{width:36px;height:36px}#aiChat #chSub{font-size:10px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#aiChat #chatClear small{display:none}#aiChat #chatClear{padding:6px!important;min-height:40px}#aiChat .ch-root{gap:8px}#aiChat .ch-main{height:calc(var(--bao-viewport,100dvh) - 225px);min-height:180px;padding:8px}#aiChat .ch-msg{gap:5px}#aiChat .ch-bubble{max-width:91%}#aiChat .ch-hint{display:none}#aiChat .ch-field textarea{font-size:16px!important;max-height:100px}#aiChat .ch-qs{grid-template-columns:1fr 1fr}#settingsPage .st-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#settingsPage .st-nav{display:flex;overflow:auto;flex-wrap:nowrap}#settingsPage .st-nav button{flex:0 0 auto}}
