.mw-tour { position:fixed; inset:0; z-index:var(--z-tour,70); pointer-events:none; }
.mw-tour[hidden], .mw-tour [hidden] { display:none!important; }
.mw-tour-shade { position:fixed; background:rgba(15,23,42,.55); pointer-events:auto; transition:all 160ms ease; }
.mw-tour-ring { position:fixed; border:2px solid var(--color-primary,#6155c5); border-radius:6px; pointer-events:none; transition:all 160ms ease; }
.mw-tour-bubble { position:fixed; box-sizing:border-box; width:min(320px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:22px; border-radius:16px; background:#fff; color:#182033; box-shadow:0 8px 36px #0f172a40; pointer-events:auto; font:14px/1.6 system-ui,sans-serif; }
.mw-tour-arrow {position:fixed;width:12px;height:12px;transform:rotate(45deg);background:#fff;pointer-events:none;}
.mw-tour-title {font-size:18px;margin:8px 0;outline-offset:4px;}
.mw-tour-counter,.mw-tour-hint {font-size:12px;color:#586176;margin:0;}
.mw-tour-body {white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 16px;}
.mw-tour-bubble button {cursor:pointer;font:inherit;border:1px solid #cbd0dd;background:white;border-radius:8px;padding:6px 12px;color:inherit;}
.mw-tour-bubble button:disabled {opacity:.5;cursor:default;}
.mw-tour-bubble button:focus-visible {outline:3px solid #6155c5;outline-offset:2px;}
.mw-tour-controls {display:flex;justify-content:space-between;gap:12px;margin:14px 0;}
.mw-tour-bubble .mw-tour-close {position:absolute;right:8px;top:6px;border:0;font-size:22px;}
.mw-tour-bubble .mw-tour-mute {border:0;text-decoration:underline;font-size:12px;}
@media(max-width:640px){.mw-tour-arrow {display:none;}.mw-tour-bubble {left:0!important;top:auto!important;bottom:0;width:100%;max-height:48dvh;border-radius:16px 16px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom));}}
@media(prefers-reduced-motion:reduce){.mw-tour * {transition:none!important;}}
