/* ===========================================================================
   WellCann Academy — shared light theme (TRN-B7)
   ---------------------------------------------------------------------------
   Derived from the WellCann canonical design tokens
   (wellcann-website/design-tokens/wellcann-tokens.css) and Ken's brand
   guideline. Canonical greens #338364 / #69b445 are the ONLY brand greens —
   the legacy sage/lime pair is corrected on sight wherever it appears.

   HOW THE RESKIN WORKS (three-tier rule from the tokens file): the module
   estate's component CSS reads a shared --wc-* variable vocabulary; this file
   re-points that vocabulary to light canonical values. Components are not
   rewritten — scripts/reskin_modules.py strips each page's dark :root block,
   links this file, and maps the few remaining hardcoded literals.

   Logo usage per guideline: wide-light in light headers; mark-dark-green as
   favicon/accents; SVGs referenced as <img> only, never inlined (Ken's SVGs
   share internal class names/gradient IDs and inlining cross-contaminates).

   Contrast: body-text pairs in this file are WCAG AA checked programmatically
   (backend/scripts/check_contrast.py) — keep that script green when editing.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ------------------------------------------------------------------
       MODULE-ESTATE VOCABULARY (the 38 names every module page reads)
       ------------------------------------------------------------------ */

    /* Surfaces — the old dark ramp re-pointed to warm-green paper */
    --wc-bg-darkest: #e8f1e9;
    --wc-bg-dark: #f4f8f5;
    --wc-bg-dark-mid: #e8f1e9;
    --wc-bg-dark-light: #dde7df;
    --wc-bg-page: linear-gradient(180deg, #f4f8f5 0%, #e8f1e9 55%, #f4f8f5 100%);

    /* Brand — canonical greens only. NOTE (adversarial review): the estate
       clips h1/stat/score TEXT to --wc-gradient, so its light end must stay
       AA-large against paper — hence the deep pair (the tokens file's
       gradient-deep), not primary->secondary whose #69b445 end reads 2.4:1
       as text. Fills that want the lime pop use --wc-gradient-brand. */
    --wc-primary: #338364;
    --wc-primary-dark: #1f5240;
    --wc-primary-light: #266349;
    --wc-primary-bright: #338364;
    --wc-secondary: #69b445;
    --wc-secondary-light: #266349;
    --wc-gradient: linear-gradient(135deg, #1f5240, #338364);
    --wc-gradient-brand: linear-gradient(135deg, #338364, #69b445);
    --wc-gradient-dark: linear-gradient(135deg, #1f5240, #338364);

    /* Text — deep-green headings, warm-grey body (AA on paper) */
    --wc-text-primary: #1f5240;
    --wc-text-body: #35443d;
    --wc-text-secondary: #48574f;
    --wc-text-muted: #566159;

    /* Status ramps — token hues; *-text variants are the dark inks that
       stay readable on the pale tinted washes the module cards use */
    --wc-green: #2e9e5b;
    --wc-red: #e53e3e;
    --wc-red-light: #a32424;
    --wc-amber: #c98a16;
    --wc-amber-text: #8a5e0e;
    --wc-blue: #2f6fd0;
    --wc-blue-text: #1c4d96;
    --wc-purple: #7c5cd6;
    --wc-purple-text: #55349b;
    --wc-cyan: #0891b2;
    --wc-cyan-text: #0e7490;
    --wc-pink: #d6367f;
    --wc-pink-text: #9d174d;
    --wc-orange: #c2611a;
    --wc-orange-text: #9a3412;

    /* Cards — the old "glass" becomes white paper cards */
    --wc-glass-bg: linear-gradient(145deg, #ffffff, #f7faf8);
    --wc-glass-border: #dde7df;
    --wc-glass-border-hover: rgba(51, 131, 100, 0.45);

    /* Type — website family: Gelasio display serif, Outfit sans.
       The un-prefixed aliases exist because login/portal/index chrome refers
       to var(--font-display)/var(--font-body); their only definitions lived
       in the dark :root the transform strips (adversarial-review finding —
       without these the chrome fell back to the UA serif). */
    --wc-font-display: 'Gelasio', Georgia, 'Times New Roman', serif;
    --wc-font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wc-font-mono: 'Consolas', 'Menlo', monospace;
    --font-display: 'Gelasio', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ------------------------------------------------------------------
       CHROME-PAGE VOCABULARY (login / portal / modules / module / index)
       ------------------------------------------------------------------ */
    --wc-dark-bg: #f4f8f5;
    --wc-dark-bg-mid: #e8f1e9;
    --wc-dark-bg-light: #dde7df;
    --wc-text: #1f5240;
    --wc-success: #2e9e5b;
    --wc-warning: #c98a16;
    --wc-error: #e53e3e;
    --wc-info: #2f6fd0;

    /* ------------------------------------------------------------------
       Shared primitives (tokens file, verbatim)
       ------------------------------------------------------------------ */
    --wc-paper: #f4f8f5;
    --wc-paper-2: #e8f1e9;
    --wc-line: #dde7df;
    --wc-white: #ffffff;
    --wc-shadow-soft: 0 4px 18px rgba(20, 59, 46, 0.08);
    --wc-shadow-float: 0 18px 50px rgba(20, 59, 46, 0.16);
    --wc-shadow-glow: 0 8px 25px rgba(105, 180, 69, 0.35);
    --wc-radius-card: 15px;
    --wc-radius-btn: 10px;
    --wc-radius-pill: 999px;
}

/* ---------------------------------------------------------------------------
   Shared base — light chrome polish common to every Academy surface
   --------------------------------------------------------------------------- */

::selection { background: rgba(105, 180, 69, 0.30); }

.wc-header-logo { height: 40px; width: auto; display: block; }
.wc-header-logo-wrap { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

/* Focus visibility on light surfaces */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #338364;
    outline-offset: 2px;
}

/* Scrollbar, aligned with paper surfaces */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e8f1e9; }
::-webkit-scrollbar-thumb { background: #b9cfc0; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #338364; }


/* ===========================================================================
   DESIGN STANDARD v2 — shared component vocabulary (the Tier 2 anatomy)
   ---------------------------------------------------------------------------
   Every Tier 2 (ACA) page carries ~200 lines of per-page component CSS: the
   tabbed section shell with progress, cards in seven hues, stats, objectives,
   analogy box, timelines, comparison grids, summary rows, quote box and the
   interactive knowledge check. This block promotes that vocabulary (the 1 Sep
   presentation audit, §1 "Anatomy of a Tier 2 page") so every tier can use it
   from ONE place, with backend/../frontend/js/wellcann-module.js as its
   runtime.

   SCOPE (load-bearing): every rule below is scoped to `.wc-v2`, the marker a
   v2 page sets on <body>. The 28 ACA pages link this stylesheet but carry no
   marker, so no rule here can match on them and their hash-pinned content
   renders byte-identically — proven, not assumed, by
   backend/scripts/dsv2_render_proof.py (computed-style + screenshot
   fingerprints before/after). A v2 page links this file, links
   ../js/wellcann-module.js, and writes NO component CSS of its own.

   Values: the ACA-01 (module1-dark.html) definition where it defines a
   component; the estate-majority definition otherwise; two later-tier pieces
   of governance furniture (.approval-line, .footer) and the VAL-01
   .logo-slot pattern, extended with a described illustration placeholder.
   Contrast: text inks are the same AA-checked tokens as above; washes are the
   ACA tints (check_contrast.py stays green).
   =========================================================================== */

/* ---- base ---------------------------------------------------------------- */
.wc-v2, .wc-v2 * { margin: 0; padding: 0; box-sizing: border-box; }
body.wc-v2 { font-family: var(--wc-font-body); background: var(--wc-bg-page); color: var(--wc-text-body); min-height: 100vh; line-height: 1.7; font-size: 17px; }
.wc-v2 .container { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.wc-v2 .header { text-align: center; margin-bottom: 48px; padding: 60px 0 40px; position: relative; }
.wc-v2 .header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 50%, rgba(51, 131, 100, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(105, 180, 69, 0.2) 0%, transparent 40%); pointer-events: none; }
.wc-v2 .header > * { position: relative; }
.wc-v2 .module-badge { display: inline-block; background: rgba(20, 59, 46, 0.13); border: 1px solid rgba(20, 59, 46, 0.20); color: var(--wc-text-secondary); padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(10px); }
.wc-v2 h1 { font-family: var(--wc-font-display); font-size: clamp(32px, 5vw, 46px); font-weight: 800; background: var(--wc-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; line-height: 1.2; }
.wc-v2 .subtitle { font-size: 20px; color: var(--wc-text-secondary); max-width: 700px; margin: 0 auto; }
.wc-v2 h2 { font-family: var(--wc-font-display); font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: var(--wc-text-primary); margin-bottom: 24px; }
.wc-v2 h3 { font-family: var(--wc-font-display); font-size: 22px; font-weight: 600; color: var(--wc-text-primary); margin: 32px 0 16px; }
.wc-v2 h4 { font-family: var(--wc-font-display); font-size: 18px; font-weight: 600; color: var(--wc-text-primary); margin-bottom: 8px; }
.wc-v2 p { margin-bottom: 18px; color: var(--wc-text-secondary); }
.wc-v2 strong { color: var(--wc-text-primary); font-weight: 600; }
.wc-v2 em { color: var(--wc-text-body); }
.wc-v2 code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; color: var(--wc-text-primary); background: rgba(51, 131, 100, 0.10); border: 1px solid rgba(51, 131, 100, 0.18); border-radius: 6px; padding: 1px 6px; }
.wc-v2 ol, .wc-v2 ul { margin: 0 0 18px 24px; color: var(--wc-text-secondary); }
.wc-v2 li { margin-bottom: 10px; }
.wc-v2 a { color: var(--wc-primary-light); }
.wc-v2 .lead { font-size: 18px; }
.wc-v2 .signoff { text-align: right; font-style: italic; color: var(--wc-text-primary); margin-top: 24px; }

/* ---- progress + section shell ------------------------------------------- */
.wc-v2 .progress-container { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 16px; padding: 20px 24px; margin: 32px 0; backdrop-filter: blur(10px); }
.wc-v2 .progress-bar { background: rgba(20, 59, 46, 0.13); height: 12px; border-radius: 6px; overflow: hidden; }
.wc-v2 .progress-fill { background: var(--wc-gradient); height: 100%; width: 0%; transition: width 0.5s ease; border-radius: 6px; box-shadow: 0 0 20px rgba(51, 131, 100, 0.5); }
.wc-v2 .progress-text { text-align: center; color: var(--wc-text-muted); font-size: 14px; margin: 10px 0 0; font-weight: 500; }
.wc-v2 .section-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; justify-content: center; }
.wc-v2 .section-btn { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); color: var(--wc-text-secondary); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--wc-font-body); backdrop-filter: blur(10px); }
.wc-v2 .section-btn:hover { border-color: var(--wc-primary); color: var(--wc-primary-light); transform: translateY(-2px); }
.wc-v2 .section-btn.active { background: var(--wc-gradient); border-color: transparent; color: white; box-shadow: 0 4px 20px rgba(51, 131, 100, 0.4); }
.wc-v2 .section-btn.completed { background: #2e7558; border-color: transparent; color: white; }
.wc-v2 .section { display: none; animation: wc-fade-in 0.4s ease; }
.wc-v2 .section.active { display: block; }
@keyframes wc-fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---- cards (seven hues) -------------------------------------------------- */
.wc-v2 .card { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 20px; padding: 28px; margin-bottom: 20px; backdrop-filter: blur(10px); transition: all 0.3s; }
.wc-v2 .card:hover { transform: translateY(-4px); border-color: var(--wc-glass-border-hover); box-shadow: 0 20px 60px rgba(51, 131, 100, 0.15); }
.wc-v2 .card-green { background: linear-gradient(145deg, rgba(51, 131, 100, 0.15), rgba(51, 131, 100, 0.05)); border-color: rgba(51, 131, 100, 0.3); }
.wc-v2 .card-blue { background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04)); border-color: rgba(59, 130, 246, 0.3); }
.wc-v2 .card-amber { background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04)); border-color: rgba(245, 158, 11, 0.3); }
.wc-v2 .card-red { background: linear-gradient(145deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04)); border-color: rgba(239, 68, 68, 0.3); }
.wc-v2 .card-purple { background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.04)); border-color: rgba(139, 92, 246, 0.3); }
.wc-v2 .card-cyan { background: linear-gradient(145deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0.04)); border-color: rgba(6, 182, 212, 0.3); }
.wc-v2 .card-pink { background: linear-gradient(145deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.04)); border-color: rgba(236, 72, 153, 0.3); }
.wc-v2 .card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.wc-v2 .card-icon { font-size: 28px; }
.wc-v2 .card-title { font-family: var(--wc-font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.wc-v2 .card > .card-title { margin-bottom: 14px; }
.wc-v2 h2 + h3 { margin-top: -8px; }
.wc-v2 .card-title.green { color: var(--wc-primary-light); }
.wc-v2 .card-title.blue { color: var(--wc-blue-text); }
.wc-v2 .card-title.amber { color: var(--wc-amber-text); }
.wc-v2 .card-title.red { color: var(--wc-red-light); }
.wc-v2 .card-title.purple { color: var(--wc-purple-text); }
.wc-v2 .card-title.cyan { color: var(--wc-cyan-text); }
.wc-v2 .card-title.pink { color: var(--wc-pink-text); }
.wc-v2 .card p:last-child, .wc-v2 .card ul:last-child, .wc-v2 .card ol:last-child { margin-bottom: 0; }
.wc-v2 .card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.wc-v2 .card-row .card { margin-bottom: 0; }

/* ---- quotes -------------------------------------------------------------- */
.wc-v2 .quote { position: relative; padding: 32px; margin: 32px 0; background: var(--wc-glass-bg); border-left: 4px solid var(--wc-primary); border-radius: 0 20px 20px 0; backdrop-filter: blur(10px); }
.wc-v2 .quote::before { content: '"'; position: absolute; top: 10px; left: 20px; font-size: 60px; font-family: Georgia, serif; color: var(--wc-primary); opacity: 0.3; line-height: 1; }
.wc-v2 .quote-box { background: linear-gradient(145deg, rgba(51, 131, 100, 0.15), rgba(51, 131, 100, 0.05)); border: 2px solid rgba(51, 131, 100, 0.3); border-radius: 20px; padding: 32px; margin: 32px 0; position: relative; text-align: center; }
.wc-v2 .quote-marks { font-size: 80px; color: rgba(51, 131, 100, 0.3); line-height: 1; position: absolute; top: 10px; left: 20px; font-family: serif; }
.wc-v2 .quote-text { font-size: 22px; font-style: italic; color: var(--wc-text-primary); margin-bottom: 12px; font-weight: 500; padding-left: 20px; }
.wc-v2 .quote-box .quote-text { font-family: var(--wc-font-display); font-size: 24px; font-weight: 600; position: relative; z-index: 1; padding-left: 0; margin-bottom: 0; }
.wc-v2 .quote-author { color: var(--wc-text-muted); font-size: 15px; padding-left: 20px; margin: 0; }
.wc-v2 blockquote { position: relative; padding: 24px 28px 24px 32px; margin: 24px 0; background: var(--wc-glass-bg); border-left: 4px solid var(--wc-primary); border-radius: 0 16px 16px 0; color: var(--wc-text-primary); font-style: italic; }
.wc-v2 blockquote p:last-child { margin-bottom: 0; }
.wc-v2 .comparison-table caption { caption-side: top; text-align: left; font-family: var(--wc-font-display); font-size: 14px; font-weight: 700; color: var(--wc-primary-light); padding: 0 0 10px; }
.wc-v2 .comparison-table th { white-space: nowrap; }
.wc-v2 .table-wrap { overflow-x: auto; }

/* ---- grids, stats, objectives ------------------------------------------- */
.wc-v2 .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 24px 0; }
.wc-v2 .grid-item { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 16px; padding: 24px; text-align: center; transition: all 0.3s; }
.wc-v2 .grid-item:hover { transform: translateY(-4px); border-color: var(--wc-glass-border-hover); box-shadow: 0 12px 40px rgba(51, 131, 100, 0.15); }
.wc-v2 .grid-icon { font-size: 40px; margin-bottom: 14px; }
.wc-v2 .grid-label { font-family: var(--wc-font-display); font-size: 17px; font-weight: 600; color: var(--wc-text-primary); margin-bottom: 6px; }
.wc-v2 .grid-desc { font-size: 13px; color: var(--wc-text-muted); margin: 0; }
.wc-v2 .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 24px 0; }
.wc-v2 .stat-box { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 16px; padding: 24px; text-align: center; transition: all 0.3s; }
.wc-v2 .stat-box:hover { border-color: var(--wc-glass-border-hover); transform: translateY(-4px); }
.wc-v2 .stat-number { font-family: var(--wc-font-display); font-size: 28px; font-weight: 800; background: var(--wc-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.wc-v2 .stat-label { font-size: 13px; color: var(--wc-text-muted); margin-top: 8px; }
.wc-v2 .objectives { background: linear-gradient(145deg, rgba(51, 131, 100, 0.15), rgba(51, 131, 100, 0.05)); border: 1px solid rgba(51, 131, 100, 0.3); border-radius: 20px; padding: 32px; margin: 32px 0; }
.wc-v2 .objectives h3 { font-family: var(--wc-font-display); font-size: 14px; font-weight: 700; color: var(--wc-primary-light); letter-spacing: 0.1em; margin: 0 0 24px 0; text-transform: uppercase; }
.wc-v2 .objective-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.wc-v2 .objective-item:last-child { margin-bottom: 0; }
.wc-v2 .objective-num { width: 32px; height: 32px; background: var(--wc-gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--wc-font-display); font-weight: 700; color: white; font-size: 14px; flex-shrink: 0; }
.wc-v2 .objective-text { color: var(--wc-text-secondary); font-size: 16px; padding-top: 4px; }

/* ---- analogy box --------------------------------------------------------- */
.wc-v2 .analogy-box { background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)); border: 2px solid rgba(139, 92, 246, 0.3); border-radius: 20px; padding: 32px; margin: 32px 0; position: relative; overflow: hidden; }
.wc-v2 .analogy-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; position: relative; }
.wc-v2 .analogy-icon { font-size: 40px; }
.wc-v2 .analogy-label { color: var(--wc-purple-text); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.wc-v2 .analogy-title { font-family: var(--wc-font-display); font-size: 24px; font-weight: 700; color: var(--wc-text-primary); margin-bottom: 16px; position: relative; }
.wc-v2 .analogy-text { color: var(--wc-text-secondary); position: relative; margin: 0; }

/* ---- timeline ------------------------------------------------------------ */
.wc-v2 .timeline { position: relative; padding-left: 50px; margin: 32px 0; }
.wc-v2 .timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 4px; background: var(--wc-gradient); border-radius: 4px; }
.wc-v2 .timeline-item { position: relative; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 16px; padding: 24px; margin-bottom: 20px; transition: all 0.3s; }
.wc-v2 .timeline-item::before { content: ''; position: absolute; left: -40px; top: 28px; width: 20px; height: 20px; background: var(--wc-primary); border-radius: 50%; border: 4px solid var(--wc-bg-dark); box-shadow: 0 0 20px rgba(51, 131, 100, 0.5); }
.wc-v2 .timeline-item:hover { transform: translateX(8px); border-color: var(--wc-glass-border-hover); }
.wc-v2 .timeline-year { display: inline-block; background: var(--wc-gradient); color: white; padding: 6px 16px; border-radius: 50px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.wc-v2 .timeline-content h4 { font-family: var(--wc-font-display); font-size: 18px; font-weight: 600; color: var(--wc-text-primary); margin-bottom: 8px; }
.wc-v2 .timeline-content p { color: var(--wc-text-secondary); font-size: 15px; margin: 0; }
.wc-v2 .timeline-content p + p { margin-top: 10px; }
.wc-v2 .timeline-note { font-size: 15px; color: var(--wc-text-body); font-style: italic; border-left: 3px solid rgba(51, 131, 100, 0.35); padding-left: 12px; margin-top: 12px; }
.wc-v2 .timeline-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wc-v2 .timeline-meta-item { font-size: 13px; font-weight: 600; color: var(--wc-primary-light); background: rgba(51, 131, 100, 0.10); border: 1px solid rgba(51, 131, 100, 0.20); border-radius: 50px; padding: 4px 12px; }
.wc-v2 .timeline-content .card { margin: 14px 0 0; padding: 20px; }

/* ---- journey strip (orientation across a split timeline) ---------------- */
.wc-v2 .journey-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 24px 0 28px; }
.wc-v2 .journey-stop { text-align: center; font-size: 11px; line-height: 1.3; color: var(--wc-text-muted); }
.wc-v2 .journey-stop .stop-num { width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; background: rgba(20, 59, 46, 0.10); border: 1px solid rgba(20, 59, 46, 0.15); display: flex; align-items: center; justify-content: center; font-family: var(--wc-font-display); font-weight: 700; font-size: 13px; color: var(--wc-text-secondary); }
.wc-v2 .journey-stop.is-done .stop-num { background: #2e7558; border-color: transparent; color: white; }
.wc-v2 .journey-stop.is-current { color: var(--wc-text-primary); font-weight: 600; }
.wc-v2 .journey-stop.is-current .stop-num { background: var(--wc-gradient); border-color: transparent; color: white; box-shadow: 0 4px 16px rgba(51, 131, 100, 0.4); }

/* ---- comparison grid ----------------------------------------------------- */
.wc-v2 .comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 24px 0; }
.wc-v2 .comparison-card { background: var(--wc-glass-bg); border: 2px solid var(--wc-glass-border); border-radius: 20px; padding: 24px; position: relative; overflow: hidden; transition: all 0.3s; }
.wc-v2 .comparison-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--wc-gradient); }
.wc-v2 .comparison-card:hover { transform: translateY(-4px); }
.wc-v2 .comparison-card.blue { border-color: rgba(59, 130, 246, 0.3); } .wc-v2 .comparison-card.blue::before { background: linear-gradient(135deg, #2f6fd0, #1c4d96); }
.wc-v2 .comparison-card.green { border-color: rgba(34, 197, 94, 0.3); } .wc-v2 .comparison-card.green::before { background: linear-gradient(135deg, #2e9e5b, #1d6b3e); }
.wc-v2 .comparison-card.amber { border-color: rgba(245, 158, 11, 0.3); } .wc-v2 .comparison-card.amber::before { background: linear-gradient(135deg, #c98a16, #8a5e0e); }
.wc-v2 .comparison-card.purple { border-color: rgba(139, 92, 246, 0.3); } .wc-v2 .comparison-card.purple::before { background: linear-gradient(135deg, #7c5cd6, #55349b); }
.wc-v2 .comparison-card.red { border-color: rgba(239, 68, 68, 0.3); } .wc-v2 .comparison-card.red::before { background: linear-gradient(135deg, #e53e3e, #a32424); }
.wc-v2 .comparison-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.wc-v2 .comparison-icon { font-size: 36px; }
.wc-v2 .comparison-title { font-family: var(--wc-font-display); font-size: 20px; font-weight: 700; color: var(--wc-text-primary); }
.wc-v2 .comparison-card p { font-size: 15px; margin: 0; }
.wc-v2 .comparison-list { list-style: none; margin: 0; }
.wc-v2 .comparison-list li { font-size: 14px; color: var(--wc-text-secondary); padding: 8px 0; border-bottom: 1px solid rgba(20, 59, 46, 0.05); display: flex; align-items: center; gap: 10px; margin: 0; }
.wc-v2 .comparison-list li:last-child { border-bottom: none; }
.wc-v2 .list-icon { font-size: 16px; }

/* ---- profile (a vignette / persona card) --------------------------------- */
.wc-v2 .profile { display: flex; gap: 24px; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 20px; padding: 28px; margin: 28px 0; backdrop-filter: blur(10px); transition: all 0.3s; }
.wc-v2 .profile:hover { border-color: var(--wc-glass-border-hover); box-shadow: 0 20px 60px rgba(51, 131, 100, 0.15); }
.wc-v2 .profile-avatar { width: 90px; height: 90px; background: var(--wc-gradient); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--wc-font-display); font-size: 40px; font-weight: 700; color: white; flex-shrink: 0; }
.wc-v2 .profile-name { font-family: var(--wc-font-display); font-size: 22px; font-weight: 700; color: var(--wc-text-primary); margin-bottom: 4px; }
.wc-v2 .profile-role { color: var(--wc-text-muted); font-size: 13px; margin-bottom: 12px; font-weight: 500; }
.wc-v2 .profile-text { color: var(--wc-text-secondary); font-size: 15px; margin: 0; }

/* ---- process steps ------------------------------------------------------- */
.wc-v2 .process-steps { margin: 32px 0; }
.wc-v2 .process-step { display: flex; gap: 20px; margin-bottom: 24px; }
.wc-v2 .step-number { width: 48px; height: 48px; background: var(--wc-gradient); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--wc-font-display); font-weight: 800; font-size: 20px; color: white; flex-shrink: 0; box-shadow: 0 8px 25px rgba(51, 131, 100, 0.3); }
.wc-v2 .step-content { flex: 1; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 16px; padding: 20px 24px; }
.wc-v2 .step-title { font-family: var(--wc-font-display); font-size: 18px; font-weight: 600; color: var(--wc-text-primary); margin-bottom: 8px; }
.wc-v2 .step-desc { color: var(--wc-text-secondary); font-size: 15px; margin: 0; }

/* ---- warning box --------------------------------------------------------- */
.wc-v2 .warning-box { background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)); border: 2px solid rgba(239, 68, 68, 0.3); border-radius: 16px; padding: 24px; margin: 24px 0; }
.wc-v2 .warning-box.amber { background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)); border-color: rgba(245, 158, 11, 0.3); }
.wc-v2 .warning-title { font-family: var(--wc-font-display); font-size: 16px; font-weight: 700; color: var(--wc-red-light); margin-bottom: 8px; }
.wc-v2 .warning-box.amber .warning-title { color: var(--wc-amber-text); }
.wc-v2 .warning-box p:last-child { margin-bottom: 0; }

/* ---- summary rows -------------------------------------------------------- */
.wc-v2 .summary-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 16px; margin-bottom: 16px; transition: all 0.3s; }
.wc-v2 .summary-item:hover { border-color: var(--wc-glass-border-hover); transform: translateX(8px); }
.wc-v2 .summary-icon { font-size: 32px; flex-shrink: 0; }
.wc-v2 .summary-text { color: var(--wc-text-secondary); font-size: 16px; margin: 0; padding-top: 4px; }

/* ---- tables -------------------------------------------------------------- */
.wc-v2 .comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--wc-glass-bg); border-radius: 16px; overflow: hidden; }
.wc-v2 .comparison-table th, .wc-v2 .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--wc-glass-border); }
.wc-v2 .comparison-table th { background: rgba(51, 131, 100, 0.2); color: var(--wc-text-primary); font-weight: 600; font-size: 14px; }
.wc-v2 .comparison-table td { color: var(--wc-text-secondary); font-size: 15px; }
.wc-v2 .comparison-table tr:last-child td { border-bottom: none; }

