#pcb-dialog.pcb-dialog {
  width: min(1380px, calc(100vw - 32px));
  max-width: none;
  height: min(900px, calc(100dvh - 32px));
  max-height: none;
  margin: auto;
  padding: 0;
  color: #24362c;
  background: #f7f6ef;
  border: 1px solid #354d3e;
  box-shadow: 0 22px 80px rgb(17 30 20 / 45%);
}

#pcb-dialog.pcb-dialog::backdrop { background: rgb(25 36 29 / 72%); }
.pcb-dialog-shell { display: flex; min-height: 100%; flex-direction: column; }
.pcb-dialog-head { display: flex; gap: 24px; justify-content: space-between; padding: 25px 30px 20px; border-bottom: 1px solid #cdd3c9; background: #fbfaf5; }
.pcb-dialog h2, .pcb-dialog h3, .pcb-dialog h4, .pcb-dialog p { margin-top: 0; }
.pcb-dialog h2 { margin-bottom: 7px; font-size: clamp(1.5rem, 2.4vw, 2.35rem); line-height: 1; letter-spacing: -.04em; }
.pcb-dialog h3 { margin-bottom: 14px; font-size: 1.3rem; line-height: 1.1; }
.pcb-dialog h4 { margin: 18px 0 7px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.pcb-kicker { margin-bottom: 7px !important; color: #52735e; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.pcb-dek { max-width: 760px; margin-bottom: 0 !important; color: #546158; font-size: .86rem; line-height: 1.45; }
.pcb-close { width: 38px; height: 38px; flex: 0 0 auto; color: #fff; background: #264b38; border: 0; border-radius: 50%; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.pcb-close:hover, .pcb-close:focus-visible { background: #123122; outline: 3px solid #d7a642; outline-offset: 2px; }
.pcb-dialog-grid { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(340px, 1.25fr) minmax(250px, .72fr) minmax(290px, .85fr); }
.pcb-photo-panel, .pcb-index-panel, .pcb-detail-panel { min-width: 0; padding: 21px; overflow: auto; }
.pcb-photo-panel { background: #202e26; }
.pcb-index-panel { border-right: 1px solid #d4d9d1; border-left: 1px solid #d4d9d1; background: #edf0e9; }
.pcb-detail-panel { background: #fbfaf5; }
.pcb-photo-stage { position: relative; overflow: hidden; background: #101713; aspect-ratio: 778 / 1038; }
.pcb-photo-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pcb-photo-hotspots { position: absolute; inset: 0; pointer-events: none; }
.pcb-hotspot, .pcb-region { position: absolute; box-sizing: border-box; border: 2px solid rgb(228 178 61 / 85%); background: rgb(229 179 61 / 16%); transition: background .12s ease, box-shadow .12s ease; }
.pcb-hotspot b { position: absolute; top: 50%; left: 100%; padding: 2px 4px; color: #202e26; background: #e4b23d; font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; transform: translate(3px, -50%); white-space: nowrap; }
.pcb-hotspot.is-selected, .pcb-region.is-selected { z-index: 2; border-width: 3px; border-color: #fff4bf; background: rgb(231 189 66 / 42%); box-shadow: 0 0 0 3px rgb(25 58 39 / 83%), 0 0 22px rgb(255 239 153 / 85%); }
.pcb-region b { position: absolute; bottom: calc(100% + 4px); left: 0; max-width: 210px; padding: 4px 5px; color: #203127; background: #fff4bf; font: 700 .63rem/1.22 system-ui, sans-serif; }
.pcb-photo-credit { margin: 12px 0 0; color: #dde9dc; font-size: .75rem; line-height: 1.35; }
.pcb-filter-label { display: block; margin-bottom: 7px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
#pcb-filter { box-sizing: border-box; width: 100%; padding: 10px 11px; color: #23342a; background: #fffefa; border: 1px solid #aeb9ad; border-radius: 2px; font: inherit; }
#pcb-filter:focus-visible, .pcb-connector:focus-visible, .pcb-navigate:focus-visible { outline: 3px solid #d7a642; outline-offset: 2px; }
.pcb-count { margin: 12px 0 9px !important; color: #5e6c62; font: .7rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.pcb-connector-list { display: grid; gap: 6px; }
.pcb-connector { display: grid; width: 100%; gap: 3px; padding: 10px; color: #293b30; text-align: left; background: #f9faf5; border: 1px solid #bdc9bc; cursor: pointer; }
.pcb-connector:hover, .pcb-connector.is-selected { color: #fff; background: #315b43; border-color: #315b43; }
.pcb-connector-id { color: #906b13; font: 800 .75rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.pcb-connector.is-selected .pcb-connector-id { color: #ffd96b; }
.pcb-connector small { color: inherit; opacity: .78; font-size: .69rem; }
.pcb-empty { color: #58665b; font-size: .85rem; }
.pcb-confidence { display: grid; gap: 8px; margin: 0 0 16px; }
.pcb-confidence div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #d8ddd5; }
.pcb-confidence dt { color: #546258; font-size: .72rem; }
.pcb-confidence dd { margin: 0; font-size: .72rem; font-weight: 800; }
.pcb-confidence-confirmed { color: #17633b; }
.pcb-confidence-likely { color: #986211; }
.pcb-confidence-unverified { color: #80514f; }
.pcb-detail-panel p, .pcb-detail-panel li { font-size: .87rem; line-height: 1.46; }
.pcb-detail-panel ul { padding-left: 19px; }
.pcb-location-note { padding: 10px; background: #f0f1e9; border-left: 3px solid #708c74; }
.pcb-source-line { display: flex; flex-wrap: wrap; gap: 7px; }
.pcb-citation { color: #315b43; font: .69rem ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.pcb-navigate { padding: 10px 12px; color: #fff; background: #244c37; border: 0; border-radius: 2px; font: 700 .8rem system-ui, sans-serif; cursor: pointer; }
.pcb-navigate:hover { background: #153c29; }
.pcb-no-destination { padding: 10px; color: #693c39; background: #f7ece8; border-left: 3px solid #9c5a4f; }
.pcb-dialog-foot { padding: 10px 30px; color: #4f5f53; background: #e9eee7; border-top: 1px solid #cdd3c9; font-size: .72rem; line-height: 1.35; }

@media (max-width: 1000px) {
  #pcb-dialog.pcb-dialog { width: min(760px, calc(100vw - 20px)); height: min(930px, calc(100dvh - 20px)); }
  .pcb-dialog-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
  .pcb-photo-panel { grid-column: 1 / -1; max-height: 54dvh; }
  .pcb-photo-stage { max-width: min(100%, 500px); margin: auto; }
}

@media (max-width: 640px) {
  #pcb-dialog.pcb-dialog { width: 100vw; height: 100dvh; border: 0; }
  .pcb-dialog-head { padding: 18px; }
  .pcb-dialog-grid { display: block; overflow: auto; }
  .pcb-photo-panel, .pcb-index-panel, .pcb-detail-panel { overflow: visible; padding: 16px; }
  .pcb-photo-panel { max-height: none; }
  .pcb-index-panel { border: 0; border-top: 1px solid #d4d9d1; border-bottom: 1px solid #d4d9d1; }
  .pcb-dialog-foot { padding: 11px 16px; }
}
