/* Tanda 5 de la renovación del terminal: su hoja, y sólo suya.
   La enlaza terminal.html con la vista previa (tanda 0, 2026-11-04). Usar los
   tokens y clases de terminal-pieces.css; reglas con prefijo de la tanda
   (.t5-…) o bajo [data-tp="clave"] de sus piezas. Contrato: final de
   terminal_plan.md.

   Piezas: Stories, Alerts, What is coming, The weeks ahead, Right now, Macro
   figures, Dates the market already knows, What the betting markets expect y
   Market moves today. Todo se adapta por el tamaño **de la pieza**
   (`@container pieza`), nunca por la ventana. Sin un solo color suelto: los
   temas de una fecha usan las series de la tanda 0. */

/* --- común de la tanda --------------------------------------------------- */
/* El color de cada tema (leyenda de The weeks ahead y punto de las fechas). */
.t-rates, .t5-k-rates { --k: var(--series-5); }
.t-inflation, .t5-k-inflation { --k: var(--series-4); }
.t-jobs, .t5-k-jobs { --k: var(--series-2); }
.t-growth, .t5-k-growth { --k: var(--series-3); }
.t-crypto, .t5-k-crypto { --k: var(--accent); }
.t-other, .t5-k-other { --k: var(--series-6); }
.t5-k-rates, .t5-k-inflation, .t5-k-jobs, .t5-k-growth, .t5-k-crypto { color: var(--text-muted); }
.t5-weeks [class*="t5-k-"]::before { border-radius: 50%; }

/* La cara de una fila: logo, o un código (país, moneda) en una pastilla, con
   el punto del tema en la esquina. */
.t5-face { position: relative; flex: none; width: 28px; height: 28px; display: inline-grid; place-items: center; }
.t5-face img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.t5-face.sm { width: 22px; height: 22px; }
.t5-cc { display: inline-grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--surface-sunken); border: 1px solid var(--line); color: var(--text-muted);
  font-size: 9.5px; font-weight: 750; letter-spacing: .02em; font-style: normal; line-height: 1; }
.t5-cc.xs { position: absolute; right: -5px; bottom: -5px; width: 15px; height: 15px; font-size: 6.5px;
  background: var(--surface); }
.t5-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--k, var(--series-6)); box-shadow: 0 0 0 2px var(--surface); }
.t5-face.sm .t5-dot { width: 8px; height: 8px; }

/* Un día quieto o un hueco honesto: no es «No data», es que no pasó nada. */
.t5-quiet { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; text-align: center; color: var(--text-faint); font-size: var(--size-xs); padding: var(--s4) 0; }
.t5-quiet b { color: var(--text-muted); font-size: var(--size-sm); font-weight: 600; }

/* Pestañas que filtran sin pedir nada (radios con la forma de `.tp-seg`). */
/* La forma es la común de los radios en `.tp-seg` (`terminal-pieces.css`,
   integración del 2026-11-04); aquí sólo lo propio. */
.t5-tabs, .t5-al-tabs { min-width: 0; }
.t5-tabs label > span, .t5-al-tabs label > span { padding: 0 10px; }
.t5-al-tabs label.off { cursor: not-allowed; }
.t5-al-tabs label.off > span { color: var(--text-faint); opacity: .6; }
.t5-al-tabs small { font-size: inherit; color: var(--text-faint); font-weight: 600; }

/* --- 05 Stories --------------------------------------------------------- */
[data-tp="stories"] > .tp-body { padding-left: var(--s3); padding-right: var(--s3); gap: 0; }
.t5-st { min-width: 0; }
.t5-st-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.t5-st-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left;
  font-size: var(--size-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint);
  padding: var(--s1) var(--s2) var(--s2); border-bottom: 1px solid var(--tp-div); white-space: nowrap; }
