/* Ergogenis · mapa · tema claro y oscuro con tokens en :root, tipografía del sistema, móvil primero.
   El tema sigue al sistema (prefers-color-scheme); el botón de la cabecera lo fija con data-theme. */
:root {
  --bg: #F6F7F9;
  --panel: #FFFFFF;
  --panel-2: #F0F2F5;
  --line: #DCE1E8;
  --text: #121A26;
  --muted: #566476;
  --accent: #0A6C80;
  --accent-strong: #07505F;
  --accent-dim: rgba(10, 108, 128, 0.10);
  --warn: #A2480C;
  --warn-dim: rgba(196, 92, 20, 0.10);
  --bad: #B42323;
  --bad-dim: rgba(180, 35, 35, 0.08);
  /* semáforo del veredicto */
  --v-works: #178A4C;
  --v-probably: #0A7F96;
  --v-little: #A87A00;
  --v-no: #7A8594;
  --v-unknown: #B5BDC8;
  --v-prohibited: #C62828;
  --v-harm: #C8500B;        /* balance: probablemente perjudicial (naranja, distinto del rojo de lo prohibido) */
  --v-harm-dim: rgba(200, 80, 11, 0.09);
  /* grados */
  --grade-a: #178A4C;
  --grade-b: #0A7F96;
  --grade-c: #946B00;
  --grade-d: #66727F;
  --grade-x: #B42323;
  /* barras del perfil */
  --bar-track: #E7EBF0;
  --bar-high: #0A7F96;
  --bar-mid: #5FAFBF;
  --bar-low: #B7C3CF;
  --limit: #C45C14;
  --jump: #6A45C2;
  --jump-dim: rgba(106, 69, 194, 0.10);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220; --panel: #111B2B; --panel-2: #0E1727; --line: #243349; --text: #E9EFF6; --muted: #9AAEC2;
    --accent: #3DD6EA; --accent-strong: #7FE6F2; --accent-dim: rgba(61, 214, 234, 0.13);
    --warn: #FB9B55; --warn-dim: rgba(251, 139, 60, 0.13); --bad: #FF8A8A; --bad-dim: rgba(247, 111, 111, 0.12);
    --v-works: #6FDE9F; --v-probably: #3DD6EA; --v-little: #F2D46B; --v-no: #8DA2B8; --v-unknown: #4A5D74; --v-prohibited: #FF7070;
    --v-harm: #FFA05C; --v-harm-dim: rgba(255, 160, 92, 0.12);
    --grade-a: #7FE0A8; --grade-b: #3DD6EA; --grade-c: #F2D46B; --grade-d: #9AAEC2; --grade-x: #FF8A8A;
    --bar-track: #1A2638; --bar-high: #3DD6EA; --bar-mid: #2A93A3; --bar-low: #3C5570; --limit: #FB9B55;
    --jump: #B9A2FF; --jump-dim: rgba(185, 162, 255, 0.14);
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220; --panel: #111B2B; --panel-2: #0E1727; --line: #243349; --text: #E9EFF6; --muted: #9AAEC2;
  --accent: #3DD6EA; --accent-strong: #7FE6F2; --accent-dim: rgba(61, 214, 234, 0.13);
  --warn: #FB9B55; --warn-dim: rgba(251, 139, 60, 0.13); --bad: #FF8A8A; --bad-dim: rgba(247, 111, 111, 0.12);
  --v-works: #6FDE9F; --v-probably: #3DD6EA; --v-little: #F2D46B; --v-no: #8DA2B8; --v-unknown: #4A5D74; --v-prohibited: #FF7070;
  --v-harm: #FFA05C; --v-harm-dim: rgba(255, 160, 92, 0.12);
  --grade-a: #7FE0A8; --grade-b: #3DD6EA; --grade-c: #F2D46B; --grade-d: #9AAEC2; --grade-x: #FF8A8A;
  --bar-track: #1A2638; --bar-high: #3DD6EA; --bar-mid: #2A93A3; --bar-low: #3C5570; --limit: #FB9B55;
  --jump: #B9A2FF; --jump-dim: rgba(185, 162, 255, 0.14);
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 750; }
h2, .h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 0.8em; }
ul, ol { padding-left: 1.3em; margin: 0 0 0.8em; }
ul.plain { list-style: none; padding-left: 0; }
pre { font-family: var(--font-mono); font-size: 0.82rem; white-space: pre-wrap; word-break: break-word; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mono, .id, .num, .score, .pred, .status, .dir, .ctx { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.empty { color: var(--muted); font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--panel); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* Cabecera */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; white-space: nowrap; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--v-works)); }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.layer-tag { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.layer-public { display: none; }
.layer-reserved { border-color: var(--warn); color: var(--warn); }
.search { position: relative; flex: 1 1 240px; max-width: 460px; margin-left: auto; }
.search + .top-tools { margin-left: 0; }
.search-input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 0.95rem; }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,0.22); max-height: 60vh; overflow: auto; z-index: 30; text-align: left; }
.search-results[hidden] { display: none; }
.search-item { display: block; padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.search-item:last-child { border-bottom: 0; }
.search-item:hover, .search-item[aria-selected="true"] { background: var(--accent-dim); text-decoration: none; }
.search-item .si-name { font-weight: 650; }
.search-item .si-type { font-size: 0.74rem; color: var(--accent); margin-left: 8px; }
.search-item .si-sum { display: block; color: var(--muted); font-size: 0.84rem; }
.search-empty { padding: 10px 14px; color: var(--muted); font-size: 0.9rem; }
.top-tools { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 0.78rem; cursor: pointer; min-height: 30px; }
.theme-toggle:hover { color: var(--text); }
.lang-switch { display: inline-flex; gap: 2px; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch a, .lang-switch .lang-current { padding: 3px 9px; border-radius: 999px; color: var(--muted); line-height: 1.4; }
.lang-switch a:hover { color: var(--text); text-decoration: none; background: var(--accent-dim); }
.lang-switch .lang-current { background: var(--accent-dim); color: var(--accent); }
.nav { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 8px; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { font-size: 0.84rem; color: var(--muted); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
.nav .count { opacity: 0.65; font-size: 0.74rem; }

/* Cuerpo */
.main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 48px; }
.crumbs { font-size: 0.84rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.block, .entity-head, .detail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.intro { color: var(--muted); font-size: 0.95rem; margin-top: -2px; }
.intro.small { font-size: 0.86rem; }
.sub { margin: 18px 0; }

/* Cabecera de ficha */
.entity-head { display: flex; gap: 16px; align-items: flex-start; }
.head-main { min-width: 0; flex: 1; }
.head-icon { flex: 0 0 auto; }
.entity-kind { font-size: 0.78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.entity-kind .id { font-family: var(--font-mono); font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 8px; }
.entity-head h1 { margin-bottom: 0.3em; }
.name-en { color: var(--muted); margin-top: -4px; }
.lead { font-size: 1.12rem; line-height: 1.5; max-width: 70ch; }
.head-meta { color: var(--muted); margin: 0 0 6px; }
.head-meta strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-block; font-size: 0.75rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--panel-2); line-height: 1.5; white-space: nowrap; }
.chip-class { color: var(--text); }
.chip-axis, .chip-sport, .chip-type { color: var(--accent); border-color: var(--accent-dim); }
.chip-wada-bad, .chip-warn-bad { color: var(--v-prohibited); border-color: currentColor; }
.chip-wada-warn, .chip-warn { color: var(--warn); border-color: currentColor; }
.chip-wada-ok { color: var(--v-works); }
.chip-status-draft { color: var(--warn); }
.chip-status-reviewed { color: var(--v-little); }
.chip-status-verified { color: var(--v-works); }
.aliases { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }

/* Iconos de deporte */
.sport-icon { width: 30px; height: 30px; color: var(--accent); flex: 0 0 auto; }
.sport-icon-big { width: 56px; height: 56px; padding: 10px; border-radius: 14px; background: var(--accent-dim); }
.sport-initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; border-radius: 50%; border: 1.6px solid currentColor; }
.sport-icon-big.sport-initial { border-radius: 14px; border: 0; font-size: 1.5rem; }

/* Avisos */
.notice { border: 1px solid var(--warn); background: var(--warn-dim); color: var(--text); border-left-width: 5px; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 0.95rem; }
.notice-prohibited { border-color: var(--v-prohibited); background: var(--bad-dim); }
.notice-affiliate { border-color: var(--muted); background: var(--panel); }

/* Relaciones y campos */
.relations { margin: 8px 0 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 210px) 1fr; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd .kv-list .kv { grid-template-columns: minmax(100px, 160px) 1fr; }
.kv-list { margin: 0; }
.weight { display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--accent); background: var(--accent-dim); border-radius: 6px; padding: 0 5px; line-height: 1.5; }
.weight-lim { color: var(--limit); background: var(--warn-dim); }
.ref-missing { font-family: var(--font-mono); font-size: 0.85em; color: var(--muted); border-bottom: 1px dashed var(--line); cursor: help; }
.ref-reserved { color: var(--muted); border-bottom: 1px dotted var(--line); cursor: help; }
.ext::after { content: " ↗"; font-size: 0.75em; }

/* Semáforo */
.light { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; background: var(--v-unknown); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-unknown) 22%, transparent); }
.verdict-works .light { background: var(--v-works); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-works) 22%, transparent); }
.verdict-probably .light { background: var(--v-probably); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-probably) 22%, transparent); }
.verdict-little .light { background: var(--v-little); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-little) 22%, transparent); }
.verdict-no .light { background: var(--v-no); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-no) 22%, transparent); }
.verdict-prohibited .light { background: var(--v-prohibited); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-prohibited) 22%, transparent); }
.verdict { display: flex; gap: 14px; align-items: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 10px 0 6px; max-width: 70ch; }
.verdict .light { width: 18px; height: 18px; margin-top: 3px; }
.verdict-label { font-weight: 800; font-size: 1.05rem; }
.verdict-plain { margin: 4px 0 0; }
.verdict-works .verdict-label, .chip-verdict-works { color: var(--v-works); }
.verdict-probably .verdict-label, .chip-verdict-probably { color: var(--v-probably); }
.verdict-little .verdict-label, .chip-verdict-little { color: var(--v-little); }
.verdict-no .verdict-label, .chip-verdict-no { color: var(--v-no); }
.verdict-prohibited .verdict-label, .chip-verdict-prohibited { color: var(--v-prohibited); }
.chip-verdict { font-weight: 650; border-color: currentColor; background: transparent; }
.verdict-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--v-unknown); }
.verdict-dot.verdict-works { background: var(--v-works); }
.verdict-dot.verdict-probably { background: var(--v-probably); }
.verdict-dot.verdict-little { background: var(--v-little); }
.verdict-dot.verdict-no { background: var(--v-no); }
.verdict-dot.verdict-prohibited { background: var(--v-prohibited); }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.legend li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.legend .light { margin-top: 0; }

/* Insignias de grado */
.grade { display: inline-block; min-width: 24px; text-align: center; font-weight: 800; font-size: 0.78rem; padding: 0 6px; border-radius: 6px; border: 1px solid currentColor; cursor: help; line-height: 1.55; font-family: var(--font-mono); }
.grade-a { color: var(--grade-a); }
.grade-b { color: var(--grade-b); }
.grade-c { color: var(--grade-c); }
.grade-d { color: var(--grade-d); }
.grade-x { color: var(--grade-x); }
.grade-none { color: var(--muted); }
.grade-big { font-size: 1.05rem; padding: 2px 10px; }

