/* V2-only resources remain inside the result experience. */
.v2-resource-scope .v2-resource-dialog {
  width: min(calc(100% - 24px), 460px); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
  inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  margin: auto; padding: 20px; border: 0; border-radius: 22px;
  background: #fff; color: #002664; overflow: auto; overscroll-behavior: contain;
}
.v2-resource-scope .v2-resource-dialog::backdrop { background: rgb(0 21 56 / .55); }
.v2-resource-scope .v2-resource-dialog .v2-share-head { margin-bottom: 12px; }
.v2-resource-scope .v2-resource-dialog .v2-share-head h2 { margin: 0; font-size: 16px; line-height: 24px; }
.v2-resource-scope .v2-resource-dialog button { cursor: pointer; }
.v2-resource-scope .v2-resource-dialog :focus-visible { outline: 3px solid #00a1d1; outline-offset: 3px; }
.v2-resource-scope .v2-resource-dialog .v2-share-head button { min-width: 44px; min-height: 44px; border-radius: 12px; }
.v2-resource-scope .v2-reward-panel { display: grid; gap: 12px; }
.v2-resource-scope .v2-resource-kicker { margin: 0; color: #526078; font-size: 13px; line-height: 20px; }
.v2-resource-scope .v2-reward-panel h2 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 750; }
.v2-resource-scope .v2-guide-summary { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; background: #eaf6fb; }
.v2-resource-scope .v2-guide-summary > img { display: block; width: 72px; height: 128px; object-fit: contain; border-radius: 4px; }
.v2-resource-scope .v2-guide-summary p { margin: 0; font-size: 15px; line-height: 24px; }
.v2-resource-scope .v2-guide-preview { min-height: 44px; margin-top: 6px; padding: 0; border: 0; background: transparent; color: #002664; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.v2-resource-scope .v2-resource-download, .v2-resource-scope .v2-resource-booking { display: grid; grid-template-columns: 20px minmax(0,1fr) 20px; align-items: center; min-height: 52px; padding: 0 14px; border: 1px solid #ffca00; border-radius: 14px; background: #ffca00; color: #002664; font-size: 16px; font-weight: 650; line-height: 24px; text-align: center; text-decoration: none; }
.v2-resource-scope .v2-resource-download { display: flex; justify-content: center; gap: 16px; }
.v2-resource-scope .v2-resource-booking::before { content: ''; }
.v2-resource-scope .v2-resource-booking { border-color: #002664; background: #002664; color: #fff; }
.v2-resource-scope .v2-resource-format { margin: 0; color: #526078; font-size: 12px; line-height: 18px; text-align: center; }
.v2-resource-scope .v2-video-extension { display: flex; align-items: center; gap: 12px; margin: 0; padding-top: 2px; color: #526078; font-size: 12px; line-height: 18px; }
.v2-resource-scope .v2-video-extension a { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 44px; color: #002664; font-size: 14px; text-underline-offset: 3px; }
.v2-resource-scope .v2-video-extension small { color: #526078; font-size: 11px; }
.v2-resource-scope .v2-resource-next { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid #d7e2ed; }
.v2-resource-scope .v2-resource-next p { margin: 0; font-size: 14px; line-height: 20px; }
.v2-resource-scope .v2-resource-next > small { color: #526078; font-size: 11px; line-height: 16px; text-align: center; }
.v2-resource-scope .v2-guide-dialog { width: min(calc(100% - 16px), 760px); padding: 16px; }
.v2-resource-scope .v2-guide-preview-head { position: sticky; top: -16px; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 6px 12px; background: #fff; }
.v2-resource-scope .v2-guide-preview-head h2 { margin: 0; font-size: 16px; line-height: 24px; }
.v2-resource-scope .v2-guide-preview-head button { flex-shrink: 0; min-height: 44px; padding: 0 12px; border: 1px solid #d7e2ed; border-radius: 10px; background: #eaf6fb; color: #002664; font-size: 14px; }
.v2-resource-scope .v2-guide-image img { display: block; width: 100%; height: auto; }
.v2-resource-scope .v2-guide-image-note { margin: 12px 0 0; color: #526078; font-size: 12px; line-height: 20px; text-align: center; }
@media (max-height: 700px) {
  .v2-resource-scope .v2-resource-dialog { padding: 16px; }
  .v2-resource-scope .v2-guide-summary { padding: 10px 12px; grid-template-columns: 58px 1fr; gap: 12px; }
  .v2-resource-scope .v2-guide-summary > img { width: 58px; height: 103px; }
}
