/* ─── AUTH SCREEN ──────────────────────────────────────────── */
.auth-screen {
    display: none;
    position: fixed; inset: 0;
    background: var(--warm-white);
    z-index: var(--z-modal, 9999);
    justify-content: center; align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    box-sizing: border-box;
}
.auth-screen.active { display: flex; }
.auth-container {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px var(--shadow-lg);
    max-width: 380px; width: 90%;
    text-align: center;
}
.auth-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    color: var(--charcoal);
    margin: 0 0 0.25rem;
}
.auth-subtitle { color: var(--slate); font-size: 0.9rem; margin: 0 0 1.5rem; }
.auth-input {
    display: block; width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    background: var(--bg-surface);
    color: var(--charcoal);
}
.auth-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--shadow-primary); }
.auth-error { color: var(--color-danger, #dc2626); font-size: 0.85rem; margin-top: 0.5rem; min-height: 1.2em; }
.auth-password-hint { color: var(--slate); font-size: 0.78rem; margin: -0.4rem 0 0.6rem; text-align: left; }
.auth-footer-note { font-size: 0.75rem; color: var(--slate); line-height: 1.5; margin-top: 1.25rem; margin-bottom: 0; }
.auth-links { display: flex; justify-content: space-between; margin-top: 0.5rem; }
.auth-links a { font-size: 0.8rem; color: var(--primary); cursor: pointer; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border-light); }
.auth-divider span { font-size: 0.78rem; color: var(--slate); text-transform: lowercase; }

/* OAuth providers (Google etc.). Uses app surface tokens so dark mode works. */
.auth-oauth-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.5rem;
    background: var(--bg-surface);
    color: var(--charcoal);
    border: 1px solid var(--border-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem; font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-oauth-btn:hover { border-color: var(--slate); box-shadow: 0 1px 4px var(--shadow-sm, rgba(0,0,0,0.05)); }
.auth-oauth-btn:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--shadow-primary); }
.auth-oauth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-oauth-icon { width: 18px; height: 18px; flex-shrink: 0; }
.auth-back-link { display: block; text-align: center; font-size: 0.82rem; color: var(--primary); cursor: pointer; text-decoration: none; margin-top: 1rem; }
.auth-back-link:hover { text-decoration: underline; }
.auth-invite-section { margin-top: 1rem; text-align: center; }
.auth-invite-toggle { font-size: 0.82rem; color: var(--slate); cursor: pointer; text-decoration: none; }
.auth-invite-toggle:hover { color: var(--primary); text-decoration: underline; }
.auth-invite-input-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.auth-note { font-size: 0.75rem; color: var(--slate); line-height: 1.5; margin: 0.5rem 0 0; }
.auth-site-link { display: block; text-align: center; font-size: 0.75rem; color: var(--slate); text-decoration: none; margin-top: 1rem; }
.auth-site-link:hover { color: var(--primary); text-decoration: underline; }
.auth-success-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.auth-success-text { color: var(--charcoal); font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.5rem; }

/* Screen-reader only utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── AUTH LANDING: split hero + card ──────────────────────── */
/* Wraps the auth card in a two-column landing layout on desktop (hero on the
   left, existing card on the right) and stacks them on narrow viewports. All
   colors reference theme variables so dark mode flips automatically. */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    width: 100%;
    max-width: 1080px;
    padding: 2rem;
    align-items: center;
    box-sizing: border-box;
}
.auth-hero {
    display: flex;
    flex-direction: column;
    padding: 2.75rem 2.25rem;
    background: linear-gradient(165deg, var(--primary-tint-bgest), var(--primary-tint-bg));
    border-radius: 1rem;
    color: var(--charcoal);
    text-align: left;
}
.auth-hero-wordmark {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.auth-hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin: 0 0 1rem;
}
.auth-hero-valueprop {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0 0 1.75rem;
}
.auth-hero-uses {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0 0 1rem;
}
.auth-hero-cta-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 1.25rem;
}
.auth-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.auth-hero-bullets li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--charcoal);
}
.auth-hero-bullet-num {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-brand);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1;
    margin-top: 0.05rem;
}
.auth-hero-bullets strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--charcoal);
}
.auth-hero-doors {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
}
.auth-hero-door {
    background: var(--primary-tint-xs);
    border: 1px solid var(--primary-tint-sm);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
}
.auth-hero-door-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.auth-hero-door-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--slate);
}
.auth-hero-demo-note {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--slate);
    margin: 0 0 1rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-panel);
    border-radius: 6px;
    border: 1px dashed var(--border-medium);
}
.auth-hero-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}
.auth-hero-link:hover { text-decoration: underline; }
.auth-split > .auth-container {
    justify-self: center;
    width: 100%;
    max-width: 380px;
    margin: 0;
}
@media (max-width: 900px) {
    /* On narrow viewports the hero + sign-in card stack vertically and
       nearly always exceed viewport height. A fixed-position flex container
       with align-items: center then pushes the top of the content above the
       scroll origin, stranding the user mid-page with no way to scroll up.
       Switch to top-aligned so the page scrolls naturally from the top. */
    .auth-screen.active {
        justify-content: flex-start;
        align-items: stretch;
    }
    .auth-split {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem;
        max-width: 480px;
        margin: 0 auto;
    }
    .auth-hero { padding: 1.75rem 1.5rem; }
    .auth-hero-tagline { font-size: 1.5rem; }
    .auth-hero-valueprop { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .auth-hero-bullets { margin-bottom: 1.25rem; gap: 0.7rem; }
    .auth-hero-bullets li { font-size: 0.88rem; }
}

/* ─── AUTH SCREEN: BRAND LOCK ─────────────────────────────────
   The auth screen ignores the app's saved appearance theme and
   presents a consistent brand surface. After authentication, the
   user's theme preference takes over. Dark brand mode: the NCS
   logo and copy sit on a near-black page with gamboge accents and
   a dark neutral sign-in card. */
.auth-screen {
    /* Re-declare theme tokens with brand-locked values. Because the
       existing .auth-* rules read these variables, the whole screen
       recolors from this one block. */
    --primary: #0D5C6B;           /* deep brand teal */
    --primary-mid: #0A4853;
    --primary-light: #1A6E80;
    --bg-surface: #1A1A1F;        /* dark form card */
    --warm-white: #0A0A0D;        /* page background */
    --charcoal: #FEFCF7;          /* primary text (on both teal and dark card) */
    --slate: #9A9589;             /* secondary text */
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --shadow-primary: rgba(232, 184, 96, 0.25);

    /* Brand accent: gamboge */
    --brand-accent: #E8B860;
    --brand-accent-hover: #F2C87A;
    --brand-accent-on: #0D2A32;   /* text on gamboge button */
}

/* Hero panel: no background, no rounded container. Content sits
   directly on the page. */
.auth-screen .auth-hero {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #FEFCF7;
}

/* Hero graphic: NCS logo/mark at the top of the hero column. */
.auth-screen .auth-hero-graphic {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 0 2rem;
}

/* Wordmark in gamboge for a warm brand accent at the top */
.auth-screen .auth-hero-wordmark {
    color: var(--brand-accent);
}

/* Tagline and bullets in clean warm-white for contrast on the page */
.auth-screen .auth-hero-tagline,
.auth-screen .auth-hero-bullets li,
.auth-screen .auth-hero-bullets strong {
    color: #FEFCF7;
}

/* Value prop: muted warm-white for hierarchy */
.auth-screen .auth-hero-valueprop {
    color: rgba(254, 252, 247, 0.82);
}

/* Bullet numbers: each circle uses one of the three non-gamboge
   brand colors from the NCS logo (teal, rose, violet) so the
   bullets visually echo the icon palette. Warm-white numerals
   for contrast inside the darker circles. */
.auth-screen .auth-hero-bullets li:nth-child(1) .auth-hero-bullet-num {
    background: #015f7b;
    color: #FEFCF7;
}
.auth-screen .auth-hero-bullets li:nth-child(2) .auth-hero-bullet-num {
    background: #b46277;
    color: #FEFCF7;
}
.auth-screen .auth-hero-bullets li:nth-child(3) .auth-hero-bullet-num {
    background: #643a5b;
    color: #FEFCF7;
}

/* Bottom hero link in gamboge */
.auth-screen .auth-hero-link {
    color: var(--brand-accent);
}
.auth-screen .auth-hero-link:hover {
    color: var(--brand-accent-hover);
}

/* Form card: dark neutral surface with subtle border */
.auth-screen .auth-container {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Form inputs: darker field for contrast against the card */
.auth-screen .auth-input {
    background: #121217;
    border-color: rgba(255, 255, 255, 0.1);
    color: #FEFCF7;
}
.auth-screen .auth-input::placeholder {
    color: #7A7468;
}
.auth-screen .auth-input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(232, 184, 96, 0.2);
}

/* Primary Sign In button: gamboge warm CTA */
.auth-screen #authSubmitBtn,
.auth-screen .modal-btn.primary {
    background: var(--brand-accent);
    color: var(--brand-accent-on);
    border: none;
}
.auth-screen #authSubmitBtn:hover,
.auth-screen .modal-btn.primary:hover {
    background: var(--brand-accent-hover);
    color: var(--brand-accent-on);
}

/* Google OAuth button: stays light/neutral per Google brand guidelines */
.auth-screen .auth-oauth-btn {
    background: #FEFCF7;
    color: #0D2A32;
    border-color: rgba(0, 0, 0, 0.12);
}
.auth-screen .auth-oauth-btn:hover {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.24);
    color: #0D2A32;
}

/* Secondary links in form use gamboge */
.auth-screen .auth-links a,
.auth-screen .auth-back-link,
.auth-screen .auth-invite-toggle:hover,
.auth-screen .auth-site-link:hover {
    color: var(--brand-accent);
}

/* Divider lines darken to suit the dark card */
.auth-screen .auth-divider::before,
.auth-screen .auth-divider::after {
    border-color: rgba(255, 255, 255, 0.1);
}
.auth-screen .auth-divider span {
    color: #7A7468;
}

/* Muted text tokens */
.auth-screen .auth-footer-note,
.auth-screen .auth-password-hint,
.auth-screen .auth-invite-toggle {
    color: #8A857A;
}

@media (max-width: 900px) {
    .auth-screen .auth-hero-graphic { max-width: 220px; margin-bottom: 1.5rem; }
}

/* ─── SESSION PICKER ──────────────────────────────────────── */
.session-item {
    display: flex; flex-wrap: wrap; align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}
.session-item:hover { background: var(--primary-tint-bgest); }
.session-item.active { border-color: var(--primary); background: var(--primary-tint-bg); }
.session-item-title { font-weight: 600; width: calc(100% - 2rem); font-size: 0.95rem; }
.session-item-meta { font-size: 0.8rem; color: var(--slate); width: 100%; margin-top: 0.15rem; }
.session-item-assigned-badge {
    display: inline-block; margin-top: 0.4rem; font-size: 0.72rem;
    padding: 2px 8px; border-radius: 999px;
    background: var(--primary-tint-xs); color: var(--primary);
    border: 1px solid var(--primary-tint-md);
    font-weight: 500;
}
.handoff-welcome-card {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.9rem 1rem; margin: 0.5rem 0.5rem 1rem;
    background: var(--primary-tint-xs); border: 1px solid var(--primary-tint-md);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}
