/* Learning portal: dashboard, course player, activities, analytics. */
:root { --lx-r: 16px; --lx-ok: #1b6b45; --lx-ok-bg: #e6f3ec; --lx-no: #9a3412; --lx-no-bg: #fbeee6; --lx-focus: #0b5cad; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lx-player :focus-visible, .lx-dash :focus-visible, .lx-analytics :focus-visible { outline: 3px solid var(--lx-focus); outline-offset: 2px; }
.lx-kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin: 0 0 4px; }
.lx-meta { font-size: 14px; color: var(--ink-soft); margin: 6px 0; }
.lx-hint { font-size: 14px; color: var(--ink-soft); }
.btn-small { padding: 5px 11px; font-size: 13px; }
.btn-icon { padding: 4px 10px; min-width: 36px; }
.btn:not([disabled]):hover { border-color: var(--accent); }
.lx-linkbtn { background: none; border: 0; padding: 2px 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 4px; }
.lx-done-tag { font-size: 13px; color: var(--lx-ok); font-weight: 600; background: var(--lx-ok-bg); padding: 3px 10px; border-radius: 999px; }

/* Dashboard */
.lx-dash-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lx-dash-h h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 2rem; }
.lx-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 8px 0 24px; }
.lx-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--lx-r); padding: 14px 16px; box-shadow: var(--shadow); }
.lx-stat strong { display: block; font-size: 1.9rem; font-family: var(--serif); color: var(--accent); line-height: 1.1; }
.lx-stat span { font-size: 13px; color: var(--ink-soft); }
.lx-stat.is-over strong { color: var(--lx-no); }
.lx-next { margin-bottom: 24px; }
.lx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.lx-tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-soft); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
.lx-tabs a.is-on { color: var(--accent); border-color: var(--accent); }
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lx-scope h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.lx-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--lx-r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.lx-card:hover { transform: translateY(-2px); box-shadow: 0 2px 0 rgba(0,0,0,.03), 0 18px 34px rgba(23,33,28,.1); }
.lx-card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--lx-r); }
.lx-card-link:focus-visible { outline: 3px solid var(--lx-focus); outline-offset: -3px; }
.lx-card-cover { position: relative; aspect-ratio: 16 / 7; background: var(--bg-deep); overflow: hidden; }
.lx-card-cover svg { width: 100%; height: 100%; display: block; }
.lx-ph-cover { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #ece5d6 0 12px, #e4dccb 12px 24px); color: var(--ink-soft); font-weight: 600; }
.lx-card.is-ph { opacity: .85; }
.lx-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lx-card-body h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.lx-card.is-big { flex-direction: row; }
.lx-card.is-big .lx-card-cover { aspect-ratio: auto; width: 42%; min-height: 200px; }
.lx-card.is-big h4 { font-size: 1.35rem; font-family: var(--serif); }
.lx-badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,252,247,.94); color: var(--ink); }
.lx-badge.lx-s-completed { background: var(--lx-ok); color: #fff; }
.lx-badge.lx-s-in-progress { background: #fff3cf; color: #6b4a00; }
.lx-badge.lx-draft-b { left: auto; right: 10px; background: #3b1d0f; color: #ffe9d2; }
.lx-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.lx-kinds span { font-size: 12px; background: var(--chip); color: var(--accent); border-radius: 999px; padding: 2px 8px; }
.lx-mini { height: 6px; background: #e6dfd0; border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.lx-mini span { display: block; height: 100%; background: var(--accent-2); border-radius: 99px; }
.lx-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.lx-cta { margin-left: auto; font-weight: 600; color: var(--accent); }
.lx-chip-s { font-size: 12px; background: #f1ece1; border-radius: 999px; padding: 3px 9px; color: var(--ink-soft); }
.lx-chip-s.is-soon { background: #fff3cf; color: #6b4a00; }
.lx-chip-s.is-over { background: var(--lx-no-bg); color: var(--lx-no); font-weight: 600; }
.lx-certs { display: grid; gap: 12px; }
.lx-cert { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #fffcf7, #f4efe3); border: 1px solid #d9caa3; border-radius: var(--lx-r); padding: 16px 18px; }
.lx-cert h4 { margin: 0; }
.lx-cert-seal { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--accent); color: #f2c14e; display: grid; place-items: center; font-size: 26px; box-shadow: 0 0 0 4px #e8dcb8; }

/* Player chrome */
.lx-top { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--lx-r); padding: 14px 18px; box-shadow: var(--shadow); position: sticky; top: 76px; z-index: 5; }
.lx-top h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.lx-back { text-decoration: none; font-weight: 600; white-space: nowrap; }
.lx-top-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.lx-progress { width: 140px; height: 8px; background: #e6dfd0; border-radius: 99px; overflow: hidden; }
.lx-progress span { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .4s; }
.lx-pct { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.lx-timer { font-size: 13px; background: #f1ece1; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.lx-timer.is-met { background: var(--lx-ok-bg); color: var(--lx-ok); }
.lx-timer.is-paused { background: #fff3cf; color: #6b4a00; }
.lx-draft { margin: 12px 0 0; background: #3b1d0f; color: #ffe9d2; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.lx-draft a { color: #ffd9a8; }
.lx-sync { margin: 10px 0 0; }
.lx-layout { display: grid; grid-template-columns: 270px 1fr; gap: 22px; margin-top: 18px; align-items: start; }
.lx-outline { position: sticky; top: 170px; }
.lx-outline details { background: var(--card); border: 1px solid var(--line); border-radius: var(--lx-r); padding: 10px; }
.lx-outline summary { font-weight: 600; padding: 4px 6px 8px; cursor: pointer; }
.lx-outline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(100vh - 260px); overflow: auto; }
.lx-step { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 8px; border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.lx-step:hover { background: #f4efe4; }
.lx-step.is-cur { background: var(--chip); font-weight: 600; color: var(--accent); }
.lx-step-ico { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 2px solid var(--line); background: #fff; }
.lx-step.is-done .lx-step-ico { background: var(--lx-ok); border-color: var(--lx-ok); color: #fff; }
.lx-step.is-cur .lx-step-ico { border-color: var(--accent); }
.lx-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--lx-r); padding: 26px 30px 30px; box-shadow: var(--shadow); min-width: 0; }
.lx-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: center; margin: -6px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.lx-hero svg { width: 100%; border-radius: 12px; display: block; aspect-ratio: 16/9; }
.lx-hero ul { margin: 4px 0 8px; padding-left: 20px; }
.lx-lesson-h h3 { font-family: var(--serif); font-size: 1.75rem; margin: 0 0 14px; line-height: 1.2; }
.lx-lesson-h h3:focus { outline: none; }
.lx-text h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.lx-prose { max-width: 46rem; }
.lx-prose table { font-size: 14px; }
.lx-prose blockquote, .lx-ack-text { border-left: 4px solid var(--accent-2); margin: 12px 0; padding: 8px 16px; background: #f6f2e8; border-radius: 0 10px 10px 0; }
.lx-callout { border-radius: 12px; padding: 12px 16px; margin: 14px 0; background: #eef5f1; border: 1px solid #cfe2d7; }
.lx-callout.lx-warn { background: var(--sandbox-bg); border-color: #e2c397; }
.lx-callout strong { display: block; }
.lx-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.lx-lesson-status { margin-top: 18px; }
.lx-lesson-ok { color: var(--lx-ok); font-weight: 600; }

/* Activity blocks */
.lx-block { margin: 26px 0; border: 1px solid var(--line); border-radius: var(--lx-r); padding: 18px 20px; background: #fff; position: relative; }
.lx-block::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--accent-2); }
.lx-bhead h4 { margin: 0 0 6px; font-size: 1.1rem; }
.lx-prompt { margin: 0 0 10px; color: var(--ink-soft); }
.lx-choices { border: 0; padding: 0; margin: 8px 0; }
.lx-choices legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.lx-choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0; cursor: pointer; background: #fffdf9; }
.lx-choice:hover { border-color: var(--accent-2); }
.lx-choice input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.lx-choice:has(input:checked) { border-color: var(--accent); background: #f1f7f3; }
.lx-choice.is-right { border-color: var(--lx-ok); background: var(--lx-ok-bg); }
.lx-choice.is-wrong { border-color: var(--lx-no); background: var(--lx-no-bg); }
.lx-tag-ok { margin-left: auto; font-size: 12px; color: var(--lx-ok); font-style: normal; font-weight: 600; }
.lx-fb-ok, .lx-fb-no { border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.lx-fb-ok { background: var(--lx-ok-bg); border: 1px solid #b9dcc8; }
.lx-fb-no { background: var(--lx-no-bg); border: 1px solid #efc9b2; }
.lx-fb-ok p, .lx-fb-no p { margin: 6px 0 0; }
.lx-why { font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 8px; }
.lx-block textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.lx-label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.lx-model { margin-top: 12px; background: #f1f7f3; border: 1px solid #cfe2d7; border-radius: 12px; padding: 12px 16px; }

.lx-flipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.lx-flip { perspective: 900px; background: none; border: 0; padding: 0; height: 150px; cursor: pointer; font: inherit; border-radius: 14px; }
.lx-flip-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.lx-flip.is-on .lx-flip-in { transform: rotateY(180deg); }
.lx-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; }
.lx-ffront { background: var(--accent); color: #f6fff9; font-weight: 600; font-size: 1.05rem; }
.lx-ffront small { font-weight: 400; font-size: 12px; opacity: .8; margin-top: 8px; }
.lx-fback { background: #fffaf0; border: 2px solid #e2c397; transform: rotateY(180deg); font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .lx-flip-in, .lx-card, .lx-progress span { transition: none; } }

.lx-pool { border: 2px dashed var(--line); border-radius: 14px; padding: 10px; min-height: 58px; background: #fbf8f1; }
.lx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lx-chips li { max-width: 100%; }
.lx-empty { color: var(--ink-soft); font-size: 14px; padding: 6px; }
.lx-chip { font: inherit; font-size: 14.5px; text-align: left; border: 1px solid #c9bea5; background: #fff; border-radius: 10px; padding: 8px 12px; cursor: grab; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.lx-chip.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px #b9dcc8; }
.lx-chip.is-right { border-color: var(--lx-ok); background: var(--lx-ok-bg); }
.lx-chip.is-wrong { border-color: var(--lx-no); background: var(--lx-no-bg); }
.lx-chip.is-dragging { opacity: .5; }
.lx-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.lx-bucket { border: 2px solid var(--line); border-radius: 14px; padding: 10px; min-height: 120px; background: #fffdf9; }
.lx-bucket-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.lx-drop.is-over { border-color: var(--accent); background: #eef5f1; }
.lx-chips .lx-why { margin: 4px 2px 6px; }

.lx-seq { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.lx-seq-item { display: flex; gap: 12px; align-items: center; border: 1px solid #c9bea5; background: #fff; border-radius: 12px; padding: 8px 10px; cursor: grab; }
.lx-seq-item.is-over { border-color: var(--accent); box-shadow: 0 -3px 0 var(--accent); }
.lx-seq-item.is-right { border-color: var(--lx-ok); background: var(--lx-ok-bg); }
.lx-seq-item.is-wrong { border-color: var(--lx-no); background: var(--lx-no-bg); }
.lx-num { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--chip); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lx-seq-text { flex: 1; }
.lx-seq-btns { display: flex; gap: 4px; }
.lx-seq-should { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.lx-match { display: grid; gap: 8px; }
.lx-match-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fffdf9; }
.lx-match-row select { width: 100%; font: inherit; padding: 8px; border-radius: 10px; border: 1px solid #c9bea5; background: #fff; }
.lx-match-row.is-right { border-color: var(--lx-ok); background: var(--lx-ok-bg); }
.lx-match-row.is-wrong { border-color: var(--lx-no); background: var(--lx-no-bg); }
.lx-match-row .lx-why { grid-column: 1 / -1; margin: 0; }
.lx-match-left { font-weight: 500; }

.lx-doc { border: 1px solid #cfc6b2; border-radius: 12px; overflow: hidden; background: #fff; }
.lx-doc-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: #f1ece1; padding: 10px 14px; font-size: 14px; }
.lx-doc-lines { list-style: none; margin: 0; padding: 6px; }
.lx-line { width: 100%; text-align: left; font: inherit; font-size: 14.5px; background: none; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-family: "IBM Plex Sans", sans-serif; }
.lx-line:hover { background: #faf6ec; }
.lx-line.is-flag { background: #fff3cf; border-color: #e0c060; }
.lx-line.is-right { background: var(--lx-ok-bg); border-color: var(--lx-ok); }
.lx-line.is-wrong { background: var(--lx-no-bg); border-color: var(--lx-no); }
.lx-line.is-missed { border: 2px dashed var(--lx-no); }
.lx-doc-lines .lx-why { margin: 2px 10px 8px; }

.lx-stage { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-deep); }
.lx-stage svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.lx-hotscene { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.lx-hot { position: absolute; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 0 0 4px rgba(31,107,82,.35), 0 4px 10px rgba(0,0,0,.25); animation: lx-pulse 2.2s infinite; }
.lx-hot.is-open { background: #0b5cad; animation: none; }
.lx-hot.is-right { background: var(--lx-ok); animation: none; }
.lx-hot.is-wrong { background: var(--lx-no); animation: none; }
@keyframes lx-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(31,107,82,.35), 0 4px 10px rgba(0,0,0,.25); } 50% { box-shadow: 0 0 0 10px rgba(31,107,82,.08), 0 4px 10px rgba(0,0,0,.25); } }
@media (prefers-reduced-motion: reduce) { .lx-hot { animation: none; } }
.lx-hotpanel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fffdf9; min-height: 140px; }
.lx-hotpanel h5 { margin: 0 0 6px; font-size: 1rem; }
.lx-hotlist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }

.lx-branch .lx-stage { margin-bottom: 12px; }
.lx-bubble { position: absolute; top: 6%; max-width: 38%; background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 14px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.lx-bubble::after { content: ""; position: absolute; bottom: -10px; left: 30px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.lx-node-text { font-size: 1.05rem; font-weight: 500; }
.lx-node-text:focus, .lx-end h5:focus { outline: none; }
.lx-branch-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.lx-branch-choices legend { font-weight: 600; margin-bottom: 6px; }
.lx-option { text-align: left; font: inherit; background: #fff; border: 1px solid #c9bea5; border-left: 5px solid var(--accent-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.lx-option:hover { background: #f3f8f5; border-color: var(--accent); }
.lx-lastchoice { background: #f4efe4; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.lx-end { border-radius: 14px; padding: 14px 16px; border: 2px solid; }
.lx-end h5 { font-size: 1.15rem; margin: 2px 0 6px; }
.lx-end-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin: 0; }
.lx-r-best { border-color: var(--lx-ok); background: var(--lx-ok-bg); } .lx-r-best .lx-end-badge { background: var(--lx-ok); color: #fff; }
.lx-r-ok { border-color: #c99a2e; background: #fff7e0; } .lx-r-ok .lx-end-badge { background: #c99a2e; color: #fff; }
.lx-r-poor { border-color: var(--lx-no); background: var(--lx-no-bg); } .lx-r-poor .lx-end-badge { background: var(--lx-no); color: #fff; }
.lx-path ol { padding-left: 20px; margin: 6px 0; }
.lx-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; color: #fff; margin-right: 4px; }
.lx-q-best { background: var(--lx-ok); } .lx-q-ok { background: #c99a2e; } .lx-q-poor { background: var(--lx-no); }
.lx-say { margin: 8px 0 0; font-size: 14.5px; } .lx-caption { font-size: 1rem; margin: 10px 0 0; }
.lx-fstep { background: var(--chip); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
.lx-dots { display: flex; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.lx-dots li { width: 10px; height: 10px; border-radius: 50%; background: #d8cfbd; } .lx-dots li.seen { background: #9ab3a8; } .lx-dots li.on { background: var(--accent); }

/* Assessment and completion */
.lx-qitem { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; background: #fff; }
.lx-qn { color: var(--accent); }
.lx-score { display: flex; gap: 20px; align-items: center; padding: 16px; border-radius: 14px; margin: 8px 0 16px; }
.lx-score.is-pass { background: var(--lx-ok-bg); } .lx-score.is-fail { background: var(--lx-no-bg); }
.lx-ring { --p: 0; width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), #e6dfd0 0); }
.lx-score.is-fail .lx-ring { background: conic-gradient(var(--lx-no) calc(var(--p) * 1%), #ead9cc 0); }
.lx-ring span { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; }
.lx-review { padding-left: 20px; } .lx-review li { margin: 8px 0; padding: 8px 12px; border-radius: 10px; } .lx-review li.is-right { background: #f3faf6; } .lx-review li.is-wrong { background: #fdf4ee; }
.lx-review p { margin: 2px 0; }
.lx-reqs { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; }
.lx-reqs li { padding: 8px 12px; border-radius: 10px; background: #f4efe4; } .lx-reqs li.is-ok { background: var(--lx-ok-bg); color: var(--lx-ok); font-weight: 500; }
.lx-check input { accent-color: var(--accent); }
.lx-policy { margin-top: 12px; }
.lx-history { margin-top: 14px; font-size: 14px; }

/* Analytics */
.lx-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 6px 0 18px; }
.lx-filters label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.lx-filters select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-width: 180px; }
.lx-analytics section { margin: 18px 0; } .lx-analytics h3 { margin: 0 0 10px; }
.lx-table td, .lx-table th { white-space: nowrap; } .lx-table th[scope="row"] { white-space: normal; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); min-width: 220px; }
.lx-cell-bar { display: inline-block; width: 60px; height: 6px; background: #e6dfd0; border-radius: 9px; vertical-align: middle; overflow: hidden; } .lx-cell-bar span { display: block; height: 100%; background: var(--accent-2); }
.lx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lx-two > section { background: var(--card); border: 1px solid var(--line); border-radius: var(--lx-r); padding: 16px 18px; margin: 0; }
.lx-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lx-bars li { display: grid; grid-template-columns: 120px 1fr 48px; gap: 10px; align-items: center; font-size: 14px; }
.lx-bar-t { height: 12px; background: #e6dfd0; border-radius: 9px; overflow: hidden; } .lx-bar-t span { display: block; height: 100%; background: var(--accent-2); border-radius: 9px; }
.lx-bar-v { font-weight: 600; text-align: right; } .lx-bar-n { grid-column: 2 / -1; font-size: 12px; color: var(--ink-soft); margin-top: -6px; }
.lx-missed { padding-left: 20px; margin: 0; } .lx-missed li { margin: 6px 0; } .lx-missed li span { margin-right: 8px; }
.lx-recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 420px; overflow: auto; font-size: 14px; }

/* Responsive */
@media (max-width: 980px) { .lx-stats { grid-template-columns: repeat(3, 1fr); } .lx-two { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .lx-layout { grid-template-columns: 1fr; }
  .lx-outline { position: static; }
  .lx-outline ol { max-height: none; }
  .lx-top { grid-template-columns: 1fr; position: static; gap: 8px; }
  .lx-top-meta { justify-content: flex-start; }
  .lx-hotscene { grid-template-columns: 1fr; }
  .lx-hero { grid-template-columns: 1fr; }
  .lx-card.is-big { flex-direction: column; } .lx-card.is-big .lx-card-cover { width: 100%; min-height: 0; aspect-ratio: 16/7; }
}
@media (max-width: 600px) {
  .lx-stats { grid-template-columns: repeat(2, 1fr); }
  .lx-main { padding: 18px 16px 22px; }
  .lx-block { padding: 14px 14px; }
  .lx-match-row { grid-template-columns: 1fr; }
  .lx-lesson-h h3 { font-size: 1.45rem; }
  .lx-bubble { font-size: 12px; max-width: 46%; padding: 6px 8px; }
  .lx-hot { width: 32px; height: 32px; }
  .lx-dash-h h2 { font-size: 1.6rem; }
  .lx-nav .btn { flex: 1; }
}
a.btn { text-decoration: none; display: inline-block; }
.lx-hot::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 14px; height: 3px; background: #fff; transform: rotate(-45deg); transform-origin: right; }

/* Typed radio drills, self-assessment and action plan */
.lx-ok { color: var(--lx-ok); font-weight: 600; }
.lx-bad { color: var(--lx-no); font-weight: 600; }
.lx-radio { background: #10202f; color: #e8f1f8; border-radius: 12px; padding: .9rem 1.1rem; margin: .5rem 0 .9rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lx-radio-clock { margin: 0 0 .35rem; font-size: .85rem; color: #a9c3d8; }
.lx-radio-tx { margin: 0; font-size: 1.05rem; }
.lx-typed-in { width: 100%; font: inherit; font-size: 1.05rem; padding: .65rem .8rem; border: 2px solid #b9b2a3; border-radius: 10px; }
.lx-typed-in:focus { outline: 3px solid var(--lx-focus); outline-offset: 1px; }
.lx-std { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--lx-ok-bg); padding: .1rem .35rem; border-radius: 6px; }
.lx-typed-log { padding-left: 1.2rem; }
.lx-typed-log li { margin: .35rem 0; display: grid; gap: .1rem; }
.lx-tx { color: #555; font-size: .9rem; }
.lx-ack { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--lx-ok); }
.lx-self-q { border: 1px solid #e3dccd; border-radius: 12px; padding: .6rem .9rem; margin: 0 0 .6rem; }
.lx-self-q legend { font-weight: 600; padding: 0 .3rem; }
.lx-self-scale { display: flex; flex-wrap: wrap; gap: .4rem; }
.lx-self-scale label { display: inline-flex; gap: .35rem; align-items: center; border: 1px solid #d8d0bf; border-radius: 999px; padding: .3rem .7rem; cursor: pointer; }
.lx-self-scale input:checked + span { font-weight: 700; }
.lx-profile { background: #f7f3ea; border-radius: 12px; padding: .8rem 1rem; margin-top: .6rem; }
.lx-prow { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 2.5rem; gap: .6rem; align-items: center; margin: .3rem 0; }
.lx-pbar { height: 12px; background: #e6dfd0; border-radius: 999px; overflow: hidden; display: block; }
.lx-pbar > span { display: block; height: 100%; background: var(--accent-2, #1b6b45); }
.lx-plan textarea { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #c9c1b0; border-radius: 10px; margin-bottom: .7rem; }
.lx-plan textarea:focus { outline: 3px solid var(--lx-focus); outline-offset: 1px; }
.lx-bscore { margin: .2rem 0 .5rem; }
.lx-typed-q input { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #c9c1b0; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lx-self-scale label span { white-space: nowrap; }
