/* My Studio 2.0 RC1 (13 Oct 2026). The presentation layer over the 6.4.2 hub, scoped to html.wg-studio.
   Without that class (Classic view, or the head script never ran) every new element is hidden and the hub is the
   6.4.2 hub. Tokens only from css/tokens.css; purple = active nav, primary action, real progress. */

/* ── Classic view: nothing of the studio shows ─────────────────────────────────────────────────────────────── */
html:not(.wg-studio) .studio-nav, html:not(.wg-studio) .studio-search-btn, html:not(.wg-studio) .studio-hero-plate,
html:not(.wg-studio) .studio-hero-cover, html:not(.wg-studio) .studio-first-win, html:not(.wg-studio) .studio-tools-row,
html:not(.wg-studio) .studio-mentee, html:not(.wg-studio) .studio-today-line, html:not(.wg-studio) .studio-more-h,
html:not(.wg-studio) .studio-lifetime, html:not(.wg-studio) .studio-strip-link, html:not(.wg-studio) .studio-search,
html:not(.wg-studio) #studio-view-path, html:not(.wg-studio) #studio-view-practice,
html:not(.wg-studio) #studio-view-library, html:not(.wg-studio) #studio-view-explore,
html:not(.wg-studio) #studio-view-learning, html:not(.wg-studio) #studio-view-goals { display: none !important; }
/* the classic hub's way back to the studio; never shown under the studio layer */
html.wg-studio .studio-return { display: none !important; }
.studio-return { margin: 10px 0 0; }
.studio-return-btn {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-card);
  color: var(--text-primary); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.studio-return-btn:hover { background: var(--bg-hover); }
.studio-return-btn:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.studio-view[hidden], .studio-tabpanel[hidden], .studio-search[hidden], [hidden].studio-hero-cover, [hidden].studio-first-win, [hidden].studio-mentee,
[hidden].studio-lifetime, #studio-explore-detail[hidden], #studio-explore-list[hidden], #studio-explore-head[hidden] { display: none !important; }

/* ── Shell: sidebar (desktop) and bottom bar (phones) ──────────────────────────────────────────────────────── */
html.wg-studio { --studio-nav-w: 248px; --studio-max: 1120px; --studio-radius: 20px; }
html.wg-studio .bg-canvas { opacity: .55; }
html.wg-studio .hub-main { max-width: none; padding: calc(var(--header-height) + 28px) 40px 72px; }
html.wg-studio .hub-main > .studio-view { max-width: var(--studio-max); margin: 0 auto; }
html.wg-studio .hub-footer { max-width: var(--studio-max); margin-left: auto; margin-right: auto; }
/* R2 (hub CLS 0.264): #hub-content stays display:none until the hub script shows it (after sign-in, seconds on a slow phone);
   meanwhile the footer starts one screen down, so it never sits on screen and jumps when the content arrives
   (tests/r2-perf-static.node.js S5, tests/r2-hub-cls.spec.js). Still reachable by scrolling. */
html.wg-studio #hub-content:not([style*="block"]) ~ .hub-footer { top: 100vh; }   /* .hub-footer is position: relative (hub.css): an offset, not a margin (a margin collapsed into body and moved the whole page, CLS 1.0) */

.studio-nav {
  position: fixed; z-index: 101; top: 0; bottom: 0; left: 0; width: var(--studio-nav-w);
  display: flex; flex-direction: column; gap: 4px; padding: 22px 16px 20px;
  background: var(--bg-sidebar); border-right: 1px solid var(--border-subtle);
}
.studio-brand {
  display: block; margin: 2px 10px 26px; text-decoration: none; color: var(--text-primary);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.1;
}
.studio-brand span { color: var(--purple-text); }
.studio-brand small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); letter-spacing: .01em; }
.studio-nav-link {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px;
  color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 600; transition: background .2s, color .2s;
}
.studio-nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.studio-nav-link[aria-current="page"] { background: rgba(96, 54, 232, .16); color: var(--text-primary); box-shadow: inset 3px 0 0 var(--purple); }
.studio-nav-link[aria-current="page"] svg { color: var(--purple-text); }
.studio-nav-link:focus-visible, .studio-nav-foot a:focus-visible, .studio-nav-foot button:focus-visible, .studio-brand:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.studio-nav-mentor { display: none; }
[data-studio-mentor][hidden] { display: none !important; }
.studio-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.studio-nav-foot a, .studio-nav-foot button {
  display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: var(--text-sm);
  color: var(--text-muted); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
}
.studio-nav-foot a:hover, .studio-nav-foot button:hover { color: var(--text-primary); background: var(--bg-hover); }

/* Go Deeper (Daniel 18 Oct 2026): below the core areas; aspirational, quiet, never a catalog. No prices, no badges.
   The only accent is a thin gold line on the crown (premium, calm). Sidebar copy + phone menu copy, one renderer. */
