.safety-tour-open {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.safety-tour-open svg {
  height: 18px;
  width: 18px;
}

.safety-dock .dock-tools { max-width: 560px; }

.safety-tour-prompt {
  align-items: center;
  background: rgba(255,250,243,.97);
  border: 1px solid rgba(37,21,40,.2);
  border-radius: 24px;
  bottom: 92px;
  box-shadow: 0 22px 70px rgba(20,8,22,.25);
  color: #251528;
  display: grid;
  gap: 14px;
  grid-template-columns: 86px minmax(0,1fr) auto;
  left: 50%;
  max-width: calc(100vw - 28px);
  padding: 13px 15px 13px 12px;
  position: fixed;
  transform: translate(-50%,16px);
  transition: opacity .2s ease, transform .25s ease;
  width: min(720px,calc(100vw - 28px));
  z-index: 145;
}

.safety-tour-prompt[hidden] { display: none; }
.safety-tour-prompt.is-visible { opacity: 1; transform: translate(-50%,0); }
.safety-tour-prompt:not(.is-visible) { opacity: 0; }
.safety-tour-prompt img { height: 72px; object-fit: contain; width: 82px; }
.safety-tour-prompt-copy strong { display: block; font-size: .95rem; line-height: 1.35; margin-bottom: 3px; }
.safety-tour-prompt-copy span { color: #6b5c66; display: block; font-size: .79rem; line-height: 1.5; }
.safety-tour-prompt-actions { align-items: center; display: flex; gap: 8px; }
.safety-tour-prompt button { border-radius: 999px; cursor: pointer; font: 700 .78rem/1.2 Manrope,system-ui,sans-serif; min-height: 42px; padding: 9px 14px; }
.safety-tour-prompt-start { background: #251528; border: 1px solid #251528; color: #fffaf3; }
.safety-tour-prompt-dismiss { background: transparent; border: 1px solid rgba(37,21,40,.25); color: #251528; }

.safety-tour-layer {
  background: rgba(25,13,27,.8);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity .2s ease;
  z-index: 1000;
}

.safety-tour-layer[hidden] { display: none; }
.safety-tour-layer.is-visible { opacity: 1; }
.safety-tour-layer.is-anchored { background: rgba(25,13,27,.72); }
.safety-tour-card {
  background: #fffaf3;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 28px;
  box-shadow: 0 28px 100px rgba(0,0,0,.38);
  color: #251528;
  display: grid;
  gap: 20px;
  grid-template-columns: 152px minmax(0,1fr);
  left: 50%;
  max-height: calc(100dvh - 128px);
  max-width: calc(100vw - 28px);
  overflow: auto;
  padding: 24px;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(710px,calc(100vw - 28px));
}

.safety-tour-layer.is-anchored .safety-tour-card { bottom: 91px; top: auto; transform: translateX(-50%); }
.safety-tour-art { align-items: center; background: #f3e7da; border-radius: 21px; display: flex; justify-content: center; min-height: 190px; overflow: hidden; }
.safety-tour-art img { height: 168px; object-fit: contain; width: 168px; }
.safety-tour-main { min-width: 0; }
.safety-tour-kicker { color: #8a574b; font-size: .69rem; font-weight: 800; letter-spacing: .13em; margin: 0 0 7px; text-transform: uppercase; }
.safety-tour-main h2 { font-family: Fraunces,Georgia,serif; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 350; letter-spacing: -.035em; line-height: 1.08; margin: 0 48px 10px 0; }
.safety-tour-main > p:not(.safety-tour-kicker) { color: #62555f; font-size: .94rem; line-height: 1.65; margin: 0 0 14px; }
.safety-tour-note { background: #f2e5dc; border-left: 4px solid #e97858; border-radius: 0 14px 14px 0; color: #3f303a; font-size: .8rem; line-height: 1.55; margin: 0 0 15px; padding: 11px 13px; }
.safety-tour-close { align-items: center; background: transparent; border: 1px solid rgba(37,21,40,.2); border-radius: 50%; color: #251528; cursor: pointer; display: flex; font-size: 1.55rem; height: 42px; justify-content: center; position: absolute; right: 20px; top: 20px; width: 42px; }
.safety-tour-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.safety-tour-actions button { border-radius: 999px; cursor: pointer; font: 750 .78rem/1.2 Manrope,system-ui,sans-serif; min-height: 43px; padding: 10px 15px; }
.safety-tour-next { background: #251528; border: 1px solid #251528; color: #fffaf3; }
.safety-tour-back { background: transparent; border: 1px solid rgba(37,21,40,.25); color: #251528; }
.safety-tour-more { background: #e97858; border: 1px solid #e97858; color: #251528; }
.safety-tour-progress { align-items: center; display: flex; gap: 7px; margin-top: 18px; }
.safety-tour-progress span { background: #d8cbd2; border-radius: 999px; height: 6px; width: 22px; }
.safety-tour-progress span.active { background: #e97858; width: 34px; }
.safety-tour-browser { border-top: 1px solid #ded2d8; margin-top: 12px; padding-top: 12px; }
.safety-tour-browser strong { display: block; font-size: .82rem; margin-bottom: 4px; }
.safety-tour-browser p { color: #62555f; font-size: .78rem; line-height: 1.55; margin: 0; }
.safety-tour-browser details { border-top: 1px solid #e5dce1; margin-top: 9px; }
.safety-tour-browser summary { cursor: pointer; font-size: .76rem; font-weight: 750; min-height: 42px; padding: 10px 0 4px; }
.safety-tour-browser details p + p { margin-top: 7px; }

body.safety-tour-active { overflow: hidden !important; }
body.safety-tour-active .safety-dock,
body.safety-tour-active .safety-bar { pointer-events: none; }
body.safety-tour-active .safety-dock #quickExit,
body.safety-tour-active .safety-bar [data-exit] { pointer-events: auto; }
body.safety-tour-active .safety-dock.safety-tour-elevated,
body.safety-tour-active .safety-bar.safety-tour-elevated { box-shadow: 0 0 0 5px #fffaf3,0 22px 72px rgba(0,0,0,.42); z-index: 1001; }
body.safety-tour-active .safety-dock.safety-tour-elevated::after,
body.safety-tour-active .safety-bar.safety-tour-elevated::after { border: 2px solid #e97858; border-radius: inherit; content: ""; inset: -9px; pointer-events: none; position: absolute; }

.menu-links .safety-tour-menu-link { align-items: center; display: flex; gap: 12px; }
.menu-links .safety-tour-menu-link svg { height: .72em; width: .72em; }

@media(max-width:700px) {
  .safety-dock .dock-tools { max-width: 340px; }
  .safety-tour-prompt { bottom: 75px; gap: 10px; grid-template-columns: 58px minmax(0,1fr); padding: 11px; }
  .safety-tour-prompt img { height: 52px; width: 56px; }
  .safety-tour-prompt-copy strong { font-size: .84rem; }
  .safety-tour-prompt-copy span { font-size: .72rem; }
  .safety-tour-prompt-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .safety-tour-card { gap: 8px; grid-template-columns: 1fr; max-height: calc(100dvh - 28px); padding: 20px; }
  .safety-tour-layer.is-anchored .safety-tour-card { bottom: 72px; max-height: calc(100dvh - 155px); }
  .safety-tour-art { min-height: 118px; }
  .safety-tour-art img { height: 132px; width: 132px; }
  .safety-tour-main h2 { font-size: 1.75rem; margin-right: 42px; }
  .safety-tour-main > p:not(.safety-tour-kicker) { font-size: .86rem; line-height: 1.55; }
  .safety-tour-close { height: 38px; right: 14px; top: 14px; width: 38px; }
  .safety-tour-actions { margin-top: 12px; }
  .safety-tour-browser { margin-top: 8px; }
}

@media(max-width:390px) {
  .safety-tour-open .safety-tour-label { display: none; }
  .safety-tour-open { padding-inline: 10px !important; }
  .safety-tour-card { padding: 17px; }
  .safety-tour-layer.is-anchored .safety-tour-card { max-height: calc(100dvh - 145px); }
  .safety-tour-art { min-height: 100px; }
  .safety-tour-art img { height: 112px; width: 112px; }
}

@media(prefers-reduced-motion:reduce) {
  .safety-tour-layer,
  .safety-tour-prompt { transition: none; }
}

@media print {
  .safety-tour-layer,
  .safety-tour-prompt,
  .safety-tour-open { display: none !important; }
}
