/* Full-height conversational workspace, shared by new and existing cases. */
body.chat-page{margin:0;background:#fff;color:#202a29;font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
.chat-page main{max-width:none;padding:0;margin:0}
.chat-app{display:grid;grid-template-columns:264px minmax(0,1fr);height:100vh;height:100dvh}
.chat-app .icon{height:20px;width:20px;flex:none}
.chat-app button,.chat-app summary{cursor:pointer}
.chat-app .icon-btn{margin:0;padding:7px;border:0;color:#525d59;background:transparent;border-radius:9px;display:inline-flex;align-items:center;justify-content:center}
.chat-app .icon-btn:hover,.room-menu summary:hover{background:#eeeeea}
.side{min-height:0;display:flex;flex-direction:column;background:#f6f6f3;border-right:1px solid #e4e5df;padding:20px 13px 12px;z-index:4}
.side-head,.profile,.room-head,.new-chat,.case-link{display:flex;align-items:center}
.side-head{justify-content:space-between;padding:2px 9px 22px}
.wordmark{display:inline-flex;align-items:center;gap:9px;color:#233d37;text-decoration:none;font-size:22px;font-weight:680;letter-spacing:-1px}
.wordmark .icon{width:27px;height:27px;color:#226c60}
.new-chat{gap:10px;padding:9px 11px;color:#173c34;text-decoration:none;font-weight:600;background:#fff;border:1px solid #d7dbd4;border-radius:11px}
.new-chat:hover{background:#edf3eb}.new-chat .icon{width:19px;height:19px}
.side .side-title{margin:27px 11px 6px;color:#5f6864;font:600 12px/1.4 system-ui;letter-spacing:.015em}
.side .case-list{display:block;overflow-y:auto;min-height:0;flex:1;max-width:none;width:auto;margin:0;padding:0 1px}
.case-list p{font-size:13px;color:#69736e;margin:10px}
.case-list .case-link{padding:9px 10px;gap:9px;margin:2px 0;color:#303b36;text-decoration:none;min-width:0;border:0;border-radius:9px;font-size:14px;line-height:1.4}
.case-link .icon{width:16px;height:16px;color:#75817a}.case-link span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case-link:hover,.case-link[aria-current="page"]{background:#e6eae3}.case-link[aria-current="page"]{font-weight:600}
.profile{border-top:1px solid #dedfd9;margin-top:15px;padding:14px 3px 2px;gap:10px}.profile-icon{background:#dce7dc;color:#304d3e;border-radius:50%;height:33px;width:33px;display:grid;place-items:center;font-weight:650}
.profile b,.room-head b{display:block;font-size:14px}.profile small,.room-head small{font-size:12px;color:#66756c}.profile form{margin-left:auto}
.workspace{min-height:0;min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.room-head{min-height:58px;gap:10px;padding:9px clamp(14px,3vw,34px);border:0;background:white}
.room-head small{line-height:1.2}.room-menu{position:relative;margin-left:auto;z-index:2}
.room-menu summary{list-style:none}.room-menu summary::-webkit-details-marker{display:none}.room-menu>div{position:absolute;right:0;top:100%;background:white;border:1px solid #dedfd9;box-shadow:0 6px 24px #182e2515;border-radius:12px;padding:14px;min-width:210px;font-size:14px}
.room-menu>div a,.room-menu>div details{display:block;margin:4px 0 9px}
.stream{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}
.stream-inner,.dock-inner{max-width:770px;width:100%;padding:0 24px;margin:auto;box-sizing:border-box}
.stream-inner{padding-top:12px;padding-bottom:18px}.stream-inner:has(.welcome){height:100%;display:grid;place-items:center}
.welcome{text-align:center;margin-bottom:7vh}.welcome-mark{width:47px;height:47px;display:inline-grid;place-items:center;border-radius:14px;background:#eaf2ec;color:#2d6a56}
.welcome-mark .icon{width:30px;height:30px}.welcome h1{font:600 clamp(28px,4vw,40px)/1.16 system-ui;letter-spacing:-.04em;margin:18px 0 9px}
.welcome p{color:#647169;margin:0 auto;max-width:430px}
.chat-app .bubble{border:0;border-radius:0;background:none;padding:0;margin:16px 0 25px;max-width:100%;font-size:16px;line-height:1.58}
.chat-app .bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-app .bubble.teacher{background:#eef1ed;border-radius:17px 17px 5px 17px;padding:10px 16px;margin-left:auto;width:fit-content;max-width:83%}
.bubble.teacher strong{font-size:11px;color:#66746b}.chat-app .bubble.assistant{width:100%}
.chat-app .bubble.assistant strong{display:flex;align-items:center;gap:8px;color:#275447;margin-bottom:5px;font-size:13px}
.bubble.assistant strong:before{content:"";height:15px;width:15px;background:#39735d;clip-path:polygon(0 7%,50% 23%,100% 7%,100% 76%,50% 95%,0 76%)}
.basis{font-size:12px;margin-top:8px}.basis summary{color:#5a7062}.basis p{font-size:14px;color:#59665e}
.dock{background:white;padding:10px 0 max(10px,env(safe-area-inset-bottom));margin:0}
.compose-box{background:#fff;border:1px solid #cdd4ce;box-shadow:0 3px 12px #1933290a;border-radius:22px;padding:11px 13px 8px}
.compose-box:focus-within{border-color:#90aa9a}.compose-box .input-label{margin:0;font-weight:normal}
.compose-box textarea[data-dictate]{width:100%;border:0;box-shadow:none;outline:none;background:none;margin:0;padding:2px 5px 7px;min-height:40px;max-height:135px;resize:none;line-height:1.45;font:inherit}
.compose-box textarea::placeholder{color:#64726a}.compose-tools{display:flex;align-items:flex-end;gap:8px}
.compose-tools>[data-voice-slot]{flex:1;min-width:0}.chat-app .send{border:0;border-radius:50%;color:white;background:#215945;width:35px;height:35px}
.chat-app .send:hover{background:#174b3b}.chat-app .send:disabled{opacity:.45}
.dock-note{margin:6px 0 0;text-align:center;color:#67746c;font-size:11px}.dock-note span{padding:0 3px}
.compose-box .dictation{margin:0}.compose-box .dictation button{margin:0 6px 3px 0;background:#eff3ef;color:#315743;font-size:13px;border-radius:12px;padding:6px 10px}
.compose-box .dictation .mic:before{content:"";display:inline-block;vertical-align:-2px;width:15px;height:16px;margin-right:5px;background:currentColor;mask:url("/static/mic.svg") center/contain no-repeat}
.dictation[data-idle] small{display:none}.dictation small{font-size:12px;line-height:1.3}.dictation textarea{font:inherit;font-size:15px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-app .open-side,.chat-app .close-side,.chat-app .shade{display:none}.chat-app [hidden]{display:none!important}
@media(max-width:760px){.chat-app{grid-template-columns:minmax(0,1fr)}.workspace{grid-column:1}.side{position:fixed;inset:0 auto 0 0;width:min(285px,84vw);transform:translateX(-110%);visibility:hidden;transition:transform .15s ease}.chat-app.menu-open .side{visibility:visible;transform:none}.chat-app .open-side,.chat-app .close-side{display:inline-flex}.chat-app.menu-open .shade{display:block;position:fixed;inset:0;z-index:3;border:0;border-radius:0;background:#10261c55;margin:0;padding:0}.room-head{min-height:51px;padding:6px 12px}.stream-inner,.dock-inner{padding-left:13px;padding-right:13px}.stream{scrollbar-gutter:auto}.welcome p{font-size:15px;max-width:310px}.chat-app .bubble{font-size:15px}.chat-app .bubble.teacher{max-width:90%}}
@media(prefers-reduced-motion:reduce){.side{transition:none}}
