/* «Обучение» (learn.js). Tokens only, so every theme and mood repaints it.
   Phone rules live in mobile.css. */

.ln { max-width: 1180px; display: flex; flex-direction: column; gap: 18px; }
.ln-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.ln-lead { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 72ch; }
.ln-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.ln-assigned { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11.5px; background: var(--accent-weak); color: var(--accent-ink); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 4px; }
.ln-note { margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--amber-weak); color: var(--ink); font-size: 13.5px; }
.ln-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-card); }
.ln-h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 10px; }

/* Hero: greeting + ring */
.ln-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--paper-2) 100%); border: 1px solid var(--stroke);
  border-radius: var(--r-xl); padding: 26px 30px; box-shadow: var(--sh-card); }
.ln-hero-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ln-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ln-hero-actions .btn-primary { text-decoration: none; display: inline-flex; align-items: center; }
.ln-meter { position: relative; width: 150px; text-align: center; }
.ln-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.ln-ring-bg { fill: none; stroke: var(--elevated); stroke-width: 12; }
.ln-ring-fg { fill: none; stroke: var(--green); stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ln-meter-num { position: absolute; top: 0; left: 0; width: 150px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ln-meter-num b { font-family: var(--font-display); font-size: 36px; line-height: 1; }
.ln-meter-num span { font-size: 13px; color: var(--subtle); margin-top: 2px; }
.ln-meter-sub { font-size: 12.5px; color: var(--subtle); margin-top: 4px; }

/* Tabs */
.ln-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--elevated); border-radius: var(--r-md); align-self: flex-start; }
.ln-tab { padding: 7px 14px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.ln-tab:hover { color: var(--ink); }
.ln-tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* Stages (the route) */
.ln-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ln-stage { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: 12px; }
.ln-stage.is-now { border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); box-shadow: 0 0 0 3px var(--accent-weak); }
.ln-stage-head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; }
.ln-stage-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--elevated); color: var(--ink-2); font-family: var(--font-display); }
.ln-stage.is-done .ln-stage-num { background: var(--green-weak); color: var(--green); }
.ln-stage.is-now .ln-stage-num { background: var(--accent); color: #fff; }
.ln-stage-titles h2 { margin: 0; font-size: 17px; font-family: var(--font-display); font-weight: 600; }
.ln-stage-titles p { margin: 2px 0 0; color: var(--subtle); font-size: 13px; }
.ln-stage-count { font-size: 13px; color: var(--subtle); white-space: nowrap; }
.ln-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--elevated); color: var(--ink-2); white-space: nowrap; }
.ln-pill.is-done { background: var(--green-weak); color: var(--green); }
.ln-pill.is-now { background: var(--accent-weak); color: var(--accent-ink); }
.ln-pill.is-upd { background: var(--blue-weak); color: var(--blue); }
.ln-pill.is-idle { background: var(--amber-weak); color: var(--amber); }
.ln-bar { height: 6px; border-radius: var(--r-pill); background: var(--elevated); overflow: hidden; }
.ln-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .5s ease; }

/* Lesson rows */
.ln-list { display: flex; flex-direction: column; gap: 2px; }
.ln-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.ln-row:hover { background: var(--paper-2); }
.ln-row-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--elevated); display: grid; place-items: center; font-size: 17px; }
.ln-row.is-read .ln-row-icon { background: var(--green-weak); }
.ln-row-main { display: flex; flex-direction: column; min-width: 0; }
.ln-row-main b { font-weight: 600; font-size: 14.5px; }
.ln-row-main small { color: var(--subtle); font-size: 12.5px; }
.ln-state { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-pill); white-space: nowrap; background: var(--elevated); color: var(--ink-2); }
.ln-state.is-new { background: var(--accent-weak); color: var(--accent-ink); }
.ln-state.is-open { background: var(--amber-weak); color: var(--amber); }
.ln-state.is-upd { background: var(--blue-weak); color: var(--blue); }
.ln-state.is-read { background: var(--green-weak); color: var(--green); }
.ln-fresh { background: var(--surface); border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--stroke)); border-radius: var(--r-lg); padding: 16px 18px; }
.ln-fresh h2 { margin: 0 0 2px; font-size: 17px; font-family: var(--font-display); font-weight: 600; }
.ln-all { display: flex; flex-direction: column; gap: 14px; }
.ln-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ln-track-card h3 { margin: 0 0 4px; font-size: 15px; }
.ln-track-card p { margin: 0 0 4px; }
.ln-track-card.is-mine { border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); }
/* Role preview for leads */
button.ln-track-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
button.ln-track-card:hover { border-color: var(--ink-2); transform: translateY(-1px); }
button.ln-track-card.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.ln-pv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); position: sticky; top: 8px; z-index: 5; box-shadow: var(--sh-1); }
.ln-pv-bar p { margin: 0; }
.ln-pv-only { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.ln-pv-list { display: flex; flex-direction: column; gap: 14px; }
.ln-pv-group { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 12px 14px; transition: opacity .25s ease; }
.ln-pv-group.is-out { opacity: .55; }
.ln-pv-stage { margin: 2px 6px 6px; font-size: 15px; font-family: var(--font-display); font-weight: 600; }
.ln-row.is-in, .ln-row.is-out { transition: opacity .25s ease, filter .25s ease; }
.ln-row.is-out { opacity: .35; filter: grayscale(1); }
.ln-row.is-out:hover { opacity: .75; }
.ln-mine { font-size: 11px; background: var(--accent); color: #fff; padding: 1px 7px; border-radius: var(--r-pill); vertical-align: middle; }

/* Lesson page */
.ln-lesson-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1240px; }
.ln-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; font-size: 13px; padding-right: 4px; }
.ln-side-back { display: inline-block; margin-bottom: 12px; color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.ln-side-group { margin-bottom: 14px; }
.ln-side-group p { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); font-weight: 600; }
.ln-side ul { list-style: none; margin: 0; padding: 0; }
.ln-side li a { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.ln-side li a:hover { background: var(--elevated); }
.ln-side li a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.ln-dot-state { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--stroke); }
.ln-dot-state.is-read { background: var(--green); }
.ln-dot-state.is-upd { background: var(--blue); }
.ln-dot-state.is-open { background: var(--amber); }
.ln-dot-state.is-new { background: var(--accent); }