.handoff-welcome-body { flex: 1; min-width: 0; }
.handoff-welcome-title {
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    color: var(--charcoal); font-size: 0.95rem; margin-bottom: 0.25rem;
}
.handoff-welcome-note {
    color: var(--charcoal); font-size: 0.85rem; line-height: 1.45;
    white-space: pre-wrap;
}
.handoff-welcome-dismiss {
    flex-shrink: 0; align-self: center;
    background: var(--primary); color: var(--on-brand);
    border: none; border-radius: 6px; padding: 0.4rem 0.9rem;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.handoff-welcome-dismiss:hover { filter: brightness(1.05); }
.session-delete-btn {
    position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    color: var(--slate); padding: 0.25rem 0.5rem; line-height: 1;
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}
.session-delete-btn:hover { color: var(--color-danger, #dc2626); }
.session-dup-btn {
    position: absolute; right: 2.5rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--slate); padding: 0.25rem 0.5rem; line-height: 1;
    min-width: 36px; min-height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.15s;
}
.session-item:hover .session-dup-btn { opacity: 0.5; }
.session-dup-btn:hover { opacity: 1 !important; color: var(--primary); }
.session-picker-demo-section {
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}
.session-picker-demo-label {
    font-size: 0.8rem;
    color: var(--slate);
    margin-bottom: 0.5rem;
}
.session-picker-demo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}
.session-picker-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--primary);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.session-picker-demo-btn svg { width: 12px; height: 12px; }
.session-picker-demo-btn:hover { border-color: var(--primary); background: var(--primary-tint-xs); }
.session-dup-btn .i { width: 14px; height: 14px; }
.session-item.local-session { border-style: dashed; }

/* Loading state for session switching */
.session-item.session-loading {
    position: relative;
    cursor: wait;
}
.session-item.session-loading .session-item-meta::after {
    content: 'Loading…';
    display: inline-block;
    margin-left: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    animation: session-loading-pulse 1s ease-in-out infinite;
}
@keyframes session-loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── DARK MODE OVERRIDES FOR AUTH / SESSIONS ─────────────── */
body.dark-mode .auth-screen { background: var(--warm-white); }
body.dark-mode .auth-container { background: var(--bg-surface); }
body.dark-mode .auth-input { background: var(--bg-surface); border-color: var(--border-light); color: var(--charcoal); }
body.dark-mode .session-item { border-color: var(--border-light); }
body.dark-mode .session-item:hover { background: var(--primary-tint-bgest); }

/* ─── TEMPLATE BROWSER ─────────────────────────────── */
.template-tabs {
    display: flex; gap: 0.25rem; margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-light); padding-bottom: 0;
}
.template-tab {
    padding: 0.5rem 1rem; border: none; background: none;
    font-family: 'Montserrat', sans-serif; font-size: 0.78rem; font-weight: 700;
    color: var(--slate); cursor: pointer;
    border-bottom: 2.5px solid transparent; margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.template-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.template-tab:hover:not(.active) { color: var(--charcoal); }

.template-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.5rem;
    max-height: 400px; overflow-y: auto; padding-right: 0.25rem;
}
.template-card {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 0.85rem 1rem; border: 1px solid var(--border-light);
    border-radius: 0.5rem; cursor: pointer; transition: all 0.15s;
}
.template-card:hover { border-color: var(--primary); background: var(--primary-tint-bgest); }
.template-card-title {
    font-weight: 600; font-size: 0.92rem; color: var(--charcoal);
}
.template-card-desc {
    font-size: 0.78rem; color: var(--slate); line-height: 1.4;
}
.template-card-badge {
    display: inline-block; font-size: 0.62rem; font-family: 'Montserrat', sans-serif;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem; border-radius: 10px; margin-top: 0.25rem;
    width: fit-content;
}
.template-badge-member { background: var(--badge-member-bg); color: var(--badge-member-text); }
.template-badge-pro { background: var(--badge-pro-bg); color: var(--badge-pro-text); }
.template-badge-free { background: var(--badge-free-bg); color: var(--badge-free-text); }
body.dark-mode .template-badge-member { background: var(--badge-member-bg); color: var(--badge-member-text); }
body.dark-mode .template-card { border-color: var(--border-light); }
body.dark-mode .template-card:hover { border-color: var(--primary); background: var(--primary-tint-bgest); }

.template-empty {
    text-align: center; padding: 2rem 1rem; color: var(--slate); font-size: 0.85rem;
}
.template-loading { text-align: center; padding: 2rem; color: var(--slate); }

/* Inline SVG icon base */
.i { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }
.i-lg { width: 1.25em; height: 1.25em; }
.i-xl { width: 2em; height: 2em; }

/* ─── INTAKE VIEW ───────────────────────────────── */
.intake-view {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.intake-view-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}
.intake-view-subtitle {
    font-size: 0.82rem;
    color: var(--slate);
    margin-bottom: 2rem;
    line-height: 1.5;
}
.intake-progress {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 2rem;
}
.intake-progress-dot {
    width: 12px; height: 12px;
    min-width: 44px; min-height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: default;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.intake-progress-dot::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: all 0.3s ease;
}
.intake-progress-dot.completed { cursor: pointer; }
.intake-progress-dot.completed::after { background: var(--primary); }
.intake-progress-dot.completed:hover::after { transform: scale(1.4); }
.intake-progress-dot.current { cursor: pointer; }
.intake-progress-dot.current::after { background: var(--primary); transform: scale(1.3); box-shadow: 0 0 0 3px var(--shadow-primary); }
.intake-progress-dot.current:hover::after { transform: scale(1.5); }
.intake-progress-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 50%; }
.intake-progress-dot:disabled { cursor: default; opacity: 0.5; }
.intake-field {
    margin-bottom: 1.25rem;
    animation: intakeSlideUp 0.35s ease-out;
}
@keyframes intakeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.intake-field-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}
.intake-field-note {
    font-size: 0.7rem;
    color: var(--slate);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}
.intake-field select,
.intake-field textarea {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--charcoal);
    background: var(--bg-surface);
    transition: border-color 0.15s;
}
.intake-field select:focus,
.intake-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow-primary);
}
.intake-field textarea {
    resize: vertical;
    min-height: 2.5rem;
    line-height: 1.5;
}
.intake-back-btn {
    margin-top: 0.75rem;
    margin-right: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--slate);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.intake-back-btn:hover { background: var(--bg-surface); color: var(--charcoal); }
.intake-back-btn:active { transform: scale(0.97); }
.intake-submit-btn {
    margin-top: 0.75rem;
    padding: 0.6rem 1.75rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.intake-submit-btn:hover { background: var(--primary-mid); }
.intake-submit-btn:active { transform: scale(0.97); }
.intake-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.intake-continue-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 2rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.intake-continue-btn:hover { background: var(--primary-mid); }
.intake-continue-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.intake-skip-link {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.75rem;
    color: var(--slate);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
.intake-skip-link:hover { color: var(--primary); text-decoration: underline; }
.intake-exit-link {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 0.85rem;
    color: var(--slate);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-surface);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.intake-exit-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-tint-xs); }
.intake-done-message {
    text-align: center;
    animation: intakeSlideUp 0.35s ease-out;
}
.intake-done-message h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}
.intake-done-message p {
    font-size: 0.82rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
/* Intake chip-select (for diagnostic questions) */
.intake-chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.intake-chip {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--charcoal);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    line-height: 1.4;
}
.intake-chip:hover { border-color: var(--primary); background: var(--bg-surface); }
.intake-chip.selected {
    border-color: var(--primary);
    background: var(--shadow-primary);
    box-shadow: 0 0 0 2px var(--shadow-primary);
}

/* Recommendation panel (left rail, below sidebar info) */
.rec-panel {
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 0 0.5rem;
    margin-top: 0.25rem;
}
.rec-panel-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.35rem;
}
.rec-panel-diagnosis {
    font-size: 0.75rem;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: var(--shadow-primary);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}
.rec-panel-diagnosis strong { font-weight: 700; }
.rec-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.35rem 0.15rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s;
    position: relative;
}
.rec-panel-item:hover { background: var(--bg-surface); }
.rec-panel-item.rec-completed { opacity: 0.55; }
.rec-panel-item.rec-current { background: var(--shadow-primary); }
.rec-panel-check {
    width: 14px; height: 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.rec-panel-item.rec-completed .rec-panel-check {
    background: var(--primary);
    border-color: var(--primary);
}
.rec-panel-item.rec-completed .rec-panel-check::after {
    content: '\2713';
    color: var(--on-brand);
    font-size: 0.55rem;
    font-weight: 700;
}
.rec-panel-info {
    flex: 1;
    min-width: 0;
}
.rec-panel-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
}
.rec-panel-why {
    font-size: 0.62rem;
    color: var(--slate);
    line-height: 1.4;
    margin-top: 1px;
}
.rec-walkthrough-btn {
    margin-top: 0.3rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.rec-walkthrough-btn:hover {
    background: var(--primary);
    color: var(--on-brand);
}
.rec-panel-dismiss {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 44px; min-height: 44px;
    border: none;
    background: transparent;
    color: var(--slate);
    font-size: 0.65rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.rec-panel-item:hover .rec-panel-dismiss { opacity: 0.6; }
.rec-panel-dismiss:hover { opacity: 1 !important; background: var(--border-light); }

/* ─── Journey Progress Bar ─── */
.journey-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--slate);
    margin-bottom: 0.35rem;
    font-family: 'Montserrat', sans-serif;
}
.journey-progress-bar {
    display: flex;
    gap: 2px;
    margin-bottom: 1.25rem;
    align-items: center;
}
.journey-progress-segment {
    flex: 1;
    height: 5px;
    border-radius: 100px;
    background: var(--border-light);
    transition: background 0.3s, box-shadow 0.3s;
}
.journey-progress-segment--done { background: var(--primary); box-shadow: 0 0 6px color-mix(in srgb, var(--primary) 30%, transparent); }
.journey-progress-segment--active { background: linear-gradient(90deg, var(--ultraviolet), color-mix(in srgb, var(--ultraviolet) 40%, transparent)); }
.journey-progress-segment--upcoming { background: var(--border-light); }

/* ── Compact walkthrough button ── */
.journey-walkthrough-compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ultraviolet);
    background: none;
    border: 1px solid var(--ultraviolet);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.journey-walkthrough-compact-btn .i {
    width: 14px;
    height: 14px;
}
.journey-walkthrough-compact-btn:hover {
    background: color-mix(in srgb, var(--ultraviolet) 8%, transparent);
}

/* ─── Journey Card Container ─── */
/* ── Progression Prompt ── */
.progression-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: var(--primary-tint-sm);
    border: 1px solid var(--primary-tint-md);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--charcoal);
}
.progression-prompt-icon {
    flex-shrink: 0;
    color: var(--primary);
}
.progression-prompt-icon svg {
    width: 18px;
    height: 18px;
}
.progression-prompt-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.progression-prompt-message {
    flex: 1;
    min-width: 180px;
    line-height: 1.4;
}
.progression-prompt-action {
    padding: 4px 12px;
    font-size: 0.72rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--on-brand);
    background: var(--primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.progression-prompt-action:hover {
    opacity: 0.85;
}

/* ── Bridge Message ── */
.journey-bridge-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: color-mix(in srgb, var(--gamboge) 6%, var(--bg-surface));
    border: 1px solid color-mix(in srgb, var(--gamboge) 18%, transparent);
    border-left: 3px solid var(--gamboge);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--charcoal);
    line-height: 1.55;
}
.journey-bridge-icon {
    flex-shrink: 0;
    color: var(--gamboge);
    margin-top: 1px;
}
.journey-bridge-icon .i {
    width: 16px;
    height: 16px;
}
.journey-bridge-text {
    flex: 1;
    min-width: 0;
}

