.gym-tour{--tour-space-1:4px;--tour-space-2:8px;--tour-space-3:12px;--tour-space-4:16px;--tour-space-5:20px;--tour-space-6:24px;--tour-radius:8px;--tour-controls:20;--tour-expanded:70;position:relative;min-width:0;color:var(--ink);font-family:var(--sans)}
.gym-tour button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:var(--tour-radius);font:inherit;color:inherit;background:var(--bg);cursor:pointer;touch-action:manipulation}
.gym-tour button:hover{background:var(--line)}
.gym-tour button:focus-visible,.gym-tour input:focus-visible,.gym-tour-viewport:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.gym-tour svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none;flex:none}
.gym-tour-room{height:500px;position:relative;overflow:hidden;border-radius:var(--tour-radius);background:var(--bg);isolation:isolate}
.gym-tour-viewport{position:absolute;inset:0;touch-action:none;cursor:grab;outline-offset:-4px!important}
.gym-tour-viewport:active{cursor:grabbing}.gym-tour-viewport canvas{display:block;width:100%;height:100%}
.gym-tour-markers{position:absolute;inset:0;pointer-events:none}
.gym-tour .gym-tour-marker{position:absolute;transform:translate(-50%,-50%);border:2px solid var(--ink);border-radius:50%;height:44px;width:44px;font-size:12px;font-weight:600;pointer-events:auto;background:var(--bg)}
.gym-tour .gym-tour-marker[aria-pressed=true]{background:var(--ink);color:var(--bg)}
.gym-tour-top,.gym-tour-bottom{position:absolute;left:var(--tour-space-4);right:var(--tour-space-4);display:flex;justify-content:space-between;align-items:center;gap:var(--tour-space-3);z-index:var(--tour-controls);pointer-events:none}
.gym-tour-top{top:var(--tour-space-4)}.gym-tour-top>*{pointer-events:auto}
.gym-tour .gym-tour-search{display:flex;align-items:center;gap:var(--tour-space-2);padding:var(--tour-space-3);min-width:188px;font-size:12px}
.gym-tour-search kbd{font:inherit;font-size:10px;color:var(--muted);margin-left:auto}
.gym-tour-badge{padding:var(--tour-space-3);background:var(--bg);border:1px solid var(--line);border-radius:var(--tour-radius);font-size:11px}
.gym-tour-bottom{bottom:var(--tour-space-4)}.gym-tour-bottom>span{padding:var(--tour-space-2) var(--tour-space-3);border-radius:var(--tour-radius);background:var(--bg);font-size:11px;line-height:1.4;max-width:65%}
.gym-tour-bottom>div{display:flex;gap:var(--tour-space-2);pointer-events:auto}.gym-tour-bottom button{display:grid;place-items:center;padding:0;font-size:25px;width:44px;height:44px}
.gym-tour-caption{display:flex;justify-content:space-between;gap:var(--tour-space-2);padding-top:var(--tour-space-3);font-size:10px;color:var(--muted)}
.gym-tour-quick{display:flex;align-items:center;gap:var(--tour-space-4);margin-top:var(--tour-space-5);padding-top:var(--tour-space-4);border-top:1px solid var(--line)}
.gym-tour-quick>span{font-size:10px;color:var(--muted);white-space:nowrap}.gym-tour-quick>div{display:flex;flex:1;gap:var(--tour-space-2);min-width:0;overflow-x:auto;scrollbar-width:thin}
.gym-tour-quick button{flex:0 0 auto;padding:var(--tour-space-2) var(--tour-space-3);white-space:nowrap;font-size:11px;background:transparent;border-color:transparent}
.gym-tour-quick button[aria-pressed=true]{border-color:var(--line);background:var(--bg)}
.gym-tour-status{position:absolute;inset:0;padding:80px var(--tour-space-6);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:var(--tour-space-4);background:var(--bg);font-size:14px}.gym-tour-status p{font-size:12px;color:var(--muted)}.gym-tour-status button{padding:var(--tour-space-3) var(--tour-space-4);font-size:12px}
.gym-tour-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--tour-radius);padding:var(--tour-space-6);width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.gym-tour-dialog::backdrop{background:rgb(0 0 0 / .75)}
.gym-tour-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--tour-space-4);margin-bottom:var(--tour-space-5)}.gym-tour-dialog-heading h4{font-size:25px;line-height:1.2}.gym-tour-dialog-heading button{font-size:24px;flex-shrink:0}
.gym-tour-input input{width:100%;min-width:0;min-height:48px;background:var(--bg);color:var(--ink);padding:var(--tour-space-3);border:1px solid var(--line);border-radius:var(--tour-radius);font-size:16px}.gym-tour-input input::placeholder{color:var(--muted)}
.gym-tour-result-count{font-size:11px;color:var(--muted);margin:var(--tour-space-4) 0 var(--tour-space-2)}
.gym-tour .gym-tour-result{display:flex;align-items:center;text-align:left;width:100%;gap:var(--tour-space-3);padding:var(--tour-space-3) 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;min-height:68px}
.gym-tour-result>span:first-child{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--tour-radius);font-size:12px;flex:none}.gym-tour-result>span:last-child{display:grid;gap:var(--tour-space-1)}.gym-tour-result strong{font-weight:450;font-size:14px}.gym-tour-result small{font-size:11px;color:var(--muted)}
.gym-tour-empty{text-align:center;padding:var(--tour-space-6) 0}.gym-tour-empty p{font-size:12px;color:var(--muted);margin:var(--tour-space-3) 0}.gym-tour-empty button{padding:var(--tour-space-3)}
.gym-tour-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.gym-tour .gym-tour-exit{position:absolute;left:var(--tour-space-4);top:var(--tour-space-4);padding:var(--tour-space-3);font-size:12px;z-index:var(--tour-controls)}
.gym-tour-room.is-expanded{position:fixed;inset:0;width:100%;height:100dvh;z-index:var(--tour-expanded);border-radius:0}.gym-tour-room.is-expanded .gym-tour-top{top:80px}
@media(max-width:760px){.gym-tour-room{height:420px}.gym-tour-top,.gym-tour-bottom{left:var(--tour-space-3);right:var(--tour-space-3)}.gym-tour-top{top:var(--tour-space-3)}.gym-tour-bottom{bottom:max(var(--tour-space-3),env(safe-area-inset-bottom))}.gym-tour-search{flex:1}.gym-tour-search kbd,.gym-tour-badge,.gym-tour-quick>span{display:none}.gym-tour-bottom>span{max-width:60%;font-size:10px;padding:var(--tour-space-2)}.gym-tour-bottom>div{gap:var(--tour-space-1)}.gym-tour-caption{font-size:9px}.gym-tour-quick{gap:var(--tour-space-2)}.gym-tour-quick>[data-tour-all]{display:none}.gym-tour-dialog{width:calc(100% - 16px);padding:var(--tour-space-5);margin:auto auto max(8px,env(safe-area-inset-bottom));max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){.gym-tour *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