.t5-st-table td { padding: var(--s2); border-bottom: 1px solid var(--tp-div); vertical-align: middle; }
.t5-st-table tbody tr:last-child td { border-bottom: 0; }
.t5-st-table tbody tr:hover td { background: var(--surface-hover); }
.t5-st-table tbody tr.on td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.t5-st-table tbody tr.on td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.t5-st-table tbody tr.on td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
th.t5-st-score, td.t5-st-score { width: 64px; }
/* La chapa de la puntuación: nunca se parte («10 / 0», F8). */
.t5-score { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px;
  padding: 5px 7px 6px; border-radius: var(--radius-sm); background: var(--surface-sunken); white-space: nowrap; }
.t5-score b { font-size: var(--size-md); font-weight: 750; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.t5-score i { display: block; width: 30px; height: 3px; border-radius: 2px; background: var(--track); position: relative; overflow: hidden; }
.t5-score i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v, 0) * 1%); background: var(--text-faint); border-radius: inherit; }
.t5-score.hot { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.t5-score.hot b { color: var(--warn); }
.t5-score.hot i::after { background: var(--warn); }
.t5-st-event { min-width: 0; }
.t5-st-title { display: block; color: var(--text); font-weight: 600; font-size: var(--size-sm); line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t5-st-title:hover { color: var(--accent); }
.t5-st-meta { display: flex; flex-wrap: wrap; gap: 2px var(--s2); margin-top: 3px; font-size: var(--size-2xs); color: var(--text-faint); }
.t5-st-meta > span + span::before { content: "·"; margin-right: var(--s2); }
.t5-st-meta b { color: var(--text-muted); font-weight: 600; }
.t5-st-state::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px;
  background: var(--text-faint); vertical-align: 1px; }
.t5-st-state.on { color: var(--accent); }
.t5-st-state.on::before { background: var(--accent); }
th.t5-st-cov, td.t5-st-cov { width: 190px; }
.t5-cov { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.t5-cov-logos { display: inline-flex; }
.t5-cov-one { display: inline-flex; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.t5-cov-one:first-child { margin-left: 0; }
.t5-cov-one .olg, .t5-cov-one .mark { border-radius: 50%; }
.t5-cov-n { font-size: var(--size-2xs); color: var(--text-faint); }
.t5-cov-n b { font-size: var(--size-sm); color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
th.t5-st-time, td.t5-st-time { width: 116px; white-space: nowrap; }
td.t5-st-time b { display: block; font-size: var(--size-sm); font-weight: 600; color: var(--text); }
td.t5-st-time span { font-size: var(--size-2xs); color: var(--text-faint); }
.t5-st-none { margin: var(--s4) 0; text-align: center; color: var(--text-faint); font-size: var(--size-sm); }
/* Estrecha: primero se va la cobertura, después la hora baja bajo el título. */
[data-tp="stories"] .t5-short { display: none; }
@container pieza (max-width: 760px) { .t5-st-cov { display: none; } }
@container pieza (max-width: 520px) {
  .t5-st-time { display: none; }
  .t5-st-first { display: none; }
  [data-tp="stories"] .t5-long { display: none; }
  [data-tp="stories"] .t5-short { display: inline; }
  th.t5-st-score, td.t5-st-score { width: 52px; }
  .t5-score { min-width: 38px; padding: 4px 5px 5px; }
}
@container pieza (max-width: 420px) {
  [data-tp="stories"] .tp-legend .t5-tabs label:last-child b { display: none; }
}

/* --- 06 Alerts ---------------------------------------------------------- */
.t5-al { display: flex; flex-direction: column; gap: var(--s3); min-height: 0; }
.t5-al-tabs { flex: none; align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.t5-al-tabs::-webkit-scrollbar { display: none; }
.t5-al-list { display: grid; }
.t5-al-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s2); margin: 0 calc(-1 * var(--s2));
  border-top: 1px solid var(--tp-div); color: inherit; text-decoration: none; min-width: 0; border-radius: var(--radius-sm); }
.t5-al-row:first-child, .t5-al-row.pin + .t5-al-row { border-top-color: transparent; }
a.t5-al-row[href]:hover { background: var(--surface-hover); }
.t5-al-row.pin { background: color-mix(in srgb, var(--warn) 8%, transparent); border-top-color: transparent; }
.t5-al-row.k-service { --rule: var(--warn); }
.t5-al-row.k-rises, .t5-al-row.k-drops { --rule: var(--info); }
.t5-al-row.k-hacks { --rule: var(--down); }
.t5-al-row.k-news { --rule: var(--accent); }
.t5-al-row .al-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.t5-al-row .al-ico:not(.has-face) { color: var(--rule);
  background: color-mix(in srgb, var(--rule) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rule) 28%, transparent); }
.t5-al-row .al-face { border-radius: 50%; width: 30px; height: 30px; }
.t5-al-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.t5-al-name { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.t5-al-name b { font-size: var(--size-sm); font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.t5-al-meta { font-size: var(--size-2xs); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-al-rule { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.k-service .t5-al-rule { color: var(--warn); }
.k-rises .t5-al-rule, .k-drops .t5-al-rule { color: var(--info); }
.k-hacks .t5-al-rule { color: var(--down); }
.k-news .t5-al-rule { color: var(--accent); }
.t5-al-end { flex: none; display: grid; justify-items: end; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.t5-al-end b { font-size: var(--size-sm); font-weight: 700; color: var(--text); white-space: nowrap; }
.t5-al-end b.up { color: var(--up); }
.t5-al-end b.down { color: var(--down); }
.t5-al-end small { font-size: var(--size-2xs); color: var(--text-faint); white-space: nowrap; }
/* El filtro: sólo lo de la pestaña marcada. El servicio fijado sale en All y
   en Service. */
.t5-al:has(input[value="rises"]:checked) .t5-al-row:not([data-k="rises"]),
.t5-al:has(input[value="drops"]:checked) .t5-al-row:not([data-k="drops"]),
.t5-al:has(input[value="service"]:checked) .t5-al-row:not([data-k="service"]),
.t5-al:has(input[value="hacks"]:checked) .t5-al-row:not([data-k="hacks"]),
.t5-al:has(input[value="news"]:checked) .t5-al-row:not([data-k="news"]) { display: none; }
@container pieza (max-width: 360px) {
  .t5-al-tabs label > span { padding: 0 7px; }
  .t5-al-tabs small { display: none; }
}

/* --- 04 What is coming -------------------------------------------------- */
.t5-agenda { display: grid; }
.t5-ag-day { display: flex; align-items: baseline; gap: 6px; padding: var(--s3) 0 var(--s2); border-bottom: 1px solid var(--tp-div);
  font-size: var(--size-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); position: sticky; top: calc(-1 * var(--s2));
  background: var(--surface); z-index: 1; }
.t5-ag-day:first-child { padding-top: 0; }
.t5-ag-day b { color: var(--text); font-weight: 700; }
.t5-ag-date { text-transform: none; letter-spacing: 0; font-size: var(--size-xs); }
.t5-ag-n { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: var(--size-xs); }
.t5-ag-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); margin: 0 calc(-1 * var(--s2));
  border-radius: var(--radius-sm); color: inherit; text-decoration: none; min-width: 0; }
.t5-ag-row + .t5-ag-row { box-shadow: inset 0 1px 0 var(--tp-div); }
.t5-ag-row:hover { background: var(--surface-hover); }
.t5-ag-row.past { opacity: .55; }
.t5-ag-row.next { background: var(--surface-hover); box-shadow: none; }
.t5-ag-time { flex: none; width: 42px; font-size: var(--size-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.t5-ag-row.next .t5-ag-time { color: var(--text); font-weight: 600; }
.t5-ag-what { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.t5-ag-title { font-size: var(--size-sm); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-ag-meta { font-size: var(--size-2xs); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-ag-meta b { color: var(--text-muted); }
.t5-ag-kind { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--k, var(--text-muted)); }
.t5-in { flex: none; padding: 3px 8px; border-radius: 6px; font-size: var(--size-2xs); font-weight: 700; white-space: nowrap;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); font-variant-numeric: tabular-nums; }
.t5-out { flex: none; color: var(--text-faint); font-size: var(--size-sm); }
.t5-ag-row:hover .t5-out { color: var(--accent); }
.t5-ag-now { display: flex; align-items: center; gap: var(--s2); margin: var(--s1) 0; font-size: var(--size-2xs);
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.t5-ag-now b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t5-ag-now i { flex: 1 1 auto; height: 1px; background: var(--accent); opacity: .7; }
@container pieza (max-width: 340px) {
  .t5-ag-time { width: 36px; font-size: var(--size-xs); }
  .t5-out { display: none; }
}

/* --- 25 The weeks ahead ------------------------------------------------- */
[data-tp="cal.weeks"] .tp-legend { gap: var(--s1) var(--s3); }
.t5-wk { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s4) var(--s5); }
.t5-wk-col { min-width: 0; display: flex; flex-direction: column; }
.t5-wk-col + .t5-wk-col { border-left: 1px solid var(--tp-div); padding-left: var(--s5); }
.t5-wk-head { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.t5-wk-head b { font-size: var(--size-sm); font-weight: 700; color: var(--text); }
.t5-wk-head span { margin-left: auto; font-size: var(--size-xs); color: var(--text-faint); white-space: nowrap; }
.t5-wk-list { list-style: none; margin: 0; padding: 0; display: grid; min-width: 0; }
.t5-wk-list li { min-width: 0; }
.t5-wk-list li + li { border-top: 1px solid var(--tp-div); }
.t5-wk-list a { display: flex; align-items: center; gap: var(--s2); padding: 6px 0; color: inherit; text-decoration: none; min-width: 0; }
.t5-wk-list a:hover .t5-wk-what { color: var(--accent); }
.t5-wk-day { flex: none; width: 46px; font-size: var(--size-xs); color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-rates .t5-wk-day { color: var(--k); font-weight: 600; }
.t5-wk-what { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--size-sm);
  font-weight: 600; color: var(--text); }
.t5-wk-more { margin-top: auto; padding-top: var(--s2); font-size: var(--size-xs); font-weight: 600; color: var(--accent); }
.t5-wk-more:hover { text-decoration: underline; }
.t5-wk-none { margin: 0; font-size: var(--size-xs); color: var(--text-faint); }
/* En una columna, el divisor va arriba y no al lado. */
@container pieza (max-width: 699px) {
  .t5-wk { grid-template-columns: 1fr; }
  .t5-wk-col + .t5-wk-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--tp-div); padding-top: var(--s3); }
}
@container pieza (max-width: 760px) { [data-tp="cal.weeks"] .tp-legend { display: none; } }

/* --- 14 Right now ------------------------------------------------------- */
.t5-now-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: start; }
.t5-now-left { display: grid; gap: var(--s3); justify-items: start; min-width: 0; }
.t5-tone i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t5-sig { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.t5-sig li { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--size-base); white-space: nowrap; }
.t5-sig b { font-weight: 700; color: var(--text); }
.t5-sig span:last-child { color: var(--text-muted); }
.t5-arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--seg-bg);
  border: 1px solid var(--tp-div); color: var(--text-muted); }
.t5-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t5-now-right { display: grid; gap: var(--s2); min-width: 0; padding-left: var(--s5); border-left: 1px solid var(--tp-div); }
.t5-seg6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.t5-seg6 i { height: 10px; border-radius: 3px; background: var(--text-faint); opacity: .7; }
.t5-seg6 i.up { background: var(--up-fill); opacity: 1; }
.t5-seg6 i.down { background: var(--down); opacity: 1; }
.t5-seg6-n { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--size-xs); color: var(--text-muted); flex-wrap: wrap; }
.t5-seg6-n b { font-size: var(--size-md); font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.t5-seg6-n b.up { color: var(--up); }
.t5-seg6-n b.down { color: var(--down); }
.t5-prec { margin: 0; font-size: var(--size-xs); color: var(--text-muted); }
.t5-now-text { margin: 0; font-size: var(--size-sm); line-height: 1.55; color: var(--text-muted); }
.t5-now-text b { color: var(--text); font-weight: 650; }
@container pieza (max-width: 620px) {
  .t5-now-grid { grid-template-columns: 1fr; }
  .t5-now-right { padding-left: 0; border-left: 0; }
}
@container pieza (max-height: 300px) { .t5-now-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }

/* --- 17 Macro figures --------------------------------------------------- */
.t5-lean-n { text-transform: none; letter-spacing: 0; font-size: var(--size-xs); font-weight: 500; }
.t5-lean-n b { font-weight: 750; color: var(--text); }
.t5-lean-n b.up { color: var(--up); }
.t5-lean-n b.down { color: var(--down); }
.t5-fig-list { list-style: none; margin: 0; padding: 0; display: grid; }
.t5-fig-list li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--tp-div); min-width: 0; }
.t5-fig-list li:first-child { border-top: 0; }
.t5-fig-ico { position: relative; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--seg-bg); border: 1px solid var(--tp-div); color: var(--accent); }
.t5-fig-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t5-fig-ico.sm { width: 26px; height: 26px; border-radius: 7px; }
.t5-fig-ico.sm svg { width: 15px; height: 15px; }
.t5-fig-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.t5-fig-name { font-size: var(--size-sm); font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-fig-sub { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.t5-fig-note { font-size: var(--size-2xs); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-fig-end { flex: none; display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; }
.t5-fig-val { font-size: var(--size-md); font-weight: 750; color: var(--text); white-space: nowrap; letter-spacing: -0.01em; }
.t5-fig-chg { font-size: var(--size-2xs); color: var(--text-muted); white-space: nowrap; }
.t5-fig-chg i { font-style: normal; color: var(--text-faint); }
/* Las baldosas 3×2, sólo en la pieza ancha; la lista, en la estrecha. */
.t5-fig-tiles { display: none; }
@container pieza (min-width: 600px) {
  .t5-fig-list { display: none; }
  .t5-fig-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
}
.t5-fig-tile { display: grid; gap: var(--s2); padding: var(--s3); border-radius: var(--radius-sm); background: var(--surface-sunken);
  border: 1px solid var(--tp-div); min-width: 0; }
.t5-fig-tile-top { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.t5-fig-tile-name { flex: 1 1 auto; min-width: 0; font-size: var(--size-xs); font-weight: 600; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-fig-tile-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.t5-fig-tile .t5-fig-val { font-size: var(--size-lg); }
@container pieza (max-width: 359px) { .t5-fig-note { display: none; } }

/* --- Dates the market already knows ------------------------------------ */
.t5-dt { list-style: none; margin: 0; padding: 0; display: grid; }
.t5-dt li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--tp-div); min-width: 0; }
.t5-dt li:first-child { border-top: 0; }
.t5-dt-day { flex: none; width: 66px; display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
.t5-dt-day b { font-size: var(--size-sm); font-weight: 700; color: var(--text); }
.t5-dt-day small { font-size: var(--size-2xs); color: var(--text-faint); }
.t5-dt li.soon .t5-dt-day small { color: var(--accent); font-weight: 600; }
/* Base cero (2026-11-06): con `auto` un título largo («Consumer Price Index
   Excluding Energy Commodities…») pedía su ancho entero y, en la pieza
   estrecha (que deja partir la fila), saltaba a una línea propia debajo de
   la fecha y descolocaba la fila. Ahora encoge y se corta con «…». */
.t5-dt-what { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; }
.t5-dt-what b { font-size: var(--size-sm); font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-dt-what small { font-size: var(--size-2xs); color: var(--text-faint); }
.t5-dt-end { flex: none; display: grid; justify-items: end; gap: 2px; max-width: 46%; text-align: right; font-size: var(--size-xs); color: var(--text-muted); }
.t5-dt-end small { font-size: var(--size-2xs); color: var(--text-faint); }
.t5-dt-last, .t5-dt-exp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.t5-dt-exp b { color: var(--text); }
@container pieza (max-width: 460px) {
  [data-tp="mr.dates"] .tp-label { display: none; }
  .t5-dt li { flex-wrap: wrap; row-gap: 2px; }
  .t5-dt-end { order: 3; flex-basis: 100%; max-width: none; justify-items: start; text-align: left;
    padding-left: calc(66px + var(--s3)); grid-auto-flow: column; justify-content: start; gap: var(--s3); }
}

/* --- What the betting markets expect ------------------------------------ */
.t5-bt { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.t5-bt li { display: grid; gap: 6px; padding: var(--s3) 0; border-top: 1px solid var(--tp-div); min-width: 0; }
.t5-bt li:first-child { border-top: 0; padding-top: 0; }
@container pieza (min-width: 640px) {
  .t5-bt { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
  .t5-bt li:nth-child(2) { border-top: 0; padding-top: 0; }
}
.t5-bt-head { display: grid; gap: 1px; min-width: 0; }
.t5-bt-q { font-size: var(--size-sm); font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.t5-bt-q:hover { color: var(--accent); }
.t5-bt-head small { font-size: var(--size-2xs); color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t5-bt-lead { display: flex; align-items: baseline; gap: var(--s2); min-width: 0; }
.t5-bt-p { font-size: var(--size-lg); font-weight: 800; color: var(--k, var(--accent)); font-variant-numeric: tabular-nums; line-height: 1; }
.t5-bt-l { flex: 1 1 auto; min-width: 0; font-size: var(--size-sm); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-bt-stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--track); gap: 2px; }
.t5-bt-stack i { flex: 0 0 calc(var(--v, 0) * 1%); background: var(--k, var(--accent)); min-width: 2px; }
.t5-bt-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: var(--s2); }
.t5-bt-ladder > span { display: grid; gap: 3px; min-width: 0; }
.t5-bt-ladder small { font-size: var(--size-2xs); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-bt-ladder > span.on small { color: var(--text); font-weight: 600; }
.t5-bt-ladder .tp-bar { min-width: 0; }

/* --- Market moves today ------------------------------------------------- */
.t5-mv-whole { display: grid; gap: 2px; padding: var(--s2) var(--s3); border-radius: var(--radius-sm); text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--down) 9%, transparent); }
.t5-mv-whole.up { background: color-mix(in srgb, var(--up) 9%, transparent); }
.t5-mv-whole b { font-size: var(--size-sm); color: var(--text); }
.t5-mv-whole small { font-size: var(--size-2xs); color: var(--text-muted); }
.t5-mv { list-style: none; margin: 0; padding: 0; display: grid; }
.t5-mv li + li { border-top: 1px solid var(--tp-div); }
.t5-mv-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); margin: 0 calc(-1 * var(--s2)); border-radius: var(--radius-sm);
  color: inherit; text-decoration: none; min-width: 0; }
.t5-mv-row:hover { background: var(--surface-hover); }
.t5-mv-what { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.t5-mv-name { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.t5-mv-what b { font-size: var(--size-sm); font-weight: 700; color: var(--text); }
.t5-mv-what small { font-size: var(--size-2xs); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-mv-none { color: var(--info); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.t5-mv-end { flex: none; display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; }
.t5-mv-end b { font-size: var(--size-sm); font-weight: 700; white-space: nowrap; }
.t5-mv-end b.up { color: var(--up); }
.t5-mv-end b.down { color: var(--down); }
.t5-mv-end small { font-size: var(--size-2xs); color: var(--text-faint); }

/* Macro figures baja (4 filas): las baldosas se aprietan para que quepan las dos filas. */
@container pieza (min-width: 600px) and (max-height: 340px) {
  .t5-fig-tiles { gap: var(--s2); }
  .t5-fig-tile { padding: var(--s2) var(--s3); gap: 2px; }
  .t5-fig-tile .t5-fig-val { font-size: var(--size-md); }
  [data-tp="mr.figures"] > .tp-foot { display: none; }
}

/* --- Movimiento propio de la tanda 5 (2026-11-05) ----------------------- */
/* Stories: la minibarra de la puntuación crece; la historia que sigue
   entrando late. */
.t5-score i::after { transform-origin: left center; animation: t46-grow-x .8s .15s cubic-bezier(.2, .8, .2, 1) backwards; }
.t5-st-state.on::before { animation: t46-pulse 1.8s ease-out infinite; }
.t5-cov-one { transition: transform .18s ease; }
.t5-cov-one:hover { transform: translateY(-2px) scale(1.12); z-index: 1; }
/* Alerts: el servicio que sigue caído late; la pestaña encendida. */
.t5-al-row.pin .al-ico { animation: t46-pulse 1.8s ease-out infinite; --k: var(--warn); }
.t5-al-tabs label.hl > span { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.t5-al-row { transition: opacity .18s ease, background-color .18s ease; }
/* What is coming: la línea «Now» y la cuenta atrás laten. */
.t5-ag-now i { position: relative; }
.t5-ag-now i::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3px;
  border-radius: 50%; background: var(--accent); animation: t46-pulse 1.8s ease-out infinite; }
.t5-ag-row.next .t5-in { animation: t46-pulse 2.4s ease-out infinite; }
/* The weeks ahead: seis por semana si la pieza es alta; cuatro si no. */
.t5-wk-tall { display: none; }
@container pieza (min-height: 380px) { .t5-wk-short { display: none; } .t5-wk-tall { display: block; } }
[data-tp="cal.weeks"] .tp-legend .tp-key { cursor: pointer; padding: 0 3px; border-radius: 4px; }
[data-tp="cal.weeks"] .tp-legend .tp-key.hl { color: var(--text); background: var(--surface-hover); }
.t5-wk-list li { transition: opacity .18s ease; }
.t5-wk-list li:hover { background: var(--surface-hover); border-radius: var(--radius-sm); }
/* Right now: los tramos crecen al pasar; la cuenta enlazada se enciende. */
.t5-seg6 i { cursor: pointer; transition: transform .18s ease, opacity .18s ease, filter .18s ease; }
.t5-seg6 i:hover, .t5-seg6 i.hl { transform: scaleY(1.6); }
.t5-seg6-n > span { cursor: pointer; padding: 0 4px; border-radius: 4px; }
.t5-seg6-n > span.hl { background: var(--surface-hover); }
.t5-tone { --k: var(--text-muted); }
.t5-tone.up { --k: var(--up); }
.t5-tone.down { --k: var(--down); }
/* Macro figures: la baldosa señalada se levanta; la cuenta enlazada. */
.t5-fig-tile { transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.t5-fig-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--text) 10%, transparent); }
.t5-fig-list li:hover { background: var(--surface-hover); border-radius: var(--radius-sm); }
.t5-lean-n { cursor: pointer; padding: 0 3px; border-radius: 4px; }
.t5-lean-n.hl { background: var(--surface-hover); }
/* Dates: las de los próximos dos días laten. */
.t5-dt li.soon .t5-dt-day b { position: relative; }
.t5-dt li.soon .t5-dt-day b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 2px;
  border-radius: 50%; background: var(--accent); animation: t46-pulse 1.8s ease-out infinite; }
.t5-dt li:hover { background: var(--surface-hover); border-radius: var(--radius-sm); }
/* Betting markets: el tramo y el peldaño señalados crecen. */
.t5-bt-stack { overflow: visible; }
.t5-bt-stack i { border-radius: 2px; transition: transform .18s ease, opacity .18s ease, filter .18s ease; }
.t5-bt-stack i:hover { transform: scaleY(1.7); }
.t5-bt-ladder > span:hover .tp-bar { transform: scaleY(1.6); }
.t5-bt-ladder > span:hover small { color: var(--text); }
/* Market moves today: la barra del tamaño del movimiento. */
.t5-mv-end .t5-mv-bar { width: 64px; height: 3px; min-width: 0; }
.t5-mv-whole { transition: filter .18s ease, transform .18s ease; }
.t5-mv-whole:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* El movimiento común de las tandas 4, 5 y 6 (clase `t46`, keyframes
   `t46-*`, realce `data-hl`) vive en `static/fx.css` desde el 2026-11-06,
   la hoja de efectos de todo el sitio que `base.html` carga siempre. */