/* ---- knowledge check (practice only) ------------------------------------- */
.wc-v2 .quiz-box { background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.06)); border: 2px solid rgba(59, 130, 246, 0.3); border-radius: 20px; padding: 32px; margin: 40px 0; }
.wc-v2 .kc-practice-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; margin-bottom: 10px; }
.wc-v2 .quiz-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.wc-v2 .quiz-icon { background: var(--wc-blue); width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.wc-v2 .quiz-label { color: var(--wc-blue-text); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.wc-v2 .quiz-question { font-size: 19px; font-weight: 600; color: var(--wc-text-primary); margin-bottom: 20px; }
.wc-v2 .quiz-options { display: flex; flex-direction: column; gap: 12px; }
.wc-v2 .quiz-option { background: rgba(20, 59, 46, 0.05); border: 2px solid rgba(20, 59, 46, 0.13); border-radius: 12px; padding: 16px 20px; color: var(--wc-text-secondary); font-size: 15px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 14px; font-family: var(--wc-font-body); text-align: left; width: 100%; line-height: 1.5; }
.wc-v2 .quiz-option:hover:not(.answered) { background: rgba(59, 130, 246, 0.1); border-color: var(--wc-blue); color: var(--wc-text-primary); }
.wc-v2 .quiz-option.answered { cursor: default; }
.wc-v2 .option-letter { width: 32px; height: 32px; background: rgba(20, 59, 46, 0.13); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.wc-v2 .quiz-option.correct { background: rgba(34, 197, 94, 0.15); border-color: #1d6b3e; color: #1d6b3e; }
.wc-v2 .quiz-option.correct .option-letter { background: #2e7558; color: white; }
.wc-v2 .quiz-option.incorrect { background: rgba(239, 68, 68, 0.15); border-color: #a32424; color: #a32424; }
.wc-v2 .quiz-option.incorrect .option-letter { background: var(--wc-red); color: white; }
.wc-v2 .quiz-feedback { margin-top: 20px; padding: 20px; border-radius: 12px; display: none; }
.wc-v2 .quiz-feedback.show { display: block; }
.wc-v2 .quiz-feedback.correct { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); }
.wc-v2 .quiz-feedback.correct p { color: #1d6b3e; margin: 0; }
.wc-v2 .quiz-feedback.incorrect { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.wc-v2 .quiz-feedback.incorrect p { color: #a32424; margin: 0; }
.wc-v2 .quiz-feedback p + p { margin-top: 8px; }
.wc-v2 .quiz-verdict { font-weight: 700; }
.wc-v2 .quiz-why { font-size: 14px; }
.wc-v2 .quiz-feedback .quiz-why strong { color: inherit; }

/* ---- section navigation buttons ----------------------------------------- */
.wc-v2 .nav-buttons { display: flex; gap: 16px; margin-top: 40px; }
.wc-v2 .nav-btn { flex: 1; padding: 16px 24px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--wc-font-body); background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); color: var(--wc-text-secondary); }
.wc-v2 .nav-btn:hover:not(:disabled) { border-color: var(--wc-primary); color: var(--wc-primary-light); transform: translateY(-2px); }
.wc-v2 .nav-btn.primary { background: var(--wc-gradient); border: none; color: white; }
.wc-v2 .nav-btn.primary:hover { box-shadow: 0 8px 25px rgba(51, 131, 100, 0.4); color: white; }
.wc-v2 .nav-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- references (card text + accordion) ---------------------------------- */
.wc-v2 .references { font-size: 15px; color: var(--wc-text-muted); }
.wc-v2 .references-section { margin: 32px 0; }
.wc-v2 .references-toggle { width: 100%; background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.05)); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.3s; font-family: var(--wc-font-body); }
.wc-v2 .references-toggle:hover { background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.08)); border-color: rgba(139, 92, 246, 0.5); }
.wc-v2 .references-toggle-left { display: flex; align-items: center; gap: 12px; }
.wc-v2 .references-icon { font-size: 24px; }
.wc-v2 .references-title { font-size: 15px; font-weight: 600; color: var(--wc-purple-text); }
.wc-v2 .references-count { font-size: 13px; color: var(--wc-text-muted); font-weight: 400; }
.wc-v2 .references-chevron { font-size: 20px; color: var(--wc-purple-text); transition: transform 0.3s; }
.wc-v2 .references-toggle.open .references-chevron { transform: rotate(180deg); }
.wc-v2 .references-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background: rgba(20, 59, 46, 0.14); border-radius: 0 0 12px 12px; margin-top: -4px; }
.wc-v2 .references-content.open { max-height: 1000px; padding: 20px; }
.wc-v2 .references-list { list-style: none; margin: 0; }
.wc-v2 .reference-item { padding: 12px 0; border-bottom: 1px solid rgba(20, 59, 46, 0.05); display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.wc-v2 .reference-item:last-child { border-bottom: none; }
.wc-v2 .reference-number { min-width: 28px; height: 28px; background: rgba(139, 92, 246, 0.15); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--wc-purple-text); flex-shrink: 0; }
.wc-v2 .reference-text { font-size: 14px; color: var(--wc-text-secondary); line-height: 1.6; }

/* ---- assessment tab + governance furniture ------------------------------- */
.wc-v2 .final-quiz-header { background: var(--wc-gradient-dark); border-radius: 20px; padding: 40px; text-align: center; margin-bottom: 32px; }
.wc-v2 .final-quiz-header h2 { color: #ffffff; margin-bottom: 8px; }
.wc-v2 .final-quiz-header p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.wc-v2 .assessment-start-card { background: rgba(51, 131, 100, 0.10); border: 1px solid rgba(51, 131, 100, 0.35); border-radius: 16px; padding: 22px 26px; margin: 28px 0 8px; text-align: center; }
.wc-v2 .assessment-start-card .start-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--wc-text-primary); }
.wc-v2 .assessment-start-card .start-note { font-size: 14px; margin: 0 0 14px; opacity: 0.75; }
.wc-v2 .assessment-start-card button { background: var(--wc-gradient-brand); color: #ffffff; border: 0; border-radius: 12px; padding: 12px 26px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.wc-v2 .approval-line { font-style: italic; color: var(--wc-text-muted); font-size: 14px; margin: 24px 0 0; text-align: center; }
.wc-v2 .footer { text-align: center; padding: 40px 0 20px; color: var(--wc-text-muted); font-size: 13px; }

/* ---- logo slot (VAL-01 pattern) + described illustration slot ----------- */
.wc-v2 .logo-slot { text-align: center; margin: 36px 0; }
.wc-v2 .logo-slot img { width: 220px; max-width: 80%; height: auto; background: #ffffff; border-radius: 20px; padding: 24px; box-shadow: 0 12px 40px rgba(20, 59, 46, 0.14); }
.wc-v2 .illustration-slot img { width: 100%; max-width: 100%; padding: 0; border-radius: 20px; }
.wc-v2 .illustration-placeholder { border: 2px dashed rgba(51, 131, 100, 0.45); border-radius: 20px; padding: 28px 24px; background: rgba(51, 131, 100, 0.05); color: var(--wc-text-secondary); font-size: 15px; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.wc-v2 .illustration-placeholder .slot-label { font-family: var(--wc-font-display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wc-primary-light); font-weight: 700; }
.wc-v2 .illustration-placeholder .slot-brief { max-width: 600px; margin: 0; line-height: 1.55; }
.wc-v2 .illustration-slot figcaption { font-size: 13px; color: var(--wc-text-muted); margin-top: 10px; }

/* ---- stage gates (PRG-08, design §6.3) ---------------------------------
   Summative and recorded, so it must read as different in KIND from the blue
   practice knowledge check above: a green-edged card, dashed when locked,
   with inline SVG icons drawn by the gate script (no emoji). Canonical
   palette only. Driven from module.html over postMessage. ---------------- */
.wc-v2 .gate-box { position: relative; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-left: 4px solid #338364; border-radius: 20px; padding: 28px 32px; margin: 40px 0; }
.wc-v2 .gate-box h3 { margin: 0 0 6px; font-size: 20px; }
.wc-v2 .gate-box__lede { font-size: 14px; color: var(--wc-text-muted); margin: 0 0 18px; }
.wc-v2 .gate-box__state { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wc-primary-light); margin: 0 0 12px; }
.wc-v2 .gate-box__icon { width: 18px; height: 18px; flex-shrink: 0; }
.wc-v2 .gate-box__notice { font-size: 15px; color: var(--wc-text-secondary); margin: 0 0 12px; }
.wc-v2 .gate-box__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.wc-v2 .gate-box__btn { background: var(--wc-gradient-brand); color: #ffffff; border: 0; border-radius: 12px; padding: 12px 24px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--wc-font-body); }
.wc-v2 .gate-box__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wc-v2 .gate-box__btn.secondary { background: var(--wc-glass-bg); color: var(--wc-text-secondary); border: 1px solid var(--wc-glass-border); }
.wc-v2 .gate-box__question { margin: 18px 0; }
.wc-v2 .gate-box__stem { font-size: 17px; font-weight: 600; color: var(--wc-text-primary); margin: 0 0 12px; }
.wc-v2 .gate-box__options { display: flex; flex-direction: column; gap: 10px; }
.wc-v2 .gate-box__option { background: rgba(51, 131, 100, 0.05); border: 2px solid rgba(51, 131, 100, 0.18); border-radius: 12px; padding: 14px 18px; text-align: left; font-family: var(--wc-font-body); font-size: 15px; color: var(--wc-text-secondary); cursor: pointer; display: flex; gap: 12px; align-items: center; width: 100%; line-height: 1.5; }
.wc-v2 .gate-box__option[aria-pressed="true"] { border-color: #338364; background: rgba(51, 131, 100, 0.12); color: var(--wc-text-primary); }
.wc-v2 .gate-box__option.is-correct { border-color: #338364; background: rgba(105, 180, 69, 0.18); color: var(--wc-text-primary); cursor: default; }
.wc-v2 .gate-box__option.is-chosen-wrong { border-color: rgba(20, 59, 46, 0.35); background: rgba(20, 59, 46, 0.08); cursor: default; }
.wc-v2 .gate-box__letter { width: 30px; height: 30px; border-radius: 8px; background: rgba(20, 59, 46, 0.13); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.wc-v2 .gate-box__why { font-size: 14px; color: var(--wc-text-secondary); margin: 6px 0 0 42px; }
.wc-v2 .gate-box__result { border-radius: 14px; padding: 18px 22px; margin: 0 0 18px; background: rgba(51, 131, 100, 0.08); border: 1px solid rgba(51, 131, 100, 0.25); }
.wc-v2 .gate-box__score { font-family: var(--wc-font-display); font-size: 28px; font-weight: 800; color: var(--wc-text-primary); }
.wc-v2 .gate-box__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wc-v2 .gate-box.is-locked { border: 1px dashed rgba(51, 131, 100, 0.40); background: rgba(20, 59, 46, 0.03); }
.wc-v2 .gate-box.is-locked .gate-box__notice { color: var(--wc-text-muted); }
.wc-v2 .gate-box.is-open { border-left: 4px solid #338364; }
.wc-v2 .gate-box.is-in-progress { border-left: 4px solid #338364; box-shadow: 0 8px 25px rgba(51, 131, 100, 0.15); }
.wc-v2 .gate-box.is-passed { border-left: 4px solid #69b445; }
.wc-v2 .gate-box.is-attention { border-left: 4px solid #338364; }
.wc-v2 .gate-box__attention { background: rgba(20, 59, 46, 0.05); border-radius: 10px; padding: 10px 14px; }
.wc-v2 .gate-milestones { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 0; }
.wc-v2 .gate-milestone { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--wc-text-muted); border-top: 3px solid rgba(20, 59, 46, 0.13); padding-top: 6px; letter-spacing: 0.04em; }
.wc-v2 .gate-milestone.is-passed { color: var(--wc-primary-light); border-top-color: #69b445; }

/* ---- Template v2 blocks (Tier 4 role pathways, PRG-08 / T4-R02) -----------
   Compiled by backend/scripts/dsv2_specs/rpw_markup.py: canon anchors resolved
   from CANON-CLOCKS-T4 (T4-R07), decision points, worked dialogue, the passport
   mount card, glyph marks and the summary-row SVG icons (P0-7). Scoped to
   .wc-v2 like everything above; canonical greens and the token inks only. */
.wc-v2 .canon-anchor { display: inline-flex; align-items: baseline; gap: 6px; padding: 1px 8px 1px 6px; border-radius: 8px; background: rgba(51, 131, 100, 0.10); border: 1px solid rgba(51, 131, 100, 0.25); color: var(--wc-text-primary); font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; font-weight: 600; text-decoration: none; white-space: nowrap; vertical-align: baseline; }
.wc-v2 .canon-anchor:hover { border-color: #338364; background: rgba(51, 131, 100, 0.16); }
.wc-v2 .canon-anchor__band { font-family: var(--wc-font-body); font-size: 0.8em; font-weight: 700; letter-spacing: 0.04em; color: var(--wc-primary-light); }
.wc-v2 .canon-anchor__window { font-family: var(--wc-font-body); font-size: 0.85em; font-weight: 500; color: var(--wc-text-secondary); }
/* CL-1 (RPW-04 v2, PANEL-RPW04-v2 R2-F1.5): an anchor homed on the sealed clinical export is a span with no link target — a help cursor, not a pointer, and a visible focus ring so its tooltip is reachable by keyboard. */
.wc-v2 .canon-anchor--export { cursor: help; }
.wc-v2 .canon-anchor--export:focus-visible { outline: 2px solid #338364; outline-offset: 2px; }
/* T4-R339 (MD ruling on PANEL-RPW04-v2 §1 (4)): an unclocked identity anchor shows the sealed row's title beside its code. */
.wc-v2 .canon-anchor__title { font-family: var(--wc-font-body); font-size: 0.85em; font-weight: 500; color: var(--wc-text-secondary); }
/* CLN-R38 / SPEC03 0-2 (MD ruling on the RPW-03 Phase 0 report, 15 Sep 2026): a typed clock figure inside a ratified definition is a heal chip — the words unchanged, bound to the sealed row (tooltip); a dotted underline and a help cursor, not a pill. */
.wc-v2 .canon-anchor--heal { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font-family: inherit; font-size: inherit; font-weight: inherit; white-space: normal; border-bottom: 1px dotted #338364; cursor: help; }
.wc-v2 .canon-anchor--heal:hover { border-color: #338364; background: rgba(51, 131, 100, 0.10); }
.wc-v2 .canon-anchor--heal:focus-visible { outline: 2px solid #338364; outline-offset: 2px; }
/* RPW-03 ⚑ 2 (15 Sep 2026): a named rule that is not a clock row (SYS-02/CODE-001, the 28-Day Rule) renders as the citation with the rule's name beside it — a help cursor and a focus ring, like an export span. */
.wc-v2 .canon-anchor--rule { cursor: help; }
.wc-v2 .canon-anchor--rule:focus-visible { outline: 2px solid #338364; outline-offset: 2px; }
.wc-v2 .mark { font-family: var(--wc-font-body); font-style: normal; }
.wc-v2 .mark.star { color: var(--wc-amber-text); }
.wc-v2 .decision { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-left: 4px solid #69b445; border-radius: 16px; padding: 20px 24px; margin: 20px 0; }
.wc-v2 .decision-label[data-label]::before { content: attr(data-label); }
.wc-v2 .decision-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wc-primary-light); margin: 0 0 8px; }
.wc-v2 .decision-question { font-weight: 600; color: var(--wc-text-primary); margin: 0 0 12px; }
.wc-v2 .decision-reveal summary { cursor: pointer; font-weight: 600; color: var(--wc-primary-light); list-style: none; padding: 8px 0; }
.wc-v2 .decision-reveal summary::-webkit-details-marker { display: none; }
.wc-v2 .decision-reveal summary::before { content: ''; display: inline-block; width: 8px; height: 8px; border-right: 2px solid #338364; border-bottom: 2px solid #338364; transform: rotate(-45deg); margin: 0 10px 2px 2px; transition: transform 0.2s; }
.wc-v2 .decision-reveal[open] summary::before { transform: rotate(45deg); }
.wc-v2 .decision-handling { margin: 8px 0 0; padding: 14px 18px; border-radius: 12px; background: rgba(105, 180, 69, 0.10); border: 1px solid rgba(105, 180, 69, 0.30); }
/* VOICE-001 (T4-R717): the "For the record" line — a card's, case's, list's, timeline
   item's or decision's ids, rulings and source references, moved off the reading
   surface. One additive rule, tokens only (muted ink; the strong line in both looks,
   the glass border where a page carries no theme); small, muted, a dashed top border;
   no bullet when it closes a list. The timeline selector outranks the timeline's own
   paragraph rule (0,2,1) so an item's record is small and muted too. */
.wc-v2 p.for-the-record, .wc-v2 li.for-the-record, .wc-v2 .timeline-content p.for-the-record { font-size: 12px; line-height: 1.5; color: var(--wc-text-muted); border-top: 1px dashed var(--wc-line-strong, var(--wc-glass-border)); margin: 14px 0 0; padding: 8px 0 0; list-style: none; }
.wc-v2 .dialogue-box { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 16px; padding: 20px 24px; margin: 20px 0; }
.wc-v2 .dialogue-line { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid rgba(51, 131, 100, 0.35); }
.wc-v2 .dialogue-line:last-child { margin-bottom: 0; }
.wc-v2 .passport-mount { text-align: left; }
.wc-v2 .summary-svg { width: 28px; height: 28px; color: var(--wc-primary-light); flex-shrink: 0; margin-top: 2px; }
.wc-v2 .analogy-label { display: inline-block; }

/* ---- responsive ---------------------------------------------------------- */
/* PRG-10 SUP-5 start: the live-session view (looking back · now · learning), the draft note and the evidence lines */
.wc-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.wc-live__col { min-width: 0; }
.wc-live__col .row { flex-wrap: wrap; }
.wc-live__col select, .wc-live__col .select, .wc-live__col .input, .wc-live__col textarea, .wc-live__col .textarea { max-width: 100%; box-sizing: border-box; }
.wc-live__col h3 { margin-top: 0; }
.wc-live__action { padding: 0.5rem 0; border-top: 1px solid var(--wc-border, currentColor); }
.wc-draft { padding: 0.75rem; border: 1px solid var(--wc-border, currentColor); border-radius: 0.5rem; margin: 0.75rem 0; }
.wc-evidence__wrap { display: inline-block; vertical-align: top; }
.wc-evidence { margin: 0.25rem 0 0.5rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--wc-primary, currentColor); }
.wc-evidence p { margin: 0.15rem 0; }
@media (max-width: 900px) { .wc-live { grid-template-columns: 1fr; } }
/* SUP-5 end */
/* PRG-10 SUP-5b start: the Coming up card (a month grid with dots, the list beneath) */
.wc-cal { margin-bottom: 0.75rem; }
.wc-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.wc-cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wc-cal__dow { font-size: 0.75rem; text-align: center; opacity: 0.7; padding: 0.15rem 0; }
.wc-cal__day { min-height: 2.4rem; padding: 0.2rem; border-radius: 0.35rem; border: 1px solid transparent; font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; }
.wc-cal__day--pad { visibility: hidden; }
.wc-cal__day--has { border-color: var(--wc-border, currentColor); }
.wc-cal__day--today .wc-cal__num { font-weight: 700; text-decoration: underline; }
.wc-cal__dots { display: flex; gap: 2px; margin-top: 0.15rem; }
.wc-cal__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wc-primary, currentColor); }
.wc-cal__dot--amber { background: var(--wc-amber, var(--wc-primary, currentColor)); }
.wc-cal__dot--red { background: var(--wc-danger, currentColor); }
.wc-cal__state--amber { color: var(--wc-amber, inherit); }
.wc-cal__state--red { color: var(--wc-danger, inherit); }
/* SUP-5b end */

/* ===========================================================================
   TEMPLATE LANE COMPONENTS (VOICE-RPW-HANDOVER-011; MD, 5 November 2026)
   ---------------------------------------------------------------------------
   The components the fifteen voice-edition role pages mark and
   backend/scripts/dsv2_specs/rpw_components.py draws: T-1 key lines · T-3 the
   loop strip · T-2 job boxes · W-3 the role web · M-1 the module map · I-1 the
   getting-started list · F-7 folded record lines · F-8 decision labels · F-5
   named clock chips · T-4 "In plain words" · the two case cards.

   Scoped to .wc-v2 like every component above; tokens only, with the same
   unstamped fallbacks the "For the record" rule uses; canonical greens
   #338364 / #69b445. The four marks (Safe · Care · Understanding · Grow) are
   the only new colours and each is a token with a light and a dark value.
   No page whose spec carries no template mark has any of these classes, so no
   other page moves. The block sits with the unstamped look, above the
   appearance layer; the dark values of the four marks are with the stamped
   rules, in the block before the sidebar's. Contrast: every ink/wash pair below is AA on its surface in
   both value sets (check_contrast.py).
   =========================================================================== */
.wc-v2 {
    --tl-accent: var(--wc-accent-text, var(--wc-primary-light));
    --tl-tint: var(--wc-card-tint, rgba(51, 131, 100, 0.10));
    --tl-well: var(--wc-well, rgba(20, 59, 46, 0.04));
    --tl-chip: var(--wc-chip, rgba(20, 59, 46, 0.10));
    --tl-rule: var(--wc-line-strong, var(--wc-glass-border));
    --tl-paper: var(--wc-white, #ffffff);
    /* the four marks: Safe · Care · Understanding · Grow */
    --tl-safe: #e53e3e;  --tl-safe-ink: #8f1d1d;  --tl-safe-wash: rgba(229, 62, 62, 0.07);
    --tl-care: #338364;  --tl-care-ink: #1f5240;  --tl-care-wash: rgba(51, 131, 100, 0.08);
    --tl-und: #69b445;   --tl-und-ink: #3a6a19;   --tl-und-wash: rgba(105, 180, 69, 0.11);
    --tl-grow: #c98a16;  --tl-grow-ink: #664507;  --tl-grow-wash: rgba(201, 138, 22, 0.10);
    --tl-band-red: rgba(229, 62, 62, 0.13);  --tl-band-amber: rgba(201, 138, 22, 0.17);  --tl-band-green: rgba(51, 131, 100, 0.13);
}
/* words the page carries that a component draws as layout (the dash between a module and its reason, the arrow between two loop stations, a row's own label): kept in the document, off the reading surface */
.wc-v2 .tl-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- T-1 key lines: a marked line, not a bullet --------------------------- */
.wc-v2 .key-lines { margin: 14px 0 18px; display: grid; gap: 8px; }
.wc-v2 .card > .key-lines:last-child { margin-bottom: 0; }
.wc-v2 .key-line { margin: 0; padding: 10px 13px 11px 16px; font-size: 16.5px; line-height: 1.6; border-radius: 12px; background: var(--tl-care-wash); box-shadow: inset 4px 0 0 var(--tl-care); color: var(--wc-text-body); }
.wc-v2 .key-line[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--tl-care-ink); }
.wc-v2 .key-line--safe { background: var(--tl-safe-wash); box-shadow: inset 4px 0 0 var(--tl-safe); }
.wc-v2 .key-line--safe::before { color: var(--tl-safe-ink); }
.wc-v2 .key-line--understand { background: var(--tl-und-wash); box-shadow: inset 4px 0 0 var(--tl-und); }
.wc-v2 .key-line--understand::before { color: var(--tl-und-ink); }
.wc-v2 .key-line--grow { background: var(--tl-grow-wash); box-shadow: inset 4px 0 0 var(--tl-grow); }
.wc-v2 .key-line--grow::before { color: var(--tl-grow-ink); }
@media (min-width: 680px) {
    .wc-v2 .key-line[data-label] { position: relative; padding-left: 168px; }
    .wc-v2 .key-line[data-label]::before { position: absolute; left: 16px; top: 14px; margin-bottom: 0; }
}

/* ---- T-3 the loop strip: ten stations, in order ---------------------------- */
.wc-v2 .loop-strip { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; counter-reset: tl-loop; }
.wc-v2 .loop-strip__stop { position: relative; counter-increment: tl-loop; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 13px 5px 5px; border-radius: 999px; background: var(--tl-paper); border: 1px solid var(--wc-glass-border); font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--wc-text-primary); }
.wc-v2 .loop-strip__stop::before { content: counter(tl-loop); flex: none; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--tl-tint); color: var(--tl-accent); font-size: 11.5px; font-weight: 700; }
.wc-v2 .loop-strip__stop:not(:last-of-type)::after { content: ''; position: absolute; right: -15px; top: 50%; width: 6px; height: 6px; border-top: 2px solid var(--wc-text-muted); border-right: 2px solid var(--wc-text-muted); transform: translateY(-50%) rotate(45deg); opacity: 0.6; }
.wc-v2 .loop-strip__stop:last-of-type { background: var(--tl-tint); border-color: transparent; color: var(--tl-accent); }

/* ---- T-2 "Your jobs, in plain words": one drop-down per job ------------------ */
.wc-v2 .job-boxes { display: grid; gap: 8px; margin: 14px 0 18px; }
.wc-v2 .job-boxes > .card[class], .wc-v2 .job-boxes > .job-box { margin: 0; padding: 0; background: var(--tl-paper); border: 1px solid var(--wc-glass-border); border-radius: 15px; box-shadow: none; transform: none; }
.wc-v2 .job-boxes > .card[class]:hover { transform: none; box-shadow: none; }
.wc-v2 .job-boxes > .card > .card-title, .wc-v2 .job-box > .job-box__title { display: block; position: relative; margin: 0; padding: 14px 46px 14px 16px; font-family: var(--wc-font-body); font-size: 16.5px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--wc-text-primary); border-radius: 15px; }
.wc-v2 .job-boxes.is-live > * > .card-title, .wc-v2 .job-boxes.is-live > * > .job-box__title { cursor: pointer; }
.wc-v2 .job-boxes.is-live > * > .card-title::after, .wc-v2 .job-boxes.is-live > * > .job-box__title::after { content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -7px; border-right: 2px solid var(--tl-accent); border-bottom: 2px solid var(--tl-accent); transform: rotate(45deg); transition: transform 0.2s; }
.wc-v2 .job-boxes.is-live > .is-open > .card-title::after, .wc-v2 .job-boxes.is-live > .is-open > .job-box__title::after { transform: rotate(-135deg); margin-top: -2px; }
.wc-v2 .job-boxes > .is-open > .card-title, .wc-v2 .job-boxes > .is-open > .job-box__title, .wc-v2 .job-boxes:not(.is-live) > * > .card-title, .wc-v2 .job-boxes:not(.is-live) > * > .job-box__title { border-bottom: 1px solid var(--wc-glass-border); border-radius: 15px 15px 0 0; }
.wc-v2 .job-boxes.is-live > :not(.is-open) > :not(.card-title):not(.job-box__title) { display: none; }
.wc-v2 .job-boxes > * > p, .wc-v2 .job-boxes > * > ul, .wc-v2 .job-boxes > * > ol { margin: 0 16px; padding: 11px 0; font-size: 16px; color: var(--wc-text-secondary); }
.wc-v2 .job-boxes > * > ul:not(.job-box__rows):not(.record-line), .wc-v2 .job-boxes > * > ol { padding: 0 0 11px 20px; }
.wc-v2 .job-boxes ul.job-box__rows { list-style: none; padding: 0; }
.wc-v2 .job-boxes ul.job-box__rows > li { margin: 0; padding: 11px 0; }
.wc-v2 .job-box__row + .job-box__row, .wc-v2 .job-boxes > * > ul + .job-box__row, .wc-v2 .job-boxes > * > p:not(.job-box__row) + .job-box__row { border-top: 1px dashed var(--tl-rule); }
.wc-v2 .job-box__row[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wc-text-muted); margin-bottom: 3px; }
.wc-v2 .job-boxes > * > details.record-fold, .wc-v2 .job-boxes > * > ul.record-line { margin: 0 16px 12px; padding: 0; }
.wc-v2 .job-boxes ul.job-box__rows > li.record-line--folded { margin: 0 0 12px; padding: 0; }
@media (min-width: 680px) {
    .wc-v2 .job-box__row[data-label] { position: relative; padding-left: 166px; }
    .wc-v2 .job-box__row[data-label]::before { position: absolute; left: 0; top: 14px; margin-bottom: 0; }
    .wc-v2 .job-boxes > * > .job-box__row + ul:not(.record-line) { margin-left: 182px; }
}

/* ---- W-3 the role web: press a role ---------------------------------------- */
.wc-v2 .role-web { background: var(--tl-paper); border: 1px solid var(--wc-glass-border); border-radius: 15px; padding: 14px 8px 10px; margin: 14px 0 18px; }
.wc-v2 .role-web__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 6px 8px; font-size: 12.5px; color: var(--wc-text-muted); }
.wc-v2 .role-web__legend span { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.wc-v2 .role-web__legend span::before { content: ''; width: 22px; border-top: 3px solid var(--tl-care); }
.wc-v2 .role-web__legend span.is-chain::before { border-top: 3px dashed var(--tl-safe); }
.wc-v2 .role-web__legend span.is-with::before { border-top: 2px solid var(--wc-text-muted); opacity: 0.55; }
.wc-v2 .role-web__svg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.wc-v2 .role-web__edge { fill: none; stroke: var(--tl-care); stroke-width: 2.5; stroke-linecap: round; }
.wc-v2 .role-web__edge--may { stroke-dasharray: 2 6; }
.wc-v2 .role-web__edge--chain { stroke: var(--tl-safe); stroke-dasharray: 7 5; }
.wc-v2 .role-web__edge--with { stroke: var(--wc-text-muted); stroke-width: 1.75; opacity: 0.5; }
.wc-v2 .role-web__fam { font-family: var(--wc-font-body); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--wc-text-muted); }
.wc-v2 .role-web__node { cursor: pointer; }
.wc-v2 .role-web__node--label { cursor: default; }
.wc-v2 .role-web__node rect { fill: var(--tl-paper); stroke: var(--tl-care); stroke-width: 2; transition: stroke-width 0.15s; }
.wc-v2 .role-web__node text { font-family: var(--wc-font-body); font-size: 11.5px; font-weight: 600; fill: var(--wc-text-primary); text-anchor: middle; pointer-events: none; }
.wc-v2 .role-web__node--admin rect { stroke: var(--tl-und); }
.wc-v2 .role-web__node--safeguarding rect { stroke: var(--tl-safe); }
.wc-v2 .role-web__node--pharmacy rect { stroke: var(--wc-text-muted); }
.wc-v2 .role-web__node.is-me rect { fill: var(--tl-care); stroke: var(--tl-care); }
.wc-v2 .role-web__node.is-me text { fill: #ffffff; }
.wc-v2 .role-web__node .role-web__you-bg { fill: var(--tl-und); stroke: none; }
.wc-v2 .role-web__node .role-web__you { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; fill: #143b2e; }
.wc-v2 .role-web__node.is-on rect { stroke-width: 4.5; }
.wc-v2 .role-web__node.is-on:not(.is-me) rect { fill: var(--tl-paper); }
.wc-v2 .role-web__node:focus, .wc-v2 .role-web__node:focus-visible { outline: none; }
.wc-v2 .role-web__node:focus-visible rect { stroke-width: 4.5; stroke-dasharray: 3 3; }
.wc-v2 .role-web__others { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 6px 0; }
.wc-v2 .role-web__other { border: 2px solid var(--wc-text-muted); background: var(--tl-paper); color: var(--wc-text-primary); border-radius: 14px; padding: 7px 13px; font-family: var(--wc-font-body); font-size: 13px; font-weight: 600; cursor: pointer; }
.wc-v2 .role-web__other.is-on { background: var(--tl-tint); border-width: 3px; padding: 6px 12px; }
.wc-v2 .role-web__cards { margin: 10px 6px 4px; display: grid; gap: 10px; }
.wc-v2 .role-web__card { padding: 16px 18px; border-radius: 12px; background: var(--tl-tint); }
.wc-v2 .role-web.is-live .role-web__card:not(.is-on) { display: none; }
.wc-v2 .role-web__role { font-family: var(--wc-font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--wc-text-primary); display: block; }
.wc-v2 .role-web__role strong { font-weight: inherit; color: inherit; }
.wc-v2 .role-web__text { display: block; }
.wc-v2 .role-web__card.is-me .role-web__role::after { content: "You"; margin-left: 8px; vertical-align: 2px; font-family: var(--wc-font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--tl-care); color: #ffffff; }
.wc-v2 .role-web__k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tl-accent); margin: 0 0 4px; }
.wc-v2 .role-web__card [data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tl-accent); margin: 0 0 4px; }
.wc-v2 .role-web__card details.record-fold { margin-top: 8px; }
.wc-v2 .role-web__card p:last-child { margin-bottom: 0; }

/* ---- M-1 the module map: Required · Suggested · Agreed ------------------------ */
.wc-v2 .module-map { margin: 14px 0 18px; }
.wc-v2 .module-map__tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--tl-chip); max-width: 420px; }
.wc-v2 .module-map__tab { flex: 1 1 0; min-width: 0; border: 0; background: transparent; padding: 9px 10px; border-radius: 999px; font-family: var(--wc-font-body); font-size: 14px; font-weight: 600; color: var(--wc-text-secondary); cursor: pointer; }
.wc-v2 .module-map__tab.is-on { background: var(--wc-gradient); color: #ffffff; box-shadow: var(--wc-shadow-soft); }
.wc-v2 .module-map:not(.is-live) .module-map__tabs { display: none; }
.wc-v2 .module-map__pile + .module-map__pile { margin-top: 18px; }
.wc-v2 .module-map.is-live .module-map__pile:not(.is-on) { display: none; }
.wc-v2 .module-map__pile-name, .wc-v2 .module-map__pile-name strong { font-family: var(--wc-font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wc-text-muted); }
.wc-v2 .module-map__pile-name { margin: 0 0 8px 2px; }
.wc-v2 .module-map .card[class], .wc-v2 .module-map .card[class]:hover { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; backdrop-filter: none; }
.wc-v2 .module-map .card + .card { margin-top: 16px; }
.wc-v2 .module-map .card > .card-title { margin: 0 0 8px 2px; font-family: var(--wc-font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wc-text-muted); }
.wc-v2 .module-map__list + .module-map__pile-name { margin-top: 16px; }
.wc-v2 .module-map__note { font-size: 14px; color: var(--wc-text-muted); margin: 10px 2px 0; }
.wc-v2 .module-map__list { list-style: none; margin: 0; display: grid; gap: 8px; }
.wc-v2 .module-map__item { margin: 0; padding: 13px 16px; border-radius: 12px; background: var(--tl-paper); border: 1px solid var(--wc-glass-border); }
.wc-v2 .module-map__item { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.wc-v2 .module-map__name { order: 1; font-size: 16.5px; color: var(--wc-text-primary); font-weight: 600; max-width: 100%; }
.wc-v2 .module-map__name strong { font-weight: 600; color: inherit; }
.wc-v2 .module-map__src { order: 2; display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--tl-chip); color: var(--wc-text-secondary); font-size: 12px; font-weight: 600; line-height: 1.5; }
.wc-v2 .module-map__src::first-letter { text-transform: uppercase; }
.wc-v2 .module-map__part { order: 3; flex: 1 0 100%; font-size: 14px; color: var(--wc-text-muted); margin-top: 1px; }
.wc-v2 .module-map__part::first-letter { text-transform: uppercase; }
.wc-v2 .module-map__why::first-letter, .wc-v2 .start-list__why::first-letter { text-transform: uppercase; }
.wc-v2 .module-map__why { order: 4; flex: 1 0 100%; font-size: 15.5px; color: var(--wc-text-secondary); margin-top: 3px; }
.wc-v2 .module-map__item > details.record-fold, .wc-v2 .module-map__item > ul.record-line, .wc-v2 .module-map__item > p { order: 5; flex: 1 0 100%; margin-top: 6px; }
.wc-v2 .module-map__lead { font-size: 15px; color: var(--wc-text-secondary); margin: 0 2px 10px; }
.wc-v2 .module-map__list + .module-map__lead { margin-top: 16px; }
.wc-v2 .module-map__item[data-source]::before { content: attr(data-source); order: 2; flex: 0 1 auto; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--tl-grow-wash); color: var(--tl-grow-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wc-v2 .module-map__pile--agreed .module-map__item { background: var(--tl-well); border-style: dashed; border-color: var(--tl-rule); }
.wc-v2 .module-map__list + .module-map__list { margin-top: 8px; }

/* ---- I-1 getting started: the list read from the record ----------------------- */
.wc-v2 .start-list { list-style: none; margin: 0 0 18px; }
.wc-v2 .start-list__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 13px; margin: 0; padding: 13px 0; border-bottom: 1px solid var(--wc-glass-border); }
.wc-v2 .start-list__item:first-child { padding-top: 4px; }
.wc-v2 .start-list__box { width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; border: 2px solid var(--wc-text-muted); background: var(--tl-paper); position: relative; }
/* A getting-started line shows a tick only for the learner's own record (is-done, set by
   My Induction when it feeds the list, I-2); nothing sets it yet. The state words five specs
   wrote for every reader alike (ok, todo) are not shown: each such line is the open box,
   and its word stays in the page, neither drawn nor read out. "na" is a fact about the role,
   the same for every reader: the struck box, the line set back, the word kept for a screen
   reader (the Medical Director's ruling of 6 November 2026: no ticks for now). */
.wc-v2 .start-list__item.is-done .start-list__box { background: var(--wc-fill-ok, #2e7558); border-color: var(--wc-fill-ok, #2e7558); }
.wc-v2 .start-list__item.is-done .start-list__box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border-right: 2.5px solid #ffffff; border-bottom: 2.5px solid #ffffff; transform: rotate(45deg); }
.wc-v2 .start-list__item[data-state="ok"] > span > .tl-sep:first-child, .wc-v2 .start-list__item[data-state="todo"] > span > .tl-sep:first-child { display: none; }
.wc-v2 .start-list__item[data-state="na"] .start-list__box { border-style: dashed; background: transparent; }
.wc-v2 .start-list__item[data-state="na"] .start-list__box::after { content: ''; position: absolute; left: 4px; right: 4px; top: 8px; height: 0; border-top: 2px solid var(--wc-text-muted); }
.wc-v2 .start-list__item[data-state="na"] .start-list__what { color: var(--wc-text-secondary); font-weight: 500; }
.wc-v2 .start-list__what { display: block; font-size: 16.5px; color: var(--wc-text-primary); font-weight: 600; }
.wc-v2 .start-list details.record-fold { margin-top: 6px; }
.wc-v2 .start-list__why { display: block; font-size: 15.5px; color: var(--wc-text-secondary); margin-top: 1px; }
.wc-v2 .start-list__who { display: inline-block; margin-top: 7px; padding: 2px 10px 2px 3px; border-radius: 13px; background: var(--tl-chip); color: var(--wc-text-secondary); font-size: 13px; font-weight: 500; line-height: 1.5; }
.wc-v2 .start-list__who[data-label]::before { content: attr(data-label); display: inline-block; margin-right: 7px; padding: 0 8px; border-radius: 999px; background: var(--tl-paper); color: var(--wc-text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- F-7 "For the record": folded, closed by default --------------------------- */
.wc-v2 details.record-fold { margin: 12px 0 0; }
.wc-v2 details.record-fold > summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--wc-text-muted); padding: 3px 0; }
.wc-v2 details.record-fold > summary::-webkit-details-marker { display: none; }
.wc-v2 details.record-fold > summary::before { content: ''; width: 5px; height: 5px; margin: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s; }
.wc-v2 details.record-fold[open] > summary::before { transform: rotate(45deg); }
.wc-v2 details.record-fold > p, .wc-v2 details.record-fold > .record-fold__body { display: block; font-size: 12px; line-height: 1.55; color: var(--wc-text-muted); margin: 4px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--tl-rule); overflow-wrap: anywhere; }
.wc-v2 li.record-line--folded { list-style: none; margin: 0 0 0 -24px; padding: 0; border-top: 0; }
.wc-v2 ul.record-line { list-style: none; margin: 0; padding: 0; }
.wc-v2 ul.record-line > li, .wc-v2 ul.record-line > li.record-line--folded { margin-left: 0; }
.wc-v2 .start-list li.record-line--folded, .wc-v2 .module-map__list li.record-line--folded { margin-left: 0; }
.wc-v2 h3 + details.record-fold { margin: -10px 0 14px; }
.wc-v2 .timeline-content details.record-fold { margin-top: 6px; }
/* inside a decision the fold sits under the reveal's own summary rules: reset them */
:root .wc-v2 .decision-reveal details.record-fold > summary { color: var(--wc-text-muted); font-weight: 600; padding: 3px 0; margin-bottom: 0; }
:root .wc-v2 .decision-reveal details.record-fold > summary::before { display: block; width: 5px; height: 5px; margin: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
:root .wc-v2 .decision-reveal details.record-fold:not([open]) > summary::before { transform: rotate(-45deg); }
:root .wc-v2 .decision-reveal details.record-fold[open] > summary::before { transform: rotate(45deg); }

/* ---- F-8 decision labels · T-4 "In plain words" -------------------------------- */
.wc-v2 .decision-reveal[open] > summary { margin-bottom: 2px; }
.wc-v2 .plain-words { margin: 12px 0 0; padding: 14px 16px 6px; border-radius: 12px; background: var(--tl-well); border: 1px dashed var(--tl-rule); }
.wc-v2 .plain-words__title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tl-accent); margin: 0 0 8px; }
.wc-v2 .plain-words ul { margin-bottom: 8px; }
.wc-v2 .plain-words--after { margin: -8px 0 20px; }
.wc-v2 .case-card--plain > .card[class] { background: var(--tl-well); border: 1px dashed var(--tl-rule); }
.wc-v2 .case-card--plain > .card > .card-title { color: var(--tl-accent); }

/* ---- F-5 clock chips: the name first, then band and window --------------------- */
.wc-v2 .canon-anchor.is-chip { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; max-width: 100%; white-space: normal; margin: 2px 0; padding: 3px 11px; border-radius: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 0.66em; font-weight: 500; line-height: 1.5; color: var(--wc-text-secondary); text-decoration: none; vertical-align: baseline; }
.wc-v2 .canon-anchor.is-chip[data-name]::before { content: attr(data-name); order: -3; font-family: var(--wc-font-body); font-size: 1.38em; font-weight: 600; color: var(--wc-text-primary); }
.wc-v2 .canon-anchor.is-chip .canon-anchor__title { order: -3; font-family: var(--wc-font-body); font-size: 1.38em; font-weight: 600; color: var(--wc-text-primary); }
.wc-v2 .canon-anchor.is-chip .canon-anchor__band { order: -2; padding: 0 7px; border-radius: 999px; font-size: 1.08em; font-weight: 700; letter-spacing: 0.05em; background: var(--tl-band-green); color: var(--tl-care-ink); }
.wc-v2 .canon-anchor.is-chip[data-chip="red"] .canon-anchor__band { background: var(--tl-band-red); color: var(--tl-safe-ink); }
.wc-v2 .canon-anchor.is-chip[data-chip="amber"] .canon-anchor__band { background: var(--tl-band-amber); color: var(--tl-grow-ink); }
.wc-v2 .canon-anchor.is-chip .canon-anchor__window { order: -1; font-size: 1.24em; }

/* ---- the two case cards: "The case, laid out" · "How it ends" ------------------ */
.wc-v2 .case-card--bare { border: 1px solid var(--wc-glass-border); border-radius: 15px; padding: 22px 20px; margin-bottom: 20px; }
.wc-v2 .case-card__title { font-family: var(--wc-font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.wc-v2 .case-card--laid > .card[class], .wc-v2 .case-card--laid.case-card--bare { background: linear-gradient(180deg, var(--tl-und-wash), var(--tl-paper) 120px); border-color: var(--wc-glass-border); }
.wc-v2 .case-card--ends > .card[class], .wc-v2 .case-card--ends.case-card--bare { background: linear-gradient(180deg, var(--tl-grow-wash), var(--tl-paper) 120px); border-color: var(--wc-glass-border); }
.wc-v2 .case-card--laid > .card > .card-title, .wc-v2 .case-card--laid > .case-card__title { color: var(--tl-und-ink); }
.wc-v2 .case-card--ends > .card > .card-title, .wc-v2 .case-card--ends > .case-card__title { color: var(--tl-grow-ink); }
.wc-v2 .case-card--bare > p:last-child, .wc-v2 .case-card--bare > ul:last-child, .wc-v2 .case-card--bare > .case-steps:last-child { margin-bottom: 0; }
@media (min-width: 680px) { .wc-v2 .case-card--bare { padding: 26px 28px; } }
.wc-v2 .case-head { margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--wc-glass-border); }
.wc-v2 .case-head strong { font-size: 17px; }
.wc-v2 .case-steps { display: grid; gap: 12px; margin: 0 0 18px; }
.wc-v2 .case-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; margin: 0; position: relative; }
.wc-v2 .case-step__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tl-tint); color: var(--tl-accent); font-family: var(--wc-font-display); font-style: italic; font-weight: 500; font-size: 15px; position: relative; z-index: 1; }
.wc-v2 .case-card--ends .case-step__n { background: var(--tl-grow-wash); color: var(--tl-grow-ink); }
.wc-v2 .case-card--ends .case-step:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: -12px; border-left: 2px solid var(--tl-rule); }
.wc-v2 .case-key:not(.tl-sep) { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tl-accent); margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--wc-glass-border); }
.wc-v2 .case-line { margin-bottom: 9px; }
.wc-v2 .case-line__text { display: block; }
.wc-v2 .case-line--people .case-line__text { position: relative; padding-left: 18px; }
.wc-v2 .case-line--people .case-line__text::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--tl-accent); opacity: 0.7; }
.wc-v2 .case-card > .card > .case-steps:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
    .wc-v2 .job-boxes .card-title::after, .wc-v2 .job-box__title::after, .wc-v2 details.record-fold > summary::before, .wc-v2 .role-web__node rect { transition: none; }
}
/* on paper nothing is tucked away: every job, every pile and every role's card prints */
@media print {
    .wc-v2 .job-boxes.is-live > :not(.is-open) > :not(.card-title):not(.job-box__title) { display: block; }
    .wc-v2 .module-map.is-live .module-map__pile:not(.is-on) { display: block; }
    .wc-v2 .role-web.is-live .role-web__card:not(.is-on) { display: block; }
    .wc-v2 .module-map__tabs, .wc-v2 .role-web__others { display: none; }
    /* a browser drops background fills on paper: the done box is an outline and its tick is ink */
    .wc-v2 .start-list__item.is-done .start-list__box { background: transparent; border-color: currentColor; }
    .wc-v2 .start-list__item.is-done .start-list__box::after { border-right-color: currentColor; border-bottom-color: currentColor; }
}
/* TEMPLATE LANE COMPONENTS end */

