/* Reserve a fixed slot outside the scrollable navigation history. */
#sidebar > .referral-promo {
  position: relative;
  flex: 0 0 auto;
  margin: 8px 10px 12px;
  border: 1px solid #d7e5df;
  border-radius: 12px;
  background: #edf5f0;
  color: #183d34;
  overflow: hidden;
}
.referral-promo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 13px 15px 14px;
  color: inherit;
  text-decoration: none;
}
.referral-promo-kicker {
  color: #648579;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .04em;
}
.referral-promo-link strong {
  max-width: 190px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  text-wrap: balance;
}
.referral-promo-cta {
  font-size: 11px;
  line-height: 1.4;
  color: #347c64;
}
.referral-promo-link:hover { background: #e5f0e9; }
.referral-promo-link:focus-visible {
  outline: 2px solid #438c73;
  outline-offset: -3px;
}

/* Full viewport Early Access overlay, shared by the app entry points. */
dialog.early-access-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f6f7f6;
  overflow: hidden;
}
.early-access-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.early-access-dialog-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid #dde5e2;
  border-radius: 50%;
  background: #fff;
  color: #093c40;
  font: 28px/1 sans-serif;
  cursor: pointer;
}
body:has(dialog.early-access-dialog[open]) { overflow: hidden; }