/* ── Why Hint ── */
.journey-card-why-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--slate);
    cursor: help;
    vertical-align: middle;
    margin-left: 2px;
    flex-shrink: 0;
    line-height: 1;
}
.journey-card-why-hint:hover {
    background: var(--primary-tint-sm);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Recent Completions ── */
.journey-recent-completions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--slate);
}
.journey-recent-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
}
.journey-recent-label .i {
    width: 13px;
    height: 13px;
}
.journey-recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.74rem;
    color: var(--charcoal);
    background: var(--bg-surface);
    white-space: nowrap;
}
.journey-recent-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.journey-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}
.journey-card {
    padding: 14px 16px;
    border-top: 0.5px solid var(--border-light);
    transition: background 0.12s;
}
.journey-card:first-child { border-top: none; }

/* Card states */
.journey-card--completed { cursor: pointer; border-left: 3px solid transparent; }
.journey-card--completed:hover { background: var(--primary-tint-xs); }
.journey-card--active {
    border: 1.5px solid color-mix(in srgb, var(--gamboge) 70%, transparent);
    border-left: 6px solid var(--gamboge);
    background: var(--bg-surface);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--gamboge) 35%, transparent), 0 8px 28px color-mix(in srgb, var(--gamboge) 22%, transparent);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}
.journey-card--upcoming { border-left: 3px solid transparent; opacity: 0.7; }
.journey-card--upcoming:hover { opacity: 1; }
.journey-card--expanded { border-left: 3px solid var(--border-medium); background: var(--primary-tint-xs); }

/* Card row layout */
.journey-card-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Dot indicators (22px) */
.journey-card-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.journey-card-dot--done {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--on-brand);
}
.journey-card-dot--active {
    border: 2px solid var(--gamboge);
    background: var(--gamboge);
    color: var(--on-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gamboge) 25%, transparent);
}
.journey-card-dot--upcoming {
    border: 1.5px solid var(--border-medium);
    background: var(--bg-surface);
    color: var(--slate);
}

/* Card content */
.journey-card-content {
    flex: 1;
    min-width: 0;
}
.journey-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.3;
}
.journey-card--upcoming .journey-card-title {
    color: var(--slate);
}
.journey-card-subtitle {
    font-size: 0.75rem;
    color: var(--slate);
    line-height: 1.4;
    margin-top: 0.15rem;
}
.journey-card--upcoming .journey-card-subtitle {
    opacity: 0.7;
}
.journey-card-description {
    font-size: 0.8125rem;
    color: var(--slate);
    line-height: 1.5;
    margin-top: 0.25rem;
}

/* Activity kicker (Assessment / Workbook / Tool / Reading / Workshop / Voice Setup) */
.journey-card-kicker {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    line-height: 1.2;
    margin-bottom: 3px;
}
.journey-card--active .journey-card-kicker {
    color: var(--gamboge);
}
.journey-card--upcoming .journey-card-kicker {
    opacity: 0.85;
}

/* Badges */
.journey-card-badge-next {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--on-brand);
    background: var(--gamboge);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--gamboge) 40%, transparent);
}
.journey-card-badge-done {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--slate);
    background: var(--border-light);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* Chevron (completed resting) */
.journey-card-chevron {
    flex-shrink: 0;
    color: var(--slate);
    opacity: 0.3;
    display: flex;
    align-items: center;
}

/* Dismiss button */
.journey-card-dismiss {
    min-width: 24px; min-height: 24px;
    border: none;
    background: transparent;
    color: var(--slate);
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.2;
    transition: opacity 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}
.journey-card:hover .journey-card-dismiss { opacity: 0.5; }
.journey-card-dismiss:hover { opacity: 1 !important; background: var(--border-light); }

/* Expanded body */
.journey-card-expanded-body {
    padding: 0.65rem 0 0 calc(22px + 0.75rem);
}

/* Summary box */
.journey-card-summary-box {
    background: var(--primary-tint-xs);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    margin-top: 0.5rem;
}
.journey-card-summary-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--slate);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.2rem;
}
.journey-card-summary-value {
    font-size: 0.75rem;
    color: var(--charcoal);
    line-height: 1.5;
}

/* Sub-progress bar (inside active card) */
.journey-card-sub-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.journey-card-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    max-width: 120px;
}
.journey-card-progress-fill {
    height: 100%;
    background: var(--ultraviolet);
    border-radius: 2px;
    transition: width 0.3s;
}
.journey-card-progress-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gamboge);
    white-space: nowrap;
}

/* CTA buttons */
.journey-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.journey-card-cta:hover { background: color-mix(in srgb, var(--primary) 85%, #000); }
.journey-card-cta:active { transform: scale(0.97); }

.journey-card-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.journey-card-cta-outline:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }

/* Active "Next up" card: harmonize CTAs and progress with the gold border */
.journey-card--active .journey-card-cta {
    background: var(--gamboge);
    color: var(--on-brand);
}
.journey-card--active .journey-card-cta:hover {
    background: color-mix(in srgb, var(--gamboge) 88%, #000);
}
.journey-card--active .journey-card-cta-outline {
    color: var(--gamboge);
    border-color: var(--gamboge);
}
.journey-card--active .journey-card-cta-outline:hover {
    background: color-mix(in srgb, var(--gamboge) 12%, transparent);
}
.journey-card--active .journey-card-progress-fill {
    background: var(--gamboge);
}
.journey-card--active .journey-card-progress-bar {
    background: color-mix(in srgb, var(--gamboge) 18%, transparent);
}

.journey-card-cta-text {
    background: none;
    border: none;
    color: var(--slate);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.15s;
}
.journey-card-cta-text:hover { color: var(--charcoal); }

/* Coaching footnote */
.journey-footnote {
    font-size: 0.75rem;
    color: var(--slate);
    line-height: 1.6;
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
    background: var(--primary-tint-xs);
    border-radius: 6px;
}

/* ─── Journey Layout (Dashboard) ─── */
.journey-layout {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
}
body.canvas-fullscreen .journey-layout {
    max-width: 1400px;
}
.journey-dashboard {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
}
.journey-main-col {
    min-width: 0;
}
.journey-side-col {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ─── Journey View Controls ─── */
.journey-view-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.journey-vis-settings-wrapper {
    position: relative;
}
.journey-vis-settings-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate);
    transition: border-color 0.15s, color 0.15s;
}
.journey-vis-settings-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.journey-mode-dropdown-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-md);
    padding: 0.75rem;
    min-width: 260px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
}
.journey-mode-dropdown-wrapper.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.journey-mode-toggle-group {
    display: flex;
    gap: 0.5rem;
}
.journey-mode-btn {
    padding: 0.5rem 0.75rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.journey-mode-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.journey-mode-btn.active {
    background: var(--primary);
    color: var(--on-brand);
    border-color: var(--primary);
}
.journey-mode-btn .i {
    width: 14px;
    height: 14px;
}
.journey-mode-divider {
    height: 1px;
    background: var(--border-light);
    margin-bottom: 0.75rem;
}
.journey-mode-refinements-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}
.journey-mode-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 280px;
    overflow-y: auto;
}
.journey-mode-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.25rem;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--charcoal);
    user-select: none;
    border-radius: 4px;
}
.journey-mode-checkbox:hover {
    background: var(--primary-tint-xs);
    color: var(--primary);
}
.journey-mode-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ─── Focus Mode Layout ─── */
.journey-dashboard[data-journey-mode="focus"] {
    grid-template-columns: 1fr;
}
.journey-upcoming-list--focus .journey-upcoming-item:first-child .journey-card--active {
    padding: 1.25rem 1.5rem;
}
.journey-card--focus-hero {
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint-xs);
}
.journey-card--focus-hero .journey-card-title {
    font-size: 1rem;
}

/* ── Merged progress + stat card ── */
.journey-progress-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.journey-progress-card-donut {
    flex-shrink: 0;
}
.journey-progress-card-donut .journey-donut {
    width: 90px;
    height: 90px;
}
.journey-progress-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}
.journey-donut {
    width: 130px;
    height: 130px;
}
.journey-stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    text-align: center;
}
.journey-stat-card--link {
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.journey-stat-card--link:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-tint-xs);
}
.journey-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}
.journey-stat-label {
    font-size: 0.65rem;
    color: var(--slate);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.journey-project-title {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.journey-project-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.journey-project-type {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Welcome card ── */
.journey-welcome {
    background: linear-gradient(135deg, var(--primary-tint-sm), var(--violet-light));
    border: 1px solid var(--primary-tint-md);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
.journey-welcome-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}
.journey-welcome-diagnosis {
    font-size: 0.85rem;
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.journey-welcome-diagnosis strong {
    color: var(--primary);
}
.journey-welcome-body {
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}
.journey-welcome-dismiss {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--on-brand);
    background: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: opacity 0.15s;
}
.journey-welcome-dismiss:hover { opacity: 0.85; }

/* ── "Why we chose this path" rationale disclosure ──
   Collapsed-by-default <details> shown at the top of My Journey when intake is
   complete. Lets users see how each intake answer shaped the tool list. */
.journey-rationale {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.journey-rationale-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--charcoal);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}
.journey-rationale-summary:hover {
    background: var(--warm-white);
}
.journey-rationale-summary::-webkit-details-marker {
    display: none;
}
.journey-rationale-summary-text {
    flex: 1;
}
.journey-rationale-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--slate);
    border-bottom: 1.5px solid var(--slate);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 0.25rem;
}
.journey-rationale[open] .journey-rationale-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
    margin-right: 0.1rem;
}
.journey-rationale-body {
    padding: 0.25rem 1rem 1rem 1rem;
    border-top: 1px solid var(--border-light);
}
.journey-rationale-intro {
    font-size: 0.78rem;
    color: var(--slate);
    line-height: 1.55;
    margin: 0.6rem 0 0.9rem 0;
    font-style: italic;
}
.journey-rationale-entry {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
}
.journey-rationale-entry:last-child {
    border-bottom: none;
}
.journey-rationale-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}
.journey-rationale-impact {
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.55;
}

/* ── Recommendations Preview (intake interstitial + My Journey rationale) ── */
.rec-preview-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }

.rec-preview-signal-card {
    background: var(--primary-tint-xs);
    border: 1px solid var(--primary-tint);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.rec-preview-signal-headline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.rec-preview-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.4rem;
    margin-top: 0.75rem;
}

.rec-preview-tool-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--primary-tint);
}
.rec-preview-tool-row:last-child { border-bottom: none; }

.rec-preview-tool-row--placed { flex-direction: column; gap: 0.15rem; }

.rec-preview-tool-row--available { justify-content: space-between; }

.rec-preview-tool-row-info { flex: 1; min-width: 0; }

.rec-preview-tool-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--charcoal);
}

.rec-preview-tool-why {
    font-size: 0.8rem;
    color: var(--slate);
    margin-top: 0.1rem;
    line-height: 1.45;
}

.rec-preview-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.rec-preview-add-btn:hover { background: var(--primary-tint); }

.rec-preview-add-btn--selected {
    background: var(--primary);
    color: var(--on-brand);
}

/* ── Complete banner ── */
.journey-complete-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    background: color-mix(in srgb, var(--primary) 8%, var(--bg-surface));
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}
.journey-complete-banner .i {
    width: 18px;
    height: 18px;
}

