      .research-panel {
        --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
        width: 100%;
        max-width: 720px;
        margin: 32px auto 64px;
        text-align: center;
      }
      .research-scene {
        position: relative;
        height: 290px;
        margin: 0 auto 24px;
        overflow: hidden;
      }
      .research-browser {
        position: absolute;
        top: 16px;
        left: 50%;
        width: min(76%, 380px);
        height: 224px;
        transform: translateX(-50%);
        overflow: hidden;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius);
        background: var(--card);
      }
      .research-browser-bar {
        display: flex;
        align-items: center;
        gap: 5px;
        height: 35px;
        padding: 0 12px;
        border-bottom: 1px solid var(--border);
        font-size: 11px;
        color: var(--muted);
      }
      .research-browser-bar i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--border-strong);
      }
      .research-browser-bar span {
        margin-left: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .research-document {
        position: relative;
        width: 74%;
        margin: 24px auto;
      }
      .research-document strong {
        display: block;
        margin-bottom: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
        font-size: 16px;
        font-weight: 600;
      }
      .research-document i {
        display: block;
        width: 100%;
        height: 5px;
        margin-top: 11px;
        border-radius: 4px;
        background: var(--border);
      }
      .research-document i:nth-child(3) { width: 86%; }
      .research-document i:nth-child(4) { width: 94%; }
      .research-document i:nth-child(5) { width: 63%; }
      .research-scan {
        position: absolute;
        inset: 35px 0 0;
        width: 45%;
        background: linear-gradient(90deg, transparent, var(--me-bg), transparent);
        transform: translateX(-110%);
      }
      .research-agent {
        position: absolute;
        top: 172px;
        left: calc(50% - 30px);
        display: grid;
        place-items: center;
        width: 60px;
        height: 60px;
        border: 1px solid var(--border-strong);
        border-radius: 22px;
        background: var(--bg);
        color: var(--accent);
        box-shadow: 0 8px 28px var(--border);
      }
      .research-agent svg { width: 32px; height: 32px; }
      .research-agent::before,
      .research-agent::after {
        content: "";
        position: absolute;
        top: 21px;
        width: 5px;
        height: 7px;
        border-radius: 3px;
        background: var(--fg);
      }
      .research-agent::before { left: 20px; }
      .research-agent::after { right: 20px; }
      .research-agent svg { position: absolute; right: -17px; bottom: -9px; }
      .research-sources {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 22px;
      }
      .research-source {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        max-width: 100%;
        padding: 6px 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--card);
        font-size: 12px;
        color: var(--muted);
        text-align: left;
        opacity: 0;
        transform: translateY(8px);
        transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
      }
      .research-source span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .research-source b { color: var(--fg); font-weight: 600; }
      .research-source[data-state="ready"] b,
      .research-source[data-state="partial"] b { color: var(--accent); }
      .research-panel[data-running] .research-source { opacity: 1; transform: translateY(0); }
      .research-source:nth-child(2) { transition-delay: 50ms; }
      .research-source:nth-child(3) { transition-delay: 100ms; }
      .research-source:nth-child(4) { transition-delay: 150ms; }
      .research-panel[data-running] .research-scan { animation: research-scan 2s linear 4; }
      .research-panel[data-running] .research-agent { animation: research-search 8s var(--ease-in-out) both; }
      .research-panel h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
      .research-panel p { min-height: 24px; margin-top: 8px; color: var(--muted); font-size: 14px; }
      .research-track {
        overflow: hidden;
        height: 2px;
        max-width: 240px;
        margin: 24px auto 12px;
        border-radius: 2px;
        background: var(--border);
      }
      .research-track i {
        display: block;
        height: 100%;
        background: var(--accent);
        transform-origin: left;
        transform: scaleX(0.03);
      }
      .research-panel[data-running] .research-track i { animation: research-timeline 8s linear both; }
      .research-panel .text-button { font-size: 13px; color: var(--muted); }
      @keyframes research-scan {
        from { transform: translateX(-110%); }
        to { transform: translateX(325%); }
      }
      @keyframes research-search {
        0%, 100% { transform: translate(0, 0) rotate(0); }
        22% { transform: translate(-80px, -56px) rotate(-7deg); }
        47% { transform: translate(70px, -92px) rotate(6deg); }
        72% { transform: translate(-30px, -26px) rotate(-4deg); }
      }
      @keyframes research-timeline {
        from { transform: scaleX(0.03); }
        to { transform: scaleX(1); }
      }
      @keyframes research-breathe {
        from { opacity: 0.55; }
        to { opacity: 1; }
      }

