/* Target-following spotlight tour, existing ice-blue palette. The stage and artwork remain unchanged. */
#ap-tour-root{position:fixed;inset:0;z-index:100;pointer-events:none;color:#243e53;font-family:inherit}
#ap-tour-root *{box-sizing:border-box}#ap-tour-root [hidden]{display:none!important}
#ap-tour-root .spotlight-ring{z-index:1;position:fixed;border:2px solid #78b7d0;border-radius:16px;box-shadow:0 0 0 3px #e1f6ff8c;pointer-events:none;transition:left .2s,top .2s,width .2s,height .2s;}
#ap-tour-root .guide-card{z-index:3;transition:left .22s ease,top .22s ease;position:fixed;pointer-events:auto;padding:14px 15px 10px;background:rgba(250,254,255,.97);border:1px solid #bad5e3;border-radius:18px;box-shadow:0 10px 32px #24486126;max-height:calc(100svh - 16px);overflow:auto}
#ap-tour-root h3{margin:0 0 7px;font-size:16px;line-height:1.4;color:#183d53}
#ap-tour-root p{font-size:13px;line-height:1.65;margin:0 0 7px;color:#3a5668}
#ap-tour-root footer{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:5px;border-top:1px solid #d8e5eb;padding-top:3px}
#ap-tour-root .guide-steps{font-size:12px;color:#667d8f;white-space:nowrap}
#ap-tour-root .guide-btns{display:flex;align-items:center;gap:2px}
#ap-tour-root button{font:inherit;cursor:pointer;min-height:44px;min-width:44px;border:0;border-radius:11px;pointer-events:auto}
#ap-tour-root .guide-btn{font-size:12px;padding:0 9px;background:transparent;color:#375b70}
#ap-tour-root .primary{background:#176782;color:white}
#ap-tour-root .guide-action{padding:0 9px;font-size:12px;color:#14647f;background:#eaf4f7;text-align:left;min-height:34px}
#ap-tour-root .skip-guide{position:fixed;right:18px;top:10px;font-size:12px;padding:0 13px;background:#f7fcffe8;border:1px solid #d0e0e8;box-shadow:0 3px 12px #2448610f}
#ap-tour-root button:focus-visible,#ap-explore button:focus-visible{outline:3px solid #16738f;outline-offset:2px}
.ap-attention{animation:ap-tour-ring 1.2s ease-out 2}
@keyframes ap-tour-ring{0%,100%{box-shadow:0 0 0 4px #8ad0e23b}50%{box-shadow:0 0 0 9px #8ad0e215}}
/* Only speech is a visitor action. Existing walk controls still serve the engine internally. */
.walk-controls button[data-act="walk"],.walk-controls button[data-act="sit"],.walk-controls button[data-act="turn"]{display:none!important}
.walk-bubble{max-width:50cqw!important}
.ap-mobile-launch{display:none!important}
#ap-explore{padding:0;border:1px solid #d0e0e8;border-radius:22px;background:#f2f7fb;color:#243e53;width:calc(100% - 16px);max-width:520px;height:min(92svh,850px);max-height:calc(100svh - 16px);overflow:hidden;box-shadow:0 16px 55px #18394d38}
#ap-explore::backdrop{background:#17364e55;backdrop-filter:blur(2px)}
.ap-explore-header{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 17px;background:#fbfdff}
.ap-explore-header h2{font-size:17px;margin:0}.ap-explore-close{min-width:44px;min-height:44px;border:0;background:transparent;font-size:25px;color:#536d7d}
.ap-explore-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:4px 7px;border-block:1px solid #dbe7ee;background:#f8fbfd}
.ap-explore-nav button{min-height:42px;border:0;border-radius:10px;background:transparent;font-size:12px;color:#547087;padding:0 2px}
.ap-explore-nav button[aria-current="page"]{background:#e2f0f6;color:#164e68;font-weight:700}
.ap-explore-body{height:calc(100% - 106px);overflow:auto;overscroll-behavior:contain;padding:10px;scrollbar-width:thin;scroll-padding-top:12px}
#ap-explore.ap-with-tour .ap-explore-body{height:calc(100% - 106px - var(--ap-tour-reserve,220px));padding-bottom:12px}
#ap-explore .wide-rail{position:static;display:flex;flex-direction:column;width:100%;height:auto;overflow:visible;padding:0;gap:12px}
#ap-explore .wide-rail[hidden]{display:none!important}#ap-explore .wide-card{flex:none}
#bean-cases-dialog.ap-tour-case-context{padding-bottom:var(--ap-tour-reserve,220px)!important;box-sizing:border-box}
@media(max-width:899px), (max-width:1100px) and (max-height:500px){
 .comment-form>input,.comment-form>#emoji{display:none!important}
 .comment-form>.ap-mobile-launch{display:flex!important;align-items:center;justify-content:center;width:100%;height:100%;min-height:44px;border:0;border-radius:30px;background:transparent;color:#315b70;font-size:12px;font-weight:650;white-space:nowrap;padding:0 5px}
 #ap-tour-root .skip-guide{top:auto;bottom:max(8px,env(safe-area-inset-bottom));right:9px;min-height:36px;background:#f7fcfff2}
 #ap-tour-root .guide-card{z-index:3;transition:left .22s ease,top .22s ease;padding:11px 12px 8px}
 #ap-tour-root p{font-size:12.5px;line-height:1.6}
 #ap-tour-root h3{font-size:15px}
}
@media(prefers-reduced-motion:reduce){#ap-tour-root .spotlight-ring,.ap-attention{animation:none;transition:none}}

/* Four independent scrims leave a genuinely clear, interactive rectangle. */
#ap-tour-root .tour-shade{display:none;position:fixed;z-index:0;background:rgba(10,25,39,.65);pointer-events:auto;transition:left .18s,top .18s,width .18s,height .18s}
#ap-tour-root.guide-active .tour-shade{display:block}
#ap-tour-root .guide-arrow{position:fixed;width:10px;height:10px;background:#fafeff;border:1px solid #bad5e3;transform:rotate(45deg);z-index:2;pointer-events:none;transition:left .22s,top .22s}
#ap-tour-root .ap-tour-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#ap-tour-root[data-tracking] .spotlight-ring,#ap-tour-root[data-tracking] .tour-shade,#ap-tour-root[data-tracking] .guide-card,#ap-tour-root[data-tracking] .guide-arrow{transition:none}
@media(prefers-reduced-motion:reduce){#ap-tour-root .spotlight-ring,#ap-tour-root .tour-shade,#ap-tour-root .guide-card,#ap-tour-root .guide-arrow{transition:none;animation:none}}

#ap-tour-root[data-following] .spotlight-ring,#ap-tour-root[data-following] .tour-shade{transition:none}

#ap-tour-root .guide-card footer{flex-wrap:wrap}#ap-tour-root .guide-btns{flex-wrap:wrap;justify-content:flex-end;max-width:100%;margin-left:auto}

/* The work entry asks before the existing local voice can start. */
#abing-work-confirm{box-sizing:border-box;width:calc(100% - 32px);max-width:410px;max-height:calc(100svh - 24px);padding:22px;border:1px solid #bad5e3;border-radius:20px;background:#f8fcff;color:#243e53;box-shadow:0 18px 60px #15344d38;overflow:auto;font:14px/1.65 system-ui,-apple-system,"PingFang SC",sans-serif}
#abing-work-confirm::backdrop{background:rgba(10,25,39,.66)}
#abing-work-confirm h2{font-size:20px;margin:0 0 12px;color:#183d53}#abing-work-confirm p{margin:0 0 12px}#abing-work-confirm .work-confirm-note{font-size:12px;color:#617b8e}
#abing-work-confirm footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}#abing-work-confirm button{flex:1;min-width:100px;min-height:44px;padding:8px 12px;border:1px solid #bfd4df;border-radius:12px;color:#33596f;background:#edf5f9;font:inherit;cursor:pointer}
#abing-work-confirm [data-work=confirm]{background:#176782;border-color:#176782;color:white}#abing-work-confirm button:focus-visible{outline:3px solid #2583a1;outline-offset:3px}
.walk-controls [data-act=speak]{min-height:44px;white-space:nowrap}
@media(max-width:899px), (max-width:1100px) and (max-height:500px){.walk-controls{top:auto;bottom:12.2%}}

/* Calm, manual guide: settle the new context before displaying the callout. */
#ap-tour-root .guide-card{transition:opacity .2s ease;}
#ap-tour-root .spotlight-ring,#ap-tour-root .guide-arrow{transition:opacity .2s ease;}
#ap-tour-root[data-switching] .guide-card,#ap-tour-root[data-switching] .spotlight-ring,#ap-tour-root[data-switching] .guide-arrow{opacity:0;pointer-events:none;}
#ap-tour-root[data-switching] .tour-shade{opacity:.45;transition:opacity .5s ease;}
#ap-tour-root .guide-btn:disabled,#ap-tour-root .guide-action:disabled{cursor:default;}
#ap-tour-root[data-step="3"] .guide-card{max-height:260px;}
@media(max-width:899px),(max-width:1100px) and (max-height:500px){
 #bean-cases-dialog.ap-tour-case-context{padding:var(--ap-tour-reserve,220px) 8px max(8px,env(safe-area-inset-bottom))!important;}
 #bean-cases-dialog.ap-tour-case-context .bean-cases-frame{border-radius:16px;}
 #ap-tour-root[data-step="3"] .guide-card{padding:12px 14px 8px;}
 #ap-tour-root[data-step="3"] .guide-arrow{display:none;}
 #ap-tour-root[data-step="3"] .guide-action{min-height:34px;}
}
@media(prefers-reduced-motion:reduce){#ap-tour-root .guide-card,#ap-tour-root .spotlight-ring,#ap-tour-root .guide-arrow{transition:none;}}
