.has-research-analysis > :not(.research-analysis-panel) { display: none; }
.research-analysis-panel { min-width: 0; }
.research-form,.research-output {padding:clamp(.85rem,2.4vw,1.6rem);border:1px solid #e0d7e8;border-radius:12px;background:#fff;}
.research-form {display:flex;flex-wrap:wrap;align-items:flex-end;gap:1rem;}
.research-form label {display:grid;gap:.35rem;min-width:10rem;max-width:100%;font-weight:600;}
.research-form select,.research-form input,.research-form textarea {padding:.6rem .7rem;max-width:100%;width:100%;border:1px solid #c7bad3;border-radius:6px;background:#fff;color:#272037;font:inherit;}
.research-form textarea {min-width:min(100%,24rem);min-height:4.5rem;}
.research-form[hidden],.research-output[hidden] {display:none;}
.research-actions {display:flex;flex-wrap:wrap;gap:.5rem;margin:.7rem 0;}
.research-figure {overflow:auto;background:#fff;}
.research-figure svg {display:block;margin:auto;min-width:min(100%,520px);max-width:100%;height:auto;}
.research-details {margin-top:1.2rem;border-top:1px solid #eadff0;padding-top:.75rem;}
.research-details summary {font-weight:700;cursor:pointer;}
.research-details dl {display:grid;grid-template-columns:minmax(6rem,12rem) minmax(0,1fr);gap:.4rem .7rem;font-size:.9rem;}
.research-details dt {color:#574566;}
.research-details dd {margin:0;overflow-wrap:anywhere;}
.research-analysis-panel #analysis-groups h3 {font-size:1rem;margin:.7rem 0;}
.research-analysis-panel #analysis-links {display:flex;flex-wrap:wrap;gap:1rem;margin:.6rem 0;}
.research-form label[hidden] { display: none; }
@media (max-width: 700px) {
  .research-form label { flex: 1 1 12rem; min-width: 0; }
}