/* ── Section Headers ── */
.journey-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}
.journey-section-header--completed {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.journey-section-icon {
    display: flex;
    align-items: center;
}
.journey-section-icon .i {
    width: 16px;
    height: 16px;
}
.journey-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal);
}
.journey-section-count {
    font-size: 0.7rem;
    color: var(--slate);
    font-weight: 500;
    margin-left: auto;
}

/* ── Upcoming list ── */
.journey-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.journey-upcoming-item {
    display: flex;
    align-items: stretch;
    position: relative;
}
.journey-upcoming-item .journey-card {
    flex: 1;
    min-width: 0;
}
.journey-upcoming-phase-dot {
    width: 4px;
    border-radius: 100px;
    margin-right: 0;
    flex-shrink: 0;
    opacity: 0.5;
}
.journey-upcoming-item:has(.journey-card--active) .journey-upcoming-phase-dot {
    display: none;
}
.journey-all-done-msg {
    font-size: 0.82rem;
    color: var(--slate);
    font-style: italic;
    padding: 0.75rem 0;
}

/* ── Up Next collapsible remaining steps ── */
.journey-upcoming-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.75rem;
    margin-top: 2px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate);
    transition: color 0.15s, border-color 0.15s;
    width: 100%;
}
.journey-upcoming-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.journey-upcoming-toggle-icon .i {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}
.journey-upcoming-toggle--open .journey-upcoming-toggle-icon .i {
    transform: rotate(90deg);
}
.journey-upcoming-rest {
    display: none;
    flex-direction: column;
    gap: 0;
}
.journey-upcoming-rest--open {
    display: flex;
}

/* ── Achievements collapsible overflow ── */
.journey-achievements-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    margin-top: 4px;
    background: none;
    border: 1px dashed var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate);
    width: 100%;
    transition: color 0.15s, border-color 0.15s;
}
.journey-achievements-toggle:hover {
    color: var(--gamboge);
    border-color: var(--gamboge);
}
.journey-achievements-toggle-icon .i {
    width: 11px;
    height: 11px;
    transition: transform 0.2s ease;
}
.journey-achievements-toggle--open .journey-achievements-toggle-icon .i {
    transform: rotate(90deg);
}
.journey-achievements-toggle--open .journey-achievements-toggle-text {
    display: none;
}
.journey-achievements-toggle--open::before {
    content: 'Show fewer';
    font-size: 0.75rem;
}
.journey-achievements-rest {
    display: none;
    flex-direction: column;
}
.journey-achievements-rest--open {
    display: flex;
}

/* ── Roadmap feed (unified upcoming + completed below Up Next) ── */
.journey-roadmap-feed {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}
.journey-roadmap-section {
    display: flex;
    flex-direction: column;
}
.journey-roadmap-section--completed {
    opacity: 0.78;
}
.journey-roadmap-section--completed .journey-card,
.journey-roadmap-section--completed .journey-log-entry {
    filter: saturate(0.85);
}
.journey-roadmap-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0 0.5rem;
}
.journey-roadmap-divider::before,
.journey-roadmap-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.journey-roadmap-divider-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate);
}
.journey-roadmap-divider-label .i {
    width: 14px;
    height: 14px;
}

/* ── Secondary chrome (Setup, rationale, walkthrough button) below the feed ── */
.journey-secondary-chrome {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

/* ── Completed log ── */
.journey-completed-log {
    display: flex;
    flex-direction: column;
    position: relative;
}
.journey-completed-log::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-light);
    border-radius: 100px;
}
.journey-log-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.65rem 0.5rem 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    position: relative;
}
.journey-log-entry:hover {
    background: var(--primary-tint-xs);
}
.journey-log-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-surface);
    z-index: 1;
}
.journey-log-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.journey-log-content {
    flex: 1;
    min-width: 0;
}
.journey-log-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 6px;
}
.journey-log-phase-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.7;
}
.journey-log-summary {
    font-size: 0.72rem;
    color: var(--slate);
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.journey-log-actions {
    flex-shrink: 0;
}
.journey-log-edit-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.journey-log-edit-btn:hover {
    background: var(--primary-tint-sm);
    color: var(--primary);
}
.journey-log-edit-btn .i {
    width: 14px;
    height: 14px;
}

/* ── Badge entries in achievements log ── */
.journey-log-entry--badge {
    cursor: default;
}
.journey-log-entry--badge:hover {
    background: transparent;
}
.journey-log-dot--badge {
    width: 16px;
    height: 16px;
}
.journey-log-badge-icon {
    display: inline-flex;
    align-items: center;
}
.journey-log-badge-icon .i {
    width: 14px;
    height: 14px;
}
.journey-log-badge-tag {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gamboge);
    background: color-mix(in srgb, var(--gamboge) 10%, transparent);
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── Phase Lanes (legacy, kept for phase grouping if needed) ── */
.journey-phases-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.journey-phase {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.journey-phase--active {
    border-color: color-mix(in srgb, var(--ultraviolet) 30%, var(--border-light));
    box-shadow: 0 1px 6px color-mix(in srgb, var(--ultraviolet) 8%, transparent);
}
.journey-phase--complete {
    border-color: color-mix(in srgb, var(--primary) 20%, var(--border-light));
}

.journey-phase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--primary-tint-xs);
}
.journey-phase--complete .journey-phase-header {
    background: color-mix(in srgb, var(--primary) 4%, var(--bg-surface));
}

.journey-phase-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--phase-color, var(--primary)) 10%, transparent);
}
.journey-phase-icon .i {
    width: 16px;
    height: 16px;
}

.journey-phase-label {
    flex: 1;
    min-width: 0;
}
.journey-phase-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
}
.journey-phase-desc {
    font-size: 0.7rem;
    color: var(--slate);
    line-height: 1.3;
    margin-top: 1px;
}

.journey-phase-badge {
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--border-light);
    color: var(--slate);
}
.journey-phase-badge--done {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}
.journey-phase-badge--active {
    background: color-mix(in srgb, var(--ultraviolet) 10%, transparent);
    color: var(--ultraviolet);
}

.journey-phase-cards {
    padding: 0.35rem 0;
}
.journey-phase-cards .journey-card:first-child {
    border-top: none;
}

/* ── Life Satisfaction Sidebar Widget ── */
.journey-ls-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.journey-ls-widget-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.journey-ls-widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--charcoal);
}
.journey-ls-widget-chart {
    display: flex;
    justify-content: center;
    margin: 0.25rem 0;
}
.journey-ls-widget-chart .assess-radial-svg {
    width: 140px;
    height: 140px;
}
.journey-ls-widget-chart .assess-chart-avg {
    font-size: 14px;
}
.journey-ls-widget-chart .assess-chart-avg-label {
    font-size: 6px;
}
.journey-ls-widget-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
}
.journey-ls-widget-avg {
    font-size: 0.75rem;
    color: var(--charcoal);
}
.journey-ls-widget-date {
    font-size: 0.65rem;
    color: var(--slate);
}

/* ── Mini hex canvas preview (mirrors State of You narrative tile) ── */
.journey-mini-canvas {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: flex;
    justify-content: center;
}
.journey-mini-canvas:hover,
.journey-mini-canvas:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-tint-xs);
    outline: none;
}
.journey-mini-canvas .home-card-graph {
    border-radius: 6px;
    max-width: 220px;
}

/* ── Canvas Narrative Health ── */
.journey-canvas-health {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}
.journey-canvas-health-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.journey-canvas-health-total {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.journey-canvas-health-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1;
}
.journey-canvas-health-unit {
    font-size: 0.72rem;
    color: var(--slate);
    font-weight: 500;
}
.journey-canvas-open-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: 1px solid var(--primary-tint-md);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, border-color 0.15s;
}
.journey-canvas-open-btn:hover {
    background: var(--primary-tint-xs);
    border-color: var(--primary);
}
.journey-canvas-open-btn svg {
    width: 8px;
    height: 8px;
}
.journey-canvas-structure {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.5rem;
}
.journey-canvas-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--slate);
}
.journey-canvas-check--done {
    color: var(--primary);
}
.journey-canvas-check-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.journey-canvas-check-icon svg {
    width: 12px;
    height: 12px;
}
.journey-canvas-check-label {
    font-weight: 500;
}
.journey-canvas-check-count {
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--primary-tint-xs);
    color: var(--primary);
    padding: 0 5px;
    border-radius: 100px;
    line-height: 1.6;
}
.journey-canvas-check:not(.journey-canvas-check--done) .journey-canvas-check-count {
    background: var(--border-light);
    color: var(--slate);
}
.journey-canvas-garden {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--green);
    margin-top: 0.35rem;
}
.journey-canvas-garden .i {
    width: 12px;
    height: 12px;
}

.journey-canvas-bar {
    display: flex;
    height: 8px;
    border-radius: 100px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 0.5rem;
}
.journey-canvas-seg {
    border-radius: 100px;
    min-width: 4px;
    transition: flex 0.3s ease;
}

.journey-canvas-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.68rem;
    color: var(--slate);
    margin-bottom: 0.35rem;
}
.journey-canvas-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.journey-canvas-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.journey-canvas-hint {
    font-size: 0.75rem;
    color: var(--primary);
    font-style: italic;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* Tool Nudge link. See docs/claude-ref/tool-nudge-pattern.md */
.tool-nudge-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    cursor: pointer;
}
.tool-nudge-link:hover,
.tool-nudge-link:focus-visible {
    text-decoration-thickness: 2px;
    outline: none;
}

/* ── Badges Section ── */
.journey-badges-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
}
.journey-badges-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.journey-badges-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal);
}
.journey-badges-title .i {
    width: 16px;
    height: 16px;
    color: var(--gamboge);
}
.journey-badges-view-all {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}
.journey-badges-view-all:hover {
    background: var(--primary-tint-xs);
}

.journey-badges-count {
    font-weight: 400;
    color: var(--slate);
    font-size: 0.7rem;
    margin-left: 4px;
}
.journey-badges-progress {
    height: 4px;
    background: var(--border-light);
    border-radius: 100px;
    margin-bottom: 0.65rem;
    overflow: hidden;
}
.journey-badges-progress-fill {
    height: 100%;
    background: var(--gamboge);
    border-radius: 100px;
    transition: width 0.4s ease;
}
.journey-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
}
.journey-badge-card {
    --badge-color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    background: transparent;
    text-align: center;
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.journey-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.journey-badge-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: var(--warm-white);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    min-width: 160px;
    max-width: 220px;
    text-align: left;
    z-index: var(--z-guide);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
}
.journey-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--charcoal);
}
.journey-badge-card:hover .journey-badge-tooltip {
    display: block;
}
.journey-badge-tooltip-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.journey-badge-tooltip-desc {
    font-size: 0.68rem;
    line-height: 1.4;
    opacity: 0.85;
}
.journey-badge-tooltip-date {
    font-size: 0.62rem;
    opacity: 0.6;
    margin-top: 3px;
}
.journey-badge-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at 30% 30%,
        color-mix(in srgb, var(--badge-color) 26%, var(--bg-panel)),
        color-mix(in srgb, var(--badge-color) 10%, var(--bg-panel)) 70%
    );
    color: var(--badge-color);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--badge-color) 50%, transparent),
        0 0 10px color-mix(in srgb, var(--badge-color) 30%, transparent);
}
.journey-badge-card-icon .i {
    width: 18px;
    height: 18px;
}
.journey-badge-card-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
}