@media (max-width: 600px) {
    .wc-v2 .gate-box { padding: 20px 18px; }
    .wc-v2 .container { padding: 24px 16px; }
    .wc-v2 .header { padding: 40px 0 30px; }
    .wc-v2 .profile { flex-direction: column; text-align: center; }
    .wc-v2 .profile-avatar { margin: 0 auto; }
    .wc-v2 .nav-buttons { flex-direction: column; }
    .wc-v2 .nav-btn { width: 100%; }
    .wc-v2 .timeline { padding-left: 35px; }
    .wc-v2 .timeline-item::before { left: -26px; width: 16px; height: 16px; }
    .wc-v2 .journey-strip { grid-template-columns: repeat(5, 1fr); }
    .wc-v2 .journey-stop { font-size: 10px; }
}

/* ===========================================================================
   APPEARANCE LAYER (THM-R1 to THM-R9) - light and dark value sets, and the
   front-page look for module pages.
   ---------------------------------------------------------------------------
   HOW IT REACHES A PAGE. Nothing here matches until a page's <html> tag is
   stamped. js/theme.js stamps data-theme on the signed-in chrome pages;
   module.html stamps data-theme AND data-wc-surface="module" onto the module
   page's <html> tag in memory, as it builds the frame. No sealed page carries
   either attribute, so no pin moves. UNSTAMPED, EVERY PAGE RENDERS EXACTLY AS
   IT DID BEFORE THIS BLOCK EXISTED: that is the fail-safe, and
   dsv2_render_proof.py proves it (unstamped capture: 0 pages moved).

   ONE SET OF NAMES, TWO SETS OF VALUES. Light is the clinic website's
   language; dark is the Academy front page's, verbatim where it has a value.
   The two greens swap jobs: on light surfaces the #338364 family writes and
   #69b445 only fills; on dark surfaces #69b445 writes and #338364 only fills.
   check_contrast.py proves both value sets.

   WHY THE PREFIX. The look is keyed :root[data-wc-surface="module"] so that it
   (a) reaches both page generations through their shared class names,
   (b) out-ranks the older pages' private rules by specificity, and
   (c) never leaks onto chrome pages, which carry data-theme only.
   Keep the .wc-v2 block above byte-identical: it is the unstamped look.
   =========================================================================== */

