.study-intro{font-size:14px;max-width:920px;margin:10px 0}.round-nav{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.round-nav button{margin:0;background:#eaf0ea;color:#45674e;border:1px solid #d8e3d8}.round-nav button[aria-current=true]{background:#315c49;color:white}.visit-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px;gap:12px}.visit-heading h2{font-size:18px;margin:0}.visit-heading span,.hint{font-size:13px;color:#718178}.chat-pane .messages{height:clamp(320px,48vh,560px)}.post-form h3{margin:20px 0 0;font-size:16px;color:#42624d}.post-form .hint{margin-top:5px}.post-form details{margin:18px 0}.post-form summary{cursor:pointer;font-weight:500}.optional-choices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.optional-choices label{display:flex;gap:7px;align-items:center;margin:0;font-size:13px;border:1px solid #dfe7df;border-radius:9px;padding:8px 10px;background:#f7faf6}.optional-choices input{accent-color:#315c49}.processing-note{padding:12px 18px;background:#f5f8f2;color:#617269;font-size:13px}.processing-note button{font-size:13px}.next-actions{display:flex;flex-wrap:wrap;gap:8px}#comparisonPanel,#finalPanel{max-width:850px;margin:24px auto}#visitComplete,#completePanel{margin-top:24px}#comparisonSummary{white-space:pre-line}#finalPanel textarea{min-height:100px}.read-only-note{padding:14px 18px;font-size:13px;color:#718178;background:#fafcf9}

.study-header-actions{display:flex;align-items:center;gap:20px}.exit-study{border:1px solid #cad8cc;border-radius:10px;padding:8px 13px;text-decoration:none;background:white}.star-question{border:0;border-bottom:1px solid #edf0ed;margin:0;min-width:0;padding:16px 0}.star-question legend{float:left;width:100%;padding:0;margin-bottom:9px;font-weight:500}.star-row{display:flex;align-items:center;gap:5px;clear:both;flex-wrap:wrap}.star-option{position:relative;display:inline-flex;align-items:center;justify-content:center;margin:0;width:43px;height:45px;border-radius:9px;cursor:pointer}.star-option input{position:absolute;opacity:0;width:1px;height:1px}.star-option span{font-size:37px;line-height:1;color:#aebbb1}.star-option.filled span{color:#d59b9e}.star-option:has(input:checked){background:#edf5f0;box-shadow:inset 0 0 0 2px #c9dfd2}.star-option:has(input:focus-visible){outline:3px solid #94b79e;outline-offset:2px}.star-option:has(input:disabled){cursor:default;opacity:.65}.star-summary{font-size:13px;color:#6d7b71;margin-left:9px}.star-endpoints{font-size:12px;color:#7a897e;margin:4px 0 10px}.star-skip{display:flex;align-items:center;gap:7px;font-size:12px;color:#718178;margin:0}.star-skip input{accent-color:#315c49}@media(max-width:1050px){.study-header-actions{gap:12px}.star-option{width:37px}.star-option span{font-size:33px}.star-summary{margin-left:3px}}

/* Preserve the main application's sidebar and frame around the paired chat. */
body.study3-shell{font-size:14px;background:#fff;color:var(--ink)}body.study3-shell .app-shell{height:100vh;min-height:600px;overflow:hidden}.study3-shell .topbar{display:flex;justify-content:space-between;width:100%;max-width:none;margin:0;padding:0 24px;height:72px;flex:none}.study3-shell .brand{font-size:18px}.study3-shell .brand span{margin-left:0;color:inherit;font-size:inherit}.study3-shell .brand small{font-size:9px}.study3-shell .study-header-actions{font-size:12px}.study3-shell .workspace{grid-template-columns:var(--sidebar-width,260px) 14px minmax(0,1fr);gap:0;padding:14px;flex:1;min-height:0;overflow:hidden}.study3-shell .left-rail{display:flex!important;position:static!important;flex-direction:column;gap:10px;padding:14px;overflow:hidden}.study3-shell .study-main{grid-column:3;min-width:0;overflow:auto;display:block;padding:20px 22px 30px}.study3-shell .conversation-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0 15px!important}.study3-shell .conversation-sidebar-heading h2{font-size:18px;margin:0}.study3-shell .conversation-sidebar-head button{font-size:12px;margin:0;padding:9px 10px!important}.study3-shell .conversation-search{flex:none;margin:0;padding:9px 10px}.study3-shell .conversation-list{flex:1;min-height:100px;overflow-y:auto;display:flex;flex-direction:column;padding:4px 0!important}.study3-shell .conversation-list-item{width:100%;text-align:left;margin:0;color:var(--ink);box-shadow:none;flex:none;padding:11px 8px!important;grid-template-columns:24px minmax(0,1fr) auto!important;gap:7px!important}.study3-shell .conversation-list-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.study3-shell .conversation-list-item:hover{background:#f5fafb}.study3-shell .conversation-list-empty{font-size:12px;margin:8px 0}.study3-shell .profile-card{text-decoration:none;flex:none;min-height:74px!important}.study3-shell .profile-card-arrow{margin-left:auto}.study-sidebar-note{flex:none;padding:11px 4px;border-top:1px solid var(--line)}.study-sidebar-note>span{font-size:10px;letter-spacing:.12em;color:#78909a}.study-sidebar-note p{font-size:11px;line-height:1.7;margin:6px 0 0;color:#819098}.study3-shell .chat-page-title{margin:0 0 8px}.study3-shell .chat-page-title h1{font-family:inherit;font-size:20px}.study3-shell .study-intro{font-size:12px;line-height:1.8;margin:8px 0}.study3-shell #status{font-size:11px;margin:7px 0}.study3-shell .visit-heading{margin:16px 0 10px}.study3-shell .visit-heading h2{font-size:15px}.study3-shell .card{padding:18px;margin:14px 0;border-color:var(--line)}.study3-shell .topic.card{padding:10px 14px}.study3-shell .dual-chat{gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.study3-shell .chat-pane{border-color:var(--line);background:#fff;box-shadow:none}.study3-shell .pane-head{padding:13px 16px;border-color:var(--line)}.study3-shell .pane-head h2{font-size:15px}.study3-shell .badge{font-size:10px;background:#edf7fa;color:#507988}.study3-shell .chat-pane .messages{height:clamp(290px,43vh,570px);min-height:0;display:block;padding:18px 14px;background:#fff}.study3-shell .messages .new-chat-welcome{width:100%;padding:45px 2px 30px}.study3-shell .new-chat-welcome h3{font-family:Georgia,'Songti SC',serif;font-size:20px;font-weight:500;margin:0}.study3-shell .new-chat-welcome>p{font-size:11px;line-height:1.8;margin-top:12px}.study3-shell .message{display:flex;gap:8px;padding:0;background:none;margin:0 0 18px;white-space:normal;overflow-wrap:anywhere}.study3-shell .message.user{margin-left:0;flex-direction:row-reverse;justify-content:flex-start}.study3-shell .message-avatar{width:26px;height:26px;min-width:26px;border-radius:9px;background:#edf7fa;font-size:11px}.study3-shell .message-avatar img{width:23px;height:23px}.study3-shell .message-content{min-width:0;max-width:86%!important}.study3-shell .message-content>b{font-size:10px;font-weight:500;margin:0 0 5px;color:#8b969c}.study3-shell .message .bubble{font-size:12px;line-height:1.85;padding:10px 12px;background:#f4f8fa;color:var(--ink)}.study3-shell .message.user .bubble{background:#eaf4f8;color:#34434a}.study3-shell .pane-controls{padding:12px;border-color:var(--line)}.study3-shell .composer{background:#f6f9fa;border:1px solid #e2ebef;padding:6px 8px;border-radius:13px;gap:6px}.study3-shell .composer textarea{margin:0;border:0;background:transparent;padding:5px;font-size:12px;min-height:45px}.study3-shell .composer button{padding:8px 12px;min-width:0;width:auto;height:auto;border-radius:10px;font-size:12px}.study3-shell button{font-size:12px}.study3-shell button:not(.star-option):hover{filter:brightness(.98)}.study3-shell .secondary{color:#526b75;background:#f1f6f8;border-color:#dce7eb}.study3-shell .shared-composer{margin-top:14px;border-color:var(--line)}.study3-shell .shared-composer label,.study3-shell .pane-controls label{font-size:11px}.study3-shell .post-form{padding:0 14px 18px}.study3-shell .post-form h3{font-size:14px}.study3-shell .star-question legend{font-size:12px;line-height:1.8}.study3-shell .star-row{gap:1px}.study3-shell .star-option{width:34px;height:40px}.study3-shell .star-option span{font-size:31px}.study3-shell .star-summary{font-size:11px;display:block}.study3-shell .star-skip{font-size:10px;line-height:1.8}.study3-shell .star-endpoints{font-size:10px}.study3-shell .read-only-note,.study3-shell .processing-note{font-size:11px}.study3-shell footer{flex:none;padding:7px 14px;font-size:10px;border-top:1px solid #edf1f3}.study3-shell dialog{font-size:14px;line-height:1.7}.study3-shell dialog .star-option{width:43px}.study3-shell dialog .star-option span{font-size:37px}.study3-shell dialog .star-question legend{font-size:14px}.study3-shell dialog .star-skip{font-size:12px}
@media(max-width:1100px){body.study3-shell .workspace{--sidebar-width:220px;padding:10px}.study3-shell .study-main{padding:15px 13px}.study3-shell .dual-chat{gap:10px}.study3-shell .conversation-list-status{display:none}.study3-shell .conversation-list-item{grid-template-columns:24px minmax(0,1fr)!important}.study3-shell .pane-controls .composer{align-items:stretch}.study3-shell .composer textarea{width:100%}.study3-shell .composer button{align-self:flex-end}.study3-shell .pane-controls .composer{flex-direction:column}}
@media(max-width:760px){body.study3-shell .workspace{grid-template-columns:170px minmax(0,1fr);gap:10px}.study3-shell .study-main{grid-column:2}.study3-shell .left-rail{padding:10px}.study3-shell .conversation-sidebar-head{align-items:flex-start;flex-direction:column}.study3-shell .conversation-sidebar-heading h2{font-size:15px}.study3-shell .dual-chat{grid-template-columns:minmax(0,1fr)}.study3-shell .topbar{padding:0 14px}.study3-shell .brand small,.study3-shell .study-header-actions>a:first-child{display:none}}

/* A single normal chat surface; switching restores each condition's own pane. */
body.study3-shell .dual-chat{display:block!important}.study3-shell .dual-chat>.chat-pane[hidden]{display:none!important}.study3-shell .chat-page-title{align-items:center}.study3-shell .model-switch{display:flex;align-items:center;gap:9px;margin:0;font-size:12px;white-space:nowrap}.study3-shell .model-switch select{width:auto;min-width:170px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:white;font:inherit;color:var(--ink)}.study3-shell .chat-pane .messages{height:clamp(320px,47vh,620px);padding:22px 24px}.study3-shell .message-content{max-width:min(640px,85%)!important}.study3-shell .message .bubble{font-size:13px}.study3-shell .pane-controls .composer{flex-direction:row}.study3-shell .star-question legend{font-size:13px}.study3-shell .star-option{width:43px;height:45px}.study3-shell .star-option span{font-size:37px}.study3-shell .star-summary{font-size:12px}.study3-shell .star-skip{font-size:12px}.study3-shell .star-endpoints{font-size:11px}.study3-shell .post-form{max-width:850px;margin:0 auto}.study3-shell .post-form input[type=radio]{accent-color:#a3ccda}

.short-preference-feedback{margin:20px 0;padding:16px;border:1px solid #dce7ed;border-radius:14px;background:#fbfdfe}.short-preference-feedback summary{cursor:pointer;font-weight:600}.short-preference-feedback fieldset{border:0;margin:15px 0;padding:0}.short-preference-feedback legend{font-weight:600}.short-preference-feedback label{display:inline-flex;gap:6px;margin:5px 12px 5px 0}.short-preference-feedback input{width:auto}.short-preference-feedback [hidden]{display:none!important}
