.side-brand .role { white-space: normal; line-height: 1.7; }
.research-selector { position: relative; }
.research-trigger { width: 100%; text-align: left; align-items: stretch; cursor: pointer; background: #f2f7f4; border: 1px solid #dce7e1; border-radius: 8px; }
.research-trigger:hover { border-color: #80ac98; }
.research-trigger strong { overflow-wrap: anywhere; }
.research-trigger .side-status .lucide { margin-left: auto; width: 14px; height: 14px; }
.research-menu { position: absolute; bottom: calc(100% + 8px); left: 0; width: 330px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid #dce7e1; border-radius: 8px; padding: 16px; box-shadow: 0 8px 28px #182b2026; z-index: 60; }
.research-menu[hidden] { display: none; }
.research-menu input { width: 100%; margin: 12px 0; }
.research-list { max-height: 36vh; overflow: auto; }
.research-option, .research-add { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 8px; background: transparent; border: 0; text-align: left; font: inherit; cursor: pointer; }
.research-option span { overflow-wrap: anywhere; min-width: 0; }
.research-option .lucide, .research-add .lucide { flex-shrink: 0; width: 18px; height: 18px; }
.research-option.active, .research-option:hover { background: #edf5ef; color: #32674f; border-radius: 6px; }
.research-add { color: #32674f; border-top: 1px solid #e2eae5; margin-top: 8px; }
.new-research-dialog { width: min(860px, calc(100vw - 32px)); height: min(700px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dce7e1; border-radius: 8px; color: #263b31; background: #fff; }
.new-research-dialog::backdrop { background: #182b2066; }
.new-research-head { height: 64px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e2eae5; }
.new-research-head h2 { font-size: 17px; margin: 0; }
.new-research-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); height: calc(100% - 64px); overflow: hidden; }
.new-research-portrait { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: #f0f6f2; gap: 24px; text-align: center; font-size: 14px; }
.new-research-portrait img { width: 100%; max-width: 180px; height: 250px; object-fit: contain; flex: 0 0 auto; }
.new-research-body > .welcome-form { align-self: stretch; padding: 24px; overflow: auto; width: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.new-research-body .welcome-form .welcome-start { margin-top: 20px; font-size: 17px; border-radius: 8px; }
.new-research-body .welcome-form-description { font-size: 13px; margin-bottom: 16px; }
.new-research-body .welcome-form .form-grid { margin-bottom: 16px; gap: 12px; }
.new-research-body .welcome-form .field input, .new-research-body .welcome-form .field select { height: 44px; border-radius: 6px; }
.new-research-body .welcome-form .depth-chip { border-radius: 8px; }
.new-research-body .welcome-form h2 { font-size: 23px; }
.new-research-body .depth-grid { grid-template-columns: 1fr 1fr; }
.new-research-body .depth-chip { min-width: 0; padding: 10px; }
.new-research-body .depth-copy strong { font-size: 12px; }
.new-research-body .welcome-conversation { min-height: 0; height: 100%; padding: 20px; border: 0; border-radius: 0; box-shadow: none; background: #fff; display: flex; flex-direction: column; }
.new-research-body .chat-stream { min-height: 0; flex: 1; overflow: auto; }
.new-research-body .onboard-foot { flex-shrink: 0; }
.new-research-body .welcome-conversation-head h2 { font-size: 20px; }
.new-research-body .onboard-progress .muted { display: none; }
.new-research-body .research-letter-paper { overflow: auto; padding: 24px 32px; }
.new-research-body .research-letter-paper h2 { font-size: 24px; }
.new-research-body .concept-actions { flex-wrap: wrap; }
.new-research-dialog.show-letter { width: min(700px, calc(100vw - 32px)); }
.show-letter .new-research-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.show-letter .new-research-portrait { display: none; }
.show-letter .concept-actions { position: sticky; bottom: -24px; background: #fff; padding: 14px 0; border-top: 1px solid #e2eae5; }
@media (max-width: 600px) {
  .new-research-dialog { width: calc(100vw - 20px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  .new-research-head { padding: 10px 14px; }
  .new-research-head h2 { font-size: 15px; }
  .new-research-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 90px minmax(0, 1fr); }
  .new-research-portrait { flex-direction: row; padding: 8px 16px; gap: 16px; }
  .new-research-portrait img { width: 68px; height: 76px; object-fit: contain; }
  .new-research-body > .welcome-form, .new-research-body .welcome-conversation, .new-research-body .research-letter-paper { padding: 16px; }
  .new-research-body .form-grid { grid-template-columns: 1fr; }
  .new-research-body .depth-grid { grid-template-columns: 1fr; }
  .new-research-body .depth-hint { display: none; }
  .new-research-body .welcome-form .depth-chip { min-height: 48px; flex-direction: row; align-items: center; }
  .new-research-body .welcome-form h2, .new-research-body .research-letter-paper h2 { font-size: 21px; }
  .new-research-body .composer { min-width: 0; }
  .show-letter .concept-actions { bottom: -16px; }
}
