#shortlist-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
}

#shortlist-dialog .dialog-top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--mortar);
}

#shortlist-dialog .close {
  flex: 0 0 44px;
  min-height: 44px;
}

.shortlist-content {
  padding: 20px 24px 24px;
}

.shortlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.shortlist-summary {
  margin: 0;
  font-weight: 600;
}

.shortlist-empty {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.shortlist-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shortlist-plot {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-inset);
  background: var(--paper);
}

.shortlist-plot h4 {
  margin: 0 0 5px;
  font-size: 18px;
}

.shortlist-plot p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.shortlist-plot-summary {
  color: var(--muted);
}

.shortlist-plot-area {
  padding-top: 4px;
}

.shortlist-actions, .shortlist-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shortlist-actions :is(a, button) {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
}

.shortlist-download {
  padding: 8px 12px;
  font-size: 12px;
}

.shortlist-footer {
  margin-top: 20px;
}

@media (max-width: 480px) {
  .shortlist-content { padding: 16px; }
  .shortlist-footer > button { justify-content: center; width: 100%; }
}