/* ── Unlockables Section ── */
.journey-unlocks-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}
.journey-unlock-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--slate);
}
.journey-unlock-item--btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
}
.journey-unlock-item--btn:hover { color: var(--primary); }
.journey-unlock-item .i {
    width: 14px;
    height: 14px;
    color: var(--gamboge);
}
.journey-unlock-item strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* ── Card Source & Coach Note ── */
.journey-card-source {
    font-size: 0.65rem;
    color: var(--slate);
    margin-top: 2px;
    opacity: 0.75;
    font-style: italic;
}
.journey-card-coach-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--charcoal);
    background: color-mix(in srgb, var(--gamboge) 6%, var(--bg-surface));
    border: 1px solid color-mix(in srgb, var(--gamboge) 15%, transparent);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-top: 0.4rem;
    line-height: 1.4;
}
.journey-card-coach-note .i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--gamboge);
    margin-top: 1px;
}

/* ── Coaching Section ── */
.journey-coaching-section {
    margin-top: 1rem;
}
.journey-coaching-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-tint-xs);
    border: 1px solid var(--primary-tint-md);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.journey-coaching-btn:hover {
    background: var(--primary-tint-sm);
    border-color: var(--primary-tint-lg);
}
.journey-coaching-btn .i {
    width: 16px;
    height: 16px;
}

/* ── Coach Assign Button on Journey ── */
.journey-coach-assign-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--on-brand);
    background: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-bottom: 0.5rem;
}
.journey-coach-assign-btn:hover { opacity: 0.85; }
.journey-coach-assign-btn .i { width: 14px; height: 14px; }

/* ── Coach Assignment History ── */
.journey-coach-history {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.ca-history-card {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--bg-surface);
}
.ca-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.ca-history-tool {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
}
.ca-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ca-status--pending { background: var(--gamboge-light); color: var(--gamboge); }
.ca-status--accepted { background: var(--green-light); color: var(--green); }
.ca-status--dismissed { background: var(--rose-light); color: var(--rose); }
.ca-history-meta {
    font-size: 0.72rem;
    color: var(--slate);
    margin-top: 0.25rem;
}
.ca-history-why {
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 0.25rem;
    font-style: italic;
}

/* ── Coach Assignment Modal ── */
.ca-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: var(--z-modal-top);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ca-modal {
    background: var(--bg-surface);
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}
.ca-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.ca-modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}
.ca-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--slate);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.ca-modal-close:hover { color: var(--charcoal); }
.ca-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}
.ca-section {
    margin-bottom: 1.25rem;
}
.ca-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}
.ca-optional {
    font-weight: 400;
    color: var(--slate);
}
.ca-loading {
    text-align: center;
    padding: 2rem;
    color: var(--slate);
    font-size: 0.85rem;
}
.ca-empty {
    font-size: 0.8rem;
    color: var(--slate);
    font-style: italic;
    margin: 0;
}

/* User list */
.ca-user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ca-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    background: var(--bg-surface);
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--charcoal);
    transition: border-color 0.15s, background 0.15s;
}
.ca-user-btn:hover {
    border-color: var(--primary);
    background: var(--primary-tint-xs);
}
.ca-user-btn--selected {
    border-color: var(--primary);
    background: var(--primary-tint-sm);
    font-weight: 600;
}
.ca-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-tint-md);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Session list */
.ca-session-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 160px;
    overflow-y: auto;
}
.ca-session-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    background: var(--bg-surface);
    cursor: pointer;
    text-align: left;
    color: var(--charcoal);
    transition: border-color 0.15s, background 0.15s;
}
.ca-session-btn:hover {
    border-color: var(--primary);
    background: var(--primary-tint-xs);
}
.ca-session-btn--selected {
    border-color: var(--primary);
    background: var(--primary-tint-sm);
}
.ca-session-title {
    font-size: 0.82rem;
    font-weight: 600;
}
.ca-session-meta {
    font-size: 0.7rem;
    color: var(--slate);
}

/* Tool search & list */
.ca-search {
    width: 100%;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--bg-surface);
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.ca-search:focus {
    outline: none;
    border-color: var(--primary);
}
.ca-tool-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 4px;
}
.ca-tool-group {
    margin-bottom: 4px;
}
.ca-tool-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 6px 2px;
}
.ca-tool-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px 8px;
    border: none;
    border-radius: 4px;
    background: transparent;
    font-size: 0.78rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: background 0.1s;
}
.ca-tool-btn:hover { background: var(--primary-tint-xs); }
.ca-tool-btn--selected {
    background: var(--primary-tint-sm);
    font-weight: 600;
}

/* Context inputs */
.ca-input {
    width: 100%;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--bg-surface);
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.ca-input:focus { outline: none; border-color: var(--primary); }
.ca-textarea {
    width: 100%;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-surface);
    color: var(--charcoal);
    resize: vertical;
    box-sizing: border-box;
}
.ca-textarea:focus { outline: none; border-color: var(--primary); }

/* Actions */
.ca-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}
.ca-cancel-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--slate);
    cursor: pointer;
}
.ca-cancel-btn:hover { background: var(--primary-tint-xs); }
.ca-assign-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: var(--on-brand);
    cursor: pointer;
    transition: opacity 0.15s;
}
.ca-assign-btn:hover:not(:disabled) { opacity: 0.85; }
.ca-assign-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Coach Invite Rows ── */
.ca-invite-generate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ca-invite-generate .ca-input {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-surface);
    color: var(--charcoal);
}
.ca-invite-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ca-invite-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-surface);
}
.ca-invite-row.ca-invite-expired {
    opacity: 0.5;
}
.ca-invite-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 90px;
}
.ca-invite-meta {
    font-size: 0.75rem;
    color: var(--slate);
    flex: 1;
}
.ca-invite-actions {
    display: flex;
    gap: 0.35rem;
}
.ca-btn-sm {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
}
.ca-btn-danger {
    color: var(--rose);
    border-color: var(--rose);
}
.ca-btn-danger:hover {
    background: var(--rose-light);
}
.ca-section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--charcoal);
}

/* ── Coach Dashboard (wide modal) ── */
.ca-modal--wide {
    max-width: 1100px;
    max-height: 90vh;
}
.ca-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ca-btn-secondary {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--charcoal);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ca-btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-tint-xs);
    color: var(--primary);
}
.ca-btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.ca-dashboard-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ca-dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
    height: 100%;
}
.ca-dashboard-list {
    border-right: 1px solid var(--border-light);
    background: var(--bg-panel);
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 400px;
}
.ca-dashboard-detail {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    min-height: 400px;
}
.ca-dashboard-hint {
    color: var(--slate);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0;
}

/* Coachee list rows */
.ca-dashboard-coachee-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: var(--charcoal);
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
}
.ca-dashboard-coachee-btn:hover {
    background: var(--primary-tint-xs);
    border-color: var(--border-light);
}
.ca-dashboard-coachee-btn--selected {
    background: var(--primary-tint-sm);
    border-color: var(--primary);
}
.ca-dashboard-coachee-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.ca-dashboard-coachee-info .ca-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ca-dashboard-coachee-meta {
    font-size: 0.7rem;
    color: var(--slate);
}

/* Coachee detail header */
.ca-coachee-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}
.ca-user-avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    flex-shrink: 0;
}
.ca-coachee-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.25;
}
.ca-coachee-meta {
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 0.15rem;
}
.ca-coachee-assign-btn {
    margin-left: auto;
    flex-shrink: 0;
}
.ca-coachee-sessions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Session summary cards */
.ca-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.ca-summary-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.ca-summary-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
    flex: 1;
    min-width: 0;
}
.ca-summary-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--primary-tint-md);
    color: var(--primary);
}
.ca-summary-date {
    font-size: 0.7rem;
    color: var(--slate);
}
.ca-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem 0.85rem;
}
.ca-summary-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ca-summary-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate);
}
.ca-summary-stat-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
}
.ca-summary-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ca-summary-tool-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    background: var(--primary-tint-sm);
    color: var(--primary);
    border: 1px solid var(--primary-tint-md);
}

