/* Prueba del algoritmo · vista privada. Mismos tokens y componentes del diseño de Demonscore (app.css). */
.lab .tabs { display: flex; }
.lab-short { display: none; }
.lab-main { max-width: 1120px; margin: 0 auto; padding: 22px 16px 96px; }
.lab-card { max-width: 420px; margin: 48px auto; padding: 24px; }
.lab-card h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.lab-lead { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.lab-flag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--accent); border: 1px solid rgba(248, 72, 56, .35); border-radius: 6px; padding: 2px 7px; }
.lab-label { display: block; margin: 18px 0 6px; font-weight: 700; font-size: 13px; color: var(--text-2); }
.lab-input { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; }
.lab-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.lab-primary { background: var(--accent); color: #fff; }
.lab-primary:hover { background: #ff5a4a; }
.lab-msg { min-height: 18px; margin-top: 10px; color: var(--accent); font-size: 13px; }

.lab-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-end; margin-bottom: 6px; }
.lab-titles h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.lab-sub { color: var(--text-3); font-size: 12.5px; margin: 0; line-height: 1.5; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-actions .btn { margin-top: 0; height: 34px; font-size: 12.5px; }
.lab-h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 26px 0 12px; }

.lab-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.lab-empty { grid-column: 1 / -1; padding: 28px 18px; text-align: center; color: var(--text-2); font-size: 14px; line-height: 1.5; border: 1px dashed var(--line); border-radius: var(--r-3, 14px); }

.pc { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.pc-comp { font-weight: 700; color: var(--text-2); overflow-wrap: anywhere; }
.pc-time { flex: none; font-weight: 800; color: var(--text-2); }
.pc-time.live { color: var(--accent); }
.pc-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 10px; }
.pc-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.pc-team .nm { font-size: 13.5px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; color: var(--text); }
.pc-team.sel .nm { color: var(--text); }
.pc-team:not(.sel) .nm { color: var(--text-2); }
.pc-team.sel .nm::after { content: ''; display: block; width: 22px; height: 3px; margin: 5px auto 0; border-radius: 2px; background: var(--accent); }
.pc-crest { width: 40px; height: 40px; object-fit: contain; }
.pc-ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-weight: 800; font-size: 13px; }
.pc-score { line-height: 40px; font-family: var(--font-num); font-size: 30px; font-weight: 700; letter-spacing: .02em; color: var(--text); white-space: nowrap; }
.pc-pick { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc-pick .lbl { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.pc-pick .lbl small { display: block; font-size: 11.5px; font-weight: 650; color: var(--text-3); margin-top: 2px; }
.pc-prob { flex: none; text-align: right; }
.pc-prob b { display: block; font-family: var(--font-num); font-size: 32px; font-weight: 700; line-height: 1; color: var(--text); }
.pc-prob span { font-size: 11px; color: var(--text-3); font-weight: 650; }
.pc-why { font-size: 13px; line-height: 1.5; color: var(--text-2); margin: 0; }
.pc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.pc-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 800; }
.pc-state.pendiente { background: rgba(244, 193, 61, .13); color: #f4c13d; }
.pc-state.cumplida_provisional { background: rgba(47, 208, 122, .12); color: var(--win); }
.pc-state.cumplida { background: rgba(47, 208, 122, .18); color: var(--win); }
.pc-state.no_cumplida { background: rgba(248, 72, 56, .14); color: var(--accent); }
.pc-state.anulada { background: var(--surface-3); color: var(--text-3); }
.pc-state.demo { background: rgba(244, 193, 61, .18); color: #f4c13d; }

.lab-fold { margin-top: 26px; padding: 0; }
.lab-fold summary { cursor: pointer; padding: 14px 16px; font-weight: 800; font-size: 13.5px; color: var(--text-2); list-style: none; }
.lab-fold summary::-webkit-details-marker { display: none; }
.lab-fold summary::before { content: '▸'; display: inline-block; margin-right: 8px; transition: transform .15s; }
.lab-fold[open] summary::before { transform: rotate(90deg); }
.lab-fold-body { padding: 0 16px 16px; }
.lab-scroll { overflow-x: auto; margin-top: 10px; }
.lab-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 720px; }
.lab-table th { text-align: left; font-size: 11px; color: var(--text-3); font-weight: 750; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lab-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.lab-h3 { font-size: 13px; font-weight: 800; color: var(--text-2); margin: 22px 0 4px; }
.lab-pause { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(244, 193, 61, .12); color: #f4c13d; font-size: 13px; font-weight: 700; }
.lab-warn { color: #f4c13d; font-weight: 700; }
.lab-link { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.lab-demo-banner { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(244, 193, 61, .12); color: #f4c13d; font-size: 13px; font-weight: 700; }
.lab-toasts { position: fixed; right: 16px; bottom: 84px; z-index: 60; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.lab-toast { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }
.lab-toast.demo { border-color: #f4c13d; }

/* Entrada en la portada: pestaña y acceso en la barra inferior del móvil. */
.bottombar.has-lab { grid-template-columns: repeat(5, 1fr); }
.bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-3); text-decoration: none; text-align: center; line-height: 1.1; }

@media (max-width: 720px) {
  .lab-main { padding: 16px 12px 96px; }
  .lab-cards { grid-template-columns: 1fr; }
  .lab-titles h1 { font-size: 21px; }
  .lab-actions { width: 100%; }
  .lab-actions .btn { flex: 1 1 auto; justify-content: center; }
  .lab .tabs .tab { padding: 0 8px; font-size: 12.5px; }
  .lab-long { display: none; }
  .lab-short { display: inline; }
  .pc-score { font-size: 27px; }
}

/* Rediseño 20/10/2026: vistas, mercados, política, tarjeta compacta, detalle en ventana. */
.lab-views { display: flex; gap: 6px; margin: 14px 0 4px; border-bottom: 1px solid var(--line); }
.lab-view { background: none; border: 0; color: var(--text-2); font: inherit; font-weight: 800; font-size: 13.5px; padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lab-view.on { color: var(--text); border-bottom-color: var(--accent); }
.lab-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin: 14px 0 12px; }
.lab-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.lab-tabs::-webkit-scrollbar { display: none; }
.lab-tab, .lab-chip { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.lab-tab.on { background: var(--text); color: #0a0d14; border-color: var(--text); }
.lab-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-chip.on { border-color: var(--accent); color: var(--text); }
.lab-note { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pc-tag { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pc-tag.a1 { background: rgba(120, 140, 255, .16); color: #a9b6ff; }
.pc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pc-upd { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 750; color: var(--text-2); }
.pc-odds { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.pc-more { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; height: 28px; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.lab-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.lab-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 750; color: var(--text-3); }
.lab-filters select { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; padding: 0 8px; }
.lab-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; z-index: 50; }
.lab-modal[hidden] { display: none; }
.lab-modal-box { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; }
.lab-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--text-2); font-size: 26px; cursor: pointer; }
.lab-detail h3 { margin: 0 28px 4px 0; font-size: 18px; }
.lab-detail h4 { margin: 16px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.lab-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 13.5px; }
.lab-dl dt { color: var(--text-3); font-weight: 750; }
.lab-dl dd { margin: 0; color: var(--text); }
.lab-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.lab-list.cols { columns: 2; column-gap: 24px; }
@media (max-width: 560px) {
  .lab-cards { grid-template-columns: 1fr; }
  .lab-list.cols { columns: 1; }
  .lab-dl { grid-template-columns: 1fr; }
  .lab-bar { flex-direction: column; align-items: stretch; }
}
