.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}.chat-main{max-width:1700px;padding-top:25px}.chat-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.chat-page-heading h1{font:500 31px/1.1 Nimbus,Arial,sans-serif;letter-spacing:-.6px;margin:0}.chat-page-heading h1>span{color:var(--green)}.chat-page-heading .eyebrow{font-size:8px;margin-bottom:9px}.connection-chip{display:flex;align-items:center;gap:9px;border:1px solid #4b583c;background:#20281a;border-radius:6px;color:#bdc8ae;font-size:10px;padding:10px 12px}.connection-chip>i{width:5px;height:5px;border-radius:50%;background:#bda15e}.connection-chip.connected>i{background:var(--green)}.connection-chip svg{width:14px;height:14px;margin-left:5px}.chat-workspace{border:1px solid #39442e;border-radius:12px;overflow:hidden;display:grid;grid-template-columns:218px minmax(0,1fr);height:calc(100dvh - 228px);min-height:610px;max-height:1100px;background:#141910}.chapter-sidebar{background:#181e13;border-right:1px solid #343e2a;display:flex;flex-direction:column;min-width:0;overflow:auto}.chapter-sidebar-top{display:flex;justify-content:space-between;align-items:center;padding:18px 16px 11px}.chapter-sidebar-top .nav-caption{margin:0;font-size:8px}.chapter-sidebar-top .icon-button{font-size:23px;height:25px;width:25px;color:var(--green)}.chat-world-tabs{display:flex;padding:0 13px 14px;gap:5px;border-bottom:1px solid #303c25}.chat-world-tabs button{flex:1;background:transparent;border:1px solid #34462a;padding:8px 5px;border-radius:5px;color:#94a581;font-size:9px}.chat-world-tabs button.active{background:#344b21;border-color:#557c36;color:var(--green)}.chat-world-tabs button.active.purple{background:#3c2b50;color:#d6b6ff;border-color:#7a549b}.chapter-row{display:flex;align-items:flex-start;gap:9px;text-align:left;background:none;border:0;border-left:2px solid transparent;border-bottom:1px solid #27331e;width:100%;padding:16px 13px;color:#a0b18e}.chapter-row:hover{background:#24331a}.chapter-row.active{background:#2a3b1f;border-left-color:var(--green);color:#d2e3c3}.chapter-row>span:first-child{padding-top:1px;color:#8da872}.chapter-row svg{width:14px;height:14px}.chapter-row strong{display:block;font-size:11px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.chapter-row small{display:block;font-size:7px;letter-spacing:.8px;margin-top:7px;color:#829b6c}.chapter-empty{font-size:11px;line-height:1.8;color:#839574;padding:22px 17px}.chapter-server-note{display:flex;align-items:flex-start;gap:8px;margin-top:auto;padding:17px 14px;border-top:1px solid #303e24;color:#7f9670;font-size:9px;line-height:1.6}.chapter-server-note svg{height:14px;width:14px;flex:none;margin-top:1px}.conversation-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#12170e}.conversation-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 26px;border-bottom:1px solid #394a2d;min-height:113px;background:linear-gradient(90deg,#1b2b12ee,#1b2b12dc 55%,#1b2b1266),url('assets/blue-lock.webp') right 18%/cover}.conversation-header.dragon{background-image:linear-gradient(90deg,#21182dee,#21182ddc 55%,#21182d88),url('assets/dragon.webp');border-bottom-color:#4d375e}.conversation-header .eyebrow{font-size:7px;letter-spacing:1.4px;color:#a6c38d;margin-bottom:9px}.conversation-header h2{font-size:22px;font-weight:500;line-height:1.2;letter-spacing:-.3px;margin:0 0 6px;overflow-wrap:anywhere}.conversation-header>div{min-width:0}.conversation-subtitle{font-size:10px;color:#a7bb95}.conversation-header .button{flex:none;font-size:9px;padding:9px 11px;background:#18270fe6}.chat-notice{background:#262c18;border-bottom:1px solid #485730;padding:11px 22px;display:flex;align-items:flex-start;gap:9px;font-size:10px;line-height:1.7;color:#b7c59d}.chat-notice[hidden]{display:none}.chat-notice>svg{height:14px;width:14px;margin-top:2px;color:#b5d477}.chat-notice>span{flex:1}.chat-notice .text-link{white-space:nowrap;color:#cee5a9;font-size:9px}.chat-message-scroll{flex:1;overflow-y:auto;min-height:0;scrollbar-color:#415532 transparent;scrollbar-width:thin}.chat-welcome{max-width:470px;margin:30px auto;text-align:center;padding:5px 30px 15px}.welcome-glyph{display:grid;place-items:center;border:1px solid #415d2b;border-radius:12px;width:43px;height:43px;margin:0 auto 21px;background:#253b16;color:var(--green);transform:rotate(-5deg)}.welcome-glyph svg{width:25px;height:25px}.chat-welcome>.eyebrow{justify-content:center;color:#9ab383;font-size:7px;letter-spacing:2px}.chat-welcome h2{font:700 36px/.98 Display,sans-serif;letter-spacing:.1px;margin:15px 0}.chat-welcome h2 em{color:var(--green);font-style:normal}.chat-welcome>p{font-size:11px;line-height:1.8;color:#91a67e;max-width:310px;margin:0 auto 22px}.welcome-checkpoint{background:#1c2815;border:1px solid #3b502c;border-radius:8px;padding:16px;text-align:left;width:100%;color:#adbd9d}.welcome-checkpoint>span{display:flex;align-items:center;gap:7px;color:#b7d596;font-size:7px;letter-spacing:1.4px}.welcome-checkpoint svg{height:13px;width:13px}.welcome-checkpoint p{font-size:10px;line-height:1.8;margin:12px 0}.welcome-checkpoint>small{font-size:9px;color:#b3cf95;display:flex;align-items:center;gap:7px}.chat-composer{border-top:1px solid #2e3c23;background:#181f12;padding:16px 22px 13px}.chat-composer textarea{border:0;outline:none!important;box-shadow:none;resize:none;min-height:74px;max-height:230px;border-radius:0;background:transparent;padding:0;font-size:13px;color:#e0ecd6;line-height:1.8}.chat-composer textarea::placeholder{color:#80966e}.composer-bottom{display:flex;align-items:center;gap:12px;margin-top:11px}.model-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap;flex:1;min-width:0}.model-controls select{width:auto;max-width:200px;padding:7px 22px 7px 9px;font-size:9px;color:#b7cda5;background:#212e18;border-color:#3b522c}.model-controls select:disabled{opacity:.65}.research-toggle{display:flex;align-items:center;gap:5px;color:#a1b58e;font-size:9px;padding:5px;cursor:pointer}.research-toggle input{width:12px;height:12px;accent-color:var(--green);margin:0}.send-button{background:var(--green);border:1px solid var(--green);border-radius:7px;width:34px;height:34px;display:grid;place-items:center;color:#182410;flex:none}.send-button:disabled{background:#354a25;border-color:#486234;color:#8fa377}.send-button svg{width:17px;height:17px;transform:rotate(-90deg)}.send-button[hidden]{display:none}.stop-button{background:#3d4c30;color:#def1cc;border-color:#66884b}.composer-caption{display:flex;justify-content:space-between;gap:10px;color:#728a5f;font-size:7px;line-height:1.7;margin-top:12px}.composer-caption>span:last-child{white-space:nowrap}.chat-message{display:flex;align-items:flex-start;gap:13px;padding:25px 28px;border-bottom:1px solid #26321e}.message-avatar{border:1px solid #4d673a;border-radius:7px;width:29px;height:29px;display:grid;place-items:center;flex:none;background:#2a421b;color:#c6ef9e;font-size:11px}.narrator-message .message-avatar{border-color:#76984d;background:#b5e878;color:#213113}.message-avatar svg{width:18px;height:18px}.message-body{min-width:0;flex:1}.message-byline{display:flex;align-items:center;gap:11px;margin:4px 0 14px;flex-wrap:wrap}.message-byline strong{font-size:9px;letter-spacing:1.5px;color:#c9ddb7;font-weight:500}.message-byline>span{font-size:8px;color:#789964}.message-content{font-size:14px;line-height:1.95;color:#c8d6bd;overflow-wrap:anywhere}.message-content p{margin:0 0 15px}.message-content p:last-child{margin-bottom:0}.message-content strong{color:#eff9e6;font-weight:700}.message-content strong em{font-family:Display,sans-serif;font-size:24px;color:var(--green);font-weight:700;font-style:italic;letter-spacing:.5px;line-height:1.3}.message-content h2,.message-content h3,.message-content h4{font-family:Display,sans-serif;color:#d3edb6;font-size:26px;line-height:1.2;margin:22px 0 13px;letter-spacing:.5px}.message-content h3{font-size:23px}.message-content h4{font-size:20px}.message-content code{font-family:monospace;font-size:12px;background:#293b1e;color:#d7e9c4;padding:2px 4px;border-radius:3px}.player-message{background:#1d2815aa}.player-message .message-content{color:#c0d3ae;font-size:13px}.message-actions{display:flex;gap:16px;margin-top:15px;flex-wrap:wrap}.message-actions .text-link{font-size:8px;color:#7b9b64}.message-actions .text-link:hover{color:var(--green)}.message-actions svg{width:11px;height:11px}.message-interrupted{border-left:2px solid #b59b61;color:#b3ab8a;font-size:10px;line-height:1.7;margin-top:13px;padding:5px 10px}.message-sources{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}.message-sources a{border:1px solid #405b2e;border-radius:5px;padding:5px 7px;color:#a8c491;font-size:8px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.writing-indicator{color:var(--green)!important;font-size:7px!important;letter-spacing:1px}.waiting-dots{color:#859e73;font-style:italic;font-size:12px}.waiting-dots span{animation:waiting 1.4s ease-in-out infinite}.connection-illustration{height:60px;width:60px;display:grid;place-items:center;background:#2a401b;color:var(--green);border:1px solid #4a6e2f;border-radius:12px;margin-bottom:20px}.connection-illustration svg{width:28px;height:28px}.setup-steps{padding-left:22px;color:#b7caa5;line-height:1.7;margin:23px 0 27px}.setup-steps li{padding-left:5px;margin-bottom:15px;font-size:11px}.setup-steps strong{font-size:12px;font-weight:500;color:#d2e4c0}.setup-steps span{display:block;font-size:10px;color:#8fa87b;margin-top:4px}.connection-summary{display:flex;align-items:center;gap:13px;background:#26371b;border:1px solid #4a6335;border-radius:8px;padding:16px;margin-bottom:19px}.connection-summary strong{font-size:13px;font-weight:500}.connection-summary small{display:block;color:#a4bb8f;margin-top:7px;font-size:10px}.pairing-box{border:1px solid #475f32;background:#1f2f15;padding:19px;border-radius:8px;margin-top:23px}.pairing-box h3{font-size:15px;font-weight:500;margin:0 0 12px}.pairing-box p,.pairing-box small{font-size:10px;line-height:1.8;color:#a2b68e}.pairing-box label{display:block;margin:20px 0 9px;font-size:11px;color:#c1d3ae}.pairing-box .button{margin-top:8px;font-size:11px}.pairing-box textarea{font-family:monospace;font-size:10px;min-height:100px;line-height:1.8;overflow-wrap:anywhere}.pairing-box small{display:block;margin-top:15px}.pairing-box .text-link{margin-top:10px;color:var(--green)}
@keyframes waiting{50%{opacity:.2}}
@media(min-width:1500px){.chat-workspace{grid-template-columns:235px minmax(0,1fr);min-height:690px}.chat-welcome{margin-top:50px;max-width:530px}.chat-welcome h2{font-size:45px}.chat-welcome>p{font-size:12px}.welcome-checkpoint p{font-size:12px}.conversation-header{padding:25px 32px;min-height:125px}.conversation-header h2{font-size:27px}.chat-message{padding:30px 40px}.message-content{font-size:15px}}
@media(max-width:1150px){.chat-workspace{grid-template-columns:170px minmax(0,1fr)}.chapter-sidebar-top{padding-left:12px;padding-right:12px}.chat-world-tabs{padding-left:9px;padding-right:9px}.chapter-row{padding:14px 10px;gap:7px}.chapter-row strong{font-size:10px}.chapter-row small{font-size:6px}.conversation-header{padding:20px}.conversation-header .button>span{display:none}.conversation-header h2{font-size:21px}.chat-notice{padding:11px 17px;flex-wrap:wrap}.chat-notice .text-link{margin-left:22px}.chat-composer{padding:16px}.model-controls select{max-width:165px}.composer-caption>span:last-child{display:none}.chat-message{padding:24px 20px}.chat-welcome{padding-left:20px;padding-right:20px}.chat-welcome h2{font-size:32px}.message-content{font-size:13px}}
@media(max-width:850px){.chat-workspace{grid-template-columns:1fr}.chapter-sidebar{border-right:0;border-bottom:1px solid #34472a;display:grid;grid-template-columns:auto 1fr;max-height:125px}.chapter-sidebar-top{padding:10px 13px}.chapter-sidebar-top .nav-caption{display:none}.chat-world-tabs{padding:10px 12px;justify-content:flex-end;border-bottom:0;align-items:center}.chat-world-tabs button{flex:none;padding:7px 13px}.chapter-server-note{display:none}#chapter-list{display:flex;grid-column:1/-1;overflow:auto;max-height:64px;border-top:1px solid #2c3c21}.chapter-row{border-left:0;border-bottom:2px solid transparent;min-width:155px;max-width:200px;padding:8px 13px}.chapter-row.active{border-left:0;border-bottom-color:var(--green)}.chapter-row>span:first-child{display:none}.chapter-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}.chapter-row small{margin-top:3px}.chapter-empty{padding:9px 15px;white-space:nowrap;font-size:9px}.chapter-empty br{display:none}.chapter-empty br+br:after{content:' · '}.chat-workspace{height:calc(100dvh - 220px);min-height:720px}.chat-welcome{margin-top:25px;max-width:430px}.conversation-header{min-height:100px}.chat-page-heading{gap:12px}.connection-chip{font-size:8px;padding:9px}.connection-chip svg{display:none}}
@media(max-width:700px){.chat-main{padding-top:20px;padding-bottom:10px}.chat-page-heading h1{font-size:27px}.chat-page-heading .eyebrow{font-size:6px;letter-spacing:1.2px}.chat-page-heading{margin-bottom:18px;align-items:flex-end}.connection-chip{font-size:8px;max-width:165px;text-align:left;line-height:1.5;gap:6px}.connection-chip>i{flex:none}.chat-workspace{height:calc(100dvh - 155px);min-height:630px;border-radius:10px}.conversation-header{padding:17px 16px;min-height:98px}.conversation-header .eyebrow{font-size:6px;letter-spacing:1px}.conversation-header h2{font-size:21px}.conversation-subtitle{font-size:9px}.conversation-header .button{padding:8px}.chat-notice{font-size:9px;padding:10px 13px;gap:7px}.chat-notice .text-link{font-size:9px;margin-left:20px}.chat-welcome{margin:25px auto 18px;padding:0 21px}.chat-welcome h2{font-size:34px}.chat-welcome>p{font-size:11px}.welcome-checkpoint p{font-size:10px}.chat-composer{padding:15px 13px 12px}.chat-composer textarea{font-size:13px;min-height:75px}.model-controls{gap:6px}.model-controls select{font-size:8px;max-width:165px;padding:7px 20px 7px 7px}.research-toggle{font-size:8px;padding:0}.composer-caption{font-size:7px}.chat-message{padding:22px 14px;gap:10px}.message-avatar{height:25px;width:25px;border-radius:6px;font-size:10px}.message-avatar svg{width:15px;height:15px}.message-content,.player-message .message-content{font-size:13px;line-height:1.9}.message-byline{gap:8px}.message-byline strong{font-size:8px}.message-byline>span{font-size:7px}.message-actions{gap:12px}.message-content strong em{font-size:22px}.chat-main~.page-footer{display:none}}
@media(max-width:370px){.chat-page-heading{align-items:center}.chat-page-heading h1{font-size:25px}.chat-page-heading .eyebrow{font-size:5px}.connection-chip{max-width:135px;font-size:7px}.chat-welcome h2{font-size:30px}.model-controls select{max-width:135px}.research-toggle{margin-top:3px}.conversation-header h2{font-size:19px}}

.chapter-empty strong{font-weight:400}.chapter-empty p{margin:14px 0 0}@media(max-width:850px){.chapter-empty{white-space:normal}.chapter-empty p{display:none}}
.conversation-tools{display:flex;gap:8px;flex:none}.memory-card{border:1px solid #3c4e2e;background:#1b2515;border-radius:8px;padding:18px;margin:16px 0}.memory-card h3{font-size:18px;font-weight:500;margin:10px 0}.memory-card p{font-size:12px;line-height:1.8;color:#b7c7a7}.memory-card details{margin:15px 0}.memory-card summary{cursor:pointer;color:var(--green);font-size:12px;line-height:1.6}.memory-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:12px/1.8 Nimbus,Arial,sans-serif;color:#c1cdb6;background:#11180c;border:1px solid #344a25;border-radius:5px;padding:14px;max-height:400px;overflow:auto;margin:14px 0}.memory-hash{font-size:9px;overflow-wrap:anywhere}.memory-override{border-left:2px solid var(--green);padding-left:12px}.memory-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.memory-file-label{display:inline-flex!important;position:relative;cursor:pointer}.memory-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.memory-card select{max-width:100%;width:100%}.memory-card .field{margin-top:18px}.memory-transcript article{margin-bottom:25px}.memory-transcript .memory-text{max-height:none}.memory-card .button{font-size:11px}.memory-card .eyebrow{font-size:8px}
@media(max-width:1150px){.conversation-tools .button span{display:inline}.conversation-tools{flex-direction:column;gap:6px}.conversation-tools .button{padding:7px 9px;font-size:8px}}@media(max-width:700px){.conversation-tools{align-items:flex-end;max-width:125px}.conversation-tools .button{gap:5px;font-size:8px;padding:7px}.conversation-tools svg{width:12px;height:12px}.memory-card{padding:14px}.memory-text{font-size:12px}.memory-card .button{font-size:10px}}

/* Reading layout: the conversation gets the viewport, with optional navigation. */
body.chat-route{height:100dvh;overflow:hidden}
body.chat-route .app-shell{height:100dvh;display:flex;flex-direction:column;min-height:0}
body.chat-route .topbar{height:52px;min-height:52px;padding:0 20px}
body.chat-route .page-footer{display:none}
body.chat-route main.chat-main{flex:1;display:flex;flex-direction:column;min-height:0;max-width:none;width:100%;padding:10px 16px 12px;margin:0}
.chat-main .chat-page-heading{flex:none;min-height:32px;margin:0 0 8px;align-items:center}
.chat-main .chat-page-heading .eyebrow{display:none}
.chat-main .chat-page-heading h1{font-size:20px;margin:0}
.chat-layout-actions{display:flex;align-items:center;gap:7px}
.chat-layout-actions .button{font-size:10px;padding:7px 10px;font-weight:400}
.chat-layout-actions .connection-chip{font-size:9px;padding:7px 10px}
.chat-main .chat-workspace{position:relative;flex:1;grid-template-columns:minmax(0,1fr);height:auto;min-height:0;max-height:none;border-radius:10px}
.chat-main .chapter-sidebar{display:none}
.chat-main .chapters-open .chapter-sidebar{display:flex;position:absolute;inset:0 auto 0 0;width:min(280px,88%);max-height:none;z-index:12;box-shadow:16px 0 50px #0007;background:#192015}
.chat-main .chapter-sidebar-top{padding:15px;gap:9px}
.chat-main .chapter-sidebar-top .nav-caption{display:block;flex:1}
.chat-main .chat-world-tabs{display:flex;padding:0 13px 14px;border-bottom:1px solid #34432a}
.chat-main .chat-world-tabs button{flex:1}
.chat-main #chapter-list{display:block;overflow:auto;max-height:none;flex:1}
.chat-main .chapter-row{width:100%;max-width:none;min-width:0;border-bottom:1px solid #2d3b24;border-left:2px solid transparent;padding:15px}
.chat-main .chapter-row.active{border-left-color:var(--green)}
.chat-main .chapter-row strong{white-space:normal;max-width:none;font-size:12px}
.chat-main .chapter-row small{font-size:8px}
.chat-main .chapter-server-note{display:flex}
.chat-main .conversation-header{flex:none;min-height:60px;gap:16px;padding:10px 20px;background:#192314;border-color:#303e25}
.chat-main .conversation-header.dragon{background:#211a29}
.chat-main .conversation-header h2{font-size:17px;line-height:1.4;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-main .conversation-header .eyebrow,.chat-main .conversation-subtitle{display:none}
.chat-main .conversation-tools{flex-direction:row;gap:6px;align-items:center;max-width:none}
.chat-main .conversation-tools .button{font-size:9px;padding:7px 9px;gap:6px;white-space:nowrap}
.chat-main .conversation-tools .button span{display:inline;font-size:11px;line-height:1.3;font-weight:400}
.chat-main .chat-message-scroll{overscroll-behavior:contain;scrollbar-gutter:stable}
.chat-main #chat-messages{padding:8px 0 32px}
.chat-main .chat-message{max-width:1100px;margin:0 auto;gap:12px;padding:17px 28px;border:0;background:transparent}
.chat-main .message-avatar{width:25px;height:25px;border-radius:50%;margin-top:3px}
.chat-main .message-avatar svg{width:15px;height:15px}
.chat-main .message-byline{margin:5px 0 10px;gap:9px}
.chat-main .message-byline strong{font-size:8px;letter-spacing:1px}
.chat-main .message-content{font-size:15px;line-height:1.75;color:#d4deca}
.chat-main .message-content p{margin-bottom:14px}
.chat-main .message-content p:last-child{margin-bottom:0}
.chat-main .message-actions{margin-top:12px}
.chat-main .player-message{justify-content:flex-end;padding-top:19px;padding-bottom:19px}
.chat-main .player-message .message-avatar,.chat-main .player-message .message-byline{display:none}
.chat-main .player-message .message-body{flex:0 1 auto;max-width:80%;border:1px solid #3e5030;background:#28371e;border-radius:20px 20px 5px 20px;padding:13px 19px}
.chat-main .player-message .message-content{font-size:14px;line-height:1.7;color:#e2edd7}
.chat-main .player-message .message-actions{justify-content:flex-end}
.chat-main .chat-composer{flex:none;max-width:1050px;width:calc(100% - 40px);margin:0 auto 12px;padding:11px 15px 9px;background:#20291a;border:1px solid #435437;border-radius:17px;box-shadow:0 4px 24px #0002}
.chat-main .chat-composer textarea{min-height:28px;max-height:160px;font-size:14px;line-height:1.6;padding:2px 1px;overflow-y:auto}
.chat-main .composer-bottom{margin-top:7px;gap:8px}
.chat-main .model-controls{gap:6px}
.chat-main .model-controls select{font-size:10px;padding:6px 20px 6px 8px;max-width:220px}
.chat-main .composer-caption{margin-top:6px;font-size:8px}
.chat-main .send-button{width:32px;height:32px;border-radius:50%}
body.chat-focus .sidebar,body.chat-focus .topbar{display:none}
body.chat-focus .app-shell{margin-left:0}
body.chat-focus .chat-main .chat-workspace{border-color:#303d26}
body.chat-route .toast{left:50%}
@media(max-width:1000px){
  .chat-main .conversation-tools .button span{display:none}
  .chat-main .conversation-tools .button{padding:8px}
  .chat-main .conversation-header{gap:10px}
}
@media(max-width:700px){
  body.chat-route .topbar{height:48px;min-height:48px;padding:0 12px}
  body.chat-route .topbar #new-scene,body.chat-route .topbar .search-trigger{display:none}
  body.chat-route main.chat-main{padding:7px 7px 0}
  .chat-main .chat-page-heading{min-height:32px;margin-bottom:7px;gap:5px}
  .chat-main .chat-page-heading h1{font-size:16px}
  .chat-layout-actions{gap:4px}
  .chat-layout-actions .button{font-size:9px;padding:7px}
  .chat-layout-actions .connection-chip{width:29px;height:29px;padding:6px;justify-content:center}
  .chat-layout-actions .connection-chip>i,.chat-layout-actions .connection-chip>span{display:none}
  .chat-layout-actions .connection-chip svg{display:block;margin:0;width:14px;height:14px}
  .chat-main .chat-workspace{border-radius:9px 9px 0 0}
  .chat-main .conversation-header{min-height:49px;padding:8px 11px}
  .chat-main .conversation-header h2{font-size:14px}
  .chat-main .conversation-tools{gap:4px}
  .chat-main .conversation-tools .button{padding:6px}
  .chat-main .conversation-tools svg{width:14px;height:14px}
  .chat-main #chat-messages{padding:5px 0 20px}
  .chat-main .chat-message{padding:15px 12px;gap:8px}
  .chat-main .message-avatar{width:20px;height:20px}
  .chat-main .message-avatar svg{width:12px;height:12px}
  .chat-main .message-content{font-size:14px;line-height:1.75}
  .chat-main .player-message .message-body{max-width:91%;padding:11px 14px;border-radius:17px 17px 4px 17px}
  .chat-main .player-message .message-content{font-size:14px}
  .chat-main .chat-composer{width:calc(100% - 16px);margin-bottom:max(8px,env(safe-area-inset-bottom));padding:10px 11px 8px;border-radius:15px}
  .chat-main .chat-composer textarea{font-size:16px;min-height:28px}
  .chat-main .model-controls select{font-size:9px;max-width:150px}
  .chat-main .research-toggle{font-size:9px}
  .chat-main .composer-caption{display:none}
  body.chat-focus main.chat-main{padding-top:8px}
}