/* ---- value set: LIGHT ---------------------------------------------------- */
:root[data-theme="light"] {
    color-scheme: light;
    --wc-bg-page: #f4f8f5;
    --wc-bg-darkest: #e8f1e9; --wc-bg-dark: #f4f8f5; --wc-bg-dark-mid: #e8f1e9; --wc-bg-dark-light: #dde7df;
    --wc-dark-bg: #f4f8f5; --wc-dark-bg-mid: #e8f1e9; --wc-dark-bg-light: #dde7df;
    --wc-glass-bg: #ffffff; --wc-glass-border: #dde7df; --wc-glass-border-hover: rgba(51, 131, 100, 0.45);
    --wc-primary-dark: #143b2e;
    --wc-gradient: linear-gradient(135deg, #143b2e, #338364 85%);
    --wc-gradient-dark: linear-gradient(135deg, #143b2e, #338364 85%);
    --wc-accent-text: #266349;
    --wc-card-tint: rgba(51, 131, 100, 0.10);
    --wc-line-strong: rgba(20, 59, 46, 0.16);
    --wc-well: rgba(20, 59, 46, 0.04);
    --wc-chip: rgba(20, 59, 46, 0.10);
    --wc-hero-bg: #e8f1e9; --wc-hero-glow-a: rgba(105, 180, 69, 0.24); --wc-hero-glow-b: rgba(51, 131, 100, 0.16);
    --wc-ink-ok: #1d6b3e; --wc-fill-ok: #2e7558; --wc-ink-bad: #a32424; --wc-fill-bad: #e53e3e;
    --wc-shadow-soft: 0 4px 18px rgba(20, 59, 46, 0.08); --wc-shadow-float: 0 18px 50px rgba(20, 59, 46, 0.16);
    --wc-focus: #338364;
    --wc-on-fill: #ffffff;
    --wc-scroll-track: #e8f1e9; --wc-scroll-thumb: #b9cfc0;
    /* NAV-001: the portal sidebar's sign-out washes, moved here from its style block as they were; the scrim */
    --wc-nav-logout-bg: rgba(239, 68, 68, 0.1); --wc-nav-logout-bg-hover: rgba(239, 68, 68, 0.2); --wc-nav-logout-line: rgba(239, 68, 68, 0.3);
    --wc-nav-scrim: rgba(20, 59, 46, 0.42);
}

/* ---- value set: DARK (the front page's tokens, verbatim where they exist) - */
:root[data-theme="dark"] {
    color-scheme: dark;
    --wc-bg-page: #0f1e19;
    --wc-bg-darkest: #0f1e19; --wc-bg-dark: #0f1e19; --wc-bg-dark-mid: #16302a; --wc-bg-dark-light: rgba(255, 255, 255, 0.09);
    --wc-dark-bg: #0f1e19; --wc-dark-bg-mid: #16302a; --wc-dark-bg-light: rgba(255, 255, 255, 0.09);
    --wc-paper: #0f1e19; --wc-paper-2: #16302a; --wc-line: rgba(255, 255, 255, 0.09); --wc-white: #152a23;
    --wc-glass-bg: #152a23; --wc-glass-border: rgba(255, 255, 255, 0.09); --wc-glass-border-hover: rgba(105, 180, 69, 0.45);
    --wc-text-primary: #dcecdf; --wc-text: #dcecdf; --wc-text-body: #eaf2ec; --wc-text-secondary: #c3d1c7; --wc-text-muted: #93a59a;
    --wc-primary: #338364; --wc-primary-dark: #143b2e; --wc-primary-light: #69b445; --wc-primary-bright: #69b445;
    --wc-secondary: #69b445; --wc-secondary-light: #8cc96a;
    --wc-gradient: linear-gradient(135deg, #143b2e, #338364 85%);
    --wc-gradient-dark: linear-gradient(135deg, #143b2e, #338364 85%);
    --wc-accent-text: #69b445;
    --wc-card-tint: rgba(105, 180, 69, 0.10);
    --wc-line-strong: rgba(255, 255, 255, 0.14);
    --wc-well: rgba(255, 255, 255, 0.04);
    --wc-chip: rgba(255, 255, 255, 0.10);
    --wc-hero-bg: #16302a; --wc-hero-glow-a: rgba(105, 180, 69, 0.16); --wc-hero-glow-b: rgba(51, 131, 100, 0.22);
    --wc-ink-ok: #8cc96a; --wc-fill-ok: #338364; --wc-ink-bad: #f59a9a; --wc-fill-bad: #c94848;
    --wc-green: #69b445; --wc-success: #69b445;
    --wc-red: #c94848; --wc-red-light: #f59a9a; --wc-error: #f07878;
    --wc-amber: #d9982b; --wc-amber-text: #f2b84b; --wc-warning: #f2b84b;
    --wc-blue: #2f6fd0; --wc-blue-text: #9cc2ff; --wc-info: #9cc2ff;
    --wc-purple: #7c5cd6; --wc-purple-text: #c3b1ff;
    --wc-cyan: #2aa7cf; --wc-cyan-text: #7dd3fc;
    --wc-pink: #e0609f; --wc-pink-text: #f9a8d4;
    --wc-orange: #e07b33; --wc-orange-text: #fdba74;
    --wc-shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.35); --wc-shadow-float: 0 18px 50px rgba(0, 0, 0, 0.5);
    --wc-focus: #69b445;
    --wc-on-fill: #ffffff;
    --wc-scroll-track: #16302a; --wc-scroll-thumb: #2f4a41;
    /* NAV-001: the sign-out washes exactly as the portal painted them in dark (unthemed literals until now); the scrim */
    --wc-nav-logout-bg: rgba(239, 68, 68, 0.1); --wc-nav-logout-bg-hover: rgba(239, 68, 68, 0.2); --wc-nav-logout-line: rgba(239, 68, 68, 0.3);
    --wc-nav-scrim: rgba(3, 9, 7, 0.62);
}

/* paper is always light: a dark choice never reaches the printer */
@media print {
    :root[data-theme="dark"] {
        color-scheme: light;
        --wc-bg-page: #ffffff; --wc-bg-dark: #ffffff; --wc-bg-dark-mid: #f4f8f5; --wc-glass-bg: #ffffff; --wc-glass-border: #dde7df;
        --wc-text-primary: #1f5240; --wc-text-body: #35443d; --wc-text-secondary: #48574f; --wc-text-muted: #566159;
        --wc-primary-light: #266349; --wc-accent-text: #266349; --wc-hero-bg: #f4f8f5;
        --wc-ink-ok: #1d6b3e; --wc-ink-bad: #a32424;
    }
}

/* ---- base ---------------------------------------------------------------- */
:root[data-theme] body { background: var(--wc-bg-page); }
:root[data-theme] ::selection { background: rgba(105, 180, 69, 0.30); }
:root[data-theme] a:focus-visible, :root[data-theme] button:focus-visible, :root[data-theme] input:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: 2px; }
:root[data-theme] ::-webkit-scrollbar-track { background: var(--wc-scroll-track); }
:root[data-theme] ::-webkit-scrollbar-thumb { background: var(--wc-scroll-thumb); }

/* ---- module pages: the look ------------------------------------------------ */
/* ---- lettering: the front page's voice ----------------------------------- */
/* Gelasio 500 speaks (titles, quotes, numerals); Outfit 600 organises (sub-heads, labels). */
:root[data-wc-surface="module"] h1 { font-family: var(--wc-font-display); font-weight: 500; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--wc-text-primary); margin-bottom: 14px; }
:root[data-wc-surface="module"] h2 { font-family: var(--wc-font-display); font-weight: 500; font-size: clamp(27px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.01em; color: var(--wc-text-primary); margin-bottom: 20px; }
:root[data-wc-surface="module"] h3 { font-family: var(--wc-font-body); font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -0.005em; color: var(--wc-text-primary); }
:root[data-wc-surface="module"] h4 { font-family: var(--wc-font-body); font-weight: 600; font-size: 17.5px; line-height: 1.35; color: var(--wc-text-primary); }
:root[data-wc-surface="module"] .lead { font-size: clamp(17px, 1.4vw, 19px); }

/* ---- hero: a rounded panel with the front page's glow, text set left ----- */
:root[data-wc-surface="module"] .header { text-align: left; padding: 44px 44px 40px; margin-bottom: 26px; border-radius: 22px; background: var(--wc-hero-bg); border: 1px solid var(--wc-glass-border); overflow: hidden; }
:root[data-wc-surface="module"] .header::before { background: radial-gradient(620px 320px at 90% -12%, var(--wc-hero-glow-a), transparent 62%), radial-gradient(460px 280px at 4% 124%, var(--wc-hero-glow-b), transparent 60%); }
:root[data-wc-surface="module"] .module-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--wc-card-tint); border: 0; color: var(--wc-accent-text); padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; backdrop-filter: none; }
:root[data-wc-surface="module"] .module-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
:root[data-wc-surface="module"] .subtitle { margin: 0; max-width: 640px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--wc-text-secondary); }

