/*
 * D01-R #589 — ONE scoped presentation layer for the two-state homepage at `/`.
 * Replaces d01-atelier-home.css. Step 1 follows ARC-VD-003 (Day) / ARC-VD-004 (Dark);
 * W22 base: replaces d01r-reading-home, d01r-step2-atelier, d01r-two-state and w21-d01-art-integration CSS.
 * app.js + d01r-two-state.js + wave20-step2.mjs own selection, Step 2 open/close and draw; Journal is journal-d10/journal-wave2-f.
 * Art: /assets/atelier/d01r/*.svg are NEW ART CANDIDATES (owner review pending);
 * Tarot faces are licensed RWS v2 media only — never drawn or faked here.
 * Cascade: everything is under body.d01-atelier-page; no !important outside FE0's carried rules.
 */

/* ---------- Tokens ---------- */
body.d01-atelier-page {
  --d01-paper: #f8efe0;
  --d01-paper-shade: #efe2cc;
  --d01-cream: #fdf7ec;
  --d01-ink: #1d1819;
  --d01-muted: #5f5253;
  --d01-plum: #4b1f3f;
  --d01-plum-ink: #fff7ea;
  --d01-gold: #b4873f;
  --d01-gold-soft: #d7b77a;
  --d01-edge: #e2d1b6;
  --d01-night: #12162b;
  --d01-night-ink: #f4e8d2;
  --d01r-kicker: #8c5a2c;
  --d01r-icon: #4b1f3f;
  --d01r-band: #fbf4e8;
  --d01r-deeper-bg: linear-gradient(100deg, #f3e9ef 0%, #f6eee9 45%, #efe4ee 100%);
  --d01r-deeper-edge: #d9c09a;
  --d01r-tile-bg: #fffaf1;
  --d01r-tile-shadow: 0 10px 28px rgba(76, 48, 24, .07);
  --d01r-premium-bg: #f6ecdb;
  --d01r-sky: url("/assets/atelier/d01r/hero-sky-day.svg");
  --d01r-front: url("/assets/atelier/d01r/hero-front-day.svg");
  --d01r-moon: url("/assets/atelier/d01r/deeper-moon-day.svg");
  --d01r-clouds: url("/assets/atelier/d01r/deeper-clouds-day.svg");
  --d01r-table: url("/assets/atelier/d01r/reading-table-day.svg");
  --d01r-serif: var(--arcana-font-display, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif);
  --d01r-gutter: max(20px, calc((100% - 1240px) / 2));
  background: var(--d01-paper);
  color: var(--d01-ink);
}
:root[data-theme="dark"] body.d01-atelier-page {
  --d01-paper: #0f1428;
  --d01-paper-shade: #161c34;
  --d01-cream: #151b33;
  --d01-ink: #f4e9d6;
  --d01-muted: #b9ad99;
  --d01-plum: #e2b15c;
  --d01-plum-ink: #17142a;
  --d01-gold: #e0ae55;
  --d01-gold-soft: #b58b48;
  --d01-edge: rgba(214, 178, 116, .22);
  --d01r-kicker: #e0ae55;
  --d01r-icon: #e0ae55;
  --d01r-band: #11172d;
  --d01r-deeper-bg: linear-gradient(100deg, #1a1b38 0%, #171a33 50%, #1d1a3a 100%);
  --d01r-deeper-edge: rgba(214, 178, 116, .35);
  --d01r-tile-bg: #161d36;
  --d01r-tile-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  --d01r-premium-bg: #10152b;
  --d01r-sky: url("/assets/atelier/d01r/hero-sky-dark.svg");
  --d01r-front: url("/assets/atelier/d01r/hero-front-dark.svg");
  --d01r-moon: url("/assets/atelier/d01r/deeper-moon-dark.svg");
  --d01r-clouds: url("/assets/atelier/d01r/deeper-clouds-dark.svg");
  --d01r-table: url("/assets/atelier/d01r/reading-table-dark.svg");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.d01-atelier-page {
    --d01-paper: #0f1428;
    --d01-paper-shade: #161c34;
    --d01-cream: #151b33;
    --d01-ink: #f4e9d6;
    --d01-muted: #b9ad99;
    --d01-plum: #e2b15c;
    --d01-plum-ink: #17142a;
    --d01-gold: #e0ae55;
    --d01-gold-soft: #b58b48;
    --d01-edge: rgba(214, 178, 116, .22);
    --d01r-kicker: #e0ae55;
    --d01r-icon: #e0ae55;
    --d01r-band: #11172d;
    --d01r-deeper-bg: linear-gradient(100deg, #1a1b38 0%, #171a33 50%, #1d1a3a 100%);
    --d01r-deeper-edge: rgba(214, 178, 116, .35);
    --d01r-tile-bg: #161d36;
    --d01r-tile-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    --d01r-premium-bg: #10152b;
    --d01r-sky: url("/assets/atelier/d01r/hero-sky-dark.svg");
    --d01r-front: url("/assets/atelier/d01r/hero-front-dark.svg");
    --d01r-moon: url("/assets/atelier/d01r/deeper-moon-dark.svg");
    --d01r-clouds: url("/assets/atelier/d01r/deeper-clouds-dark.svg");
    --d01r-table: url("/assets/atelier/d01r/reading-table-dark.svg");
  }
}

/* Dark follows ARC-VD-004's own composition where it differs from Day. */
:root[data-theme="dark"] body.d01-atelier-page {
  .d01-atelier .d01r-display-title { color: #ecc272; }
  .d01-atelier .d01-deeper { grid-template-columns: 1fr; gap: 14px; }
  .d01-atelier > section.d01-deeper { padding-inline: 26px; }
  .d01-atelier .d01r-deeper-moon { display: none; }
  .d01-atelier .d01r-deeper-copy { position: relative; }
  .d01-atelier .d01r-deeper-copy p:not(.d01-kicker) { margin: 0; max-width: 70ch; }
  .d01-atelier .d01r-deeper-copy .d01-cta { position: absolute; inset-inline-end: 0; bottom: -6px; min-height: 36px; background: transparent; color: var(--d01-gold); border-color: transparent; box-shadow: none; padding-inline: 0; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.d01-atelier-page {
  .d01-atelier .d01r-display-title { color: #ecc272; }
  .d01-atelier .d01-deeper { grid-template-columns: 1fr; gap: 14px; }
  .d01-atelier > section.d01-deeper { padding-inline: 26px; }
  .d01-atelier .d01r-deeper-moon { display: none; }
  .d01-atelier .d01r-deeper-copy { position: relative; }
  .d01-atelier .d01r-deeper-copy p:not(.d01-kicker) { margin: 0; max-width: 70ch; }
  .d01-atelier .d01r-deeper-copy .d01-cta { position: absolute; inset-inline-end: 0; bottom: -6px; min-height: 36px; background: transparent; color: var(--d01-gold); border-color: transparent; box-shadow: none; padding-inline: 0; }
  }
}

/* ---------- Shell: full-bleed sections, centred content ---------- */
/* Header/brand belong to the shared shell (global-header.css); Home does not restyle them (ADR-0002 QA-3). */
.d01-atelier-page .app-shell.d01-atelier { width: 100%; max-width: none; margin: 0; padding: 0; display: block; }
.d01-atelier .d01r-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.d01-atelier > section:not(.panel) { padding-inline: var(--d01r-gutter); }
.d01-atelier :where(h1, h2, h3) { font-family: var(--d01r-serif); font-weight: 500; color: var(--d01-ink); letter-spacing: -.02em; }
.d01-atelier .d01-kicker { margin: 0; color: var(--d01r-kicker); font: 650 .72rem/1.5 var(--brand-font-body, sans-serif); text-transform: uppercase; letter-spacing: .2em; }
.d01-atelier :where(.d01-cta, .d01-link-cta) { display: inline-flex; align-items: center; justify-content: center; gap: .9em; min-height: 46px; padding: 10px 24px; border: 1px solid var(--d01-plum); border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.d01-atelier .d01-cta { background: var(--d01-plum); color: var(--d01-plum-ink); box-shadow: 0 8px 22px rgba(75, 31, 63, .18); }
.d01-atelier .d01-link-cta { background: transparent; color: var(--d01-plum); }
.d01-atelier :where(.d01-cta, .d01-link-cta):hover { transform: translateY(-1px); }
.d01-atelier :where(.d01-cta, .d01-link-cta, a, button):focus-visible { outline: 3px solid var(--d01-gold); outline-offset: 3px; }

/* ---------- Hero ---------- */
.d01-atelier .d01-hero { position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; min-height: 420px; padding-block: 26px 22px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--d01-edge); }
.d01-atelier .d01-hero-copy { position: relative; z-index: 2; max-width: 600px; }
.d01-atelier .d01-hero h1.d01r-seo-title { margin: 0; letter-spacing: .2em; }
.d01-atelier .d01r-display-title { margin: .28em 0 .24em; font-family: var(--d01r-serif); font-weight: 500; font-size: clamp(2.7rem, 4.6vw, 4.35rem); line-height: 1; letter-spacing: -.035em; white-space: nowrap; color: var(--d01-ink); }
.d01-atelier .d01-lede { margin: 0 0 22px; max-width: 48ch; font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.55; color: var(--d01-ink); }
.d01-atelier .d01-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.d01-atelier .d01-hero .d01-cta { min-height: 52px; padding-inline: 28px; font-size: 1rem; }
.d01-atelier .d01-fineprint { margin: 14px 0 0; max-width: 64ch; font-size: .8rem; line-height: 1.5; color: var(--d01-muted); }
.d01-atelier #buildStatus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d01-atelier .d01r-hero-art { position: absolute; z-index: 0; inset-block: 0 0; inset-inline: 40% 0; pointer-events: none; }
.d01-atelier .d01r-hero-sky { position: absolute; inset: 0; background: var(--d01r-sky) center top / cover no-repeat; }
:root[dir="rtl"] .d01-atelier .d01r-hero-sky { transform: scaleX(-1); } /* the sky art fades out on its start edge; scenery only, no text */
.d01-atelier .d01r-hero-front { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: -6px; height: 34%; background: var(--d01r-front) center bottom / 100% auto no-repeat; z-index: 3; }
.d01-atelier .d01r-hero-fan { position: absolute; left: 50%; top: 35%; width: clamp(280px, 37vw, 540px); aspect-ratio: 440 / 330; transform: translateX(-50%); z-index: 2; }
.d01-atelier .d01r-fan-card { position: absolute; display: block; width: 37%; height: auto; aspect-ratio: 3 / 5; object-fit: cover; border-radius: 6px; border: 2px solid #e8c983; box-shadow: 0 18px 40px rgba(10, 8, 24, .38), 0 0 0 1px rgba(90, 60, 20, .35); background: #2a2440; }
.d01-atelier .d01r-fan-center { left: 31.5%; top: -4%; width: 41%; z-index: 3; box-shadow: 0 0 60px rgba(245, 205, 120, .35), 0 22px 48px rgba(10, 8, 24, .45); }
.d01-atelier .d01r-fan-left { left: 4%; top: 9%; transform: rotate(-11deg); z-index: 2; }
.d01-atelier .d01r-fan-right { right: 4%; top: 9%; transform: rotate(11deg); z-index: 2; }

/* Hero deck slider (owner 15.11, home-deck-slider.js): the decks' fans share the place of the server's fan (same box, stacked), one shown at a time; the controls sit under the fan. */
.d01-atelier .d01r-hero-fan[data-hero-shown="false"] { opacity: 0; visibility: hidden; }
.d01-atelier .d01r-hero-fan[data-hero-shown] { transition: opacity .6s ease, visibility 0s linear .6s; }
.d01-atelier .d01r-hero-fan[data-hero-shown="true"] { transition: opacity .6s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .d01-atelier .d01r-hero-fan[data-hero-shown] { transition: none; } }
html:not([data-hero-slider="on"]) .d01-atelier .d01r-hero-fan-slide { display: none; }
/* Same footprint before and after the script (the slot is in the first HTML): row 1 arrow, deck name, arrow, pause; row 2 the dots. 72 px at every width, so nothing below moves. */
/* The slider row (54 px) makes the copy column taller than the old 420 px minimum, so the hero's height would follow the length of each deck's lead text (Tarot vs Gypsy36 vs Orixás:
   a jump when the deck changes in place). One minimum that holds every deck's copy keeps every deck's Home the same height. Phone: no minimum (stacked), unchanged. */
@media (min-width: 761px) { .d01-atelier .d01-hero:has([data-hero-slider-slot]) { min-height: 480px; } }
/* Desktop: ONE row of 44 px (arrow, name, arrow, dots, pause) so the hero keeps the height every deck's Home has; phone (<= 760 px, copy above the art): two rows, the dots under. */
.d01-atelier .d01r-hero-slider { position: relative; display: grid; grid-template-columns: 44px minmax(0, max-content) 44px auto 44px; grid-template-rows: 44px; column-gap: 6px; align-items: center; justify-content: start; block-size: 44px; margin-block: 10px 0; }
html[data-hero-slider="none"] .d01-atelier .d01r-hero-slider[data-hero-slider-slot]:empty { display: none; }
@media (max-width: 760px) {
  .d01-atelier .d01r-hero-slider { grid-template-columns: 44px minmax(0, max-content) 44px 44px; grid-template-rows: 44px 24px; row-gap: 4px; block-size: 72px; margin-block: 14px 2px; }
  .d01-atelier .d01r-hero-slider-dots { grid-column: 1 / -1; grid-row: 2; }
}
.d01-atelier .d01r-hero-slider[hidden] { visibility: hidden; } /* another deck's Home: the room stays, nothing moves */
.d01-atelier .d01r-hero-slider-arrow, .d01-atelier .d01r-hero-slider-toggle { inline-size: 44px; block-size: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--d01-edge); border-radius: 50%; background: transparent; color: var(--d01-gold); font: 600 1.35rem/1 var(--d01r-serif, serif); cursor: pointer; }
.d01-atelier .d01r-hero-slider-toggle { font-size: .8rem; }
.d01-atelier .d01r-hero-slider-toggle[data-state="running"]::before { content: "❚❚"; }
.d01-atelier .d01r-hero-slider-toggle[data-state="paused"]::before { content: "▶"; }
:root[dir="rtl"] .d01-atelier .d01r-hero-slider-arrow { transform: scaleX(-1); }
.d01-atelier .d01r-hero-slider-name { min-inline-size: 0; max-inline-size: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--d01-gold); font: 600 .9rem/1.2 var(--d01r-sans, inherit); }
.d01-atelier .d01r-hero-slider-dots { display: flex; gap: 0; }
.d01-atelier .d01r-hero-slider-dot { inline-size: 24px; block-size: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.d01-atelier .d01r-hero-slider-dot::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; border: 1px solid var(--d01-gold); }
.d01-atelier .d01r-hero-slider-dot[aria-current="true"]::before { background: var(--d01-gold); }
.d01-atelier .d01r-hero-slider :is(button):focus-visible { outline: 2px solid var(--d01-gold); outline-offset: 2px; }
.d01-atelier .d01r-hero-slider-live { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Benefit rail ---------- */
.d01-atelier .d01-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--d01r-band); border-bottom: 1px solid var(--d01-edge); }
.d01-atelier .d01-feature { position: relative; display: grid; color: inherit; text-decoration: none; justify-items: center; gap: 4px; padding: 15px 12px 14px; text-align: center; }
.d01-atelier .d01-feature:not(:last-child)::after { content: ""; position: absolute; inset-inline-end: 0; top: 22%; height: 56%; border-inline-end: 1px solid var(--d01-edge); }
.d01-atelier .d01-feature-icon { width: 32px; height: 32px; color: var(--d01r-icon); margin-bottom: 4px; }
.d01-atelier a.d01-feature:hover strong { color: var(--d01-plum); }
.d01-atelier .d01-feature strong { font-size: .9rem; font-weight: 600; color: var(--d01-ink); }
.d01-atelier .d01-feature span { font-size: .76rem; color: var(--d01-muted); }
/* RC3.2d (E2, /da at 390 Dark): the four feature cells are a 4-column grid, and a long compound word ("Premiumforhåndsvisning", 22 letters) has no place to break, so it pushed the last cell 30 px past the
   window (hscroll 20-47 px from 428 to 320). The cell may shrink below the word (min-width: 0) and the word may break: at a hyphenation point where the browser has the language's dictionary,
   else anywhere as the last resort. Every language, no overflow-x patch on the page. */
.d01-atelier .d01-feature { min-width: 0; }
.d01-atelier .d01-feature :is(strong, span) { max-inline-size: 100%; overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Card Library + Try a spread ---------- */
.d01-atelier .d01-discovery { display: grid; grid-template-columns: minmax(0, 33fr) minmax(0, 37fr) minmax(0, 30fr); gap: 32px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--d01-edge); }
.d01-atelier .d01-discovery article { min-width: 0; }
.d01-atelier .d01-discovery h2 { margin: .3em 0 .35em; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; }
.d01-atelier .d01-discovery p:not(.d01-kicker) { margin: 0 0 20px; color: var(--d01-muted); line-height: 1.55; font-size: .95rem; }
.d01-atelier .d01r-spreads-copy { padding-inline-start: 32px; border-inline-start: 1px solid var(--d01-edge); }
.d01-atelier .d01r-spreads-copy h2 { font-size: clamp(1.45rem, 1.9vw, 1.85rem); }
.d01-atelier .d01r-library-art { position: relative; aspect-ratio: 400 / 280; max-width: 420px; width: 100%; justify-self: center; }
.d01-atelier .d01r-library-art .d01r-fan-card { width: 34%; }
.d01-atelier .d01r-library-art .d01r-fan-center { left: 31%; top: -2%; width: 39%; }

/* ---------- Choose a reading (native picker) ---------- */
.d01-atelier .d01-picker-composition { display: grid; grid-template-columns: minmax(220px, 27fr) minmax(0, 73fr); gap: 32px; align-items: center; margin: 0; padding-block: 26px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.d01-atelier .d01-picker-heading h2 { margin: .25em 0 .3em; font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.05; }
.d01-atelier .d01-picker-heading p:not(.d01-kicker) { margin: 0; max-width: 32ch; color: var(--d01-muted); line-height: 1.55; font-size: .95rem; }
.d01-atelier .d01-picker-data { min-width: 0; }
.d01-atelier .d01-picker-data #catalogCount { display: none; }
.d01-atelier .d01-picker-data #spreadPicker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.d01-atelier .d01-picker-data .spread-option { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: 100%; min-height: 184px; padding: 12px 14px 14px; border: 1px solid var(--d01-edge); border-radius: 10px; background: var(--d01r-tile-bg); color: var(--d01-ink); text-align: start; box-shadow: var(--d01r-tile-shadow); }
.d01-atelier .d01-picker-data .spread-option:hover { border-color: var(--d01-gold-soft); transform: translateY(-2px); }
.d01-atelier .d01-picker-data .spread-option[hidden] { display: none; }
/* ::after belongs to FE0's spread-selection-transition.css, so ::before carries the tile art: a gold line icon (mask)
   in Day and Dark alike (owner acceptance 2026-10-23: Day no longer shows card thumbnails). */
.d01-atelier .d01-picker-data .spread-option::before { content: ""; display: block; align-self: center; width: 44px; aspect-ratio: 1; margin: 6px auto 22px; background: var(--d01-gold); -webkit-mask: var(--d01r-tile-icon) center / contain no-repeat; mask: var(--d01r-tile-icon) center / contain no-repeat; }
.d01-atelier .d01-picker-data .spread-option { --d01r-tile-icon: url("/assets/atelier/d01r/tile-star.svg"); }
/* Owner 23.11 (issue 846): the four featured Tarot spreads take their icon from the ONE registry (public/spread-icons.js), like every other spread. */
.d01-atelier .d01-picker-data .spread-option-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.d01-atelier .d01-picker-data .spread-option-topline strong { font-family: var(--d01r-serif); font-size: 1.16rem; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.d01-atelier .d01-picker-data .spread-option-topline > span { position: absolute; top: 12px; inset-inline-end: 12px; min-width: 24px; height: 24px; border: 1px solid var(--d01-edge); border-radius: 50%; display: grid; place-items: center; font-size: .72rem; color: var(--d01-muted); background: var(--d01r-tile-bg); }
.d01-atelier .d01-picker-data .spread-option-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d01-atelier .d01-picker-data .spread-option-meta { margin: 0; font-size: .74rem; color: var(--d01-muted); }
/* Owner finding 4: the cue keeps its footprint (visibility, not display), so the tile never changes size on the first click (FE0 #447 reserved the space; display:none/inline here took it back). */
.d01-atelier .d01-picker-data .spread-option-selection-cue { display: block; visibility: hidden; font-size: .72rem; font-weight: 650; color: var(--d01-plum); }
.d01-atelier .d01-picker-data .spread-option[data-confirm-ready="true"] .spread-option-selection-cue { visibility: visible; }
/* The cue takes the meta line's place (one grid cell, same specificity as the FE0 rule it overrides), so the tile keeps its resting height and nothing moves. */
#spreadPicker[data-selection-cue-owner="fe0"] .spread-option .spread-option-meta-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; margin-top: auto; }
#spreadPicker[data-selection-cue-owner="fe0"] .spread-option .spread-option-meta-row > * { grid-area: 1 / 1; grid-column: 1; justify-self: start; text-align: start; max-width: 100%; }
#spreadPicker[data-selection-cue-owner="fe0"] .spread-option[data-confirm-ready="true"] .spread-option-meta { visibility: hidden; }
@media (max-width: 390px) { #spreadPicker[data-selection-cue-owner="fe0"] .spread-option .spread-option-meta-row { min-height: 48px; align-items: end; } }
.d01-atelier .d01-picker-data .spread-option[aria-pressed="true"] { background: var(--d01r-tile-bg); border-color: var(--d01-plum); box-shadow: 0 0 0 2px var(--d01-plum), var(--d01r-tile-shadow); }
.d01-atelier .d01-picker-data #spreadPicker[data-more-expanded="false"] > .spread-option:not([data-spread-id="tarot.spread.one_card"]):not([data-spread-id="tarot.spread.daily_focus"]):not([data-spread-id="tarot.spread.decision"]):not([data-spread-id="tarot.spread.past_present_future"]) { display: none; }
/* RG-3 (owner 05.11): every spread tile keeps its icon and its height, expanded or not. (The expanded "More readings" tiles used to lose the icon and shrink to 96px.) */
.d01-atelier .spread-more-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.d01-atelier .spread-more-toggle { min-height: 40px; border: 0; background: transparent; color: var(--d01-plum); font-weight: 600; font-size: .86rem; box-shadow: none; }

/* ---------- Explore deeper readings ---------- */
.d01-atelier .d01-deeper { position: relative; display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 26px; align-items: center; margin: 14px var(--d01r-gutter) 26px; padding-block: 22px 22px; padding-inline: clamp(120px, 11vw, 160px) 26px; border: 1px solid var(--d01r-deeper-edge); outline: 1px solid var(--d01r-deeper-edge); outline-offset: -7px; border-radius: 14px; background: var(--d01r-deeper-bg); overflow: hidden; isolation: isolate; }
.d01-atelier > section.d01-deeper { padding-inline: clamp(120px, 11vw, 160px) 26px; }
.d01-atelier .d01r-deeper-moon { position: absolute; z-index: -1; inset-inline-start: 0; top: 0; bottom: 0; width: clamp(130px, 13vw, 200px); background: var(--d01r-moon) left center / cover no-repeat; }
.d01-atelier .d01r-deeper-clouds { position: absolute; z-index: -1; inset-inline-end: 0; bottom: 0; width: 160px; height: 70%; background: var(--d01r-clouds) right bottom / cover no-repeat; opacity: .9; }
.d01-atelier .d01-deeper h2 { margin: .2em 0 .3em; font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.08; }
.d01-atelier .d01r-deeper-copy p:not(.d01-kicker) { margin: 0 0 16px; color: var(--d01-muted); line-height: 1.55; font-size: .92rem; }
.d01-atelier .d01-deeper-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.d01-atelier .d01-deeper-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 172px; padding-block: 14px 14px; padding-inline: 16px 52px; border: 1px solid var(--d01-edge); border-radius: 10px; background: var(--d01r-tile-bg); color: var(--d01-ink); text-decoration: none; box-shadow: var(--d01r-tile-shadow); transition: transform .15s ease, border-color .15s ease; }
.d01-atelier .d01-deeper-card:hover { transform: translateY(-2px); border-color: var(--d01-gold-soft); }
.d01-atelier .d01-deeper-card::after { content: "→"; position: absolute; inset-inline-end: 14px; bottom: 16px; width: 30px; height: 30px; border: 1px solid var(--d01-muted); border-radius: 50%; display: grid; place-items: center; font-size: .9rem; color: var(--d01-ink); }
.d01-atelier .d01-deeper-card-icon { width: 68px; height: 68px; margin-block: 4px 8px; margin-inline: 6px 0; color: var(--d01-gold); }
.d01-atelier .d01-deeper-card strong { font-family: var(--d01r-serif); font-size: 1.18rem; font-weight: 500; }
.d01-atelier .d01-deeper-card small { font-size: .76rem; color: var(--d01-muted); }
.d01-atelier .d01r-premium-badge { position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #f3dfb6; color: #5b3a12; font-size: .68rem; font-weight: 650; }
.d01-atelier .d01r-premium-badge svg { width: 12px; height: 12px; }

/* ---------- Crystal Ball ---------- */
.d01-atelier .d01-crystal-cta { position: relative; display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); align-items: center; min-height: 184px; padding-block: 22px; background: #12142a; color: var(--d01-night-ink); overflow: hidden; isolation: isolate; }
.d01-atelier .d01r-crystal-scene { position: absolute; inset: 0; z-index: -1; background: url("/assets/atelier/d01r/crystal-scene.svg") center / cover no-repeat; }
.d01-atelier .d01-crystal-cta > div:last-child { grid-column: 2; max-width: 520px; }
.d01-atelier .d01-crystal-cta .d01-kicker { color: #e2b15c; }
.d01-atelier .d01-crystal-cta h2 { margin: .2em 0 .2em; color: #f6ead4; font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.d01-atelier .d01-crystal-cta p:not(.d01-kicker) { margin: 0 0 16px; color: #d8cdb9; line-height: 1.5; font-size: .95rem; }
.d01-atelier .d01-crystal-cta .d01-cta { background: transparent; color: #f6ead4; border-color: rgba(246, 234, 212, .7); box-shadow: none; min-height: 40px; }

/* ---------- Birth Chart entry (revealed by birth-chart-entry.js only when the server lists Birth Chart) ---------- */
.d01-atelier .d01-birth-cta { position: relative; display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 72fr); align-items: center; gap: 12px 28px; min-height: 160px; padding: 22px max(5vw, 20px); background: #1a1630; color: var(--d01-night-ink); overflow: hidden; isolation: isolate; }
.d01-atelier .d01-birth-cta[hidden] { display: none; }
.d01-atelier .d01-birth-wheel { justify-self: center; inline-size: clamp(96px, 16vw, 150px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(226, 177, 92, .75); background: repeating-conic-gradient(from 0deg, rgba(226, 177, 92, .22) 0deg 29deg, transparent 30deg 30.6deg), radial-gradient(circle, transparent 0 46%, rgba(226, 177, 92, .5) 46.5% 47.5%, transparent 48% 70%, rgba(226, 177, 92, .35) 70.5% 71.5%, transparent 72%); box-shadow: 0 0 0 9px rgba(226, 177, 92, .07), 0 0 40px rgba(226, 177, 92, .18); }
.d01-atelier .d01-birth-cta > div:last-child { max-inline-size: 560px; min-inline-size: 0; }
.d01-atelier .d01-birth-cta .d01-kicker { color: #e2b15c; }
.d01-atelier .d01-birth-cta h2 { margin: .2em 0 .2em; color: #f6ead4; font-size: clamp(1.8rem, 2.5vw, 2.4rem); overflow-wrap: break-word; }
.d01-atelier .d01-birth-cta p:not(.d01-kicker) { margin: 0 0 16px; color: #d8cdb9; line-height: 1.5; font-size: .95rem; overflow-wrap: break-word; }
.d01-atelier .d01-birth-cta .d01-cta { background: transparent; color: #f6ead4; border-color: rgba(246, 234, 212, .7); box-shadow: none; min-height: 44px; }
.d01-atelier .d01-birth-cta .d01-cta:focus-visible { outline: 3px solid #e2b15c; outline-offset: 3px; }

/* ---------- Trust rail ---------- */
.d01-atelier .d01r-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--d01r-band); border-bottom: 1px solid var(--d01-edge); }
.d01-atelier .d01r-trust-item { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 26px; }
.d01-atelier .d01r-trust-item:not(:last-child)::after { content: ""; position: absolute; inset-inline-end: 0; top: 22%; height: 56%; border-inline-end: 1px solid var(--d01-edge); }
.d01-atelier .d01r-trust-item svg { flex: none; width: 34px; height: 34px; color: var(--d01r-icon); }
.d01-atelier .d01r-trust-item strong { display: block; font-size: .84rem; }
.d01-atelier .d01r-trust-item span { display: block; font-size: .76rem; line-height: 1.4; color: var(--d01-muted); }

/* ---------- Premium ---------- */
.d01-atelier .d01r-premium[hidden] { display: none; }   /* the deck promo took its place (home-deck-promo.js) */
.d01-atelier .d01r-premium { display: grid; grid-template-columns: minmax(0, 40fr) auto minmax(0, 42fr); gap: 28px; align-items: center; margin-top: 22px; padding-block: 12px; background: var(--d01r-premium-bg); border-block: 1px solid var(--d01-edge); }
.d01-atelier .d01r-premium h2 { margin: .15em 0 .25em; font-size: clamp(1.7rem, 2.3vw, 2.2rem); }
.d01-atelier .d01r-premium p:not(.d01-kicker) { margin: 0; color: var(--d01-muted); font-size: .9rem; line-height: 1.5; max-width: 44ch; }
.d01-atelier .d01r-premium-art { justify-self: end; width: min(100%, 420px); aspect-ratio: 420 / 220; background: url("/assets/atelier/d01r/premium-devices.svg") center / contain no-repeat; }

/* ---------- Existing panels keep their FE0 content width ---------- */
.d01-atelier-page .d01-atelier > .panel { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* #846 long words (E2 29.11): on wide screens the title wraps inside the light part of the hero instead of running over the dark sky on one line.
   91% of the copy column is where the art begins; "Draw. Read. Return." still fits on one line. Thai stays on one line on wide screens, because the
   browsers' Thai dictionary splits this title inside a word (แล้วก|ลับ) when it wraps. */
@media (min-width: 761px) {
  :root:not(:lang(th)) .d01-atelier .d01r-display-title { white-space: normal; max-inline-size: 91%; text-wrap: balance; }
}
/* #846 (E2 on M1, 29.11): no word is cut in Chinese, Japanese and Thai, at EVERY width. The hero title breaks only at punctuation and spaces (keep-all;
   WebKit applies it to Thai too, Chromium's Thai needs U+200B in the text); overflow-wrap is only the guard against sideways scroll. Chinese headings
   break the same way. Japanese headings break by phrase where the browser can (Chromium); WebKit has no auto-phrase and needs phrase marks in the text. */
:root:is(:lang(zh), :lang(ja), :lang(th)) .d01-atelier .d01r-display-title { word-break: keep-all; overflow-wrap: break-word; }
:root:lang(zh) .d01-atelier h2 { word-break: keep-all; overflow-wrap: break-word; }
/* #846 (E2 G1 on M1c, 30.11): the ja subheadings and the small h1 over the hero carry U+200B between phrases in the locale (ui.v1.json).
   keep-all makes those marks the only breaks in WebKit; Chromium keeps auto-phrase (the later value wins where it is known). */
:root:lang(ja) .d01-atelier h2, :root:lang(ja) .d01-atelier .d01-hero h1.d01r-seo-title { word-break: keep-all; word-break: auto-phrase; overflow-wrap: break-word; }
/* The longest unbreakable run of the title (ja "また戻ってくる。", th "แล้วกลับมาทบทวน") is about 8em: the size lets it fit the column from 320 px up.
   `text-wrap` also switches wrapping on, so it must not reach the one-line Thai title on wide screens. */
@media (min-width: 761px) {
  :root:lang(ja) .d01-atelier .d01r-display-title { font-size: clamp(2rem, 4.5vw, 4rem); }
}
@media (max-width: 760px) {
  :root:is(:lang(zh), :lang(ja), :lang(th)) .d01-atelier .d01r-display-title { text-wrap: balance; }
  :root:is(:lang(ja), :lang(th)) .d01-atelier .d01r-display-title { font-size: clamp(2rem, 10.4vw, 3.4rem); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .d01-atelier .d01-discovery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .d01-atelier .d01r-spreads-copy { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; padding-top: 22px; border-top: 1px solid var(--d01-edge); }
  .d01-atelier .d01-picker-composition { grid-template-columns: 1fr; gap: 18px; }
  .d01-atelier .d01-deeper { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .d01-atelier .d01-hero { grid-template-columns: 1fr; min-height: 0; padding-block: 28px 0; }
  .d01-atelier .d01r-display-title { white-space: normal; font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .d01-atelier .d01r-hero-art { position: relative; inset: auto; height: 230px; margin: 16px calc(-1 * var(--d01r-gutter)) 0; }
  .d01-atelier .d01r-hero-fan { top: 22%; width: min(250px, 66vw); }
  .d01-atelier .d01-features { padding-inline: 8px; }
  .d01-atelier .d01-feature { padding: 12px 2px 11px; gap: 1px; }
  .d01-atelier .d01-feature-icon { width: 24px; height: 24px; margin-bottom: 3px; }
  .d01-atelier .d01-feature strong { font-size: .68rem; line-height: 1.2; }
  .d01-atelier .d01-feature span { font-size: .62rem; }
  .d01-atelier .d01-discovery { grid-template-columns: 1fr; gap: 22px; }
  .d01-atelier .d01r-library-art { max-width: 250px; }
  .d01-atelier .d01-picker-composition { gap: 12px; }
  /* Variant A (owner 15.11, mobile.html): the four spreads of the chosen deck as a 2 x 2 grid of cards (icon, count, name, access line), More readings under the grid. */
  .d01-atelier .d01-picker-data #spreadPicker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .d01-atelier .d01-picker-data .spread-option { min-height: 118px; padding: 11px; justify-content: flex-start; gap: 5px; }
  .d01-atelier .d01-picker-data .spread-option-meta { margin-top: 2px; }
  /* :is() lifts this to the Dark rule's specificity so mobile rows win in both themes. */
  :root:is([data-theme], :not([data-theme])) .d01-atelier .d01-picker-data .spread-option::before { position: static; align-self: flex-start; width: 30px; /* owner 14.11: one icon size for every kind (approved image or line icon); 32 px made the approved line art unreadable */ aspect-ratio: 1; margin: 0 0 2px; transform: none; border: 0; border-radius: 0; box-shadow: none; background: var(--d01-gold); -webkit-mask: var(--d01r-tile-icon) center / contain no-repeat; mask: var(--d01r-tile-icon) center / contain no-repeat; }
  .d01-atelier .d01-picker-data .spread-option-topline > span { top: 8px; inset-inline-end: 8px; transform: none; min-width: 20px; height: 20px; font-size: .68rem; }
  .d01-atelier .d01-picker-data .spread-option-topline strong { font-size: 1.02rem; }
  .d01-atelier .d01-picker-data .spread-option-meta-row { margin-top: auto; }
  .d01-atelier .d01-picker-data .spread-option-meta { font-size: .7rem; line-height: 1.3; }
  /* two columns of ~140 px: a long word (de "Vergangenheit/Gegenwart/Zukunft", uk, ja) breaks inside the card instead of widening the page */
  .d01-atelier .d01-picker-data .spread-option, .d01-atelier .d01-picker-data .spread-option-topline { min-width: 0; }
  .d01-atelier .d01-picker-data .spread-option-topline strong, .d01-atelier .d01-picker-data .spread-option-meta { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  .d01-atelier > section.d01-deeper { margin-inline: 16px; padding: 20px 18px; }
  .d01-atelier .d01r-deeper-moon { inset-inline-start: auto; inset-inline-end: 0; width: 96px; height: 96px; bottom: auto; opacity: .85; }
  body.d01-atelier-page .d01-atelier .d01r-deeper-copy .d01-cta { position: static; }
  .d01-atelier .d01-deeper-cards { grid-template-columns: 1fr; }
  .d01-atelier .d01-deeper-card { min-height: 0; padding-inline-start: 104px; }
  .d01-atelier .d01-deeper-card-icon { position: absolute; inset-inline-start: 18px; top: 50%; width: 60px; height: 60px; margin: 0; transform: translateY(-50%); }
  .d01-atelier .d01-crystal-cta { grid-template-columns: 1fr; padding-top: 190px; }
  .d01-atelier .d01r-crystal-scene { background-position: 14% center; }
  .d01-atelier .d01-crystal-cta > div:last-child { grid-column: 1; }
  .d01-atelier .d01-birth-cta { grid-template-columns: 1fr; padding-block: 26px; }
  .d01-atelier .d01-birth-wheel { justify-self: start; inline-size: 88px; }
  .d01-atelier .d01r-trust { grid-template-columns: 1fr; }
  .d01-atelier .d01r-trust-item { padding: 14px 4px; }
  .d01-atelier .d01r-trust-item:not(:last-child)::after { inset-inline-end: 0; inset-inline-start: 0; top: auto; bottom: 0; height: 0; border-inline-end: 0; border-bottom: 1px solid var(--d01-edge); }
  .d01-atelier .d01r-premium { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  .d01-atelier .d01r-premium-art { justify-self: center; }
}
@media (max-width: 360px) {
  .d01-atelier .d01r-display-title { font-size: 2.35rem; }
  .d01-atelier .d01-picker-data #spreadPicker { gap: 8px; }
  .d01-atelier .d01-picker-data .spread-option { padding: 12px 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .d01-atelier :where(.d01-cta, .d01-link-cta, .spread-option, .d01-deeper-card) { transition: none; }
  .d01-atelier :where(.d01-cta, .d01-link-cta, .spread-option, .d01-deeper-card):hover { transform: none; }
}

/* ======================================================================
 * Step 2 — the ONE native FE0 #readingWorkspace (markup and app.js unchanged).
 * Presentation only: an immersive full-width illuminated reading table with the board
 * controls laid over it (left: zoom/fit/fullscreen/labels); Reveal all / Hide all / Save / Share are the row under it (owner 14.11).
 * Table art is a NEW ART CANDIDATE (owner review pending); cards are TarotCardView only.
 * ====================================================================== */
.d01-atelier #readingWorkspace[hidden] { display: none !important; }
.d01-atelier-page #readingWorkspace.reading-workspace {
  --rw-control-bg: rgba(13, 15, 33, .74);
  --rw-control-edge: rgba(226, 177, 92, .5);
  --rw-control-ink: #f4e8d2;
  /* Reading Desk layout (#609, Astra prototype 14.11): the cards' viewport fills the window under the sticky header, the toolbar and the table's rail
     (the prototype's clamp(340px, 71dvh, 820px) for the whole table, here measured from the window the visitor actually has). Before a draw the desk fit
     (app.js scrollDeskIntoView) still trims it so heading, table and action row share one window; after the draw it is released (207302cdd). */
  --rw-board-height: clamp(440px, calc(100dvh - 200px), 768px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "toolbar" "about" "group" "board" "deskactions" "relations" "help" "legend" "detail";
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px var(--d01r-gutter) 30px;
  overflow: visible;
  border: 0;
  border-block: 1px solid var(--d01-edge);
  border-radius: 0;
  background: var(--d01r-band);
  box-shadow: none;
  backdrop-filter: none;
  color: var(--d01-ink);
  scroll-margin-top: 76px;
}
.d01-atelier-page #readingWorkspace.reading-workspace[data-expanded="true"] {
  --rw-board-height: max(520px, calc(100svh - 210px));
  position: fixed;
  inset: 12px;
  z-index: 1000;
  overflow: auto;
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid var(--d01-edge);
  border-radius: 16px;
  background: var(--d01-paper);
}
/* W23 #609 full screen: the TABLE takes the window. One compact row is the only chrome above it:
   title + meta, the status line (one ellipsised line, still a live region) and the actions; the
   back link, intro, keyboard help and legend step aside (the help stays the board's aria description).
   Exit full screen is the fixed button, so the actions row keeps clear of it. The selected-card detail
   sits below the table (scroll inside full screen), as before. Tarot Step 2 and the Gypsy desk share it. */
.d01-atelier-page #readingWorkspace.reading-workspace[data-expanded="true"] {
  --rw-chrome: 212px; /* 2 × 12 inset + 10 / 14 padding + 44 row + 8 below it + 8 of slack for the border + 56 for the action row under the board (owner 14.11) + 56 for the table's rail (status + tools) */
  padding: 10px 14px 14px;
  row-gap: 0; /* spacing is margin-based: empty grid rows (group nav, help, legend) must not add gaps */
  column-gap: 16px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "title title actions" "group group group" "board board board" "deskactions deskactions deskactions" "relations relations relations" "help help help" "legend legend legend" "detail detail detail";
}
.d01-atelier-page #readingWorkspace[data-expanded="true"] :is(#closeReadingWorkspace, .d01r-reading-intro, .board-help, .position-legend) { display: none; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-toolbar { display: contents; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-toolbar > div:first-child { grid-area: title; min-width: 0; display: flex; align-items: baseline; gap: 4px 12px; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] #readingTitle { font-size: clamp(1.25rem, 1.8vw, 1.6rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] #readingMeta { margin: 0; white-space: nowrap; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-actions { grid-area: actions; margin-block: 0 8px; margin-inline: 0 172px; flex-wrap: nowrap; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-notice { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-toolbar > div:first-child { margin-bottom: 8px; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-detail { margin-top: 10px; }
body.reading-workspace-expanded.d01-atelier-page #readingWorkspace[data-expanded="true"] .spread-viewport {
  height: max(420px, calc(100dvh - var(--rw-chrome, 100px)));
}
@media (max-width: 760px) {
  /* Phones: title row (beside the fixed Exit button), actions row, status line, then the table. */
  .d01-atelier-page #readingWorkspace.reading-workspace[data-expanded="true"] {
    --rw-chrome: 270px; /* + the rail: status line and the wrapped tools row */
    /* Keep the table above 90% of a phone viewport while retaining the safe-area inset. */
    padding-inline: 6px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "actions" "group" "board" "deskactions" "relations" "help" "legend" "detail";
  }
  .d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-toolbar > div:first-child { min-height: 44px; margin-bottom: 6px; padding-inline-end: 150px; align-items: center; }
  .d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-actions { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; width: 100%; margin: 0 0 6px; gap: 8px; }
  .d01-atelier-page #readingWorkspace[data-expanded="true"] .access-pill { display: none; }
  .d01-atelier-page #readingWorkspace[data-expanded="true"] :is(#saveReadingBtn, #upgradeFromSpreadBtn, #drawBtn) { flex: 1 1 0; }
}

/* Toolbar: back link, title + meta, access chip, Save, the ONLY Draw trigger. */
/* Reading Desk header (#609, owner 15.11): ONE compact block. Row 1: the spread's name with the access chip and the main button on the SAME line, centred on the
   name's own height; row 2: the meta ("12 Cards · Deep") with "About this spread" right after it on the same line (the text it opens goes under them).
   Narrow screens: name, meta line, then the chip and the button as one compact row under it. The first child (name + meta) is a layout-less wrapper here
   (display: contents); the full-screen desk below keeps its own flex wrapper. */
.d01-atelier-page .reading-workspace .reading-toolbar { grid-area: toolbar; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "metarow metarow"; align-items: center; gap: 0 16px; padding: 40px 0 0; border: 0; }
.d01-atelier-page #readingWorkspace:not([data-expanded="true"]) .reading-toolbar > div:first-child { display: contents; }
.d01-atelier-page #readingWorkspace:not([data-expanded="true"]) #readingTitle { grid-area: title; min-width: 0; overflow-wrap: anywhere; }
.d01-atelier-page #readingWorkspace:not([data-expanded="true"]) .reading-actions { grid-area: actions; justify-self: end; }
/* The meta floats at the start of its row and the disclosure is a real block box (so it stays a visible element for assistive tech and tests) that sits beside it on
   the same line; the text it opens starts below the float, full width. Float + logical side: it mirrors by itself in RTL. */
.d01-atelier-page #readingWorkspace .reading-meta-row { grid-area: metarow; display: flow-root; min-width: 0; }
.d01-atelier-page #readingWorkspace .reading-meta-row > #readingMeta { float: inline-start; margin: 0; margin-inline-end: 14px; line-height: 1.3; }
.d01-atelier-page #readingWorkspace .reading-meta-row > .spread-about { display: block; margin: 0; }
.d01-atelier-page #readingWorkspace .reading-meta-row > .spread-about > summary { display: flow-root; width: fit-content; max-width: 100%; cursor: pointer; list-style: none; min-block-size: 44px; margin-block: -13px; padding-block: 13px; line-height: 1.3; font-size: .88rem; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }
.d01-atelier-page #readingWorkspace .reading-meta-row > .spread-about > summary::-webkit-details-marker { display: none; }
.d01-atelier-page #readingWorkspace .reading-meta-row > .spread-about > summary::before { content: "\25B8"; display: inline-block; margin-inline-end: .45em; text-decoration: none; }
.d01-atelier-page #readingWorkspace .reading-meta-row > .spread-about[open] > summary::before { content: "\25BE"; }
.d01-atelier-page :is(:dir(rtl)) #readingWorkspace .reading-meta-row > .spread-about:not([open]) > summary::before { content: "\25C2"; }
.d01-atelier-page #readingWorkspace .reading-meta-row > .spread-about > .spread-about-dek { margin-block: 16px 8px; }
.d01-atelier-page #readingWorkspace .reading-meta-row > .spread-about > .spread-about-facts { margin-block-end: 6px; }
/* The line under the header: no extra space between the header and the table. */
.d01-atelier-page #readingWorkspace .d01r-reading-intro { margin: 8px 0 8px; line-height: 1.35; }
.d01-atelier-page #readingWorkspace .reading-toolbar .section-kicker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d01-atelier-page #readingWorkspace #readingTitle { margin: 0; font-family: var(--d01r-serif); font-weight: 500; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; color: var(--d01-ink); }
.d01-atelier-page #readingWorkspace #readingMeta { margin: 6px 0 0; font-size: .88rem; color: var(--d01-muted); }
.d01-atelier-page .reading-workspace .reading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.d01-atelier-page #readingWorkspace #closeReadingWorkspace { grid-area: toolbar; align-self: start; justify-self: start; z-index: 2; margin-top: 4px; }
/* d01r-two-state.js injects a second back control with the same action (wave20-step2 closes on both). */
.d01-atelier-page #readingWorkspace .d01r-back-button { display: none; }
.d01-atelier-page #readingWorkspace #closeReadingWorkspace { position: relative; min-height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--d01-ink); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.d01-atelier-page #readingWorkspace #closeReadingWorkspace:hover { color: var(--d01-plum); }
.d01-atelier-page #readingWorkspace .access-pill { padding: 5px 11px; border: 1px solid var(--d01-gold-soft); border-radius: 999px; background: transparent; font-size: .74rem; font-weight: 650; }
/* Save reading / Compare plans / Draw card are .ui-button variants: their look is the button system (ui-kit.css, docs/design/BUTTON_SYSTEM_SPEC.md). */
/* The status line (backend messages: "One card drawn", limits, errors) sits on the left of the table's rail, on the table's own dark glass in both themes. */
.d01-atelier-page #readingWorkspace .reading-notice { flex: 1 1 14rem; min-width: 0; margin: 0; padding: 7px 11px; border: 1px solid var(--rw-control-edge); border-radius: 9px; background: var(--rw-control-bg); color: var(--rw-control-ink); font-size: .84rem; line-height: 1.35; overflow-wrap: anywhere; backdrop-filter: blur(6px); }
.d01-atelier-page #readingWorkspace .reading-notice[data-tone="error"] { border-color: #e58a7a; }
/* Status messages show for a few seconds, then fade and give their space back (app.js setNotice). "gone" keeps the aria-live element in the accessibility tree
   but takes no room; with prefers-reduced-motion there is no fade, the message just disappears. */
.d01-atelier-page #readingWorkspace .reading-notice { max-height: 12rem; transition: opacity .3s ease, max-height .35s ease .1s, padding .35s ease .1s, border-width .35s ease .1s; }
.d01-atelier-page #readingWorkspace .reading-notice[data-state="fading"] { opacity: 0; max-height: 0; padding-block: 0 !important; border-width: 0; overflow: hidden; }
.d01-atelier-page #readingWorkspace .reading-notice[data-state="gone"] { position: absolute; width: 1px; height: 1px; min-width: 0; flex: none; margin: -1px; padding: 0 !important; border: 0; transition: none; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .d01-atelier-page #readingWorkspace .reading-notice { transition: none; } }
.d01-atelier-page #readingWorkspace #spreadGroupNav { grid-area: group; margin: 0 0 10px; }

/* The table (#609 Reading Desk layout): ONE framed surface, full width of the band. Its rail (status + tools) is on top, the cards' viewport under it,
   so no tool ever lies over a card and the board's fit (clientWidth / clientHeight) gets the whole width: no side strips any more. */
.d01-atelier-page .reading-workspace .reading-table {
  grid-area: board;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* clip, not hidden: a scroll container's automatic minimum height is 0, and full screen's fixed-height grid then squeezed the table's row (the table overflowed it). */
  overflow: clip;
  border: 1px solid var(--d01-gold-soft);
  border-radius: 18px;
  background: #15122a var(--d01r-table) center / cover no-repeat;
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .18), inset 0 0 90px rgba(0, 0, 0, .45), 0 22px 54px rgba(20, 12, 30, .22);
}
.d01-atelier-page .reading-workspace .reading-table-rail {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px 4px;
}
.d01-atelier-page .reading-workspace .spread-viewport {
  flex: none;
  height: var(--rw-board-height);
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 17px 17px;
  background: transparent;
  box-shadow: none;
}
.d01-atelier-page .reading-workspace .spread-viewport:focus-visible { outline-offset: -4px; }
/* The tools: one row in a glass pill at the rail's end (−, +, Fit, Full screen, Labels, Relations when the spread has relations, the zoom status). */
.d01-atelier-page .reading-workspace .board-controls {
  position: relative;
  top: auto;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-block: 0;
  margin-inline: auto 0;
  padding: 2px;
  border: 1px solid var(--rw-control-edge);
  border-radius: 10px;
  background: var(--rw-control-bg);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}
.d01-atelier-page .reading-workspace .board-controls .ui-button {
  min-width: 44px;
  min-height: 40px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--rw-control-ink);
  font-size: .78rem;
  font-weight: 600;
}
.d01-atelier-page .reading-workspace .board-controls .ui-button:hover:not(:disabled) { border-color: var(--d01-gold); }
.d01-atelier-page .reading-workspace .board-controls .ui-button:disabled { opacity: .5; }
.d01-atelier-page .reading-workspace .board-controls .ui-button[aria-pressed="true"] { border-color: var(--rw-control-edge); background: rgba(226, 177, 92, .16); }
.d01-atelier-page #readingWorkspace :is(#boardZoomIn, #boardZoomOut) { font-size: 1.1rem; }
.d01-atelier-page #readingWorkspace #boardRelations[hidden] { display: none; }
.d01-atelier-page #readingWorkspace #boardZoomStatus { padding-inline: 6px 8px; pointer-events: none; color: var(--rw-control-ink); font-size: .74rem; opacity: .8; white-space: nowrap; }
.d01-atelier-page #readingWorkspace #boardZoomStatus:empty { display: none; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] #boardFullscreen { display: none; }
/* Owner 14.11 (#609) item 4: ONE action row UNDER the board: Reveal all, Hide all, Save reading, Share reading; it wraps when narrow (two per line on phones). */
.d01-atelier-page #readingWorkspace .reading-desk-actions { grid-area: deskactions; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 12px 0 0; }
.d01-atelier-page #readingWorkspace .reading-desk-actions .ui-button { min-height: 44px; }
.d01-atelier-page #readingWorkspace[data-expanded="true"] .reading-desk-actions { margin: 8px 0 0; }
@media (max-width: 760px) {
  .d01-atelier-page #readingWorkspace .reading-desk-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 420px; justify-self: center; }
  .d01-atelier-page #readingWorkspace .reading-desk-actions .ui-button { width: 100%; min-width: 0; padding-inline: 8px; }
}
.d01-atelier-page #readingWorkspace .board-help { grid-area: help; margin: 10px 0 0; font-size: .78rem; color: var(--d01-muted); }
.d01-atelier-page #readingWorkspace .position-legend { grid-area: legend; margin: 12px 0 0; }
.d01-atelier-page #readingWorkspace .position-legend-number { color: var(--d01-gold); }

/* Selected-card interpretation panel. */
.d01-atelier-page .reading-workspace .reading-detail { grid-area: detail; margin-top: 18px; padding: clamp(16px, 2.2vw, 24px); border: 1px solid var(--d01-edge); border-radius: 14px; background: var(--d01r-tile-bg); box-shadow: var(--d01r-tile-shadow); }
.d01-atelier-page #readingWorkspace #detailCardName { margin: .1em 0 0; font-family: var(--d01r-serif); font-weight: 500; font-size: 1.3rem; }
.d01-atelier-page #readingWorkspace .reading-detail .section-kicker,
.d01-atelier-page #readingWorkspace .detail-grid dt { color: var(--d01r-kicker); font-size: .66rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.d01-atelier-page #readingWorkspace .detail-grid dd { color: var(--d01-ink); }
.d01-atelier-page #readingWorkspace #openCardFocus { min-height: 40px; border: 1px solid var(--d01-edge); border-radius: 8px; background: transparent; color: var(--d01-ink); }
.d01-atelier-page .reading-workspace :where(button, a):focus-visible,
.d01-atelier-page .saved-panel :where(button, a):focus-visible { outline: 3px solid var(--d01-gold); outline-offset: 3px; }

@media (max-width: 760px) {
  /* Phones: the cards' viewport keeps most of the window under the rail (status line, then the tools row). */
  .d01-atelier-page #readingWorkspace.reading-workspace { --rw-board-height: clamp(380px, calc(100dvh - 330px), 560px); /* 380 px floor as before: the empty desk's fit trims to 300, a drawn reading gets at least 380 back (desk-fit-release, 200% zoom) */ padding: 18px 16px 24px; }
  .d01-atelier-page .reading-workspace .reading-toolbar { padding-top: 38px; }
  /* The access pill stays next to Draw (Astra prototype): one row, Draw takes the rest of it; Compare plans (free users) wraps under them. */
  .d01-atelier-page #readingWorkspace .reading-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .d01-atelier-page #readingWorkspace .access-pill { flex: none; }
  .d01-atelier-page #readingWorkspace :is(#saveReadingBtn, #upgradeFromSpreadBtn, #drawBtn) { flex: 1 1 9rem; width: auto; min-width: 0; }
  .d01-atelier-page #readingWorkspace #upgradeFromSpreadBtn { order: 1; } /* Compare plans wraps after Draw: the pill keeps Draw's row */
  /* Phones: the status line takes the rail's first row, the tools pill the second (centred, wraps on 320). */
  .d01-atelier-page .reading-workspace .reading-table-rail { padding: 8px 8px 4px; gap: 6px; }
  .d01-atelier-page #readingWorkspace .reading-notice { flex-basis: 100%; font-size: .8rem; padding: 6px 9px; }
  .d01-atelier-page .reading-workspace .board-controls { margin-inline: auto; justify-content: center; }
  .d01-atelier-page #readingWorkspace #boardZoomStatus { display: none; }
  .d01-atelier-page .reading-workspace .board-controls .ui-button { min-width: 44px; min-height: 40px; padding: 5px 8px; font-size: .72rem; }
}
@media (max-width: 640px) {
  /* Narrow: name, meta line, then the chip and the button as ONE compact row under them. */
  .d01-atelier-page .reading-workspace .reading-toolbar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "metarow" "actions"; row-gap: 6px; }
  .d01-atelier-page #readingWorkspace:not([data-expanded="true"]) .reading-actions { justify-self: stretch; width: 100%; margin-top: 4px; }
  /* The chip and the main button share ONE row down to 320 px (the button may wrap its label to two lines rather than drop under the chip). */
  .d01-atelier-page #readingWorkspace .reading-actions :is(#saveReadingBtn, #upgradeFromSpreadBtn, #drawBtn) { flex-basis: 6.5rem; }
  .d01-atelier-page #readingWorkspace .reading-actions .access-pill { padding-inline: 9px; font-size: .7rem; white-space: normal; text-align: center; max-width: 45%; }
}
@media (max-width: 360px) {
  /* 320: the five tools stay one row (44 px targets kept). */
  .d01-atelier-page .reading-workspace .board-controls { gap: 0; padding: 1px; }
  .d01-atelier-page .reading-workspace .board-controls .ui-button { padding-inline: 5px; font-size: .68rem; letter-spacing: -.01em; }
}

/* W23 #609 owner acceptance polish (2026-10-23): one-line cue, no duplicate hint, mobile overlaps. CSS only. */
.d01-atelier .d01-picker-data .spread-option .spread-selection-hint { display: none; }
.d01-atelier .d01-picker-data .spread-option-selection-cue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* one line inside its card: a long cue (fr "Cliquez à nouveau pour commencer →" in a 2 x 2 phone card or a 4-column tablet row) ends in "…" instead of widening the page */
@media (max-width: 760px) {
  :root:is([data-theme], :not([data-theme])) body.d01-atelier-page .d01-atelier .d01-deeper .d01r-deeper-copy .d01-cta { position: static; margin-top: 14px; }
  .d01-atelier .d01-deeper-card { justify-content: center; padding-inline-end: 56px; }
  .d01-atelier .d01-deeper-card .d01r-premium-badge { position: static; order: -1; align-self: flex-start; margin-bottom: 4px; }
  /* Crystal Ball: the artwork is untouched; a night scrim behind the text keeps "Look ahead" readable over the orb. */
  .d01-atelier .d01-crystal-cta > div:last-child { position: relative; }
  .d01-atelier .d01-crystal-cta > div:last-child::before { content: ""; position: absolute; z-index: -1; inset: -36px -100vw -40px; background: linear-gradient(to bottom, rgba(18, 20, 42, 0), rgba(18, 20, 42, .9) 44px); }
  .d01-atelier .d01-crystal-cta :is(.d01-kicker, h2, p) { text-shadow: 0 1px 8px rgba(10, 10, 30, .85); }
}

/* The illustrated table stays dark in both page themes. Its position labels
 * must use the table ink, rather than the Day page's dark text token. */
.d01-atelier-page #readingWorkspace .spread-viewport .position-label {
  color: var(--rw-control-ink, #f4e8d2);
  text-shadow: 0 1px 3px rgba(13, 15, 33, .9);
}

/* ACC-6 #609: visible way back to the active reading */
.resume-reading-card { margin: 0 auto 16px; padding: 14px clamp(14px, 3vw, 22px); max-inline-size: min(720px, calc(100% - 32px)); }
.resume-reading-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.resume-reading-card p { margin: 0 0 10px; }
.resume-reading-card .reading-share-actions { margin-top: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.resume-reading-card button { min-block-size: 44px; }

/* ACC-8 #609: selected card is its own state; Flip is a separate, visible action (44px targets, no motion when reduced) */
.spread-slot[data-selected="true"] { outline: 3px solid var(--d01-gold, #d8a965); outline-offset: 3px; border-radius: 10px; }
.spread-slot:focus-visible { outline: 3px solid var(--d01-gold, #d8a965); outline-offset: 3px; }
.card-flip-action, .card-reveal-to-read { min-block-size: 44px; min-inline-size: 44px; }
@media (prefers-reduced-motion: reduce) { .spread-slot[data-selected] * { transition: none !important; animation: none !important; } }

/* #609 big spreads: cards related to the selected one. Each relation has its own line style, so colour is never the only cue. */
.spread-slot[data-relation], .spread-relation-swatch { outline-offset: 2px; border-radius: 8px; }
.spread-slot[data-relation="touching"], .spread-relation-swatch[data-relation="touching"],
.spread-slot[data-relation="axis"], .spread-relation-swatch[data-relation="axis"],
.spread-slot[data-relation="heart"], .spread-relation-swatch[data-relation="heart"],
.spread-slot[data-relation="past"], .spread-relation-swatch[data-relation="past"] { outline: 3px solid #1d9e75; }
.spread-slot[data-relation="mirror"], .spread-relation-swatch[data-relation="mirror"],
.spread-slot[data-relation="support"], .spread-relation-swatch[data-relation="support"],
.spread-slot[data-relation="pair"], .spread-relation-swatch[data-relation="pair"],
.spread-slot[data-relation="future"], .spread-relation-swatch[data-relation="future"] { outline: 3px dashed #d4537e; }
.spread-slot[data-relation="corner"], .spread-relation-swatch[data-relation="corner"],
.spread-slot[data-relation="group"], .spread-relation-swatch[data-relation="group"],
.spread-slot[data-relation="head"], .spread-relation-swatch[data-relation="head"] { outline: 3px dotted #378add; }
.spread-slot[data-relation="knight"], .spread-relation-swatch[data-relation="knight"],
.spread-slot[data-relation="column"], .spread-relation-swatch[data-relation="column"],
.spread-slot[data-relation="underfoot"], .spread-relation-swatch[data-relation="underfoot"] { outline: 4px double #d85a30; }
.spread-slot[data-relation="diagonal"], .spread-relation-swatch[data-relation="diagonal"] { outline: 2px dashed #8a8a8a; }
.spread-slot[data-relation-near="true"] { outline-width: 5px; }
.spread-stage[data-relations="on"] .spread-slot:not([data-relation]):not([data-selected="true"]) { opacity: .6; }
.spread-relations-area { grid-area: relations; min-width: 0; }
.spread-relation-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; font-size: 14px; }
.spread-relation-legend[hidden] { display: none; }
.spread-relation-key { display: inline-flex; align-items: center; gap: 8px; }
.spread-relation-swatch { display: inline-block; inline-size: 14px; block-size: 14px; flex: none; }
.spread-position-panel { margin: 10px 0 0; padding: 12px 16px; border: 1px solid var(--d01-edge, var(--border)); border-radius: 12px; overflow-wrap: anywhere; }
.spread-position-panel[hidden] { display: none; }
.spread-position-panel-title { margin: 0 0 6px; font-size: 1.05rem; }
.spread-position-panel-related { margin: 10px 0 2px; font-size: .9rem; }
.spread-position-panel-line, .spread-position-panel-text, .spread-position-panel-empty { margin: 4px 0 0; }
.spread-position-panel-note { margin: 8px 0 0; font-size: .85rem; opacity: .85; }
/* Over 13 positions the list under the board is for screen readers only; the panel replaces it visually. */
.position-legend.position-legend--sr, .d01-atelier-page #readingWorkspace .position-legend.position-legend--sr, .d01-atelier-page #readingWorkspace[data-expanded="true"] .position-legend.position-legend--sr { display: block; position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spread-about { grid-area: about; margin: 0 0 12px; }
#readingWorkspace[data-expanded="true"] .spread-about { display: none; }
.spread-about > summary { cursor: pointer; min-block-size: 44px; padding-block: 11px; font-weight: 600; }
.spread-about-dek { margin: 0 0 10px; }
.spread-about-facts { margin: 0; }
.spread-about-facts dt { font-weight: 600; margin-block-start: 8px; }
.spread-about-facts dd { margin: 2px 0 0; }

/* R-10 + #703: Tarot spreads with an owner-approved image icon (public/spread-icons.js). The file is a one-colour SHAPE (alpha mask, scripts/build-spread-icons.mjs), painted with the
   same gold token as the line icons (Celtic Cross, Zodiac, Star): one colour for Day and Dark, the same intensity on all 16 tiles. Same box as the line icons. */
.d01-atelier .d01-picker-data .spread-option[data-icon-kind="image"]::before { background: var(--d01-gold); -webkit-mask: var(--d01r-tile-img) center / contain no-repeat; mask: var(--d01r-tile-img) center / contain no-repeat; border-radius: 0; }
/* the phone layout (<= the picker's single-column breakpoint) restyles ::before with a higher-specificity rule: the image icon keeps its mask there too */
:root:is([data-theme], :not([data-theme])) .d01-atelier .d01-picker-data .spread-option[data-icon-kind="image"]::before { background: var(--d01-gold); -webkit-mask: var(--d01r-tile-img) center / contain no-repeat; mask: var(--d01r-tile-img) center / contain no-repeat; border-radius: 0; } /* owner 14.11 (#609): no own width: the image icon has the SAME box as the line icons (44 px; 40 px in the phone rows) in the four decks */

/* ---------- Deck promo (#703, MC1 T2 part B): the registry-driven block between Premium and the footer ---------- */
.d01-atelier .d01r-promo { margin-top: 22px; border-block: 1px solid var(--d01-edge); background: var(--d01r-band); }
.d01-atelier .d01r-promo-link { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 32px; align-items: center; padding-block: 26px; color: inherit; text-decoration: none; }
.d01-atelier .d01r-promo-art.d01r-library-art { max-width: 420px; }
.d01-atelier .d01r-promo-copy { min-width: 0; }
.d01-atelier .d01r-promo h2 { margin: .2em 0 .5em; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; }
.d01-atelier .d01r-promo-link:hover .d01r-promo-cta { background: var(--d01-plum); color: var(--d01r-band); }
.d01-atelier .d01r-promo-link:focus-visible { outline: 3px solid var(--d01-gold); outline-offset: -3px; }
@media (max-width: 760px) {
  .d01-atelier .d01r-promo-link { grid-template-columns: 1fr; gap: 18px; padding-block: 22px; text-align: center; justify-items: center; }
  .d01-atelier .d01r-promo-art.d01r-library-art { max-width: 250px; }
}
@media (prefers-reduced-motion: no-preference) { .d01-atelier .d01r-promo-cta { transition: background-color .15s ease, color .15s ease; } }

/* R-11: a paid spread the visitor cannot draw is visibly CLOSED on its tile before the click: a small padlock before the (localized) "Full access required". CSS only,
   currentColor, no layout change (the meta text keeps its row; the lock is an inline mask). */
.spread-option[data-locked="true"] .spread-option-meta::before {
  content: "";
  display: inline-block;
  width: .85em;
  height: .85em;
  margin-inline-end: .35em;
  vertical-align: -.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-7-2a2 2 0 0 1 4 0v2h-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-7-2a2 2 0 0 1 4 0v2h-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
