[data-study-series] {
  min-width: 0;
}
.pg-page .study-series-trigger,
.ped-page .study-series-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  padding: 10px 12px;
  min-height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.study-series-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.study-series-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 40px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px #0003;
  font-size: 14px;
  overflow: hidden;
}
.study-series-dialog[open] {
  display: flex;
  flex-direction: column;
}
.study-series-dialog::backdrop {
  background: #11182766;
}
.study-series-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
  gap: 16px;
}
.study-series-heading h2 {
  margin: 0;
  font-size: 17px;
}
.study-series-search {
  display: grid;
  gap: 8px;
  padding: 0 20px;
  font-size: 12px;
}
.study-series-search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}
.study-series-status {
  margin: 0;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 12px;
}
.study-series-results {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 12px;
  min-height: 0;
}
.study-series-group h3 {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 10px 6px;
  letter-spacing: 0.04em;
}
.study-series-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
  padding: 10px;
  border-radius: 7px;
  text-decoration: none;
}
.study-series-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.study-series-copy strong {
  font-weight: 500;
  font-size: 14px;
}
.study-series-copy small,
.study-series-count {
  font-size: 11px;
  color: var(--muted);
}
.study-series-count {
  flex-shrink: 0;
}
.study-series-copy .study-series-current {
  color: var(--blue-dark);
}
.study-series-option[aria-current],
.study-series-option:hover {
  background: var(--soft);
  border-color: var(--line);
}
.study-series-option:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  background: var(--soft);
}
.study-series-context {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.ped-header [data-study-series] {
  width: min(250px, 100%);
}
@media (max-width: 760px) {
  .ped-header {
    flex-wrap: wrap;
  }
  .ped-header nav {
    gap: 12px;
  }
  .study-series-dialog {
    max-height: calc(100dvh - 24px);
  }
  .study-series-option {
    gap: 8px;
  }
  .ped-header [data-study-series] {
    width: 100%;
  }
}
