/* Jean .20: full-height conversation, compact controls and stable scroll. */
body #viewHost>.r-jean-workspace .r-jean-tabs{min-height:42px;height:42px;flex:none;padding:0 20px}
body #viewHost>.r-jean-workspace .r-jean-tabs nav button{padding:10px 0}
.r-jean-workspace .r-chat-layout{flex:1;min-height:0;overflow:hidden}
.r-jean-workspace .r-chat-main{position:relative;height:100%;overflow:hidden}
.r-jean-workspace .r-chat-heading{min-height:58px;padding:10px 20px;flex:none}
.r-jean-workspace .r-chat-heading h2{font-size:16px;line-height:1.4;margin:0}
.r-jean-workspace .r-chat-heading p{font-size:11px;margin:2px 0 0}
.r-jean-workspace .r-chat-log{flex:1;min-height:0;height:auto;overflow-y:auto;padding:18px max(20px,calc((100% - 1050px)/2));scroll-behavior:auto;overflow-anchor:none;scrollbar-gutter:stable;overscroll-behavior:contain}
.r-jean-workspace .r-message{margin:0 0 24px;min-width:0}
.r-jean-workspace .r-message-text{max-height:none!important;overflow:visible!important;font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.r-jean-workspace .r-message-text p:first-child{margin-top:0}
.r-jean-workspace .r-message-text p:last-child{margin-bottom:0}
.r-jean-workspace .r-compose-area{flex:none;padding:8px max(20px,calc((100% - 1050px)/2)) 12px!important;background:#fff}
.r-jean-workspace .r-chat-attachments:empty{display:none}
.r-jean-workspace .r-compose{padding:10px 12px;border-radius:12px}
.r-jean-workspace .r-compose textarea{height:44px;min-height:44px;max-height:144px;padding:0 2px!important;resize:none;overflow-y:auto;font-size:14px;line-height:1.5}
.r-jean-workspace .r-compose>div{margin-top:4px}
.r-jean-workspace .r-compose>div>div>span{font-size:10px}
.r-jean-workspace .r-send{width:36px;height:36px;border-radius:9px;flex:none;position:relative}
.r-jean-workspace .r-send.is-sending svg{visibility:hidden}
.r-jean-workspace .r-send.is-sending::after{content:'';position:absolute;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:jc-spin .8s linear infinite}
.r-jean-workspace .jc-latest{position:absolute;z-index:3;bottom:calc(var(--jc-compose-height,116px) + 10px);left:50%;transform:translateX(-50%);border:1px solid #dfe2e6;background:#fff;color:#243647;border-radius:18px;padding:7px 14px;box-shadow:0 3px 12px #15293b15;font-size:12px;line-height:1.4;font-family:inherit;cursor:pointer}
.r-jean-workspace .jc-pending .r-message-meta [role=status]{color:#73808a;font-size:11px}
.r-jean-workspace .jc-send-error{color:#a43232;font-size:12px;margin:10px 0 5px}
.r-jean-workspace .jc-pending button{font-size:12px;font-family:inherit;padding:6px 10px;border:1px solid #ddd;border-radius:6px;background:#fff;cursor:pointer}
.r-jean-workspace .jc-live{margin:0 0 16px 44px}
.r-jean-workspace .jc-live .jc-result{margin:0;padding:12px 14px;border-left-width:2px;font-size:12px}
.r-jean-workspace .jc-live .jc-result.is-running details{max-height:240px;overflow:auto}
.r-jean-workspace .jc-state{font-size:10px;letter-spacing:.03em}
.r-jean-workspace .jc-upload{margin:0;padding:6px 8px;border:0;background:transparent;color:#687784;font-size:11px}
.r-jean-workspace .jc-stop{padding:6px 9px!important;color:#8b3434!important;background:#fff!important;border:1px solid #e4d5d5!important;border-radius:7px!important;font-size:11px!important}
.jc-dialog .jc-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.jc-dialog .jc-policy-grid label{font-size:12px;color:#52616f}
.jc-dialog .jc-policy-grid input,.jc-dialog .jc-policy-grid select{display:block;width:100%;box-sizing:border-box;padding:9px;margin:5px 0;border:1px solid #d8dde2;border-radius:6px;font-size:13px;font-family:inherit}
.jc-dialog .jc-policy-error{color:#a43232}
@media(min-width:761px){.r-jean-workspace:not(.is-compact) .r-chat-layout.threads-hidden{grid-template-columns:minmax(0,1fr)!important}.r-jean-workspace:not(.is-compact) .threads-hidden>.r-thread-sidebar{display:none!important}}
@media(max-width:760px){body #viewHost>.r-jean-workspace .r-jean-tabs{padding:0 12px}.r-jean-workspace .r-chat-heading{padding:9px 12px;min-height:52px}.r-jean-workspace .r-chat-log{padding:14px 12px}.r-jean-workspace .r-compose-area{padding:7px 10px max(8px,env(safe-area-inset-bottom))!important}.r-jean-workspace .r-message-text{font-size:14px}.r-jean-workspace .r-compose>div>div>span{display:none}.r-jean-workspace .jc-live{margin-left:0}.jc-dialog .jc-policy-grid{grid-template-columns:1fr}}
#w9CompactJean .r-chat-heading{padding:8px 12px;min-height:50px}
#w9CompactJean .r-chat-log{padding:14px 12px}
#w9CompactJean .r-compose-area{padding:7px 10px 10px!important}
@keyframes jc-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.r-jean-workspace .r-send.is-sending::after{animation:none}.jc-state i{animation:none}}

/* .25: controls share the conversation heading; no separate context strip. */
.r-jean-workspace .r-chat-heading{flex-wrap:wrap;row-gap:5px}
.r-jean-workspace .r-chat-heading .jc-heading-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 1 auto;min-width:0;flex-wrap:wrap}
.r-jean-workspace .jc-heading-controls button{font-family:inherit;font-size:11px;line-height:1.35;padding:6px 8px;border:1px solid #ded8cc;border-radius:6px;background:#fff;color:#0b1f33;cursor:pointer;white-space:nowrap}
.r-jean-workspace .jc-heading-controls button:focus-visible{outline:2px solid #b99755;outline-offset:2px}
.r-jean-workspace .jc-heading-controls .jc-record-context{max-width:180px;overflow:hidden;text-overflow:ellipsis;border-color:transparent;color:#52616f}
@media(max-width:760px){.r-jean-workspace .r-chat-heading .jc-heading-controls{flex-basis:100%;justify-content:flex-start;padding-left:34px;gap:5px}.r-jean-workspace .jc-heading-controls button{font-size:10px;padding:5px 7px}.r-jean-workspace .jc-heading-controls .jc-record-context{max-width:130px}}
#w9CompactJean .r-chat-heading .jc-heading-controls{flex-basis:100%;justify-content:flex-start;padding-left:34px}
.jc-task-issue{margin:8px 0 0;color:#6a3e17;font-size:13px;line-height:1.45}
.r-chat-log>.jc-history{display:flex;justify-content:center;margin:0 0 16px}
.jc-history button{border:1px solid #e3e5e8;border-radius:8px;background:#fff;color:#52616f;padding:7px 12px;font:inherit;font-size:12px;cursor:pointer}
.jc-history button:disabled{cursor:wait;opacity:.7}

/* .31: one persistent conversation with explicit attachments and compact options. */
.r-jean-workspace .r-chat-heading{flex-wrap:nowrap;gap:10px;position:relative}
.r-jean-workspace .r-chat-heading>div:first-of-type{flex:1;min-width:0}
.r-jean-workspace .r-chat-heading h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r-jean-workspace .r-chat-heading .jc-heading-controls{flex:0 0 auto;padding:0;justify-content:flex-end}
.jc-options{position:relative;margin:0}
.jc-options>summary{list-style:none;cursor:pointer;padding:6px 9px;letter-spacing:2px;border:1px solid #e5e7eb;border-radius:7px;font-size:15px;line-height:20px;color:#52616f;background:#fff}
.jc-options>summary::-webkit-details-marker{display:none}
.jc-options>summary:focus-visible{outline:2px solid #526b83;outline-offset:2px}
.jc-options>div{position:absolute;right:0;top:calc(100% + 6px);z-index:40;display:flex;flex-direction:column;gap:3px;padding:6px;min-width:220px;background:#fff;border:1px solid #e5e7eb;border-radius:9px;box-shadow:0 10px 30px #172b4d20}
.r-jean-workspace .jc-heading-controls .jc-options button{border:0;white-space:normal;text-align:left;padding:9px 10px;font-size:12px;color:#344454}
.r-jean-workspace .jc-heading-controls .jc-options button:hover{background:#f4f5f7}
.r-jean-workspace .jc-live .jc-result+.jc-result{margin-top:10px}
.jc-routing-choices{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 0}
.jc-routing-choices button{font:inherit;font-size:12px;border:1px solid #d5dce3;border-radius:7px;padding:8px 10px;background:#fff;color:#244056;cursor:pointer;max-width:100%;text-align:left}
.jc-routing-choices button:disabled{opacity:.6;cursor:wait}
.r-jean-workspace .r-compose>.jc-compose-target{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0 8px;margin:0 0 8px;border-bottom:1px solid #eceef1;font-size:12px;color:#52616f}
.jc-compose-target span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jc-compose-target button{border:0;background:none;font-size:19px;cursor:pointer;color:#52616f;padding:0 4px}
@media(max-width:760px){.r-jean-workspace .r-chat-heading{gap:6px}.r-jean-workspace .r-chat-actions{gap:0}.r-jean-workspace .r-chat-heading .jc-heading-controls,#w9CompactJean .r-chat-heading .jc-heading-controls{flex-basis:auto;padding-left:0}.r-jean-workspace .jc-heading-controls .jc-options button{font-size:12px}}
