/* Visual dimming only. Native shop controls keep their pointer and keyboard behavior. */
.sht-tour{position:fixed;inset:0;z-index:90;pointer-events:none;font-family:Manrope,'DM Sans',system-ui,sans-serif;color:#171a20}
.sht-shade{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;fill:rgba(55,63,76,.42)}
.sht-spot{display:none;position:fixed;box-sizing:border-box;border:2px solid #2459db;border-radius:10px;box-shadow:0 0 0 2px #fff;pointer-events:none;z-index:1}
.sht-tour.has-target .sht-spot{display:block}
.sht-tour.is-dialog{visibility:hidden}
.sht-card{position:fixed;box-sizing:border-box;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border:1px solid #dfe4eb;border-radius:14px;box-shadow:0 8px 26px rgba(23,26,32,.18);padding:12px;pointer-events:auto;overscroll-behavior:contain;z-index:2}
.sht-top{display:flex;align-items:center;gap:6px;margin-bottom:5px}
.sht-top img{object-fit:contain;flex:0 0 24px}
.sht-top select{margin-left:auto;min-height:44px;max-width:128px;border:1px solid #c9d0dc;border-radius:10px;font:600 13px Manrope,'DM Sans',system-ui,sans-serif;background:#fff;color:#171a20;padding:0 6px}
.sht-card h2{font:800 19px/1.25 Manrope,'DM Sans',system-ui,sans-serif;letter-spacing:-.01em;margin:3px 0 8px;color:#171a20}
.sht-card p{font-size:14px;line-height:1.45;margin:0 0 8px;overflow-wrap:anywhere}
.sht-card .sht-kicker{font-size:12px;line-height:1.3;color:#4f5868;font-weight:800;margin:0}
.sht-card .sht-hint{padding:8px;background:#eef3ff;border-radius:10px;color:#2459db;font-weight:600}
.sht-status{padding:8px;border-left:3px solid #2459db;background:#f4f6fa;color:#4f5868}
.sht-status.is-done{border-color:#17703f;color:#17703f;background:#e7f6ec}
.sht-notice:empty{display:none}.sht-card .sht-notice{font-size:13px;color:#7a4b00;background:#fff4dc;border-radius:10px;padding:8px}
.sht-progress{height:4px;background:#e3e7ef;border-radius:999px;overflow:hidden;margin:10px 0}
.sht-progress span{display:block;height:100%;background:#2459db;transition:width .15s ease}
.sht-card button,.sht-card a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;min-width:44px;padding:0 10px;border:1px solid #c9d0dc;border-radius:10px;font:800 13px/1.2 Manrope,'DM Sans',system-ui,sans-serif;cursor:pointer;text-decoration:none;background:#fff;color:#171a20}
.sht-card .sht-primary{background:#2459db;color:#fff;border-color:#2459db}
.sht-card .sht-link{border-color:transparent;color:#2459db;padding:0 5px}
.sht-card button:disabled{opacity:.48;cursor:default}
.sht-card button:focus-visible,.sht-card a:focus-visible,.sht-card select:focus-visible{outline:3px solid #8fb0ff;outline-offset:2px}
.sht-work-actions,.sht-steps,.sht-end-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.sht-work-actions{margin-bottom:6px}.sht-work-actions [data-sht-expand]{margin-left:auto}
.sht-steps>span{flex:1}.sht-end-actions{justify-content:flex-end}
.sht-card .sht-keys{font-size:11px;color:#4f5868;margin:6px 0 0;text-align:right}
.sht-card [hidden]{display:none!important}
.sht-card.is-compact .sht-keys,.sht-card.is-compact .sht-notice,.sht-card.is-compact .sht-progress{display:none}
.sht-card.is-compact h2{font-size:16px;margin-bottom:4px}.sht-card.is-compact .sht-status{font-size:12px;margin-bottom:4px;padding:3px 6px}.sht-card.is-compact .sht-work-actions{margin-bottom:2px}
.sht-tour.has-target .sht-card.is-compact [data-sht-show]{display:none}
@media(max-width:720px){.sht-card{padding:10px;width:calc(100vw - 24px)}.sht-card.is-compact .sht-work-actions [data-sht-expand]{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.sht-progress span{transition:none}}
@media print{.sht-tour{display:none!important}}

.sht-card.is-compact .sht-top{position:absolute;left:10px;right:10px;top:8px;margin:0}.sht-card.is-compact .sht-top img{display:block}.sht-card.is-compact .sht-top select{display:none}.sht-card.is-compact .sht-top [data-sht-pause]{margin-left:auto}.sht-card.is-compact .sht-kicker,.sht-card.is-compact h2{padding-left:32px;padding-right:62px}
.sht-spot::after{content:"↑";position:absolute;left:calc(50% - 12px);bottom:-26px;width:24px;height:24px;border-radius:50%;background:#2459db;color:#fff;font:800 20px/24px system-ui;text-align:center;box-shadow:0 0 0 3px #fff;pointer-events:none}

.sht-card.is-compact .sht-details>p{font-size:16px;line-height:1.35;margin-bottom:5px}.sht-card.is-compact .sht-details .sht-hint,.sht-card.is-compact .sht-details>p:not(:first-child){display:none}

.sht-card.is-acting [data-sht-open],.sht-card.is-acting [data-sht-back],.sht-card.is-acting [data-sht-skip],.sht-card.is-acting .sht-steps>span{display:none}.sht-card.is-acting .sht-work-actions [data-sht-expand]{margin-left:0;margin-right:80px}.sht-card.is-acting .sht-steps{position:absolute;right:10px;bottom:10px}.sht-card.is-acting .sht-status{display:none}
.sht-tour[data-step="10"] .sht-card.is-acting [data-sht-open]{display:inline-flex}

/* Four calm chapters; controls remain on the actual shop pages. */
.sht-chapters{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:4px 0 12px;padding:0}
.sht-chapters li{display:flex;flex-direction:column;align-items:center;gap:4px;font:700 10px/1.2 Manrope,system-ui,sans-serif;color:#647085;text-align:center}
.sht-chapters span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #cbd3e1;border-radius:50%;background:#f6f8fc;font-size:11px}
.sht-chapters .is-current{color:#2459db}.sht-chapters .is-current span{background:#2459db;color:#fff;border-color:#2459db}
.sht-chapters .is-done{color:#17703f}.sht-chapters .is-done span{background:#e7f6ec;border-color:#8fc3a4}
.sht-card .sht-intro{color:#4f5868;font-size:13px}
.sht-card.is-compact .sht-chapters{display:none}.sht-card.is-compact .sht-intro{display:none}
.sht-card .sht-results{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px}
.sht-results li{display:flex;gap:10px;align-items:flex-start;padding:8px;border-radius:10px;background:#f4f7fc}
.sht-results li>span{font-size:18px;color:#17703f}.sht-results strong{font-size:13px}.sht-card .sht-results p{font-size:12px;margin:2px 0 0;color:#4f5868}
.sht-reward{display:grid;place-items:center;width:46px;height:46px;margin:4px 0 12px;border-radius:14px;background:#e7f6ec;color:#17703f;font-size:28px;font-weight:800}
.sht-tour[data-reward="true"] .sht-reward{animation:sht-finish .45s ease-out both}
@keyframes sht-finish{from{transform:scale(.75);opacity:.4}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.sht-tour[data-reward="true"] .sht-reward{animation:none}}

/* If a partly visible choice list leaves no room, keep a small pauseable guide. */
.sht-card.is-docked{padding:4px 8px;overflow:visible}
.sht-card.is-docked .sht-top{display:flex;position:absolute;top:4px;right:8px;left:auto;margin:0}
.sht-card.is-docked .sht-top img,.sht-card.is-docked .sht-top select,.sht-card.is-docked .sht-chapters,.sht-card.is-docked .sht-kicker,.sht-card.is-docked .sht-details,.sht-card.is-docked .sht-intro,.sht-card.is-docked .sht-status,.sht-card.is-docked .sht-notice,.sht-card.is-docked .sht-progress,.sht-card.is-docked .sht-work-actions,.sht-card.is-docked .sht-steps,.sht-card.is-docked .sht-keys{display:none}
.sht-card.is-docked h2{display:flex;align-items:center;min-height:44px;margin:0;padding:0;max-width:calc(100% - 64px);font-size:14px;line-height:1.25}
.sht-card.is-docked:not(.is-acting) h2,.sht-tour[data-complete="true"] .sht-card.is-docked h2{max-width:calc(100% - 174px)}
.sht-card.is-docked:not(.is-acting) .sht-work-actions{display:flex;position:absolute;top:4px;right:54px;margin:0}
.sht-card.is-docked .sht-work-actions>*:not([data-sht-open]){display:none}
.sht-tour[data-complete="true"] .sht-card.is-docked .sht-steps{display:flex;position:absolute;bottom:4px;right:54px;margin:0}
.sht-tour[data-complete="true"] .sht-card.is-docked .sht-steps>*:not([data-sht-next]){display:none}
/* A saved action explains its result even while the practice card is compact. */
.sht-card.is-acting .sht-status.is-done{display:block;font-size:13px;line-height:1.35;margin-bottom:46px}
.sht-card.is-compact .sht-details .sht-practice-choice{display:block}

html.sht-scroll-safe{scroll-padding-top:var(--sht-scroll-top,180px);scroll-padding-bottom:var(--sht-scroll-bottom,260px)}
/* The viewport padding already reserves the guide and dock. Repeating those
   insets as control margins leaves no usable scroll area on a phone. */
html.sht-scroll-safe #shop-app :is(input,textarea,select,button,a){scroll-margin-block:12px}

.sht-card.is-docked.is-acting .sht-status.is-done{display:none}
