/* Mapa Sapiens — identidad de Prodigioso Volcán: blanco, negro, azul eléctrico,
   PV-Sans en pesos gruesos, antetítulos en mayúsculas y botones píldora. */

:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --ink: #141414;
  --muted: #6c6c6c;
  --line: #d6d6d6;
  --soft: #f4f4f4;
  --accent: #2a4eef;
  --danger: #d0281c;
  --sans: "PV-Sans", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }

button, .btn, input, textarea, select { font: inherit; color: inherit; }
button, .btn {
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 13px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
button:hover:not(:disabled), .btn:hover { background: var(--ink); color: #fff; }
button:disabled { opacity: .35; cursor: default; }
button.primary { background: var(--ink); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
button.danger { border-color: var(--line); color: var(--danger); }
button.danger:hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="text"], textarea, select { width: 100%; background: var(--panel); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; }
input[type="text"]:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
textarea { resize: vertical; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* Antetítulo de la casa: mayúsculas con una flecha delante. */
.eyebrow, .panel h3, .home h2, .part-label, .ctx-form h2 {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin: 0;
}
.eyebrow::before, .panel h3::before, .home h2::before, .ctx-form h2::before { content: "›"; margin-right: 8px; font-weight: 400; font-size: 15px; }

/* ---------- inicio ---------- */
.home { min-height: 100%; display: flex; justify-content: center; padding: 9vh 24px 72px; }
.home-inner { width: 100%; max-width: 760px; }
.home h1 { font-size: clamp(54px, 11vw, 112px); line-height: .92; letter-spacing: -.035em; margin: 18px 0 0; }
.home h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; line-height: 1.4; max-width: 34em; margin: 26px 0 0; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 44px; padding: 0; list-style: none; font-size: 13px; }
.steps li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.steps .part { text-transform: uppercase; letter-spacing: .07em; font-size: 11px; color: var(--muted); margin-right: 2px; }
.card { border-top: 2px solid var(--ink); padding: 22px 0 0; display: grid; gap: 8px; max-width: 560px; }
.card label { font-weight: 700; margin-top: 8px; }
.card input[type="text"] { font-size: 22px; font-weight: 700; letter-spacing: -.01em; padding: 12px 14px; }
.card button { justify-self: start; margin-top: 12px; padding: 11px 24px; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); font-size: 12px; }
#map-list-section { margin-top: 64px; }
.map-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.map-list li { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.map-list a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.map-list a strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; display: block; overflow-wrap: anywhere; line-height: 1.1; }
.map-list a span { color: var(--muted); font-size: 12px; }
.map-list a:hover strong { color: var(--accent); }
.engine-note { margin-top: 28px; padding: 12px 16px; border-radius: 12px; background: #fff4d6; border: 1.5px solid #f0c95c; max-width: 560px; }

/* ---------- espacio de trabajo ---------- */
.workspace { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto minmax(0, 1fr); }
.bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.bar h1 { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.back:hover { color: var(--accent); }
.bar-actions { display: flex; gap: 6px; }
.engine-warn { background: #fff4d6; border: 1.5px solid #f0c95c; border-radius: 10px; padding: 4px 12px; font-size: 12px; max-width: 48ch; }

.stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background-color: var(--bg); background-image: radial-gradient(circle, #dcdcdc 1px, transparent 1.3px); background-size: 28px 28px; }
#canvas.panning { cursor: grabbing; }
.node { cursor: pointer; outline: none; }
.node text { font-family: var(--sans); font-size: 13px; font-weight: 500; pointer-events: none; }
.node.root text { font-size: 21px; font-weight: 800; }
.node .halo { fill: none; stroke-width: 8; opacity: .22; }
.node .ring { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.node:focus-visible .shape { stroke: var(--accent); stroke-width: 3; }
.node .badge { font-size: 11px; font-weight: 700; fill: var(--muted); }
.edge { fill: none; stroke-width: 2; opacity: .6; stroke-linecap: round; }
.xlink { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .55; }
.xlabel { font: 600 10px var(--sans); text-transform: uppercase; letter-spacing: .06em; fill: var(--muted); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }

.legend { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px; font-size: 11px; font-weight: 600; display: grid; gap: 5px; max-width: calc(100% - 190px); }
.zoom { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; background: rgba(255, 255, 255, .94); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.zoom button { border: 0; border-radius: 0; padding: 6px 12px; font-size: 16px; line-height: 1; min-width: 36px; }
.zoom #zoom-level { font-size: 12px; min-width: 62px; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.zoom button:disabled { opacity: .35; cursor: default; }
.legend .row { gap: 4px 14px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.swatch { width: 20px; height: 11px; border-radius: 999px; border: 1.8px solid var(--ink); display: inline-block; }
.swatch.hipotesis { border-style: dashed; }
.swatch.idea { background: #d9d9d9; }
.swatch.concepto { background: var(--ink); }
.toast { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- panel ---------- */
.panel { border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.panel-part { display: flex; flex-direction: column; gap: 20px; }
.panel section { display: grid; gap: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--soft); display: inline-flex; align-items: center; gap: 6px; }
.title-input { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; border-color: transparent; background: transparent; padding: 4px 8px; margin: 0 -8px; width: calc(100% + 16px); resize: none; overflow: hidden; border-radius: 8px; }
.body-input { font-size: 15px; border-color: transparent; background: transparent; padding: 4px 8px; margin: 0 -8px; width: calc(100% + 16px); resize: none; overflow: hidden; border-radius: 8px; }
.title-input:hover, .body-input:hover { border-color: var(--line); }
.title-input:focus, .body-input:focus { border-color: var(--ink); background: #fff; outline: none; }
.meta { color: var(--muted); font-size: 12px; margin: 0; }
.ficha { margin: 0; display: grid; gap: 4px; border-left: 3px solid var(--ink); padding: 2px 0 2px 14px; }
.ficha dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 8px; }
.ficha dt:first-child { margin-top: 0; }
.ficha dd { margin: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.part-label { color: var(--muted); font-size: 11px; margin-top: 4px; }
.phases { display: flex; flex-wrap: wrap; gap: 6px; }
.phase-btn { border-color: var(--line); font-weight: 600; }
.phase-btn:hover:not(:disabled) { border-color: var(--ink); }
.phase-btn.suggested { background: var(--ink); color: #fff; border-color: var(--ink); }
.phase-btn.suggested:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.phase-btn .count { font-size: 11px; opacity: .6; }
.phase-info { background: var(--soft); border-left: 4px solid var(--ink); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: 13px; }
.phase-info strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: block; }
.phase-info em { color: var(--muted); font-style: normal; display: block; margin-top: 2px; }
.phase-info ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.options { color: var(--muted); font-size: 12px; gap: 6px 16px; }
.options select { width: auto; padding: 3px 8px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.options label { display: inline-flex; align-items: center; gap: 6px; }

.progress { background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.progress strong { font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.progress .meta { color: #a9a9a9; }
.progress table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 4px 0; }
.progress th { text-align: left; font-weight: 600; color: #a9a9a9; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 0 4px; }
.progress td { padding: 4px 0; border-top: 1px solid #333; }
.state { display: inline-flex; align-items: center; gap: 6px; color: #8a8a8a; }
.state.working { color: #fff; }
.state.working::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #8fa4ff; border-right-color: transparent; animation: spin .8s linear infinite; }
.state.ok { color: #fff; }
.state.ok::before { content: "✓"; color: #8fa4ff; font-weight: 700; }
.state.fail { color: #ff8a80; }
.state.fail::before { content: "✕"; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .state.working::before { animation: none; } button, .btn { transition: none; } }
.error-box { background: #ffecea; border: 1.5px solid var(--danger); border-radius: 12px; padding: 10px 14px; color: #8f1a12; overflow-wrap: anywhere; font-weight: 500; }

details.acta { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.acta:first-of-type { border-top: 1px solid var(--line); }
details.acta > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
details.acta > summary::-webkit-details-marker { display: none; }
details.acta > summary::after { content: "+"; margin-left: auto; font-weight: 400; font-size: 18px; line-height: 1; }
details.acta[open] > summary::after { content: "−"; }
details.acta > summary span:not(.dot) { font-weight: 400; color: var(--muted); font-size: 12px; }
.acta-body { display: grid; gap: 10px; margin-top: 12px; font-size: 13px; }
.acta-body h4 { margin: 6px 0 0; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.acta-body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.acta-body .lens { font-weight: 700; margin: 4px 0 0; }
.acta-body em { font-style: normal; color: var(--muted); }
.acta-body .q { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; font-weight: 600; padding: 3px 0; }
.acta-body .q button { font-size: 11px; padding: 2px 10px; flex: none; }

dialog { border: 0; border-radius: 20px; padding: 0; background: var(--panel); color: var(--ink); width: min(580px, calc(100vw - 32px)); box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(20, 20, 20, .5); }
.ctx-form { padding: 26px; display: grid; gap: 12px; }
.ctx-form p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) 48vh; }
  .panel { border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .bar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .bar h1 { flex-basis: 50%; }
  .legend { display: none; }
  .title-input { font-size: 24px; }
}

/* ---------- exploración completa ---------- */
.auto-btn { justify-self: start; padding: 10px 20px; font-size: 14px; }
button.ghost { border-color: #555; color: #fff; }
button.ghost:hover:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
.progress.auto { background: var(--accent); }
.progress.auto .meta { color: #cfd8ff; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 600; }
.progress.auto button.ghost { border-color: #fff; }
.progress.auto button.ghost:hover:not(:disabled) { color: var(--accent); }
.steps-strip { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.steps-strip li { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .7); }
.steps-strip li.done { background: rgba(255, 255, 255, .22); border-color: transparent; color: #fff; }
.steps-strip li.done::before { content: "✓ "; }
.steps-strip li.now { background: #fff; border-color: #fff; color: var(--accent); }

/* ---------- informe ---------- */
/* Colocación explícita: el informe ocupa la misma celda que el lienzo y el panel, por encima. */
.stage { grid-column: 1; grid-row: 2; }
.panel { grid-column: 2; grid-row: 2; }
.report { grid-column: 1 / -1; grid-row: 2; z-index: 5; background: var(--bg); overflow-y: auto; min-height: 0; }
.report-tools { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 10px 18px; background: rgba(250, 250, 250, .94); border-bottom: 1px solid var(--line); }
.report-tools .spacer { flex: 1; }
.report-page { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; font-size: 16px; line-height: 1.5; }
.report-page h1 { font-size: clamp(40px, 7vw, 76px); line-height: .96; letter-spacing: -.035em; margin: 16px 0 0; overflow-wrap: anywhere; }
.report-page .lede { font-size: 21px; line-height: 1.38; margin: 26px 0 0; max-width: none; }
.report-page section { margin-top: 64px; }
.report-page h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin: 0 0 4px; }
.report-page h2::before { content: "›"; margin-right: 8px; font-weight: 400; font-size: 15px; }
.report-page h3 { font-size: 26px; line-height: 1.08; letter-spacing: -.025em; }
.report-page p { margin: 10px 0 0; }
.recommend { margin-top: 40px; background: var(--accent); color: #fff; border-radius: 20px; padding: 24px 28px; font-size: 19px; line-height: 1.4; }
.recommend .eyebrow { color: #fff; }
.recommend p:last-child { font-weight: 500; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.line .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.08; }
.line-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border: 1.5px solid var(--line); border-radius: 999px; }
.tag.off { color: var(--muted); border-style: dashed; }
.chip.prio-alta { background: var(--ink); color: #fff; }
.chip.prio-baja { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.chip { white-space: nowrap; flex: none; }
.pairs { margin: 0; }
.pairs dt { font-size: 19px; font-weight: 800; letter-spacing: -.015em; margin-top: 22px; }
.pairs dd { margin: 4px 0 0; }
.questions { margin: 0; padding: 0; list-style: none; }
.questions li { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; padding: 16px 0; border-bottom: 1px solid var(--line); }
.report-notice { border-radius: 12px; padding: 12px 16px; margin: 0 0 28px; font-size: 14px; background: var(--soft); }
.report-notice.stale { background: #fff4d6; border: 1.5px solid #f0c95c; }
.report-notice.error { background: #ffecea; border: 1.5px solid var(--danger); color: #8f1a12; }
.report-notice .state.working { color: var(--ink); }
.report-notice .state.working::before { border-color: var(--accent); border-right-color: transparent; }
.report-page .foot { margin-top: 56px; }

@media (max-width: 900px) {
  .panel { grid-column: 1; grid-row: 3; }
  .report { grid-row: 2 / 4; }
  .report-page { padding: 32px 16px 72px; }
  .line { grid-template-columns: minmax(0, 1fr); }
  .line-head { flex-direction: column; }
}
@media print {
  .bar, .stage, .panel, .report-tools, .report-notice { display: none !important; }
  html, body, .workspace { height: auto; display: block; background: #fff; }
  .report { position: static; overflow: visible; background: #fff; }
  .report-page { padding: 0; max-width: none; }
  .line-head, .poles, .experiment { break-inside: avoid; }
  .branch-btn { display: none !important; }
  .annex > summary { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .toast { display: none !important; }
}

/* ---------- partir de un proyecto ---------- */
.project { margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; min-width: 0; }
.project > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.project > summary::-webkit-details-marker { display: none; }
.project > summary::after { content: "+"; margin-left: auto; font-weight: 400; font-size: 20px; line-height: 1; }
.project[open] > summary::after { content: "−"; }
.project[open] > summary { margin-bottom: 10px; }
.project > * + * { margin-top: 8px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.hint.error { color: var(--danger); font-weight: 500; }
.hint.ok { color: var(--ink); font-weight: 600; }
.hint.working .state.working { color: var(--ink); }
.hint.working .state.working::before { border-color: var(--accent); border-right-color: transparent; }
.project-row { display: flex; flex-wrap: wrap; gap: 6px; }
.project-row input[type="text"] { flex: 1 1 240px; font-size: 13px; font-weight: 400; padding: 9px 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }
.card .project-row button { margin: 0; padding: 7px 14px; font-size: 13px; }

.map-list a .from-project { display: block; margin-top: 3px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- vías de exploración ---------- */
.node.via text { font-size: 14px; font-weight: 700; }
.swatch.via { background: #ececec; border-width: 2.4px; }
.bar-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .28); overflow: hidden; margin: 4px 0; }
.bar-fill { height: 100%; background: #fff; border-radius: 999px; transition: width .4s; }
.frame { margin-top: 22px; padding: 14px 18px; border-left: 4px solid var(--ink); background: var(--soft); border-radius: 0 12px 12px 0; font-size: 15px; }
.report-page .line-via { margin: 4px 0 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }

.swatch.transversal { background: var(--accent); border-color: var(--accent); }

/* ---------- informe: giro, tensiones, provocaciones y apuestas ---------- */
.report-page .supports { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; margin: 14px 0 0; }
.report-page .supports > span:first-child { text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--muted); font-size: 11px; margin-right: 2px; }
.report-page .branch-btn { margin-top: 14px; }
.report-page .ficha { margin-top: 16px; font-size: 15px; }
.turn { margin-top: 34px; }
.turn-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
.turn-grid.single { grid-template-columns: minmax(0, 1fr); }
.turn-before, .turn-now { border-radius: 20px; padding: 20px 24px; }
.turn-before { background: var(--soft); color: var(--muted); }
.turn-before p:last-child { text-decoration: line-through; text-decoration-color: rgba(20, 20, 20, .28); }
.turn-now { background: var(--ink); color: #fff; }
.turn-now .eyebrow { color: #fff; }
.turn-now p:last-child { font-size: 21px; line-height: 1.32; font-weight: 500; }
.turn-then { font-size: 19px; line-height: 1.4; margin-top: 20px !important; }
.turn-alt { color: var(--muted); }
.recommend .nothing { font-size: 15px; font-weight: 400 !important; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .35); }
.tension { padding: 26px 0; border-bottom: 1px solid var(--line); }
.poles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 14px; position: relative; }
.poles p { margin: 0; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 16px 0 0 16px; background: var(--panel); }
.poles p + p { border-left: 0; border-radius: 0 16px 16px 0; }
.poles::after { content: "↔"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.report-page .step { background: var(--soft); border-left: 4px solid var(--ink); border-radius: 0 12px 12px 0; padding: 10px 14px; margin-top: 14px; }
.provoke { background: var(--ink); color: #fff; border-radius: 28px; padding: 34px 32px 14px; margin-left: -32px; margin-right: -32px; }
.report-page .provoke h2 { border-bottom-color: #fff; }
.provoke-note { font-size: 14px; color: rgba(255, 255, 255, .72); max-width: 60ch; }
.provs { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: prov; }
.prov { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.prov:first-child { border-top: 0; }
.prov h3 { font-size: 30px; }
.prov .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.prov .assume { color: rgba(255, 255, 255, .78); font-size: 15px; }
.prov .supports > span:first-child { color: rgba(255, 255, 255, .6); }
.prov .tag { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.prov .branch-btn { background: #fff; color: var(--ink); border-color: #fff; }
.bet .pitch { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin-top: 12px; }
.scene { margin: 16px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-size: 17px; line-height: 1.45; font-style: italic; }
.experiment { margin-top: 18px; border: 1.5px solid var(--ink); border-radius: 16px; padding: 16px 20px; background: var(--panel); }
.experiment .ficha { border-left: 0; padding-left: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; grid-auto-flow: column; grid-template-rows: auto auto; }
.experiment .ficha dt { margin-top: 0; }
.annex { margin-top: 64px; border-top: 2px solid var(--ink); }
.annex > summary { cursor: pointer; padding: 16px 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.annex section:first-of-type { margin-top: 24px; }
@media (max-width: 900px) {
  .turn-grid, .poles, .experiment .ficha { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .poles p, .poles p + p { border: 1.5px solid var(--line); border-radius: 16px; }
  .poles p + p { margin-top: 8px; }
  .poles::after { display: none; }
  .provoke { margin-left: -16px; margin-right: -16px; padding: 26px 16px 8px; border-radius: 20px; }
}

/* ---------- acceso ---------- */
.login-error { color: #8f1a12; font-size: 14px; margin: 10px 0 0; }

/* ---------- modo consulta ---------- */
.consulta { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.bar .consulta { white-space: nowrap; cursor: help; }
.home .consulta { margin-top: 28px; }
.panel p.consulta { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; line-height: 1.45; }
