/* The walkthrough player (atelier-walkthrough.js), New Walkthrough Player (Nicolas, 18 October): the whole screen, never
   a dialog over a blanked page. The step's card on top, the picture or page in the middle, a wide red Exit Walkthrough
   under it. Fits the window with no scroll. No arrows (21 October): a picture moves on by its ring, a page by Next. */
.wt-veil{position:fixed;inset:0;z-index:2147483000;background:#1f2124;color:#efe9e2;font:16px/1.45 "Nunito Sans",system-ui,sans-serif}
html.wt-open,html.wt-open body{overflow:hidden}
.wt-veil *{box-sizing:border-box;font-family:"Nunito Sans",system-ui,sans-serif}
.wt-frame{height:100%;height:100dvh;display:flex;flex-direction:column;gap:14px;padding:calc(16px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px))}
.wt-desk .wt-frame{max-width:1180px;margin:0 auto;padding:28px 24px 26px}
.wt-card{flex:none;border:1px solid #3a3d41;border-radius:14px;padding:12px 18px;background:#26292d}
.wt-desk .wt-card{text-align:center}
.wt-count{color:#d06f56;letter-spacing:.12em;font-size:13px;font-weight:700;text-transform:uppercase}
.wt-card h2{margin:4px 0 2px;font-size:20px;font-weight:700;line-height:1.3}
.wt-card p{margin:0;font-size:15px;color:#c9c2b9}
.wt-mid{flex:1;min-height:0;display:flex;align-items:center;gap:10px}
.wt-view{flex:1;min-width:0;height:100%;display:flex;align-items:center;justify-content:center}
.wt-pic{position:relative;border-radius:16px;overflow:hidden;border:1px solid #4a4e53;background:#faf8f4;line-height:0}
.wt-pic img{display:block;width:100%;height:100%;object-fit:contain}
.wt-tap{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid #d06f56;background:rgba(208,111,86,.18);pointer-events:auto;cursor:pointer;animation:wt-pulse 1.4s ease-out infinite}
.wt-tap.wt-drag{animation:wt-pulse 1.4s ease-out infinite,wt-wiggle 2.4s ease-in-out infinite}
@keyframes wt-pulse{0%{box-shadow:0 0 0 0 rgba(208,111,86,.55)}80%,100%{box-shadow:0 0 0 18px rgba(208,111,86,0)}}
@keyframes wt-wiggle{0%,100%{transform:translate(0,0)}50%{transform:translate(28px,-34px)}}
/* Pages of words: a text page and the choice, and a card drawn on its own full frame. */
.wt-page{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;padding:20px;border:1px solid #3a3d41;border-radius:16px;background:#26292d;overflow:auto;scrollbar-width:none}
.wt-page::-webkit-scrollbar,.wt-hbody::-webkit-scrollbar{display:none}
.wt-page h1,.wt-intro h1,.wt-hbody h1{margin:0;font:700 28px/1.2 "Nunito Sans",system-ui,sans-serif}
.wt-page p{margin:0;max-width:520px;font-size:17px;color:#c9c2b9}
.wt-hcard{width:100%;height:100%;display:flex;flex-direction:column;border-radius:16px;overflow:hidden;border:1px solid #4a4e53;background:#fffdfa;color:#2b2724}
.wt-hhead{flex:none;padding:16px 20px;background:#91d9c1;color:#16352c;font:700 20px "Nunito Sans",system-ui,sans-serif}
.wt-hbody{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:14px;padding:20px 22px;overflow:auto;scrollbar-width:none}
.wt-hbody h1{font-size:26px}
.wt-hbody p{margin:0 auto;max-width:640px;font-size:16px;line-height:1.6;color:#5a534c}
.wt-desk .wt-hbody h1{font-size:36px}
.wt-desk .wt-hbody p{max-width:820px;font-size:24px}
/* The intro page of a feature walkthrough. */
.wt-intro{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;padding:0 12px}
.wt-eyebrow{color:#d06f56;letter-spacing:.16em;font-size:15px;font-weight:700;text-transform:uppercase}
.wt-intro h1{font-size:34px;line-height:1.15}
.wt-intro p{margin:0;max-width:440px;font-size:18px;color:#c9c2b9}
.wt-go,.wt-no,.wt-exit{flex:none;width:100%;height:52px;min-height:0;border-radius:12px;font-size:17px;font-weight:700;cursor:pointer}
.wt-go{max-width:440px;margin-top:10px;border:0;background:#91d9c1;color:#16302a}
.wt-go:hover{background:#a3e1cc}
.wt-no{max-width:440px;border:1px solid #4a4e53;background:transparent;color:#efe9e2;font-weight:600}
/* Red in both themes (Nicolas, 21 October: "Exit Walkthrough should be red"); the dark theme's button colour must not win. */
button.wt-exit{border:0!important;background:#c4473a!important;color:#fff!important}
button.wt-exit:hover{background:#ad3c30!important}
.wt-desk .wt-exit{max-width:560px;align-self:center}
.wt-veil button:focus-visible{outline:2px solid #d06f56;outline-offset:2px}
@media(max-width:600px){
  .wt-card{padding:10px 14px}
  .wt-card h2{font-size:18px}
  .wt-mid{gap:6px}
  .wt-page h1{font-size:24px}
  .wt-hhead{font-size:18px}
  .wt-hbody h1{font-size:22px}
}
/* The ring around what the step teaches (Nicolas, 21 October: "The click must be on what is being taught"): a red
   border sized to the element, pulsing, with a pulsing dot on its corner, as the live steps' outline and dot. */
.wt-tap.wt-ring{margin:0;border-radius:10px;border-color:#e0402f;background:transparent;animation:wt-pulse-red 1.4s ease-out infinite}
.wt-tap.wt-ring::after{content:'';position:absolute;right:-9px;top:-9px;width:16px;height:16px;border-radius:50%;background:#e0402f;animation:wt-dot 1.4s infinite}
@keyframes wt-pulse-red{0%{box-shadow:0 0 0 0 rgba(224,64,47,.5)}80%,100%{box-shadow:0 0 0 14px rgba(224,64,47,0)}}
.wt-tap:focus-visible{outline:2px solid #efe9e2;outline-offset:3px}
.wt-card .wt-how{margin-top:4px;font-size:14px;color:#efe9e2}
.wt-card .wt-how em{font-style:normal;font-weight:700;color:#e65a47}
.wt-step-go{align-self:center;margin-top:0}
@media(prefers-reduced-motion:reduce){.wt-tap,.wt-tap.wt-drag,.wt-tap.wt-ring::after{animation:none}}
/* Live steps on the real page (Nicolas, 18 October, Walkthrough Guide Sample v4): one line, the red heading inline,
   then the sentence; a red square cross as tall as the bar. Docked under the header on a computer, a sheet on a phone. */
.wt-guide{position:fixed;left:0;right:0;top:0;z-index:2147483100;display:flex;align-items:stretch;gap:16px;min-height:78px;padding:10px 12px 10px 24px;background:#26292d;color:#efe9e2;box-shadow:0 6px 18px rgba(0,0,0,.18);font-family:"Nunito Sans",system-ui,sans-serif;box-sizing:border-box}
.wt-guide .wt-line{flex:1;min-width:0;align-self:center;margin:0;font-size:18px;line-height:1.4}
.wt-guide .wt-label{margin-right:12px;color:#e65a47;font-weight:800;font-size:15px;letter-spacing:.1em;white-space:nowrap}
.wt-guide em{font-style:normal;font-weight:700;color:#e65a47}
.wt-guide .wt-x{flex:none;width:56px;min-height:0;padding:0;border:0;border-radius:10px;background:#c4473a;display:grid;place-items:center;cursor:pointer}
.wt-guide .wt-x:hover{background:#ad3c30}
.wt-guide .wt-k{margin-left:6px;font-size:.85em;white-space:nowrap}
/* Review notes (19 October): full colour, the label on its own line, the instruction on one line under it. */
.wt-guide .wt-line{color:#fff}
.wt-guide .wt-label.wt-own{display:block;margin:0 0 2px}
.wt-guide .wt-say{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wt-guide .wt-k{color:#fff;opacity:.75}
/* A hands-on walkthrough opens the report over the page: the bar stays above it, clear of the card. */
html.wt-guide-on .afb-cap{bottom:calc(var(--wt-sheet,0px) + 16px)}
html.wt-guide-on .afb-cap.afb-cap-corner{bottom:calc(var(--wt-sheet,0px) + 8px)}
html.wt-guide-on .afb-overlay{padding-top:calc(var(--wt-top,0px) + 12px);padding-bottom:calc(var(--wt-sheet,0px) + 12px)}
.wt-guide .wt-x svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round}
.wt-guide .wt-x:focus-visible{outline:2px solid #efe9e2;outline-offset:2px}
.wt-guide.wt-sheet{top:auto;bottom:0;min-height:0;gap:12px;padding:12px 10px calc(14px + env(safe-area-inset-bottom,0px)) 16px;border-radius:16px 16px 0 0;box-shadow:0 -8px 24px rgba(0,0,0,.25)}
.wt-guide.wt-sheet .wt-line{font-size:16px}
.wt-guide.wt-sheet .wt-label{margin-right:8px;font-size:13px}
html.wt-guide-on body{padding-bottom:calc(var(--wt-sheet,0px) + 16px)}
/* The phone timeline's event box rises above the bar, so its buttons stay in reach (Nicolas's iPhone test, 20 October). */
html.wt-guide-on .ptl-sheet{bottom:calc(var(--wt-sheet,0px) + 8px)}
.wt-target{outline:3px solid #e0402f!important;outline-offset:3px}
.wt-target-rel{position:relative}
.wt-dot{position:absolute;right:12px;top:12px;z-index:5;width:22px;height:22px;border-radius:50%;background:#e0402f;pointer-events:none;animation:wt-dot 1.4s infinite}
.wt-dot.wt-dot-s{right:-9px;top:-9px;width:18px;height:18px}
/* A timeline shape (SVG): the ring is a box laid over it, which lets every click through. */
.wt-fly{position:fixed;z-index:2147482000;box-sizing:border-box;outline:3px solid #e0402f;outline-offset:3px;border-radius:6px;pointer-events:none}
.wt-fly.wt-fly-l .wt-dot{right:auto;left:-9px}
@keyframes wt-dot{0%{box-shadow:0 0 0 0 rgba(224,64,47,.6)}70%{box-shadow:0 0 0 16px rgba(224,64,47,0)}100%{box-shadow:0 0 0 0 rgba(224,64,47,0)}}
/* The end card on the feature's page, the page blurred behind it. */
.wt-end{position:fixed;inset:0;z-index:2147482500;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(251,248,244,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-family:"Nunito Sans",system-ui,sans-serif}
.wt-end-card{width:100%;max-width:560px;display:flex;flex-direction:column;gap:14px;padding:28px 28px 24px;border:1px solid #e3dbd0;border-radius:16px;background:#fffdfa;color:#2a2a2a;text-align:center;box-shadow:0 12px 32px rgba(0,0,0,.12);box-sizing:border-box}
.wt-end-card:focus{outline:none}
.wt-end-eyebrow{color:#e65a47;font-weight:800;font-size:13px;letter-spacing:.1em}
.wt-end-card h2{margin:0;font:700 30px/1.2 "Nunito Sans",system-ui,sans-serif;text-wrap:balance}
.wt-end-card p{margin:0;font-size:18px;line-height:1.45;color:#5a534c}
.wt-end-btns{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.wt-end-btns button{min-height:0;padding:13px 20px;border-radius:10px;font:700 16px "Nunito Sans",system-ui,sans-serif;cursor:pointer}
.wt-end-go{border:0;background:#91d9c1;color:#1f3d35}
.wt-end-go:hover{background:#a3e1cc}
.wt-end-no{border:1px solid #d8d1c7;background:#fff;color:#2a2a2a}
.wt-end-no:hover{background:#f4efe8}
.wt-end button:focus-visible{outline:2px solid #d06f56;outline-offset:2px}
@media(max-width:600px){.wt-end{padding:16px}.wt-end-card{padding:22px 18px 18px}.wt-end-card h2{font-size:26px}.wt-end-card p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.wt-dot{animation:none}}
/* Your Reports, the Delete step: the first report's row slid left over a red Delete, a demonstration only. */
.bg-rw.wt-demo-del{position:relative}
.bg-rw.wt-demo-del .bg-slide{transform:translateX(-120px)}
.wt-demo-swipe{position:absolute;top:0;right:0;bottom:0;z-index:1;width:120px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#d9493f;color:#fff;font:800 14px "Nunito Sans",system-ui,sans-serif}

.bg-rw.wt-demo-del .bg-swipe-del{visibility:hidden;pointer-events:none}

/* Dark mode (Nicolas, 21 October: "Exit Walkthrough should be red and it wasn't"). atelier-dark.css paints every button
   #252c2e, so the walkthrough's buttons lost their colours. They keep the same look in both themes. */
html[data-theme="dark"] .wt-exit,html[data-theme="dark"] .wt-guide .wt-x{background-color:#c4473a!important;border-color:transparent!important;color:#fff!important}
html[data-theme="dark"] .wt-exit:hover,html[data-theme="dark"] .wt-guide .wt-x:hover{background-color:#ad3c30!important}
html[data-theme="dark"] .wt-go,html[data-theme="dark"] .wt-end-go{background-color:#91d9c1!important;border-color:transparent!important;color:#16302a!important}
html[data-theme="dark"] .wt-go:hover,html[data-theme="dark"] .wt-end-go:hover{background-color:#a3e1cc!important}
html[data-theme="dark"] .wt-no{background-color:transparent!important;border-color:#4a4e53!important;color:#efe9e2!important}
/* The end card in the dark theme: the app black behind, a #2c2a28 card (Design Principles, dark-mode checklist). */
html[data-theme="dark"] .wt-end{background:rgba(31,30,29,.6)}
html[data-theme="dark"] .wt-end-card{background:#2c2a28;border-color:#3a3633;color:#ece8e1;box-shadow:0 12px 32px rgba(0,0,0,.4)}
html[data-theme="dark"] .wt-end-card p{color:#c9c2b8}
html[data-theme="dark"] .wt-end-no{background-color:#1f1e1d!important;border-color:#4a4540!important;color:#ece8e1!important}
/* Design Expert, 21 October (timeline walkthroughs): one typeface (the titles above are the app sans, bold); the intro
   page follows the theme, its block at a confident size; nothing floats over the page's buttons and nothing hides under
   the guide bar while a live walkthrough runs. */
html:not([data-theme="dark"]) .wt-veil.wt-on-intro{background:#fbf8f4;color:#2a2a2a}
html:not([data-theme="dark"]) .wt-on-intro .wt-intro p{color:#5a534c}
html[data-theme="dark"] .wt-veil.wt-on-intro{background:#1f1e1d}
.wt-desk.wt-on-intro .wt-intro{gap:16px}
.wt-desk.wt-on-intro .wt-intro h1{font-size:52px}
.wt-desk.wt-on-intro .wt-intro p{max-width:600px;font-size:22px}
.wt-desk.wt-on-intro .wt-intro .wt-go{height:56px;font-size:18px}
html.wt-guide-on .atelier-feedback-trigger.afb-float{display:none!important}
html.wt-guide-on .sidebar{padding-top:calc(var(--wt-bar,0px) + 25px)!important}
.sidebar .wt-target{outline-offset:-3px!important}
/* Year View fills the timeline's frame on a computer and does not scroll, so its controls start below the bar (Your Year, 23 October). */
@media(min-width:621px){html.wt-guide-on .yv-on>#year-view{padding-top:calc(var(--wt-bar,0px) + 14px)!important}}
/* Phones (22 October): the full-screen event editor ends above the sheet, so its Submit bar stays in reach. */
@media(max-width:600px){html.wt-guide-on.soyl-phone-tl body.ptl-full #panel.sidebar{bottom:var(--wt-sheet,0px)!important}}
/* Phones (Design Review, 22 October): a long line wraps, so the step count always shows; never cut with an ellipsis (DE's review of #847). */
.wt-guide.wt-sheet .wt-say{white-space:normal;overflow:visible}
/* `barTop` on a phone: the bar at the top, so buttons at the bottom of a panel stay clear (Request A Listening, DE 22 October). */
.wt-guide.wt-sheet.wt-sheet-top{top:0;bottom:auto;border-radius:0 0 16px 16px;padding:10px 10px 12px 16px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
html.wt-guide-on:has(.wt-sheet-top) body{padding-bottom:16px}
/* `land.keep`: the card at the top, the kept part sharp below it. */
.wt-end.wt-end-keep{align-items:flex-start;padding-top:96px}
@media(max-width:600px){.wt-end.wt-end-keep{padding-top:16px}}
/* Dark mode: a brighter ring, so it reads on aqua buttons and the dark green picked row (DE, 22 October). */
html[data-theme="dark"] .wt-target{outline-color:#ff6a55!important}
html[data-theme="dark"] .wt-fly{outline-color:#ff6a55}
html[data-theme="dark"] .wt-dot{background:#ff6a55}
/* Inside a scrolling list (the Request A Listening Pick list) the ring and its dot stay inside, or the list clips them (DE, 22 October). */
.ss-hist .wt-target{outline-offset:-3px!important}
.ss-hist .wt-target>.wt-dot.wt-dot-s{right:3px;top:3px}
/* With the bar at the top on a phone, the page starts below it, so a panel's Back and title are never under it (DE, 22 October). */
html.wt-guide-on:has(.wt-sheet-top) header.atelier-brand-header{margin-bottom:var(--wt-bar,0px)!important}
/* `land.clear`: the page stays sharp behind a low card with a solid fill (Your Three Days keeps its moving sky, DE 22 October). */
.wt-end.wt-end-clear{align-items:flex-end;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;padding-bottom:28px}
html[data-theme="dark"] .wt-end.wt-end-clear{background:transparent}
.wt-end-clear .wt-end-card{box-shadow:0 12px 40px rgba(0,0,0,.28)}
.wt-end-card p b{color:#2a2a2a;font-weight:800}
html[data-theme="dark"] .wt-end-card p b{color:#ece8e1}
@media(max-width:600px){.wt-end.wt-end-clear{padding-bottom:16px}}
/* Getting Started under the bar: the steps start below it (Your Three Days, DE 22 October). */
html.wt-guide-on #gs-root{padding-top:calc(var(--wt-bar,0px) + 22px)}
/* A picture page among live steps (Moments Inside Moments step 5b, 23 October): the picture over the page under the bar,
   the line and one aqua Next under it. A phone scrolls the one-column picture; the line and Next stay in reach above the sheet. */
.wt-pics{position:fixed;left:0;right:0;top:var(--wt-top,0px);bottom:var(--wt-sheet,0px);z-index:2147482500;overflow:auto;overscroll-behavior:contain;background:#fbf8f4;color:#2a2a2a;font-family:"Nunito Sans",system-ui,sans-serif}
.wt-pics-in{min-height:100%;display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 24px 20px;box-sizing:border-box}
.wt-pics img{display:block;width:auto;max-width:min(100%,962px);height:auto;max-height:calc(100vh - var(--wt-top,0px) - 150px);border:1px solid #e3dbd0;border-radius:12px}
.wt-pics-foot{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;max-width:962px;text-align:center}
.wt-pics-foot p{margin:0;font-size:18px;line-height:1.45;color:#5a534c}
.wt-pics-foot .wt-go{margin-top:8px}
.wt-pics-dark{display:none!important}
html[data-theme="dark"] .wt-pics{background:#1f1e1d;color:#ece8e1}
html[data-theme="dark"] .wt-pics-light{display:none!important}
html[data-theme="dark"] .wt-pics-dark{display:block!important}
html[data-theme="dark"] .wt-pics img{border-color:#3a3633}
html[data-theme="dark"] .wt-pics-foot p{color:#c9c2b8}
@media(max-width:600px){
  .wt-pics-in{padding:12px 6px 0}
  .wt-pics img{width:100%;max-width:378px;max-height:none}
  .wt-pics-foot{position:sticky;bottom:0;margin-top:auto;padding:12px 10px 14px;background:#fbf8f4;box-shadow:0 -10px 16px -12px rgba(0,0,0,.25);box-sizing:border-box}
  .wt-pics-foot p{font-size:16px}
  html[data-theme="dark"] .wt-pics-foot{background:#1f1e1d}
}
.wt-end.wt-end-top{align-items:flex-start;padding-top:24px;padding-bottom:24px}
@media(max-width:600px){.wt-end.wt-end-top{padding-top:16px}}
/* Tarot: while the guide bar shows, a panel opens below it, never under it (DE, 26 October). */
html.wt-guide-on .tarot-app>#panel{top:calc(var(--wt-top,0px) + 12px)!important;max-height:calc(100% - var(--wt-top,0px) - 140px)}