.ln-article { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: 28px 34px 30px; box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ln-crumbs { font-size: 13px; color: var(--subtle); }
.ln-crumbs a { color: var(--accent-ink); text-decoration: none; }
.ln-a-head { display: flex; gap: 16px; align-items: center; }
.ln-a-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--elevated); display: grid; place-items: center; font-size: 28px; }
.ln-meta { margin: 6px 0 0; color: var(--subtle); font-size: 13px; }
.ln-toc { margin: 0; padding: 12px 16px 12px 34px; background: var(--paper-2); border-radius: var(--r-md); columns: 2; column-gap: 28px; font-size: 13.5px; }
.ln-toc li { margin: 2px 0; break-inside: avoid; }
.ln-toc a { color: var(--ink-2); text-decoration: none; }
.ln-toc a:hover { color: var(--accent-ink); text-decoration: underline; }
.ln-sec { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--divider); }
.ln-body { font-size: 15px; line-height: 1.6; color: var(--ink); }
.ln-body p { margin: 0 0 10px; }
.ln-body ul, .ln-body ol { margin: 0 0 10px; padding-left: 22px; }
.ln-body li { margin: 4px 0; }
.ln-body a { color: var(--accent-ink); }
.ln-body code { background: var(--elevated); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.ln-steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.ln-steps > li { counter-increment: s; position: relative; padding-left: 36px; margin: 8px 0 !important; }
.ln-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-weak); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.ln-table { border-collapse: collapse; width: 100%; margin: 4px 0 10px; font-size: 14px; }
.ln-table td { padding: 8px 10px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.ln-table td:first-child { white-space: nowrap; color: var(--ink-2); width: 1%; }
.ln-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.ln-dl dt { font-weight: 700; }
.ln-dl dd { margin: 0; color: var(--ink-2); }
.ln-tip { margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--green-weak); font-size: 14px; line-height: 1.5; }
.ln-warn { padding: 12px 14px; border-radius: var(--r-md); background: var(--red-weak); margin: 0 0 10px; }
.ln-where { font-size: 13.5px; color: var(--subtle); }
.ln-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ln-flow span { background: var(--elevated); padding: 5px 12px; border-radius: var(--r-pill); font-weight: 600; font-size: 13px; position: relative; }
.ln-flow span:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--subtle); }
.ln-tree { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.ln-tree-row { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--divider); }
.ln-tree-2 { margin-left: 26px; } .ln-tree-3 { margin-left: 52px; } .ln-tree-4 { margin-left: 78px; }
.ln-tree-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); min-width: 110px; }
.ln-st { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid currentColor; }
.ln-st.pre { color: var(--st-pre); border-style: dashed; } .ln-st.open { color: var(--st-open); } .ln-st.full { color: var(--st-full); }
.ln-st.live { color: var(--st-live); } .ln-st.done { color: var(--st-done); } .ln-st.off { color: var(--st-off); }
.ln-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.ln-dot.g { background: var(--st-open); } .ln-dot.o { background: var(--st-full); }

/* Glossary words: dotted underline, a card on hover / tap */
.ln-term { font-style: normal; border-bottom: 1.5px dotted var(--accent); cursor: help; position: relative; }
.ln-term::after { content: attr(data-def); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  width: max-content; max-width: 280px; white-space: normal; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  line-height: 1.4; padding: 8px 11px; border-radius: 9px; box-shadow: var(--sh-2); opacity: 0; pointer-events: none;
  transition: opacity .12s ease, transform .12s ease; z-index: 70; }
