.benefit-guide-dialog {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #bfd2c6;
  border-radius: 20px;
  color: #233f35;
  background: #f8faf6;
  box-shadow: 0 24px 100px #0e2f3459;
  overflow: auto;
  overscroll-behavior: contain;
}
.benefit-guide-dialog::backdrop { background: #112d36b8; backdrop-filter: blur(5px); }
.benefit-guide-panel { padding: 22px; }
.benefit-guide-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.benefit-guide-heading p { margin: 0 0 5px; color: #567467; font: 600 12px/1.4 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.benefit-guide-heading h2 { margin: 0; color: #233f35; font: 400 clamp(24px, 3vw, 34px)/1.15 'DM Serif Display', Georgia, serif; letter-spacing: -.5px; }
.benefit-guide-close { display: inline-flex; flex: 0 0 46px; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid #cbd9cf; border-radius: 50%; background: #fff; color: #345f4b; cursor: pointer; }
.benefit-guide-close:hover { background: #e8f0e9; }
.benefit-guide-close:focus-visible, .benefit-guide-link:focus-visible { outline: 3px solid #397b60; outline-offset: 4px; }
.benefit-guide-video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 170px); aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; background: #edf3ed; }
.benefit-guide-error { margin: 14px 0 0; color: #345f4b; font-size: 16px; line-height: 1.5; }
.benefit-guide-error[hidden] { display: none; }
.benefit-guide-error a { color: inherit; font-weight: 700; text-decoration: underline; }
@media (max-width: 600px) {
  .benefit-guide-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .benefit-guide-panel { padding: 14px; }
  .benefit-guide-heading { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  .benefit-guide-heading h2 { font-size: 25px; line-height: 1.2; }
  .benefit-guide-heading p { font-size: 11px; letter-spacing: .08em; }
  .benefit-guide-video { border-radius: 8px; max-height: calc(100dvh - 175px); }
}