@media (prefers-reduced-motion: reduce) {
  .research-source { transform: none; transition-property: opacity; transition-delay: 0ms; }
  .research-panel[data-running] .research-agent { animation: research-breathe 2s linear 4 alternate; }
  .research-panel[data-running] .research-scan,
  .research-panel[data-running] .research-track i { animation: none; }
  .research-track i { transform: none; opacity: 0.6; }
}
#wikiSourceSettings { margin: 12px 0 20px; }
#wikiSourceSettings > summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; cursor: pointer; }
#wikiSourceSettings > summary::after { content: '+'; margin-left: auto; color: var(--muted); }
#wikiSourceSettings[open] > summary::after { content: '−'; }
#wikiSourceSettings .btn { margin-top: 20px; width: 100%; }
#wikiSourceSettings p { font-size: 13px; }
#wikiSourcesStatus { margin-top: 8px; color: var(--muted); }
#account[data-research] > :not(#researchPanel) { display: none !important; }
#account .research-panel { margin-top: 24px; }
#sourceForm input[type="url"] {
  width: 100%; min-height: 44px; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--card); color: var(--fg); -webkit-user-select: text; user-select: text;
}
.research-panel p { margin-left: auto; margin-right: auto; }
.research-panel .text-button { width: 100%; }

/* The source clippings gather into the article during this rare onboarding sequence. */
.research-scene { height: 306px; }
.research-halo {
  position: absolute; top: 22px; left: calc(50% - 170px); width: 340px; height: 238px;
  border-radius: 50%; background: radial-gradient(ellipse, var(--me-bg), transparent 70%);
}
.research-browser { z-index: 2; }
.research-agent { z-index: 5; background: var(--card); }
.research-clipping {
  position: absolute; z-index: 3; display: block; width: 80px; height: 66px; padding: 10px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--card);
  box-shadow: 0 8px 24px var(--border); opacity: 0;
}
.research-clipping b { display: block; font-size: 18px; line-height: 20px; color: var(--accent); }
.research-clipping i { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--border-strong); }
.research-clipping i:last-child { width: 65%; }
.research-clipping-profile { left: 1%; top: 58px; }
.research-clipping-ideas { right: 1%; top: 112px; }
.research-clipping-ideas b { color: var(--partner); }
.research-clipping-work { left: 12%; top: 217px; }
.research-clipping-work b { color: var(--ok); }
.research-panel[data-running] .research-browser { animation: research-page 8s var(--ease-out) both; }
.research-panel[data-running] .research-clipping-profile { animation: research-gather-left 8s var(--ease-in-out) both; }
.research-panel[data-running] .research-clipping-ideas { animation: research-gather-right 8s var(--ease-in-out) both; }
.research-panel[data-running] .research-clipping-work { animation: research-gather-bottom 8s var(--ease-in-out) both; }
.research-document i { transform-origin: left; }
.research-panel[data-running] .research-document i { animation: research-write 8s var(--ease-out) both; }
.research-panel[data-running] .research-document i:nth-child(3) { animation-delay: 50ms; }
.research-panel[data-running] .research-document i:nth-child(4) { animation-delay: 100ms; }
.research-panel[data-running] .research-document i:nth-child(5) { animation-delay: 150ms; }
.research-source[data-platform="website"] b { color: var(--accent); }
.research-source[data-platform="instagram"] b { color: var(--partner); }
.research-source[data-platform="linkedin"] b { color: var(--ok); }
@keyframes research-page {
  0% { transform: translateX(-50%) scale(.95); opacity: .55; }
  12%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
@keyframes research-gather-left {
  0%, 5% { transform: translate(-12px, 12px) rotate(-12deg); opacity: 0; }
  15%, 38% { transform: translate(0, 0) rotate(-7deg); opacity: 1; }
  64%, 100% { transform: translate(92px, 24px) rotate(0); opacity: 0; }
}
@keyframes research-gather-right {
  0%, 16% { transform: translate(12px, 8px) rotate(12deg); opacity: 0; }
  26%, 48% { transform: translate(0, 0) rotate(7deg); opacity: 1; }
  76%, 100% { transform: translate(-88px, -20px) rotate(0); opacity: 0; }
}
@keyframes research-gather-bottom {
  0%, 30% { transform: translate(-8px, 12px) rotate(-8deg); opacity: 0; }
  40%, 64% { transform: translate(0, 0) rotate(-5deg); opacity: 1; }
  88%, 100% { transform: translate(40px, -58px) rotate(0); opacity: 0; }
}
@keyframes research-write {
  0%, 25% { transform: scaleX(.03); opacity: .35; }
  80%, 100% { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .research-panel[data-running] .research-browser,
  .research-panel[data-running] .research-document i { animation: none; }
  .research-panel[data-running] .research-clipping { animation: research-breathe 2s linear 4 alternate; }
}
