/* Shared Finder entry: progressive enhancement keeps the original link usable. */
.vh-finder-dialog {
  --finder-header-height: 64px;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(58rem, calc(100vw - 3rem));
  max-width: none;
  height: min(46rem, calc(100dvh - 3rem));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe8e2;
  border-radius: 24px;
  color: #153f40;
  background: #f5f8f6;
  box-shadow: 0 22px 70px #081f2445;
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.vh-finder-dialog:not([open]) { display: none; }
.vh-finder-dialog::backdrop { background: #0b292b94; }
.vh-finder-dialog * { box-sizing: border-box; }
.vh-finder-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--finder-header-height); padding: 8px 22px; border-bottom: 1px solid #dce7e2; background: #fff; }
.vh-finder-popup-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vh-finder-popup-brand img { width: 32px; height: 32px; flex: 0 0 32px; }
.vh-finder-popup-brand h2 { margin: 0; color: #153f40; font: 750 17px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.02em; }
.vh-finder-popup-brand p { margin: 3px 0 0; color: #617672; font-size: 12px; line-height: 1.4; }
.vh-finder-popup-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid #dce7e2; border-radius: 50%; color: #153f40; background: #fff; font: 28px/1 system-ui, sans-serif; cursor: pointer; }
.vh-finder-popup-close:hover { border-color: #196b57; background: #ecf6f0; }
.vh-finder-dialog :focus-visible { outline: 3px solid #e86336; outline-offset: 3px; }
.vh-finder-popup-stage { position: relative; height: calc(100% - var(--finder-header-height)); min-height: 0; }
.vh-finder-popup-frame { display: block; width: 100%; height: 100%; margin: 0; border: 0; background: #f5f8f6; }
.vh-finder-popup-frame[hidden], .vh-finder-popup-loading[hidden], .vh-finder-popup-error[hidden] { display: none !important; }
.vh-finder-popup-loading, .vh-finder-popup-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 32px; text-align: center; }
.vh-finder-popup-loading p, .vh-finder-popup-error p { max-width: 36em; margin: 0; }
.vh-finder-popup-spinner { width: 38px; height: 38px; border: 3px solid #dce7e2; border-top-color: #196b57; border-radius: 50%; animation: vh-finder-popup-spin .85s linear infinite; }
.vh-finder-popup-error strong { font-size: 22px; line-height: 1.3; }
.vh-finder-popup-error a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; color: #fff; background: #196b57; font-weight: 750; text-decoration: none; }
@keyframes vh-finder-popup-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .vh-finder-dialog { --finder-header-height: 58px; width: calc(100% - 16px); height: calc(100dvh - 16px); border-radius: 16px; }
  .vh-finder-popup-header { gap: 10px; padding: 6px 13px; }
  .vh-finder-popup-brand { gap: 9px; }
  .vh-finder-popup-brand h2 { font-size: 15px; }
  .vh-finder-popup-brand p { font-size: 11px; }
  .vh-finder-popup-brand img { width: 30px; height: 30px; flex-basis: 30px; }
}
@media (max-height: 450px) {
  .vh-finder-dialog { --finder-header-height: 54px; height: calc(100dvh - 16px); }
}
@media (prefers-reduced-motion: reduce) { .vh-finder-popup-spinner { animation: none; border-color: #196b57; } }
