/* Native dialog provides keyboard focus containment and an inert background. */
dialog.feature-tour {
  position:fixed;
  inset:auto 24px 24px auto;
  box-sizing:border-box;
  width:420px;
  max-width:calc(100vw - 32px);
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  margin:0;
  padding:28px;
  overflow:auto;
  border:1px solid #d2ddc7;
  border-radius:18px;
  background:#fffef9;
  color:var(--ink,#293c32);
  box-shadow:0 16px 64px #1c2d2533;
}
dialog.feature-tour[open] {animation:tour-arrive .24s ease-out;}
/* Blur only sibling content branches; the real target and tour stay sharp. */
dialog.feature-tour::backdrop {background:#1d2c250d;backdrop-filter:none;-webkit-backdrop-filter:none;}
.tour-unfocused {filter:blur(2px);}
.tour-header {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.tour-eyebrow {margin:0;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#5b6f4d;}
.tour-counter {flex:none;font-size:11px;color:var(--muted,#66725f);}
dialog.feature-tour .tour-title {font-size:27px;line-height:1.2;margin:20px 0 14px;outline:none;}
dialog.feature-tour .tour-body {font-size:13px;line-height:1.8;margin:0;overflow-wrap:anywhere;}
.tour-error {font-size:12px;line-height:1.6;color:var(--danger,#a23a33);margin:14px 0 0;}
.tour-error:empty {display:none;}
.tour-actions {display:flex;align-items:center;gap:8px;margin-top:24px;flex-wrap:wrap;}
.tour-actions .button {min-height:40px;}
.tour-actions .tour-skip {margin-right:auto;border-color:transparent;background:transparent;}
.tour-actions button:disabled {opacity:.55;cursor:default;}
.tour-highlight {outline:3px solid #a9803b!important;outline-offset:4px;box-shadow:0 0 0 7px #f2d99580!important;transition:outline-color .2s,box-shadow .2s;}
@keyframes tour-arrive {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px) {
  dialog.feature-tour {inset:auto 16px 16px 16px;width:auto;padding:22px;max-height:45vh;max-height:45dvh;}
  .sidebar.tour-navigation {height:calc(55vh - 24px);height:calc(55dvh - 24px);border-radius:0 0 14px 0;transition:none;}
  dialog.feature-tour .tour-title {font-size:24px;}
}
@media(prefers-reduced-motion:reduce) {
  dialog.feature-tour[open] {animation:none;}
  .tour-highlight {transition:none;}
}