/* ---- progress: a slim line, not a card ----------------------------------- */
:root[data-wc-surface="module"] .progress-container { display: flex; align-items: center; gap: 14px; background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0 0 22px; backdrop-filter: none; }
:root[data-wc-surface="module"] .progress-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--wc-chip); }
:root[data-wc-surface="module"] .progress-fill { background: linear-gradient(90deg, #338364, #69b445); box-shadow: none; border-radius: 999px; }
:root[data-wc-surface="module"] .progress-text { margin: 0; font-size: 13px; font-weight: 500; white-space: nowrap; text-align: right; color: var(--wc-text-muted); }

/* ---- section tabs: the front page's pill tabs ----------------------------- */
:root[data-wc-surface="module"] .section-nav { justify-content: flex-start; gap: 8px; margin-bottom: 36px; }
:root[data-wc-surface="module"] .section-btn { border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); color: var(--wc-text-secondary); backdrop-filter: none; box-shadow: none; }
:root[data-wc-surface="module"] .section-btn:hover { border-color: var(--wc-glass-border-hover); color: var(--wc-accent-text); transform: translateY(-2px); }
:root[data-wc-surface="module"] .section-btn.completed { background: var(--wc-card-tint); border-color: transparent; color: var(--wc-accent-text); }
:root[data-wc-surface="module"] .section-btn.active { background: var(--wc-gradient); border-color: transparent; color: #ffffff; font-weight: 600; box-shadow: var(--wc-shadow-soft); }

/* ---- cards --------------------------------------------------------------- */
:root[data-wc-surface="module"] .card { border-radius: 15px; padding: 26px 28px; backdrop-filter: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
:root[data-wc-surface="module"] .card:hover { transform: translateY(-3px); box-shadow: var(--wc-shadow-soft); }
:root[data-wc-surface="module"] .card-icon { font-size: 24px; }
:root[data-wc-surface="module"] .card-title { font-family: var(--wc-font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- quotes: Gelasio, as on the front page -------------------------------- */
:root[data-wc-surface="module"] .quote, :root[data-wc-surface="module"] blockquote { border-radius: 0 15px 15px 0; backdrop-filter: none; }
:root[data-wc-surface="module"] .quote-box { border-width: 1px; border-radius: 15px; background: var(--wc-card-tint); border-color: transparent; }
:root[data-wc-surface="module"] .quote-text { font-family: var(--wc-font-display); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.4; }
:root[data-wc-surface="module"] .quote-box .quote-text { font-style: normal; font-weight: 500; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.36; letter-spacing: -0.01em; }
:root[data-wc-surface="module"] .quote-marks { color: var(--wc-accent-text); opacity: 0.28; }
:root[data-wc-surface="module"] .comparison-table caption { font-family: var(--wc-font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wc-accent-text); }

/* ---- grids, stats, objectives -------------------------------------------- */
:root[data-wc-surface="module"] .grid-item, :root[data-wc-surface="module"] .stat-box { border-radius: 15px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
:root[data-wc-surface="module"] .grid-item:hover, :root[data-wc-surface="module"] .stat-box:hover { transform: translateY(-3px); box-shadow: var(--wc-shadow-soft); }
:root[data-wc-surface="module"] .grid-icon { font-size: 34px; }
:root[data-wc-surface="module"] .grid-label { font-family: var(--wc-font-body); font-size: 16px; font-weight: 600; }
:root[data-wc-surface="module"] .stat-number { font-family: var(--wc-font-display); font-size: 32px; font-weight: 500; line-height: 1; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--wc-accent-text); }
:root[data-wc-surface="module"] .objectives { border-radius: 15px; background: var(--wc-card-tint); border: 1px solid transparent; padding: 28px 30px; }
:root[data-wc-surface="module"] .objectives h3 { font-family: var(--wc-font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--wc-accent-text); margin: 0 0 20px; }
:root[data-wc-surface="module"] .objective-num { width: 30px; height: 30px; border-radius: 50%; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); color: var(--wc-accent-text); font-family: var(--wc-font-display); font-style: italic; font-weight: 500; font-size: 16px; }

/* ---- analogy box --------------------------------------------------------- */
:root[data-wc-surface="module"] .analogy-box { border-width: 1px; border-radius: 15px; padding: 28px 30px; }
:root[data-wc-surface="module"] .analogy-icon { font-size: 32px; }
:root[data-wc-surface="module"] .analogy-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; }
:root[data-wc-surface="module"] .analogy-title { font-family: var(--wc-font-display); font-size: 23px; font-weight: 500; letter-spacing: -0.01em; }

/* ---- timeline: a fine spine with the clinic site's numerals feel ---------- */
:root[data-wc-surface="module"] .timeline { padding-left: 44px; }
:root[data-wc-surface="module"] .timeline::before { left: 15px; width: 2px; background: var(--wc-line-strong); }
:root[data-wc-surface="module"] .timeline-item { border-radius: 15px; transition: transform 0.2s ease, border-color 0.2s ease; }
:root[data-wc-surface="module"] .timeline-item::before { left: -35px; top: 30px; width: 10px; height: 10px; background: var(--wc-accent-text); border: 3px solid var(--wc-bg-dark); box-shadow: 0 0 0 1px var(--wc-line-strong); }
:root[data-wc-surface="module"] .timeline-item:hover { transform: translateX(4px); }
:root[data-wc-surface="module"] .timeline-year, :root[data-wc-surface="module"] .timeline-item .timeline-year { background: var(--wc-card-tint); color: var(--wc-accent-text); padding: 4px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; }
:root[data-wc-surface="module"] .timeline-item.negative .timeline-year { background: rgba(239, 68, 68, 0.14); color: var(--wc-ink-bad); }
:root[data-wc-surface="module"] .timeline-content h4 { font-family: var(--wc-font-body); font-size: 17.5px; font-weight: 600; }
:root[data-wc-surface="module"] .timeline-meta-item { background: var(--wc-card-tint); border-color: transparent; color: var(--wc-accent-text); font-size: 12.5px; }

/* ---- journey strip ------------------------------------------------------- */
:root[data-wc-surface="module"] .journey-stop .stop-num { background: var(--wc-chip); border-color: transparent; font-family: var(--wc-font-body); font-weight: 600; }
:root[data-wc-surface="module"] .journey-stop.is-done .stop-num { background: var(--wc-fill-ok); color: #ffffff; }
:root[data-wc-surface="module"] .journey-stop.is-current .stop-num { background: var(--wc-gradient); color: #ffffff; box-shadow: var(--wc-shadow-soft); }

/* ---- comparison cards, profile, steps ------------------------------------- */
:root[data-wc-surface="module"] .comparison-card { border-width: 1px; border-radius: 15px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
:root[data-wc-surface="module"] .comparison-card::before { height: 3px; }
:root[data-wc-surface="module"] .comparison-card:hover { transform: translateY(-3px); box-shadow: var(--wc-shadow-soft); }
:root[data-wc-surface="module"] .comparison-title { font-family: var(--wc-font-body); font-size: 18px; font-weight: 600; }
:root[data-wc-surface="module"] .comparison-list li { border-bottom-color: var(--wc-glass-border); }
:root[data-wc-surface="module"] .profile { border-radius: 15px; backdrop-filter: none; }
:root[data-wc-surface="module"] .profile:hover { box-shadow: var(--wc-shadow-soft); }
:root[data-wc-surface="module"] .profile-avatar { border-radius: 15px; font-weight: 500; }
:root[data-wc-surface="module"] .profile-name { font-weight: 500; letter-spacing: -0.01em; }
:root[data-wc-surface="module"] .step-number { width: 44px; height: 44px; border-radius: 50%; background: var(--wc-card-tint); color: var(--wc-accent-text); font-style: italic; font-weight: 500; font-size: 21px; box-shadow: none; }
:root[data-wc-surface="module"] .step-content { border-radius: 15px; }
:root[data-wc-surface="module"] .step-title { font-family: var(--wc-font-body); font-size: 17px; font-weight: 600; }

/* ---- warning, summary, tables -------------------------------------------- */
:root[data-wc-surface="module"] .warning-box { border-width: 1px; border-left: 4px solid var(--wc-fill-bad); border-radius: 15px; }
:root[data-wc-surface="module"] .warning-box.amber { border-left-color: var(--wc-amber); }
:root[data-wc-surface="module"] .warning-title { font-family: var(--wc-font-body); font-size: 15px; font-weight: 600; }
:root[data-wc-surface="module"] .summary-item { border-radius: 15px; transition: transform 0.2s ease, border-color 0.2s ease; }
:root[data-wc-surface="module"] .summary-item:hover { transform: translateX(4px); }
:root[data-wc-surface="module"] .summary-icon { font-size: 26px; }
:root[data-wc-surface="module"] .comparison-table { border-radius: 15px; box-shadow: 0 0 0 1px var(--wc-glass-border); }
:root[data-wc-surface="module"] .comparison-table th { background: var(--wc-card-tint); font-size: 13px; letter-spacing: 0.02em; }

/* ---- knowledge check: same blue identity, quieter furniture --------------- */
:root[data-wc-surface="module"] .quiz-box { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-left: 4px solid var(--wc-blue); border-radius: 15px; padding: 28px 30px; }
:root[data-wc-surface="module"] .kc-practice-label { opacity: 1; color: var(--wc-text-body); letter-spacing: 0.08em; }
/* the 28 ACA pages carry this label with an inline opacity of 0.7 that no stylesheet rule can lift: the ink is chosen to pass AA through it */
:root[data-theme="light"][data-wc-surface="module"] .kc-practice-label { color: var(--wc-primary-dark); }
:root[data-wc-surface="module"] .quiz-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
:root[data-wc-surface="module"] .quiz-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; }
:root[data-wc-surface="module"] .quiz-question { font-size: 18px; line-height: 1.45; }
:root[data-wc-surface="module"] .quiz-option { background: var(--wc-well); border: 1px solid var(--wc-line-strong); border-radius: 10px; padding: 14px 18px; }
:root[data-wc-surface="module"] .quiz-option:hover:not(.answered) { background: var(--wc-card-tint); border-color: var(--wc-blue); color: var(--wc-text-primary); }
:root[data-wc-surface="module"] .option-letter { width: 30px; height: 30px; border-radius: 50%; background: var(--wc-chip); font-weight: 600; font-size: 13px; }
:root[data-wc-surface="module"] .quiz-option.correct { background: rgba(34, 197, 94, 0.14); border-color: var(--wc-ink-ok); color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .quiz-option.correct .option-letter { background: var(--wc-fill-ok); color: #ffffff; }
:root[data-wc-surface="module"] .quiz-option.incorrect { background: rgba(239, 68, 68, 0.12); border-color: var(--wc-ink-bad); color: var(--wc-ink-bad); }
:root[data-wc-surface="module"] .quiz-option.incorrect .option-letter { background: var(--wc-fill-bad); color: #ffffff; }
:root[data-wc-surface="module"] .quiz-feedback { border-radius: 10px; }
:root[data-wc-surface="module"] .quiz-feedback.correct p, :root[data-wc-surface="module"] .quiz-feedback.correct strong { color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .quiz-feedback.incorrect p, :root[data-wc-surface="module"] .quiz-feedback.incorrect strong { color: var(--wc-ink-bad); }

/* ---- section navigation -------------------------------------------------- */
:root[data-wc-surface="module"] .nav-btn { border-radius: 10px; padding: 14px 24px; font-size: 15.5px; }
:root[data-wc-surface="module"] .nav-btn:hover:not(:disabled) { border-color: var(--wc-glass-border-hover); color: var(--wc-accent-text); }
:root[data-wc-surface="module"] .nav-btn.primary { background: var(--wc-gradient); color: #ffffff; box-shadow: var(--wc-shadow-soft); }
:root[data-wc-surface="module"] .nav-btn.primary:hover { box-shadow: var(--wc-shadow-float); color: #ffffff; }

/* ---- references ---------------------------------------------------------- */
:root[data-wc-surface="module"] .references-toggle { border-radius: 10px; }
:root[data-wc-surface="module"] .references-content { background: var(--wc-well); border-radius: 0 0 10px 10px; }
:root[data-wc-surface="module"] .reference-item { border-bottom-color: var(--wc-glass-border); }
:root[data-wc-surface="module"] .reference-number { border-radius: 50%; }

/* ---- assessment furniture ------------------------------------------------- */
:root[data-wc-surface="module"] .final-quiz-header { background: var(--wc-gradient); border-color: transparent; border-radius: 22px; padding: 40px 44px; text-align: left; }
:root[data-wc-surface="module"] .final-quiz-header h2 { color: #ffffff; }
:root[data-wc-surface="module"] .assessment-start-card { border-radius: 15px; background: var(--wc-card-tint); border-color: transparent; }
:root[data-wc-surface="module"] .assessment-start-card .start-note { opacity: 1; color: var(--wc-text-muted); }
:root[data-wc-surface="module"] .assessment-start-card button { background: var(--wc-gradient); border-radius: 10px; padding: 13px 24px; font-size: 15.5px; box-shadow: var(--wc-shadow-soft); }

/* ---- slots ---------------------------------------------------------------- */
:root[data-wc-surface="module"] .illustration-placeholder { border-width: 1px; border-radius: 15px; background: var(--wc-well); }
:root[data-wc-surface="module"] .illustration-placeholder .slot-label { font-family: var(--wc-font-body); font-weight: 600; letter-spacing: 0.12em; color: var(--wc-accent-text); }

/* ---- stage gates ---------------------------------------------------------- */
:root[data-wc-surface="module"] .gate-box { border-radius: 15px; }
:root[data-wc-surface="module"] .gate-box h3 { font-size: 19px; }
:root[data-wc-surface="module"] .gate-box__state { color: var(--wc-accent-text); font-weight: 600; letter-spacing: 0.1em; }
:root[data-wc-surface="module"] .gate-box__btn { background: var(--wc-gradient); border-radius: 10px; padding: 13px 24px; font-size: 15.5px; }
:root[data-wc-surface="module"] .gate-box__btn.secondary { background: var(--wc-glass-bg); color: var(--wc-text-secondary); }
:root[data-wc-surface="module"] .gate-box__option { background: var(--wc-well); border: 1px solid var(--wc-line-strong); border-radius: 10px; }
:root[data-wc-surface="module"] .gate-box__letter { border-radius: 50%; background: var(--wc-chip); }
:root[data-wc-surface="module"] .gate-box__result { border-radius: 10px; background: var(--wc-card-tint); border-color: transparent; }
:root[data-wc-surface="module"] .gate-box__score { font-weight: 500; }
:root[data-wc-surface="module"] .gate-box.is-locked { background: var(--wc-well); }
:root[data-wc-surface="module"] .gate-box__attention { background: var(--wc-well); }
:root[data-wc-surface="module"] .gate-milestone { border-top-color: var(--wc-chip); font-weight: 600; }
:root[data-wc-surface="module"] .gate-milestone.is-passed { color: var(--wc-accent-text); border-top-color: #69b445; }

/* ---- Template v2 blocks --------------------------------------------------- */
:root[data-wc-surface="module"] .decision, :root[data-wc-surface="module"] .dialogue-box { border-radius: 15px; }
:root[data-wc-surface="module"] .decision-label { font-weight: 600; letter-spacing: 0.12em; color: var(--wc-accent-text); }
:root[data-wc-surface="module"] .decision-reveal summary { color: var(--wc-accent-text); }
:root[data-wc-surface="module"] .decision-handling { border-radius: 10px; }
:root[data-wc-surface="module"] .summary-svg { color: var(--wc-accent-text); }

/* ---- dark-only repairs: literals that a value set cannot reach ------------ */
:root[data-theme="dark"] .canon-anchor--heal { border-bottom-color: #69b445; }
:root[data-theme="dark"] .decision-reveal summary::before { border-color: #69b445; }
:root[data-theme="dark"] .logo-slot img { background: #f4f8f5; }
:root[data-theme="dark"] .table-badge { color: var(--wc-text-primary); }
:root[data-theme="dark"] .final-option.correct, :root[data-theme="dark"] .result-box.passed .result-title { color: var(--wc-ink-ok); border-color: var(--wc-ink-ok); }
:root[data-theme="dark"] .final-option.incorrect { color: var(--wc-ink-bad); border-color: var(--wc-ink-bad); }

/* ---- older pages: bridge (W3 census of the 28 ACA per-page blocks) -------- */
/* (a) the literal inks those blocks write for answered and status states, re-pointed to the
   state tokens so both value sets reach them (in light the token IS the literal: nothing moves). */
:root[data-wc-surface="module"] .final-option.correct, :root[data-wc-surface="module"] .final-option.answered.correct, :root[data-wc-surface="module"] .result-box.passed .result-title, :root[data-wc-surface="module"] .result-score.pass, :root[data-wc-surface="module"] .key-learning-title, :root[data-wc-surface="module"] .card-title.green, :root[data-wc-surface="module"] .progress-percentage, :root[data-wc-surface="module"] .nav-btn.completed, :root[data-wc-surface="module"] .table-badge.cb2, :root[data-wc-surface="module"] .cannabinoid-psychoactive.no, :root[data-wc-surface="module"] .minor-card-effects .effect-bullet, :root[data-wc-surface="module"] .effect-check, :root[data-wc-surface="module"] .vape-features .check, :root[data-wc-surface="module"] .check-box, :root[data-wc-surface="module"] .decision-card.accept .decision-title, :root[data-wc-surface="module"] .rating-badge.outstanding, :root[data-wc-surface="module"] .criteria-list li::before, :root[data-wc-surface="module"] .case-rating.outstanding, :root[data-wc-surface="module"] .elig-card.accepted .elig-title, :root[data-wc-surface="module"] .checklist li.checked::before, :root[data-wc-surface="module"] .index-evidence-label.green, :root[data-wc-surface="module"] .conversation-speaker.clinician, :root[data-wc-surface="module"] .evidence-stat.green, :root[data-wc-surface="module"] .evidence-level.green, :root[data-wc-surface="module"] .trial-badge, :root[data-wc-surface="module"] .licensed-title, :root[data-wc-surface="module"] .dosing-table th, :root[data-wc-surface="module"] .highlight-text, :root[data-wc-surface="module"] .quiz-feedback.correct { color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .final-option.incorrect, :root[data-wc-surface="module"] .final-option.answered.incorrect, :root[data-wc-surface="module"] .result-score.fail, :root[data-wc-surface="module"] .card-title.red, :root[data-wc-surface="module"] .warning-title, :root[data-wc-surface="module"] .class-a .class-letter, :root[data-wc-surface="module"] .cannabinoid-psychoactive.yes, :root[data-wc-surface="module"] .decision-card.reject .decision-title, :root[data-wc-surface="module"] .red-flags-title, :root[data-wc-surface="module"] .red-flag-category, :root[data-wc-surface="module"] .rating-badge.inadequate, :root[data-wc-surface="module"] .elig-card.rejected .elig-title, :root[data-wc-surface="module"] .index-evidence-label.red, :root[data-wc-surface="module"] .quiz-feedback.incorrect { color: var(--wc-ink-bad); }
:root[data-wc-surface="module"] .final-option.correct, :root[data-wc-surface="module"] .final-option.answered.correct, :root[data-wc-surface="module"] .result-box.passed, :root[data-wc-surface="module"] .nav-btn.completed, :root[data-wc-surface="module"] .conversation-text.clinician { border-color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .final-option.incorrect, :root[data-wc-surface="module"] .final-option.answered.incorrect, :root[data-wc-surface="module"] .result-box.failed { border-color: var(--wc-ink-bad); }
:root[data-wc-surface="module"] .final-q-num.correct, :root[data-wc-surface="module"] .question-num.correct, :root[data-wc-surface="module"] .pyramid-1, :root[data-wc-surface="module"] .evidence-color-bar.green, :root[data-wc-surface="module"] .index-card.green::before, :root[data-wc-surface="module"] .index-evidence-dot.green { background: var(--wc-fill-ok); }
:root[data-wc-surface="module"] .final-quiz-header p { color: rgba(255, 255, 255, 0.85); }
:root[data-wc-surface="module"] .final-option:hover:not(.answered), :root[data-wc-surface="module"] .final-option.selected { border-color: var(--wc-primary); }
:root[data-theme="dark"] .evidence-text { color: var(--wc-text-body); }
:root[data-theme="dark"] .case-subtitle { color: var(--wc-text-secondary); }
:root[data-theme="dark"] .evidence-badge { background: rgba(59, 130, 246, 0.22); color: var(--wc-blue-text); }
:root[data-theme="dark"] .evidence-badge.green { background: rgba(105, 180, 69, 0.18); color: var(--wc-ink-ok); }
:root[data-theme="dark"] .evidence-badge.red { background: rgba(239, 68, 68, 0.18); color: var(--wc-ink-bad); }
:root[data-theme="dark"] .evidence-badge.gold, :root[data-theme="dark"] .evidence-badge.amber-green { background: rgba(245, 158, 11, 0.18); color: var(--wc-amber-text); }
/* (b) gradient-clipped numerals beyond h1 and .stat-number: flat accent ink, as the front page. */
:root[data-wc-surface="module"] .result-score, :root[data-wc-surface="module"] .assess-num, :root[data-wc-surface="module"] .hero-stat-number, :root[data-wc-surface="module"] .trial-stat, :root[data-wc-surface="module"] .stat-value { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--wc-accent-text); }
:root[data-wc-surface="module"] .evidence-stat { -webkit-text-fill-color: currentColor; }
/* (c) page-specific furniture on five or more pages, aligned to the block: panels 15px / 1px, options and buttons 10px. */
:root[data-wc-surface="module"] .final-question, :root[data-wc-surface="module"] .mechanism-card, :root[data-wc-surface="module"] .evidence-card, :root[data-wc-surface="module"] .result-box { border-radius: 15px; border-width: 1px; }
:root[data-wc-surface="module"] .final-option { border-radius: 10px; border: 1px solid var(--wc-line-strong); background: var(--wc-well); }
:root[data-wc-surface="module"] .submit-btn, :root[data-wc-surface="module"] .retake-btn { background: var(--wc-gradient); color: #ffffff; border-radius: 10px; box-shadow: var(--wc-shadow-soft); }
:root[data-wc-surface="module"] .final-q-num { background: var(--wc-gradient); color: #ffffff; border-radius: 10px; }

/* ---- older pages: contrast repairs (BUILD-THEME-002; THM-R19, THM-R20) -------------- */
/* THM-R19: on the nine older pages the solid status badges with white text on an amber,
   red or mid-green fill become tinted pills, the pattern the look already uses for tags,
   year chips and states: a wash of the hue with the hue's ink, in both themes through the
   tokens. The two pale case-note washes and the evidence pyramid's side labels take the
   text tokens. Presentation only: no size, weight, spacing or layout moves. Each rule
   out-ranks the page's private rule by specificity; nothing here is !important. */
/* ACA-06 species badges (sativa, indica, ruderalis) */
:root[data-wc-surface="module"] .species-card.sativa .species-badge { background: rgba(34, 197, 94, 0.14); color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .species-card.indica .species-badge { background: rgba(139, 92, 246, 0.14); color: var(--wc-purple-text); }
:root[data-wc-surface="module"] .species-card.ruderalis .species-badge { background: rgba(59, 130, 246, 0.14); color: var(--wc-blue-text); }
/* ACA-09 growth-stage badges */
:root[data-wc-surface="module"] .stage-badge.veg { background: rgba(34, 197, 94, 0.14); color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .stage-badge.flower { background: rgba(245, 158, 11, 0.14); color: var(--wc-amber-text); }
:root[data-wc-surface="module"] .stage-badge.harvest { background: rgba(239, 68, 68, 0.14); color: var(--wc-ink-bad); }
/* ACA-18B evidence pyramid: the levels as tinted bands, the side labels on the text tokens */
:root[data-wc-surface="module"] .pyramid-level.l1 { background: rgba(34, 197, 94, 0.14); color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .pyramid-level.l2 { background: rgba(59, 130, 246, 0.14); color: var(--wc-blue-text); }
:root[data-wc-surface="module"] .pyramid-level.l3 { background: rgba(245, 158, 11, 0.14); color: var(--wc-amber-text); }
:root[data-wc-surface="module"] .pyramid-level.l4 { background: rgba(139, 92, 246, 0.14); color: var(--wc-purple-text); }
:root[data-wc-surface="module"] .pyramid-level.l5 { background: var(--wc-chip); color: var(--wc-text-secondary); }
:root[data-wc-surface="module"] .pyramid-label { color: var(--wc-text-secondary); }
/* ACA-23 and ACA-24 evidence pyramid bars */
:root[data-wc-surface="module"] .pyramid-bar.pyramid-1 { background: rgba(34, 197, 94, 0.14); color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .pyramid-bar.pyramid-2 { background: rgba(59, 130, 246, 0.14); color: var(--wc-blue-text); }
:root[data-wc-surface="module"] .pyramid-bar.pyramid-3 { background: rgba(245, 158, 11, 0.14); color: var(--wc-amber-text); }
:root[data-wc-surface="module"] .pyramid-bar.pyramid-4 { background: rgba(139, 92, 246, 0.14); color: var(--wc-purple-text); }
:root[data-wc-surface="module"] .pyramid-bar.pyramid-5 { background: rgba(239, 68, 68, 0.14); color: var(--wc-ink-bad); }
:root[data-wc-surface="module"] .nav-btn.active { background: var(--wc-gradient); color: var(--wc-on-fill); }
/* ACA-18 mind, body and spirit circles */
:root[data-wc-surface="module"] .mbs-circle.mbs-mind { background: rgba(59, 130, 246, 0.14); color: var(--wc-blue-text); }
:root[data-wc-surface="module"] .mbs-circle.mbs-body { background: rgba(34, 197, 94, 0.14); color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .mbs-circle.mbs-spirit { background: rgba(139, 92, 246, 0.14); color: var(--wc-purple-text); }
:root[data-wc-surface="module"] .mbs-circle .mbs-label { opacity: 1; }
/* ACA-24, ACA-27 and ACA-28 evidence badges on the amber, red and green fills; the hue variants sit on
   washed evidence cards, so they take the paper surface (two stacked washes fall under the bar) */
:root[data-wc-surface="module"] .evidence-badge { background: var(--wc-card-tint); color: var(--wc-text-primary); }
:root[data-wc-surface="module"] .evidence-badge.evidence-badge-amber { background: var(--wc-glass-bg); color: var(--wc-amber-text); }
:root[data-wc-surface="module"] .evidence-badge.green { background: var(--wc-glass-bg); color: var(--wc-ink-ok); }
:root[data-wc-surface="module"] .evidence-badge.red { background: var(--wc-glass-bg); color: var(--wc-ink-bad); }
:root[data-wc-surface="module"] .evidence-badge.gold, :root[data-wc-surface="module"] .evidence-badge.amber-green { background: var(--wc-glass-bg); color: var(--wc-amber-text); }
/* ACA-13 and ACA-16 case notes: the pale washes take the text tokens */
:root[data-wc-surface="module"] .case-rating, :root[data-wc-surface="module"] .case-rating.good, :root[data-wc-surface="module"] .case-rating.outstanding, :root[data-wc-surface="module"] .case-rating.requires-improvement { color: var(--wc-text-body); }
:root[data-wc-surface="module"] .case-section-title { color: var(--wc-text-primary); }
:root[data-wc-surface="module"] .case-tag, :root[data-wc-surface="module"] .rx-item { color: var(--wc-text-primary); }
/* ---- Bud inside a module frame: the sealed pages' second launcher (THM-R14) ---- */
:root[data-wc-surface="module"] .chat-widget { display: none; }
/* ---- small screens -------------------------------------------------------- */
@media (max-width: 600px) {
    :root[data-wc-surface="module"] .header { padding: 30px 22px 28px; border-radius: 18px; }
    :root[data-wc-surface="module"] .card, :root[data-wc-surface="module"] .quiz-box, :root[data-wc-surface="module"] .analogy-box, :root[data-wc-surface="module"] .objectives { padding: 22px 20px; }
    :root[data-wc-surface="module"] .section-nav { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -2px 24px; -webkit-overflow-scrolling: touch; }
    :root[data-wc-surface="module"] .section-btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    :root[data-wc-surface="module"] *, :root[data-wc-surface="module"] *::before, :root[data-wc-surface="module"] *::after { transition: none !important; animation: none !important; }
}

/* ---- chrome: wordmark pair (brand files used as they are) ------------------- */
.wc-logo--dark { display: none; }
:root[data-theme="dark"] .wc-logo--light { display: none; }
:root[data-theme="dark"] .wc-logo--dark { display: block; }

/* ---- portal: lettering, radii, literal-ink repairs, the Appearance control ---- */
:root[data-theme] .dashboard .page-title { font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
:root[data-theme] .dashboard .section-title { font-weight: 500; letter-spacing: -0.01em; }
:root[data-theme] .dashboard .stat-value { font-weight: 500; color: var(--wc-accent-text); }
:root[data-theme] .dashboard .stat-card, :root[data-theme] .dashboard .section-card { border-radius: 15px; }
:root[data-theme] .dashboard .section-link, :root[data-theme] .dashboard .module-percent, :root[data-theme] .dashboard .news-category, :root[data-theme] .dashboard .cert-download, :root[data-theme] .dashboard .message-content strong, :root[data-theme] .dashboard .message-source, :root[data-theme] .dashboard .quick-action-btn:hover { color: var(--wc-accent-text); }
:root[data-theme] .dashboard .spinner { border-top-color: var(--wc-accent-text); }
:root[data-theme] .dashboard .continue-btn { background: var(--wc-gradient); }

/* ---- wrapper (module.html): the slim line above the frame (NAV-001), graded assessment panel, gates controller, passport ---- */
/* Repairs of the wrapper's literals from here (specificity, not an edit to its pinned style block),
   and the block's furniture: options and buttons 10px, panels 15px, primary on the gradient. */
:root[data-theme] .module-line .status-pill.completed { color: var(--wc-ink-ok); }
:root[data-theme] .module-line .status-pill.in-progress { color: var(--wc-amber-text); }
:root[data-theme] .module-line .canonical-badge { background: var(--wc-gradient); border-color: transparent; }
:root[data-theme] .assessment-panel .aq { border-radius: 15px; background: var(--wc-well); }
:root[data-theme] .assessment-panel .aq-opt { border-radius: 10px; border: 1px solid var(--wc-line-strong); background: var(--wc-glass-bg); }
:root[data-theme] .assessment-panel .aq-opt:hover { border-color: var(--wc-glass-border-hover); }
:root[data-theme] .assessment-panel .aq-opt.selected { border-color: var(--wc-primary); background: var(--wc-card-tint); color: var(--wc-accent-text); }
:root[data-theme] .assessment-panel .aq-opt.correct { border-color: var(--wc-ink-ok); background: rgba(34, 197, 94, 0.14); color: var(--wc-ink-ok); }
:root[data-theme] .assessment-panel .aq-opt.incorrect { border-color: var(--wc-ink-bad); background: rgba(239, 68, 68, 0.12); color: var(--wc-ink-bad); }
:root[data-theme] .assessment-panel .a-btn { background: var(--wc-gradient); color: #ffffff; border-radius: 10px; box-shadow: var(--wc-shadow-soft); }
:root[data-theme] .assessment-panel .a-result { border-radius: 15px; }
:root[data-theme] .assessment-panel .a-result.pass { border-color: var(--wc-ink-ok); }
:root[data-theme] .assessment-panel .a-result.fail { border-color: var(--wc-ink-bad); }
:root[data-theme] .assessment-panel .passport-item { border-radius: 10px; }
:root[data-theme] .assessment-panel .passport-item.signed { border-color: var(--wc-ink-ok); }
:root[data-theme] .assessment-panel .passport-mark { color: var(--wc-accent-text); }

/* ---- modules.html: its literal inks, from here ---------------------------- */
:root[data-theme] .brand span, :root[data-theme] .tier-header { color: var(--wc-accent-text); }
:root[data-theme] .chip.complete { color: var(--wc-ink-ok); }
:root[data-theme] .chip.due { color: var(--wc-amber-text); }
:root[data-theme] .chip.overdue { color: var(--wc-ink-bad); }
/* ---- chrome pages: dark repairs (FIX-THEME-001a; THM-R16 to THM-R18) ---------- */
/* Ink only: no size, weight, spacing or layout moves. The wc-v2-bodied chrome pages
   (growth, supervisor) take the block's gradient-clipped h1, which is right under white
   text on a fill and wrong as title ink on a dark page: un-clipped and inked text-primary.
   Every label that sits on a brand fill reads --wc-on-fill, never a surface token
   (--wc-white is a card surface in dark). Deep-fill inks (--wc-primary-dark) re-point
   to the accent in dark. Keyed :root[data-theme]:not([data-wc-surface]) where the ink is wrong in both themes,
   :root[data-theme="dark"] otherwise; every rule carries :not([data-wc-surface]) so it reaches
   the chrome pages only and never a module frame (BUILD-THEME-002 W1 found the .btn ink
   reaching module pages that use that class). */
:root[data-theme]:not([data-wc-surface]) body.wc-v2 h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--wc-text-primary); }
:root[data-theme]:not([data-wc-surface]) .btn { color: var(--wc-on-fill); }
:root[data-theme]:not([data-wc-surface]) .tab.active, :root[data-theme]:not([data-wc-surface]) .badge.version, :root[data-theme]:not([data-wc-surface]) .canonical-badge, :root[data-theme]:not([data-wc-surface]) .badge-m { color: var(--wc-on-fill); }
:root[data-theme]:not([data-wc-surface]) .btn.secondary { color: var(--wc-accent-text); }
:root[data-theme]:not([data-wc-surface]) .status-pill.status-completed { color: var(--wc-ink-ok); }
:root[data-theme]:not([data-wc-surface]) .status-pill.status-in-progress { color: var(--wc-amber-text); }
:root[data-theme="dark"]:not([data-wc-surface]) .wc-v2 .tile .v, :root[data-theme="dark"]:not([data-wc-surface]) .wc-v2 .status, :root[data-theme="dark"]:not([data-wc-surface]) .post-body a { color: var(--wc-accent-text); }

/* THM-R18: the ONE !important rule the ruling allows in this block, for the sealed inline
   "Start assessment" button on the 28 older pages (white on the light end of the two-green
   gradient, 2.56:1, written into the pinned bytes): an inline style cannot be out-ranked
   any other way and this is the door to the graded assessment. Removed when those pages
   are next opened. */
:root[data-wc-surface="module"] .assessment-start-card button { background: var(--wc-gradient) !important; color: var(--wc-on-fill) !important; border-radius: 10px !important; }
/* the control: lives here and nowhere else (THM-R1) */
.wc-appearance { display: none; }
:root[data-theme] .wc-appearance { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--wc-glass-border); }
.wc-appearance__label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wc-text-muted); margin-bottom: 8px; }
.wc-appearance__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wc-chip); }
.wc-appearance__seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; padding: 8px 10px; min-height: 36px; font: 600 13.5px/1 var(--font-body, 'Outfit', sans-serif); color: var(--wc-text-secondary); background: transparent; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.wc-appearance__seg button:hover { color: var(--wc-text); }
.wc-appearance__seg button[aria-pressed="true"] { background: var(--wc-glass-bg); color: var(--wc-accent-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
:root[data-theme="dark"] .wc-appearance__seg button[aria-pressed="true"] { background: #338364; color: #ffffff; }
.wc-appearance__seg svg { width: 15px; height: 15px; flex-shrink: 0; }
.wc-appearance__note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--wc-text-muted); }

/* LAYOUT-001 start */
/* ===========================================================================
   LAYOUT-001 — the signed-in home, the Academy hub and the room pages
   (the Medical Director's rulings of 18 October 2026; LAYOUT-001-HANDOVER §1,
   §1A, §2). Phone first; tokens only (THM-001: --wc-* on :root[data-theme]);
   every rule keyed on the appearance stamp, which every chrome page carries
   from js/theme.js, so nothing here can reach an unstamped page or a module
   frame. The room hues are the status ramps the stylesheet already carries,
   one per room, chosen by the door's data-room. The Design DNA as the tokens
   carry it: 15px card radius, 10px button radius, the soft shadow, pill tags,
   a lift on hover, and no motion under prefers-reduced-motion.
   ======================================================================== */
/* the bottom gutter clears Bud's floating launcher (T4-R736, M17); the launcher itself is not moved */
:root[data-theme] .wc-ly-main { padding: 18px 16px 120px; max-width: 1180px; width: 100%; min-width: 0; box-sizing: border-box; }
:root[data-theme] .wc-ly-main *, :root[data-theme] .wc-ly-main *::before, :root[data-theme] .wc-ly-main *::after { box-sizing: border-box; }
:root[data-theme] .wc-ly-main a:not(.wc-ly-btn):not(.wc-ly-link) { color: inherit; text-decoration: none; }
:root[data-theme] .wc-ly-main a.wc-ly-btn, :root[data-theme] .wc-ly-main a.wc-ly-link { text-decoration: none; }
:root[data-theme] .wc-ly-main button { font: inherit; cursor: pointer; }
:root[data-theme] .wc-ly-h1 { font-family: var(--wc-font-display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; color: var(--wc-text-primary); margin: 0; }
:root[data-theme] .wc-ly-h2 { font-family: var(--wc-font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.01em; color: var(--wc-text-primary); line-height: 1.2; margin: 0; }
:root[data-theme] .wc-ly-lede { font-size: clamp(16px, 1.3vw, 18px); color: var(--wc-text-secondary); max-width: 62ch; margin: 10px 0 0; line-height: 1.55; }
:root[data-theme] .wc-ly-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
:root[data-theme] .wc-ly-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--wc-radius-pill); background: var(--wc-chip); color: var(--wc-text-primary); font-size: 13px; font-weight: 600; line-height: 1.3; }
:root[data-theme] .wc-ly-pill--ink { background: var(--wc-card-tint); color: var(--wc-accent-text); }
:root[data-theme] .wc-ly-pill--off { color: var(--wc-text-secondary); }
:root[data-theme] .wc-ly-pill--own { background: var(--wc-card-tint); color: var(--wc-ink-ok); }
:root[data-theme] .wc-ly-pill--buy { background: var(--wc-gradient); color: var(--wc-on-fill); }
:root[data-theme] .wc-ly-sec { margin-top: 40px; }
:root[data-theme] .wc-ly-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
:root[data-theme] .wc-ly-sec__head p { color: var(--wc-text-secondary); font-size: 15px; max-width: 60ch; margin: 4px 0 0; flex-basis: 100%; }
:root[data-theme] .wc-ly-link { color: var(--wc-accent-text); font-weight: 600; font-size: 14.5px; }
:root[data-theme] .wc-ly-link:hover { text-decoration: underline; }
:root[data-theme] .wc-ly-key { font-size: 13px; color: var(--wc-text-muted); }

/* buttons: the tokens' 10px radius, a lift on hover */
:root[data-theme] .wc-ly-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--wc-radius-btn); font-weight: 600; font-size: 15px; border: 0; line-height: 1.2; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
:root[data-theme] .wc-ly-btn--primary { background: var(--wc-gradient); color: var(--wc-on-fill); box-shadow: var(--wc-shadow-soft); }
:root[data-theme] .wc-ly-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--wc-shadow-float); }
:root[data-theme] .wc-ly-btn--outline { background: var(--wc-glass-bg); color: var(--wc-accent-text); border: 1.5px solid var(--wc-line-strong); }
:root[data-theme] .wc-ly-btn--outline:hover { transform: translateY(-2px); box-shadow: var(--wc-shadow-soft); border-color: var(--wc-primary); }
:root[data-theme] .wc-ly-btn--small { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* the state pill: ink tokens on the chip wash, in both value sets */
:root[data-theme] .wc-ly-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--wc-radius-pill); font-size: 12.5px; font-weight: 600; background: var(--wc-chip); color: var(--wc-text-primary); white-space: nowrap; }
:root[data-theme] .wc-ly-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
:root[data-theme] .wc-ly-state--due { color: var(--wc-amber-text); }
:root[data-theme] .wc-ly-state--overdue { color: var(--wc-ink-bad); }
:root[data-theme] .wc-ly-state--done { color: var(--wc-ink-ok); }
:root[data-theme] .wc-ly-state--open { color: var(--wc-accent-text); background: var(--wc-card-tint); }
:root[data-theme] .wc-ly-state--quiet { color: var(--wc-text-secondary); }

/* the room hues: the status ramps the stylesheet already carries, one per room */
:root[data-theme] [data-room="arrive"] { --wc-ly-hue: var(--wc-cyan); --wc-ly-ink: var(--wc-cyan-text); }
:root[data-theme] [data-room="learn"] { --wc-ly-hue: var(--wc-blue); --wc-ly-ink: var(--wc-blue-text); }
:root[data-theme] [data-room="practise"] { --wc-ly-hue: var(--wc-green); --wc-ly-ink: var(--wc-ink-ok); }
:root[data-theme] [data-room="protect"] { --wc-ly-hue: var(--wc-amber); --wc-ly-ink: var(--wc-amber-text); }
:root[data-theme] [data-room="belong"] { --wc-ly-hue: var(--wc-primary); --wc-ly-ink: var(--wc-accent-text); }
:root[data-theme] [data-room="lead"] { --wc-ly-hue: var(--wc-purple); --wc-ly-ink: var(--wc-purple-text); }
:root[data-theme] [data-room="explore"] { --wc-ly-hue: var(--wc-text-muted); --wc-ly-ink: var(--wc-text-muted); }

/* "your next step": one card, one button; the team strip the same card set quieter */
:root[data-theme] .wc-ly-three { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
:root[data-theme] .wc-ly-thing { position: relative; min-width: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 20px 20px 18px 24px; box-shadow: var(--wc-shadow-soft); display: flex; flex-direction: column; gap: 10px; }
:root[data-theme] .wc-ly-thing::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--wc-ly-hue, var(--wc-primary)); }
:root[data-theme] .wc-ly-thing__kind { font-size: 13px; font-weight: 600; color: var(--wc-ly-ink, var(--wc-accent-text)); }
:root[data-theme] .wc-ly-thing__title { font-family: var(--wc-font-display); font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--wc-text-primary); margin: 0; }
:root[data-theme] .wc-ly-thing__meta { font-size: 14px; color: var(--wc-text-secondary); margin: 0; line-height: 1.5; }
:root[data-theme] .wc-ly-thing .wc-ly-btn { align-self: flex-start; margin-top: auto; }
:root[data-theme] .wc-ly-sec--team { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--wc-glass-border); }
:root[data-theme] .wc-ly-thing--team { box-shadow: none; background: var(--wc-well); }
:root[data-theme] .wc-ly-thing--team .wc-ly-thing__title { font-size: 19px; }

/* the door tile: shared by Home (compact) and the hub (full) */
:root[data-theme] .wc-ly-rooms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
:root[data-theme] .wc-ly-door { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 2px 12px; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 14px 14px 12px 20px; box-shadow: var(--wc-shadow-soft); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
:root[data-theme] .wc-ly-door::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--wc-ly-hue); }
:root[data-theme] .wc-ly-door:hover { transform: translateY(-3px); box-shadow: var(--wc-shadow-float); border-color: var(--wc-glass-border-hover); }
:root[data-theme] .wc-ly-door__name { font-family: var(--wc-font-display); font-weight: 500; font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; color: var(--wc-text-primary); grid-column: 1; overflow-wrap: anywhere; }
:root[data-theme] .wc-ly-door__key { font-size: 12px; color: var(--wc-text-muted); grid-column: 1; }
:root[data-theme] .wc-ly-door__line { grid-column: 1; color: var(--wc-text-secondary); font-size: 14px; line-height: 1.5; margin-top: 4px; max-width: 46ch; }
:root[data-theme] .wc-ly-door__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--wc-glass-border); font-size: 12.5px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-ly-door__for { color: var(--wc-ly-ink); font-weight: 600; }
:root[data-theme] .wc-ly-door__foot .wc-ly-btn { min-height: 32px; padding: 4px 11px; font-size: 13px; }
:root[data-theme] .wc-ly-ring { grid-column: 2; grid-row: 1 / span 3; align-self: start; width: 50px; height: 50px; position: relative; }
:root[data-theme] .wc-ly-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
:root[data-theme] .wc-ly-ring circle { fill: none; stroke-width: 6; }
:root[data-theme] .wc-ly-ring__track { stroke: var(--wc-chip); }
:root[data-theme] .wc-ly-ring__fill { stroke: var(--wc-ly-hue); stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
:root[data-theme] .wc-ly-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--wc-font-display); font-weight: 500; font-size: 12.5px; color: var(--wc-text-primary); }
:root[data-theme] .wc-ly-door--quiet { box-shadow: none; background: transparent; }
:root[data-theme] .wc-ly-door--quiet::before { opacity: 0.45; }
:root[data-theme] .wc-ly-door--quiet .wc-ly-door__name { color: var(--wc-text-secondary); font-size: 21px; }
:root[data-theme] .wc-ly-door--quiet .wc-ly-ring__fill { stroke: var(--wc-text-muted); }
:root[data-theme] .wc-ly-door--compact { padding: 12px 12px 10px 18px; gap: 2px 10px; }
:root[data-theme] .wc-ly-door--compact .wc-ly-door__name { font-size: 20px; }
:root[data-theme] .wc-ly-door--compact .wc-ly-ring { width: 40px; height: 40px; }
:root[data-theme] .wc-ly-door--compact .wc-ly-ring b { font-size: 11px; }

/* the card (Bud's and the news' until BUILD-COMPANY-001; the placards of "In good company" since) */
:root[data-theme] .wc-ly-card { min-width: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 20px 22px; box-shadow: var(--wc-shadow-soft); }
:root[data-theme] .wc-ly-card h3 { font-family: var(--wc-font-display); font-weight: 500; font-size: 21px; color: var(--wc-text-primary); margin: 0 0 6px; }
:root[data-theme] .wc-ly-card p { color: var(--wc-text-secondary); font-size: 15px; margin: 0; line-height: 1.55; }
:root[data-theme] .wc-ly-card--flush { padding: 0; overflow: hidden; }
:root[data-theme] .wc-ly-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--wc-glass-border); }
:root[data-theme] .wc-ly-card__head h3 { margin: 0; }
:root[data-theme] .wc-ly-bud { display: flex; gap: 16px; align-items: flex-start; }
:root[data-theme] .wc-ly-bud__leaf { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--wc-gradient-brand); display: flex; align-items: center; justify-content: center; color: var(--wc-on-fill); }
:root[data-theme] .wc-ly-bud__leaf svg { width: 24px; height: 24px; }
:root[data-theme] .wc-ly-bud .wc-ly-btn { margin-top: 12px; }
:root[data-theme] .wc-ly-empty { text-align: center; padding: 22px 10px 12px; color: var(--wc-text-muted); font-size: 14.5px; }
:root[data-theme] .wc-ly-empty b { display: block; color: var(--wc-text-secondary); font-weight: 600; margin-bottom: 4px; }

/* BUILD-COMPANY-001 (IGC-R2, IGC-R3, IGC-R9): "In good company" - the forum, the news and Bud as three
   placards in one band (the Academy band's panel), stacked on a phone and sharing the row on a desktop
   (however many remain, IGC-R6); a round icon, a small label, a title, one sentence, an inset live line
   and one button; moved among the person's cards the band spans the grid; tokens only */
:root[data-theme] .wc-ly-company__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
:root[data-theme] .wc-ly-placard { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; }
:root[data-theme] .wc-ly-placard__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--wc-gradient-brand); color: var(--wc-on-fill); display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
:root[data-theme] .wc-ly-placard__icon svg { width: 22px; height: 22px; }
:root[data-theme] .wc-ly-placard__label { font-size: 13px; font-weight: 600; color: var(--wc-accent-text); }
:root[data-theme] .wc-ly-placard h3 { margin: 0; }
:root[data-theme] .wc-ly-placard p { font-size: 14.5px; }
:root[data-theme] .wc-ly-placard__live { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--wc-well); border: 1px solid var(--wc-glass-border); margin-top: 2px; }
:root[data-theme] .wc-ly-placard__live-label { font-size: 12px; font-weight: 600; color: var(--wc-text-muted); }
:root[data-theme] .wc-ly-placard__live-text { font-size: 14px; line-height: 1.4; color: var(--wc-text-primary); overflow-wrap: anywhere; }
:root[data-theme] a.wc-ly-placard__live-text { text-decoration: none; }
:root[data-theme] a.wc-ly-placard__live-text:hover, :root[data-theme] a.wc-ly-placard__live-text:focus-visible { text-decoration: underline; color: var(--wc-accent-text); }
:root[data-theme] .wc-ly-placard__ack { font-size: 14px; font-weight: 600; color: var(--wc-amber-text); }
:root[data-theme] .wc-ly-placard .wc-ly-btn { align-self: flex-start; margin-top: auto; }
:root[data-theme] .wc-ly-placard[hidden], :root[data-theme] .wc-ly-placard__live[hidden], :root[data-theme] .wc-ly-placard__ack[hidden] { display: none; }
:root[data-theme] .wc-ly-three > .wc-ly-company { grid-column: 1 / -1; margin-top: 0; }

/* the room page */
:root[data-theme] .wc-ly-roomhead { position: relative; border-radius: 18px; padding: 22px 18px 20px 24px; background: var(--wc-hero-bg); overflow: hidden; margin-top: 8px; border: 1px solid var(--wc-glass-border); }
:root[data-theme] .wc-ly-roomhead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 90% -10%, var(--wc-hero-glow-a), transparent 60%), radial-gradient(500px 300px at 0% 110%, var(--wc-hero-glow-b), transparent 60%); pointer-events: none; }
:root[data-theme] .wc-ly-roomhead::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--wc-ly-hue); }
:root[data-theme] .wc-ly-roomhead > * { position: relative; }
:root[data-theme] .wc-ly-roomhead .wc-ly-key { margin-bottom: 6px; }
:root[data-theme] .wc-ly-roomhead p { color: var(--wc-text-secondary); font-size: 16.5px; line-height: 1.6; max-width: 64ch; margin: 12px 0 0; }
:root[data-theme] .wc-ly-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-ly-stats b { font-family: var(--wc-font-display); font-weight: 500; font-size: 22px; color: var(--wc-text-primary); margin-right: 5px; }
:root[data-theme] .wc-ly-seq { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 4px; margin-top: 14px; }
:root[data-theme] .wc-ly-seq span { font-size: 11px; line-height: 1.3; padding: 7px 4px 6px; border-radius: 10px; background: var(--wc-well); color: var(--wc-text-secondary); border-top: 3px solid var(--wc-chip); text-align: center; }
:root[data-theme] .wc-ly-seq span.now { border-top-color: var(--wc-ly-hue); color: var(--wc-text-primary); font-weight: 600; background: var(--wc-glass-bg); }
:root[data-theme] .wc-ly-seq span.done { border-top-color: var(--wc-fill-ok); }
:root[data-theme] .wc-ly-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 14px; }
:root[data-theme] .wc-ly-chip { border: 1.5px solid var(--wc-line-strong); background: var(--wc-glass-bg); color: var(--wc-accent-text); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: var(--wc-radius-pill); min-height: 38px; }
:root[data-theme] .wc-ly-chip[aria-pressed="true"] { background: var(--wc-gradient); color: var(--wc-on-fill); border-color: transparent; }
:root[data-theme] .wc-ly-group { margin-top: 26px; }
:root[data-theme] .wc-ly-group h3 { font-family: var(--wc-font-body); font-weight: 600; font-size: 16px; color: var(--wc-text-primary); margin: 0 0 10px; }
:root[data-theme] .wc-ly-group h3 small { font-weight: 400; color: var(--wc-text-muted); margin-left: 8px; }
:root[data-theme] .wc-ly-mods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
:root[data-theme] .wc-ly-mod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 16px 18px; box-shadow: var(--wc-shadow-soft); transition: transform 0.18s ease, box-shadow 0.18s ease; }
:root[data-theme] .wc-ly-mod:hover { transform: translateY(-2px); box-shadow: var(--wc-shadow-float); }
:root[data-theme] .wc-ly-mod--mine { border-color: var(--wc-glass-border-hover); background: var(--wc-card-tint); }
:root[data-theme] .wc-ly-mod--off { box-shadow: none; background: transparent; }
:root[data-theme] .wc-ly-mod--coming { box-shadow: none; background: transparent; border-style: dashed; }
:root[data-theme] .wc-ly-mod__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
:root[data-theme] .wc-ly-mod__title { font-family: var(--wc-font-display); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--wc-text-primary); margin: 0; }
:root[data-theme] .wc-ly-mod__id { font-size: 12px; color: var(--wc-text-muted); margin-top: 2px; }
:root[data-theme] .wc-ly-mod__seq { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); color: var(--wc-accent-text); font-family: var(--wc-font-display); font-size: 14px; vertical-align: middle; }
:root[data-theme] .wc-ly-mod__learn { font-size: 14px; color: var(--wc-text-secondary); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:root[data-theme] .wc-ly-mod__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-ly-mod__agreed { font-size: 12.5px; color: var(--wc-text-muted); margin: 0; }
:root[data-theme] .wc-ly-mod .wc-ly-btn { justify-self: start; margin-top: 4px; }
:root[data-theme] .wc-ly-pass { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-ly-pass__bar { flex: 1; height: 8px; border-radius: 4px; background: var(--wc-chip); overflow: hidden; max-width: 220px; }
:root[data-theme] .wc-ly-pass__bar i { display: block; height: 100%; background: var(--wc-ly-hue); border-radius: 4px; }
:root[data-theme] .wc-ly-mod[hidden] { display: none; }
:root[data-theme] .wc-ly-none { display: none; padding: 26px; text-align: center; color: var(--wc-text-muted); border: 1px dashed var(--wc-line-strong); border-radius: var(--wc-radius-card); }
:root[data-theme] .wc-ly-none.show { display: block; }
:root[data-theme] .wc-ly-loading { padding: 30px 10px; text-align: center; color: var(--wc-text-muted); font-size: 14.5px; }

/* LAYOUT-001-FIX-001 (21 October 2026): the search field at the top of the page, its
   results as you type, and the All modules list. The same tokens, the same radii. */
:root[data-theme] .wc-ly-search { position: relative; margin: 0 0 18px; max-width: 640px; }
:root[data-theme] .wc-ly-search__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wc-text-muted); margin-bottom: 6px; }
:root[data-theme] .wc-ly-search__field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--wc-radius-btn); background: var(--wc-glass-bg); border: 1.5px solid var(--wc-line-strong); box-shadow: var(--wc-shadow-soft); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
:root[data-theme] .wc-ly-search__field:focus-within { border-color: var(--wc-primary); box-shadow: var(--wc-shadow-float); }
:root[data-theme] .wc-ly-search__field svg { width: 18px; height: 18px; flex: none; color: var(--wc-text-muted); }
:root[data-theme] .wc-ly-search__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--wc-text-primary); font: inherit; font-size: 16px; line-height: 1.3; padding: 11px 0; outline: none; appearance: none; }
:root[data-theme] .wc-ly-search__input::placeholder { color: var(--wc-text-muted); opacity: 1; }
:root[data-theme] .wc-ly-search__results { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); box-shadow: var(--wc-shadow-float); max-height: 60vh; overflow: auto; }
:root[data-theme] .wc-ly-search__results[hidden] { display: none; }
:root[data-theme] .wc-ly-search__results li { margin: 0; }
:root[data-theme] .wc-ly-search__results a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--wc-radius-btn); color: var(--wc-text-primary); font-size: 15px; line-height: 1.3; }
:root[data-theme] .wc-ly-search__results a:hover { background: var(--wc-card-tint); }
:root[data-theme] .wc-ly-search__results a:focus { background: var(--wc-card-tint); outline: 2px solid var(--wc-primary); outline-offset: -2px; }
:root[data-theme] .wc-ly-search__id { flex: none; min-width: 56px; font-size: 12.5px; font-weight: 600; color: var(--wc-text-muted); }
:root[data-theme] .wc-ly-search__title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
:root[data-theme] .wc-ly-search__none { padding: 10px 12px; color: var(--wc-text-muted); font-size: 14px; }
:root[data-theme] .wc-ly-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
:root[data-theme] .wc-ly-list__count { margin: 14px 0 0; }
:root[data-theme] .wc-ly-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 14px; align-items: center; min-width: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 12px 14px; }
:root[data-theme] .wc-ly-row[hidden] { display: none; }
:root[data-theme] .wc-ly-row--draft { border-style: dashed; box-shadow: none; }
:root[data-theme] .wc-ly-row__main { min-width: 0; }
:root[data-theme] .wc-ly-row__title { font-family: var(--wc-font-display); font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--wc-text-primary); margin: 0; overflow-wrap: anywhere; }
:root[data-theme] .wc-ly-row__id { font-size: 12.5px; color: var(--wc-text-muted); margin-top: 2px; }
:root[data-theme] .wc-ly-row__side { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* LAYOUT-001-FIX-001 (T4-R741): Home's Academy section as a titled band — the well's wash,
   a lede on its own line, the six doors two across on a phone (the name spanning the tile,
   never broken mid-word; the ring beside the key line) and three across on a desktop, the
   key line kept; the door sentence stays on the hub and in the room */
:root[data-theme] .wc-ly-band { background: var(--wc-well); border: 1px solid var(--wc-glass-border); border-radius: 18px; padding: 18px 16px 16px; margin-top: 34px; }
:root[data-theme] .wc-ly-band .wc-ly-sec__head { margin-bottom: 12px; }
:root[data-theme] .wc-ly-band .wc-ly-rooms--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
:root[data-theme] .wc-ly-band .wc-ly-door--compact { padding: 10px 10px 8px 16px; gap: 1px 8px; }
:root[data-theme] .wc-ly-band .wc-ly-sec__head p { max-width: none; }
:root[data-theme] .wc-ly-band .wc-ly-door--compact .wc-ly-door__name { font-size: 17px; grid-column: 1 / -1; overflow-wrap: normal; hyphens: auto; }
:root[data-theme] .wc-ly-band .wc-ly-door--compact .wc-ly-door__key { font-size: 11px; align-self: center; }
:root[data-theme] .wc-ly-band .wc-ly-door--compact .wc-ly-ring { width: 36px; height: 36px; grid-row: 2; align-self: center; }
:root[data-theme] .wc-ly-band .wc-ly-door--compact .wc-ly-door__foot { margin-top: 6px; padding-top: 6px; font-size: 12px; }

/* desktop: the phone layout widens; nothing is added or hidden */
@media (min-width: 701px) {
    :root[data-theme] .wc-ly-row { grid-template-columns: minmax(0, 1fr) auto; }
    :root[data-theme] .wc-ly-row__side { justify-content: flex-end; }
    :root[data-theme] .wc-ly-band { padding: 22px 22px 20px; }
    :root[data-theme] .wc-ly-band .wc-ly-rooms--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    :root[data-theme] .wc-ly-band .wc-ly-door--compact .wc-ly-door__name { font-size: 20px; grid-column: 1; }
    :root[data-theme] .wc-ly-band .wc-ly-door--compact .wc-ly-ring { grid-row: 1 / span 3; }
    :root[data-theme] .wc-ly-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    :root[data-theme] .wc-ly-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root[data-theme] .wc-ly-rooms--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    :root[data-theme] .wc-ly-company__row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
    :root[data-theme] .wc-ly-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root[data-theme] .wc-ly-door { padding: 18px 18px 16px 26px; gap: 4px 16px; }
    :root[data-theme] .wc-ly-door__name { font-size: 30px; }
    :root[data-theme] .wc-ly-door__line { font-size: 15px; margin-top: 6px; }
    :root[data-theme] .wc-ly-door__foot { margin-top: 12px; padding-top: 12px; font-size: 13.5px; }
    :root[data-theme] .wc-ly-door--quiet .wc-ly-door__name { font-size: 24px; }
    :root[data-theme] .wc-ly-ring { width: 64px; height: 64px; }
    :root[data-theme] .wc-ly-ring b { font-size: 15px; }
    :root[data-theme] .wc-ly-door--compact { padding: 14px 14px 12px 20px; }
    :root[data-theme] .wc-ly-door--compact .wc-ly-door__name { font-size: 22px; }
    :root[data-theme] .wc-ly-door--compact .wc-ly-ring { width: 46px; height: 46px; }
    :root[data-theme] .wc-ly-roomhead { padding: 30px 28px 26px 34px; border-radius: 22px; }
    :root[data-theme] .wc-ly-seq { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    :root[data-theme] .wc-ly-seq span { font-size: 12.5px; padding: 9px 8px 8px; }
}
@media (min-width: 901px) {
    :root[data-theme] .wc-ly-main { padding: 30px 40px 120px; }
}
@media (min-width: 1500px) {
    :root[data-theme] .wc-ly-rooms--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    :root[data-theme] .wc-ly-btn, :root[data-theme] .wc-ly-door, :root[data-theme] .wc-ly-mod, :root[data-theme] .wc-ly-ring__fill { transition: none; }
    :root[data-theme] .wc-ly-btn:hover, :root[data-theme] .wc-ly-door:hover, :root[data-theme] .wc-ly-mod:hover { transform: none; }
}
/* LAYOUT-001 end */
/* ACH-001 start */
/* ===========================================================================
   ACH-001 — "Your achievements" (the Medical Director's rulings of 23 October
   2026, T4-R742): the card-led shelf for the six sections. Phone first; tokens
   only (THM-001: --wc-* on :root[data-theme]); every rule keyed on the
   appearance stamp and scoped under .wc-ach, so nothing here can reach an
   unstamped page, a module frame or another chrome page. The page reuses the
   LAYOUT-001 column, headings, pills, state pills, buttons and cards; this
   block carries only what the shelf, the calendar line, the parts grid, the
   stones, the steps and the mirror need.
   ======================================================================== */
:root[data-theme] .wc-ach .wc-ly-sec { margin-top: 34px; }
:root[data-theme] .wc-ach .wc-ly-sec__head p { line-height: 1.5; }
:root[data-theme] .wc-ach__key { font-size: 12.5px; color: var(--wc-text-muted); margin-top: 4px; overflow-wrap: anywhere; }
:root[data-theme] .wc-ach__word { font-weight: 600; color: var(--wc-text-primary); }
:root[data-theme] .wc-ach__quiet { color: var(--wc-text-secondary); font-weight: 400; }
:root[data-theme] .wc-ach__meta { font-size: 14px; color: var(--wc-text-secondary); line-height: 1.5; margin: 0; }
:root[data-theme] .wc-ach__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
:root[data-theme] .wc-ach__notice { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--wc-radius-btn); border: 1px solid var(--wc-line-strong); background: var(--wc-card-tint); color: var(--wc-text-primary); font-size: 14.5px; }
:root[data-theme] .wc-ach__notice--bad { border-color: var(--wc-ink-bad); color: var(--wc-ink-bad); background: var(--wc-glass-bg); }
:root[data-theme] .wc-ach__notice[hidden] { display: none; }
:root[data-theme] .wc-ach__title { font-family: var(--wc-font-display); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--wc-text-primary); margin: 0; overflow-wrap: anywhere; }

