.study-nav {display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:5px;
  width:fit-content;max-width:100%;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.study-nav a {padding:8px 13px;color:var(--muted);font-size:14px;font-weight:650;line-height:1.35;border-radius:6px}
.study-nav a:hover,.study-nav a:focus-visible {color:var(--deep);background:var(--brand-wash);text-decoration:none}
.study-nav a[aria-current=page] {background:var(--brand-light);color:var(--deep)}
.study-form {display:flex;align-items:end;flex-wrap:wrap;gap:12px 16px;margin:4px 0 12px}
.study-form label,.study-plot>label {display:grid;gap:5px;min-width:0;max-width:100%;font-weight:650;color:var(--muted);font-size:13px}
.study-form input,.study-form select,.study-plot select {width:100%;min-width:0;max-width:min(100%,37rem);padding:9px 10px;
  border-radius:6px;border:1px solid var(--line);color:var(--ink);background:var(--card);font-size:14px;line-height:1.35}
.study-form small {font-weight:400}
.study-form .btn {min-height:40px}
.study-plot>label {width:min(100%,25rem);margin:4px 0 12px}
.study-plot .plot-host {min-height:340px}
.study-files {margin-top:24px}
.study-files .callout {margin:12px 0}
.study-coverage {grid-column:1/-1;min-width:0}
.study-coverage>.table-wrap {max-height:32rem;margin:14px 0}
.study-coverage th[scope=rowgroup] {vertical-align:top;min-width:9rem}
.study-coverage .study-count {text-align:right;font-variant-numeric:tabular-nums}
.study-coverage .study-caption {max-width:98ch;color:var(--muted);line-height:1.55;margin-top:10px}
.study-download {white-space:normal;text-align:center}
@media(max-width:650px) {
  .study-form {display:grid;grid-template-columns:minmax(0,1fr)}
  .study-form label,.study-form select,.study-form input {width:100%;max-width:100%}
  .study-form .btn {justify-self:start}
  .study-nav {width:100%}
  .study-nav a {font-size:12px;padding:7px 8px}
}