.ln-term:hover::after, .ln-term:focus-visible::after, .ln-term.open::after { opacity: 1; transform: translate(-50%, 0); }

/* Screenshots with pins */
.ln-shot { margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ln-shot.is-broken { display: none; }
.ln-shot-frame { position: relative; border-radius: var(--r-lg); border: 1px solid var(--stroke); overflow: hidden; background: var(--paper-2); box-shadow: var(--sh-photo); }
.ln-shot-img { position: relative; width: 100%; }
.ln-shot-img img { display: block; width: 100%; height: 100%; }
.ln-box { position: absolute; border-radius: 8px; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s ease, background .15s ease; pointer-events: none; }
.ln-box.on { box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(16, 20, 36, .28); background: rgba(255, 255, 255, .04); z-index: 1; }
.ln-pin { position: absolute; transform: translate(-45%, -45%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  background: var(--accent); color: #fff; font: 700 12.5px/1 var(--font-ui); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 20, 36, .35); z-index: 2; padding: 0; transition: transform .12s ease; }
.ln-pin:hover, .ln-pin.on { transform: translate(-45%, -45%) scale(1.18); }
.ln-zoom { position: absolute; right: 10px; top: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 10px; border: none; background: rgba(16, 20, 36, .7); color: #fff; font-size: 17px; cursor: pointer; }
.ln-legend { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.ln-legend li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; border-radius: 8px; cursor: default; line-height: 1.4; }
.ln-legend li.on { background: var(--accent-weak); }
.ln-legend-n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; display: grid; place-items: center; margin-top: 1px; }
.ln-legend-only { list-style: decimal; padding-left: 22px; display: block; }
.ln-legend-only li { display: list-item; padding: 2px 0; }
.ln-shot.zoomed { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 24px; background: rgba(10, 12, 20, .86); overflow: auto; justify-content: flex-start; }
.ln-shot.zoomed .ln-shot-frame { width: min(1500px, 100%); margin: 0 auto; flex: none; }
.ln-shot.zoomed figcaption, .ln-shot.zoomed .ln-find { width: min(1500px, 100%); margin: 0 auto; color: #fff; }
.ln-shot.zoomed .ln-legend li.on { background: rgba(255, 255, 255, .14); }
body.ln-zoom-open { overflow: hidden; }

/* «Найди на картинке» */
.ln-find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--blue-weak); }
.ln-find p { margin: 0; font-size: 14px; }
.ln-find-msg { flex-basis: 100%; font-weight: 600; }
.ln-find-msg.good { color: var(--green); }
.ln-find-msg.bad { color: var(--red); }
.ln-shot.finding .ln-shot-img { cursor: crosshair; }
.ln-shot.finding .ln-pin, .ln-shot.finding .ln-box { visibility: hidden; }
.ln-shot.finding .ln-shot-frame { box-shadow: 0 0 0 3px var(--blue), var(--sh-photo); }
.ln-find-box { position: absolute; border-radius: 8px; box-shadow: 0 0 0 3px var(--green), 0 0 0 9999px rgba(16, 20, 36, .25); pointer-events: none; animation: ln-pop .4s ease; }
.ln-shot-img.shake { animation: ln-shake .32s ease; }
@keyframes ln-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes ln-pop { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
.ln-show-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }

/* Quiz */
.ln-quiz { border-top: 2px solid var(--divider); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ln-quiz > p { margin: -6px 0 2px; }
.ln-q { border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 12px 14px 14px; margin: 0; background: var(--paper-2); }
.ln-q.is-right { border-color: color-mix(in srgb, var(--green) 50%, var(--stroke)); background: var(--green-weak); }
.ln-q.is-wrong { border-color: color-mix(in srgb, var(--red) 50%, var(--stroke)); background: var(--red-weak); }
.ln-q legend { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 15px; padding: 0 4px; float: left; width: 100%; margin-bottom: 10px; line-height: 1.4; }
.ln-q-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.ln-opts { clear: both; display: flex; flex-direction: column; gap: 6px; }
.ln-opt { text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--field-border); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; line-height: 1.4; }
.ln-opt:hover { border-color: var(--ink-2); }
.ln-opt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-weak); font-weight: 600; }
.ln-why { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; }
.ln-why.good { color: var(--green); }
.ln-why.bad { color: var(--red); }
.ln-quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ln-quiz-actions .btn-primary { text-decoration: none; display: inline-flex; align-items: center; }
.ln-quiz-msg { color: var(--red); font-size: 13.5px; font-weight: 600; }
.ln-done { color: var(--green); font-weight: 700; }
.ln-a-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--divider); padding-top: 16px; }
.ln-nb { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--stroke); text-decoration: none; color: var(--ink); }
.ln-nb:hover { border-color: var(--accent); }
.ln-nb small { color: var(--subtle); }
.ln-nb.next { text-align: right; }