/* Cohort management rows */
.ca-create-cohort-wrap {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.ca-create-cohort-wrap .ca-input {
    margin-bottom: 0;
    flex: 1;
}
.ca-cohort-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    transition: background 0.15s, border-color 0.15s;
}
.ca-cohort-row:hover {
    background: var(--primary-tint-xs);
    border-color: var(--border-light);
}
.ca-cohort-row--selected {
    background: var(--primary-tint-sm);
    border-color: var(--primary);
}
.ca-cohort-name-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.25rem 0.4rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 600;
}
.ca-cohort-rename {
    flex: 1;
    margin-bottom: 0;
}
.ca-cohort-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.ca-icon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ca-icon-btn:hover {
    background: var(--primary-tint-xs);
    color: var(--primary);
    border-color: var(--border-light);
}
.ca-icon-btn svg {
    width: 14px;
    height: 14px;
}
.ca-icon-btn--danger:hover {
    background: var(--rose-light);
    color: var(--rose);
    border-color: var(--rose);
}
.ca-member-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-surface);
    margin-bottom: 4px;
}
.ca-member-row .ca-user-name {
    flex: 1;
    font-size: 0.8rem;
    color: var(--charcoal);
}
.ca-add-member-section {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.ca-add-member-section .ca-tool-btn {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-bottom: 2px;
}

/* Phone: stack dashboard list + detail */
@media (max-width: 768px) {
    .ca-modal--wide {
        max-height: 95vh;
    }
    .ca-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .ca-dashboard-list {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        max-height: 180px;
        min-height: 0;
    }
    .ca-dashboard-detail {
        min-height: 0;
    }
    .ca-coachee-header {
        flex-wrap: wrap;
    }
    .ca-coachee-assign-btn {
        margin-left: 0;
        width: 100%;
    }
}

/* ── Journey Footer ── */
.journey-footer {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

/* ── Tablet: collapse dashboard to single column ── */
@media (max-width: 768px) {
    .journey-dashboard {
        grid-template-columns: 1fr;
    }
    .journey-side-col {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .journey-progress-card {
        grid-column: 1 / -1;
    }
}

/* ── Phone overrides for Journey ── */
@media (max-width: 600px) {
    .journey-layout {
        padding: 1rem 0.65rem 4rem;
    }
    .journey-dashboard {
        grid-template-columns: 1fr;
    }
    .journey-side-col {
        grid-template-columns: 1fr;
    }
    .journey-mode-dropdown-wrapper {
        min-width: 230px;
    }
    .journey-welcome {
        padding: 1rem;
    }
    .journey-rationale-summary {
        padding: 0.85rem 0.85rem;
        font-size: 0.82rem;
    }
    .journey-rationale-body {
        padding: 0.25rem 0.85rem 0.85rem 0.85rem;
    }
    .journey-phase-header {
        padding: 0.5rem 0.65rem;
    }
    .journey-canvas-health {
        padding: 0.65rem 0.75rem;
    }
    .journey-badges-section {
        padding: 0.65rem 0.75rem;
    }
    .journey-unlocks-section {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* Sidebar intake panel (progressive build) */
.sidebar-intake-panel {
    padding: 1rem 0;
}
.sidebar-intake-item {
    margin-bottom: 0.75rem;
    animation: intakeSidebarFadeIn 0.4s ease-out;
}
@keyframes intakeSidebarFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.sidebar-intake-item .sidebar-info-label {
    font-size: 0.62rem;
}
.sidebar-intake-item textarea,
.sidebar-intake-item select {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
}

/* ─── WALKTHROUGH GUIDE ──────────────────────────────── */
.walkthrough-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-walkthrough, 9000);
    background: linear-gradient(135deg, var(--primary-tint-bgest) 0%, var(--violet-light) 35%, var(--rose-light) 65%, var(--gamboge-light) 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.dark-mode .walkthrough-overlay {
    background: var(--bg-surface);
}
.walkthrough-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.dark-mode .walkthrough-header {
    background: rgba(26, 26, 31, 0.6);
}
.walkthrough-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.walkthrough-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.walkthrough-brand-logo svg,
.walkthrough-brand-logo img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}
.walkthrough-brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.walkthrough-progress-wrap {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}
.walkthrough-progress-bar {
    height: 5px;
    background: var(--border-light);
    border-radius: 5px;
    overflow: hidden;
}
.walkthrough-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--violet) 50%, var(--rose) 100%);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.walkthrough-progress-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--slate);
    margin-top: 0.35rem;
    text-align: center;
}
.walkthrough-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.walkthrough-dark-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
    color: var(--slate);
}
.walkthrough-dark-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}
body.dark-mode .walkthrough-dark-toggle {
    color: var(--slate);
    border-color: var(--border-medium);
}
body.dark-mode .walkthrough-dark-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.walkthrough-dark-toggle .i {
    width: 16px;
    height: 16px;
}
.walkthrough-exit-btn {
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--border-medium);
    border-radius: 6px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
}
body.dark-mode .walkthrough-exit-btn {
    color: var(--slate);
    border-color: var(--border-medium);
}
.walkthrough-exit-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.voice-guide-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1.5px solid var(--border-medium);
    border-radius: 6px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
}
.voice-guide-toggle .i { width: 14px; height: 14px; }
.voice-guide-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.voice-guide-toggle.active {
    border-color: var(--primary);
    background: var(--primary-tint-xs);
    color: var(--primary);
}
body.dark-mode .voice-guide-toggle {
    color: var(--slate);
    border-color: var(--border-medium);
}
body.dark-mode .voice-guide-toggle.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-tint-md);
}
.voice-mic-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid var(--border-medium);
    border-radius: 8px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.2s;
}
.voice-mic-btn .i { width: 14px; height: 14px; }
.voice-mic-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.voice-mic-btn.listening {
    border-color: var(--rose);
    color: var(--rose);
    background: color-mix(in srgb, var(--rose) 8%, transparent);
    animation: voice-pulse 1.5s ease-in-out infinite;
}
@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rose) 30%, transparent); }
    50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--rose) 0%, transparent); }
}
body.dark-mode .voice-mic-btn {
    color: var(--slate);
    border-color: var(--border-medium);
}
body.dark-mode .voice-mic-btn.listening {
    border-color: var(--rose);
    color: var(--rose);
    background: color-mix(in srgb, var(--rose) 12%, transparent);
}
/* Voice settings panel */
.voice-settings-panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 1rem;
    z-index: var(--z-modal-top);
    min-width: 300px;
    box-shadow: var(--shadow-lg);
}
.voice-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}
.voice-onoff-btn {
    padding: 0.25rem 0.75rem;
    border: 1.5px solid var(--border-medium);
    border-radius: 12px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 42px;
}
.voice-onoff-btn.on {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-brand);
}
.voice-settings-section.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.walkthrough-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
    padding-top: 8vh;
}
.walkthrough-card {
    width: 100%;
    max-width: 640px;
    animation: walkthroughSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
body.dark-mode .walkthrough-card {
    background: rgba(30, 30, 38, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-light);
}
@keyframes walkthroughSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ─── Welcome Screen ─── */
.walkthrough-welcome-card {
    width: 100%;
    max-width: 580px;
    text-align: center;
    animation: walkthroughSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
}
body.dark-mode .walkthrough-welcome-card {
    background: rgba(30, 30, 38, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-light);
}
.walkthrough-welcome-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-brand);
    font-size: 2rem;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
}
.walkthrough-welcome-icon .i { stroke: var(--on-brand); width: 32px; height: 32px; }
.walkthrough-welcome-logo {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
}
.walkthrough-welcome-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}
.walkthrough-welcome-prose {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.65;
    text-align: left;
    margin-bottom: 2rem;
}
.walkthrough-welcome-prose p { margin: 0 0 0.9rem; }
.walkthrough-welcome-prose p:last-child { margin-bottom: 0; }
.walkthrough-welcome-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
body.dark-mode .walkthrough-welcome-title { color: var(--charcoal); }
.walkthrough-welcome-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 2rem;
}
.walkthrough-welcome-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 2rem;
}
.walkthrough-welcome-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--charcoal);
    line-height: 1.5;
}
body.dark-mode .walkthrough-welcome-feature { color: var(--charcoal); }
.walkthrough-welcome-feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.walkthrough-welcome-feature-icon .i { width: 16px; height: 16px; }
.walkthrough-welcome-feature-icon.f1 { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.walkthrough-welcome-feature-icon.f1 .i { stroke: var(--primary); }
.walkthrough-welcome-feature-icon.f2 { background: color-mix(in srgb, var(--violet) 12%, transparent); }
.walkthrough-welcome-feature-icon.f2 .i { stroke: var(--violet); }
.walkthrough-welcome-feature-icon.f3 { background: color-mix(in srgb, var(--green) 12%, transparent); }
.walkthrough-welcome-feature-icon.f3 .i { stroke: var(--green); }
.walkthrough-welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: var(--on-brand);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
}
.walkthrough-welcome-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 40%, transparent);
}
.walkthrough-welcome-cta:active { transform: translateY(0); }
body.dark-mode .walkthrough-welcome-cta { color: #fff; }
.walkthrough-welcome-skip {
    display: block;
    margin: 1rem auto 0;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--slate);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.walkthrough-welcome-skip:hover { color: var(--charcoal); }
body.dark-mode .walkthrough-welcome-skip:hover { color: var(--charcoal); }
.walkthrough-step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.walkthrough-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}
body.dark-mode .walkthrough-question { color: var(--charcoal); }
.walkthrough-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
body.dark-mode .walkthrough-hint { color: var(--slate); }
.walkthrough-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-light);
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--charcoal);
    background: transparent;
    transition: border-color 0.2s;
    resize: none;
    line-height: 1.5;
    box-sizing: border-box;
}
body.dark-mode .walkthrough-input {
    color: var(--charcoal);
    border-bottom-color: var(--border-medium);
}
.walkthrough-input:focus {
    outline: none;
    border-image: linear-gradient(90deg, var(--primary), var(--violet)) 1;
}
.walkthrough-input::placeholder {
    color: var(--border-medium);
}
body.dark-mode .walkthrough-input::placeholder { color: var(--neutral); }
.walkthrough-textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-light);
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--charcoal);
    background: transparent;
    transition: border-color 0.2s;
    resize: none;
    line-height: 1.5;
    box-sizing: border-box;
    min-height: 60px;
}
body.dark-mode .walkthrough-textarea {
    color: var(--charcoal);
    border-bottom-color: var(--border-medium);
}
.walkthrough-textarea:focus {
    outline: none;
    border-image: linear-gradient(90deg, var(--primary), var(--violet)) 1;
}
.walkthrough-textarea::placeholder {
    color: var(--border-medium);
}
body.dark-mode .walkthrough-textarea::placeholder { color: var(--neutral); }
.walkthrough-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 480px) {
    .walkthrough-select-grid { grid-template-columns: 1fr; }
}
.walkthrough-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
body.dark-mode .walkthrough-option {
    border-color: var(--border-medium);
    color: var(--charcoal);
    background: rgba(255, 255, 255, 0.04);
}
.walkthrough-option:hover {
    border-color: var(--primary);
    background: var(--primary-tint-bgest);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-primary);
}
body.dark-mode .walkthrough-option:hover {
    background: var(--primary-tint-md);
}
.walkthrough-option.selected {
    border-color: var(--primary);
    background: var(--primary-tint-bgest);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px var(--shadow-primary);
}
body.dark-mode .walkthrough-option.selected {
    background: var(--primary-tint-lg);
    color: var(--primary);
}
.walkthrough-option-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    border: 1.5px solid var(--border-medium);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--slate);
    flex-shrink: 0;
    transition: all 0.15s;
}
.walkthrough-option.selected .walkthrough-option-key {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-brand);
}
.walkthrough-other-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-light);
    padding: 0.5rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    background: transparent;
    margin-top: 0.25rem;
}
body.dark-mode .walkthrough-other-input {
    color: var(--charcoal);
    border-bottom-color: var(--border-medium);
}
.walkthrough-other-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}
/* B question: parent A answer context block */
.walkthrough-parent-answer {
    background: var(--primary-tint-xs, rgba(13,92,107,0.06));
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
}
.walkthrough-parent-answer-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.walkthrough-parent-answer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--charcoal);
    line-height: 1.55;
    white-space: pre-wrap;
}
.walkthrough-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}
.walkthrough-nav-btn {
    padding: 0.65rem 1.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
}
.walkthrough-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.walkthrough-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.walkthrough-nav-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: var(--on-brand);
    border-color: transparent;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 25%, transparent);
}
.walkthrough-nav-btn.primary:hover {
    border-color: transparent;
    color: var(--on-brand);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent);
}
body.dark-mode .walkthrough-nav-btn.primary {
    color: #fff;
}
.walkthrough-text-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    background: var(--bg-surface);
    color: var(--charcoal);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.walkthrough-text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow-primary);
}
.walkthrough-text-input::placeholder { color: var(--slate); opacity: 0.7; }
.walkthrough-next-btn {
    padding: 0.65rem 2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--violet) 100%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--on-brand);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow-primary);
}
.walkthrough-next-btn:hover { background: linear-gradient(135deg, var(--primary-mid) 0%, var(--violet) 100%); box-shadow: 0 6px 16px var(--shadow-primary); transform: translateY(-1px); }
.walkthrough-next-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.walkthrough-skip {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    transition: color 0.15s;
}
.walkthrough-skip:hover { color: var(--primary); text-decoration: underline; }
/* +Insight button in walkthrough footer */
.walkthrough-insight-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    transition: background 0.15s, color 0.15s;
}
.walkthrough-insight-btn:hover {
    background: var(--primary);
    color: var(--on-brand);
}
body.dark-mode .walkthrough-insight-btn { border-color: var(--primary); }
/* Tool intro panel (guide/example) shown on first question of toolkit sections */
.wt-tool-intro {
    background: var(--surface-subtle, var(--primary-tint-sm));
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.wt-tool-intro-desc {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--charcoal);
    line-height: 1.5;
}
.wt-tool-detail {
    margin-top: 0.4rem;
}
.wt-tool-detail > summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.wt-tool-detail > summary::before { content: '▸'; }
.wt-tool-detail[open] > summary::before { content: '▾'; }
.wt-tool-detail-body {
    margin-top: 0.5rem;
    font-size: 0.83rem;
    color: var(--slate);
    line-height: 1.6;
    max-height: 260px;
    overflow-y: auto;
}
.walkthrough-section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pillar-color);
    margin-bottom: 0.5rem;
}
body.dark-mode .walkthrough-section-label { color: var(--green); }
.walkthrough-section-label--intro {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
/* Completion screen */
.walkthrough-complete {
    text-align: center;
    animation: walkthroughSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.walkthrough-complete-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-tint-bgest), var(--violet-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--shadow-primary);
}
.walkthrough-complete-icon .i {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}
.walkthrough-complete h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}
body.dark-mode .walkthrough-complete h2 { color: var(--charcoal); }
.walkthrough-complete p {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 2rem;
}
.walkthrough-complete-btn {
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--violet) 100%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--on-brand);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--shadow-primary);
}
.walkthrough-complete-btn:hover { background: linear-gradient(135deg, var(--primary-mid) 0%, var(--violet) 100%); box-shadow: 0 6px 16px var(--shadow-primary); transform: translateY(-1px); }
.walkthrough-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 480px) {
    .walkthrough-type-grid { grid-template-columns: 1fr; }
}
.walkthrough-type-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
body.dark-mode .walkthrough-type-option {
    border-color: var(--border-medium);
    color: var(--charcoal);
    background: rgba(255, 255, 255, 0.04);
}
.walkthrough-type-option:hover {
    border-color: var(--primary);
    background: var(--primary-tint-bgest);
}
.walkthrough-type-option.selected {
    border-color: var(--primary);
    background: var(--primary-tint-bgest);
    color: var(--primary);
    font-weight: 600;
}
body.dark-mode .walkthrough-type-option.selected {
    background: var(--primary-tint-lg);
    color: var(--primary);
}
/* Answer review strip */
.walkthrough-review {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.walkthrough-review-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: var(--primary-tint-bgest);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.15s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: none;
}
.walkthrough-review-chip:nth-child(2n) {
    background: var(--violet-light);
    color: var(--violet);
}
.walkthrough-review-chip:nth-child(3n) {
    background: var(--green-light);
    color: var(--green);
}
body.dark-mode .walkthrough-review-chip {
    background: var(--primary-tint-md);
    color: var(--primary);
}
body.dark-mode .walkthrough-review-chip:nth-child(2n) {
    background: color-mix(in srgb, var(--violet) 12%, transparent);
    color: var(--violet);
}
body.dark-mode .walkthrough-review-chip:nth-child(3n) {
    background: color-mix(in srgb, var(--green) 12%, transparent);
    color: var(--green);
}
.walkthrough-review-chip:hover {
    background: var(--primary-tint-bg);
    transform: translateY(-1px);
}
/* ─── ACTIVATION CARDS (Intake Phase 2) ────────────── */
.activation-card {
    max-width: 680px;
}
.activation-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}
.activation-tag-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--primary-tint-xs);
    border: 1.5px solid var(--primary-tint-sm);
}
.activation-tag-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.activation-tag-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--slate);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.activation-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.activation-chip {
    padding: 0.6rem 1.15rem;
    border-radius: 20px;
    border: 1.5px solid var(--border-medium);
    background: var(--bg-surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.3;
    box-shadow: 0 1px 3px var(--shadow-xs);
}
.activation-chip:hover {
    border-color: var(--primary);
    background: var(--primary-tint-bgest);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-sm);
}
.activation-chip.selected {
    border-color: var(--primary);
    background: var(--primary-tint-sm);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--shadow-primary);
    transform: translateY(-1px);
}
body.dark-mode .activation-chip {
    border-color: var(--border-medium);
    color: var(--charcoal);
}
body.dark-mode .activation-chip:hover {
    border-color: var(--primary);
    background: var(--primary-tint-md);
}
body.dark-mode .activation-chip.selected {
    border-color: var(--primary);
    background: var(--primary-tint-lg);
    color: var(--primary);
}