.studio-nav { overflow-y: auto; }
.gd[hidden] { display: none !important; }
.gd { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; padding: 0 0 12px; border-bottom: 1px solid var(--border-subtle); }
.gd-h { display: flex; align-items: center; gap: 8px; margin: 2px 14px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.gd-h svg { color: var(--purple-text); }
.gd-h[hidden] { display: none; }   /* fix round F1: the neutral mode draws no heading at all */
.gd-list { display: flex; flex-direction: column; gap: 2px; }
.studio-nav-foot .gd-row, .gd-row {
  display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 9px 14px; border-radius: 12px; text-decoration: none;
  color: var(--text-primary); background: none; text-align: left; font-size: inherit;
}
.studio-nav-foot a.gd-row:hover, a.gd-row:hover { background: var(--bg-hover); color: var(--text-primary); }
a.gd-row:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.gd-ico { flex: 0 0 auto; margin-top: 1px; color: var(--text-secondary); }
.gd-row[data-gd-row="mentor"] .gd-ico { color: #c9a24a; }   /* the crown: a thin gold line, nothing else */
.gd-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd-t { font-size: .92rem; font-weight: 650; line-height: 1.3; color: var(--text-primary); }
.gd-l { font-size: var(--text-sm); line-height: 1.4; color: var(--text-muted); }
.gd-more { font-size: var(--text-sm); font-weight: 600; color: var(--purple-text); line-height: 1.4; }
.gd-soon { align-self: flex-start; margin-top: 3px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border-subtle); font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--text-secondary); }
.gd-own { display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary); }   /* fix round F1: an owned row reads as owned (a check), below the offers */
.gd-own svg { flex: none; color: var(--green-text, #4ade80); }
.gd-panel { margin: 0; padding: 10px 12px 12px; }
/* Release A item 5 (Daniel 8 Nov 2026): the one-line intro under "Upgrade" */
.gd-intro { margin: -2px 14px 6px; font-size: var(--text-sm); line-height: 1.4; color: var(--text-muted); }
html.wg-studio .gd-panel .gd-intro { font-size: var(--studio-reading, 1rem); }
@media (min-width: 1025px) { #practice-panel .gd-panel { display: none !important; } }   /* desktop: the sidebar holds it */
html.wg-studio .gd-panel :is(.gd-t, .gd-l, .gd-more, .gd-soon, .gd-h) { font-size: var(--studio-reading, 1rem); }   /* phone reading: 16 px, the heading and the pill included */
html.wg-studio .gd-panel .gd-h { letter-spacing: .06em; }
/* With Go Deeper the menu holds more than one screen on small phones and at 200% text: the whole panel scrolls, so nothing
   (Go Deeper, the notes, the footer) is ever squeezed to nothing or cut off at the bottom (tests/v2c-phone-reading.spec.js R3) */
@media (max-width: 1024px) {
  html.wg-studio #practice-panel.practice-panel { overflow-y: auto; overscroll-behavior: contain; }
  html.wg-studio #practice-panel .pp-content { flex: 1 0 auto; min-height: 120px; overflow-y: visible; }
}

@media (min-width: 1025px) {
  html.wg-studio .header { left: var(--studio-nav-w); }
  html.wg-studio .header-logo { display: none; }
  html.wg-studio .hub-main { margin-left: var(--studio-nav-w); }
  html.wg-studio .hub-footer { padding-left: var(--studio-nav-w); }
}
@media (max-width: 1024px) {
  .studio-nav {
    top: auto; right: 0; width: auto; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    flex-direction: row; gap: 0; border-right: 0; border-top: 1px solid var(--border-subtle);
    background: var(--bg-header); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  }
  .studio-brand, .studio-nav-foot { display: none; }
  /* V2 (Daniel 17 Oct): the phone bar holds the five areas only; Work with Daniel is in the menu (#practice-panel footer) */
  .studio-nav-mentor { display: none !important; }
  .studio-nav-long { display: none; }   /* the phone bar says "Training" (designer mock); the link's name stays Training Center */
  .studio-nav-link { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; min-height: 64px; padding: 0 2px; border-radius: 0; font-size: 11px; font-weight: 600; text-align: center; }
  .studio-nav-link span { white-space: nowrap; }
  .studio-nav-link[aria-current="page"] { background: none; box-shadow: inset 0 2px 0 var(--purple); color: var(--text-primary); }
  html.wg-studio .hub-main { padding: calc(var(--header-height) + 20px) 20px calc(96px + env(safe-area-inset-bottom)); }
  html.wg-studio .hub-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* floating helpers sit above the bottom bar, never under it. The Help pill and panel read --wg-help-bottom (js/help.js
     sets it inline from the 6.4.2 bars, which the studio bar is not one of, so !important here): bar 64 px + 12 px. */
  html.wg-studio { --wg-help-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  html.wg-studio .wg-shortcut-toast { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 400px) { .studio-nav-link { font-size: 10px; } html.wg-studio .hub-main { padding-left: 14px; padding-right: 14px; } }

/* ── Header utility: search ────────────────────────────────────────────────────────────────────────────────── */
html.wg-studio .header-right { flex: 1; justify-content: flex-end; }
.studio-search-btn {
  margin-right: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; width: min(420px, 46vw); padding: 0 12px 0 14px;
  border-radius: 12px; border: 1px solid var(--glass-border); background: var(--bg-glass); color: var(--text-muted); font: inherit; font-size: var(--text-sm); cursor: pointer; text-align: left;
}
.studio-search-btn:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.studio-search-btn:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.studio-search-ph { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-kbd { font: 600 11px/1 var(--font-body); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--glass-border); color: var(--text-muted); }
@media (max-width: 767px) {
  .studio-search-btn { width: 44px; height: 44px; padding: 0; justify-content: center; margin-right: 0; margin-left: auto; }
  .studio-search-ph, .studio-kbd { display: none; }
  html.wg-studio .header-right { gap: 8px; }
}

/* ── Type and shared pieces ────────────────────────────────────────────────────────────────────────────────── */
.studio-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-text); margin-bottom: 8px; }
.studio-page-head { margin: 4px 0 28px; }
.studio-page-head h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 8px; color: var(--text-primary); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.studio-page-sub { font-size: var(--text-md); color: var(--text-secondary); margin: 0; max-width: 46em; }
.studio-subhead { font-size: var(--text-lg); margin: 36px 0 6px; color: var(--text-primary); }
.studio-small { font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 16px; }
.studio-empty { padding: 28px; border-radius: var(--studio-radius); border: 1px dashed var(--glass-border); color: var(--text-secondary); line-height: 1.6; }
.studio-empty a { color: var(--purple-text); font-weight: 600; }
.studio-lifetime {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--green-text); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3);
}
.studio-lifetime::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.studio-strip-link { margin-left: auto; font-size: var(--text-sm); font-weight: 600; color: var(--purple-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.studio-strip-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-btn, .sx-btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px;
  font: 600 .92rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.sx-btn { color: #fff; background: var(--purple); border: 0; box-shadow: 0 6px 20px rgba(96, 54, 232, .35); }
.sx-btn:hover { background: #6f47f0; }
.sx-btn-quiet { color: var(--text-primary); background: var(--bg-glass); border: 1px solid var(--glass-border); }
.sx-btn-quiet:hover { border-color: var(--border-hover); }
.sx-btn:focus-visible, .sx-btn-quiet:focus-visible, .sx-more:focus-visible, .sx-title a:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 3px; }

/* ── TODAY ─────────────────────────────────────────────────────────────────────────────────────────────────── */
html.wg-studio .hub-command { margin-bottom: 22px; }
html.wg-studio .hub-command h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 8px; }
html.wg-studio .hub-phase-status { font-size: var(--text-base); color: var(--text-secondary); }
.studio-today-line { margin: 6px 0 0; font-size: var(--text-md); color: var(--text-secondary); }
.studio-today-line:empty { display: none; }

/* the hero: a dark studio plate in both themes (stage light), built in CSS, no photograph, no person */
.studio-hero { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 20px; isolation: isolate; }
.studio-hero-plate, .studio-explore-plate, .sx-plate {
  background:
    radial-gradient(60% 90% at 82% 40%, rgba(202, 63, 160, .22), transparent 60%),
    radial-gradient(55% 80% at 70% 70%, rgba(96, 54, 232, .38), transparent 62%),
    radial-gradient(35% 50% at 92% 10%, rgba(255, 214, 170, .10), transparent 70%),
    linear-gradient(100deg, #0b0914 0%, #120d22 45%, #1b1230 100%);
}
.studio-hero-plate { position: absolute; inset: 0; z-index: -1; }
/* the plate's darkest stop under it (13 Nov 2026): the Continue text is light in both themes, so the box behind it is dark
   even where the plate does not paint. The plate (z-index -1 in this isolated box) covers it everywhere it paints. */
html.wg-studio .studio-hero { background-color: #110e21; background-clip: padding-box; }
/* six strings across the right of the plate, catching the light (decorative) */
.studio-hero-plate::before {
  content: ""; position: absolute; right: -4%; top: 18%; width: 62%; height: 62%; transform: rotate(-7deg);
  background: repeating-linear-gradient(180deg, transparent 0 13.5%, rgba(255, 236, 214, .22) 13.5% calc(13.5% + 1px), transparent calc(13.5% + 1px) 16.66%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 35%, #000 80%, transparent);
}
.studio-hero-plate::after {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.studio-first-win { position: relative; padding: 40px 44px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; color: #f6f3ff; }
.studio-first-win .studio-eyebrow { color: #c9b8ff; }
.studio-first-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: 0; color: #fff; max-width: 18em; }
.studio-first-desc { margin: 0 0 8px; color: #d7cdef; font-size: var(--text-md); }
@media (max-width: 767px) {
  .studio-first-win { padding: 28px 22px; min-height: 0; }
}

/* a mentee's coaching note, the Lab owner slot and the rest: calm cards */
.studio-mentee { padding: 22px 26px; margin-bottom: 20px; border-radius: var(--studio-radius); background: var(--mentorship-bg); border: 1px solid var(--mentorship-border); }
.studio-mentee h2 { font-size: var(--text-lg); margin: 0 0 6px; color: var(--text-primary); }
.studio-mentee p { margin: 0; color: var(--text-secondary); }
.studio-mentee a { color: var(--purple-text); font-weight: 600; }
html.wg-studio .hub-glass-card, html.wg-studio .practice-list-section, html.wg-studio .ia-upsell-card {
  border-radius: var(--studio-radius); background: var(--bg-card); border: 1px solid var(--glass-border); box-shadow: var(--shadow-card);
}
html.wg-studio .hub-glass-card::before, html.wg-studio .hub-glass-card::after { opacity: .35; }
html.wg-studio .today-card { padding: 26px 28px; margin-bottom: 20px; }
html.wg-studio .practice-list-section { padding: 20px 24px; margin-bottom: 20px; }

/* the Path strip: six official covers, readable, every one a real door (owned) or the owner-aware unlock (not owned) */
html.wg-studio .hub-roadmap { padding: 24px 24px 20px; margin-bottom: 20px; }
html.wg-studio .roadmap-header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; text-align: left; margin-bottom: 18px; }
html.wg-studio .roadmap-label { margin: 0; }
html.wg-studio .roadmap-title { font-size: 1.25rem; }
@media (min-width: 900px) { html.wg-studio #studio-view-today .roadmap-phases { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
html.wg-studio .roadmap-phase { border-radius: 14px; }
html.wg-studio .roadmap-phase:hover .roadmap-phase-img { transform: scale(1.03); }
html.wg-studio .roadmap-phase:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 3px; }

.studio-tools-row { margin-bottom: 28px; }
.studio-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.studio-section-head h2 { font-size: 1.25rem; margin: 0; color: var(--text-primary); }
.studio-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.studio-tool {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; min-height: 150px; border-radius: 18px; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--glass-border); box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s;
}
.studio-tool:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.studio-tool:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 3px; }
.studio-tool-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--purple-text); background: rgba(96, 54, 232, .12); }
.studio-tool-t { font-weight: 700; color: var(--text-primary); font-size: .98rem; }
.studio-tool-l { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.45; }
.studio-tools-big .studio-tool { min-height: 190px; padding: 26px; }
@media (max-width: 899px) { .studio-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .studio-tool { min-height: 0; padding: 16px; } }
.studio-more-h { margin: 36px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
html.wg-studio .hub-mentorship { background: var(--bg-card); }

/* ── MY LEARNING (R2): one page head, three tabs (My Path, My Courses, By Musical Goal); each panel keeps its own head ── */
.studio-learning-head { margin-bottom: 16px; }
.studio-tabs { display: flex; gap: 4px; margin: 0 0 24px; padding: 4px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--glass-border); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.studio-tabs::-webkit-scrollbar { display: none; }
.studio-tabs [role="tab"] { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--text-secondary); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.studio-tabs [role="tab"]:hover { color: var(--text-primary); background: var(--bg-hover); }
.studio-tabs [role="tab"][aria-selected="true"] { background: rgba(96, 54, 232, .22); color: var(--text-primary); box-shadow: inset 0 0 0 1px rgba(150, 120, 255, .45); }
.studio-tabs [role="tab"]:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
[data-theme="light"] .studio-tabs [role="tab"][aria-selected="true"] { background: rgba(96, 54, 232, .12); }
.studio-panel-head { margin-top: 0; }
.studio-panel-head h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; margin: 0 0 8px; color: var(--text-primary); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.studio-tabpanel:focus { outline: none; }
.sx-chip-text { cursor: default; opacity: .8; }
@media (max-width: 600px) { .studio-tabs { width: 100%; } .studio-tabs [role="tab"] { flex: 1 1 auto; padding: 0 10px; font-size: .84rem; } }

/* ── MY PATH ───────────────────────────────────────────────────────────────────────────────────────────────── */
html.wg-studio[data-studio-view="learning"][data-studio-sub="path"] .hub-roadmap { padding: 28px; }
html.wg-studio[data-studio-view="learning"][data-studio-sub="path"] .roadmap-header { display: none; }
html.wg-studio[data-studio-view="learning"][data-studio-sub="path"] .roadmap-phases { grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 600px) { html.wg-studio[data-studio-view="learning"][data-studio-sub="path"] .roadmap-phases { grid-template-columns: repeat(2, 1fr); gap: 12px; } html.wg-studio[data-studio-view="learning"][data-studio-sub="path"] .hub-roadmap { padding: 14px; } }
.studio-path-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-secondary); }
.studio-path-continue[hidden] { display: none; }
.studio-path-continue svg { color: var(--purple-text); flex: 0 0 auto; }
.studio-path-continue .spc-k { font-weight: 700; color: var(--text-primary); }
.studio-path-continue a { color: var(--purple-text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
/* R2 drawer: inside the Studio, Explore is a primary destination, so the panel does not repeat it (the account page keeps its link) */
html.wg-studio #practice-panel .pp-footer [data-wg-ways-link] { display: none; }
/* R2 UX audit F1: inline action links are full touch targets on touch screens; text and layout unchanged */
@media (pointer: coarse) {
  .studio-today-link a, .sx-owned-line a, .sx-owned-line button, .sx-group-interest a, .studio-strip-link { display: inline-flex; align-items: center; min-height: 44px; }
  /* R2 UX baseline N1: My Path price links, thumb-sized and never broken across lines */
  .spm-a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  /* R2 UX baseline N2: links inside a sentence keep their line; the padding is their 44 px touch area */
  .studio-empty a { padding-block: 13px; }
}
.sx-see { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--purple-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sx-see:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.spm-a { margin-left: 8px; color: var(--purple-text); font-weight: 600; }
.studio-path-meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.studio-path-meta li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--glass-border); }
.spm-n { grid-row: 1 / 3; align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-text); }
.spm-t { font-weight: 700; color: var(--text-primary); }
.spm-s { font-size: var(--text-sm); color: var(--text-secondary); }
@media (max-width: 600px) { .studio-path-meta { grid-template-columns: 1fr; } }

/* ── PRACTICE ──────────────────────────────────────────────────────────────────────────────────────────────── */
.studio-practice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.studio-practice-slot:empty { display: none; }
.studio-practice-slot { margin-bottom: 20px; }

/* ── MY LIBRARY ────────────────────────────────────────────────────────────────────────────────────────────── */
.studio-lib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.studio-lib-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--field-bg); color: var(--text-muted); }
.studio-lib-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text-primary); font: inherit; font-size: var(--text-base); min-height: 44px; }
.studio-lib-search input:focus { outline: none; }
.studio-lib-search:focus-within { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-chips button { min-height: 44px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--bg-glass); color: var(--text-secondary); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
.studio-chips button[aria-pressed="true"] { background: rgba(96, 54, 232, .16); border-color: rgba(96, 54, 232, .45); color: var(--text-primary); }
.studio-chips button:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.sl-group { margin-bottom: 30px; }
.sl-group-h { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin: 0 0 14px; color: var(--text-primary); }
.sl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.sl-item { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.sl-item img, .sl-noimg { width: 100%; height: auto; aspect-ratio: 415 / 481; object-fit: cover; border-radius: 14px; border: 1px solid var(--glass-border); margin-bottom: 8px; transition: transform .2s; }
.sl-noimg { display: flex; align-items: center; justify-content: center; background: var(--bg-card); color: var(--text-muted); }
.sl-item:hover img { transform: translateY(-2px); }
.sl-item:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 4px; border-radius: 14px; }
.sl-t { font-weight: 700; color: var(--text-primary); }
.sl-m { font-size: var(--text-sm); color: var(--text-secondary); }
.sl-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--green-text); }
.sl-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sl-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--glass-border); text-decoration: none; color: var(--text-primary); }
.sl-row svg { color: var(--purple-text); flex-shrink: 0; }
.sl-row-t { flex: 1; font-weight: 600; }
.sl-row-c { font-size: var(--text-sm); color: var(--text-muted); }
.sl-foot { font-size: var(--text-sm); color: var(--text-muted); }
.sl-foot a { color: var(--purple-text); font-weight: 600; }
@media (max-width: 600px) { .sl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .sl-row-c { display: none; } }