/* Team */
.ln-team-head { display: flex; flex-direction: column; gap: 6px; }
.ln-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ln-kpi { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ln-kpi b { font-family: var(--font-display); font-size: 26px; }
.ln-kpi span { color: var(--subtle); font-size: 13px; }
.ln-kpi.good b { color: var(--green); }
.ln-kpi.warn b { color: var(--amber); }
.ln-team-card { padding: 6px 8px; overflow-x: auto; }
.ln-team { width: 100%; border-collapse: collapse; font-size: 14px; }
.ln-team th { text-align: left; font-size: 12px; color: var(--subtle); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.ln-team td { padding: 10px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.ln-team tr:last-child td { border-bottom: none; }
.ln-team tr.is-blocked { opacity: .55; }
.ln-who { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.ln-who > span:not(.ln-ava) { display: flex; flex-direction: column; }
.ln-who b { white-space: nowrap; }
.ln-who small { color: var(--subtle); font-size: 12px; }
.ln-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-weak); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; overflow: hidden; }
.ln-ava img { width: 100%; height: 100%; object-fit: cover; }
.ln-ava.lg { width: 64px; height: 64px; font-size: 20px; }
.ln-prog { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.ln-prog small { color: var(--subtle); font-size: 12px; }
.ln-prog.lg { min-width: 220px; margin-left: auto; }
.ln-track-sel { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--field-border); background: var(--surface); color: var(--ink); max-width: 210px; }
.ln-late { color: var(--amber); font-weight: 600; }
.ln-person-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ln-person-head p { margin: 4px 0 0; }
.ln-person-stage h2 { margin: 0 0 8px; font-size: 16px; }
/* One grid for every stage, so the columns line up from card to card. */
.ln-p-head, .ln-p-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px 150px 150px; gap: 12px; align-items: center; }
.ln-p-head { font-size: 12px; color: var(--subtle); font-weight: 600; padding: 0 8px 6px; border-bottom: 1px solid var(--divider); }
.ln-p-list { list-style: none; margin: 0; padding: 0; }
.ln-p-row { padding: 8px; border-bottom: 1px solid var(--divider); font-size: 14px; }
.ln-p-row:last-child { border-bottom: none; }
.ln-p-title { color: var(--ink); text-decoration: none; min-width: 0; }
.ln-p-title:hover { color: var(--accent-ink); }
.ln-person-head { justify-content: space-between; }
.ln-person-head > div:not(.ln-prog) { flex: 1; min-width: 0; }

/* First-visit invitation (learn.js → showInvite) */
.ln-invite { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 360px; display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); color: var(--ink); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 16px 18px;
  box-shadow: var(--sh-2); animation: ln-pop .35s ease; }
.ln-invite-icon { font-size: 28px; line-height: 1; }
.ln-invite b { font-size: 15px; }
.ln-invite p { margin: 4px 0 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.ln-invite-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Spotlight tour (learn-tour.js) */
.lt-layer { position: fixed; inset: 0; z-index: 1100; pointer-events: auto; background: transparent; transition: background .24s ease; }
.lt-layer.is-center { background: rgba(16, 20, 36, .6); }
.lt-spot { position: fixed; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 3px var(--accent), 0 0 0 200vmax rgba(16, 20, 36, .6);
  transition: top .32s cubic-bezier(.2,.7,.3,1), left .32s cubic-bezier(.2,.7,.3,1), width .32s cubic-bezier(.2,.7,.3,1), height .32s cubic-bezier(.2,.7,.3,1); }
.lt-layer.is-center .lt-spot { opacity: 0; }
.lt-card { position: fixed; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border-radius: var(--r-lg);
  padding: 18px 20px 16px; box-shadow: var(--sh-2); border: 1px solid var(--stroke); transition: top .32s ease, left .32s ease, opacity .2s ease; }
.lt-layer.is-moving .lt-card { opacity: .5; }
.lt-step { font-size: 12px; color: var(--subtle); font-weight: 600; }
.lt-title { margin: 4px 0 6px; font-family: var(--font-display); font-size: 18px; }
.lt-text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.lt-actions { display: flex; align-items: center; gap: 8px; }
.lt-gap { flex: 1; }
.lt-actions [hidden] { display: none; }
body.lt-open { overflow: hidden; }

@media (max-width: 1180px) {
  .ln-lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .ln-side { display: none; }
  .ln-kpis { grid-template-columns: repeat(3, 1fr); }
}
html.is-beta .ln-pv-bar { top: 34px; }   /* below the BETA stripe */
