.beagle-tour-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #a33716;
  font: 650 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.beagle-tour-link:hover { color: #79260e; }
.beagle-tour-link > span { font-size: 11px; }
.beagle-tour {
  box-sizing: border-box;
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #e6e1da;
  border-radius: 20px;
  background: #fffdf9;
  color: #20242a;
  box-shadow: 0 24px 80px #23170d45;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.beagle-tour::backdrop { background: rgb(25 22 19 / 65%); }
.beagle-tour-heading, .beagle-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}
.beagle-tour .beagle-tour-heading h2 {
  margin: 0;
  font: 750 21px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.3px;
}
.beagle-tour-heading form { margin: 0; padding: 0; flex-shrink: 0; }
.beagle-tour .beagle-tour-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e6e1da;
  border-radius: 999px;
  background: #fff;
  color: #555b65;
  box-shadow: none;
  font: 650 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  transform: none;
}
.beagle-tour .beagle-tour-close:hover { background: #fff0e9; color: #a33716; transform: none; }
.beagle-tour-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #f7f5ef; }
.beagle-tour-actions { flex-wrap: wrap; color: #646974; font-size: 14px; }
.beagle-tour-actions a, .beagle-tour-error a { color: #a33716; font-weight: 700; text-underline-offset: 3px; }
.beagle-tour-error { margin: 16px 22px; }
.beagle-tour-error[hidden] { display: none; }
.beagle-tour-link:focus-visible, .beagle-tour :focus-visible {
  outline: 3px solid #bb3f18;
  outline-offset: 3px;
}
html.beagle-tour-open { overflow: hidden; }
@media (max-width: 600px) {
  .beagle-tour { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .beagle-tour-heading, .beagle-tour-actions { gap: 10px; padding: 14px; }
  .beagle-tour .beagle-tour-heading h2 { font-size: 17px; }
  .beagle-tour-actions { flex-direction: column; align-items: flex-start; }
}