/* Estado y dirección */
.status { font-size: 0.75rem; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.status-verified { color: var(--v-works); }
.status-disputed { color: var(--warn); }
.dir { font-size: 0.8rem; white-space: nowrap; }
.dir-up { color: var(--v-works); }
.dir-down { color: var(--warn); }
.dir-mixed { color: var(--v-little); }
.dir-none { color: var(--muted); }
.pred { color: var(--muted); font-size: 0.76rem; display: block; }
.plain { display: block; color: var(--accent-strong); font-size: 0.92rem; }
.plain-lead { color: var(--accent-strong); }
.num { color: var(--text); font-size: 0.84rem; }
.cell-effect .num { display: block; }
.claim-triple { font-size: 1.05rem; font-weight: 650; margin-top: 8px; }
.claim-triple .pred { display: inline; margin: 0 6px; font-weight: 400; }
.claim-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.pop-tag { display: inline-block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.ctx { display: block; font-size: 0.78rem; line-height: 1.4; }
.ctx-k { color: var(--muted); }
.ctx-k::after { content: ":"; }
.src-item { display: inline-block; margin-right: 8px; font-size: 0.86rem; }
.src-ext { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.src-retracted { text-decoration: line-through; color: var(--bad); }
.src-inline { font-size: 0.85em; }
.src-list { line-height: 2; }

/* Portada */
.home-hero { text-align: center; padding: 22px 4px 10px; }
.home-hero h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 0.25em; }
.home-hero .lead { margin: 0 auto 14px; color: var(--muted); }
.search-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.search-big { margin: 0 auto 8px; max-width: 560px; flex: none; }
.search-big .search-input { padding: 13px 18px; font-size: 1.05rem; background: var(--panel); box-shadow: var(--shadow); }
.sport-grid { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sport-card { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); min-height: 76px; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.sport-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.sport-card .sport-icon { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: var(--accent-dim); }
.sport-card-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sport-name { font-weight: 750; font-size: 1.08rem; }
.sport-meta { color: var(--muted); font-size: 0.82rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sport-go { color: var(--muted); font-size: 1.5rem; line-height: 1; }
.how-steps { padding-left: 1.4em; }
.how-steps li { margin-bottom: 6px; }
.grid-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.section-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 0.92rem; }
.section-card:hover { border-color: var(--accent); text-decoration: none; }
.section-count { color: var(--muted); font-size: 0.82rem; }

/* Elige tu prueba */
.pick-group { margin-top: 14px; }
.pick-group:first-of-type { margin-top: 4px; }
.pick-group h3 { margin-bottom: 8px; }
.event-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.event-card { display: flex; flex-direction: column; gap: 2px; height: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); }
.event-card:hover { border-color: var(--accent); text-decoration: none; }
.event-name { font-weight: 700; color: var(--accent); }
.event-dur { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.event-sum { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

/* Perfil de demanda: barras horizontales */
.bars { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 330px) 1fr 30px; align-items: center; gap: 12px; }
.bar-label { font-size: 0.95rem; min-width: 0; }
.bar-label a { color: var(--text); font-weight: 550; }
.bar-high .bar-label a { font-weight: 700; }
.bar-low .bar-label a { color: var(--muted); font-weight: 400; }
.bar { height: 12px; border-radius: 999px; background: var(--bar-track); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--bar-high); }
.bar-mid .bar-fill { background: var(--bar-mid); }
.bar-low .bar-fill { background: var(--bar-low); }
.bar-limiting .bar-fill { background: var(--limit); }
.bar-value { font-weight: 800; font-size: 0.95rem; text-align: right; font-variant-numeric: tabular-nums; }
.bar-low .bar-value { color: var(--muted); font-weight: 500; }
.badge-limiting { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--limit); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.other-limits { margin: 12px 0 0; font-size: 0.92rem; }
.other-limits .badge-limiting { margin-left: 0; margin-right: 6px; }

/* Ayudas (entrenamiento, suplementos, prohibidas) */
.aid-group { margin-top: 18px; }
.aid-group h3 { margin-bottom: 2px; }
.aids { list-style: none; padding: 0; margin: 6px 0 0; }
.aid { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.aids > .aid:first-child { border-top: 0; }
.aid .light { margin-top: 6px; }
.aid-body { min-width: 0; flex: 1; }
.aid-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.aid-name { font-weight: 700; font-size: 1.04rem; }
.aid-plain { margin: 3px 0 4px; }
.aid-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 0.86rem; color: var(--muted); }
.aid-caps a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.aids-compact .aid { padding: 9px 0; }
.aids-compact .aid-plain { font-size: 0.92rem; }
.block-useless .aid-name a { color: var(--text); }
.block-prohibited { border-color: color-mix(in srgb, var(--v-prohibited) 45%, var(--line)); border-left: 5px solid var(--v-prohibited); }
.block-prohibited h2 { color: var(--v-prohibited); }
.prohibited-mark { font-weight: 400; }
details.more { margin-top: 6px; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.92rem; padding: 8px 0; }
.more-minor > summary { color: var(--muted); }

/* Dónde más ayuda (ficha de intervención) */
.where-list { list-style: none; padding: 0; margin: 0; }
.where-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.where-list li:first-child { border-top: 0; }
.where-event { font-weight: 700; }
.where-caps { display: block; font-size: 0.86rem; color: var(--muted); }
.where-caps a { color: var(--muted); }

/* Detalle técnico plegado */
.detail { padding: 0; }
.detail > summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.detail > summary::-webkit-details-marker { display: none; }
.detail > summary::before { content: "▸"; color: var(--accent); font-size: 1rem; transition: transform 0.15s; }
.detail[open] > summary::before { transform: rotate(90deg); }
.detail-title { display: flex; flex-direction: column; }
.detail-title .h2 { margin: 0; }
.detail-sub { color: var(--muted); font-size: 0.86rem; }
.detail-body { padding: 4px 20px 16px; border-top: 1px solid var(--line); }
.detail-body > h3, .detail-body .sub h3, .detail-body .claims-title, .detail-body .ranking h2 { margin-top: 22px; font-size: 1.05rem; }
.fields { margin: 10px 0 0; }
.history { list-style: none; padding: 0; font-size: 0.9rem; }
.history li { padding: 4px 0; border-top: 1px solid var(--line); }
.query-text { margin-bottom: 12px; }

/* Tablas de afirmaciones */
.claims-title { display: flex; align-items: baseline; gap: 8px; }
.claims-title .count, .count { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.table-wrap { overflow-x: auto; }
.claims-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.claims-table th { text-align: left; font-weight: 650; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.claims-table td { vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.claims-table tr:last-child td { border-bottom: 0; }
.claims-table .statement { color: var(--text); display: block; }
.claims-table a.statement:hover { color: var(--accent); }
.cell-entity { min-width: 130px; font-weight: 650; }
.cell-statement { min-width: 220px; }
.cell-effect { min-width: 150px; }
.cell-src { min-width: 120px; }
.rationale { margin-top: 4px; font-size: 0.8rem; }
.rationale summary { cursor: pointer; color: var(--muted); font-size: 0.74rem; }
.rationale p { margin: 4px 0 0; color: var(--muted); max-width: 32ch; }
tr.status-retired { opacity: 0.5; }

/* Ranking de afirmaciones (detalle técnico) */
.ranking .intro { font-size: 0.86rem; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rank-item:first-child { border-top: 0; }
.rank-score { text-align: right; }
.score { display: block; font-size: 1.25rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.score-parts { display: block; font-size: 0.72rem; color: var(--muted); }
.rank-head { font-weight: 650; }
.rank-head .pred { display: inline; margin: 0 4px; }
.rank-body .statement { display: block; color: var(--text); margin-top: 2px; }
.rank-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.85rem; }
.via { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.rank-more { margin-top: 10px; }
.rank-more > summary { cursor: pointer; font-size: 0.9rem; color: var(--accent); padding: 8px 0; }

/* Cadena */
.chain-wrap { overflow-x: auto; padding-bottom: 6px; }
.chain { display: block; min-width: 900px; max-width: 100%; height: auto; font-family: var(--font); }
.chain-node { fill: var(--panel-2); stroke: var(--line); stroke-width: 1; }
.chain-current { stroke: var(--accent); stroke-width: 1.5; }
.chain-empty { stroke-dasharray: 4 4; }
.chain-title { fill: var(--muted); font-size: 11px; letter-spacing: 0.08em; font-weight: 700; }
.chain-item { fill: var(--accent); font-size: 12.5px; }
.chain a:hover .chain-item { text-decoration: underline; }
.chain-me { fill: var(--text); font-weight: 700; }
.chain-more { fill: var(--muted); font-size: 11px; }
.chain-arrow { stroke: var(--muted); stroke-width: 1.4; }

/* Listados de sección */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h1 { margin: 0; }
.filter-input { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-width: 0; width: 280px; max-width: 100%; font: inherit; }
.filter-input:focus { outline: none; border-color: var(--accent); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); min-width: 0; }
.card[hidden] { display: none; }
.card-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card-title { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.card-title:hover { color: var(--accent); }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.card-sub { font-size: 0.76rem; color: var(--muted); margin: 0; }
.card-summary { font-size: 0.9rem; color: var(--muted); margin: 0; }
.list-title { margin-top: 20px; }
.tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tree-sport { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tree-sport h2, .tree-sport h3 { margin-bottom: 4px; font-size: 1.1rem; }
.tree-disc { list-style: none; padding-left: 0; margin: 0; }
.tree-disc > li { padding: 4px 0; }
.tree-events { list-style: none; padding-left: 14px; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 2px 0 0; font-size: 0.92rem; }

/* Pie */
.foot { border-top: 1px solid var(--line); background: var(--panel); margin-top: auto; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter); }
.foot-main { margin: 0; }
.foot-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.78rem; }

/* Móvil */
@media (max-width: 720px) {
  .top-inner { gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .top-tools, .search + .top-tools { margin-left: auto; }
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .nav::-webkit-scrollbar { display: none; }
  .search { flex-basis: 100%; max-width: none; margin-left: 0; order: 3; }
  .brand-sub { display: none; }
  .theme-name { display: none; }
  .block, .entity-head { padding: 16px 14px; }
  .entity-head { gap: 12px; }
  .entity-head { flex-direction: column; gap: 8px; }
  .sport-icon-big { width: 44px; height: 44px; padding: 8px; }
  .lead { font-size: 1.04rem; }
  .detail > summary { padding: 14px; }
  .detail-body { padding: 4px 14px 14px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd .kv-list .kv { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 1fr; gap: 4px; }
  .rank-score { text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .bar-row { grid-template-columns: 1fr 26px; gap: 4px 10px; }
  .bar-label { grid-column: 1 / -1; }
  .bar { grid-column: 1; }
  .sport-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  .sport-card { min-height: 64px; padding: 10px 12px; }
  .event-cards { grid-template-columns: 1fr; }
  .cards, .tree { grid-template-columns: 1fr; }
  .home-hero { text-align: left; padding-top: 8px; }
  .home-hero .lead { margin-left: 0; }
  .aid { gap: 12px; }
  /* Las tablas pasan a tarjetas apiladas: cada celda lleva su etiqueta */
  .claims-table, .claims-table tbody, .claims-table tr, .claims-table td { display: block; width: 100%; }
  .claims-table thead { display: none; }
  .claims-table tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; background: var(--panel-2); }
  .claims-table td { border-bottom: 0; padding: 4px 0; min-width: 0; }
  .claims-table td::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .cell-entity .pred { display: inline; margin-left: 6px; }
}
/* ---------- El ascensor (planta 0 a 4; flechas en un SVG superpuesto que dibuja static/ascensor.js) ---------- */
.nav a.nav-elevator { color: var(--accent); font-weight: 650; }
.asc-head .lead { margin-bottom: 14px; }
.asc-search-label { display: block; font-weight: 650; font-size: 0.9rem; margin-bottom: 6px; }
.asc-combo { position: relative; max-width: 560px; }
.asc-input { padding: 11px 16px; font-size: 1rem; background: var(--panel); }
.asc-sugg { list-style: none; margin: 0; padding: 0; }
.asc-sugg .search-item { cursor: pointer; }
.asc-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.asc-examples-label { font-size: 0.86rem; color: var(--muted); margin-right: 2px; }
.asc-ex { font: inherit; font-size: 0.88rem; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; min-height: 34px; }
.asc-ex:hover { border-color: var(--accent); }
.asc-ex[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); font-weight: 650; }
.asc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; align-items: start; }
@media (min-width: 960px) { .asc-layout { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); } }
.asc-start-title { font-size: clamp(1.15rem, 3vw, 1.4rem); margin-bottom: 2px; }
.asc-start-kind { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.asc-summary { font-size: 0.92rem; margin-bottom: 12px; }
.asc-building { position: relative; z-index: 0; display: flex; flex-direction: column; gap: 26px; padding: 2px 0 4px; }
.asc-floor { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 76px; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.asc-floor-4 { background: color-mix(in srgb, var(--v-works) 7%, var(--panel-2)); }
.asc-floor-label { display: flex; flex-direction: column; min-width: 0; }
.asc-floor-name { font-weight: 750; font-size: 0.82rem; line-height: 1.25; }
.asc-floor-sub { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
.asc-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 46px; min-width: 0; padding: 3px 2px; }
.asc-node { position: relative; z-index: 2; display: flex; flex-direction: column; max-width: 210px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 0.86rem; line-height: 1.25; }
.asc-node-kind { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asc-node-name { font-weight: 650; }
.asc-dim { opacity: 0.5; border-style: dashed; }
.asc-dim .asc-node-name { font-weight: 450; }
.asc-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.asc-start { background: color-mix(in srgb, var(--accent) 13%, var(--panel)); border-width: 2px; }
.asc-t-intervention.asc-start, .asc-t-context.asc-start { border-style: solid; border-left-width: 5px; }
.asc-event { border-color: var(--v-works); box-shadow: 0 0 0 3px color-mix(in srgb, var(--v-works) 18%, transparent); }
.asc-null { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-dim); background: color-mix(in srgb, var(--bad) 7%, var(--panel)); }
.asc-node-chip { margin-top: 3px; }
.asc-node-break { font-size: 0.7rem; font-weight: 750; color: var(--bad); margin-top: 3px; }
.asc-break { border: 1.5px dashed var(--bad); box-shadow: none; background: color-mix(in srgb, var(--bad) 6%, var(--panel)); color: var(--bad); }
.asc-break .asc-node-kind, .asc-break .asc-node-name { color: var(--bad); }
.asc-anim { animation: asc-pop 0.45s ease both; animation-delay: var(--d, 0ms); }
@keyframes asc-pop { from { opacity: 0.2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.asc-arrows { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.asc-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.asc-label { position: absolute; transform: translate(-50%, -50%); background: var(--panel); border-radius: 7px; padding: 1px; line-height: 1.2; white-space: nowrap; }
.asc-label .grade, .asc-label .weight { cursor: default; }
.asc-label-anim { animation: asc-fade 0.4s ease both; }
@keyframes asc-fade { from { opacity: 0; } to { opacity: 1; } }
.asc-arrow { fill: none; stroke-linecap: round; }
.asc-up { stroke: var(--v-works); }
.asc-flat { stroke: var(--accent); }
.asc-down { stroke: var(--warn); stroke-dasharray: 7 5; }
.asc-a-struct { stroke-dasharray: 2 5; opacity: 0.85; }
.asc-a-struct.asc-up, .asc-a-struct.asc-flat { stroke: var(--muted); }
.asc-a-null, .asc-a-break { stroke: var(--bad); stroke-dasharray: 5 4; }
.asc-mk-up { fill: var(--v-works); }
.asc-mk-flat { fill: var(--accent); }
.asc-mk-down { fill: var(--warn); }
.asc-mk-struct { fill: var(--muted); }
.asc-mk-break { fill: var(--bad); }
.asc-struct-chip { font-family: var(--font); font-weight: 600; font-size: 0.68rem; border-style: dotted; }
.asc-null-chip { display: inline-block; font-weight: 800; font-size: 0.78rem; color: var(--bad); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; line-height: 1.5; }
.asc-legend { list-style: none; padding: 0; margin: 16px 0 4px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--muted); }
.asc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.asc-key { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--v-works); }
.asc-key-flat { border-top-color: var(--accent); }
.asc-key-down { border-top: 3px dashed var(--warn); }
.asc-key-struct { border-top: 3px dotted var(--muted); }
.asc-key-break { border-top: 3px dashed var(--bad); }
.asc-key-jump { border-top: 3px dashed var(--jump); }
.asc-arrow.asc-a-jump { stroke: var(--jump); stroke-dasharray: 9 6; }
.asc-mk-jump { fill: var(--jump); }
.asc-label-jump { padding: 1px 4px; border: 1px solid var(--jump); }
.asc-jump-tag { display: inline-block; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.02em; color: var(--jump); background: var(--jump-dim); border: 1px dashed var(--jump); border-radius: 6px; padding: 0 5px; line-height: 1.5; white-space: nowrap; }
.asc-jump-head, .asc-jump-kicker { color: var(--jump); }
.asc-step-jump { border-left: 3px dashed var(--jump); }
.asc-jump-note { display: block; font-size: 0.82rem; color: var(--text); background: var(--jump-dim); border-radius: 8px; padding: 6px 9px; margin-top: 6px; line-height: 1.45; }
.asc-two { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .asc-two { grid-template-columns: 1fr 1fr; gap: 16px; } }
.asc-two-item { display: flex; gap: 10px; align-items: baseline; margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.asc-two-item strong { color: var(--text); }
.asc-two-item .asc-key { flex: 0 0 26px; transform: translateY(-3px); }
.asc-list-help { margin: -2px 0 8px; }
.asc-direct-wrap h3, #asc-others-wrap h3 { display: flex; align-items: center; gap: 8px; }
.asc-paths-direct .asc-path-btn[aria-pressed="true"] { border-color: var(--jump); background: var(--jump-dim); box-shadow: inset 3px 0 0 var(--jump); }
.asc-sup { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--jump); border-left-width: 4px; border-radius: 10px; background: var(--jump-dim); font-size: 0.9rem; line-height: 1.5; }
.asc-sup p { margin: 0 0 6px; }
.asc-sup-better { font-weight: 600; }
.asc-sup-actions { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 0 !important; }
.asc-sup-btn { font: inherit; font-size: 0.88rem; font-weight: 650; color: var(--panel); background: var(--jump); border: 0; border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; text-align: left; }
.asc-sup-btn:hover { filter: brightness(1.1); }
.asc-legend-width { margin: 0; }
.asc-side h2 { font-size: 1.15rem; }
.asc-side h3 { margin-top: 18px; font-size: 0.98rem; }
.asc-path-head { font-size: 0.88rem; line-height: 1.9; margin-bottom: 6px; }
.asc-net-up { color: var(--v-works); font-weight: 650; }
.asc-net-down { color: var(--warn); font-weight: 650; }
.asc-steps { list-style: none; padding: 0; margin: 0; }
.asc-step { position: relative; padding: 8px 0 10px 16px; border-left: 3px solid var(--line); margin-left: 4px; }
.asc-step-start { border-left-color: var(--accent); }
.asc-step-up { border-left-color: var(--v-works); }
.asc-step-flat { border-left-color: var(--accent); }
.asc-step-down { border-left: 3px dashed var(--warn); }
.asc-step-null { border-left: 3px dashed var(--bad); }
.asc-step-kicker { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.asc-step-main { display: block; }
.asc-step-main a { font-weight: 650; }
.asc-verb { color: var(--muted); }
.asc-step-plain { display: block; color: var(--accent-strong); font-size: 0.9rem; margin-top: 2px; }
.asc-step-meta { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.asc-step-break { display: block; color: var(--bad); font-weight: 650; font-size: 0.9rem; margin-top: 4px; }
.asc-events { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 3px; }
.asc-paths { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.asc-path-btn { width: 100%; text-align: left; font: inherit; font-size: 0.84rem; line-height: 1.4; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.asc-path-btn:hover { border-color: var(--accent); }
.asc-path-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent); }
.asc-path-broken[aria-pressed="true"] { border-color: var(--bad); background: var(--bad-dim); box-shadow: inset 3px 0 0 var(--bad); }
.asc-path-btn .grade, .asc-path-btn .asc-null-chip { margin-right: 4px; }
.asc-path-names { color: var(--text); }
.asc-how { margin-top: 14px; }
/* Botón de las fichas y tarjeta de la portada */
.asc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--accent); color: var(--panel); font-weight: 650; font-size: 0.95rem; min-height: 40px; }
.asc-cta:hover { background: var(--accent-strong); text-decoration: none; }
.asc-home-card { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding: 16px 18px; background: linear-gradient(120deg, var(--accent-dim), color-mix(in srgb, var(--v-works) 10%, var(--panel))); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); }
.asc-home-card:hover { border-color: var(--accent); text-decoration: none; }
.asc-home-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--panel); color: var(--accent); }
.asc-home-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asc-home-title { font-weight: 750; font-size: 1.12rem; }
.asc-home-sub { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.asc-home-go { color: var(--accent); font-weight: 650; font-size: 0.92rem; margin-top: 2px; }
/* Ficha de rasgo fisiológico */
.trait-stack { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.trait-floor { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.trait-floor:not(:first-child)::before { content: "↑"; position: absolute; top: -19px; left: 26px; color: var(--v-works); font-weight: 800; line-height: 1; }
.trait-floor h3 { font-size: 0.92rem; margin: 2px 0 6px; }
.trait-floor h3 ~ h3 { margin-top: 12px; }
.trait-me { border: 2px solid var(--accent); background: var(--accent-dim); }
.trait-floor-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.trait-list { list-style: none; padding: 0; margin: 0; }
.trait-list li { padding: 4px 0; border-top: 1px solid var(--line); }
.trait-list li:first-child { border-top: 0; }
.trait-plain { display: block; color: var(--muted); font-size: 0.86rem; }
.trait-declared { margin: 8px 0 0; }
@media (max-width: 720px) {
  .asc-building { gap: 24px; }
  .asc-floor { grid-template-columns: minmax(0, 1fr); gap: 4px; min-height: 0; padding: 6px 8px 8px; }
  .asc-floor-label { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .asc-nodes { gap: 10px; padding: 4px 0 4px; }
  .asc-node { max-width: calc(50% - 5px); font-size: 0.82rem; }
  .asc-home-card { align-items: flex-start; padding: 14px; }
  .asc-home-icon { width: 44px; height: 44px; }
}
/* El ascensor en 3D (static/ascensor3d.js): lienzo con cámara orbital y conmutador con la vista plana */
.asc-building[hidden], .asc-3d[hidden], .asc-3d-bar[hidden], .asc-3d-hint[hidden], .asc-3d-tip[hidden] { display: none; }
.asc-3d-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 8px; }
.asc-view { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--panel-2); }
.asc-view-btn { font: inherit; font-size: 0.84rem; font-weight: 650; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 5px 12px; min-height: 32px; cursor: pointer; }
.asc-view-btn[aria-pressed="true"] { background: var(--accent); color: var(--panel); }
.asc-3d-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.asc-mode-3d .asc-3d-tools { visibility: visible; }
.asc-3d-tools { visibility: hidden; }
.asc-3d-btn { position: relative; font: inherit; font-size: 0.8rem; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; min-height: 32px; cursor: pointer; }
.asc-3d-btn:hover { border-color: var(--accent); }
.asc-3d-btn .asc-short { display: none; }
.asc-3d-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); font-weight: 650; }
.asc-3d { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel) 70%); }
.asc-canvas { display: block; width: 100%; height: clamp(420px, 72vh, 700px); cursor: grab; touch-action: pan-y; outline: none; }
.asc-canvas:active { cursor: grabbing; }
.asc-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.asc-3d-tip { position: absolute; z-index: 5; max-width: 260px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); font-size: 0.84rem; line-height: 1.3; pointer-events: none; }
.asc-3d-tip-full { pointer-events: auto; border-color: var(--accent); }
.asc-3d-tip-kind { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.asc-3d-tip-kind strong { color: var(--accent); }
.asc-3d-tip-name { display: block; font-weight: 650; }
.asc-3d-tip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.asc-3d-tip-btn { font: inherit; font-size: 0.8rem; font-weight: 650; color: var(--panel); background: var(--accent); border: 0; border-radius: 999px; padding: 4px 12px; min-height: 30px; cursor: pointer; }
.asc-3d-tip-link { font-size: 0.8rem; font-weight: 600; }
.asc-3d-tip-x { font: inherit; font-size: 0.8rem; color: var(--muted); background: none; border: 0; margin-left: auto; cursor: pointer; min-width: 28px; min-height: 28px; }
.asc-3d-hint { margin: 6px 0 0; }
#asc-3d-keys { display: block; }
.asc-3d-hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .asc-3d-hint-touch { display: inline; } .asc-3d-hint-mouse { display: none; } }
.asc-3d-fallback { margin: 0 0 8px; color: var(--warn); }
.asc-step-flash { animation: asc-flash 1.4s ease; }
@keyframes asc-flash { 0%, 40% { background: var(--accent-dim); } 100% { background: transparent; } }
@media (max-width: 720px) {
  .asc-canvas { height: clamp(320px, 60vh, 560px); }
  .asc-3d-btn { font-size: 0.78rem; padding: 3px 9px; }
  .asc-3d-btn .asc-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .asc-3d-btn .asc-short { display: inline; }
  .asc-3d-bar { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .asc-anim, .asc-label-anim, .asc-step-flash { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- Semáforo por efecto (reglas 11 a 14, agente V3, 25/09/2026) ---- */
.plain-intro { font-size: 1.02rem; line-height: 1.5; max-width: 70ch; margin: 8px 0 4px; padding-left: 12px; border-left: 3px solid var(--accent-dim); }
.effects h2 { margin-bottom: 4px; }
.fx-group { margin-top: 16px; }
.fx-group h3 { margin: 0; }
.fx-sub { margin: 2px 0 4px; font-size: 0.84rem; color: var(--muted); max-width: 72ch; }
.fx-list { list-style: none; padding: 0; margin: 4px 0 0; }
.fx { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.fx-list > .fx:first-child { border-top: 0; }
.fx .light { margin-top: 5px; }
.fx-body { min-width: 0; flex: 1; }
.fx-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fx-obj { font-weight: 700; overflow-wrap: anywhere; }
.fx-pred { font-weight: 500; color: var(--muted); }
.fx-plain { margin: 3px 0 4px; font-size: 0.95rem; }
.fx-meta, .fx-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 0.84rem; color: var(--muted); }
.fx-links { margin-top: 3px; }
.fx-meta .pop-tag { margin-top: 0; }
.fx-size { font-weight: 650; color: var(--text); }
.fx-note { color: var(--warn); }
.fx-via a { color: var(--muted); }
.fx-asc { font-weight: 600; }
.fx-side .fx-obj, .fx-side .fx-plain { color: var(--muted); }
.chip-side { white-space: normal; }
.fx-harm .light, .aid-fx.fx-harm .fx-dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-dim); }
.fx-harm .chip-verdict { color: var(--bad); }
.fx-markers { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
/* Chips de efectos en listados y búsqueda */
.fx-chips { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.fx-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 0.76rem; line-height: 1.35; padding: 2px 9px 2px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); }
.fx-chip .light { width: 9px; height: 9px; margin: 0; box-shadow: none; }
.fx-chip-name { font-weight: 650; overflow-wrap: anywhere; }
.fx-chip-v { color: var(--muted); white-space: nowrap; }
.fx-chip-none { color: var(--muted); }
/* Veredicto contextual en las ayudas de una prueba */
.aid-ctx { margin: 3px 0 2px; font-size: 0.88rem; color: var(--muted); }
.aid-ctx-k { font-weight: 650; color: var(--text); }
.aid-line { white-space: normal; }
.aid-line a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.aid-line-not a, .aid-line-worse a { color: var(--muted); }
.aid-line-worse { color: var(--bad); }
.aid-note { margin: 2px 0 0; font-size: 0.84rem; color: var(--warn); }
.light-hollow { background: transparent; border: 2px solid var(--v-no); box-shadow: none; }
.chip-indirect { color: var(--muted); border-style: dashed; }
.aid-fx { display: flex; gap: 8px; align-items: baseline; }
.fx-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--v-unknown); }
.aid-fx.verdict-works .fx-dot { background: var(--v-works); }
.aid-fx.verdict-probably .fx-dot { background: var(--v-probably); }
.aid-fx.verdict-little .fx-dot { background: var(--v-little); }
.aid-fx.verdict-no .fx-dot { background: var(--v-no); }
.where-list li { display: flex; gap: 12px; align-items: flex-start; }
.where-list li .light { margin-top: 6px; }
.where-list li > div { min-width: 0; flex: 1; }
.where-caps .aid-line a { color: var(--muted); }
/* Búsqueda: efectos principales */
.si-fx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.si-fx .fx-chip { font-size: 0.72rem; }
.si-ban { color: var(--v-prohibited); font-weight: 650; font-size: 0.74rem; }
.fx-chip.fx-harm .light { box-shadow: none; }
.fx-chip.fx-harm .fx-chip-v { color: var(--bad); }
.fx-meta .num { font-family: var(--font); font-size: 0.84rem; overflow-wrap: anywhere; }

/* Balance por prueba (reglas 17 a 20): probablemente perjudicial (naranja) y balance incierto (luz partida) */
.verdict-harm .light { background: var(--v-harm); border-radius: 3px; transform: rotate(45deg) scale(0.86); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-harm) 22%, transparent); }
.verdict-mixed .light { background: linear-gradient(90deg, var(--v-probably) 50%, var(--v-harm) 50%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-little) 20%, transparent); }
.verdict-harm .verdict-label, .chip-verdict-harm { color: var(--v-harm); }
.verdict-mixed .verdict-label, .chip-verdict-mixed { color: var(--text); border-style: dashed; }
.verdict-dot.verdict-harm { background: var(--v-harm); }
.verdict-dot.verdict-mixed { background: linear-gradient(90deg, var(--v-probably) 50%, var(--v-harm) 50%); }
.block-harmful { border-color: color-mix(in srgb, var(--v-harm) 45%, var(--line)); border-left: 5px solid var(--v-harm); background: linear-gradient(0deg, var(--v-harm-dim), var(--v-harm-dim)), var(--panel); }
.block-harmful h2 { color: var(--v-harm); }
.harm-mark { font-size: 0.8em; vertical-align: 2px; }
.bal-line { line-height: 1.6; }
.bal-item { white-space: normal; }
.bal-item a.ref { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.bal-cons .aid-ctx-k { color: var(--v-harm); }
.bal-pros .aid-ctx-k { color: var(--v-works); }
.bal-nulls .aid-ctx-k { color: var(--muted); }
.bal-cons .bal-item a.ref { text-decoration-color: color-mix(in srgb, var(--v-harm) 55%, transparent); }
.bal-dir { font-weight: 800; margin-right: 2px; }
.bal-dir-up { color: var(--v-works); }
.bal-dir-down { color: var(--accent); }
.bal-cons .bal-dir { color: var(--v-harm); }
.bal-tag { display: inline-block; font-size: 0.72rem; line-height: 1.3; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); vertical-align: 1px; }
a.bal-deduced { color: var(--jump); border-color: color-mix(in srgb, var(--jump) 50%, var(--line)); background: var(--jump-dim); text-decoration: none; }
.bal-depends { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.bal-via { font-size: 0.8rem; color: var(--muted); }
.bal-via a { color: var(--muted); }
.tag-inferred { font-size: 0.76rem; font-weight: 650; color: var(--jump); border: 1px dashed color-mix(in srgb, var(--jump) 60%, var(--line)); border-radius: 999px; padding: 0 8px; text-decoration: none; white-space: nowrap; }
.tag-inferred:hover, a.bal-deduced:hover { text-decoration: underline; }
/* Qué conviene en esta prueba (trait_demands) */
.traits-demand .td-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.td-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.td-arrow { flex: 0 0 1.4em; text-align: center; font-weight: 800; font-size: 1.1rem; line-height: 1; }
.td-up .td-arrow { color: var(--v-works); }
.td-down .td-arrow { color: var(--accent); }
.td-optimal .td-arrow { color: var(--warn); }
.td-main { min-width: 0; }
.td-name { font-weight: 650; }
.td-name a { color: var(--text); }
.td-dir { font-size: 0.84rem; color: var(--muted); }
.td-note { display: block; font-size: 0.84rem; color: var(--muted); }
.legend .verdict-harm .light, .legend .verdict-mixed .light { margin-top: 0; }
/* Ascensor mirado para una prueba (?prueba=<id>): caminos en contra en naranja */
.asc-ev-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; }
.asc-ev-pick label { font-weight: 650; font-size: 0.9rem; }
.asc-ev-pick select { font: inherit; font-size: 0.9rem; max-width: 100%; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
.asc-ev-help { flex-basis: 100%; margin: 0; }
.asc-arrow.asc-a-contra { stroke: var(--v-harm); }
.asc-mk-contra { fill: var(--v-harm); }
.asc-key-contra { border-top: 3px solid var(--v-harm); }
.asc-node.asc-bal-con { border-color: var(--v-harm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--v-harm) 22%, transparent); }
.asc-bal { display: inline-block; margin-top: 4px; font-weight: 650; }
.asc-bal-con { color: var(--v-harm); }
.asc-bal-pro { color: var(--v-works); }
.asc-con-mark { color: var(--v-harm); font-size: 0.8em; margin-right: 4px; }
.asc-path-contra { border-left: 3px solid var(--v-harm); }
/* Vestíbulo de estímulos y mapa de tu deporte (agente U4, 25/09/2026) */
.asc-floor--1 { background: color-mix(in srgb, var(--jump) 8%, var(--panel-2)); border-color: color-mix(in srgb, var(--jump) 35%, var(--line)); border-style: dashed; }
.asc-floor--1 .asc-floor-name { color: var(--jump); }
.asc-legend-vest { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; }
.asc-key-vest { flex: 0 0 26px; height: 12px; margin-top: 3px; border: 1px dashed var(--jump); background: var(--jump-dim); border-radius: 3px; }
.asc-key-imp { display: inline-flex; align-items: center; gap: 3px; }
.asc-key-imp i { display: inline-block; border-radius: 50%; background: var(--accent); }
.asc-key-imp i:nth-child(1) { width: 4px; height: 4px; opacity: 0.35; }
.asc-key-imp i:nth-child(2) { width: 7px; height: 7px; opacity: 0.65; }
.asc-key-imp i:nth-child(3) { width: 11px; height: 11px; }
.asc-mine-pick { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--accent); border-radius: 12px; background: var(--accent-dim); }
.asc-mine-pick-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-weight: 800; font-size: 1rem; color: var(--accent-strong); }
.asc-mine-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 560px) { .asc-mine-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.asc-mine-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.asc-mine-field select { font: inherit; font-size: 0.95rem; font-weight: 600; width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
.asc-mine-field select:disabled { opacity: 0.6; }
.asc-mine-pick .asc-ev-help { margin: 8px 0 0; }
.asc-map-only { font: inherit; font-size: 0.84rem; font-weight: 650; margin-top: 8px; color: var(--accent); background: var(--panel); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; min-height: 32px; cursor: pointer; }
.asc-map-only[hidden] { display: none; }
.asc-3d-mine { position: absolute; z-index: 3; top: 8px; left: 8px; right: 8px; margin: 0; pointer-events: none; font-size: 1.05rem; font-weight: 800; color: var(--text); text-shadow: 0 0 4px var(--bg), 0 0 8px var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asc-3d-mine-k { color: var(--accent); }
.asc-3d-mine[hidden] { display: none; }
.asc-3d-tip-imp { display: block; font-size: 0.78rem; color: var(--accent); font-weight: 650; }
.asc-mine { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.asc-mine[hidden] { display: none; }
.asc-mine h2 { margin-top: 0; }
.asc-mine-group h3 { font-size: 0.82rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.asc-mine-stim h3 { color: var(--jump); }
.asc-mine-list { list-style: none; padding: 0; margin: 0; }
.asc-mine-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 0.9rem; line-height: 1.35; }
.asc-mine-list li:first-child { border-top: 0; }
.asc-mine-list li > a { flex: 1 1 10em; min-width: 0; }
.asc-meter { flex: 0 0 56px; height: 6px; border-radius: 3px; background: var(--bar-track); overflow: hidden; }
.asc-meter span { display: block; height: 100%; background: var(--bar-high); border-radius: 3px; }
.asc-mine-stim .asc-meter span { background: var(--jump); }
.asc-mine-dir { display: inline-block; min-width: 1.2em; font-weight: 800; text-align: center; }
.asc-mine-dir-u { color: var(--v-works); }
.asc-mine-dir-d { color: var(--v-harm); }
.asc-mine-dir-o { color: var(--muted); }
.asc-mine-go { font: inherit; font-size: 0.78rem; font-weight: 650; color: var(--jump); background: var(--jump-dim); border: 1px solid var(--jump); border-radius: 999px; padding: 2px 10px; min-height: 28px; cursor: pointer; }
.asc-step-hint { color: var(--muted); font-size: 0.9rem; }
.asc-node.asc-imp { border-color: color-mix(in srgb, var(--accent) calc(var(--imp, 0) * 100%), var(--line)); }
.asc-node.asc-imp-high { border-width: 2px; box-shadow: 0 0 0 3px var(--accent-dim); }
.asc-node.asc-imp-low { opacity: 0.8; }
.asc-node .asc-node-chip .asc-meter { display: inline-block; width: 48px; vertical-align: middle; }
.asc-floor--1 .asc-node.asc-imp { border-color: color-mix(in srgb, var(--jump) calc(var(--imp, 0) * 100%), var(--line)); }
.asc-floor--1 .asc-meter span { background: var(--jump); }
.asc-cta-mine { display: flex; width: fit-content; max-width: 100%; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--jump); font-size: 1rem; box-shadow: 0 2px 10px color-mix(in srgb, var(--jump) 35%, transparent); }
.asc-cta-mine:hover { background: color-mix(in srgb, var(--jump) 85%, var(--text)); }
.asc-cta-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.asc-cta-main { font-weight: 800; }
.asc-cta-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.92; }

/* ---- Transmisión de cada flecha e impacto esperado (reglas 21 y 22, agente E2) ---------------------------- */
.tr { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.tr-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.tr-bars i { display: block; width: 4px; border-radius: 1px; background: var(--bar-track); border: 1px solid var(--line); }
.tr-bars i:nth-child(1) { height: 5px; }
.tr-bars i:nth-child(2) { height: 8px; }
.tr-bars i:nth-child(3) { height: 12px; }
.tr-strong .tr-bars i, .tr-moderate .tr-bars i:nth-child(-n+2), .tr-weak .tr-bars i:nth-child(1) { background: var(--accent); border-color: var(--accent); }
.tr-unclassified .tr-bars i { border-style: dashed; background: transparent; }
.tr-strong .tr-label { color: var(--text); }
.tr-d { display: inline-block; max-width: 100%; }
.tr-d > summary { cursor: pointer; list-style: none; border-bottom: 1px dotted var(--muted); }
.tr-d > summary::-webkit-details-marker { display: none; }
.tr-d > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tr-d[open] { display: block; flex-basis: 100%; }
.tr-basis { display: block; margin: 3px 0 2px; padding: 5px 8px; border-left: 3px solid var(--accent); background: var(--accent-dim); color: var(--text); font-size: 0.84rem; white-space: normal; overflow-wrap: anywhere; }
.tr-basis-k { font-weight: 650; }
.tr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.imp { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin: 4px 0 3px; font-size: 0.86rem; color: var(--muted); }
.imp-label { font-weight: 650; color: var(--text); }
.imp-bars { display: inline-flex; flex-direction: column; gap: 2px; width: 88px; flex: 0 0 88px; }
.imp-track { display: block; height: 6px; border-radius: 3px; background: var(--bar-track); overflow: hidden; }
.imp-track-con { height: 4px; }
.imp-for { display: block; height: 100%; background: var(--v-works); border-radius: 3px; }
.imp-against { display: block; height: 100%; background: var(--v-harm); border-radius: 3px; }
.imp-net { font-variant-numeric: tabular-nums; }
.imp-ev { font-size: 0.78rem; color: var(--muted, inherit); }
.imp-adj { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.imp-est { font-size: 0.78rem; font-style: italic; border: 1px dashed var(--line); border-radius: 999px; padding: 0 7px; }
.imp-chain { flex-basis: 100%; font-size: 0.78rem; overflow-wrap: anywhere; }
.imp-con .imp-label { color: var(--v-harm); }
.imp-legend { margin: -4px 0 12px; color: var(--muted); }

/* Ascensor: transmisión en el texto paso a paso, impacto de la cadena y panel "Tu mapa" */
.asc-tr { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.asc-impact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.asc-impact-n { font-weight: 650; color: var(--text); }
.asc-mine-imp { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.asc-mine-imp .imp-bars { width: 56px; flex-basis: 56px; }
.asc-key-tr { display: inline-flex; align-items: flex-end; gap: 3px; height: 10px; }
.asc-key-tr i { display: block; width: 14px; background: var(--v-works); border-radius: 2px; }
.asc-key-tr i:nth-child(1) { height: 5px; } .asc-key-tr i:nth-child(2) { height: 3px; } .asc-key-tr i:nth-child(3) { height: 1.5px; }
.asc-arrow.asc-a-uncl:not(.asc-a-jump) { stroke-dasharray: 3 4; opacity: 0.75; }
.asc-arrow.asc-a-jump.asc-a-uncl { opacity: 0.8; }
.asc-mine-aids .asc-mine-list li, .asc-mine-stim .asc-mine-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }

/* ---- Ascensor 3D: nube sin planta 4 y pantalla completa (agente U5, 25/09/2026) ---------------------------- */
.asc-top-w { font-weight: 650; color: var(--accent-strong); white-space: nowrap; }
.asc-top-w-none { color: var(--muted); font-weight: 500; }
.asc-node-w .weight { font-size: 0.74rem; }
.asc-3d-tip-w { display: block; font-size: 0.8rem; font-weight: 700; color: var(--v-works); }
.asc-3d { background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel) 72%); }
.asc-fs-btn { display: inline-flex; align-items: center; gap: 6px; }
.asc-fs-ico-out { display: none; }
.asc-fs-btn[aria-pressed="true"] .asc-fs-ico-in { display: none; }
.asc-fs-btn[aria-pressed="true"] .asc-fs-ico-out { display: inline; }
.asc-fs-bar[hidden], .asc-fs-panel[hidden] { display: none; }
/* Pantalla completa: Fullscreen API (#asc-3d:fullscreen) o capa fija (iOS y navegadores sin la API) */
.asc-3d.asc-fs { border: 0; border-radius: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; margin: 0;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--accent) 9%, var(--bg)), var(--bg) 75%); }
.asc-3d.asc-fs-css { position: fixed; inset: 0; z-index: 1000; }
html.asc-fs-lock, html.asc-fs-lock body { overflow: hidden; }
.asc-3d.asc-fs .asc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.asc-fs-bar { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 8px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--panel) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.asc-fs-bar .asc-3d-tools { visibility: visible; order: 1; }
.asc-fs-bar .asc-fs-panel-btn { order: 2; display: inline-flex; align-items: center; gap: 6px; }
.asc-fs-bar .asc-fs-panel-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.asc-fs-bar .asc-mine-fields { order: 3; display: flex; gap: 6px; flex: 1 1 300px; min-width: 0; }
.asc-fs-bar .asc-mine-field { flex: 1 1 0; min-width: 0; font-size: 0.7rem; gap: 1px; }
.asc-fs-bar .asc-mine-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.asc-fs-bar .asc-mine-field select { min-height: 32px; padding: 3px 6px; font-size: 0.84rem; }
.asc-fs-bar .asc-search { order: 4; flex: 1 1 220px; min-width: 0; margin: 0; }
.asc-fs-bar .asc-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.asc-fs-bar .asc-input { min-height: 34px; padding: 4px 10px; font-size: 0.9rem; }
.asc-fs-bar .asc-sugg { z-index: 8; }
.asc-3d.asc-fs .asc-3d-mine { top: calc(var(--fs-bar-h, 48px) + 6px); left: 12px; right: 12px; }
.asc-fs-panel { position: absolute; z-index: 5; top: calc(var(--fs-bar-h, 48px) + 8px); right: 8px; bottom: 8px; width: min(380px, 42vw);
  overflow: auto; overscroll-behavior: contain; padding: 12px 14px; background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.asc-fs-panel .asc-side { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.asc-fs-panel .asc-side h2 { font-size: 1.02rem; }
@media (max-width: 759px) {
  .asc-fs-panel { top: auto; left: 6px; right: 6px; bottom: 6px; width: auto; max-height: 42vh; max-height: 42dvh; }
  .asc-fs-bar { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .asc-fs-bar .asc-3d-tools { flex-wrap: nowrap; }
  .asc-fs-bar .asc-3d-btn { padding: 3px 8px; }
  .asc-fs-bar .asc-fs-panel-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .asc-fs-bar .asc-mine-fields, .asc-fs-bar .asc-search { flex-basis: 100%; }
}
@media (max-width: 720px) { .asc-fs-btn .asc-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.asc-fs-panel .asc-side { display: flex; flex-direction: column; }
.asc-has-start .asc-fs-panel .asc-mine { order: 10; margin: 18px 0 0; padding: 12px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
/* Pantalla completa en un móvil apaisado (poca altura): la barra en una sola fila compacta */
@media (max-height: 520px) and (min-width: 560px) {
  .asc-fs-bar { flex-wrap: nowrap; gap: 6px; padding-top: 5px; padding-bottom: 5px; }
  .asc-fs-bar .asc-3d-tools { flex-wrap: nowrap; }
  .asc-fs-bar .asc-3d-btn { padding: 2px 8px; min-height: 30px; font-size: 0.76rem; }
  .asc-fs-bar .asc-3d-btn .asc-long, .asc-fs-bar .asc-fs-panel-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .asc-fs-bar .asc-3d-btn .asc-short { display: inline; }
  .asc-fs-bar .asc-mine-fields { flex: 1 1 200px; }
  .asc-fs-bar .asc-search { flex: 1 1 140px; }
  .asc-fs-bar .asc-mine-field select, .asc-fs-bar .asc-input { min-height: 30px; font-size: 0.8rem; }
  .asc-fs-panel { max-height: none; }
}

/* ---- Ascensor 3D como constelación (agente U5, 25/09/2026): el lienzo es siempre un cielo nocturno ------------
   También con el tema claro de la página: es una ventana a un planetario. Los tokens se redefinen dentro de .asc-3d
   (los del tema oscuro, más los del cielo --sky-*), así la ficha flotante y la barra y el panel de la pantalla
   completa también son nocturnos, y ascensor3d.js lee sus colores del propio lienzo. */
.asc-3d, .asc-body {
  --bg: #04070f; --panel: #0c1526; --panel-2: #0a1220; --line: rgba(160, 190, 230, 0.16); --text: #eaf1fb; --muted: #93a7c2;
  --accent: #5fd8ee; --accent-strong: #9be9f5; --accent-dim: rgba(95, 216, 238, 0.14);
  --warn: #fb9b55; --bad: #ff8a8a; --bad-dim: rgba(255, 138, 138, 0.12);
  --v-works: #72e3a6; --v-probably: #5fd8ee; --v-little: #f2d46b; --v-no: #8da2b8; --v-harm: #ffa05c;
  --grade-a: #7fe0a8; --grade-b: #5fd8ee; --grade-c: #f2d46b; --grade-d: #9aaec2; --grade-x: #ff8a8a;
  --bar-track: #1a2638; --bar-high: #5fd8ee; --jump: #b9a2ff; --jump-dim: rgba(185, 162, 255, 0.16);
  --sky-v: #a98bff; --sky-0: #6f97ff; --sky-1: #35cfe6; --sky-2: #93f2bd; --sky-3: #f6cf62; --sky-si: #ffad42; --sky-sc: #9fb0c8;
  --sky-star: #cfe0ff; --sky-gold: #f4cd6b;
  color: var(--text); color-scheme: dark;
  border: 1px solid #16223a; border-radius: 14px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(40, 70, 140, 0.22), transparent 70%),
    radial-gradient(ellipse at 50% 40%, #0b1428 0%, #060b18 55%, #02040a 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
}
.asc-3d .asc-3d-mine { color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); font-weight: 700; letter-spacing: 0.01em; }
.asc-3d .asc-3d-mine-k { color: var(--accent); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72em; margin-right: 4px; }
.asc-3d .asc-3d-tip { background: rgba(12, 21, 38, 0.82); border: 1px solid rgba(160, 190, 230, 0.2); border-radius: 12px; color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.asc-3d .asc-3d-tip-w { color: var(--sky-gold); }
.asc-3d .asc-canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(95, 216, 238, 0.6); }
.asc-3d.asc-fs { border: 0; border-radius: 0; box-shadow: none;
  background:
    radial-gradient(ellipse 60% 50% at 45% 45%, rgba(40, 70, 140, 0.25), transparent 70%),
    radial-gradient(ellipse at 45% 42%, #0b1428 0%, #050a16 55%, #010308 100%); }
.asc-3d .asc-fs-bar { background: rgba(8, 14, 28, 0.55); border-bottom: 1px solid rgba(160, 190, 230, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.asc-3d .asc-fs-bar .asc-3d-btn { background: rgba(255, 255, 255, 0.05); border-color: rgba(160, 190, 230, 0.16); color: var(--text); }
.asc-3d .asc-fs-bar .asc-3d-btn:hover { border-color: var(--accent); }
.asc-3d .asc-fs-bar .asc-3d-btn[aria-pressed="true"], .asc-3d .asc-fs-bar .asc-fs-panel-btn[aria-expanded="true"] { background: rgba(95, 216, 238, 0.14); border-color: rgba(95, 216, 238, 0.6); color: var(--accent); }
.asc-3d .asc-fs-bar select, .asc-3d .asc-fs-bar .asc-input { background: rgba(255, 255, 255, 0.05); border-color: rgba(160, 190, 230, 0.18); color: var(--text); }
.asc-3d .asc-fs-bar select option { background: #0c1526; color: #eaf1fb; }
.asc-3d .asc-fs-panel { background: rgba(10, 17, 32, 0.6); border: 1px solid rgba(160, 190, 230, 0.14); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.asc-3d .asc-fs-panel a { color: var(--accent); }
.asc-3d .asc-fs-panel .asc-path-btn { background: rgba(255, 255, 255, 0.04); border-color: rgba(160, 190, 230, 0.14); color: var(--text); }
.asc-3d .asc-fs-panel .asc-path-btn[aria-pressed="true"] { background: rgba(95, 216, 238, 0.12); border-color: var(--accent); }
.asc-3d .asc-search-results, .asc-3d .asc-sugg { background: #0c1526; border-color: rgba(160, 190, 230, 0.2); color: var(--text); }

/* v11 (U5): navegación libre y niveles legibles */
.asc-3d-mode, .asc-3d-zoom { display: inline-flex; gap: 0; }
.asc-3d-mode .asc-3d-btn, .asc-3d-zoom .asc-3d-btn { border-radius: 0; margin-left: -1px; display: inline-flex; align-items: center; gap: 5px; }
.asc-3d-mode .asc-3d-btn:first-child, .asc-3d-zoom .asc-3d-btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.asc-3d-mode .asc-3d-btn:last-child, .asc-3d-zoom .asc-3d-btn:last-child { border-radius: 0 8px 8px 0; }
.asc-3d-zbtn { min-width: 34px; justify-content: center; font-size: 1.05rem; font-weight: 700; line-height: 1; }
.asc-canvas.asc-canvas-pan { cursor: move; touch-action: none; }
.asc-3d-levels { position: absolute; z-index: 3; left: 10px; bottom: 8px; right: 10px; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; padding: 0;
  list-style: none; pointer-events: none; font-size: 0.72rem; font-weight: 600; color: var(--muted); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.asc-3d-lv { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.asc-3d-lv i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c), 0 0 2px #fff inset; }
.asc-3d-lv-3 { --c: var(--sky-3); } .asc-3d-lv-2 { --c: var(--sky-2); } .asc-3d-lv-1 { --c: var(--sky-1); }
.asc-3d-lv-0 { --c: var(--sky-0); } .asc-3d-lv-v { --c: var(--sky-v); } .asc-3d-lv-si { --c: var(--sky-si); }
.asc-3d.asc-fs .asc-3d-levels { right: auto; max-width: 60vw; }
.asc-3d-coach { position: absolute; z-index: 4; left: 50%; bottom: 40px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 24px);
  padding: 7px 14px; border-radius: 999px; background: rgba(12, 21, 38, 0.8); border: 1px solid rgba(160, 190, 230, 0.22); color: var(--text);
  font-size: 0.82rem; text-align: center; pointer-events: none; transition: opacity 0.6s ease; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.asc-3d-coach[hidden] { display: none; }
.asc-3d-coach.asc-3d-coach-out { opacity: 0; }
.asc-3d-coach-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .asc-3d-coach-touch { display: inline; } .asc-3d-coach-mouse { display: none; } }
@media (max-width: 720px) {
  .asc-3d-mode .asc-3d-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .asc-3d-levels { font-size: 0.64rem; gap: 1px 8px; bottom: 6px; }
}
.asc-3d-lv-short { display: none; }
.asc-3d-coach { top: auto; }
@media (max-width: 720px) {
  .asc-3d-lv-long { display: none; } .asc-3d-lv-short { display: inline; }
  .asc-3d-coach { font-size: 0.74rem; padding: 5px 12px; border-radius: 12px; }
}

/* ---- "En el cuerpo" (U6, 26/09/2026): figura humana junto al ascensor (SVG de site/cuerpo_svg.py, static/cuerpo.js) ----
   Panel nocturno como el lienzo (mismos tokens del cielo: .asc-3d, .asc-body). En escritorio (≥ 1100 px) el lienzo y
   el cuerpo comparten fila (65 % / 35 %) con la misma altura; más estrecho, el cuerpo va debajo; en el móvil, plegable. */
@media (min-width: 1100px) {
  .main.main-wide { max-width: 1440px; }
  .main-wide .asc-layout { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
  .asc-mode-3d .asc-stage { display: grid; grid-template-columns: minmax(0, 65fr) minmax(250px, 35fr); gap: 10px; align-items: stretch; }
  .asc-mode-3d .asc-stage > .asc-body { margin: 0; }
  .asc-mode-3d .asc-stage > .asc-body { min-height: 0; }
  .asc-mode-3d .asc-stage > .asc-body .asc-body-inner { position: absolute; inset: 0; }
  .asc-mode-3d .asc-stage > .asc-body .asc-body-fig { flex: 1 1 auto; min-height: 0; height: auto; }
}
.asc-body[hidden] { display: none; }
.asc-body { position: relative; margin: 10px 0 0; color: var(--text); color-scheme: dark; border: 1px solid #16223a; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(40, 70, 140, 0.2), transparent 70%),
    radial-gradient(ellipse at 50% 40%, #0b1428 0%, #060b18 60%, #02040a 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; min-width: 0; }
.asc-body-inner { display: flex; flex-direction: column; min-height: 0; }
.asc-body-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 2px 8px; padding: 10px 12px 0; }
.asc-body-kick { margin: 0; align-self: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.asc-body-src { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
#asc-body-name { display: block; }
.asc-body-src[hidden], #asc-body-name[hidden], .asc-body-cap[hidden], .asc-body-msg[hidden], .asc-body-also[hidden], .asc-body-path-btn[hidden] { display: none; }
.asc-body-name { grid-column: 1 / -1; margin: 2px 0 0; font-size: 0.98rem; font-weight: 700; line-height: 1.25; color: var(--text); }
.asc-body-cap { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--sky-gold); line-height: 1.3; }
.asc-body-views { display: inline-flex; grid-row: 1; grid-column: 2; }
.asc-body-vbtn { font: inherit; font-size: 0.74rem; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(160, 190, 230, 0.18); padding: 2px 10px; min-height: 28px; cursor: pointer; }
.asc-body-vbtn:first-child { border-radius: 999px 0 0 999px; }
.asc-body-vbtn:last-child { border-radius: 0 999px 999px 0; margin-left: -1px; }
.asc-body-vbtn[aria-pressed="true"] { color: var(--accent); border-color: rgba(95, 216, 238, 0.6); background: rgba(95, 216, 238, 0.12); font-weight: 650; }
.asc-body-vbtn:focus-visible, .asc-body-path-btn:focus-visible, .asc-body-toggle:focus-visible, .asc-body-also-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.asc-body-fig { position: relative; height: clamp(360px, 58vh, 540px); min-height: 0; }
.asc-body-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.asc-body-msg { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: 10px; font-size: 0.8rem; text-align: center;
  color: var(--muted); background: rgba(8, 14, 28, 0.72); border: 1px solid rgba(160, 190, 230, 0.12); }
.asc-body-also { margin: 0; padding: 0 12px; }
.asc-body-also-btn { font: inherit; font-size: 0.76rem; color: var(--accent); background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.asc-body-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 6px 12px 10px; }
.asc-body-legend { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 0.72rem; color: var(--muted); }
.asc-body-legend li { display: inline-flex; align-items: center; gap: 5px; }
.asc-body-legend i { width: 14px; height: 8px; border-radius: 3px; }
.asc-body-k1 { background: rgba(246, 207, 98, 0.45); border: 1.5px solid var(--sky-3); box-shadow: 0 0 6px rgba(246, 207, 98, 0.7); }
.asc-body-k2 { background: rgba(246, 207, 98, 0.12); border: 1.5px dashed rgba(246, 207, 98, 0.8); }
.asc-body-path-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(160, 190, 230, 0.2); border-radius: 999px; padding: 3px 11px; min-height: 30px; cursor: pointer; }
.asc-body-path-btn:hover { border-color: var(--accent); }
.asc-body-path-btn[aria-pressed="true"] { color: var(--accent); border-color: rgba(95, 216, 238, 0.6); background: rgba(95, 216, 238, 0.12); }
/* botón para plegar (solo en el móvil) */
.asc-body-toggle { display: none; align-items: center; gap: 8px; width: 100%; font: inherit; font-size: 0.9rem; font-weight: 650; color: var(--text); background: none; border: 0; padding: 10px 12px; min-height: 44px; cursor: pointer; text-align: left; }
.asc-body-toggle svg { color: var(--accent); }
.asc-body-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.asc-body-closed .asc-body-chev { transform: rotate(-45deg); }
@media (max-width: 759px) {
  .asc-body-toggle { display: flex; }
  .asc-body-closed .asc-body-inner { display: none; }
  .asc-body-head { padding-top: 0; }
  .asc-body-fig { height: clamp(380px, 62vh, 520px); }
}
/* en la columna lateral (vista plana) */
.asc-body.asc-body-side { margin: 0 0 16px; }
.asc-body.asc-body-side .asc-body-fig { height: 440px; }
/* pantalla completa: dentro del panel, con pestañas Cuerpo / Camino */
.asc-fs-tabs { display: none; }
.asc-fs .asc-fs-tabs { display: inline-flex; margin: 0 0 10px; }
.asc-fs-tab { font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(160, 190, 230, 0.18); padding: 3px 14px; min-height: 30px; cursor: pointer; }
.asc-fs-tab:first-child { border-radius: 999px 0 0 999px; }
.asc-fs-tab:last-child { border-radius: 0 999px 999px 0; margin-left: -1px; }
.asc-fs-tab[aria-pressed="true"] { color: var(--accent); border-color: rgba(95, 216, 238, 0.6); background: rgba(95, 216, 238, 0.12); }
.asc-fs-panel.asc-fs-tab-body .asc-side, .asc-fs-panel.asc-fs-tab-path .asc-body { display: none; }
.asc-fs-panel .asc-body { margin: 0; border: 0; background: none; box-shadow: none; }
.asc-fs-panel .asc-body-toggle { display: none; }
.asc-fs-panel .asc-body.asc-body-closed .asc-body-inner { display: flex; }
.asc-fs-panel .asc-body-head, .asc-fs-panel .asc-body-foot, .asc-fs-panel .asc-body-also { padding-left: 0; padding-right: 0; }
.asc-fs-panel.asc-fs-tab-body:not([hidden]) { display: flex; flex-direction: column; }
.asc-fs-panel.asc-fs-tab-body .asc-fs-panel-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.asc-fs-panel.asc-fs-tab-body .asc-body, .asc-fs-panel.asc-fs-tab-body .asc-body-inner { flex: 1 1 auto; min-height: 0; }
.asc-fs-panel.asc-fs-tab-body .asc-body-fig { flex: 1 1 auto; height: auto; min-height: 220px; }
.asc-fs-tabs { align-self: flex-start; }

/* la figura: contornos finos y luminosos; regiones con relleno muy tenue; lo resaltado brilla en el color del nivel */
.asc-body-svg .bd-aura { opacity: 0.9; }
.asc-body-svg .bd-skin { fill: rgba(110, 145, 215, 0.055); stroke: rgba(190, 215, 255, 0.6); stroke-width: 1.05; stroke-linejoin: round; }
.asc-body-svg .bd-r { fill: rgba(150, 180, 235, 0.03); stroke: rgba(170, 200, 245, 0.17); stroke-width: 0.55; stroke-linejoin: round; transition: opacity 0.35s ease, fill-opacity 0.35s ease; }
.asc-body-svg .bd-l-bone .bd-r { fill: none; stroke: rgba(205, 222, 255, 0.07); }
.asc-body-svg .bd-marrow { stroke: none !important; }
.asc-body-svg .bd-tendon { fill: rgba(220, 230, 255, 0.05); stroke: rgba(220, 230, 255, 0.16); }
.asc-body-svg .bd-vas { fill: none; stroke: rgba(255, 128, 150, 0.16); stroke-width: 0.8; stroke-linecap: round; }
.asc-body-svg .bd-blood { fill: none; stroke: none; stroke-width: 1.9; stroke-linecap: round; }
.asc-body-svg .bd-fat { fill: rgba(255, 220, 150, 0.025); stroke: rgba(255, 220, 150, 0.07); }
.asc-body-svg .bd-behind, .asc-body-svg .bd-deep { stroke-dasharray: 2 1.6; }
.asc-body-svg .bd-l-org .bd-r.bd-behind { opacity: 0.55; }
.asc-body-svg .bd-d { fill: none; stroke: rgba(170, 200, 245, 0.15); stroke-width: 0.5; stroke-linecap: round; }
.asc-body-svg .bd-dk { stroke: rgba(190, 215, 255, 0.28); }
/* con algo resaltado, lo demás se apaga; si lo resaltado son órganos, los músculos casi desaparecen (y al revés) */
.asc-body-svg.bd-has .bd-r:not(.bd-on):not(.bd-skin) { opacity: 0.5; }
.asc-body-svg.bd-f-org .bd-l-mus .bd-r:not(.bd-on), .asc-body-svg.bd-f-org .bd-dm { opacity: 0.2; }
.asc-body-svg.bd-f-mus .bd-l-org .bd-r:not(.bd-on), .asc-body-svg.bd-f-mus .bd-do { opacity: 0.22; }
.asc-body-svg .bd-r.bd-on { opacity: 1; stroke: var(--hl); fill: var(--hl); }
.asc-body-svg .bd-r.bd-on-1 { fill-opacity: calc(0.14 + 0.36 * var(--k, 1)); stroke-opacity: calc(0.55 + 0.45 * var(--k, 1)); stroke-width: 1.05; filter: url(#bd-glow);
  animation: bd-pulse 2.6s ease-in-out infinite; }
.asc-body-svg .bd-r.bd-on-2 { fill-opacity: calc(0.06 + 0.14 * var(--k, 1)); stroke-opacity: calc(0.45 + 0.4 * var(--k, 1)); stroke-width: 0.9; stroke-dasharray: 3 2.2; }
.asc-body-svg .bd-vas.bd-on, .asc-body-svg .bd-blood.bd-on, .asc-body-svg .bd-l-bone .bd-r.bd-on:not(.bd-marrow):not(.bd-tendon) { fill: none; }
.asc-body-svg .bd-vas.bd-on { stroke-width: 1.3; }
.asc-body-svg .bd-blood.bd-on { stroke-width: 2.4; stroke-dasharray: 1.2 3.2; stroke-opacity: 0.95; animation: bd-flow 1.6s linear infinite; }
.asc-body-svg .bd-l-bone .bd-r.bd-on { stroke-width: 0.9; }
.asc-body-svg .bd-skin.bd-on { fill: var(--hl); fill-opacity: 0.08; stroke: var(--hl); stroke-opacity: 0.9; stroke-width: 1.6; }
.asc-body-svg.bd-wb .bd-skin { filter: url(#bd-glow); fill-opacity: 0.14; }
@keyframes bd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
@keyframes bd-flow { to { stroke-dashoffset: -8.8; } }
/* etiquetas, puntos, números de paso y recorrido (los dibuja cuerpo.js en .bd-over) */
.asc-body-svg .bd-leader { fill: none; stroke: var(--hl); stroke-opacity: 0.55; stroke-width: 0.6; }
.asc-body-svg .bd-lab-2 .bd-leader { stroke-dasharray: 2 2; stroke-opacity: 0.45; }
.asc-body-svg .bd-dot { fill: var(--hl); stroke: #fff; stroke-width: 0.5; }
.asc-body-svg .bd-lab-t { font-family: inherit; paint-order: stroke; stroke: rgba(4, 8, 18, 0.85); stroke-width: 2.6px; stroke-linejoin: round; }
.asc-body-svg .bd-lab-n { fill: #eef4ff; font-weight: 700; }
.asc-body-svg .bd-lab-2 .bd-lab-n { fill: #c9d6ea; font-weight: 600; }
.asc-body-svg .bd-lab-s { fill: #9fb2cc; font-weight: 450; }
.asc-body-svg .bd-badge circle { fill: #060b18; stroke: var(--hl); stroke-width: 1.4; filter: url(#bd-glow); }
.asc-body-svg .bd-badge text { fill: #fff; font-weight: 800; font-family: inherit; }
.asc-body-svg .bd-travel { fill: none; stroke: rgba(246, 207, 98, 0.75); stroke-width: 1.1; stroke-dasharray: 3 3.5; stroke-linecap: round; animation: bd-flow 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .asc-body-svg .bd-r.bd-on-1, .asc-body-svg .bd-blood.bd-on, .asc-body-svg .bd-travel { animation: none; }
  .asc-body-svg .bd-r { transition: none; }
}
@media (min-width: 1100px) { body:has(.main-wide) .top-inner, body:has(.main-wide) .nav { max-width: 1440px; } }

/* v15 (U6, arreglo móvil): el panel plegado de la pantalla completa nunca se dibuja (antes .asc-fs-tab-body le ponía
   display: flex y tapaba el lienzo en el móvil); por debajo de 1100 px el cuerpo va siempre debajo del lienzo, en el
   flujo normal, a todo el ancho y con separación clara */
.asc-fs-panel[hidden] { display: none !important; }
@media (max-width: 1099px) {
  .asc-stage { display: block; }
  .asc-stage > .asc-body { position: relative; inset: auto; transform: none; margin: 22px 0 0; width: 100%; }
  .asc-stage > .asc-body .asc-body-inner { position: static; }
  .asc-stage > .asc-body { border-color: rgba(120, 160, 220, 0.28); box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), inset 0 0 60px rgba(0, 0, 0, 0.5); }
}

/* ---- v16 (U6, 26/09/2026): página única. Cabecera mínima con el buscador del mapa, "Elige tu deporte" y el panel
   de detalle (cajón a la derecha en escritorio, hoja inferior en el móvil) ---------------------------------------- */
body.single .top-inner .asc-search { position: relative; flex: 1 1 260px; max-width: 520px; margin: 0 0 0 auto; }
body.single .top-inner .asc-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.single .top-inner .asc-combo { max-width: none; }
body.single .top-inner .asc-input { padding: 8px 14px; font-size: 0.95rem; }
body.single .top-inner .asc-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; }
@media (max-width: 720px) { body.single .top-inner .asc-search { order: 3; flex-basis: 100%; max-width: none; } }
body.single .asc-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
body.single .foot-main { max-width: 90ch; }
.asc-pick-t-first { display: none; }
.asc-pick-first .asc-pick-t-first { display: inline; }
.asc-pick-first .asc-pick-t-chosen { display: none; }
.asc-pick-help { display: none; margin: 0 0 10px; font-size: 0.92rem; color: var(--muted); }
.asc-pick-first .asc-pick-help { display: block; }
.asc-pick-sports { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.asc-pick-sport { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 8px; min-height: 36px; cursor: pointer; }
.asc-pick-sport:hover { border-color: var(--accent); }
.asc-pick-sport[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--panel); }
.asc-pick-ico { width: 20px; height: 20px; flex: none; }
.asc-pick-ico.sport-initial { display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 800; border-radius: 50%; background: var(--accent-dim); color: var(--accent); }
/* primer paso: sin deporte elegido, el recuadro es grande y claro */
.asc-mine-pick.asc-pick-first { padding: 18px 18px 14px; box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 22%, transparent); }
.asc-pick-first .asc-mine-pick-title { font-size: 1.35rem; }
.asc-pick-first .asc-pick-sports { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.asc-pick-first .asc-pick-sport { border-radius: 12px; padding: 10px 12px; min-height: 52px; font-size: 0.95rem; justify-content: flex-start; }
.asc-pick-first .asc-pick-ico { width: 26px; height: 26px; color: var(--accent); }
@media (max-width: 520px) { .asc-pick-first .asc-pick-sports { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* panel de detalle */
.asc-fd[hidden] { display: none; }
.asc-fd { position: fixed; z-index: 1100; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); display: flex; flex-direction: column;
  background: var(--panel); color: var(--text); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(16px); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; outline: none; }
.asc-fd.asc-fd-in { transform: none; opacity: 1; }
.asc-3d .asc-fd { position: absolute; }
.asc-fd-head { position: relative; padding: 14px 52px 10px 18px; border-bottom: 1px solid var(--line); }
.asc-fd-kind { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.asc-fd-name { margin: 2px 0 0; font-size: 1.25rem; line-height: 1.2; }
.asc-fd-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer; }
.asc-fd-x:hover { border-color: var(--accent); }
.asc-fd-body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 12px 18px 24px; font-size: 0.9rem; line-height: 1.45; }
.asc-fd-body ul { list-style: none; margin: 0 0 8px; padding: 0; }
.asc-fd-body li { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.asc-fd-h { margin: 16px 0 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.asc-fd-sum { margin: 0 0 6px; font-size: 0.95rem; }
.asc-fd-actions { margin: 0 0 10px; }
.asc-fd-start { font: inherit; font-weight: 700; font-size: 0.88rem; color: var(--panel); background: var(--accent); border: 0; border-radius: 999px; padding: 7px 16px; min-height: 38px; cursor: pointer; }
.asc-fd-ev { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-dim); }
.asc-fd-ev .asc-fd-h { margin-top: 0; }
.asc-fd-ev p { margin: 0; }
.asc-fd-light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; background: var(--v-no); flex: none; }
.asc-fd-light.v-works { background: var(--v-works); } .asc-fd-light.v-probably { background: var(--v-probably); }
.asc-fd-light.v-little { background: var(--v-little); } .asc-fd-light.v-harm { background: var(--v-harm); border-radius: 2px; transform: rotate(45deg); }
.asc-fd-light.v-mixed { background: linear-gradient(90deg, var(--v-works) 50%, var(--v-harm) 50%); } .asc-fd-light.v-unknown { background: transparent; border: 1.5px solid var(--muted); }
.asc-fd-fx li { display: flex; align-items: baseline; }
.asc-fd-plain { display: block; color: var(--muted); font-size: 0.84rem; }
.asc-fd-studies { display: block; font-size: 0.8rem; margin-top: 2px; }
.asc-fd-src { font-size: 0.8rem; }
.asc-fd-retracted { text-decoration: line-through; }
.asc-fd-side { font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.asc-fd-role { font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--accent-dim); color: var(--accent); }
.asc-fd-role-2 { background: none; border: 1px dashed var(--line); color: var(--muted); }
.asc-fd-wada { margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.asc-fd-wada-prohibited, .asc-fd-wada-prohibited_in_competition { color: var(--bad); }
.asc-fd-more summary { cursor: pointer; font-weight: 650; margin-top: 12px; }
.asc-fd-srcs { font-size: 0.84rem; }
@media (max-width: 759px) {
  .asc-fd { top: auto; left: 0; width: auto; max-height: 82vh; max-height: 82dvh; border-left: 0; border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3); transform: translateY(24px); }
  .asc-fd-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
}
@media (prefers-reduced-motion: reduce) { .asc-fd { transition: none; } }
body.single .asc-head .asc-mine-pick { margin: 4px 0 14px; }
body.single .asc-head .lead { margin-bottom: 12px; }
@media (max-width: 720px) { body.single .asc-head .lead { font-size: 0.98rem; } }
.asc-pick-sport { text-align: left; line-height: 1.2; }
@media (max-width: 520px) { .asc-pick-first .asc-pick-sport { min-height: 44px; padding: 7px 9px; font-size: 0.86rem; gap: 7px; } .asc-pick-first .asc-pick-ico { width: 22px; height: 22px; } }

/* ---- v17 (U6, 26/09/2026): estado AMA del uso exógeno. Color + icono + texto; tonos con contraste en claro y en
   oscuro (y en el cielo nocturno del lienzo y del cuerpo) ---------------------------------------------------------- */
:root { --exo-A: #B3261E; --exo-A-bg: rgba(179, 38, 30, 0.09); --exo-C: #A34700; --exo-C-bg: rgba(196, 92, 20, 0.10);
  --exo-W: #7A5600; --exo-W-bg: rgba(168, 122, 0, 0.12); --exo-P: #16723F; --exo-P-bg: rgba(23, 138, 76, 0.10);
  --exo-N: #566476; --exo-N-bg: rgba(86, 100, 118, 0.09); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --exo-A: #FF8A80; --exo-A-bg: rgba(255, 110, 100, 0.14); --exo-C: #FFB266; --exo-C-bg: rgba(255, 160, 80, 0.14);
    --exo-W: #F2D46B; --exo-W-bg: rgba(242, 212, 107, 0.13); --exo-P: #72E3A6; --exo-P-bg: rgba(114, 227, 166, 0.12);
    --exo-N: #A9B8CC; --exo-N-bg: rgba(169, 184, 204, 0.10); }
}
:root[data-theme="dark"], .asc-3d, .asc-body { --exo-A: #FF8A80; --exo-A-bg: rgba(255, 110, 100, 0.14); --exo-C: #FFB266; --exo-C-bg: rgba(255, 160, 80, 0.14);
  --exo-W: #F2D46B; --exo-W-bg: rgba(242, 212, 107, 0.13); --exo-P: #72E3A6; --exo-P-bg: rgba(114, 227, 166, 0.12);
  --exo-N: #A9B8CC; --exo-N-bg: rgba(169, 184, 204, 0.10); }
.exo { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; max-width: 100%; font-size: 0.72rem; font-weight: 700; line-height: 1.2;
  padding: 1px 7px 1px 5px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.exo .exo-t { overflow: hidden; text-overflow: ellipsis; }
.exo-full { white-space: normal; font-size: 0.8rem; padding: 3px 9px 3px 6px; border-radius: 10px; }
.exo-ico { flex: none; }
.exo-A { color: var(--exo-A); background: var(--exo-A-bg); }
.exo-C { color: var(--exo-C); background: var(--exo-C-bg); }
.exo-W { color: var(--exo-W); background: var(--exo-W-bg); }
.exo-P { color: var(--exo-P); background: var(--exo-P-bg); }
.exo-N { color: var(--exo-N); background: var(--exo-N-bg); border-style: dashed; font-weight: 600; }
.exo-box { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid; border-left-width: 5px; }
.exo-box-A { border-color: var(--exo-A); background: var(--exo-A-bg); } .exo-box-C { border-color: var(--exo-C); background: var(--exo-C-bg); }
.exo-box-W { border-color: var(--exo-W); background: var(--exo-W-bg); } .exo-box-P { border-color: var(--exo-P); background: var(--exo-P-bg); }
.exo-box-N { border-color: var(--exo-N); background: var(--exo-N-bg); border-style: dashed; }
.exo-head { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 0.98rem; line-height: 1.3; color: var(--text); }
.exo-head .exo-ico { width: 20px; height: 20px; margin-top: 1px; }
.exo-box-A .exo-head .exo-ico { color: var(--exo-A); } .exo-box-C .exo-head .exo-ico { color: var(--exo-C); }
.exo-box-W .exo-head .exo-ico { color: var(--exo-W); } .exo-box-P .exo-head .exo-ico { color: var(--exo-P); } .exo-box-N .exo-head .exo-ico { color: var(--exo-N); }
.exo-note { margin: 6px 0 0 27px; font-size: 0.9rem; }
.exo-cond { margin: 4px 0 0 27px; font-size: 0.84rem; color: var(--muted); }
.exo-legal { margin: 6px 0 0 27px; font-size: 0.74rem; color: var(--muted); }
.asc-sup-btn .exo { margin-left: 8px; }
.asc-sup.asc-sup-only-exo { background: none; border: 0; padding: 0; }
.asc-node-exo { display: block; margin-top: 3px; }
.asc-node-exo .exo { font-size: 0.66rem; }
.si-type + .exo { margin-left: 6px; font-size: 0.66rem; }
.asc-3d-tip-exo { display: block; margin: 3px 0 1px; }
.asc-fd-kind .exo { margin-left: 6px; letter-spacing: 0; text-transform: none; }
.asc-step .exo { font-size: 0.68rem; }
/* dentro de los botones violetas (claros en el tema oscuro), el distintivo va sobre fondo blanco con los tonos del tema claro */
.asc-sup-btn .exo { background: #fff; border-color: currentColor; }
.asc-sup-btn .exo-A { color: #B3261E; } .asc-sup-btn .exo-C { color: #A34700; } .asc-sup-btn .exo-W { color: #7A5600; }
.asc-sup-btn .exo-P { color: #16723F; } .asc-sup-btn .exo-N { color: #566476; }

/* ---- v18 (U6, 26/09/2026): cifras opcionales del modelo cuantitativo ---------------------------------------------- */
.asc-q-box[hidden] { display: none; }
.asc-q-box { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.asc-q-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.asc-q-toggle-l { font-size: 0.8rem; font-weight: 700; margin-right: 8px; }
.asc-q-btn { font: inherit; font-size: 0.8rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 4px 12px; min-height: 32px; cursor: pointer; }
.asc-q-btn:first-of-type { border-radius: 999px 0 0 999px; }
.asc-q-btn:last-of-type { border-radius: 0 999px 999px 0; margin-left: -1px; }
.asc-q-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); font-weight: 700; }
.asc-q-how { margin-top: 6px; }
.asc-q-how summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.q-step { display: block; margin-top: 4px; padding: 5px 8px; border-left: 3px solid var(--sky-gold, #c89b1c); background: color-mix(in srgb, var(--v-little) 8%, transparent); border-radius: 0 6px 6px 0; font-size: 0.84rem; line-height: 1.45; }
.q-val { font-variant-numeric: tabular-nums; color: var(--text); }
.q-hint, .q-meta, .q-ctx, .q-basis { color: var(--muted); }
.q-src a { font-size: 0.82rem; }
.q-conf { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; white-space: nowrap; }
.q-conf-ico rect { fill: currentColor; } .q-conf-ico rect.q-off { opacity: 0.25; }
.q-conf-a { color: var(--v-works); } .q-conf-m { color: var(--v-probably); } .q-conf-b { color: var(--muted); }
.q-dose { margin: 6px 0 0; font-size: 0.84rem; color: var(--muted); }
.q-none { margin: 4px 0; font-size: 0.86rem; color: var(--muted); font-style: italic; }
.q-weak summary { cursor: pointer; font-size: 0.8rem; color: var(--muted); }
.asc-q-final { border-top: 2px solid var(--sky-gold, #c89b1c); padding-top: 8px; }
.q-final-line { margin: 4px 0 0; font-size: 0.95rem; font-weight: 600; }
.q-final-extra { margin: 3px 0 0; font-size: 0.84rem; color: var(--muted); }
.q-measured { font-weight: 650; color: var(--text); }
.q-chain summary { cursor: pointer; font-size: 0.8rem; color: var(--accent); margin-top: 4px; }
.q-chain p { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; }
.q-short { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--v-works); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-list { list-style: none; margin: 0; padding: 0; }
.q-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.asc-fd-q { margin-top: 8px; }

/* ---- v19 (U6, 26/09/2026): tres modos de lectura (Relación, Evidencia, Cifras) ---------------------------------- */
.asc-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 6px; }
.asc-modes-l { font-size: 0.8rem; font-weight: 800; }
.asc-modes-seg { display: inline-flex; flex: 1 1 auto; max-width: 560px; }
.asc-mode-btn { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 0; font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); padding: 5px 10px; min-height: 44px; cursor: pointer; line-height: 1.15; }
.asc-mode-btn strong { font-size: 0.88rem; }
.asc-mode-btn small { font-size: 0.7rem; color: var(--muted); }
.asc-mode-btn:first-child { border-radius: 10px 0 0 10px; }
.asc-mode-btn:last-child { border-radius: 0 10px 10px 0; }
.asc-mode-btn + .asc-mode-btn { margin-left: -1px; }
.asc-mode-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--panel); position: relative; z-index: 1; }
.asc-mode-btn[aria-pressed="true"] small { color: inherit; opacity: 0.85; }
.asc-mode-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.asc-fs-bar .asc-modes { order: 3; margin: 0; flex: 1 1 300px; }
.asc-fs-bar .asc-modes-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.asc-fs-bar .asc-mode-btn { min-height: 34px; padding: 2px 8px; background: rgba(255, 255, 255, 0.05); border-color: rgba(160, 190, 230, 0.18); }
.asc-fs-bar .asc-mode-btn small { display: none; }
.asc-fs-bar .asc-mode-btn[aria-pressed="true"] { background: rgba(95, 216, 238, 0.18); border-color: var(--accent); color: var(--accent); }
/* Relación: solo si hay relación y hacia dónde */
.asc-rel { display: inline-flex; align-items: center; gap: 3px; font-size: 0.8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.asc-rel-up, .asc-rel-pro { color: var(--v-works); } .asc-rel-down { color: var(--v-probably); } .asc-rel-yes { color: var(--accent); }
.asc-rel-con { color: var(--v-harm); } .asc-rel-none { color: var(--muted); border-style: dashed; } .asc-rel-unknown { color: var(--muted); border-style: dotted; }
.asc-rel-note { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }
.asc-mode-rel .asc-side .grade, .asc-mode-rel .asc-side .asc-tr, .asc-mode-rel .asc-side .imp-bars, .asc-mode-rel .asc-mine-imp,
.asc-mode-rel .asc-mine .asc-meter, .asc-mode-rel .asc-mine .meter, .asc-mode-rel .asc-side .weight, .asc-mode-rel .asc-side .asc-fx,
.asc-mode-rel .asc-building .grade, .asc-mode-rel .asc-arrows text, .asc-mode-rel .asc-labels, .asc-mode-rel .asc-legend-width { display: none !important; }
html.asc-fd-on .asc-fd .asc-rel { white-space: normal; }
/* Cifras: aviso permanente, avisos por cifra y diálogo de la primera vez */
.asc-q-warn[hidden] { display: none; }
.asc-q-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--v-little); border-left-width: 5px; background: color-mix(in srgb, var(--v-little) 12%, var(--panel)); }
.asc-q-warn-t { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.86rem; font-weight: 600; line-height: 1.4; }
.asc-q-warn-t svg { flex: none; margin-top: 1px; color: var(--v-little); }
.asc-q-warn-fd { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--v-little); background: color-mix(in srgb, var(--v-little) 12%, var(--panel)); display: block; }
.q-w { display: inline; font-size: 0.78rem; font-weight: 650; color: var(--warn); }
.q-warn-c { margin: 3px 0 0; font-size: 0.78rem; font-weight: 650; color: var(--warn); }
.asc-q-dialog[hidden] { display: none; }
.asc-q-dialog { position: fixed; z-index: 1200; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); padding: 14px 16px;
  background: var(--panel); color: var(--text); border: 1px solid var(--v-little); border-left-width: 5px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); font-size: 0.9rem; }
.asc-3d .asc-q-dialog { position: absolute; }
.asc-q-dialog p { margin: 0 0 8px; }
.asc-q-dialog-ok { font: inherit; font-weight: 700; color: var(--panel); background: var(--accent); border: 0; border-radius: 999px; padding: 7px 18px; min-height: 40px; cursor: pointer; }

/* ---- v20 (U6, 26/09/2026): pasos numerados como en el 3D, clave de los grados, barra de pantalla completa en móvil ---- */
.asc-step-no { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin-right: 6px; border-radius: 999px;
  background: var(--accent); color: var(--panel); font-size: 0.76rem; font-weight: 800; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.asc-step-top .asc-step-no, .asc-q-final .asc-step-no { display: none; }
.asc-3d-gradekey[hidden] { display: none; }
.asc-3d-gradekey { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.asc-3d-gradekey-chip { flex: none; font-size: 0.72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--grade-b); color: var(--grade-b); }
.asc-3d-tip-grade { display: block; margin-top: 3px; font-size: 0.82rem; }
/* pantalla completa en el móvil: la barra no corta nada; herramientas en una fila desplazable con sombra de "hay más",
   y selectores, modo y buscador en filas a todo el ancho con elipsis limpia */
@media (max-width: 759px) {
  .asc-fs-bar { flex-wrap: wrap; }
  .asc-fs-bar .asc-3d-tools { flex: 1 1 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
  .asc-fs-bar .asc-3d-tools::-webkit-scrollbar { display: none; }
  .asc-fs-bar .asc-3d-tools > * { flex: none; }
  .asc-fs-bar .asc-fs-panel-btn { order: 0; }
  .asc-fs-bar .asc-mine-fields { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px; }
  .asc-fs-bar .asc-mine-field, .asc-fs-bar .asc-mine-field select { min-width: 0; width: 100%; }
  .asc-fs-bar select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .asc-fs-bar .asc-modes { flex: 1 1 100%; }
  .asc-fs-bar .asc-modes-seg { max-width: none; width: 100%; }
  .asc-fs-bar .asc-search { flex: 1 1 100%; }
}
.asc-mine-field select { text-overflow: ellipsis; }
@media (max-width: 759px) {
  .asc-fs-bar .asc-fs-panel-btn { order: 0; flex: none; }
  .asc-fs-bar .asc-3d-tools { order: 1; flex: 1 1 0; }
  .asc-fs-bar .asc-mine-fields { order: 2; } .asc-fs-bar .asc-modes { order: 3; } .asc-fs-bar .asc-search { order: 4; }
}
.asc-fs-bar .asc-mode-btn { justify-content: center; min-height: 34px; }

/* ---- v21 (U6, 26/09/2026): "Todo lo que afecta" (abanico) --------------------------------------------------------- */
.asc-view2[hidden] { display: none; }
.asc-view2 { display: inline-flex; margin: 4px 0 10px; }
.asc-view2-btn { font: inherit; font-size: 0.84rem; font-weight: 650; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 5px 14px; min-height: 36px; cursor: pointer; }
.asc-view2-btn:first-child { border-radius: 999px 0 0 999px; }
.asc-view2-btn:last-child { border-radius: 0 999px 999px 0; margin-left: -1px; }
.asc-view2-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--panel); }
.asc-view2-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.asc-fan-group { list-style: none; margin: 0 0 10px; }
.asc-fan-group h3 { margin: 10px 0 4px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.asc-fan-group > ul { list-style: none; margin: 0; padding: 0; }
.asc-fan-item { padding: 7px 0; border-bottom: 1px solid var(--line); }
.asc-fan-item.asc-fan-on { background: var(--accent-dim); border-radius: 8px; padding: 7px 8px; }
.asc-fan-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.asc-fan-more, .asc-fan-follow { font: inherit; font-size: 0.76rem; font-weight: 650; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; min-height: 30px; cursor: pointer; }
.asc-fan-more[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-dim); }
.asc-fan-sub { list-style: none; margin: 6px 0 0; padding: 0; font-size: 0.84rem; }
.asc-fan-sub li { padding: 3px 0 3px calc(var(--d, 1) * 12px); border-left: 2px solid var(--line); margin-left: 4px; }
.asc-fan-con { font-size: 0.74rem; font-weight: 700; color: var(--v-harm); }
.asc-fan-null { color: var(--muted); }
.asc-fan-help { margin: 6px 0 0; }