/* the shelf */
:root[data-theme] .wc-ach__shelf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
:root[data-theme] .wc-ach__paper { position: relative; min-width: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 18px 18px 16px 22px; box-shadow: var(--wc-shadow-soft); display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
:root[data-theme] .wc-ach__paper::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--wc-gradient-brand); }
:root[data-theme] .wc-ach__earlier { margin-top: 4px; }
:root[data-theme] .wc-ach__earlier summary { cursor: pointer; font-size: 13.5px; color: var(--wc-accent-text); font-weight: 600; }
:root[data-theme] .wc-ach__earlier p { margin: 6px 0 0; font-size: 13.5px; color: var(--wc-text-secondary); }

/* keeping current: a calendar line */
:root[data-theme] .wc-ach__cal { list-style: none; margin: 0; padding: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); overflow: hidden; }
:root[data-theme] .wc-ach__cal-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 14px; padding: 14px 18px; border-top: 1px solid var(--wc-glass-border); align-items: center; min-width: 0; }
:root[data-theme] .wc-ach__cal-row:first-child { border-top: 0; }
:root[data-theme] .wc-ach__cal-row--soon { box-shadow: inset 4px 0 0 var(--wc-amber); }
:root[data-theme] .wc-ach__cal-row--due { box-shadow: inset 4px 0 0 var(--wc-ink-bad); }
:root[data-theme] .wc-ach__cal-row--due .wc-ach__when b { color: var(--wc-ink-bad); }
:root[data-theme] .wc-ach__when { font-size: 14px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-ach__when b { font-weight: 600; color: var(--wc-text-primary); }
:root[data-theme] .wc-ach__cal-row .wc-ach__row { margin-top: 0; justify-content: flex-start; }

:root[data-theme] .wc-ach__fold { margin-top: 10px; }
:root[data-theme] .wc-ach__fold summary { cursor: pointer; font-size: 14px; color: var(--wc-accent-text); font-weight: 600; padding: 6px 0; }
:root[data-theme] .wc-ach__fold .wc-ach__cal { margin-top: 8px; }

/* the marks */
:root[data-theme] .wc-ach__marks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
:root[data-theme] .wc-ach__marks .wc-ly-card { min-width: 0; }
:root[data-theme] .wc-ach__parts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
:root[data-theme] .wc-ach__part { grid-column: span 2; border-radius: 10px; padding: 10px 8px 9px; background: var(--wc-well); border-top: 3px solid var(--wc-chip); min-width: 0; }
:root[data-theme] .wc-ach__part:nth-child(4), :root[data-theme] .wc-ach__part:nth-child(5) { grid-column: span 3; }
:root[data-theme] .wc-ach__part b { display: block; font-family: var(--wc-font-display); font-weight: 500; font-size: 20px; color: var(--wc-text-primary); line-height: 1; }
:root[data-theme] .wc-ach__part span { display: block; font-size: 13px; line-height: 1.35; color: var(--wc-text-body); margin-top: 6px; }
:root[data-theme] .wc-ach__part .wc-ach__key { margin-top: 3px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-ach__part--passed { border-top-color: var(--wc-fill-ok); background: var(--wc-glass-bg); }
:root[data-theme] .wc-ach__part--passed b { color: var(--wc-ink-ok); }
:root[data-theme] .wc-ach__part--open { border-top-color: var(--wc-amber); background: var(--wc-glass-bg); }
:root[data-theme] .wc-ach__part--locked { border-top-color: var(--wc-glass-border); }
:root[data-theme] .wc-ach__part--locked b { color: var(--wc-text-secondary); }
:root[data-theme] .wc-ach__passport { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-ach__bar { flex: 1 1 80px; height: 8px; border-radius: var(--wc-radius-pill); background: var(--wc-chip); overflow: hidden; }
:root[data-theme] .wc-ach__bar i { display: block; height: 100%; width: var(--wc-ach-fill, 0%); background: var(--wc-gradient-brand); border-radius: var(--wc-radius-pill); transition: width 0.4s ease; }
:root[data-theme] .wc-ach__quizcard .wc-ach__key { margin-bottom: 10px; }
:root[data-theme] .wc-ach__quizzes { list-style: none; margin: 0; padding: 0; }
:root[data-theme] .wc-ach__quizzes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--wc-glass-border); align-items: center; }
:root[data-theme] .wc-ach__quizzes li:first-child { border-top: 0; padding-top: 0; }
:root[data-theme] .wc-ach__num { font-family: var(--wc-font-display); font-weight: 500; font-size: 20px; color: var(--wc-text-primary); white-space: nowrap; }
:root[data-theme] .wc-ach__num small { font-family: var(--wc-font-body); font-size: 12px; color: var(--wc-text-muted); margin-left: 4px; font-weight: 400; }

/* milestones: stones on a path */
:root[data-theme] .wc-ach__stones { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
:root[data-theme] .wc-ach__stone { border-top: 3px solid var(--wc-chip); padding-top: 10px; font-size: 14px; color: var(--wc-text-secondary); min-width: 0; }
:root[data-theme] .wc-ach__stone b { display: block; font-weight: 600; color: var(--wc-text-primary); }
:root[data-theme] .wc-ach__stone--done { border-top-color: var(--wc-fill-ok); }
:root[data-theme] .wc-ach__stone--done b::before { content: "\2713\00a0"; color: var(--wc-ink-ok); }

/* worth revisiting */
:root[data-theme] .wc-ach__revisit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
:root[data-theme] .wc-ach__step { min-width: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
:root[data-theme] .wc-ach__step h3 { font-family: var(--wc-font-display); font-weight: 500; font-size: 18px; margin: 0; color: var(--wc-text-primary); line-height: 1.3; }
:root[data-theme] .wc-ach__step .wc-ly-btn { align-self: flex-start; margin-top: 6px; }

/* reflections: the mirror */
:root[data-theme] .wc-ach__mirror-wrap { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 20px 22px; min-width: 0; }
:root[data-theme] .wc-ach__intro { margin-bottom: 14px; }
:root[data-theme] .wc-ach__mirror label { display: block; font-size: 14px; font-weight: 600; color: var(--wc-text-primary); margin: 14px 0 6px; }
:root[data-theme] .wc-ach__mirror label:first-child { margin-top: 0; }
:root[data-theme] .wc-ach__input { font: inherit; font-size: 15px; width: 100%; padding: 10px 12px; border: 1px solid var(--wc-line-strong); border-radius: var(--wc-radius-btn); background: var(--wc-glass-bg); color: var(--wc-text-body); min-width: 0; }
:root[data-theme] .wc-ach__input:focus-visible { outline: 3px solid var(--wc-secondary); outline-offset: 2px; }
:root[data-theme] textarea.wc-ach__input { min-height: 72px; resize: vertical; }
:root[data-theme] .wc-ach__share { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; color: var(--wc-text-body); }
:root[data-theme] .wc-ach__share input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--wc-primary); }
:root[data-theme] .wc-ach__share label { margin: 0; font-weight: 500; color: var(--wc-text-body); }
:root[data-theme] .wc-ach__mirror .wc-ach__row { margin-top: 16px; justify-content: flex-start; }
:root[data-theme] .wc-ach__written { border-left: 3px solid var(--wc-primary); padding: 4px 0 4px 14px; margin-bottom: 18px; min-width: 0; }
:root[data-theme] .wc-ach__written p { margin: 6px 0 0; font-size: 15px; color: var(--wc-text-body); line-height: 1.55; overflow-wrap: anywhere; }
:root[data-theme] .wc-ach__written p b { font-weight: 600; color: var(--wc-text-primary); }
:root[data-theme] .wc-ach__written .wc-ach__row { justify-content: flex-start; }

@media (min-width: 760px) {
  :root[data-theme] .wc-ach__shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-theme] .wc-ach__marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-theme] .wc-ach__revisit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-theme] .wc-ach__cal-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  :root[data-theme] .wc-ach__parts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  :root[data-theme] .wc-ach__part, :root[data-theme] .wc-ach__part:nth-child(4), :root[data-theme] .wc-ach__part:nth-child(5) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-theme] .wc-ach__bar i { transition: none; }
}
/* ACH-001 end */
/* NEWS-002 start */
/* ===========================================================================
   BUILD-NEWS-002 — the News & Research page (PF-DESIGN-NEWS-001 §8; NEWS-R4,
   R6, R11, R14, R19, R23). Phone first; tokens only (THM-001: --wc-* on
   :root[data-theme]); every rule keyed on the appearance stamp and scoped under
   .wc-news, so nothing here can reach an unstamped page, a module frame, Home's
   own card (portal.html keeps its rules) or another chrome page. The page reuses
   the LAYOUT-001 column, headings, chips, pills, buttons, cards and list; this
   block carries the card's row language for the list, the two-column body with
   the rail, the story view, its tinted note and the report dialog.
   ======================================================================== */
