/* Conversation-first workspace surfaces. Existing clinical flows keep their controls. */
.signed-in .topbar{height:56px;min-height:56px;padding-inline:22px;border-bottom-color:#edf0f3}
.signed-in .brand{gap:9px}.signed-in .brand .mark{width:28px;height:28px}.signed-in .brand strong{font-size:13px;font-weight:550;letter-spacing:-.2px}.signed-in .brand small{display:none}
.signed-in .top-actions{gap:8px}.signed-in .account-menu>summary{font-size:12px;padding:7px 10px;border:0;background:transparent;color:#6b8093}
.signed-in .safety{min-height:24px;padding:4px 12px;font:400 9px/1.6 system-ui;letter-spacing:.06em;color:#71877d;background:#fafcfb;border-color:#f0f3f1}
.mainpanel{background:#fff}.review-column{padding-inline:clamp(20px,4vw,64px);min-width:0}
.review-column:not(.has-conversation){display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:0;padding-bottom:clamp(20px,6vh,72px);overflow-y:auto}
.welcome{width:100%;max-width:760px;margin:0 auto;padding:0;text-align:center;flex:none}
.welcome .hero-mark{width:38px;height:38px;margin:0 auto 22px;background:none;box-shadow:none}
.welcome h1{font:500 clamp(27px,2.8vw,34px)/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1px;color:#30495f;margin:0}
.welcome .intro{font-size:13px;line-height:1.7;color:#7a8b9b;margin:13px 0 22px}
.review-column:not(.has-conversation) .composer-zone{width:100%;max-width:760px;margin:0 auto;padding:0}
.composer-zone{max-width:800px;padding:12px 0 20px}.composer-wrap{max-width:none;margin:0;border:1px solid #dfe6ed;border-radius:22px;padding:14px 16px 11px;background:#fff;box-shadow:0 6px 30px #1b3e5c07}
.composer-wrap:focus-within{border-color:#9bb5cf;box-shadow:0 6px 30px #1b3e5c0b}.composer{display:flex;align-items:flex-end;gap:12px}
.composer textarea{min-height:42px;max-height:140px;padding:4px 2px 8px;font:400 15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#344f65;resize:none}
.composer textarea::placeholder{color:#92a0af}.send{width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#537fa7;color:#fff;font-size:22px;line-height:1;box-shadow:none}.send:hover{background:#426d96}.send:disabled{opacity:.55}
.composer-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;border:0;padding-top:5px;margin:0;min-height:36px}
.composer-tools{position:relative;flex:none}.composer-tools>summary{display:grid;place-items:center;list-style:none;width:36px;height:36px;padding:8px;border:0;border-radius:50%;color:#6b8197;cursor:pointer}
.composer-tools>summary::-webkit-details-marker{display:none}.composer-tools>summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round}.composer-tools[open]>summary,.composer-tools>summary:hover{background:#edf2f7;color:#456d94}
.composer-tools-menu{position:absolute;left:-5px;bottom:calc(100% + 9px);z-index:30;width:230px;max-width:calc(100vw - 46px);padding:6px;border:1px solid #e0e7ef;border-radius:13px;background:#fff;box-shadow:0 12px 40px #1a3b5724}
.composer-tools-menu .cw-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:0}
.composer-tools-menu .cw-toolbar .cw-button{display:block;min-height:40px;padding:10px 12px;border:0;border-radius:7px;color:#45617a;background:#fff;text-align:left;font:400 13px/1.5 system-ui}
.composer-tools-menu .cw-toolbar .cw-button:hover{background:#f0f4f8}
#composerContext{margin-left:auto;padding:7px 10px;font-size:12px;font-weight:400;color:#6c8398;min-height:36px;border:0;background:transparent}
#composerContext[aria-expanded=true]{color:#426f9d;background:#edf3f8;border-radius:8px}
.capture-live-controls{display:flex;gap:7px;flex-wrap:wrap}.capture-live-controls .cw-button{font-size:12px;min-height:36px;padding:7px 11px;border:1px solid #dce5ed;border-radius:8px;color:#496c8b;background:#f7fafc}
.composer-foot{font-size:10px;line-height:1.6;color:#8a9baa;justify-content:center;padding-top:11px}.composer-foot span:last-child{display:none}
.review-starters{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;width:100%;max-width:760px;margin:22px auto 0;flex:none}
.review-starters .starter{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;min-height:36px;border:1px solid #e5eaf0;border-radius:18px;background:#fff;color:#6c8195;font:400 11px/1.5 system-ui;text-decoration:none;box-shadow:none}
.review-starters .starter:hover{border-color:#c4d4e3;background:#f8fafc;color:#426b91}.review-starters .starter svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.has-conversation .review-starters{display:none}
.chat-view{width:100%;max-width:800px;margin:0 auto;min-height:0}.chat-heading{min-height:64px;padding:16px 0;border-bottom:1px solid #f0f3f6;align-items:center;gap:12px}.chat-heading>div:first-child{min-width:0;flex:1}.chat-heading h2{font:550 15px/1.5 system-ui;letter-spacing:-.25px;overflow-wrap:anywhere;color:#36516a}
.thread-tools{flex:none;gap:5px}.thread-tools>.quiet{min-height:34px;padding:6px 11px;border:1px solid #e1e8ee;border-radius:18px;background:#fff;font:450 11px/1.5 system-ui;color:#5d7b96}.thread-menu>summary{min-width:34px;min-height:34px;padding:6px;text-align:center;color:#6c8296}.thread-menu>div{min-width:210px}
.messages{gap:28px;padding:28px 0}.message{font:400 15px/1.85 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#365067}.message.user{padding:12px 17px;background:#f2f5f9;border-radius:20px;max-width:88%}.message.user .role{display:block;font-size:10px;color:#8193a4;margin-bottom:5px}.message.assistant .role{font-size:11px;color:#73899d}.message-actions{opacity:0;pointer-events:none;transition:opacity 120ms ease}.message:hover .message-actions,.message:focus-within .message-actions{opacity:1;pointer-events:auto}.message-actions button{font-size:11px;min-height:32px;padding:5px 8px;border:0;border-radius:7px;color:#6d879d;background:transparent}.message-actions button:hover{background:#f0f4f8}
.review-context{background:#fbfcfe;border-color:#e7edf2}.context-heading h2{font-size:16px}.case-workspace{background:#fff}.case-card,.case-list-card,.case-metrics>div{box-shadow:none;border-color:#e5ebf1}
.review-library{background:#fff;padding:clamp(24px,5vw,58px)}.rl-heading{max-width:860px;margin-bottom:24px}.rl-heading h1{font-size:27px;font-weight:500;letter-spacing:-.7px}.rl-intro{font-size:12px;color:#7b8fa1}.rl-filters{max-width:860px;grid-template-columns:minmax(0,1fr) auto;padding:16px;border-radius:15px;border-color:#e2e9f0;gap:10px}.rl-filters>.ri-field:first-child{grid-column:auto}.rl-filters>.ri-button{grid-column:auto}.rl-advanced{grid-template-columns:repeat(3,minmax(0,1fr))}.rl-tools{max-width:860px;margin:20px auto 12px}.rl-guidance{max-width:860px}.rl-list{max-width:860px;gap:0}.rl-row{padding:18px 8px;border:0;border-bottom:1px solid #eef2f5;border-radius:0;gap:12px}.rl-title{font-size:14px;font-weight:500}.rl-meta{font-size:10px;gap:10px;margin-bottom:0}.rl-topics{margin-top:6px}.rl-topics>span{font-size:10px;background:#f3f6f9}.rl-row>.ri-button{border:0;background:transparent;color:#7b91a4;font-size:11px}.rl-tools>.ri-button{border-color:#e5ebf0;font-size:11px}.rl-guidance{margin-top:14px}
.composer-tools>summary:focus-visible,.review-starters .starter:focus-visible{outline:2px solid #5981a7;outline-offset:2px}
@media(hover:none){.message-actions{opacity:1;pointer-events:auto}}
@media(max-width:1050px){.review-column{padding-inline:24px}.welcome h1{font-size:30px}}
@media(max-width:760px){
 .signed-in .topbar{height:56px;min-height:56px;padding-inline:12px}.signed-in .brand strong{font-size:12px}.signed-in .brand .mark{width:26px;height:26px}.signed-in .safety{font-size:8px;letter-spacing:.025em;min-height:24px}.signed-in .top-actions{gap:2px}
 .review-column{padding-inline:16px}.review-column:not(.has-conversation){justify-content:center;padding-block:26px 52px}.welcome .hero-mark{width:34px;height:34px;margin-bottom:18px}.welcome h1{font-size:27px;letter-spacing:-.8px}.welcome .intro{font-size:12px;margin:12px auto 22px;max-width:250px}
 .composer-wrap{padding:12px 12px 9px;border-radius:20px}.composer textarea{font-size:16px;min-height:43px}.send{width:36px;height:36px;flex-basis:36px}.composer-tools>summary{width:40px;height:40px}.composer-tools-menu .cw-toolbar .cw-button{min-height:44px}.composer-actions{min-height:40px}#composerContext{min-height:40px;font-size:12px}
 .composer-zone{padding-bottom:14px}.composer-foot{font-size:9px}.review-starters{gap:7px;margin-top:18px}.review-starters .starter{min-height:40px;padding:8px 11px;font-size:11px}.review-starters .starter:last-child{display:none}
 .chat-heading{padding:12px 0;min-height:58px}.chat-heading h2{font-size:13px}.thread-tools>.quiet{min-height:36px;padding:6px 10px}.thread-menu>summary{min-height:40px;min-width:36px}.message{font-size:15px}.messages{padding-block:22px;gap:25px}.message-actions{opacity:1;pointer-events:auto}.message.user{max-width:96%;padding:11px 14px}.capture-live-controls .cw-button{min-height:44px}
 .review-library{padding:24px 16px}.rl-heading h1{font-size:25px}.rl-filters{padding:13px;grid-template-columns:minmax(0,1fr) auto}.rl-filters>.ri-field:first-child{grid-column:1/-1}.rl-filters>.ri-button{grid-column:1/-1}.rl-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}.rl-row{padding:18px 0}.rl-row-body{flex-basis:100%}.rl-row>.ri-button{margin-left:0}.rl-row>.ri-button{min-height:44px}.rl-tools{margin-top:18px}.rl-tools .ri-status{flex-basis:auto}.rl-row>input:not([hidden])~.rl-row-body{flex-basis:calc(100% - 32px)}
}
@media(max-height:600px){.review-column:not(.has-conversation){justify-content:flex-start;padding-block:26px 16px}.welcome .hero-mark{display:none}.welcome .intro{margin-bottom:18px}.review-starters{margin-top:14px}.composer-zone{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.message-actions{transition:none}}
