/* Keep expanded notes inside the viewport, including short desktop windows. */
body .venue-data-note[open] {
  top: max(8px, var(--toolbar-bottom, 130px)); right: 14px; bottom: 16px;
  width: min(430px, calc(100vw - 28px));
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  pointer-events: none;
}
.venue-data-note[open] > summary { align-self: flex-end; flex: 0 0 auto; pointer-events: auto; }
.venue-data-note[open] > .venue-data-note-body {
  position: static; width: 100%; min-height: 0;
  max-height: max(60px, calc(100dvh - var(--toolbar-bottom, 130px) - 76px));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  overflow-wrap: anywhere; pointer-events: auto; padding-bottom: 18px;
}
.contribute-email { max-width: 100%; overflow-wrap: anywhere; white-space: normal; min-height: 44px; }
@media (min-width: 761px) {
  #seat-card { max-height: calc(100dvh - var(--toolbar-bottom, 130px) - 16px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 760px) {
  body .venue-data-note[open] {
    right: 8px; bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px); flex-direction: column-reverse;
  }
}
.contact-dialog {
  position: fixed; inset: 0; margin: auto; width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  box-sizing: border-box; padding: 18px; background: var(--panel, #1a1c2c);
  color: var(--fg, #f4f4f4); border: 2px solid var(--border, #f4f4f4);
  font: inherit; line-height: 1.65; overflow-wrap: anywhere;
}
.contact-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.contact-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.contact-dialog h2 { color: var(--gold, #ffcd75); font-size: 1rem; }
.contact-dialog p { margin: 12px 0; font-size: .85rem; }
.contact-dialog button, .contact-dialog .contact-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 12px; border: 2px solid var(--border, #fff);
  background: var(--panel2, #141522); color: inherit; font: inherit; font-size: .85rem;
  line-height: 1.5; text-decoration: none; cursor: pointer; white-space: normal;
}
.contact-dialog .contact-close { flex: 0 0 auto; min-width: 44px; font: 22px sans-serif; }
.contact-dialog input {
  display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 10px;
  background: var(--panel2, #141522); color: inherit; border: 1px solid var(--muted, #94a0c8);
  font: 16px/1.5 sans-serif;
}
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.contact-dialog .contact-copy { background: var(--accent, #41a6f6); color: #0b0c14; }
.contact-dialog [hidden] { display: none; }
.contact-dialog :focus-visible { outline: 3px solid var(--gold, #ffcd75); outline-offset: 2px; }
.contact-status { min-height: 1.7em; color: var(--gold, #ffcd75); }
@media (max-width: 380px) { .contact-actions { grid-template-columns: 1fr; } }
