.site-beta-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#EC221F;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:9px;
  font-weight:850;
  letter-spacing:.12em;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.logo:has(.site-beta-badge),
.mobile-header-logo:has(.site-beta-badge),
.legal-header .brand:has(.site-beta-badge){gap:7px}
.mobile-header-logo .site-beta-badge{font-size:8px}

.beta-notice-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,15,15,.45);
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease,visibility .18s ease;
}
.beta-notice-overlay.open{opacity:1;visibility:visible}
.beta-notice-dialog{
  width:min(440px,100%);
  padding:28px;
  border:1px solid #e8e8e5;
  border-radius:22px;
  background:#fff;
  color:#111;
  box-shadow:0 28px 80px rgba(0,0,0,.2);
  transform:translateY(8px) scale(.985);
  transition:transform .22s cubic-bezier(.2,.75,.2,1);
}
.beta-notice-overlay.open .beta-notice-dialog{transform:none}
.beta-notice-kicker{
  margin:0 0 13px;
  color:#EC221F;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  line-height:1;
}
.beta-notice-dialog h2{
  margin:0 0 12px;
  color:#111;
  font-size:24px;
  font-weight:850;
  letter-spacing:-.035em;
  line-height:1.2;
}
.beta-notice-dialog p{
  margin:0;
  color:#555;
  font-size:14px;
  font-weight:500;
  line-height:1.75;
  word-break:keep-all;
}
.beta-notice-dialog a{color:#111;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.beta-notice-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px}
.beta-notice-about{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 16px;
  border:1.5px solid #d4d4d0;
  border-radius:999px;
  background:#fff;
  color:#2a2a2a!important;
  font:800 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-decoration:none!important;
  transition:transform .15s,border-color .15s,box-shadow .15s;
}
.beta-notice-about:hover{border-color:#aaa;transform:translateY(-1px);box-shadow:0 4px 10px rgba(0,0,0,.1)}
.beta-notice-about:active{transform:translateY(0) scale(.98);box-shadow:none}
.beta-notice-confirm{
  min-width:78px;
  height:34px;
  padding:0 16px;
  border:0;
  border-radius:999px;
  background:#111;
  color:#fff;
  font:800 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 2px 8px rgba(0,0,0,.16);
  cursor:pointer;
  transition:transform .15s,box-shadow .15s,filter .15s;
}
.beta-notice-confirm:hover{filter:brightness(.92);transform:translateY(-1px);box-shadow:0 5px 14px rgba(0,0,0,.24)}
.beta-notice-confirm:active{transform:translateY(0) scale(.98);box-shadow:0 2px 6px rgba(0,0,0,.16)}

html[data-theme="dark"] .beta-notice-dialog{border-color:#363636;background:#262626;color:#f5f5f5}
html[data-theme="dark"] .beta-notice-dialog h2,
html[data-theme="dark"] .beta-notice-dialog a{color:#f5f5f5}
html[data-theme="dark"] .beta-notice-dialog p{color:#d2d2d2}
html[data-theme="dark"] .beta-notice-about{border-color:#4a4a4a;background:#1a1a1a;color:#f5f5f5!important}
html[data-theme="dark"] .beta-notice-confirm{color:#fff}

@media(max-width:760px){
  .beta-notice-overlay{align-items:flex-end;padding:10px}
  .beta-notice-dialog{padding:24px 22px 20px;border-radius:22px}
  .beta-notice-dialog h2{font-size:21px}
  .beta-notice-dialog p{font-size:13px;line-height:1.7}
  .beta-notice-actions{margin-top:20px}
  .beta-notice-about{flex:1;height:40px}
  .beta-notice-confirm{width:auto;min-width:84px;height:40px}
}

@media(prefers-reduced-motion:reduce){
  .beta-notice-overlay,.beta-notice-dialog{transition:none}
}
