/* A short, dismissible tour. The native modal keeps keyboard focus in its controls. */
#nav-tour{position:fixed;inset:0;margin:0;padding:0;width:100%;height:100%;max-width:none;max-height:none;border:0;background:transparent;overflow:hidden;color:var(--ink)}
#nav-tour::backdrop{background:#0009;backdrop-filter:none}
#nav-tour[open]{animation:none!important}
.tour-focus-ring{position:absolute;border:3px solid #e6c5ff;border-radius:4px;pointer-events:none}
.tour-card{position:absolute;box-sizing:border-box;background:var(--panel);color:var(--ink);border:2px solid var(--accent);padding:16px;max-height:calc(100dvh - 24px);overflow:auto;font-family:system-ui,sans-serif}
.tour-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}
.tour-head .nav-close{margin:-8px -8px -4px 0;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--ink);font-size:26px}
.tour-card h2{font-size:26px;line-height:1.15;margin:12px 0}
.tour-card p{font-size:15px;line-height:1.5;margin:0 0 18px}
.tour-actions{display:flex;align-items:center;gap:8px}
.tour-actions button{min-height:44px;font-size:14px}.tour-actions .quiet{margin-right:auto}.tour-actions [hidden]{display:none}
.tour-actions .primary{margin:0;width:auto;min-width:90px}
.tour-arrow{position:absolute;top:-32px;color:#e6c5ff;font:30px/1 sans-serif}
@media(max-height:440px){.tour-card{max-height:calc(100dvh - 24px);overflow:auto}.tour-card h2{font-size:20px;margin:6px 0}.tour-card p{font-size:13px;margin-bottom:8px}}

.first-visit-welcome{display:grid;grid-template-rows:1fr}
.welcome-clip{min-height:0;overflow:hidden}
.welcome-body{margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--accent);background:var(--panel);color:var(--ink)}
.first-visit-welcome h2{margin:0;font-size:1.3rem;line-height:1.2}
.first-visit-welcome p{margin:6px 0 10px;color:var(--muted);font-size:.9rem;line-height:1.4}
.welcome-actions{display:flex;flex-wrap:wrap;gap:8px}
.welcome-actions button{min-height:44px;padding:8px 12px}
@media(prefers-reduced-motion:no-preference){
 .first-visit-welcome{animation:welcome-in 260ms ease-out}
 #nav-tour[open]::backdrop,#nav-tour[open] :is(.tour-card,.tour-focus-ring){animation:tour-in 180ms ease-out}
 @keyframes welcome-in{from{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}
 @keyframes tour-in{from{opacity:0}to{opacity:1}}
}
