  /* Identidad Talkride: papel cálido, tinta verde oscura, petróleo como único color de acción y títulos en serif.
     Fuente de títulos: Source Serif 4 (SIL OFL, en fonts/), alojada en la app para que funcione sin conexión. */
  @font-face { font-family: "Talkride Serif"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
  :root {
    --bg: #f4f1ea; --card: #fffdf8; --text: #17211f; --muted: #5a625f;
    --line: #e0dbd0; --accent: #0b6e66; --accent-soft: #e3efe9;
    --good: #2f7a3a; --mid: #a4580a; --bad: #b3261e; --on-accent: #ffffff;
    --serif: "Talkride Serif", "Iowan Old Style", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --r: 10px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0e1413; --card: #151d1b; --text: #e9ece6; --muted: #a2aba6;
      --line: #27322f; --accent: #5fd3c4; --accent-soft: #12302d;
      --good: #6fcf7f; --mid: #f0b44c; --bad: #f2817a; --on-accent: #0e1413;
    }
  }
  :root[data-text="lg"] { font-size: 112.5%; }
  :root[data-text="xl"] { font-size: 125%; }
  :root[data-contrast="alto"] { --muted: var(--text); --line: #6b7280; }
  :root[data-contrast="alto"] a { text-decoration: underline; }
  :root[data-contrast="alto"] .card { border-width: 2px; }
  * { box-sizing: border-box; }
  body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55;
         -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
  header { padding: 20px 16px 8px; max-width: 1100px; margin: 0 auto; }
  nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
  nav.tabs { gap: 2px; border-bottom: 1px solid var(--line); }
  nav.tabs a { text-decoration: none; color: var(--muted); padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  nav.tabs a.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
  header h1 { margin: 0; font-size: 2rem; line-height: 1.15; }
  header h1.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
  header h1.brand img { border-radius: 10px; flex: none; }
  .brand .ride { color: var(--accent); }
  header p { margin: 4px 0 0; color: var(--muted); }
  main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 16px;
         grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  @media (max-width: 860px) { main { grid-template-columns: minmax(0, 1fr); } }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
  .full { grid-column: 1 / -1; }
  h2 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 10px; }
  h3 { font-size: 1.05rem; }
  /* Rótulo pequeño en mayúsculas sobre un título: ordena sin necesidad de íconos. */
  .overline { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
  label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 4px; }
  select, button { font: inherit; }
  select { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--line);
           background: var(--card); color: var(--text); }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
  .prompt { background: var(--accent-soft); border-radius: 10px; padding: 12px; margin: 10px 0; }
  .prompt strong { display: block; margin-bottom: 4px; }
  .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  button { padding: 10px 16px; border-radius: 8px; border: 1.5px solid var(--line); cursor: pointer;
           background: var(--card); color: var(--text); font-weight: 600; }
  button:hover:not(:disabled) { border-color: var(--text); }
  button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  button:disabled { opacity: .5; cursor: not-allowed; }
  .stage { position: relative; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 4/3; }
  .stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
  .timer { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff;
           padding: 4px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; }
  .rec { position: absolute; top: 10px; right: 10px; color: #fff; background: #dc2626;
         padding: 4px 10px; border-radius: 6px; display: none; }
  .live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .tile { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
  .tile .k { font-size: .75rem; color: var(--muted); }
  .tile .v { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .meter { height: 6px; background: var(--line); border-radius: 3px; margin-top: 10px; overflow: hidden; }
  .meter > div { height: 100%; width: 0; background: var(--accent); transition: width .08s; }
  .transcript { min-height: 80px; max-height: 220px; overflow: auto; border: 1px solid var(--line);
                border-radius: 10px; padding: 10px; font-size: .95rem; }
  .transcript .interim { color: var(--muted); }
  mark.filler { background: #fde68a; color: #111; border-radius: 3px; padding: 0 2px; }
  mark.hedge { background: #bfdbfe; color: #111; border-radius: 3px; padding: 0 2px; }
  .note { font-size: .8rem; color: var(--muted); }
  .score-big { display: flex; align-items: center; gap: 16px; }
  /* Anillo de puntaje: el arco muestra el valor (--p, 0–100) en su color (--c). No se deforma en pantallas angostas. */
  .ring { flex: none; width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
          font-family: var(--serif); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.1;
          background: radial-gradient(closest-side, var(--card) 80%, transparent 81%), conic-gradient(var(--c, var(--accent)) calc(var(--p, 100) * 1%), var(--line) 0); }
  .chart-svg { display: block; width: 100%; height: auto; margin: 8px auto; overflow: visible; font-family: inherit; }
  .chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: .8rem; color: var(--muted); }
  .chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
  .dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
  .dim .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
  .dim .bar > div { height: 100%; }
  table { width: 100%; border-collapse: collapse; font-size: .9rem; }
  th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
  td.num { font-variant-numeric: tabular-nums; }
  .pill { font-size: .75rem; padding: 2px 8px; border-radius: 6px; border: 1px solid currentColor; }
  .fb { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 10px; }
  .fb div { border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
  .fb h3 { margin: 0 0 4px; font-size: .9rem; }
  canvas { width: 100%; height: 140px; display: block; }
  textarea { width: 100%; min-height: 120px; font: .8rem ui-monospace, monospace; border-radius: 8px;
             border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 8px; }
  #report { display: none; }
  #replay { width: 100%; max-height: 420px; border-radius: 10px; margin-top: 8px; background: #000; }
  input[type="range"] { width: 100%; accent-color: var(--accent); }
  .scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
  .ai-box { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 14px 16px; margin-top: 10px; }
  .ai-box h3 { margin: 12px 0 4px; font-size: .95rem; }
  .ai-box blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--accent); color: var(--muted); }
  .chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .chip { font-size: .8rem; padding: 2px 10px; border-radius: 6px; background: var(--accent-soft); }
  .chip.miss { background: transparent; border: 1px solid var(--bad); color: var(--bad); }
  .badge-ai { font-size: .75rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
  .hidden { display: none !important; }

  /* ---------- Usabilidad: objetivos táctiles, foco visible, movimiento reducido ---------- */
  button, select, .btn-link { min-height: 44px; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
  a { color: var(--accent); }
  textarea { width: 100%; font: inherit; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 10px; min-height: 110px; }
  .btn-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1.5px solid var(--line); color: var(--text); }
  .btn-link.primary, .btn-link.cta, button.cta { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
  button.cta, .btn-link.cta { font-size: 1.05rem; padding: 14px 22px; border-radius: 8px; font-weight: 700; min-height: 52px; letter-spacing: .005em; }
  button.cta:hover:not(:disabled), .btn-link.cta:hover { filter: brightness(1.08); border-color: var(--accent); }
  .muted { color: var(--muted); }
  .lead { font-size: 1.05rem; }
  details { border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; margin-top: 12px; }
  details > summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; }
  details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }

  /* ---------- Barra inferior en móvil (zona del pulgar) ---------- */
  nav.bottom-nav { display: none; }
  @media (max-width: 700px) {
    nav.tabs { display: none; }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    nav.bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card);
      border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
    nav.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center;
      color: var(--muted); text-decoration: none; font-size: .72rem; border-radius: 10px; }
    nav.bottom-nav a.on { color: var(--accent); font-weight: 700; }
    header h1 { font-size: 1.35rem; }
    .row { grid-template-columns: 1fr; }
  }

  /* ---------- Escala de nervios con 5 botones (más rápida que un deslizador) ---------- */
  .feel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .feel button { font-family: var(--serif); font-size: 1.3rem; padding: 6px 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
  .feel button small { font-family: var(--sans); font-size: .66rem; color: var(--muted); font-weight: 500; }
  .feel button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; background: var(--accent-soft); }

  /* ---------- Escenario de grabación ---------- */
  .overlay-prompt { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(0,0,0,.62); color: #fff;
    border-radius: 10px; padding: 8px 12px; font-size: .95rem; }
  .countdown { position: absolute; inset: 0; display: none; place-items: center; font-size: 5rem; font-weight: 800; color: #fff;
    background: rgba(0,0,0,.45); }
  .progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
  .progress > div { height: 100%; width: 0; background: var(--accent); }
  .stage-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; text-align: center; padding: 20px; }

  /* ---------- Audiencia virtual ---------- */
  .audience { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 10px; }
  .audience .p { aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
    transition: transform .4s, opacity .4s; }
  .audience .p.off { opacity: .45; transform: rotate(-14deg) translateY(4px); }
  .aud-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

  /* ---------- Inicio ---------- */
  /* Tarjeta principal: petróleo sólido con el camino del logo dibujado en la esquina (igual en claro y oscuro). */
  .hero { background: #0b5f58 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath d='M10 110C80 110 100 20 170 20' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='14' stroke-linecap='round'/%3E%3Ccircle cx='186' cy='20' r='9' fill='%23f5a524' fill-opacity='.85'/%3E%3C/svg%3E") no-repeat right -18px bottom -10px / 150px auto;
          color: #fff; border: 0; }
  .hero h2 { color: #fff; }
  .hero .muted, .hero .note { color: #d3ece8; }
  .hero .btn-link.cta { background: #fff; color: #084c47; border-color: #fff; }
  .hero a:not(.btn-link) { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
  .wait { display: flex; align-items: center; gap: 8px; }
  .spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; flex: none; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
  .check { display: flex; gap: 8px; align-items: center; color: var(--text); min-height: 44px; }
  .foryou { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .fy { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
  .fy p { margin: 6px 0; }
  .memory { border-left: 3px solid var(--accent); padding: 6px 10px; margin-top: 8px; }
  /* Accesos como lista (una fila por función, con flecha): se lee de un vistazo y no parece una grilla de tarjetas. */
  .quick { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
  @media (min-width: 760px) { .quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .quick a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 13px 2px;
             border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); min-height: 56px; }
  .quick a::after { content: "›"; grid-column: 2; grid-row: 1 / span 2; font-size: 1.5rem; color: var(--muted); line-height: 1; }
  .quick a:hover strong { color: var(--accent); }
  .quick a strong { display: flex; align-items: center; font-weight: 650; }
  .quick a span { font-size: .85rem; color: var(--muted); padding-left: 30px; }
  .chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips-select button { border-radius: 8px; }
  .chips-select button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  input.field { width: 100%; min-height: 44px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
  .bar-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 8px; }
  .bar-label + .progress, .bar-label + .meter { margin-top: 2px; }
  .meter.vol > div { background: var(--good); }
  /* Lecciones */
  .lesson-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 8px; }
  .lesson-item { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px; border-radius: var(--r); }
  .lesson-item small { display: block; color: var(--muted); font-size: .78rem; }
  .lesson ol, .lesson ul { padding-left: 20px; }
  .lesson li { margin: 4px 0; }
  .quiz { display: grid; gap: 6px; }
  .quiz button { text-align: left; }
  .quiz button.right { border-color: var(--good); box-shadow: 0 0 0 2px var(--good) inset; }
  .quiz button.wrong { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad) inset; }
  /* Evento real */
  .ev-plan { list-style: none; padding: 0; display: grid; gap: 6px; }
  .ev-item { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
  .ev-item label { display: flex; gap: 8px; align-items: flex-start; flex: 1; min-width: 0; color: var(--text); font-size: .95rem; }
  .ev-item label input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
  .ev-item small { color: var(--muted); display: block; }
  .ev-item.done span { text-decoration: line-through; color: var(--muted); }
  .ev-questions details { margin-top: 6px; }
  .ladder { padding: 0; }
  .ladder li { list-style: none; margin: 6px 0; }
  .ladder label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; color: var(--text); font-size: .95rem; }
  .ladder input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
  /* Diagnóstico y metas */
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .win-box { border-left: 4px solid var(--good); background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
  .link-btn { background: none; border: none; color: var(--accent); text-decoration: underline; padding: 8px 4px; min-height: 44px; }
  .steps-line { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-left: 18px; color: var(--muted); }
  .self-item { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .self-item p { margin: 0 0 6px; }
  .scale5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .scale5 button { display: flex; flex-direction: column; align-items: center; padding: 6px 0; line-height: 1.15; font-weight: 700; }
  .scale5 button small { font-weight: 400; font-size: .68rem; color: var(--muted); }
  .scale5 button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  .scale5 button[aria-pressed="true"] small { color: inherit; }
  .goal-pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); margin: 6px 0; cursor: pointer; color: var(--text); }
  .goal-pick input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
  .goal-pick small { display: block; color: var(--muted); }
  .goal { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin: 8px 0; }
  .goal-head, .goal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
  .goal-foot { margin-top: 6px; }
  /* Calificación */
  .stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 420px; }
  .nps { display: flex; flex-wrap: wrap; gap: 6px; }
  .stars button { padding: 8px 0; font-weight: 700; }
  .nps button { min-width: 44px; padding: 8px 0; }
  .stars button[aria-pressed="true"], .nps button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  .feats { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .feats .chk { display: inline-flex; gap: 6px; align-items: center; color: var(--text); font-size: .95rem; }
  .dist-row { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; margin: 4px 0; }
  .warn-banner { background: #fff7ed; color: #7c2d12; border: 1px solid #fdba74; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; }
  /* Cada etiqueta va antes de su campo de archivo oculto: el anillo de foco se pinta en la etiqueta. */
  label:has(+ input[type="file"]:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
  body.first-run nav.bottom-nav, body.first-run nav.tabs { display: none; }
  .help-card summary { font-weight: 700; cursor: pointer; }
  .chk { display: inline-flex; gap: 8px; align-items: center; color: var(--text); }
  .week { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 6px; }
  .week .wk { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .7rem; border: 1px solid currentColor; opacity: .55; }
  .week .wk.on { background: var(--good); border-color: var(--good); color: #fff; opacity: 1; }
  .week .wk.today { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; }
  /* Íconos de línea propios junto a títulos y accesos (reemplazan los emojis). */
  [data-icon]:not(strong) { display: inline-flex; align-items: center; }
  [data-icon] > svg { flex: none; color: var(--accent); margin-inline-end: 8px; vertical-align: -4px; }
  .dg-video { width: 100%; max-width: 320px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: #000; transform: scaleX(-1); margin: 8px 0; }
  /* Método RIDE: cuatro pasos con su letra; en columna en el celular y en fila en pantallas anchas. */
  .ride-steps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ride-steps li { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
  .ride-steps li small { display: block; color: var(--muted); font-size: .8rem; }
  .ride-l { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800;
            background: var(--accent); color: var(--on-accent); margin-inline-end: 10px; }
  .ride-steps li .ride-l { margin-inline-end: 0; }
  .ride-step h2 { display: flex; align-items: center; }

  /* Lecciones: minutos o ✓ en un cuadro, en lugar de un emoji. */
  .lesson-mark { flex: none; width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 700;
                 font-size: .85rem; border: 1.5px solid var(--line); color: var(--muted); }
  .lesson-mark.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  /* Niveles: cinco peldaños, el actual resaltado. */
  .lv-path { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .lv-path li { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--muted); }
  .lv-path li::before { content: ""; height: 6px; border-radius: 3px; background: var(--line); }
  .lv-path li.done::before { background: var(--accent); opacity: .45; }
  .lv-path li.now::before { background: var(--accent); }
  .lv-path li.now { color: var(--text); font-weight: 700; }
  /* En el celular sólo el peldaño actual muestra su nombre; los demás, su número. */
  .lv-path li .lv-name { display: none; }
  .lv-path li.now .lv-name { display: block; white-space: nowrap; }
  .lv-path li.now .lv-n { display: none; }
  @media (min-width: 760px) { .lv-path li .lv-name { display: block; } .lv-path li .lv-n { display: none; } }
  .lv-focus { margin: 0 0 8px; }
  .lv-subtitle { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
  .lv-req { list-style: none; padding: 0; margin: 0; }
  .lv-req li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line); }
  .lv-req li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--muted); }
  .lv-req li.ok::before { background: var(--accent); border-color: var(--accent); }
  .lv-req small { color: var(--muted); }
  .tag-level { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .levels-list { list-style: none; padding: 0; margin: 0; counter-reset: lv; }
  .levels-list li { border-top: 1px solid var(--line); padding: 12px 0; }
  .levels-list h3 { margin: 0 0 4px; font-size: 1.15rem; }
  .levels-list p { margin: 0 0 4px; }
  /* Tablas anchas se desplazan dentro de su caja (nunca toda la página) y las direcciones largas se cortan. */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  li, p { overflow-wrap: break-word; }
