/* Research Lab is a mode of the chat, never a separate page. */
/* Substantially larger, prominent Research Lab ON/OFF switch beside Profile/Login */
.mdx-research-switch {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none;
  font: 700 0.82rem/1 inherit; letter-spacing: 0.01em; color: #4b5563;
  padding: 5px 13px 5px 6px; border-radius: 999px; border: 1.5px solid rgba(80, 90, 110, 0.22);
  background: rgba(255, 255, 255, 0.65); transition: all 0.32s cubic-bezier(0.22, 0.7, 0.25, 1);
  box-shadow: 0 5px 18px rgba(22, 31, 46, 0.1), inset 0 1px 0 rgba(255,255,255,.7);
}
.mdx-research-switch:hover {
  border-color: rgba(199, 34, 50, 0.4);
  background: rgba(255, 255, 255, 0.85);
}
body.mdx.mdx-research-lab .mdx-research-switch {
  color: #ffffff; background: rgba(124, 15, 27, 0.48); border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 20px rgba(199, 34, 50, 0.22), inset 0 0 14px rgba(206, 27, 44, 0.18);
}
.mdx-research-switch input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.mdx-research-switch input:focus-visible + .mdx-research-track { outline: 2px solid #ff8690; outline-offset: 3px; }
.mdx-research-track {
  position: relative; width: 46px; height: 25px; border-radius: 999px; background: linear-gradient(180deg, #b7c0cc, #8d99a9);
  transition: background 0.28s ease, box-shadow 0.28s ease; display: inline-block; flex: none;
}
.mdx-research-thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.mdx-research-switch input:checked + .mdx-research-track {
  background: linear-gradient(135deg, #aa1728, #e34b59 58%, #ff7f86); box-shadow: 0 0 14px rgba(230, 57, 70, 0.6), inset 0 1px 2px rgba(255,255,255,.25);
}
.mdx-research-switch input:checked + .mdx-research-track .mdx-research-thumb {
  transform: translateX(20px);
}
.mdx-research-switch-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #b22a3a;
  flex: none;
}
.mdx-research-switch-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
body.mdx.mdx-research-lab .mdx-research-switch-icon { color: #ff9aa3; }
.mdx-research-switch-label { white-space: nowrap; font-size: 0.8rem; font-weight: 700; }

body.mdx.mdx-research-lab {
  --mdx-canvas: #090a0d; --mdx-surface: #0c0d11; --mdx-ink: #f0eef0; --mdx-muted: #99969d;
  background: #090a0d !important; color: #f0eef0 !important;
}
body.mdx.mdx-research-lab,
body.mdx.mdx-research-lab main,
body.mdx.mdx-research-lab .mdx-home,
body.mdx.mdx-research-lab .mdx-canvas,
body.mdx.mdx-research-lab .bfs { transition: background-color .65s cubic-bezier(.22,.7,.25,1), color .55s ease; }
body.mdx.mdx-research-lab .mdx-topline { background: rgba(10,11,14,.92); border-color: rgba(255,255,255,.065); }
body.mdx.mdx-research-lab .mdx-topline-mark { color: rgba(242,237,239,.82); }
body.mdx.mdx-research-lab .mdx-topline-mark b { background: linear-gradient(145deg,#5f0813,#d0303d); color: #fff; box-shadow: 0 6px 22px rgba(169,14,31,.22); }
body.mdx.mdx-research-lab .mdx-topline-auth { color: #ddd8dc; border-color: rgba(255,255,255,.13); }
body.mdx.mdx-research-lab .mdx-empty-id { color: #d75b64; }

/* Hide Chat/Lens switch, Spatial Intelligence, AR buttons, leftover Pro pill, Home Chips & Deck Redeem */
body.mdx.mdx-research-lab #mdxModeSwitch,
body.mdx.mdx-research-lab .mdx-si-row,
body.mdx.mdx-research-lab .mdx-si-btn,
body.mdx.mdx-research-lab .bchat-spatial-row,
body.mdx.mdx-research-lab .mdx-composer-model,
body.mdx.mdx-research-lab #mdxComposerModel,
body.mdx.mdx-research-lab #mdxDeckOnboard,
body.mdx.mdx-research-lab .mdx-deck-onboard,
body.mdx.mdx-research-lab .mdx-onboard-btn,
body.mdx.mdx-research-lab #mdxChatSuggestions,
body.mdx.mdx-research-lab .mdx-chat-suggestions,
body.mdx.mdx-research-lab .mdx-home-suggestions,
body.mdx.mdx-research-lab .mdx-empty-sub {
  display: none !important;
}

/* Original large centered "What should we investigate?" heading on empty state */
body.mdx.mdx-research-lab .mdx-empty-ask {
  display: block !important;
  color: #f5f1f2 !important;
  font-size: clamp(1.65rem, 4.2vw, 2.3rem) !important;
  font-weight: 750 !important;
  text-align: center !important;
  letter-spacing: -0.02em !important;
  margin: 14px 0 22px 0 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* Dark Graphite Composer in Research Lab mode with high contrast readable elements */
body.mdx.mdx-research-lab .mdx-bar { --mdx-bar-bg: rgba(14,15,19,.95); }
body.mdx.mdx-research-lab .mdx-bar-row,
body.mdx.mdx-research-lab .mdx-composer,
body.mdx.mdx-research-lab .mdx-bar-field,
body.mdx.mdx-research-lab .ai-composer,
body.mdx.mdx-research-lab .ai-composer-bar { background: rgba(14,15,19,.95) !important; border-color: rgba(255,255,255,.12) !important; box-shadow: 0 18px 60px rgba(0,0,0,.55) !important; }
body.mdx.mdx-research-lab #mdxBarInput,
body.mdx.mdx-research-lab #aiPromptInput,
body.mdx.mdx-research-lab .mdx-composer-input,
body.mdx.mdx-research-lab .mdx-bar-input,
body.mdx.mdx-research-lab .ai-input-field { color: #f5f1f2 !important; caret-color: #dc3545 !important; background: transparent !important; font-weight: 500 !important; opacity: 1 !important; }
body.mdx.mdx-research-lab #mdxBarInput::placeholder,
body.mdx.mdx-research-lab #aiPromptInput::placeholder,
body.mdx.mdx-research-lab .mdx-composer-input::placeholder,
body.mdx.mdx-research-lab .mdx-bar-input::placeholder,
body.mdx.mdx-research-lab .ai-input-field::placeholder { color: #8e8992 !important; opacity: 1 !important; }
body.mdx.mdx-research-lab .mdx-bar-legal { color: #706e74; }
body.mdx.mdx-research-lab .mdx-rail { background: rgba(14,14,18,.92) !important; border-color: rgba(255,255,255,.075) !important; }
body.mdx.mdx-research-lab .mdx-composer-send,
body.mdx.mdx-research-lab .mdx-bar-send,
body.mdx.mdx-research-lab .mdx-composer-voice,
body.mdx.mdx-research-lab .mdx-bar-voice,
body.mdx.mdx-research-lab .mdx-composer-attach,
body.mdx.mdx-research-lab .mdx-bar-attach,
body.mdx.mdx-research-lab .mdx-composer-btn,
body.mdx.mdx-research-lab .ai-attach-button,
body.mdx.mdx-research-lab .ai-voice-entry,
body.mdx.mdx-research-lab .mdx-bar-btn { color: #dcd7dc !important; }

/* High contrast sidebar / drawer and New Chat (+) button */
body.mdx.mdx-research-lab .mdx-drawer-panel { background: #0c0d12 !important; border-color: rgba(255,255,255,.08) !important; color: #f0eef0 !important; }
body.mdx.mdx-research-lab .mdx-drawer-new { background: rgba(26,28,36,.92) !important; border-color: rgba(219,58,68,.38) !important; color: #f5f1f2 !important; box-shadow: 0 4px 18px rgba(0,0,0,.35) !important; }
body.mdx.mdx-research-lab .mdx-drawer-new svg { color: #dc3545 !important; }
body.mdx.mdx-research-lab .mdx-drawer-new:hover { background: rgba(199,34,50,.24) !important; border-color: rgba(219,58,68,.65) !important; }
body.mdx.mdx-research-lab .mdx-menu-trigger,
body.mdx.mdx-research-lab .mdx-drawer-close,
body.mdx.mdx-research-lab .mdx-rail-btn { color: #dcd7dc !important; }
body.mdx.mdx-research-lab .mdx-menu-trigger:hover,
body.mdx.mdx-research-lab .mdx-drawer-close:hover,
body.mdx.mdx-research-lab .mdx-rail-btn:hover { color: #ffffff !important; background: rgba(255,255,255,.08) !important; }

/* Transform WebGL sphere into deep crimson/ruby sphere with clean dark depth (NO background oval panel) */
body.mdx .mdxs-home canvas { transition: filter .75s cubic-bezier(.22,.7,.25,1); }
body.mdx.mdx-research-lab .mdxs-home canvas { filter: hue-rotate(115deg) saturate(2.4) brightness(.62) contrast(1.22); }
body.mdx.mdx-research-lab .mdxs-home::after { display: none !important; }

.mdx-research-strip {
  position: fixed; z-index: 25012; top: var(--mdx-topline-h,56px); left: 50%; transform: translateX(-50%);
  width: min(760px, calc(100vw - 28px)); min-height: 40px; padding: 7px 10px;
  display: flex; align-items: center; gap: 12px; color: #aaa5ab;
  background: rgba(12,12,15,.82); border: 1px solid rgba(255,255,255,.065); border-top: 0;
  border-radius: 0 0 15px 15px; backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 12px 32px rgba(0,0,0,.18); animation: mdxResearchStripIn .38s cubic-bezier(.22,.7,.25,1) both;
}
.mdx-research-strip[hidden] { display: none; }
@keyframes mdxResearchStripIn { from { opacity:0; transform:translate(-50%,-8px); } }
.mdx-research-status { display:flex; align-items:center; gap:7px; white-space:nowrap; font-size:.68rem; font-weight:760; letter-spacing:.08em; text-transform:uppercase; color:#d0c9ce; }
.mdx-research-status i { width:6px; height:6px; border-radius:50%; background:#c72232; box-shadow:0 0 12px rgba(221,38,54,.8); }
.mdx-research-effort { display:flex; padding:2px; gap:1px; border-radius:999px; background:rgba(255,255,255,.045); }
.mdx-research-effort button { border:0; border-radius:999px; padding:6px 9px; color:#aeb8c5; background:transparent; font:650 .65rem/1 inherit; cursor:pointer; transition:color .2s ease, background .2s ease, transform .2s ease; }
.mdx-research-effort button:hover { color:#f1f5f9; background:rgba(255,255,255,.08); }
.mdx-research-effort button:active { transform:scale(.96); }
.mdx-research-effort button.is-active { color:#fff6f7; background:linear-gradient(135deg, rgba(176,27,42,.65), rgba(199,34,50,.3)); box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 4px 12px rgba(199,34,50,.15); }
.mdx-research-project { margin-left:auto; position:relative; font-size:.7rem; }
.mdx-research-project summary { cursor:pointer; color:#a8a3a8; list-style:none; white-space:nowrap; }
.mdx-research-project summary::-webkit-details-marker { display:none; }
.mdx-research-project summary span { color:#69666d; margin-left:4px; }
.mdx-research-project[open] > div { position:absolute; right:0; top:27px; width:min(310px,calc(100vw - 36px)); padding:15px; border:1px solid rgba(255,255,255,.09); border-radius:14px; background:rgba(16,16,20,.98); box-shadow:0 22px 70px rgba(0,0,0,.5); color:#d4ced2; }
.mdx-research-project p { margin:6px 0 10px; line-height:1.45; color:#8d8990; }
.mdx-research-project small { color:#c74d59; text-transform:uppercase; letter-spacing:.08em; font-size:.58rem; }
body.mdx.mdx-research-lab main { padding-top: calc(var(--mdx-topline-h,56px) + 38px); }

.mdx-research-agents { position:absolute; inset:0; z-index:7; pointer-events:none; opacity:0; transition:opacity .3s ease; }
.mdx-research-agents.is-active { opacity:1; }
.mdx-research-agents i { position:absolute; left:50%; top:50%; width:7px; height:7px; margin:-3px; border-radius:50%; background:#c72d3a; box-shadow:0 0 15px rgba(222,43,59,.75); animation:mdxAgentOrbit calc(5.8s + var(--i)*.38s) linear infinite; }
@keyframes mdxAgentOrbit { from { transform:rotate(calc(360deg/var(--n)*var(--i))) translateX(clamp(70px,22vw,124px)) scale(.72); } 50% { opacity:.45; } to { transform:rotate(calc(360deg/var(--n)*var(--i) + 360deg)) translateX(clamp(70px,22vw,124px)) scale(1); } }

.mdx-research-activity { margin:0 0 14px; width:min(650px,100%); color:#aaa5ab; font-size:.72rem; }
.mdx-research-activity-head { display:flex; align-items:center; gap:8px; color:#d7d0d4; margin-bottom:7px; }
.mdx-research-pulse { width:7px; height:7px; border-radius:50%; background:#c72b3a; box-shadow:0 0 0 0 rgba(199,43,58,.5); animation:mdxResearchPulse 1.8s ease-out infinite; }
@keyframes mdxResearchPulse { 70% { box-shadow:0 0 0 7px rgba(199,43,58,0); } }
.mdx-research-activity details { padding:9px 11px; border:1px solid rgba(255,255,255,.075); border-radius:12px; background:rgba(255,255,255,.025); }
.mdx-research-activity summary { display:flex; justify-content:space-between; cursor:pointer; list-style:none; color:#858188; }
.mdx-research-activity summary::-webkit-details-marker { display:none; }
.mdx-research-activity ol { list-style:none; margin:9px 0 0; padding:4px 0 0; border-top:1px solid rgba(255,255,255,.055); }
.mdx-research-activity li { display:flex; align-items:center; gap:9px; min-height:35px; }
.mdx-research-activity li > i { width:6px; height:6px; border-radius:50%; background:#555159; }
.mdx-research-activity li[data-state="running"] > i { background:#d33543; box-shadow:0 0 9px rgba(211,53,67,.65); }
.mdx-research-activity li[data-state="complete"] > i { background:#6e9b82; }
.mdx-research-activity li[data-state="failed"] > i { background:#c74d59; }
.mdx-research-activity li > span { display:flex; flex-direction:column; flex:1; }
.mdx-research-activity li strong { color:#bcb6bb; font-size:.7rem; }
.mdx-research-activity li small { color:#66636a; font-size:.62rem; }
.mdx-research-activity li em { font-style:normal; color:#66636a; font-size:.61rem; text-transform:capitalize; }

/* Restrained Investigation Incomplete state & Retry */
.mdx-research-activity.is-incomplete details { border-color: rgba(199,43,58,.35); background: rgba(199,43,58,.06); }
.mdx-research-retry-btn { margin-top: 8px; padding: 4px 10px; border: 1px solid rgba(208,48,63,.35); border-radius: 6px; background: rgba(124,15,27,.35); color: #ffd8d8; font-size: .66rem; font-weight: 650; cursor: pointer; transition: background .2s ease; }
.mdx-research-retry-btn:hover { background: rgba(176,27,42,.5); }

/* Chat bubble styling in Research Lab mode */
body.mdx.mdx-research-lab .bchat-assistant { color:#d8d3d6 !important; }
body.mdx.mdx-research-lab .bchat-assistant .ai-heading,
body.mdx.mdx-research-lab .bchat-assistant strong { color:#f1ecee !important; }
body.mdx.mdx-research-lab .bchat-assistant .ai-clinical-label { color:#dd626d !important; }
body.mdx.mdx-research-lab .bchat-user,
body.mdx.mdx-research-lab .ai-message.user,
body.mdx.mdx-research-lab .chat-message-user { background:#2a151a !important; color:#f3e7e9 !important; border: 1px solid rgba(208,48,63,.28) !important; box-shadow:0 4px 16px rgba(0,0,0,.25) !important; }

@media (max-width: 620px) {
  .mdx-research-switch { width: auto; padding: 4px 7px; gap: 6px; }
  .mdx-research-switch-label { display:none; }
  .mdx-research-switch-icon { width: 18px; height: 18px; }
  .mdx-research-switch-icon svg { width: 16px; height: 16px; }
  .mdx-research-strip { gap:8px; width:calc(100vw - 16px); padding-inline:8px; }
  .mdx-research-status { font-size:0; gap:0; }
  .mdx-research-effort button { padding:5px 7px; font-size:.61rem; }
  .mdx-research-project summary { font-size:0; }
  .mdx-research-project summary::before { content:"Project"; font-size:.66rem; }
  .mdx-research-project summary span { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .mdx-research-strip, .mdx-research-agents i, .mdx-research-pulse { animation:none !important; }
  body.mdx .mdxs-home canvas { transition:none; }
}

/* Research content is a reading surface. Keep every important text role above
   a comfortable dark-mode contrast floor; no opacity-based metadata here. */
body.mdx.mdx-research-lab .bchat-assistant,
body.mdx.mdx-research-lab .bchat-assistant .bchat-body,
body.mdx.mdx-research-lab .bchat-assistant p,
body.mdx.mdx-research-lab .bchat-assistant li { color: #f2f4f7 !important; }
body.mdx.mdx-research-lab .bchat-assistant .bchat-body { line-height: 1.62; }
body.mdx.mdx-research-lab .bchat-assistant .bchat-body strong,
body.mdx.mdx-research-lab .bchat-assistant .ai-heading { color: #ffffff !important; }
body.mdx.mdx-research-lab .bchat-sources,
body.mdx.mdx-research-lab .bchat-sources-label,
body.mdx.mdx-research-lab .bchat-source,
body.mdx.mdx-research-lab .bchat-source span,
body.mdx.mdx-research-lab .bchat-source i,
body.mdx.mdx-research-lab .ai-cite { color: #dbe4ef !important; opacity: 1 !important; }
body.mdx.mdx-research-lab .bchat-source b,
body.mdx.mdx-research-lab .ai-cite { color: #b8d5ff !important; background: rgba(76, 130, 220, .28) !important; }
body.mdx.mdx-research-lab .mdx-bar-legal,
body.mdx.mdx-research-lab .mdx-bar-legal-text,
body.mdx.mdx-research-lab .mdx-bar-legal-link { color: #d6dee9 !important; opacity: 1 !important; }
body.mdx.mdx-research-lab .mdx-bar-legal-link { text-decoration: underline; text-underline-offset: 2px; }
body.mdx.mdx-research-lab .mdx-research-activity,
body.mdx.mdx-research-lab .mdx-research-activity summary,
body.mdx.mdx-research-lab .mdx-research-activity li small,
body.mdx.mdx-research-lab .mdx-research-activity li em { color: #c3ccd8 !important; }
body.mdx.mdx-research-lab .mdx-research-activity li strong,
body.mdx.mdx-research-lab .mdx-research-activity-head { color: #f0f3f6 !important; }

/* Legal copy uses one neutral token across Chat, Research Lab and both theme
   variants. It is deliberately readable, but does not compete with evidence. */
.mdx-bar-legal,
.mdx-bar-legal-text,
.mdx-bar-legal-link { color: #687384 !important; opacity: 1 !important; }
body.mdx.dark-mode .mdx-bar-legal,
body.mdx.dark-mode .mdx-bar-legal-text,
body.mdx.dark-mode .mdx-bar-legal-link,
body.mdx.mdx-research-lab .mdx-bar-legal,
body.mdx.mdx-research-lab .mdx-bar-legal-text,
body.mdx.mdx-research-lab .mdx-bar-legal-link { color: #aeb8c5 !important; opacity: 1 !important; }
.mdx-bar-legal-link { text-decoration-color: currentColor; }

/* AI-native research surfaces. Cards remain compact in the conversation and
   stack naturally on a phone. */
.mdx-research-components { display: grid; gap: 12px; width: min(760px, 100%); margin: 12px 0 4px; }
.mdx-research-component { overflow: hidden; border: 1px solid rgba(226, 234, 244, .13); border-radius: 18px; background: linear-gradient(145deg, rgba(24, 27, 34, .94), rgba(13, 15, 20, .97)); box-shadow: 0 16px 42px rgba(0, 0, 0, .22); }
.mdx-research-component-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 16px 11px; border-bottom: 1px solid rgba(226, 234, 244, .09); }
.mdx-research-component-kicker { display: block; color: #ff8b94; font-size: .61rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.mdx-research-component h3 { margin: 4px 0 0; color: #f7f9fb; font-size: 1rem; letter-spacing: -.02em; }
.mdx-research-component-state { flex: none; color: #c9d4e1; font-size: .68rem; }
.mdx-research-component-body { padding: 13px 16px 16px; color: #e4eaf1; font-size: .78rem; line-height: 1.55; }
.mdx-research-component-note, .mdx-research-empty { margin: 0 0 12px; color: #cbd6e2; }
.mdx-research-paper-card { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(226, 234, 244, .08); }
.mdx-research-paper-card:last-child { border-bottom: 0; padding-bottom: 0; }
.mdx-research-paper-index { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #f5c1c6; background: rgba(195, 34, 50, .22); font-size: .68rem; font-weight: 800; }
.mdx-research-paper-main h4 { margin: 0 0 4px; font-size: .82rem; line-height: 1.32; }
.mdx-research-paper-main h4 a { color: #ffffff; text-decoration: none; }
.mdx-research-paper-main h4 a:hover { text-decoration: underline; text-underline-offset: 2px; }
.mdx-research-paper-main p { margin: 4px 0 0; color: #cbd6e2; }
.mdx-research-paper-meta { color: #aebdcd !important; font-size: .68rem; }
.mdx-research-paper-tags, .mdx-research-provider-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mdx-research-paper-tags span, .mdx-research-provider-row span { padding: 3px 7px; border: 1px solid rgba(142, 181, 235, .22); border-radius: 999px; color: #cce0fb; background: rgba(74, 120, 190, .12); font-size: .62rem; }
.mdx-research-paper-tags .is-warning { color: #ffd8a8; border-color: rgba(238, 171, 77, .35); background: rgba(155, 96, 16, .18); }
.mdx-research-pico-grid, .mdx-research-protocol-grid, .mdx-research-grade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mdx-research-pico-grid > div, .mdx-research-protocol-grid > div, .mdx-research-grade-grid > div { display: flex; gap: 9px; min-height: 50px; padding: 10px; border: 1px solid rgba(226, 234, 244, .1); border-radius: 12px; background: rgba(255,255,255,.035); }
.mdx-research-pico-grid b { color: #ff9ba2; font-size: 1rem; }
.mdx-research-pico-grid span, .mdx-research-protocol-grid div, .mdx-research-grade-grid div { display: flex; flex-direction: column; gap: 3px; }
.mdx-research-pico-grid small, .mdx-research-protocol-grid span, .mdx-research-grade-grid span { color: #c4d0dc; }
.mdx-research-component blockquote { margin: 12px 0 0; padding: 9px 11px; border-left: 2px solid #dc5965; color: #f0f3f7; background: rgba(255,255,255,.035); }
.mdx-research-query-string { display: flex; align-items: flex-start; gap: 8px; }
.mdx-research-query-string code { flex: 1; overflow: auto; padding: 10px; border: 1px solid rgba(139, 185, 246, .22); border-radius: 10px; color: #d9e9ff; background: rgba(24, 46, 78, .46); white-space: pre-wrap; }
.mdx-research-copy-query, .mdx-research-export { flex: none; padding: 8px 11px; border: 1px solid rgba(226, 234, 244, .18); border-radius: 9px; color: #f4f7fb; background: rgba(255,255,255,.07); cursor: pointer; font: 700 .68rem/1 inherit; }
.mdx-research-table-wrap { overflow-x: auto; }
.mdx-research-table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; }
.mdx-research-table-wrap th, .mdx-research-table-wrap td { padding: 9px 7px; border-bottom: 1px solid rgba(226,234,244,.1); text-align: left; vertical-align: top; }
.mdx-research-table-wrap th { color: #f5f7fa; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; }
.mdx-research-table-wrap td { color: #d4dee9; }
.mdx-research-reader-pane { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; background: rgba(78, 116, 169, .16); }
.mdx-research-reader-icon { display: grid; place-items: center; width: 39px; height: 46px; border: 1px solid rgba(255, 153, 162, .35); border-radius: 8px; color: #ffbdc2; font-size: .62rem; font-weight: 800; }
.mdx-research-reader-pane strong { color: #fff; }
.mdx-research-reader-pane p { margin: 3px 0 0; color: #d0dbe7; }
.mdx-research-reader-links { display: grid; gap: 6px; margin-top: 10px; }
.mdx-research-reader-links a { color: #c9e0ff; text-decoration: underline; text-underline-offset: 2px; }
.mdx-research-screening-list { display: grid; gap: 7px; }
.mdx-research-screening-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto auto; align-items: center; gap: 7px; padding: 9px; border: 1px solid rgba(226,234,244,.1); border-radius: 11px; }
.mdx-research-screening-row strong { color: #f4f7fa; font-size: .72rem; }
.mdx-research-screening-number { color: #ffb9bf; font-weight: 800; }
.mdx-research-screening-state, .mdx-research-unrated { color: #c4d0dc; font-size: .66rem; }
.mdx-research-screening-row button { padding: 4px 7px; border: 1px solid rgba(226,234,244,.18); border-radius: 7px; color: #dbe8f6; background: rgba(255,255,255,.06); cursor: pointer; font-size: .62rem; }
.mdx-research-screening-row[data-screen-state="include"] { border-color: rgba(86, 202, 142, .4); }
.mdx-research-screening-row[data-screen-state="exclude"] { border-color: rgba(234, 113, 123, .42); opacity: .75; }
.mdx-research-prisma-flow { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.mdx-research-prisma-flow > div { display: grid; gap: 4px; min-width: 0; text-align: center; }
.mdx-research-prisma-flow b { color: #fff; font-size: 1.25rem; }
.mdx-research-prisma-flow span { color: #c4d0dc; font-size: .63rem; }
.mdx-research-prisma-flow i { flex: 1; height: 1px; background: rgba(255, 151, 160, .42); }
.mdx-research-chart-placeholder { position: relative; min-height: 104px; display: grid; place-content: center; gap: 4px; padding: 16px; border: 1px dashed rgba(143, 183, 231, .28); border-radius: 12px; text-align: center; background: repeating-linear-gradient(0deg, transparent 0 24px, rgba(143,183,231,.06) 25px); }
.mdx-research-chart-placeholder strong { color: #f5f8fb; }
.mdx-research-chart-placeholder p { margin: 0; color: #c4d0dc; }
.mdx-research-citation-graph { position: relative; display: flex; justify-content: center; gap: 18px; padding: 19px 6px; }
.mdx-research-citation-graph::before { content: ""; position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; background: rgba(133, 184, 244, .32); }
.mdx-research-citation-graph span { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(150, 205, 255, .5); border-radius: 50%; color: #e4f1ff; background: #182231; font-size: .68rem; }
.mdx-research-timeline { display: grid; gap: 7px; }
.mdx-research-timeline div { display: grid; grid-template-columns: 44px 1fr; gap: 9px; padding: 7px 0; border-bottom: 1px solid rgba(226,234,244,.08); }
.mdx-research-timeline b { color: #ffabb1; }
.mdx-research-timeline span { color: #dbe5ef; }
.mdx-research-checklist { display: grid; gap: 9px; }
.mdx-research-checklist label { display: flex; align-items: center; gap: 9px; color: #e5ebf2; }
.mdx-research-checklist input { accent-color: #dc5965; }
.mdx-research-reference-list { display: grid; gap: 8px; margin-bottom: 12px; }
.mdx-research-reference-list > div { display: grid; grid-template-columns: 21px 1fr; gap: 8px; color: #d2dde8; }
.mdx-research-reference-list b { color: #ffafb5; }

@media (max-width: 620px) {
  .mdx-research-switch { padding-right: 8px; }
  .mdx-research-switch-label { display: inline; }
  .mdx-research-component-head, .mdx-research-component-body { padding-inline: 12px; }
  .mdx-research-pico-grid, .mdx-research-protocol-grid, .mdx-research-grade-grid { grid-template-columns: 1fr; }
  .mdx-research-screening-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .mdx-research-screening-row button { grid-row: 2; }
  .mdx-research-screening-row button[data-screen-choice="include"] { grid-column: 2; }
  .mdx-research-screening-row button[data-screen-choice="exclude"] { grid-column: 3; }
  .mdx-research-prisma-flow { align-items: stretch; flex-direction: column; }
  .mdx-research-prisma-flow i { width: 1px; height: 10px; margin: 0 auto; }
}

/* Header cleanup: keep the Lab control centred on its own baseline and retain
   its name on narrow screens. The toggle is a quiet control, not a second
   navigation treatment. */
.mdx-research-switch {
  align-self: center;
  gap: 7px;
  min-height: 30px;
  padding: 3px 8px 3px 7px;
  border-width: 1px;
  box-shadow: 0 4px 15px rgba(22, 31, 46, .08), inset 0 1px 0 rgba(255,255,255,.72);
}
.mdx-research-track { width: 30px; height: 18px; }
.mdx-research-thumb { top: 3px; left: 3px; width: 12px; height: 12px; }
.mdx-research-switch input:checked + .mdx-research-track .mdx-research-thumb { transform: translateX(12px); }
.mdx-research-switch-icon { width: 16px; height: 16px; }
.mdx-research-switch-icon svg { width: 15px; height: 15px; }
.mdx-research-switch-label { display: inline; font-size: .7rem; font-weight: 740; letter-spacing: -.005em; }
body.mdx .mdx-topline-end { justify-content: center; }

@media (max-width: 620px) {
  .mdx-research-switch { gap: 5px; padding-inline: 6px; }
  .mdx-research-switch-label { display: inline; font-size: .64rem; }
  .mdx-research-switch-icon { width: 14px; height: 14px; }
  .mdx-research-switch-icon svg { width: 14px; height: 14px; }
}

/* The shared composer trust line is intentionally omitted inside Research Lab;
   its evidence/status components provide the relevant context in-flow. */
body.mdx.mdx-research-lab #mdxBarLegal { display: none !important; }
