.watch-historical-source { min-width: 0; display: grid; gap: 1rem; align-content: start; align-self: start; }
.watch-historical-source-heading, .watch-historical-source-dialog-heading, .watch-historical-source-search, .watch-historical-source-pagination { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.watch-historical-source-heading .eyebrow { margin-bottom: .2rem; }
.watch-historical-source-heading h2, .watch-historical-source-dialog-heading h2 { margin: 0; }
.watch-historical-source-heading p, .watch-historical-source-dialog-heading p { margin: .35rem 0 0; }
.watch-historical-source-empty { color: var(--muted); }
.watch-historical-source-empty p { margin: 0; }
.watch-reference-card { display: grid; gap: .75rem; min-width: 0; }
.watch-reference-card > :is(p, h3) { margin: 0; overflow-wrap: anywhere; }
.watch-reference-card > button { justify-self: start; }
.watch-reference-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem; margin: 0; }
.watch-reference-fields > div { min-width: 0; }
.watch-reference-fields dt { color: var(--muted); font-size: .8125rem; }
.watch-reference-fields dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.watch-reference-bibliography { padding-top: .75rem; border-top: 1px solid var(--line); min-width: 0; }
.watch-reference-bibliography h4 { margin: 0; font-size: .875rem; }
.watch-reference-bibliography ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .875rem; }
.watch-reference-bibliography li { padding-block: .15rem; overflow-wrap: anywhere; }
.watch-source-disclosure { min-width: 0; padding-top: .25rem; border-top: 1px solid var(--line); }
.watch-source-disclosure > summary { display: list-item; padding: .65rem 0; cursor: pointer; font-size: .875rem; font-weight: 600; }
.watch-source-disclosure-body { display: grid; gap: .8rem; min-width: 0; padding-top: .3rem; }
.watch-source-notes > summary { cursor: pointer; padding-block: .5rem; font-size: .875rem; color: var(--muted); }
.watch-source-notes > div { margin-top: .5rem; }
.watch-historical-source-preview { display: grid; grid-template-columns: minmax(15rem, .9fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.watch-historical-source-preview:not(:has(> .watch-historical-source-image)) { grid-template-columns: minmax(0, 1fr); }
.watch-historical-source-image { display: block; min-height: 0; aspect-ratio: .495 / 1; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.watch-historical-source-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.watch-historical-source-copy { min-width: 0; display: grid; gap: .55rem; }
.watch-historical-source-copy h3, .watch-historical-source-copy p { min-width: 0; margin: 0; overflow-wrap: break-word; word-break: normal; }
.watch-historical-source-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .55rem; color: var(--muted); font-size: .9rem; }
.watch-historical-source-caption { min-width: 0; font-size: .9375rem; line-height: 1.55; overflow-wrap: break-word; word-break: normal; }
.watch-historical-source-caption > small { display: block; margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.watch-historical-source-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.watch-historical-source-dialog { box-sizing: border-box; width: min(60rem, calc(100vw - 1.5rem)); min-width: 0; max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 1.5rem); padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); overflow: auto; }
.watch-historical-source-dialog *, .watch-historical-source-dialog input, .watch-historical-source-dialog button { box-sizing: border-box; min-width: 0; max-width: 100%; }
.watch-historical-source-dialog input { width: 100%; }
.watch-historical-source-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.watch-historical-source-search { align-items: end; margin: 1rem 0 .5rem; }
.watch-historical-source-search label { flex: 1 1 18rem; }
.watch-historical-source-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.watch-historical-source-result { min-width: 0; display: grid; gap: .5rem; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.watch-historical-source-result img { width: 100%; height: 11rem; object-fit: contain; border-radius: .4rem; background: #fff; }
.watch-historical-source-result strong, .watch-historical-source-result small { overflow-wrap: anywhere; }
.watch-historical-source-pagination { margin-top: 1rem; }
@media (min-width: 48rem) {
  .detail-grid:has(.watch-historical-source) > .watch-overview-stack { grid-column: 1 / -1; }
}
@media (max-width: 42rem) {
  .watch-historical-source-heading, .watch-historical-source-dialog-heading, .watch-historical-source-search { align-items: stretch; flex-direction: column; }
  .watch-historical-source-search label { flex: 0 1 auto; }
  .watch-historical-source-preview { grid-template-columns: minmax(0, 1fr); }
  .watch-historical-source-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-historical-source-dialog { padding: 1rem; }
}

.watch-historical-source-result-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

@media (max-width: 63.999rem) {
  .detail-grid:has(.watch-historical-source) > .watch-historical-source { grid-column: 1 / -1; }
}