:root[data-theme] .wc-news [hidden] { display: none; }
:root[data-theme] .wc-news__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 6px; }
:root[data-theme] .wc-news__main { min-width: 0; }
:root[data-theme] .wc-news__rail { min-width: 0; display: grid; gap: 14px; align-content: start; }
:root[data-theme] .wc-news__filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 14px; }
:root[data-theme] .wc-news__filters .wc-ly-chips { margin: 18px 0 10px; }
:root[data-theme] .wc-news__count { font-size: 12.5px; font-weight: 500; opacity: 0.85; }
:root[data-theme] .wc-news__more { margin-top: 14px; text-align: center; }
:root[data-theme] .wc-news__topics { margin: 10px 0 12px; }
:root[data-theme] .wc-news__topics .wc-ly-chip { min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
:root[data-theme] .wc-news__rail .wc-ly-card h3 { font-size: 18px; }

/* the card's row language, on the list (Home's rules stay in portal.html) */
:root[data-theme] .wc-news .news-item { position: relative; min-width: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); padding: 16px 18px; box-shadow: var(--wc-shadow-soft); }
:root[data-theme] .wc-news .news-item--pinned { border-left: 4px solid var(--wc-primary); }
:root[data-theme] .wc-news .news-category { display: inline-block; padding: 4px 10px; background: var(--wc-chip); border-radius: var(--wc-radius-pill); font-size: 0.75rem; color: var(--wc-text-primary); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 6px 10px 0; }
:root[data-theme] .wc-news .news-pin { background: var(--wc-gradient); color: var(--wc-on-fill); }
:root[data-theme] .wc-news .news-review { background: var(--wc-glass-bg); border: 1px solid var(--wc-amber); color: var(--wc-amber-text); }
:root[data-theme] .wc-news .news-title { font-family: var(--wc-font-display); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--wc-text-primary); margin: 0 0 8px; overflow-wrap: anywhere; }
:root[data-theme] .wc-news .news-title a { color: inherit; text-decoration: none; }
:root[data-theme] .wc-news .news-title a:hover, :root[data-theme] .wc-news .news-title a:focus-visible { text-decoration: underline; }
:root[data-theme] .wc-news .news-meta { font-size: 0.85rem; color: var(--wc-text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
:root[data-theme] .wc-news .news-grade { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
:root[data-theme] .wc-news .news-grade i { display: block; width: 4px; background: var(--wc-line-strong); border-radius: 1px; }
:root[data-theme] .wc-news .news-grade i:nth-child(1) { height: 4px; }
:root[data-theme] .wc-news .news-grade i:nth-child(2) { height: 6px; }
:root[data-theme] .wc-news .news-grade i:nth-child(3) { height: 9px; }
:root[data-theme] .wc-news .news-grade i:nth-child(4) { height: 12px; }
:root[data-theme] .wc-news .news-grade--green i, :root[data-theme] .wc-news .news-grade--amber_green i:nth-child(-n+3), :root[data-theme] .wc-news .news-grade--amber i:nth-child(-n+2), :root[data-theme] .wc-news .news-grade--red i:nth-child(1) { background: var(--wc-primary); }
:root[data-theme] .wc-news .news-grade--amber i:nth-child(-n+2), :root[data-theme] .wc-news .news-grade--red i:nth-child(1) { background: var(--wc-amber); }
:root[data-theme] .wc-news .news-threads { color: var(--wc-text-muted); }
:root[data-theme] .wc-news .news-note { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--wc-primary); background: var(--wc-card-tint); border-radius: 0 var(--wc-radius-btn) var(--wc-radius-btn) 0; color: var(--wc-text-body); font-size: 14.5px; line-height: 1.5; }
:root[data-theme] .wc-news .news-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
:root[data-theme] .wc-news .news-mods .wc-ly-pill { background: var(--wc-card-tint); color: var(--wc-accent-text); }
:root[data-theme] .wc-news .news-mods .wc-ly-pill:hover { text-decoration: underline; }
:root[data-theme] .wc-news .news-ack { margin-top: 12px; min-height: 38px; padding: 8px 14px; font-size: 14px; background: var(--wc-gradient); color: var(--wc-on-fill); }
:root[data-theme] .wc-news .news-ack[disabled] { opacity: 0.8; cursor: default; }

/* the story view */
:root[data-theme] .wc-news__story { max-width: 76ch; }
:root[data-theme] .wc-news__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 10px; }
:root[data-theme] .wc-news__badges .news-category { margin: 0; }
:root[data-theme] .wc-news__evidence { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--wc-text-secondary); }
:root[data-theme] .wc-news__meta { margin: 12px 0 0; font-size: 14.5px; color: var(--wc-text-muted); }
:root[data-theme] .wc-news__summary { margin-top: 18px; }
:root[data-theme] .wc-news__summary p { font-size: 17px; line-height: 1.65; color: var(--wc-text-body); margin: 0 0 14px; }
:root[data-theme] .wc-news__note { margin: 20px 0 0; padding: 16px 20px; background: var(--wc-card-tint); border: 1px solid var(--wc-glass-border); border-left: 4px solid var(--wc-primary); border-radius: var(--wc-radius-card); }
:root[data-theme] .wc-news__note h3 { font-family: var(--wc-font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; color: var(--wc-accent-text); margin: 0 0 6px; }
:root[data-theme] .wc-news__note p { color: var(--wc-text-body); font-size: 15.5px; line-height: 1.55; margin: 0; }
:root[data-theme] .wc-news__sec { margin-top: 24px; }
:root[data-theme] .wc-news__sec h3 { font-family: var(--wc-font-body); font-weight: 600; font-size: 16px; color: var(--wc-text-primary); margin: 0 0 10px; }
:root[data-theme] .wc-news__sec .wc-ly-pills { margin-top: 0; }
:root[data-theme] .wc-news__sec .wc-ly-pill { background: var(--wc-card-tint); color: var(--wc-accent-text); }
:root[data-theme] .wc-news__also { list-style: none; margin: 0; padding: 0; }
:root[data-theme] .wc-news__also li { padding: 8px 0; border-top: 1px solid var(--wc-glass-border); font-size: 15px; color: var(--wc-text-secondary); }
:root[data-theme] .wc-news__also li:first-child { border-top: 0; padding-top: 0; }
:root[data-theme] .wc-news__topics-quiet { margin-top: 18px; }
:root[data-theme] .wc-news__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
:root[data-theme] .wc-news__notice { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--wc-radius-btn); border: 1px solid var(--wc-line-strong); background: var(--wc-card-tint); color: var(--wc-text-primary); font-size: 14.5px; }
:root[data-theme] .wc-news__threads { list-style: none; margin: 0; padding: 0; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); overflow: hidden; }
:root[data-theme] .wc-news__threads li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; padding: 12px 16px; border-top: 1px solid var(--wc-glass-border); align-items: center; min-width: 0; }
:root[data-theme] .wc-news__threads li:first-child { border-top: 0; }
:root[data-theme] .wc-news__thread-title { font-weight: 600; color: var(--wc-text-primary); overflow-wrap: anywhere; }
:root[data-theme] .wc-news__provenance { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--wc-glass-border); }
:root[data-theme] .wc-news__back { margin-top: 18px; }