/* Intake summary view */
.intake-summary-field {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}
.intake-summary-field:last-child { border-bottom: none; }
.intake-summary-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 0.3rem;
}
.intake-summary-value {
    font-size: 0.85rem;
    color: var(--charcoal);
    line-height: 1.5;
}

/* ─── SECTION DOTS (progress indicator) ─────────────────── */
.wt-section-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.35rem;
}
.wt-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
}
.wt-section-dot:hover {
    background: var(--primary);
    transform: scale(1.3);
}
.wt-section-dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}
.wt-section-dot.done {
    background: var(--green, #43a047);
}
body.dark-mode .wt-section-dot {
    background: var(--border-medium);
}
body.dark-mode .wt-section-dot.active {
    background: var(--primary);
}
body.dark-mode .wt-section-dot.done {
    background: var(--green, #43a047);
}

/* ─── SAVE INDICATOR ────────────────────────────────────── */
.walkthrough-saved-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green, #43a047);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    margin-bottom: 0.25rem;
}
.walkthrough-saved-indicator .i {
    width: 14px;
    height: 14px;
    stroke: var(--green, #43a047);
}
.walkthrough-saved-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── TRANSITION CARD (between sections) ────────────────── */
.walkthrough-transition-card {
    text-align: center;
    padding: 3rem 2.5rem;
}
.walkthrough-transition-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--green-light, #e8f5e9), color-mix(in srgb, var(--green) 15%, transparent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: walkthroughCheckPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.walkthrough-transition-check .i {
    width: 28px;
    height: 28px;
    stroke: var(--green, #43a047);
}
@keyframes walkthroughCheckPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
body.dark-mode .walkthrough-transition-check {
    background: color-mix(in srgb, var(--green) 15%, transparent);
}
.walkthrough-transition-completed {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green, #43a047);
    margin-bottom: 0.35rem;
}
.walkthrough-transition-encouragement {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--slate);
    margin-bottom: 2rem;
    line-height: 1.5;
}
.walkthrough-transition-next-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 0.25rem;
}
.walkthrough-transition-next-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
body.dark-mode .walkthrough-transition-next-title { color: var(--charcoal); }
.walkthrough-transition-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--slate);
    line-height: 1.55;
    max-width: 440px;
    margin: 0 auto 0.75rem;
}
.walkthrough-transition-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}
.walkthrough-transition-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.walkthrough-transition-actions .walkthrough-next-btn {
    min-width: 200px;
    justify-content: center;
}
.walkthrough-secondary-btn {
    background: transparent !important;
    border: 1.5px solid var(--border-medium) !important;
    color: var(--slate) !important;
    box-shadow: none !important;
    min-width: 200px;
    justify-content: center;
    font-size: 0.8rem !important;
}
.walkthrough-secondary-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ─── SKIP BUTTON (larger touch target) ─────────────────── */
.walkthrough-skip {
    padding: 0.55rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* ─── FOCUSED FULL-TOOL WALKTHROUGH ─────────────────── */
.wt-tk-card {
    max-width: 720px;
}
.wt-tk-hint {
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Grid 2x2 (Empathy Map, SWOT, etc.) */
.wt-tk-grid2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.wt-tk-grid2x2-cell {
    border-radius: 10px;
    padding: 0.75rem;
    background: var(--surface-subtle, var(--primary-tint-sm));
    min-height: 100px;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.wt-tk-grid2x2-cell.wt-tk-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
    background: var(--bg-main, #fff);
}
.wt-tk-grid2x2-cell.wt-tk-inactive {
    opacity: 0.55;
}
.wt-tk-grid2x2-cell.wt-tk-inactive:hover {
    opacity: 0.8;
}
body.dark-mode .wt-tk-grid2x2-cell {
    background: rgba(255,255,255,0.04);
}
body.dark-mode .wt-tk-grid2x2-cell.wt-tk-active {
    background: rgba(255,255,255,0.08);
}

/* Dual List */
.wt-tk-duallist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.wt-tk-duallist-col {
    border-radius: 10px;
    padding: 0.75rem;
    background: var(--surface-subtle, var(--primary-tint-sm));
    min-height: 100px;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.wt-tk-duallist-col.wt-tk-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
    background: var(--bg-main, #fff);
}
.wt-tk-duallist-col.wt-tk-inactive {
    opacity: 0.55;
}
.wt-tk-duallist-col.wt-tk-inactive:hover {
    opacity: 0.8;
}
body.dark-mode .wt-tk-duallist-col {
    background: rgba(255,255,255,0.04);
}
body.dark-mode .wt-tk-duallist-col.wt-tk-active {
    background: rgba(255,255,255,0.08);
}

/* Structured Fields */
.wt-tk-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.wt-tk-field {
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    background: var(--surface-subtle, var(--primary-tint-sm));
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.wt-tk-field.wt-tk-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
    background: var(--bg-main, #fff);
}
.wt-tk-field.wt-tk-inactive {
    opacity: 0.55;
}
.wt-tk-field.wt-tk-inactive:hover {
    opacity: 0.8;
}
.wt-tk-field-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
body.dark-mode .wt-tk-field {
    background: rgba(255,255,255,0.04);
}
body.dark-mode .wt-tk-field.wt-tk-active {
    background: rgba(255,255,255,0.08);
}

/* Staged Ladder */
.wt-tk-ladder {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.wt-tk-ladder-rung {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    background: var(--surface-subtle, var(--primary-tint-sm));
}
.wt-tk-ladder-rung.wt-tk-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
    background: var(--bg-main, #fff);
}
.wt-tk-ladder-rung.wt-tk-inactive {
    opacity: 0.55;
}
.wt-tk-ladder-rung.wt-tk-inactive:hover {
    opacity: 0.8;
}
.wt-tk-ladder-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--border-medium);
    color: var(--slate);
}
.wt-tk-ladder-body {
    flex: 1;
    min-width: 0;
}
.wt-tk-ladder-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.2rem;
}
body.dark-mode .wt-tk-ladder-rung {
    background: rgba(255,255,255,0.04);
}
body.dark-mode .wt-tk-ladder-rung.wt-tk-active {
    background: rgba(255,255,255,0.08);
}

/* Category Sort (Fishbone) */
.wt-tk-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.wt-tk-category {
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    background: var(--surface-subtle, var(--primary-tint-sm));
    min-height: 80px;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.wt-tk-category.wt-tk-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
    background: var(--bg-main, #fff);
}
.wt-tk-category.wt-tk-inactive {
    opacity: 0.55;
}
.wt-tk-category.wt-tk-inactive:hover {
    opacity: 0.8;
}
body.dark-mode .wt-tk-category {
    background: rgba(255,255,255,0.04);
}
body.dark-mode .wt-tk-category.wt-tk-active {
    background: rgba(255,255,255,0.08);
}

/* Chain (5 Whys, Backcasting) */
.wt-tk-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.wt-tk-chain-link {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    width: 100%;
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    background: var(--surface-subtle, var(--primary-tint-sm));
}
.wt-tk-chain-link.wt-tk-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
    background: var(--bg-main, #fff);
}
.wt-tk-chain-link.wt-tk-inactive {
    opacity: 0.55;
}
.wt-tk-chain-link.wt-tk-inactive:hover {
    opacity: 0.8;
}
.wt-tk-chain-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.wt-tk-chain-body {
    flex: 1;
    min-width: 0;
}
.wt-tk-chain-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.2rem;
}
.wt-tk-chain-arrow {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1;
}
body.dark-mode .wt-tk-chain-link {
    background: rgba(255,255,255,0.04);
}
body.dark-mode .wt-tk-chain-link.wt-tk-active {
    background: rgba(255,255,255,0.08);
}

/* Simple List & Taggable Items */
.wt-tk-simplelist {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Shared: cell titles */
.wt-tk-cell-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

/* Shared: input row */
.wt-tk-input-row {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.wt-tk-input-row input {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-main, #fff);
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s;
}
.wt-tk-input-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}
body.dark-mode .wt-tk-input-row input {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-light);
    color: var(--cream);
}
.wt-tk-add-btn {
    padding: 0.45rem 0.7rem;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.wt-tk-add-btn:hover {
    filter: brightness(1.1);
}

/* Shared: items */
.wt-tk-item {
    font-size: 0.8rem;
    color: var(--charcoal);
    padding: 0.3rem 0.5rem;
    background: color-mix(in srgb, var(--primary) 6%, transparent);
    border-radius: 5px;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}
body.dark-mode .wt-tk-item {
    color: var(--cream);
    background: rgba(255,255,255,0.06);
}

/* Shared: empty state */
.wt-tk-empty {
    font-size: 0.75rem;
    color: var(--slate);
    font-style: italic;
    padding: 0.3rem 0;
}

@media (max-width: 600px) {
    .walkthrough-question { font-size: 1.25rem; }
    .walkthrough-hint { font-size: 0.82rem; }
    .walkthrough-input { font-size: 1rem; }
    /* Walkthrough header: compact single row on phone */
    .walkthrough-header {
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }
    .walkthrough-brand-title {
        display: none;
    }
    .walkthrough-progress-wrap {
        flex: 1;
        max-width: none;
        margin: 0 0.5rem;
    }
    .walkthrough-header-actions {
        margin-left: auto;
        flex-shrink: 0;
        gap: 0.4rem;
    }
    /* 1D: Hide dark mode toggle on mobile to declutter header */
    .walkthrough-dark-toggle--desktop {
        display: none;
    }
    /* 1D: Hide +Insight button text on mobile, show just small icon-sized button */
    .walkthrough-insight-btn {
        font-size: 0;
        padding: 0.35rem 0.5rem;
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .walkthrough-insight-btn::before {
        content: '+';
        font-size: 1rem;
        font-weight: 700;
    }
    .walkthrough-exit-btn {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
        min-height: 36px;
    }
    /* 1G: Welcome card mobile padding */
    .walkthrough-welcome-card {
        padding: 2rem 1.25rem;
    }
    .walkthrough-welcome-title { font-size: 1.4rem; }
    .walkthrough-welcome-subtitle { font-size: 0.9rem; }
    .walkthrough-welcome-feature { font-size: 0.85rem; }
    .walkthrough-body {
        padding: 1rem 0.75rem;
        padding-bottom: 90px; /* Space for fixed footer */
    }
    .walkthrough-card {
        padding: 1.75rem 1.25rem;
        padding-bottom: 5.5rem; /* Space for fixed footer inside card */
        border-radius: 16px;
    }
    /* 2C: Pin footer navigation on mobile */
    .walkthrough-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 0;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-light);
        z-index: var(--z-sheet);
    }
    body.dark-mode .walkthrough-footer {
        background: rgba(26, 26, 31, 0.92);
    }
    /* Section dots: smaller on mobile */
    .wt-section-dots {
        gap: 4px;
    }
    .wt-section-dot {
        width: 6px;
        height: 6px;
    }
    /* Transition card: tighter padding on mobile */
    .walkthrough-transition-card {
        padding: 2rem 1.25rem;
    }
    .walkthrough-transition-next-title {
        font-size: 1.2rem;
    }
    .walkthrough-transition-actions .walkthrough-next-btn,
    .walkthrough-secondary-btn {
        min-width: 160px;
    }
    /* Skip button: larger touch target on mobile */
    .walkthrough-skip {
        padding: 0.6rem 1.1rem;
        min-height: 44px;
        font-size: 0.78rem;
    }
    /* 3C: Voice settings dropdown mobile fix */
    .voice-settings-panel {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 60px;
        min-width: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
    .activation-tag-chips { gap: 0.4rem; }
    .activation-chip { font-size: 0.78rem; padding: 0.45rem 0.85rem; }

    /* Focused full-tool walkthrough: stack grids on phone */
    .wt-tk-grid2x2,
    .wt-tk-duallist,
    .wt-tk-categories {
        grid-template-columns: 1fr;
    }
    .wt-tk-card {
        max-width: 100%;
    }

    /* A10: Mobile responsive intake form */
    .intake-view { padding: 1rem 0.75rem; }
    .intake-field { max-width: 100%; padding: 0 0.25rem; }
    .intake-field-label { font-size: 0.95rem; }
    .intake-field-note { font-size: 0.82rem; }
    .intake-field textarea { font-size: 1rem; min-height: 80px; }
    .intake-field select { font-size: 1rem; padding: 0.6rem; }
    .intake-chips { gap: 0.4rem; }
    .intake-chip { font-size: 0.88rem; padding: 0.5rem 0.8rem; }
    .intake-nav { flex-direction: column; gap: 0.5rem; }
    .intake-nav button { width: 100%; }
    .intake-exit-link { top: 0.75rem; right: 0.75rem; font-size: 0.8rem; }
    .intake-progress-dots { gap: 0.3rem; }
    .intake-progress-dot { width: 10px; height: 10px; }
    .intake-done-message h2 { font-size: 1rem; }
    .intake-continue-btn, .intake-back-btn { font-size: 0.95rem; padding: 0.7rem 1.2rem; }
}

/* ─── Sub-Type Picker (intake interstitial) ─────────────────── */
.subtype-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.subtype-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}
body.dark-mode .subtype-option {
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.04);
}
.subtype-option:hover {
    border-color: var(--primary);
    background: var(--primary-tint-bgest);
}
.subtype-option-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.subtype-option-label .i {
    width: 13px;
    height: 13px;
    opacity: 0.5;
}
.subtype-option-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--slate);
    line-height: 1.4;
}
.subtype-option--child {
    margin-left: 1.5rem;
    border-left: 2px solid var(--primary-light);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.subtype-child-prefix {
    color: var(--slate);
    font-weight: 400;
    margin-right: 0.2rem;
}
.subtype-locked {
    opacity: 0.55;
    cursor: not-allowed;
}
.subtype-locked:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.5);
}
body.dark-mode .subtype-locked:hover {
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.04);
}

