body { min-height:100dvh; background:radial-gradient(ellipse at top,#143b3b88,transparent 65%),var(--bg); }
.public-tour-shell { max-width:1024px; margin:auto; padding:32px; }
.public-tour-brand { display:inline-block; margin-bottom:28px; color:var(--text); font-size:26px; font-weight:800; letter-spacing:.08em; text-decoration:none; }
.public-tour-shell .tour-modal { width:100%; max-height:none; padding:32px; border:1px solid var(--line); }
.public-tour-shell h2 { margin-top:0; }
@media(max-width:680px) { .public-tour-shell{padding:20px 12px}.public-tour-shell .tour-modal{padding:24px 18px} }

.public-tour-shell .tour-controls [data-tour="finish"],
.public-tour-shell .tour-controls [data-tour="next"],
.public-tour-shell .tour-controls [data-tour="explore"] {
  background: #6de0c6;
  border-color: #6de0c6;
  color: #082821;
  box-shadow: 0 4px 16px #34c8af18;
}
.public-tour-shell .tour-controls [data-tour="skip"] {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}
.public-tour-shell .tour-controls [data-tour="back"] {
  background: var(--panel2);
  border-color: var(--line);
  color: var(--text);
}
.public-tour-shell .tour-controls .button {
  transition: background-color 120ms ease, transform 120ms ease;
}
.public-tour-shell .tour-controls [data-tour="finish"]:hover,
.public-tour-shell .tour-controls [data-tour="next"]:hover,
.public-tour-shell .tour-controls [data-tour="explore"]:hover {
  background: #a0f0dd;
  border-color: #a0f0dd;
}
.public-tour-shell .tour-controls [data-tour="skip"]:hover,
.public-tour-shell .tour-controls [data-tour="back"]:hover { background: var(--line); }
.public-tour-shell .tour-controls .button:active { transform: translateY(2px); }
.public-tour-shell .tour-controls .button:focus-visible { outline: 3px solid #a0f0dd; outline-offset: 3px; }
@media(prefers-reduced-motion:reduce) {
 .public-tour-shell .tour-controls .button { transition: none; }
 .public-tour-shell .tour-controls .button:active { transform: none; }
}

.public-tour-shell .tour-controls [data-tour="next"],
.public-tour-shell .tour-controls [data-tour="finish"] {
 background:var(--tour-color);
 border-color:var(--tour-color);
 color:#101820;
}
.public-tour-shell .tour-controls [data-tour="next"]:hover,
.public-tour-shell .tour-controls [data-tour="finish"]:hover {
 background:color-mix(in srgb,var(--tour-color) 80%,white);
 border-color:color-mix(in srgb,var(--tour-color) 80%,white);
}

@media(max-width:680px) {
 .public-tour-shell { padding:18px 12px calc(18px + env(safe-area-inset-bottom)); }
 .public-tour-brand { margin-bottom:16px; font-size:22px; }
 .public-tour-shell .tour-modal { padding:22px 16px; border-radius:18px; }
 .public-tour-shell .tour-controls [data-tour="explore"] {
   grid-column:1 / -1;
 }
}

.public-preview-entry{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 18px}.public-preview-entry a{color:var(--green);text-decoration:underline;text-underline-offset:3px}

@media (max-width:680px) and (min-height:540px) {
 .public-tour-shell {
   height:100svh;
   min-height:0;
   display:flex;
   flex-direction:column;
   overflow:hidden;
 }
 .public-tour-brand,.public-preview-entry { flex-shrink:0; }
 .public-tour-shell .tour-modal {
   display:flex;
   flex-direction:column;
   flex:1;
   min-height:0;
   overflow:hidden;
 }
 .public-tour-shell .tour-controls [data-tour="explore"] { grid-column:auto; }
}
@media (hover:none), (pointer:coarse) {
 .public-tour-shell .tour-controls .button,
 .public-tour-shell .tour-controls .button:hover,
 .public-tour-shell .tour-controls .button:active {
   transform:none;
   transition:none;
   opacity:1;
   visibility:visible;
 }
 .public-tour-shell .tour-controls [data-tour="next"],
 .public-tour-shell .tour-controls [data-tour="finish"],
 .public-tour-shell .tour-controls [data-tour="next"]:hover,
 .public-tour-shell .tour-controls [data-tour="finish"]:hover {
   background:#6de0c6;
   background:var(--tour-color,#6de0c6);
   border-color:var(--tour-color,#6de0c6);
   color:#101820;
 }
}

/* Use the same complete brand lockup as the account pages. */
.public-tour-brand { display:inline-flex; flex-direction:column; align-items:center; width:180px; max-width:100%; line-height:1; }
.public-tour-brand svg { display:block; width:100%; height:auto; }
.public-tour-brand .brand-tagline { margin-top:4px; fill:#8eaaa8; font:700 18px system-ui,sans-serif; letter-spacing:0; }

@media (max-width:680px) {
 .public-tour-shell .tour-modal[data-tour-step="0"] .tour-controls [data-tour="next"] {
   grid-column:1 / -1;
 }
}

@media (max-width:680px) {
 .public-tour-shell .tour-modal .tour-controls [data-tour="explore"] { grid-column:auto; }
 .public-tour-shell .tour-modal .tour-controls [data-tour="skip"] {
   background:var(--panel2);
   border-color:var(--line);
   color:var(--text);
 }
}