/* ── EXPLORE ───────────────────────────────────────────────────────────────────────────────────────────────── */
.studio-explore-head { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 36px; min-height: 260px; display: flex; align-items: flex-end; isolation: isolate; }
.studio-explore-plate { position: absolute; inset: 0; z-index: -1; }
/* six quiet pools of the six phase colors, moving across the dark (P06 direction, CSS) */
.studio-explore-plate::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(14% 40% at 46% 62%, rgba(96, 54, 232, .45), transparent 70%),
    radial-gradient(14% 40% at 56% 40%, rgba(37, 99, 235, .40), transparent 70%),
    radial-gradient(14% 40% at 65% 66%, rgba(5, 150, 105, .36), transparent 70%),
    radial-gradient(14% 40% at 74% 38%, rgba(219, 39, 119, .38), transparent 70%),
    radial-gradient(14% 40% at 83% 62%, rgba(217, 119, 6, .36), transparent 70%),
    radial-gradient(14% 40% at 92% 40%, rgba(220, 38, 38, .34), transparent 70%);
  filter: blur(6px);
}
.studio-explore-copy { position: relative; padding: 40px 44px; max-width: 40em; color: #f6f3ff; }
.studio-explore-copy h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.12; margin: 0 0 10px; color: #fff; }
.studio-explore-copy .studio-page-sub { color: #ddd3f3; }
.studio-explore-copy .studio-eyebrow { color: #c9b8ff; }
.sx-group { margin-bottom: 40px; }
.sx-group-h { font-size: 1.3rem; margin: 0 0 16px; color: var(--text-primary); }
.sx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sx-grid.sx-n1 { grid-template-columns: 1fr; }
.sx-grid.sx-n3 { grid-template-columns: repeat(3, 1fr); }
.sx-card { display: flex; flex-direction: column; border-radius: var(--studio-radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--glass-border); box-shadow: var(--shadow-card); }
.sx-n1 .sx-card { flex-direction: row; }
.sx-n1 .sx-card .sx-art { width: 46%; flex-shrink: 0; aspect-ratio: auto; min-height: 280px; }
.sx-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0a18; }
.sx-art img { display: block; }
.sx-art-covers { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 6%; }
.sx-art-covers img { width: 19%; height: auto; aspect-ratio: 415 / 481; border-radius: 8px; margin: 0 -2.2%; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); transform: rotate(var(--r, 0deg)); }
.sx-art-covers img:nth-child(1) { --r: -6deg; } .sx-art-covers img:nth-child(2) { --r: -3deg; z-index: 1; } .sx-art-covers img:nth-child(3) { --r: -1deg; z-index: 2; }
.sx-art-covers img:nth-child(4) { --r: 1deg; z-index: 3; } .sx-art-covers img:nth-child(5) { --r: 3deg; z-index: 2; } .sx-art-covers img:nth-child(6) { --r: 6deg; z-index: 1; }
.sx-art-covers { background: radial-gradient(60% 80% at 50% 60%, rgba(96, 54, 232, .35), transparent 70%), #0d0a18; }
.sx-art-lab { display: grid; grid-template-columns: 1fr 1fr; }
.sx-art-lab img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.sx-art-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.sx-plate { position: relative; }
.sx-plate::before { content: ""; position: absolute; inset: 0; background-repeat: no-repeat; }
.sx-plate-p14::before { background: radial-gradient(10% 45% at 62% 60%, rgba(255, 214, 170, .16), transparent 70%), radial-gradient(10% 45% at 74% 58%, rgba(255, 214, 170, .14), transparent 70%), radial-gradient(10% 45% at 86% 60%, rgba(255, 214, 170, .12), transparent 70%); }
.sx-plate-p11::before { background: radial-gradient(30% 60% at 70% 0%, rgba(255, 220, 170, .25), transparent 70%), linear-gradient(180deg, transparent 60%, rgba(96, 54, 232, .25)); }
.sx-plate-p13::before { background: radial-gradient(18% 30% at 78% 45%, rgba(255, 255, 255, .14), transparent 70%), radial-gradient(40% 60% at 85% 50%, rgba(202, 63, 160, .2), transparent 70%); }
.sx-plate-p05::before, .sx-plate-p04::before { background: repeating-linear-gradient(170deg, transparent 0 22px, rgba(255, 236, 214, .12) 22px 23px), radial-gradient(50% 70% at 70% 40%, rgba(214, 140, 60, .25), transparent 70%); }
html.studio-has-fixture .sx-plate::after, html.studio-design-preview .sx-plate::after { content: "Placeholder plate " attr(data-placeholder); position: absolute; left: 12px; bottom: 10px; font: 600 10px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.sx-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.sx-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.sx-badge { padding: 4px 10px; border-radius: 100px; font-size: 10.5px; letter-spacing: .08em; border: 1px solid var(--glass-border); color: var(--text-secondary); white-space: nowrap; }
.sx-badge-owned { color: var(--green-text); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.sx-badge-partial, .sx-badge-available, .sx-badge-enrolling, .sx-badge-application { color: var(--purple-text); border-color: rgba(96, 54, 232, .4); background: rgba(96, 54, 232, .1); }
.sx-badge-preview { color: var(--amber-text); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.sx-title { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.sx-title a { color: var(--text-primary); text-decoration: none; }
.sx-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-line { margin: 0; color: var(--text-secondary); line-height: 1.55; }
.sx-note { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.sx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.sx-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: var(--text-sm); font-weight: 600; color: var(--purple-text); text-decoration: none; }
.sx-flag { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--amber-text); background: rgba(251, 191, 36, .08); border: 1px dashed rgba(251, 191, 36, .35); }
.sx-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 12px; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.sx-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--glass-border); }
.sx-detail .sx-art { aspect-ratio: auto; min-height: 420px; }
.sx-detail-body { display: flex; flex-direction: column; gap: 12px; padding: 36px; }
.sx-detail-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin: 0; color: var(--text-primary); }
.sx-facts { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sx-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); }
.sx-facts svg { color: var(--green-text); margin-top: 3px; flex-shrink: 0; }
@media (max-width: 1100px) { .sx-grid.sx-n3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .sx-grid, .sx-grid.sx-n3 { grid-template-columns: 1fr; gap: 16px; }
  .sx-n1 .sx-card { flex-direction: column; } .sx-n1 .sx-card .sx-art { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .sx-detail { grid-template-columns: 1fr; } .sx-detail .sx-art { min-height: 0; aspect-ratio: 16 / 10; } .sx-detail-body { padding: 24px 22px; }
  .studio-explore-head { min-height: 220px; } .studio-explore-copy { padding: 26px 22px; }
}

/* ── SEARCH ────────────────────────────────────────────────────────────────────────────────────────────────── */
.studio-search { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(5, 5, 16, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
[data-theme="light"] .studio-search { background: rgba(30, 22, 55, .28); }
.studio-search-card { width: min(680px, 100%); max-height: 78vh; display: flex; flex-direction: column; border-radius: 20px; background: var(--bg-elevated); border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.studio-search-field { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); }
.studio-search-field input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: none; color: var(--text-primary); font: 500 1.05rem var(--font-body); }
.studio-search-field input:focus { outline: none; }
.studio-search-field:focus-within { box-shadow: inset 0 -2px 0 var(--purple); }
.studio-search-close { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--glass-border); background: none; color: var(--text-secondary); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
.studio-search-close:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.studio-search-status { margin: 0; padding: 10px 18px 0; font-size: var(--text-sm); color: var(--text-muted); }
.studio-search-status:empty { display: none; }
.studio-search-results { overflow-y: auto; padding: 6px 10px 14px; }
.ss-hint { padding: 12px 8px; color: var(--text-muted); font-size: var(--text-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ss-hint button { min-height: 36px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--bg-glass); color: var(--text-secondary); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
.ss-group-h { margin: 14px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ss-group ul { list-style: none; margin: 0; padding: 0; }
.ss-hit { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text-primary); min-height: 52px; }
.ss-hit svg { grid-row: 1 / 3; color: var(--purple-text); }
.ss-locked svg { color: var(--text-muted); }
.ss-hit:hover, .ss-hit:focus-visible { background: var(--bg-hover); outline: none; box-shadow: inset 0 0 0 2px rgba(96, 54, 232, .5); }
.ss-t { font-weight: 600; }
.ss-w, .ss-s { font-size: 12.5px; color: var(--text-muted); }
.ss-w { grid-column: 2; }
.ss-s { grid-column: 2; }
.ss-owned .ss-s { color: var(--green-text); }
.ss-empty { padding: 16px 8px; color: var(--text-secondary); }
@media (max-width: 600px) { .studio-search { padding: 0; } .studio-search-card { max-height: none; height: 100%; border-radius: 0; } }

/* ── Preview fixture label (localhost only, js/studio-shell.js) ───────────────────────────────────────────── */
.studio-fixture { max-width: var(--studio-max); margin: 0 auto 18px; padding: 8px 14px; border-radius: 10px; background: #fbbf24; color: #1a1205; font: 600 12px/1.4 var(--font-body); }
.studio-fixture a { color: #1a1205; text-decoration: underline; }

/* ── Light theme touches ───────────────────────────────────────────────────────────────────────────────────── */
[data-theme="light"] .studio-nav-link[aria-current="page"] { background: rgba(96, 54, 232, .1); }
[data-theme="light"] .sx-badge-owned { color: var(--green-text); }

/* ── Reduced motion ────────────────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.wg-studio *, html.wg-studio *::before, html.wg-studio *::after { transition: none !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .studio-tool:hover, .sl-item:hover img { transform: none; }
}

#studio-strip-badge { display: none !important; }   /* Today already says it once (#lab-invite, Your library) */
/* the localhost-only dev toolbar (auth.js) stays where 6.4.2 put it, top left: bottom right is the Help pill's corner */

/* review pass 1 */
.sx-art-covers { padding: 0 3%; }
.sx-art-covers img { width: 24%; margin: 0 -3.4%; }
html.wg-studio #studio-view-today .rp-locked .roadmap-phase-status-label { display: none; }
.studio-nav { box-sizing: border-box; }
@media (max-width: 1024px) { .studio-nav-link { min-height: 0; height: 63px; } }
/* phones: the header gained the search button, so it takes the lesson-page treatment (layout.css 30 Sep): tighter
   padding and Train as its icon (its accessible name "Training Center" stays). Every control stays in the header. */
@media (max-width: 480px) {
  html.wg-studio .header { padding: 0 12px; gap: 8px; }
  html.wg-studio .header-logo { font-size: 1.05rem; }
  html.wg-studio .header-right { gap: 6px; }
  html.wg-studio .header-metro.wg-train .wg-train-label { display: none; }
  html.wg-studio .header-metro.wg-train { padding: 0; width: 44px; justify-content: center; }
  .studio-search-btn { width: 40px; }
}
@media (max-width: 899px) { .studio-tools-big .studio-tool { min-height: 0; padding: 16px; } .studio-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* review pass 2: polish.js puts "Recently completed" next to Continue, so inside the hero it gets the hero's margins */
.studio-hero > .recent-row { position: relative; margin: 0; padding: 0 44px 28px; }
.studio-hero > .recent-row .recent-label { color: #c9b8ff; }
@media (max-width: 767px) { .studio-hero > .recent-row { padding: 0 22px 22px; } }
/* the six covers as a fanned deck that always fits its frame */
.sx-art-covers { padding: 0 4%; }
.sx-art-covers img { width: auto; height: 54%; margin: 0 0 0 -12.5%; }
.sx-art-covers img:first-child { margin-left: 0; }
.sx-n1 .sx-card .sx-art.sx-art-covers { aspect-ratio: 16 / 10; min-height: 0; align-self: center; }
.sx-art-covers img { width: 21%; height: auto; margin-left: -6.2%; }
.sx-art-covers img:first-child { margin-left: 0; }

.studio-hero-plate.studio-hero-has-photo { background-size: cover; background-position: right center; }
.studio-hero-plate.studio-hero-has-photo::before { display: none; }

/* ── Pass 2 (13 Oct 2026, Daniel's decisions): information-only cards, library terms, Practice empty state ───── */
.sx-badge-soon, .sx-badge-closed, .sx-badge-info { color: var(--text-secondary); border-color: var(--glass-border); background: transparent; }
.sx-soon .sx-title { color: var(--text-primary); }
.studio-chips button[hidden] { display: none; }
.sl-term { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--text-secondary); border: 1px solid var(--glass-border); vertical-align: middle; }
.sl-group-h .studio-strip-link { margin-left: 10px; font-size: 12px; font-weight: 500; }
.studio-practice-empty { margin: 4px 0 24px; padding: 18px 20px; border-radius: var(--studio-radius); border: 1px dashed var(--glass-border); background: var(--bg-card); }
.studio-practice-empty .studio-subhead { margin-top: 0; }
.studio-practice-empty p { margin: 6px 0 0; color: var(--text-secondary); line-height: 1.55; }
#studio-view-practice .studio-practice-slot:empty { display: none; }

/* ── R2 information architecture (Daniel approved r2/IA-MAP.md, 16 Oct 2026): one presentation per page ─────────────
   Under the studio layer, Today does not draw the roadmap (My Path), the trainer cards (Practice) or the saved list
   (Practice) again; each is one line on Today instead. Classic view (no html.wg-studio) keeps the 6.4.2 hub unchanged. */
html.wg-studio #studio-view-today #hub-roadmap,
html.wg-studio #studio-view-today #studio-tools,
html.wg-studio #studio-view-today #practice-list-section { display: none !important; }
html:not(.wg-studio) .studio-today-links, html:not(.wg-studio) .studio-practice-chip { display: none !important; }
.studio-today-links[hidden], .studio-practice-chip[hidden] { display: none !important; }
.studio-today-links { margin: 0 0 20px; display: grid; gap: 6px; }
.studio-today-link, .studio-practice-chip, .sx-owned-line, .sl-saved-line, .sx-group-interest {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--text-secondary); font-size: .9375rem; line-height: 1.5;
}
.studio-practice-chip { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.studio-today-link a, .studio-practice-chip a, .sx-owned-line a, .sl-saved-line a, .sx-group-interest a, .sx-consent a { color: var(--purple-text); font-weight: 600; }
.studio-today-link svg, .studio-practice-chip svg, .sx-owned-line svg, .sl-saved-line svg { color: var(--purple-text); flex: none; }
.sx-owned-list { display: grid; gap: 8px; margin: 0 0 28px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.sx-group-interest { margin: 8px 0 32px; }
.sx-consent { margin: 10px 0 0; color: var(--text-secondary); font-size: .8125rem; line-height: 1.5; }
.sx-missing { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 8px; }
.sx-missing li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.sx-missing-t { color: var(--text-primary); font-weight: 600; }
.sx-missing-a { color: var(--purple-text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.sx-goals { margin: 0 0 36px; }
.sx-goal-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sx-goal { padding: 16px; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.sx-goal-h { margin: 0 0 4px; font-size: 1.0625rem; color: var(--text-primary); }
.sx-goal-l { margin: 0 0 12px; color: var(--text-secondary); font-size: .875rem; line-height: 1.5; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: .8125rem; text-decoration: none; }
.sx-chip:hover { background: var(--bg-hover); }
.sx-chip:focus-visible, .sx-missing-a:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.sx-chip small { color: var(--text-secondary); font-size: .75rem; }
.sx-chip[data-kind="path"] svg { color: var(--text-secondary); }
/* B4 By Musical Goal (18 Nov 2026, lane C3): goals stacked in one column, each a heading, a bridge sentence, and a pair (their lesson -> a
   Laboratory episode) or an "Explore this goal" list. Colours are the platform's own variables (both themes pass 4.5:1); the drawn title
   card has its own dark ground and light text in both themes. Pairs stay stacked up to 1024 px. 44 px targets; labels wrap. */
.gx-intro { margin: 0 0 18px; color: var(--text-secondary); font-size: 1rem; line-height: 1.55; max-width: 62ch; }
.gx-goals { display: grid; gap: 28px; }
.gx-goal { padding: 18px; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--bg-card); min-width: 0; }
.gx-goal .sx-goal-h { margin: 0 0 8px; font-size: 1.1875rem; line-height: 1.3; color: var(--text-primary); overflow-wrap: anywhere; }
.gx-bridge, .gx-ex { margin: 0 0 14px; color: var(--text-secondary); font-size: .9375rem; line-height: 1.55; max-width: 62ch; }
.gx-ex { font-weight: 600; margin-bottom: 10px; }
.gx-pair, .gx-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.gx-open { margin-top: 12px; }
.gx-arrow { display: none; align-self: center; justify-self: center; color: var(--text-secondary); font-size: 1.25rem; line-height: 1; }
.gx-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-subtle); background: transparent; }
.gx-card:focus-within { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.gx-im { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1230; }
.gx-im img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the drawn title card: staff lines in the room colour, the source name set on them (no frame) */
.gx-tc { position: relative; display: flex; align-items: flex-end; padding: 12px 14px; border-bottom: 3px solid var(--gx-acc, #b9a6ff);
  background: repeating-linear-gradient(180deg, transparent 0 15px, rgba(240, 238, 246, .09) 15px 16px), linear-gradient(135deg, #1a1230, #241848); }
.gx-tc > span { color: #f0eef6; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; overflow-wrap: anywhere; }
.gx-b { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.gx-src { margin: 0; color: var(--text-secondary); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.gx-t { margin: 0; color: var(--text-primary); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.gx-st { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; color: var(--text-secondary); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.gx-st svg { flex: none; margin-top: 2px; color: var(--purple-text); }
.gx-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; max-width: 100%; margin-top: 6px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--purple-text);
  color: var(--purple-text); font-size: .9375rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.gx-go::after { content: ""; position: absolute; inset: 0; }
.gx-go:hover { background: var(--bg-hover); }
.gx-go:focus-visible, .gx-all summary:focus-visible, .gx-inv-a:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.gx-all { margin: 14px 0 0; }
.gx-all summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--purple-text); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.gx-all .sx-chips { margin-top: 8px; }
.gx-inv { margin: 28px 0 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.gx-inv p { margin: 0 0 8px; color: var(--text-secondary); font-size: .9375rem; line-height: 1.55; max-width: 62ch; }
.gx-inv-a { display: inline-flex; align-items: center; min-height: 44px; color: var(--purple-text); font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* tablet: the pair stays stacked, each card lays the image beside the text */
@media (min-width: 600px) { .gx-card { grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); } .gx-im { height: 100%; aspect-ratio: auto; min-height: 120px; } .gx-tc { border-bottom: 0; border-left: 0; box-shadow: inset 0 -3px 0 var(--gx-acc, #b9a6ff); } }
/* wide: side by side only above 1024 px */
@media (min-width: 1025px) {
  .gx-pair { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); }
  .gx-card { grid-template-columns: minmax(0, 1fr); } .gx-im { height: auto; aspect-ratio: 16 / 9; min-height: 0; } .gx-tc { box-shadow: none; border-bottom: 3px solid var(--gx-acc, #b9a6ff); }
  .gx-arrow { display: block; }
  .gx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-open { max-width: calc(50% - 16px); }
}
/* phone: image full width before the text, less nested padding, reading size */
@media (max-width: 599px) {
  .gx-goal { padding: 14px 12px; border-radius: 14px; }
  .gx-goals { gap: 18px; }
  .gx-b { padding: 10px 12px 12px; }
  .gx-go { width: 100%; }
}
@media (max-width: 767px) { html.wg-studio :is(.gx-intro, .gx-bridge, .gx-ex, .gx-src, .gx-st, .gx-go, .gx-all summary, .gx-inv p, .gx-inv-a, .gx-tc > span) { font-size: var(--studio-reading); line-height: var(--studio-reading-lh); } }

/* ── V2 Training Center area (#train; js/training-center.js draws the cards from TOOLS) ───────────────────────────
   Since 10 Nov 2026 (direction A) a drawing of the core action per card, no screenshot (rules below .tcp-return), one link per
   card whose ::after covers the card. Phone: single column, 16 px reading text, full-width 48 px button (guitar in hands). */
/* the menu's Work with Daniel entry is the phone/tablet route; on desktop the sidebar's Personal guidance has it */
@media (min-width: 1025px) { #practice-panel [data-studio-mentor] { display: none !important; } }
.studio-nav-group-h { display: none; margin: 10px 14px 2px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.studio-nav-foot:has([data-studio-mentor]:not([hidden])) .studio-nav-group-h { display: block; }
.tcp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tcp-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--studio-radius); border: 1px solid var(--border-subtle); background: var(--bg-card); transition: border-color .2s, transform .2s; }
.tcp-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.tcp-card:focus-within { border-color: var(--purple-text); }
.tcp-b { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.tcp-t { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--text-primary); }
.tcp-d { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text-secondary); }
.tcp-go { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: auto; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; color: #fff; text-decoration: none; background: linear-gradient(135deg, #6036e8, #7a3fd0); box-shadow: 0 8px 22px rgba(96, 54, 232, .28); }
.tcp-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tcp-go:focus-visible { outline: 3px solid var(--purple-text); outline-offset: 3px; }
.tcp-return { margin-top: 18px; }
/* Training Center cards, direction A (Daniel 10 Nov 2026): one drawing of the core action per card (js/training-center.js TCD),
   its caption, the trainer's name once, one line of what you will be able to do, the access line when it says something, one
   button. No screenshot. The drawings carry their own ink for both themes; the stage keeps the drawing's ratio (no layout shift). */
.tcp-card { --tcd-ink: #f0eef6; --tcd-ink-2: #b8aed4; --tcd-ink-3: rgba(240, 238, 246, .2); --tcd-dot: #2a2344; --tcd-stage: #120d24;
  --tcd-stage-edge: rgba(155, 126, 248, .16); --tcd-root: #7b55ff; --tcd-accent: #e0559f; --tcd-ko: #1c143a; --tcd-lpt: #b9a5ff; }
[data-theme="light"] .tcp-card { --tcd-ink: #221d33; --tcd-ink-2: #5b5178; --tcd-ink-3: rgba(34, 29, 51, .2); --tcd-dot: #fff; --tcd-stage: #eeeafb;
  --tcd-stage-edge: rgba(96, 54, 232, .14); --tcd-root: #6036e8; --tcd-accent: #ca3fa0; --tcd-ko: #e0d8f9; --tcd-lpt: #4a23c9; }
.tcp-stage { margin: 0; padding: 20px 24px 14px; background: var(--tcd-stage); border-bottom: 1px solid var(--tcd-stage-edge); }
.tcp-stage .tcd, .tcp-cap { max-width: 420px; margin-left: auto; margin-right: auto; }
.tcp-cap { margin-top: 10px; margin-bottom: 0; font-size: .9375rem; line-height: 1.45; color: var(--text-secondary); text-align: center; }
.tcp-acc { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text-secondary); }
.tcp-b > :nth-last-child(2) { margin-bottom: 4px; }
/* the drawings: --tcd-ko = the stage under the loop tint (TAB digits and the loop label sit on it) */
.tcd { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.tcd text { fill: var(--tcd-ink); }
.tcd .t2, .tcd .tabl { fill: var(--tcd-ink-2); }
.tcd .ln { stroke: var(--tcd-ink-3); stroke-width: 1.5; fill: none; }
.tcd .ln-s { stroke: var(--tcd-ink-2); stroke-width: 2; fill: none; stroke-linecap: round; }
.tcd .ln-s.st { stroke-width: 1; stroke-linecap: butt; }
.tcd .ln-f { stroke: var(--tcd-ink-2); stroke-width: 1; opacity: .35; }
.tcd .bar { stroke: var(--tcd-ink-2); stroke-width: 1.4; }
.tcd .clef { fill: none; stroke: var(--tcd-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tcd .acc-g path { stroke: var(--tcd-ink); fill: none; }
.tcd .d-root { fill: var(--tcd-root); }
.tcd .d-note { fill: var(--tcd-dot); stroke: var(--tcd-ink-2); stroke-width: 1.5; }
.tcd .d-ghost { fill: var(--tcd-stage); stroke: var(--tcd-ink-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tcd .d-ghost-root { fill: var(--tcd-stage); stroke: var(--tcd-root); stroke-width: 1.8; stroke-dasharray: 3 3; }
.tcd .on-root { fill: #fff; }
.tcd .arrow { stroke: var(--tcd-accent); stroke-width: 2; fill: none; stroke-linecap: round; }
.tcd .arrow-h { fill: var(--tcd-accent); }
.tcd .ring { fill: none; stroke: var(--tcd-accent); stroke-width: 2; }
.tcd .ink { fill: var(--tcd-ink); }
.tcd .ink-s { stroke: var(--tcd-ink); fill: none; }
.tcd .acc { fill: var(--tcd-accent); }
.tcd .rootf { fill: var(--tcd-root); }
.tcd .loop { fill: var(--tcd-root); fill-opacity: .1; stroke: none; }
.tcd .brk { fill: none; stroke: var(--tcd-root); stroke-width: 2; stroke-linejoin: round; }
.tcd .ko { fill: var(--tcd-ko); }
.tcd .lpt { fill: var(--tcd-lpt); }
.tcd .head { stroke: var(--tcd-root); stroke-width: 2; }
.tcd .chip { fill: var(--tcd-dot); stroke: var(--tcd-ink-3); }
.tcd .lad { fill: var(--tcd-ink-3); }
.tcd .lad.on { fill: var(--tcd-root); }
.tcd .mute { fill: none; stroke: var(--tcd-ink-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tcd .bt, .tcd .mv { transform-box: fill-box; transform-origin: center; }
/* one motion, on the student's action: hover or keyboard focus plays the move once */
@keyframes tcd-move { from { transform: translateX(var(--dx)); } to { transform: none; } }
@keyframes tcd-fade { from { opacity: 0; } 60% { opacity: 0; } to { opacity: 1; } }
@keyframes tcd-beat { 0%, 100% { transform: none; } 12% { transform: scale(1.45); } 30% { transform: none; } }
@keyframes tcd-sweep { from { transform: translateX(-62px); opacity: .2; } to { transform: none; opacity: 1; } }
.play .tcd .mv { animation: tcd-move 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.play .tcd .ar { animation: tcd-fade 1.1s ease both; }
.play .tcd .bt { animation: tcd-beat 2s linear 2; animation-delay: calc(var(--i) * .5s); }
.play .tcd .lph { animation: tcd-sweep 1.2s cubic-bezier(.16, 1, .3, 1) both; }
[data-theme="light"] .tcp-go { box-shadow: 0 6px 16px rgba(96, 54, 232, .2); }
@media (max-width: 1024px) { .tcp-list { gap: 14px; } }
@media (max-width: 640px) {
  .tcp-list { grid-template-columns: 1fr; }
  .tcp-stage { padding: 14px 12px 12px; }
  .tcp-d, .tcp-cap, .tcp-acc, .tcp-return { font-size: 1rem; }
  .tcp-go { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .tcp-card, .tcp-card:hover { transition: none; transform: none; } .play .tcd .mv, .play .tcd .ar, .play .tcd .bt, .play .tcd .lph { animation: none; } }

/* ── V2 Today (Daniel 17 Oct 08:55 + V2 directive section 3; design pack 17 Oct today-a/b/c) ─────────────────────────
   A compact Continue (smaller plate, smaller cover), then EVERY owned course as a real-cover card in a stable order
   (desktop 4, tablet 3, phone 2 columns; one course = one full-width horizontal card), the owned Laboratory as one row,
   then Today's practice. Guitar in hands: 44 px targets, 16 px phone text. Classic view (no html.wg-studio) unchanged. */
html:not(.wg-studio) .studio-today-courses, html:not(.wg-studio) .continue-actions, html:not(.wg-studio) .continue-prog, html:not(.wg-studio) .continue-vpos { display: none !important; }
.studio-today-courses[hidden], .continue-actions[hidden], .continue-prog[hidden], .continue-vpos[hidden] { display: none !important; }

.studio-today-courses { margin: 4px 0 28px; }
.stc-head { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; margin-bottom: 12px; }
.stc-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.stc-count { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.stc-more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--purple-text); text-decoration: none; }
.stc-more:hover { text-decoration: underline; }
.stc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }   /* Release A item 7: two rows of 3 (was 4 + 2) */
.stc-grid > li { display: flex; min-width: 0; }
.stc-card { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; overflow: hidden; border-radius: 16px; text-decoration: none; color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--glass-border); transition: border-color .15s, transform .15s; }
.stc-card:hover { border-color: var(--border-hover, rgba(155, 126, 248, .4)); }
.stc-card:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
/* Release A item 7 (Daniel 8 Nov 2026): the WHOLE course art. The box keeps the covers' own 415 x 481 shape and the image is
   never cropped (0497 drew a 415 / 260 strip with object-fit: cover from the top, which cut the lower half of every cover) */
.stc-art { position: relative; display: block; aspect-ratio: 415 / 481; overflow: hidden; background: #120d24; }
.stc-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stc-phase { position: absolute; left: 8px; bottom: 8px; height: 22px; padding: 0 8px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: #fff; background: rgba(5, 5, 16, .66); }
.stc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 12px 12px; min-width: 0; }
.stc-t { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.stc-m { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--text-muted); line-height: 1.35; overflow-wrap: anywhere; }
.stc-complete .stc-m { color: var(--green-text, #4ade80); font-weight: 600; }
.stc-term { font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }
.stc-bar { display: block; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
[data-theme="light"] .stc-bar { background: rgba(34, 29, 51, .1); }
.stc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6036e8, #ca3fa0); }
.stc-go { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--text-primary); background: rgba(96, 54, 232, .2); border: 1px solid rgba(155, 126, 248, .28); }
[data-theme="light"] .stc-go { background: rgba(96, 54, 232, .08); color: #4a26c9; }
.stc-complete .stc-go { background: transparent; }
.stc-card:hover .stc-go { border-color: rgba(155, 126, 248, .55); }
.stc-grid.stc-one { grid-template-columns: minmax(0, 1fr); }
.stc-one .stc-card { flex-direction: row; max-width: 640px; }
.stc-one .stc-art { width: 170px; flex: none; aspect-ratio: 415 / 481; align-self: flex-start; }
.stc-one .stc-body { padding: 14px 16px; }
.stc-one .stc-go { max-width: 260px; }
.stc-lab { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 14px; padding: 12px 16px; border-radius: 16px; text-decoration: none; color: var(--text-primary); background: var(--bg-card); border: 1px solid color-mix(in srgb, var(--purple-text) 28%, transparent); }
.stc-lab:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.stc-pair { display: flex; }
.stc-pair img { width: 46px; height: 54px; object-fit: cover; border-radius: 7px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.stc-pair img + img { margin-left: -14px; transform: rotate(5deg); }
.stc-lab-b { display: flex; flex-direction: column; min-width: 0; }
.stc-lab-k { font-size: 13px; font-weight: 600; color: var(--purple-text); }
.stc-lab-t { font-size: 16px; font-weight: 700; }
.stc-lab-d { font-size: 14px; color: var(--text-secondary); }
.stc-lab-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; background: var(--bg-glass); border: 1px solid var(--glass-border); white-space: nowrap; }
/* Release A item 6: a course or room the account does not own (js/studio-shell.js lockedCard): the same art, quieter, a lock */
button.stc-card { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.stc-locked { background: color-mix(in srgb, var(--bg-card) 70%, transparent); border-style: dashed; }
.stc-locked .stc-art img { opacity: .5; filter: grayscale(.55); }
.stc-locked:hover .stc-art img, .stc-locked:focus-visible .stc-art img { opacity: .72; }
/* fix round (R3 P3-1): the lock sits bottom right, clear of the printed cover titles (the phase pill is bottom left) */
.stc-lock { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(5, 5, 16, .72); border: 1px solid rgba(255, 255, 255, .18); }
.stc-m.stc-not { color: var(--text-secondary); font-weight: 600; }
/* fix round F10 (R3 P2-1): Today's compact locked row (js/studio-shell.js lockedMini): small whole cover, title, lock,
   "Not in your library". Each item is the same control as the full card (44 px and up); the full covers live on My Courses. */
.stc-locked-row { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.stc-locked-row > li { display: flex; min-width: 0; }
.stc-mini { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 56px;
  padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px dashed var(--glass-border); background: color-mix(in srgb, var(--bg-card) 70%, transparent); color: var(--text-primary); text-decoration: none; }
.stc-mini:hover { border-color: var(--border-hover, rgba(155, 126, 248, .4)); }
.stc-mini:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.stc-mini-art { flex: none; display: block; width: 38px; height: 44px; border-radius: 6px; overflow: hidden; background: #120d24; }
.stc-mini-art img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: .55; filter: grayscale(.55); }
.stc-mini-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stc-mini-t { font-size: 14.5px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.stc-mini-m { display: flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.3; color: var(--text-secondary); }
.stc-mini-m svg { flex: none; }
.sl-locked .stc-grid { margin-top: 2px; }
@media (max-width: 480px) {
  .stc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stc-head h2 { font-size: 1.15rem; }
  .stc-count { font-size: 16px; }
  .stc-body { padding: 9px 10px 11px; }
  .stc-t, .stc-m { font-size: 16px; }
  .stc-term { font-size: 14px; }
  .stc-one .stc-card { max-width: none; }
  .stc-one .stc-art { width: 112px; }
  .stc-one .stc-go { max-width: none; }
  .stc-lab { grid-template-columns: auto 1fr; }
  .stc-lab-go { grid-column: 1 / -1; }
  .stc-lab-d { font-size: 16px; }
  .stc-locked-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stc-mini { min-height: 52px; }
  .stc-mini-t { font-size: 16px; }
  .stc-mini-m { font-size: 16px; }   /* the phone reading floor (v2c-phone-reading R1): 16 px */
}
@media (prefers-reduced-motion: reduce) { .stc-card { transition: none; } }
/* the 6.4.2 "Your library" sentence ("all six courses in your library") is replaced by the course cards themselves
   (Daniel 17 Oct: never that sentence instead of the courses); the classic hub keeps it */
html.wg-studio #studio-view-today #lab-invite[aria-label="Your library"] { display: none !important; }

/* ── V2 completion lane B (GPT Pro 17 Oct, UX-04 / E9): THE Continue component, consolidated ──────────────────────────
   Every earlier Continue override (the 300 px plate, the rotated 196/132/76 px cover, the 220 px right padding) is gone from
   this file; this is the only block. Upright thumbnail + title row: art 88 x 102 desktop / 64 x 74 phone (the cover figure is
   moved INTO the card by js/studio-shell.js so it is a grid item), padding 24 / 20, gap 20 / 16, title 28 / 24 px line-height
   1.2, ONE 48 px primary action, "Open today's practice" the quieter secondary. #studio-hero (an id) outranks
   css/studio-success.css's .sg-enhanced sizes, which load after this file. Classic view (no html.wg-studio) is untouched. */
html.wg-studio .continue-section { margin: 0; }
html.wg-studio #studio-hero .continue-card {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 20px; row-gap: 0; align-items: start;
  min-height: 0 !important; padding: 24px !important; background: none; border: 0; border-radius: 0; box-shadow: none; color: #f6f3ff; transform: none;
}
html.wg-studio #studio-hero .continue-card::before, html.wg-studio #studio-hero .continue-card::after { display: none; }
html.wg-studio #studio-hero .continue-info { display: contents; }
html.wg-studio #studio-hero .studio-hero-cover {
  position: static; grid-column: 1; grid-row: 1 / 6; width: 88px; height: 102px; margin: 0; transform: none; filter: none; z-index: auto; pointer-events: none;
  border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
html.wg-studio #studio-hero .studio-hero-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 0; aspect-ratio: auto; }
html.wg-studio #studio-hero .continue-label, html.wg-studio #studio-hero .continue-card .continue-title, html.wg-studio #studio-hero .continue-course-name,
html.wg-studio #studio-hero .continue-prog, html.wg-studio #studio-hero .continue-vpos, html.wg-studio #studio-hero .continue-card .continue-icon { grid-column: 2; }
html.wg-studio #studio-hero .continue-label { grid-row: 1; margin: 2px 0 6px; font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9b8ff; }
html.wg-studio #studio-hero .continue-card .continue-title { grid-row: 2; margin: 0 0 6px; font-family: var(--font-display); font-size: 28px !important; line-height: 1.2 !important; letter-spacing: -.01em; color: #fff; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; max-width: 34em; }
html.wg-studio #studio-hero .continue-course-name, html.wg-studio #studio-hero .continue-prog, html.wg-studio #studio-hero .continue-vpos { margin: 0; font-size: 15px; line-height: 1.5; color: #d7cdef; }
html.wg-studio #studio-hero .continue-course-name { grid-row: 3; }
html.wg-studio #studio-hero .continue-prog { grid-row: 4; }
html.wg-studio #studio-hero .continue-vpos { grid-row: 5; color: #fff; }
html.wg-studio #studio-hero .continue-card .continue-icon {
  grid-row: 6; justify-self: start; margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0;
  width: auto !important; height: 48px !important; padding: 0 22px 0 18px; border-radius: 12px; background: var(--purple); color: #fff; box-shadow: 0 8px 22px rgba(96, 54, 232, .4);
}
html.wg-studio #studio-hero .continue-icon::after { content: attr(data-go); font: 600 1rem/1 var(--font-body); }
html.wg-studio #studio-hero .continue-icon:not([data-go])::after { content: "Continue lesson"; }
html.wg-studio #studio-hero .continue-icon svg { width: 18px; height: 18px; margin: 0; fill: currentColor; }
html.wg-studio #studio-hero .continue-arrow { display: none; }
html.wg-studio #studio-hero .continue-card:hover .continue-icon { background: #6f47f0; }
html.wg-studio #studio-hero .continue-card:focus-visible { outline: 2px solid #c9b8ff; outline-offset: -4px; border-radius: 20px; }
/* no cover to show (a lesson outside the courses with art): one column, nothing reserved */
html.wg-studio #studio-hero .continue-card:not(:has(.studio-hero-cover:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
html.wg-studio #studio-hero .continue-card:not(:has(.studio-hero-cover:not([hidden]))) > * { grid-column: 1; }
html.wg-studio .studio-hero-has-photo ~ .studio-hero-cover, html.wg-studio .studio-hero-has-photo ~ * .studio-hero-cover { display: none !important; }
.continue-actions { position: relative; padding: 0 24px 24px 132px; margin-top: -12px; }
.continue-actions .continue-practice { min-height: 48px; padding: 0 18px; color: #f6f3ff; background: rgba(255, 255, 255, .06); border-color: rgba(201, 184, 255, .28); }
.continue-actions .continue-practice:hover { border-color: rgba(201, 184, 255, .55); }
.continue-actions .continue-practice:focus-visible { outline: 2px solid #c9b8ff; outline-offset: 2px; }
@media (max-width: 767px) {
  /* phone: thumbnail beside the eyebrow + title; the status lines and the action take the full width under them */
  html.wg-studio #studio-hero .continue-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 20px !important; }
  html.wg-studio #studio-hero .studio-hero-cover { grid-row: 1 / 3; width: 64px; height: 74px; }
  html.wg-studio #studio-hero .continue-card .continue-title { font-size: 24px !important; min-height: calc(74px - 28px); }
  html.wg-studio #studio-hero .continue-course-name, html.wg-studio #studio-hero .continue-prog, html.wg-studio #studio-hero .continue-vpos { grid-column: 1 / -1; font-size: 16px; }
  html.wg-studio #studio-hero .continue-course-name { margin-top: 4px; }
  html.wg-studio #studio-hero .continue-card .continue-icon { grid-column: 1 / -1; justify-self: stretch; justify-content: center; margin-top: 12px; }
  .continue-actions { padding: 0 20px 20px; margin-top: -11px; }
  .continue-actions .continue-practice { display: flex; width: 100%; justify-content: center; }
}

/* ── V2 completion lane B (UX-02): one Laboratory entry on Today. With the owner's Laboratory row drawn (js/studio-shell.js
   todayCourses sets data-today-lab), the hub's Laboratory room and its owner card leave Today (the row carries the Lab resume).
   A non-owner keeps the room as it was. Next Step keeps its slot and its factual title; its six-row Path list (the repeated
   roadmap) is My Path's job, not Today's. */
html.wg-studio[data-today-lab="1"] #studio-view-today #ia-row:not([data-ns-commercial]),
html.wg-studio[data-today-lab="1"] #studio-view-today #lab-invite[aria-label="The Laboratory"],
html.wg-studio #studio-view-today .ns-list { display: none !important; }
.stc-standalone { margin: 10px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
@media (max-width: 480px) { .stc-standalone { font-size: 16px; } }

/* ── V2 completion lane B (UX-07): My Path = one row per phase (the cover grid is not drawn above them again) ───────────── */
html.wg-studio[data-studio-view="learning"][data-studio-sub="path"] #studio-path-slot #hub-roadmap { display: none !important; }
.studio-path-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.studio-path-meta li { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 10px; align-items: center; padding: 14px 16px; }
.spm-art { grid-row: 1; grid-column: 1; width: 64px; height: 74px; border-radius: 8px; overflow: hidden; background: #120d24; }
.spm-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.studio-path-meta li[data-state="locked"] .spm-art img { filter: grayscale(.85) brightness(.7); }
.spm-b { grid-row: 1; grid-column: 2; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.studio-path-meta .spm-n { grid-row: auto; align-self: auto; }
.spm-t { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.spm-own { font-size: 14px; font-weight: 600; color: var(--purple-text); }
.studio-path-meta li[data-state="locked"] .spm-own { color: var(--text-muted); }
.studio-path-meta li[data-state="done"] .spm-s { color: var(--green-text, #4ade80); font-weight: 600; }
.spm-act { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.spm-act .spm-a { margin-left: 0; }
.spm-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 112px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none;
  color: var(--text-primary); background: rgba(96, 54, 232, .2); border: 1px solid rgba(155, 126, 248, .28); }
[data-theme="light"] .spm-go { background: rgba(96, 54, 232, .08); color: #4a26c9; }
.studio-path-meta li[data-state="done"] .spm-go { background: transparent; }
.spm-go:hover { border-color: rgba(155, 126, 248, .55); }
.spm-more { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--glass-border); background: none; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.spm-go:focus-visible, .spm-more:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
@media (max-width: 600px) {
  .studio-path-meta { grid-template-columns: 1fr; }
  .spm-own, .spm-s, .spm-more, .spm-go { font-size: 16px; }
  .spm-go { flex: 1 1 auto; }
}

/* ══ V2 PHONE READING, TARGETS AND FOCUS (UX-03 + E9, lane C, 17 Oct 2026) ═══════════════════════════════════════════
   Daniel's minimum on phones: 16 px reading and 44 x 44 px targets; main actions 48 px, practice controls 56 px.
   Last in the file on purpose (it settles the final cascade over the component blocks above and studio-practice.css /
   studio-success.css). Measured, not assumed: tests/v2c-phone-reading.spec.js reads the computed size of every visible text
   node and the box of every visible control at 390 and 360, both themes, both engines. Decorative micro-labels that may
   stay smaller are listed there with their reason (eyebrows and kickers above a heading, ordinals, cover-art overlays, note
   dates, the five bottom-bar labels). Inline links keep their line; their padding is the 44 px touch area. */
@media (max-width: 767px) {
  html.wg-studio :is(.hub-phase-status, .studio-today-line, .studio-today-link, .studio-today-link a, .stc-more, .stc-go, .stc-lab-k, .stc-lab-go,
    .today-card .today-label, .today-card .today-where, .today-why, .today-why-k, #today-why-text, .ns-desc, .ns-name, .ns-state, .ns-cta,
    .studio-page-sub, .studio-small, .studio-empty, .studio-strip-link, .studio-lifetime, .studio-chips button, .sl-state, .sl-foot, .sl-foot a,
    .sx-goal-l, .sx-chip, .sx-chip small, .sx-owned-line, .sx-see, .sx-badge, .sx-note, .sx-more, .sx-back, .sx-group-interest, .sx-line,
    .spm-s, .spm-a, .sp-card-c, .sp-count, .sl-saved-line, .sl-saved-line a, .studio-lib-search input,
    .ia-card-title, .ia-card-desc, .ia-card-desc a, .ia-glass-meta, .ia-new-badge,
    .sg-lab-discovery p, .sg-lab-meta, .sg-fine, .sg-room-tab, .sg-lab-item a, .wm-in, .wm-in span, .wm-in strong, .sp-demo-tag, .sp-demo figcaption, .hub-footer, .hub-footer p, .hub-footer a,
    .ss-hint, .ss-hint button, .ss-w, .ss-s, .ss-empty, .studio-search-status, .studio-search-close,
    .studio-mentee p, .unlock-modal-desc, .unlock-modal-meta, .unlock-modal-cta, .unlock-modal-dismiss) {
    font-size: var(--studio-reading); line-height: var(--studio-reading-lh);
  }
  html.wg-studio .sx-badge { letter-spacing: .02em; padding: 2px 10px; white-space: normal; overflow-wrap: anywhere; }
  html.wg-studio .sg-lab-room { font-size: .75rem; }   /* the room kicker above a Laboratory title (listed micro-label, 12 px floor) */
  html.wg-studio .ia-new-badge { padding: 2px 8px; }
  /* the practice instruction, read with the guitar in hands */
  html.wg-studio .today-step-t, html.wg-studio .today-step-text { font-size: var(--studio-practice-reading); line-height: var(--studio-practice-reading-lh); }
  /* main actions 48 px; practice controls 56 px */
  html.wg-studio :is(.sx-btn, .sx-btn-quiet, .pp-util) { min-height: var(--tap-main); font-size: var(--studio-reading); line-height: 1.25; padding-block: 6px; }
  html.wg-studio :is(#today-start, .today-start, .today-step-toggle, .sp-today-btn) { min-height: var(--tap-practice); font-size: var(--studio-reading); }
  /* every control at least 44 x 44 */
  html.wg-studio .studio-search-btn { width: 44px; min-width: 44px; height: 44px; }
  html.wg-studio .ss-hint button { min-height: 44px; }
  html.wg-studio .sx-title a { display: inline-flex; align-items: center; min-height: 44px; }
  html.wg-studio .unlock-modal-dismiss { min-height: 44px; }
  html.wg-studio :is(.sl-foot a, .hub-footer a, .sl-saved-line a, .ia-card-desc a, .studio-mentee p a) { display: inline-block; min-width: 44px; padding-block: 12px; text-align: center; }
  /* 200% text: long words and price links wrap inside their box instead of pushing the page sideways (a price link
     keeps its own line and its 44 px box; tests/r2-touch-overlap N1) */
  html.wg-studio .spm-a { white-space: normal; max-width: 100%; }
  html.wg-studio .sx-detail { grid-template-columns: minmax(0, 1fr); }
  html.wg-studio .studio-lib-search { flex-basis: 100%; min-width: 0; max-width: 100%; }
  html.wg-studio .studio-lib-search input { width: 100%; }   /* WebKit sized the field from its 20-character default */
  html.wg-studio :is(.sg-lab-room, .sg-lab-item h3, .sx-detail-title, .sx-title, .spm-t) { overflow-wrap: anywhere; }
  /* My Learning's three tabs: 16 px labels that wrap inside their target, never a sideways rail */
  html.wg-studio .studio-tabs { width: 100%; overflow-x: visible; border-radius: 16px; }
  html.wg-studio .studio-tabs [role="tab"] { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 6px 8px; border-radius: 12px; font-size: var(--studio-reading); line-height: 1.2; white-space: normal; }
}
/* focus: one visible ring on every Studio control, 2 px with a 3 px offset (the component rings above used 2 px) */
html.wg-studio :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--focus-width) solid var(--purple-text); outline-offset: var(--focus-offset);
}
/* fields that draw their ring on the box around them keep that ring only */
html.wg-studio :is(.studio-lib-search, .studio-search-field) input:focus-visible { outline: none; }
@media (forced-colors: active) {
  html.wg-studio :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
  html.wg-studio :is(.studio-lib-search, .studio-search-field):focus-within { outline: 2px solid Highlight; }
}
/* the ring is there the moment focus lands (a control's own state transition never animates it in) */
html.wg-studio :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible { transition-property: none !important; }
/* state transitions on the Studio's controls: 150 ms (they ran 200 to 400 ms); prefers-reduced-motion stops them (css/base.css) */
html.wg-studio :is(.sx-btn, .sx-btn-quiet, .header-strings-btn, .header-strings-btn .hs, .theme-toggle, .pp-close, .pp-util, .pp-note-add,
  .pp-note-remove, .pp-theme-toggle, .pp-signout, .pp-manage-link, .pp-recap-share, button.roadmap-phase, .studio-nav-link, .studio-chips button,
  .studio-tabs [role="tab"], .sx-chip, .stc-card, .unlock-modal-cta, .unlock-modal-dismiss, .stc-more, .continue-card, .today-step, .today-step-toggle, .today-start, .today-step-go) { transition-duration: var(--duration-fast); }

/* Your focus on Today + the Accelerator interest sheet (Daniel 18 Oct 2026). Calm, one card, real lessons only. */
.studio-focus[hidden] { display: none !important; }
.studio-focus { margin: 0 0 22px; padding: 20px 22px; border-radius: var(--studio-radius, 16px); background: var(--bg-card); border: 1px solid var(--glass-border); }
.sf-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-text); }
.sf-h { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; color: var(--text-primary); }
.sf-h:focus { outline: none; }
.sf-h:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 3px; }
.sf-l, .sf-time, .sf-q { margin: 0 0 12px; font-size: var(--text-md, 1rem); line-height: 1.5; color: var(--text-secondary); }
.sf-q { margin-top: 14px; font-weight: 600; color: var(--text-primary); }
.sf-choices, .sf-times { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.sf-choice { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--bg-glass, transparent);
  color: var(--text-primary); font: 600 var(--text-sm, .9rem) var(--font-body); cursor: pointer; }
.sf-choice:hover, .sf-choice[aria-pressed="true"] { border-color: var(--purple-text); }
.sf-choice:focus-visible, .sf-link:focus-visible, .sf-item:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.sf-items { display: grid; gap: 8px; margin: 10px 0 4px; }
.sf-item { display: grid; gap: 2px; min-height: 44px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-subtle); text-decoration: none; color: var(--text-primary); }
.sf-item:hover { background: var(--bg-hover); }
.sf-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.sf-t { font-weight: 650; font-size: 1rem; }
.sf-c { font-size: var(--text-sm); color: var(--text-muted); }
.sf-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--purple-text); font: 600 var(--text-sm, .9rem) var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sf-foot { margin: 6px 0 0; }
.sf-ack { margin: 4px 0 0; min-height: 1.2em; font-size: var(--text-sm); color: var(--text-secondary); }
.sf-ack:empty { display: none; }
html.wg-studio .studio-focus :is(.sf-l, .sf-time, .sf-q, .sf-choice, .sf-link, .sf-k, .sf-c, .sf-ack, .sf-eyebrow) { font-size: max(16px, var(--studio-reading, 1rem)); }

.acc-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 0; border: 1px solid var(--glass-border); border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  background: var(--bg-sidebar, #1E192D); color: var(--text-primary); z-index: 1000; }   /* solid and centred: a see-through sheet over Today was unreadable (screenshot 18 Oct) */
.acc-dlg:not([open]) { display: none; }
.acc-dlg::backdrop { background: rgba(0, 0, 0, .55); }
.acc-form { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; }
.acc-h { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.acc-h:focus { outline: none; }
.acc-l { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-secondary); }
.acc-q { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.acc-q legend { margin: 0 0 6px; padding: 0; font-weight: 650; font-size: 16px; }
.acc-opt, .acc-notify { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--border-subtle); font-size: 16px; cursor: pointer; }
.acc-opt:has(input:checked), .acc-notify:has(input:checked) { border-color: var(--purple-text); background: rgba(96, 54, 232, .1); }
.acc-opt input, .acc-notify input { width: 20px; height: 20px; accent-color: var(--purple); }
.acc-err { margin: 0; color: #e8828a; font-size: 16px; }
.acc-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-save { min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--purple, #6036e8); color: #fff; font: 650 16px var(--font-body); cursor: pointer; }
.acc-save:focus-visible, .acc-opt:focus-within, .acc-notify:focus-within { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.acc-dlg .sf-link { font-size: 16px; }
.acc-terms { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--text-md, 1rem); line-height: 1.5; color: var(--text-secondary); }
.sf-link-block { display: inline-flex; align-items: center; min-height: 44px; }
/* ChatGPT review 18 Oct: the focus as one quiet line after Today's practice; a fixed Close on the sheet; a solid phone menu */
.sf-after { margin: 0 0 6px; font-size: max(16px, var(--studio-reading, 1rem)); line-height: 1.5; color: var(--text-secondary); }
.sf-inline { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--purple-text); }
.sf-after .sf-c { display: block; }
.acc-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -22px -22px 0; padding: 14px 22px; background: var(--bg-sidebar, #1E192D); border-bottom: 1px solid var(--border-subtle); }
.acc-x { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: none; color: var(--text-primary); font: 600 16px var(--font-body); cursor: pointer; }
.acc-x:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
@media (max-width: 1024px) { html.wg-studio #practice-panel.practice-panel { background: var(--bg-sidebar, #1E192D); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* r2 (17 Nov 2026, design audit A4-2, G-4, G-5): "Details" is the secondary pill beside the primary; the small-group line keeps its
   period on the same word; links in Explore use the one link colour */
/* G-4: the Studio's primary and quiet buttons share the one recipe (pill, the brand gradient for the primary) */
.sx-btn, .sx-btn-quiet { border-radius: 999px; }
.sx-btn, .sx-btn:hover { background: linear-gradient(135deg, #6036e8, #b3348c); }
.sx-btn:hover { box-shadow: 0 10px 28px rgba(96, 54, 232, .45); }
.sx-more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); color: var(--text-primary); font-weight: 700; text-decoration: none; }
[data-theme="light"] .sx-more { border-color: rgba(13, 0, 26, .18); }
.sx-more:hover { border-color: rgba(255, 255, 255, .4); }
[data-theme="light"] .sx-more:hover { border-color: rgba(13, 0, 26, .4); }
html.wg-studio .sx-group-interest a, html.wg-studio .sx-owned-line a { color: var(--wg-link, var(--purple-text)); }
html.wg-studio .sx-group-interest a { display: inline; padding: 12px 0; }
.sx-nowrap { white-space: nowrap; }
#studio-train-return { display: none; }   /* A2-5 (F1): the filler line under the trainers */
/* B2 (17 Nov 2026, design audit item 2 / I-2): the Mentor door's ring portrait is shown whole on the brand ink, never cropped into its teal */
html.wg-studio img[src^="/images/studio/programs/mentorship-daniel-ring.webp"] { object-fit: contain; object-position: 50% 50%; background: #0d001a; }
html.wg-studio .sx-art-photo:has(> img[src^="/images/studio/programs/mentorship-daniel-ring.webp"]) { background: #0d001a; }

/* Bundle C (18 Nov 2026): Your focus, the after-practice plan as step cards (Daniel 18 Nov; approved preview
   ~/Desktop/REVIEW-ROOM/learn-focus-steps). Icon, text, arrow; no numbered circles; the whole row is one target. */
.sf-plan{margin:6px 0 14px}
.sf-plan-h{margin:0 0 12px;font-size:max(16px,var(--studio-reading,1rem));font-weight:600;color:var(--text-secondary)}
.sf-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sf-steps li{position:relative}
.sf-step{display:grid;grid-template-columns:44px minmax(0,1fr) 24px;align-items:center;gap:12px;min-height:72px;padding:12px 16px 12px 14px;
  border-radius:14px;border:1px solid var(--glass-border);background:linear-gradient(135deg,rgba(124,92,255,.10),rgba(124,92,255,.02));
  color:var(--text-primary);text-decoration:none;transition:border-color .2s ease,background .2s ease}
.sf-step:hover{border-color:var(--purple-text);background:linear-gradient(135deg,rgba(124,92,255,.18),rgba(124,92,255,.04))}
.sf-step:focus-visible{outline:2px solid var(--purple-text);outline-offset:2px}
.sf-ic{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;background:var(--bg-hover,rgba(255,255,255,.06));color:var(--purple-text)}
.sf-ic svg{width:22px;height:22px}
.sf-step-tool .sf-ic{color:#e8b34a}
.sf-st{display:grid;gap:2px;min-width:0}
.sf-step .sf-k{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
.sf-step .sf-t{font-weight:650;font-size:1.0625rem;line-height:1.3}
.sf-step .sf-c{font-size:var(--text-sm,.875rem);color:var(--text-muted)}
.sf-go{color:var(--text-muted);transition:transform .2s ease,color .2s ease}
.sf-step:hover .sf-go{transform:translateX(3px);color:var(--purple-text)}
@media (max-width:480px){.sf-step{grid-template-columns:40px minmax(0,1fr) 20px;padding:12px 14px}.sf-ic{width:40px;height:40px}}
@media (max-width:767px){html.wg-studio .sf-step .sf-c{font-size:16px}}   /* the platform's phone reading rule (tests/v2c-phone-reading.spec.js): 16 px; the kind kicker is a listed micro-label */
@media (prefers-reduced-motion:reduce){.sf-step,.sf-go{transition:none}.sf-step:hover .sf-go{transform:none}}

/* Bundle C (S10 type floor only, 18 Nov 2026; Astra platform strategy section 9, "Emotional and premium design requirements"): the text a
   student must read to act is at least 17 px on a phone and 18 px on a desktop. Labels, eyebrows, counts and card captions keep their size.
   A floor never lowers a larger existing size: the open practice step keeps its own 18 px / 1.55 (tests/v2c-phone-reading.spec.js R2).
   tests/bundle-c.spec.js (C) measures the computed sizes at 390 and 1280. The :is() with an id that never exists only lifts the
   specificity to match the phone reading rule above (html.wg-studio :is(... #today-why-text ...)), so this later rule wins; no !important. */
html:is(.wg-studio, #wg-type-floor) .today-row:not(.today-row-open) .today-step-text, html:is(.wg-studio, #wg-type-floor) .today-step-why, html:is(.wg-studio, #wg-type-floor) .sf-l, html:is(.wg-studio, #wg-type-floor) .sf-plan-h, html:is(.wg-studio, #wg-type-floor) .studio-page-sub,
html:is(.wg-studio, #wg-type-floor) .wc-msg, html:is(.wg-studio, #wg-type-floor) #studio-view-path .studio-small, html:is(.wg-studio, #wg-type-floor) .gx-bridge, html:is(.wg-studio, #wg-type-floor) .gx-ex, html:is(.wg-studio, #wg-type-floor) .gx-intro, html:is(.wg-studio, #wg-type-floor) .sx-goal-l { font-size: 17px; line-height: 1.55; }
@media (min-width: 1024px) {
  html:is(.wg-studio, #wg-type-floor) .today-row:not(.today-row-open) .today-step-text, html:is(.wg-studio, #wg-type-floor) .today-step-why, html:is(.wg-studio, #wg-type-floor) .sf-l, html:is(.wg-studio, #wg-type-floor) .sf-plan-h, html:is(.wg-studio, #wg-type-floor) .studio-page-sub,
  html:is(.wg-studio, #wg-type-floor) .wc-msg, html:is(.wg-studio, #wg-type-floor) #studio-view-path .studio-small, html:is(.wg-studio, #wg-type-floor) .gx-bridge, html:is(.wg-studio, #wg-type-floor) .gx-ex, html:is(.wg-studio, #wg-type-floor) .gx-intro, html:is(.wg-studio, #wg-type-floor) .sx-goal-l { font-size: 18px; }
}

/* The rail, one quiet card (Daniel, 2026-11-19, docs/school/learn-rail-pro-2026-11-19): js/studio-shell.js railPick draws AT MOST ONE card
   in the sidebar foot (and the phone menu), then one quiet link to Explore. No icon, no photo, no heading on screen (the heading is the
   nav landmark's name, for screen readers). One fine hairline card on deep ink; lavender only for the action. Text 17 px or more, every
   target 44 px or more. html:is(.wg-studio, #wg-rail-one) lifts these rules to id weight, so the 44 px tap floor in css/tokens.css
   (:root body :is(... #studio-search-open, .studio-nav-foot a, .gd-row ...) { align-items: center }) and .studio-nav-foot a never
   restyle the card; the same idiom as the S10 type floor above. No !important; nothing here sets display on a [hidden] element. */
html:is(.wg-studio, #wg-rail-one) .gd-one { --gd-ink: #120b25; --gd-line: rgba(185, 165, 255, .28); --gd-line-hi: rgba(185, 165, 255, .55); --gd-ivory: #f4f0fb; --gd-text: #c9c0e0; --gd-go: #b9a5ff;
  gap: 10px; padding: 16px 0 14px; }
html[data-theme="light"]:is(.wg-studio, #wg-rail-one) .gd-one, html:is(.wg-studio, #wg-rail-one) [data-theme="light"] .gd-one { --gd-ink: #ffffff; --gd-line: rgba(52, 40, 92, .16); --gd-line-hi: rgba(91, 47, 224, .45); --gd-ivory: #221D33; --gd-text: #463F5C; --gd-go: #5B2FE0; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-list { gap: 6px; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-h svg { display: none; }   /* the old sparkle in the static heading markup: never drawn */
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-card { display: block; min-height: 44px; margin: 0; padding: 16px 16px 15px; border-radius: 14px; background: var(--gd-ink);
  border: 1px solid var(--gd-line); color: var(--gd-ivory); text-decoration: none; text-align: left; font-size: 17px; line-height: 1.45; transition: border-color .15s ease; }
html:is(.wg-studio, #wg-rail-one) .gd-one a.gd-card:hover { background: var(--gd-ink); border-color: var(--gd-line-hi); color: var(--gd-ivory); }
html:is(.wg-studio, #wg-rail-one) .gd-one a.gd-card:focus-visible { outline: 2px solid var(--gd-go); outline-offset: 3px; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-t { display: block; font: 700 20px/1.25 var(--font-display); letter-spacing: 0; color: var(--gd-ivory); text-wrap: balance; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-l, html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-d { display: block; margin-top: 6px; font: 400 17px/1.45 var(--font-body); color: var(--gd-text); }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-d { color: var(--gd-ivory); font-weight: 500; font-variant-numeric: lining-nums; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-nw { white-space: nowrap; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-when { font-size: 17px; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-go { display: block; margin-top: 12px; font: 600 17px/1.35 var(--font-body); color: var(--gd-go); }
html:is(.wg-studio, #wg-rail-one) .gd-one a.gd-card:hover .gd-c-go { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-ar { text-decoration: none; }
/* the one way to everything else: a quiet text link, lavender on hover */
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-all { display: block; min-height: 44px; padding: 10px 4px; margin: 0; border-radius: 10px; background: none;
  font: 500 17px/1.35 var(--font-body); color: var(--text-secondary); text-decoration: none; text-wrap: balance; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-all:hover { color: var(--gd-go); background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-all:focus-visible, html:is(.wg-studio, #wg-rail-one) .gd-one .gd-plain:focus-visible { outline: 2px solid var(--gd-go); outline-offset: 3px; }   /* the platform ring: 2 px, 3 px offset (v2c-phone-reading R4) */
/* the mentorship entry (every account that has one, MENTOR-01) and a Lab owner's route without a card: quiet text links like the Explore link, never a card */
html:is(.wg-studio, #wg-rail-one) .gd-one[data-gd-mode="plain"] { padding: 0; margin: 0; border-bottom: 0; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-plain { display: flex; align-items: center; min-height: 44px; padding: 4px 4px; border-radius: 10px; color: var(--text-secondary); text-decoration: none; background: none; font-size: 17px; }   /* the link itself, so the ↗ of the external link is 17 px too */
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-plain .gd-t { font: 500 17px/1.35 var(--font-body); color: inherit; }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-plain:hover { color: var(--gd-go); background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* no card (mentee, unknown): the link lines up with the footer links below it (Get Support's 14 px inset), at the rail's 17 px */
html:is(.wg-studio, #wg-rail-one) .gd-one[data-gd-mode="plain"] .gd-plain { padding: 0 14px; }
/* the phone menu: the same card, inside the panel's own padding */
html:is(.wg-studio, #wg-rail-one) .gd-panel.gd-one { padding: 14px 16px 16px; }
@media (prefers-reduced-motion: reduce) { html:is(.wg-studio, #wg-rail-one) .gd-one .gd-card { transition: none; } }
/* a status line inside the card ("You're in", "You're on the list", "Interest saved") keeps the .gd-soon hook the specs read, never the
   old pill: plain text with a quiet check-free weight */
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-card .gd-soon { align-self: auto; margin: 6px 0 0; padding: 0; border: 0; border-radius: 0; font: 500 17px/1.45 var(--font-body); letter-spacing: 0; color: var(--gd-ivory); }
html:is(.wg-studio, #wg-rail-one) .gd-one .gd-c-go { text-wrap: balance; }