/* ─── Sidebar sub-type selector ─────────────────────────────── */
.sidebar-subtype-row {
    margin-top: 0.35rem;
}
.sidebar-subtype-select {
    font-size: 0.78rem;
}

/* ─── C.U.E. Reflection ───────────────────────────────────── */
.cue-reflection {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-surface);
}
.cue-reflection--done {
    margin-top: 0.75rem;
    padding: 0.5rem 0.65rem;
    border: 1.5px solid var(--green);
    border-radius: 8px;
    background: color-mix(in srgb, var(--green) 6%, var(--bg-surface));
}
.cue-reflection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.cue-reflection--done .cue-reflection-header {
    margin-bottom: 0;
}
.cue-reflection-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--primary);
}
.cue-reflection-badge .i {
    width: 14px;
    height: 14px;
}
.cue-reflection-status {
    font-size: 0.7rem;
    color: var(--green);
    font-weight: 600;
}
.cue-reflection-fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.cue-reflection-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.cue-reflection-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cue-reflection-prompt {
    font-size: 0.78rem;
    color: var(--slate);
    margin-bottom: 0.15rem;
}
.cue-reflection-input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    background: var(--warm-white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--charcoal);
    resize: vertical;
    min-height: 2.2rem;
    line-height: 1.4;
}
.cue-reflection-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-tint-sm);
}
.cue-reflection-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}
.cue-reflection-save {
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 5px;
    background: var(--primary);
    color: var(--on-brand);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.cue-reflection-save:hover {
    opacity: 0.85;
}

/* ─── Front Door Choice Cards ───────────────────────────────── */
.front-door-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: 0.6rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.front-door-choice:hover {
    border-color: var(--primary);
    background: var(--primary-tint-xs);
}
.front-door-choice.selected {
    border-color: var(--primary);
    background: var(--primary-tint-sm);
}
.front-door-choice-icon {
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.front-door-choice-icon svg { width: 2.5rem; height: 2.5rem; }
.front-door-choice-text { flex: 1; min-width: 0; }
.front-door-choice:hover .front-door-choice-icon { opacity: 1; }
.front-door-choice-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-tint-sm);
    border-radius: 0.25rem;
    padding: 0.15em 0.5em;
    margin-bottom: 0.35rem;
}
.front-door-choice-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.4;
}
.front-door-choice-subtitle {
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 0.25rem;
    line-height: 1.4;
}
.front-door-choice-examples {
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 0.35rem;
    line-height: 1.5;
    font-style: italic;
}
.front-door-intent-grid,
.front-door-choice-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

/* Tag chips for activation steps */
.intake-tag-section {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}
.intake-tag-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 0.4rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.intake-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.intake-tag-chip {
    padding: 0.3rem 0.7rem;
    border: 1.5px solid var(--border-medium);
    border-radius: 2rem;
    background: var(--bg-surface);
    color: var(--slate);
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.intake-tag-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.intake-tag-chip.selected {
    border-color: var(--primary);
    background: var(--primary-tint-sm);
    color: var(--primary);
    font-weight: 600;
}

/* Intake summary view */
.intake-summary-field {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
}
.intake-summary-field:last-child {
    border-bottom: none;
}
.intake-summary-field-label {
    font-size: 0.75rem;
    color: var(--slate);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.intake-summary-field-value {
    font-size: 0.9rem;
    color: var(--charcoal);
    line-height: 1.5;
}
.intake-summary-tag {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--slate);
}
.intake-summary-tag-label {
    font-weight: 600;
}

/* ─── App Preview (welcome screen "What's inside?" link) ─────── */
.intake-preview-link {
    display: block;
    margin-top: 1rem;
    background: none;
    border: none;
    color: var(--slate);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}
.intake-preview-link:hover { color: var(--primary); }

/* App preview 2x2 feature grid */
.intake-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
}
.intake-preview-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-align: left;
}
.intake-preview-card-icon { display: flex; }
.intake-preview-card-icon svg { width: 20px; height: 20px; color: var(--primary); }
.intake-preview-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-top: 0.1rem;
}
.intake-preview-card-desc {
    font-size: 0.77rem;
    color: var(--slate);
    line-height: 1.5;
}

/* ─── Explore Mode (front door "look around" option) ─────────── */
.front-door-explore-row {
    margin-top: 1.25rem;
    text-align: center;
}
.front-door-explore-btn {
    background: none;
    border: none;
    color: var(--slate);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
}
.front-door-explore-btn:hover { color: var(--primary); }

/* ─── Explore Mode top-bar nudge ─────────────────────────────── */
.topbar-setup-nudge {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}
.topbar-setup-nudge:hover { background: var(--primary-tint-xs); }

/* ─── Explore Mode: Setup Banner ─────────────────────────────── */
.explore-setup-banner {
    margin: 0.75rem 0.75rem 0;
    background: var(--primary-tint-xs);
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}
.explore-setup-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.explore-setup-banner-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.explore-setup-banner-icon {
    color: var(--primary);
    flex-shrink: 0;
}
.explore-setup-banner-icon svg { width: 1.5rem; height: 1.5rem; }
.explore-setup-banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--charcoal);
}
.explore-setup-banner-subtitle {
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 0.1rem;
}
.explore-setup-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.explore-setup-banner-btn {
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.explore-setup-banner-btn:hover { opacity: 0.88; }
.explore-setup-banner-dismiss {
    background: none;
    border: none;
    color: var(--slate);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.explore-setup-banner-dismiss svg { width: 1rem; height: 1rem; }
.explore-setup-banner-dismiss:hover { color: var(--charcoal); }

@media (max-width: 600px) {
    .explore-setup-banner { margin: 0.5rem; }
    .explore-setup-banner-inner { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .explore-setup-banner-actions { justify-content: flex-end; }
}

