/* Following a mentor, step by step (follow-journey.js): the 8-step bar, the review screen and the portal card */
.lfj-bar { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; counter-reset: lfj; }
.lfj-bar li { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; position: relative; }
.lfj-bar li::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--border-glass, #e4e4e7); z-index: 0; }
.lfj-bar li:first-child::before { display: none; }
.lfj-bar li.is-done::before, .lfj-bar li.is-now::before { background: var(--color-accent, #2563eb); }
.lfj-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11.5px; font-weight: 800;
    background: var(--bg-card, #fff); border: 2px solid var(--border-glass, #d4d4d8); color: var(--text-muted, #71717a); }
.lfj-bar li.is-done .lfj-n { background: var(--color-accent, #2563eb); border-color: var(--color-accent, #2563eb); color: #fff; }
.lfj-bar li.is-now .lfj-n { border-color: var(--color-accent, #2563eb); color: var(--color-accent, #2563eb); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.lfj-t { font-size: 11px; line-height: 1.25; color: var(--text-muted, #71717a); overflow-wrap: anywhere; }
.lfj-bar li.is-now .lfj-t { color: var(--text-main, #18181b); font-weight: 700; }
/* On phones only the current step's name shows, so the bar never squeezes */
@media (max-width: 640px) { .lfj-t { display: none; } .lfj-bar li.is-now .lfj-t { display: block; position: absolute; top: 30px; white-space: nowrap; }
    .lfj-bar { margin-bottom: 28px; } .lfj-bar li:first-child.is-now .lfj-t { left: 0; } .lfj-bar li:last-child.is-now .lfj-t { right: 0; } }
.lfj-bar.is-compact { margin: 6px 0 22px; }

.lfj-card { border-radius: 16px; }
.lfj-auth { margin: 0 0 14px; padding: 10px 12px; border: 1px dotted rgba(37, 99, 235, .4); background: rgba(37, 99, 235, .04); border-radius: 12px; text-align: left; }
.lfj-auth-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13.5px; }
.lfj-auth-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfj-auth-step { flex: none; font-size: 11.5px; font-weight: 700; color: var(--color-accent, #2563eb); }
.lfj-auth-line { display: block; height: 3px; border-radius: 3px; background: rgba(37, 99, 235, .12); margin: 7px 0 6px; overflow: hidden; }
.lfj-auth-line i { display: block; height: 100%; background: var(--color-accent, #2563eb); border-radius: 3px; }
.lfj-auth .lfj-s { margin: 0; }
.lfj-k { margin: 0; font-size: 13.5px; }
.lfj-s { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted, #71717a); line-height: 1.5; }

.lfj-review .lfj-rv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.lfj-review .lfj-rv > div { padding: 9px 11px; border-radius: 12px; border: 1px dotted var(--border-glass, #d4d4d8); }
.lfj-review dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #71717a); }
.lfj-review dd { margin: 2px 0 0; font-size: 13.5px; }
.lfj-rv-k { font-size: 12px; font-weight: 700; margin: 6px 0; }
.lfj-review .crp-incl { margin-bottom: 8px; }
@media (max-width: 480px) { .lfj-review .lfj-rv { grid-template-columns: 1fr; } }

.lfj-portal { padding: 16px; margin-bottom: 14px; }
.lfj-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lfj-head h3 { margin: 0 0 2px; }
.lfj-step h4 { margin: 4px 0 6px; font-size: 14px; }
.lfj-step p { font-size: 13.5px; line-height: 1.55; margin: 0 0 8px; }
.lfj-tabs { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border-glass); background: var(--bg-glass); margin-bottom: 10px; }
.lfj-tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-muted); cursor: pointer; min-height: 36px; }
.lfj-tabs button.is-on { background: var(--bg-card); color: var(--color-accent, #2563eb); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.lfj-how { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.55; }
.lfj-how code { font-size: 12.5px; overflow-wrap: anywhere; }
.lfj-note { padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, .08); border: 1px dotted rgba(245, 158, 11, .5); font-size: 13px !important; }
.lfj-ok { padding: 10px 12px; border-radius: 12px; background: rgba(22, 163, 74, .07); border: 1px dotted rgba(22, 163, 74, .5); }
.lfj-warn { padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, .08); border: 1px dotted rgba(245, 158, 11, .5); }
.lfj-fix { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dotted rgba(220, 38, 38, .45); background: rgba(220, 38, 38, .04); font-size: 13px; }
.lfj-fix ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
/* The Finish following card folds to its header and bar */
.lfj-head[data-lfj-fold] { cursor: pointer; }
.lfj-head[data-lfj-fold]:focus-visible { outline: 2px solid var(--color-accent, #2563eb); outline-offset: 4px; border-radius: 8px; }
.lfj-head-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.lfj-chev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-glass, #e4e4e7); }
.lfj-chev::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; color: var(--text-muted, #71717a); }
.lfj-portal.is-folded .lfj-chev::before { transform: translateY(2px) rotate(-135deg); }
.lfj-portal.is-folded .lfj-bar { margin-bottom: 4px; }
@media (max-width: 640px) { .lfj-portal.is-folded .lfj-bar { margin-bottom: 24px; } }
/* Folded: title and the stepper only */
.lfj-open-hint { display: none; }
.lfj-portal.is-folded .lfj-head .cp-sub { display: none; }
.lfj-portal.is-folded .lfj-head h3 { margin: 0; }
.lfj-portal.is-folded .lfj-open-hint { display: inline-flex; font-size: 12px; font-weight: 700; color: var(--color-accent, #2563eb); }
.lfj-portal.is-folded .lfj-head { align-items: center; }
/* Review before paying: one bill card, short icon chips, the fine print folded */
.lfj-bill { border-radius: 18px; overflow: hidden; border: 1px solid rgba(37, 99, 235, .25); margin: 4px 0 12px;
    background: linear-gradient(150deg, rgba(37, 99, 235, .1), rgba(14, 165, 233, .04)); }
.lfj-bill-due { padding: 14px 16px 12px; display: grid; gap: 2px; }
.lfj-bill-due span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2563eb; }
.lfj-bill-due b { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; font-family: var(--font-mono, inherit); }
.lfj-bill-due small { font-size: 12.5px; color: var(--text-muted, #71717a); }
.lfj-bill-who { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px dashed rgba(37, 99, 235, .25); background: var(--bg-card, #fff); }
.lfj-bill-who > span:last-child { display: grid; }
.lfj-bill-who small { font-size: 12px; color: var(--text-muted, #71717a); }
.lfj-bill-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.lfj-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lfj-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: rgba(22, 163, 74, .09); color: var(--text-main, #18181b); }
.lfj-chips svg { color: #16a34a; flex: none; }
.lfj-fine { margin: 0 0 12px; font-size: 12.5px; color: var(--text-muted, #71717a); }
.lfj-fine summary { cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.lfj-fine summary::-webkit-details-marker { display: none; }
.lfj-fine summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lfj-fine[open] summary::after { transform: rotate(-135deg); }
.lfj-fine p { margin: 6px 0 0; line-height: 1.5; }
.lfj-upgrade { margin: 10px 0 0; font-size: 13px; color: var(--text-main); }

/* Follow journey on the sign-in screen (owner, 12 Nov 2026: redesign) */
.lfj-auth { display: flex !important; align-items: center; gap: 12px; padding: 12px 14px !important; border: 1px solid rgba(37, 99, 235, .2) !important;
    border-radius: 18px !important; text-align: left; background: linear-gradient(120deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .04)) !important; }
.lfj-auth-av { position: relative; width: 52px; height: 52px; flex: none; }
.lfj-auth-av svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.lfj-auth-av circle { fill: none; stroke-width: 4; }
.lfj-auth-av .t { stroke: rgba(37, 99, 235, .15); }
.lfj-auth-av .v { stroke: #2563eb; stroke-linecap: round; }
.lfj-auth-av b { position: absolute; inset: 7px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.lfj-auth-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lfj-auth-main small { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.lfj-auth-name { font-size: 15px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lfj-auth-segs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: 3px 0 2px; }
.lfj-auth-segs i { height: 4px; border-radius: 4px; background: rgba(37, 99, 235, .14); }
.lfj-auth-segs i.is-done { background: #2563eb; }
.lfj-auth-segs i.is-now { background: linear-gradient(90deg, #2563eb, #0ea5e9); }
.lfj-auth-s { font-size: 12px; color: var(--text-muted); }
.lfj-auth .lfj-auth-step { align-self: flex-start; flex: none; font-size: 11.5px; font-weight: 800; color: #2563eb; padding: 2px 8px; border-radius: 999px;
    background: rgba(37, 99, 235, .1); }
/* Booking a session: initials with a calendar badge (no follow steps) */
.lfj-auth-av.is-book b { inset: 2px; }
.lfj-auth-av.is-book i { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: #2563eb; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); }
.lfj-auth-av.is-book i svg { width: 13px; height: 13px; }

/* "Your set-up" on Overview (P-01, owner 15 Nov 2026; js/setup-status.js). Reuses the follow card and its ring. */
.lfsu { padding: 14px 16px; margin-bottom: 14px; }
.lfsu-head { display: flex; align-items: center; gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lfsu-head:focus-visible { outline: 2px solid var(--color-accent, #2563eb); outline-offset: 4px; border-radius: 12px; }
.lfsu-t { flex: 1; min-width: 0; }
.lfsu-t h3 { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.lfsu-t .cp-sub { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lfsu-ring b { font-size: 13px; }
.lfsu-ring b svg, .lfsu-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: none; }   /* the ring's quarter turn must not tip the tick into a > */
.lfsu-ring.is-all .v { stroke: #16a34a; }
.lfsu-ring.is-all b { background: linear-gradient(135deg, #16a34a, #15803d); }
.lfsu.is-folded .lfj-chev::before { transform: translateY(2px) rotate(-135deg); }
.lfsu-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.lfsu-step { border-radius: 14px; border: 1px solid var(--border-glass, #e4e4e7); overflow: hidden; transition: border-color .2s, background .2s; }
.lfsu-step.is-next { border-color: rgba(37, 99, 235, .45); background: rgba(37, 99, 235, .04); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.lfsu-step.is-done { background: rgba(22, 163, 74, .04); border-color: rgba(22, 163, 74, .25); }
.lfsu-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; color: inherit;
    font: inherit; text-align: left; cursor: pointer; }
.lfsu-row:disabled { cursor: default; }
.lfsu-dot { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--color-accent, #2563eb);
    background: rgba(37, 99, 235, .1); }
.lfsu-step.is-done .lfsu-dot { color: #fff; background: #16a34a; }
.lfsu-step.is-todo .lfsu-dot { color: var(--text-muted, #71717a); background: rgba(148, 163, 184, .16); }
.lfsu-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; }
.lfsu-step.is-done .lfsu-name { font-weight: 600; color: var(--text-muted, #71717a); }
.lfsu-state { flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--text-muted, #71717a); background: rgba(148, 163, 184, .14); }
.lfsu-step.is-next .lfsu-state { color: #fff; background: var(--color-accent, #2563eb); }
.lfsu-step.is-done .lfsu-state { color: #15803d; background: rgba(22, 163, 74, .12); }
.lfsu-fix { padding: 0 12px 12px 54px; display: grid; gap: 10px; justify-items: start; }
.lfsu-fix p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted, #52525b); }
@media (max-width: 420px) { .lfsu-fix { padding-left: 12px; } .lfsu-fix .btn { width: 100%; } }

/* VPS text advert inside the Keep it open tip (placement client_vps; text only, owner 17 Nov 2026) */
.lfj-note .lfj-vps-ad.lf-ad-slot-on { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; max-width: none; }
.lfj-vps-ad .lf-ad { gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--bg-card, #fff); border: 1px solid rgba(245, 158, 11, .35); }
.lfj-vps-ad .lf-ad img { display: none; }
.lfj-vps-ad .lf-ad-text strong { font-size: 13px; }
.lfj-vps-ad .lf-ad-text small { font-size: 12px; }
.lfj-vps-ad .lf-ad-cta { flex: none; font-size: 12px; font-weight: 800; color: var(--color-accent, #2563eb); white-space: nowrap; }

/* Finish following card on Home: room under the step labels and a gap before the next card (owner, 17 Nov 2026) */
#lfj-portal:not(:empty) { margin-bottom: 18px; }
#lfj-portal .lfj-card { padding-bottom: 26px; }