/* the report dialog: one field (NEWS-R23) */
:root[data-theme] .wc-news__dialog { width: min(92vw, 520px); border: 1px solid var(--wc-glass-border); border-radius: var(--wc-radius-card); background: var(--wc-glass-bg); color: var(--wc-text-body); padding: 22px 24px; box-shadow: var(--wc-shadow-float); }
:root[data-theme] .wc-news__dialog h3 { font-family: var(--wc-font-display); font-weight: 500; font-size: 21px; color: var(--wc-text-primary); margin: 0 0 6px; }
:root[data-theme] .wc-news__dialog .wc-ly-key { margin: 0 0 14px; }
:root[data-theme] .wc-news__label { display: block; font-size: 13px; font-weight: 600; color: var(--wc-text-secondary); margin-bottom: 6px; }
:root[data-theme] .wc-news__field { width: 100%; font: inherit; font-size: 15.5px; line-height: 1.5; padding: 10px 12px; border-radius: var(--wc-radius-btn); border: 1.5px solid var(--wc-line-strong); background: var(--wc-glass-bg); color: var(--wc-text-primary); resize: vertical; }
:root[data-theme] .wc-news__field:focus { outline: 2px solid var(--wc-primary); outline-offset: 1px; border-color: var(--wc-primary); }
:root[data-theme] .wc-news__error { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--wc-ink-bad); }
:root[data-theme] .wc-news__dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }

@media (min-width: 701px) {
    :root[data-theme] .wc-news__threads li { grid-template-columns: minmax(0, 1fr) auto auto; }
}
@media (min-width: 901px) {
    :root[data-theme] .wc-news__body { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    :root[data-theme] .wc-news .news-item, :root[data-theme] .wc-news .news-ack { transition: none; }
}
/* NEWS-002 end */
/* TEMPLATE LANE COMPONENTS (VOICE-RPW-HANDOVER-011): the dark values of the four marks. The components themselves sit with the unstamped look, above the appearance layer. */
:root[data-theme="dark"] .wc-v2, :root[data-theme="dark"].wc-v2 {
    --tl-safe: #c94848;  --tl-safe-ink: #f59a9a;  --tl-safe-wash: rgba(201, 72, 72, 0.16);
    --tl-care: #338364;  --tl-care-ink: #9fd3b5;  --tl-care-wash: rgba(51, 131, 100, 0.22);
    --tl-und: #69b445;   --tl-und-ink: #8cc96a;   --tl-und-wash: rgba(105, 180, 69, 0.13);
    --tl-grow: #d9982b;  --tl-grow-ink: #f2b84b;  --tl-grow-wash: rgba(217, 152, 43, 0.14);
    --tl-band-red: rgba(201, 72, 72, 0.24);  --tl-band-amber: rgba(217, 152, 43, 0.22);  --tl-band-green: rgba(105, 180, 69, 0.16);
}
/* TEMPLATE LANE end */
/* ===========================================================================
   COMFORT (SETTINGS-1, SET-R19) - text size and reduce motion, keyed on the
   stamps js/theme.js writes before first paint (data-wc-text, data-wc-motion).
   Unstamped, nothing here matches; no sealed page carries either attribute.
   The reduce-motion rule repeats :root to out-rank every transition declared
   on the chrome (0,5,0) without the important flag, which the THM-001 pin counts.
   =========================================================================== */
:root[data-wc-text="larger"] body { zoom: 1.12; }
:root[data-wc-motion="reduce"]:root:root:root *, :root[data-wc-motion="reduce"]:root:root:root *::before, :root[data-wc-motion="reduce"]:root:root:root *::after { animation-duration: 0.001ms; animation-iteration-count: 1; transition-duration: 0.001ms; scroll-behavior: auto; }

/* FACES-4 (FACE-R19): the View-as banner — on every signed-in page while a superadmin views as
   someone; the two greens, both themes; the page's chrome sits below it. Inside the appearance
   layer (every rule keyed on the theme stamp); NAV-001 stays the last block of the file. */
:root[data-theme] .wc-view-as { position: sticky; top: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: var(--wc-primary); color: var(--wc-on-fill); font-family: var(--wc-font-body); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; box-shadow: var(--wc-shadow-soft); }
:root[data-theme] .wc-view-as__exit { font: inherit; font-weight: 700; min-height: 36px; padding: 6px 16px; border-radius: var(--wc-radius-pill, 999px); border: 2px solid var(--wc-on-fill); background: transparent; color: var(--wc-on-fill); cursor: pointer; }
:root[data-theme] .wc-view-as__exit:hover { background: var(--wc-on-fill); color: var(--wc-primary-dark); }
:root[data-theme] .wc-view-as__exit:focus-visible { outline: 3px solid var(--wc-secondary); outline-offset: 2px; }
:root[data-theme="dark"] .wc-view-as { background: var(--wc-primary-dark); }
/* NAV-001 start */
/* ===========================================================================
   ONE SIDEBAR ON EVERY SIGNED-IN PAGE (NAV-R1 to NAV-R13, BUILD-NAV-001 issue 2)
   ---------------------------------------------------------------------------
   HOW IT REACHES A PAGE. js/wc-nav.js, directly after js/theme.js in <head>,
   stamps data-wc-nav on <html> before the first paint: "open" or "tucked" on the
   chrome pages (the person's remembered choice, per person per device, never
   touched means open), "docked" in the module wrapper, where the strip is
   always docked beside the module. data-wc-nav-overlay says whether the full
   sidebar is lying over the page (the wrapper's overlay, the narrow slide-over).
   The component root (.wc-nav-root) carries the variant (portal / page / module)
   and the look it shows right now (full / strip).

   LAYERS. The column, its edge button, the scrim and the hover label sit at z-index 11 to 15:
   above a page's content, below a page's own modals (the chrome pages' .modal is 20, the
   portal's chat widget 1000), so a page's dialogs keep covering the sidebar as they
   covered the top bar.

   SCOPE. Every rule here is keyed :root[data-wc-nav]:not([data-wc-surface]) and
   sits under the component root, except the four that reserve the sidebar's
   width on <body>. No module frame ever carries the stamp, nothing is injected
   into a frame, so none of this can reach a pinned page; the render proof shows
   the whole estate's computed styles unchanged.

   THE OPEN FORM IS THE PORTAL'S SIDEBAR AS IT WAS: its measures are copied from
   portal.html's own style block (the 280px column, 30px 20px padding, the 15px
   card, the 10px links, the sign-out button), so the portal looks exactly as it
   did with the sidebar open. Tokens only: no colour literal here.

   NAV-002 (NAV-R14 to NAV-R19, BUILD-NAV-002, 20 September 2026). The icon strip's
   logo is a pair of marks: the green mark (mark-dark-green.svg) in light and the
   white mark (mark-mono-white.svg, the mark lifted from the designer's white
   wordmark) in dark, the theme deciding which shows, both files as they are and
   the same box in both themes. While an overlay is open (data-wc-nav-overlay="open":
   the wrapper's full sidebar, the narrow slide-over) Bud's launcher and panel wait
   behind the backdrop: hidden by visibility (not shown, not clickable, not
   focusable), never re-layered, and exactly as they were when the overlay closes.
   That rule is the one outside the component root besides the <body> reservations;
   it is keyed on the stamp, so it can never reach a module frame.
   =========================================================================== */
:root[data-wc-nav]:not([data-wc-surface]) { --wc-nav-open: 280px; --wc-nav-strip: 72px; --wc-nav-w: var(--wc-nav-open); --wc-nav-bar: 56px; --wc-nav-edge-top: 73px; --wc-nav-ease: cubic-bezier(0.4, 0, 0.2, 1); --wc-nav-t: 0.28s; }
:root[data-wc-nav="tucked"]:not([data-wc-surface]), :root[data-wc-nav="docked"]:not([data-wc-surface]) { --wc-nav-w: var(--wc-nav-strip); }
/* the room beside the page is reserved by the stamp, so nothing jumps sideways as a page loads (NAV-R5) */
:root[data-wc-nav]:not([data-wc-surface]) body { padding-left: var(--wc-nav-w); transition: padding-left var(--wc-nav-t) var(--wc-nav-ease); }

/* ---- the column ------------------------------------------------------------ */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root * { box-sizing: border-box; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 12; width: var(--wc-nav-w); display: flex; flex-direction: column; background: var(--wc-dark-bg-mid); border-right: 1px solid var(--wc-glass-border); font-family: var(--font-body); line-height: 1.6; color: var(--wc-text-body); transition: width var(--wc-nav-t) var(--wc-nav-ease), transform var(--wc-nav-t) var(--wc-nav-ease), box-shadow var(--wc-nav-t) var(--wc-nav-ease); }
:root[data-wc-nav="docked"][data-wc-nav-overlay="open"]:not([data-wc-surface]) .wc-nav { width: var(--wc-nav-open); box-shadow: var(--wc-shadow-float); z-index: 14; }

/* the logo row is pinned: home is always one click away, however far the list is scrolled (NAV-R13) */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px; padding: 30px 0 20px; border-bottom: 1px solid var(--wc-glass-border); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 6px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__home:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: 3px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__mark { display: none; height: 40px; width: auto; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__close { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wc-text-secondary); cursor: pointer; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__close:hover { background: var(--wc-well); color: var(--wc-text); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__close svg { width: 18px; height: 18px; }

/* everything beneath the logo scrolls, with a slide bar you can see whenever it does not all fit (NAV-R13) */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll { flex: 1 1 auto; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 40px 20px 30px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: -2px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll::-webkit-scrollbar { width: 10px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll::-webkit-scrollbar-track { background: var(--wc-scroll-track); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll::-webkit-scrollbar-thumb { background: var(--wc-scroll-thumb); border-radius: 6px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll::-webkit-scrollbar-thumb:hover { background: var(--wc-primary); }
@supports not selector(::-webkit-scrollbar) {
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll { scrollbar-width: thin; scrollbar-color: var(--wc-scroll-thumb) var(--wc-scroll-track); }
}
/* a soft fade and a small arrow at the edge where entries are hidden; gone at the ends */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__fade { position: absolute; left: 0; right: 10px; height: 40px; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__fade--top { top: 0; background: linear-gradient(var(--wc-dark-bg-mid), transparent); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__fade--bottom { bottom: 0; background: linear-gradient(transparent, var(--wc-dark-bg-mid) 78%); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__fade::after { content: ""; position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -5px; border-right: 2px solid var(--wc-text-muted); border-bottom: 2px solid var(--wc-text-muted); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__fade--top::after { top: 9px; transform: rotate(-135deg); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__fade--bottom::after { bottom: 9px; transform: rotate(45deg); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav[data-more~="up"] .wc-nav__fade--top, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav[data-more~="down"] .wc-nav__fade--bottom { opacity: 1; }

/* ---- the user card: the portal's card on the portal, one line everywhere else (NAV-R8) ---- */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__user { background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); border-radius: 15px; padding: 20px; margin-bottom: 30px; text-align: center; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--wc-primary), var(--wc-secondary)); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 15px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__name { font-size: 1.1rem; font-weight: 600; color: var(--wc-text); margin-bottom: 5px; }
/* SETTINGS-1 (SET-R1): the user card's name and role are one link to the Settings page */
:root[data-wc-nav]:not([data-wc-surface]) a.wc-nav__who { display: block; color: inherit; text-decoration: none; border-radius: 10px; }
:root[data-wc-nav]:not([data-wc-surface]) a.wc-nav__who:hover .wc-nav__name { text-decoration: underline; }
:root[data-wc-nav]:not([data-wc-surface]) a.wc-nav__who:focus-visible { outline: 3px solid var(--wc-focus, var(--wc-secondary)); outline-offset: 3px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__role { font-size: 0.85rem; color: var(--wc-text-muted); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root:not([data-wc-nav-variant="portal"]) .wc-nav__user { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; margin-bottom: 20px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root:not([data-wc-nav-variant="portal"]) .wc-nav__avatar { flex: 0 0 auto; width: 44px; height: 44px; font-size: 1.2rem; margin: 0; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root:not([data-wc-nav-variant="portal"]) .wc-nav__who { min-width: 0; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root:not([data-wc-nav-variant="portal"]) .wc-nav__name { font-size: 1rem; margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root:not([data-wc-nav-variant="portal"]) .wc-nav__role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the entries: the portal's links as they were ------------------------------ */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__list { list-style: none; margin: 0; padding: 0; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__item { margin-bottom: 5px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__link { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 10px; color: var(--wc-text-secondary); text-decoration: none; transition: all 0.2s; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__link:hover { background: var(--wc-well); color: var(--wc-text); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__link[aria-current="page"] { background: var(--wc-card-tint); color: var(--wc-accent-text); font-weight: 600; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__link:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: 2px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__icon { font-size: 1.2rem; width: 24px; text-align: center; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__logout { width: 100%; padding: 14px 18px; margin-top: 30px; background: var(--wc-nav-logout-bg); border: 1px solid var(--wc-nav-logout-line); border-radius: 12px; color: var(--wc-ink-bad); font-family: inherit; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__logout:hover { background: var(--wc-nav-logout-bg-hover); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__logout:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: 2px; }

/* ---- the icon strip (NAV-R3): the mark, the avatar, one icon per entry, labels on hover and focus ---- */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__head { margin: 0 8px; justify-content: center; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__wordmark { display: none; }
/* the strip's mark is a pair (NAV-R17): the green mark in light, the white mark in dark, the same box in both */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__mark--light { display: block; }
:root[data-wc-nav][data-theme="dark"]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__mark--light { display: none; }
:root[data-wc-nav][data-theme="dark"]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__mark--dark { display: block; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__scroll { padding: 24px 0 20px; scrollbar-gutter: stable; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__fade { right: 10px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__user { display: block; background: none; border-color: transparent; padding: 0; margin: 0 0 16px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__avatar { width: 40px; height: 40px; font-size: 1.1rem; margin: 0 auto; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__who, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__extra { display: none; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__item { margin-bottom: 4px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__link { width: 44px; height: 44px; margin: 0 auto; padding: 0; justify-content: center; gap: 0; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__logout { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 16px auto 0; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__logout-icon { font-size: 1.2rem; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__tip { position: fixed; z-index: 15; transform: translateY(-50%); padding: 7px 12px; border-radius: 10px; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); color: var(--wc-text); font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; box-shadow: var(--wc-shadow-soft); pointer-events: none; }

/* ---- the button on the sidebar's edge (NAV-R3, NAV-R6): a 34px circle with a 44px touch target ---- */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge { position: fixed; z-index: 14; top: var(--wc-nav-edge-top); left: calc(var(--wc-nav-w) - 17px); width: 34px; height: 34px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--wc-glass-bg); border: 1px solid var(--wc-glass-border); color: var(--wc-text-secondary); box-shadow: var(--wc-shadow-soft); cursor: pointer; transition: left var(--wc-nav-t) var(--wc-nav-ease), background 0.15s ease, color 0.15s ease; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge:hover { background: var(--wc-well); color: var(--wc-accent-text); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: 2px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge svg { width: 16px; height: 16px; transition: transform var(--wc-nav-t) var(--wc-nav-ease); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge[aria-expanded="false"] svg { transform: rotate(180deg); }
:root[data-wc-nav="docked"][data-wc-nav-overlay="open"]:not([data-wc-surface]) .wc-nav__edge { left: calc(var(--wc-nav-open) - 17px); }

/* ---- the scrim under an overlay (the wrapper's full sidebar, the narrow slide-over) ---- */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scrim { position: fixed; inset: 0; z-index: 13; background: var(--wc-nav-scrim); opacity: 0; pointer-events: none; transition: opacity var(--wc-nav-t) var(--wc-nav-ease); }
:root[data-wc-nav-overlay="open"]:not([data-wc-surface]) .wc-nav__scrim { opacity: 1; pointer-events: auto; }

/* ---- Bud waits behind the backdrop (NAV-R16): hidden while an overlay is open, never re-layered, back as it was when it closes ---- */
:root[data-wc-nav-overlay="open"]:not([data-wc-surface]) .chat-widget { visibility: hidden; }

/* ---- leaving a part-finished assessment (NAV-R10): Stay is the default ------------ */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask { border: 1px solid var(--wc-glass-border); border-radius: 15px; padding: 24px 28px; max-width: 420px; background: var(--wc-glass-bg); color: var(--wc-text-body); font-family: var(--font-body); box-shadow: var(--wc-shadow-float); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask::backdrop { background: var(--wc-nav-scrim); }
/* centred in the window (NAV-R21): the wrapper's own margin reset removes the auto margins the browser centres a modal dialog with; this restores them, both axes, every width */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask { margin: auto; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask p { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: var(--wc-text-body); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask button { font: inherit; font-weight: 600; min-height: 44px; padding: 10px 18px; border-radius: 10px; cursor: pointer; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask-stay { background: var(--wc-gradient); color: var(--wc-on-fill); border: 0; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask-leave { background: transparent; color: var(--wc-accent-text); border: 1px solid var(--wc-glass-border); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__ask button:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: 2px; }

/* ---- the slim top strip and the Menu button, narrow screens only (NAV-R9) ---------- */
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__bar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 11; height: var(--wc-nav-bar); align-items: center; gap: 10px; padding: 0 12px; background: var(--wc-dark-bg-mid); border-bottom: 1px solid var(--wc-glass-border); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__menu { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--wc-glass-border); border-radius: 10px; background: var(--wc-glass-bg); color: var(--wc-text-secondary); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__menu:hover { color: var(--wc-text); }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__menu:focus-visible { outline: 2px solid var(--wc-focus); outline-offset: 2px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__menu svg { width: 20px; height: 20px; }
:root[data-wc-nav]:not([data-wc-surface]) .wc-nav__home--bar .wc-header-logo { height: 32px; }

/* ---- short screens (NAV-R13): tighter rows and gaps so the slide bar is rarely needed ---- */
@media (max-height: 720px) {
    :root[data-wc-nav]:not([data-wc-surface]) { --wc-nav-edge-top: 51px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__head { padding: 16px 0 12px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scroll { padding-top: 22px; padding-bottom: 20px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__user { padding: 14px; margin-bottom: 18px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-variant="portal"] .wc-nav__avatar { width: 56px; height: 56px; font-size: 1.5rem; margin-bottom: 10px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__item { margin-bottom: 3px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__link { padding: 11px 18px; min-height: 44px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__logout { margin-top: 18px; padding: 11px 18px; min-height: 44px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__scroll { padding-top: 14px; padding-bottom: 14px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__user { margin-bottom: 10px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__item { margin-bottom: 2px; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav-root[data-wc-nav-look="strip"] .wc-nav__logout { margin-top: 10px; }
}

/* ---- narrow screens (NAV-R9): the sidebar slides over the page, full form, the page takes the whole width ---- */
@media (max-width: 900px) {
    :root[data-wc-nav]:not([data-wc-surface]) { --wc-nav-w: 0px; }
    :root[data-wc-nav]:not([data-wc-surface]) body { padding-left: 0; padding-top: var(--wc-nav-bar); }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav { width: min(var(--wc-nav-open), 88vw); transform: translateX(-104%); box-shadow: none; }
    :root[data-wc-nav-overlay="open"]:not([data-wc-surface]) .wc-nav { transform: none; box-shadow: var(--wc-shadow-float); z-index: 14; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge { display: none; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__bar { display: flex; }
    :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__close { display: inline-flex; }
}

/* the existing reduced-motion promise covers the new transitions: no slide, no fade */
@media (prefers-reduced-motion: reduce) {
    :root[data-wc-nav]:not([data-wc-surface]) body, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__edge svg, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__scrim, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__fade, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__link, :root[data-wc-nav]:not([data-wc-surface]) .wc-nav__logout { transition: none; }
}
/* BUILD-GUIDE-REAL (REAL-1): inside the guide films' look-only frame (js/wc-nav.js stamps
   data-wc-guide-mode from ?guide=1 before first paint) the page shows itself alone: no
   sidebar, no bar, no edge button, no padding for them. Nothing else about the page changes. */
:root[data-wc-nav][data-wc-guide-mode]:not([data-wc-surface]) body { padding: 0; }
:root[data-wc-nav][data-wc-guide-mode]:not([data-wc-surface]) .wc-nav-root { display: none; }
/* BUILD-GUIDE-WELCOME: with ?guide=1&chrome=1 (js/wc-nav.js stamps data-wc-guide-chrome) the sidebar stays on show
   inside the look-only frame, so the welcome film can light the menu, the logo, the tuck-away control and Settings;
   everything else about guide mode holds (no write, no Bud window, no pointer). The body's room for it is the guide
   sheet's rule (js/wc-guide.css), this block keeping to its four body rules. */
:root[data-wc-nav][data-wc-guide-mode][data-wc-guide-chrome]:not([data-wc-surface]) .wc-nav-root { display: block; }
/* NAV-001 end */
