.research-hero { padding-block: 38px 32px; }
.research-return { display: inline-block; margin-bottom: 10px; font-size: .88rem; }
.research-workspace { padding-block: 24px 56px; }
.research-workflows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 17px; }
.research-workflows button { min-height: 44px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; background: white; color: #23527c; cursor: pointer; }
.research-workflows button[aria-pressed="true"] { background: #eaf3fc; border-color: #7ca9ce; font-weight: 700; }
.research-workspace h2 { margin: 0; font-size: 1.23rem; font-weight: 500; }
.research-workspace h3 { margin: 15px 0 7px; font-size: 1rem; }
.research-body { padding: min(3vw, 28px); }
.research-description { margin: 0 0 15px; }
.research-fields { display: grid; grid-template-columns: 1fr; gap: 11px 14px; margin: 12px 0; }
.research-wide { grid-column: 1 / -1; }
.research-workspace label { display: block; color: #333; font-size: .88rem; }
.research-workspace :is(select, textarea, input:not([type="checkbox"])) {
    display: block; width: 100%; min-width: 0; min-height: 42px; padding: 6px 9px;
    border: 1px solid #ccc; border-radius: 4px; background: white; color: #333; font: inherit;
}
.research-workspace label > :is(select, input:not([type="checkbox"])) { margin-top: 5px; }
.research-workspace textarea { resize: vertical; margin-top: 5px; }
.research-workspace .research-check { display: flex; align-items: start; gap: 7px; margin-block: 12px; }
.research-note { margin: 7px 0 12px; color: #555; font-size: .87rem; }
.research-note p { margin: 0 0 7px; }
.research-note code { font-size: .88em; overflow-wrap: anywhere; }
.research-cohorts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); gap: 12px; }
.research-cohorts fieldset { min-width: 0; border: 1px solid #ddd; border-radius: 4px; }
.research-cohorts legend { font-weight: 700; overflow-wrap: anywhere; }
.research-cohorts label + label { margin-top: 7px; }
.research-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; }
.research-actions :is(button, a), .research-template { min-height: 44px; }
.research-status { margin: 0; color: #555; font-size: .9rem; }
.research-status[data-error="true"] { color: #a12620; }
.research-results { margin-top: 17px; }
.research-result-note { margin: 0 0 10px; color: #555; font-size: .9rem; }
.research-result-table { overflow: auto; margin: 10px 0 16px; border: 1px solid #ddd; border-radius: 4px; }
.research-result-table table { width: 100%; min-width: 530px; border-collapse: collapse; text-align: left; font-size: .88rem; }
.research-result-table :is(td, th) { padding: 8px 10px; border-bottom: 1px solid #e6e6e6; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.research-result-table thead th { background: #f5f5f5; }
.research-result-table tbody tr:nth-child(even) { background: #fafafa; }
.research-result-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.research-result-controls p { margin: 0; color: #555; font-size: .87rem; }
.research-effect-plot { width: min(100%, 680px); margin: 10px 0 18px; }
.research-effect-plot canvas { display: block; width: 100%; height: auto; border: 1px solid #ddd; border-radius: 4px; }
.research-effect-plot figcaption { margin-top: 6px; color: #555; font-size: .86rem; }
.research-workspace [hidden] { display: none; }
@media (min-width: 640px) { .research-fields { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .research-fields { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 639px) { .research-workflows { grid-template-columns: repeat(2, minmax(0,1fr)); } .research-body { padding: 13px; } }
