.tour-help-icon { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; }
#tour-layer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent;
  color: var(--ink); pointer-events: none; z-index: 1000;
}
#tour-layer::backdrop { background: transparent; pointer-events: none; }
#tour-spotlight {
  position: absolute; border: 3px solid #258b87; border-radius: 12px;
  box-shadow: 0 0 0 9999px #132d3d64, 0 0 0 5px #ffffffa6;
  pointer-events: none;
}
#tour-card {
  position: absolute; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 18px; border: 1px solid #d5e5df; border-radius: 16px; background: #fffef5;
  box-shadow: 0 12px 48px #102c3e40; pointer-events: auto; overflow: auto;
}
.tour-topline, .tour-footer, .tour-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#tour-progress { color: #236e74; font-size: .75rem; font-weight: 750; }
#tour-skip { min-height: 36px; padding: 4px 0 4px 8px; border: 0; background: transparent; color: #4d6265; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
#tour-skip:hover { color: #163843; }
#tour-title { margin: 5px 0 9px; font-size: 1.12rem; line-height: 1.4; }
#tour-title:focus { outline: none; }
#tour-description { margin: 0; font-size: .9rem; line-height: 1.7; }
#tour-note { margin: 9px 0 0; color: #52706e; font-size: .76rem; line-height: 1.5; }
#tour-note:empty { display: none; }
.tour-footer { margin-top: 18px; }
.tour-navigation button { min-height: 40px; padding: 7px 12px; font-size: .82rem; white-space: nowrap; }
#tour-dots { display: flex; gap: 5px; }
#tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ccd9d3; }
#tour-dots i[data-current] { width: 16px; border-radius: 4px; background: #236e74; }
/* Leave room to read the prompt and reach Copy while its teaching bubble is open. */
body[data-tour-step="4"] #connection-text { max-height: min(400px, 60dvh); }
@media (max-width: 699px) {
  .workbench-page .masthead .header-actions { grid-template-columns: auto auto auto minmax(0, 1fr); }
  #tour-card { padding: 14px; }
  #tour-title { font-size: 1rem; }
  #tour-description { font-size: .83rem; line-height: 1.6; }
  .tour-footer { margin-top: 12px; }
  .tour-navigation button, #tour-skip { min-height: 44px; }
  body[data-tour-step="4"] #connection-text { top: auto !important; bottom: 8px; max-height: min(290px, 42dvh); }
}
@media (max-width: 380px) {
  .workbench-page .masthead .header-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead #tour-open { white-space: nowrap; }
}
