/* La ventana «Customize», «My boards», la barra de colocar, los tableros
 * compartidos, el escenario de las miniaturas y el editor de presets del panel
 * (F7-56, 2026-11-06; diseño t69 §4–§7).
 *
 * Sólo tokens de `blockboard.css` (los dos temas salen solos); para mover,
 * sólo `transform` y `opacity`; con `prefers-reduced-motion` no se mueve
 * nada. Los botones de aquí deshacen el estilo global de `button` (borde,
 * fondo, alto mínimo) cuando no son botones de verdad a la vista.
 */

/* --- Colores por categoría (miniaturas de tablero y bloques del editor) --- */
:root {
  --cat-stories: var(--info);
  --cat-moves: var(--hot);
  --cat-markets: var(--accent);
  --cat-derivatives: var(--down);
  --cat-onchain: var(--warn);
  --cat-coins: var(--up);
  --cat-read: var(--info);
  --cat-narratives: var(--violet-400);
  --cat-yields: var(--up);
  --cat-presales: var(--danger);
  --cat-alerts: var(--down);
  --cat-calendar: var(--warn);
  --cat-portfolio: var(--accent);
  --cat-figures: var(--text-faint);
}

/* --- El velo y la ventana ------------------------------------------------- */
html.cz-lock { overflow: hidden; }
.cz {
  position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: max(16px, 4vh) max(16px, 4vw); border: 0; background: transparent;
  color: var(--text); overflow: hidden;
}
.cz:not([open]) { display: none; }
.cz::backdrop {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: cz-fade .25s ease both;
}
.cz-win {
  position: relative; height: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow), var(--sheen); overflow: hidden;
  transform-origin: var(--cz-ox, 50%) var(--cz-oy, 0);
  animation: cz-pop .32s cubic-bezier(.2,.8,.2,1) both;
}
.cz.cz-closing .cz-win { animation: cz-shut .18s ease both; }
.cz.cz-closing::backdrop { animation: cz-fade .18s ease reverse both; }
@keyframes cz-fade { from { opacity: 0; } }
@keyframes cz-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes cz-shut { to { opacity: 0; transform: scale(.97); } }

.cz-head {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line); min-width: 0;
}
.cz-title { margin: 0; font-size: var(--size-md); font-weight: 700; white-space: nowrap; }
.cz-sp { flex: 1 1 auto; }
.cz-tabs {
  display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); border: 1px solid var(--line); min-width: 0;
}
.cz-tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 14px;
  border: 0; border-radius: var(--radius-pill); background: none; box-shadow: none;
  font-size: var(--size-sm); font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
.cz-tab:hover { background: var(--surface-hover); color: var(--text); }
.cz-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.cz-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cz-badge-new {
  font-size: 10px; font-weight: 700; color: var(--accent-ink); background: var(--accent);
  border-radius: var(--radius-pill); padding: 1px 6px;
}
.cz-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: none; box-shadow: none;
  font-size: var(--size-xs); color: var(--text-muted); max-width: 260px; font-weight: 500;
}
.cz-pill b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-ib {
  display: inline-grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-sunken);
  color: var(--text-muted); box-shadow: none; flex: none;
}
.cz-ib:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-hover); }
.cz-ib[disabled] { opacity: .4; cursor: default; }
.cz-ib svg, .cz-i svg, .cz-search svg, .cz-add svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Pestaña «Add widgets»: carril + rejilla -------------------------------- */
.cz-pane { min-height: 0; }
.cz-pane[hidden] { display: none !important; }
.cz-addpane { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.cz-rail {
  display: flex; flex-direction: column; gap: 2px; padding: var(--s3);
  border-right: 1px solid var(--line); overflow: auto; min-height: 0; scrollbar-width: thin;
}
.cz-rail-h {
  margin: var(--s3) var(--s2) var(--s1); font-size: var(--size-2xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 650;
}
.cz-rail-b {
  display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px;
  border: 0; border-radius: 8px; background: none; box-shadow: none; text-align: left;
  font-size: var(--size-sm); font-weight: 500; color: var(--text-muted); justify-content: flex-start;
}
.cz-rail-b:hover { background: var(--surface-hover); color: var(--text); }
.cz-rail-b[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.cz-rail-b:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cz-ri { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.cz-ri svg { width: 16px; height: 16px; }
.cz-rail-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-rail-n { margin-left: auto; font-size: var(--size-2xs); color: var(--text-faint); font-variant-numeric: tabular-nums; }

.cz-main { overflow: auto; min-height: 0; padding: var(--s4) var(--s5) var(--s5); outline: 0; scrollbar-width: thin; }
.cz-search {
  display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s4); padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-sunken);
  color: var(--text-faint);
}
.cz-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cz-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: 0; box-shadow: none;
  padding: 10px 0; font-size: var(--size-sm); color: var(--text);
}
.cz-search kbd {
  font: 600 var(--size-2xs) var(--font); color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}
.cz-sechead { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s3); }
.cz-sec-t { margin: 0; font-size: var(--size-md); font-weight: 700; }
.cz-sec-p { margin: 0; color: var(--text-faint); font-size: var(--size-sm); }
.cz-sec-a { margin-left: auto; color: var(--accent); font-size: var(--size-sm); }
.cz-linkbtn {
  border: 0; background: none; box-shadow: none; min-height: 0; padding: 0;
  color: var(--accent); font-weight: 600; font-size: var(--size-sm);
}
.cz-linkbtn:hover { background: none; text-decoration: underline; }
.cz-chips, .cz-fams { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--s4); }
.cz-fams { flex-basis: 100%; margin: var(--s2) 0 0; }
.cz-chip {
  min-height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: none; box-shadow: none; font-size: var(--size-xs); font-weight: 500; color: var(--text-muted);
}
.cz-chip:hover { border-color: var(--line-strong); color: var(--text); background: none; }
.cz-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.cz-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: var(--s3);
  align-items: start;
}
.cz-grp {
  grid-column: 1 / -1; margin: var(--s3) 0 0; font-size: var(--size-2xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 650;
}
.cz-grp:first-child { margin-top: 0; }
.cz-empty { grid-column: 1 / -1; color: var(--text-faint); font-size: var(--size-sm); margin: var(--s4) 0; }

/* --- La tarjeta ------------------------------------------------------------- */
.cz-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-sunken);
  overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cz-enter .cz-card:not(.cz-noanim) { animation: cz-up .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(min(var(--i, 0), 16) * 30ms); }
@keyframes cz-up { from { opacity: 0; transform: translateY(8px); } }
.cz-card:hover, .cz-card:focus-within {
  transform: translateY(-2px); border-color: var(--line-strong);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
}
.cz-card-main {
  display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; color: inherit;
  min-height: 0; font-weight: inherit; position: relative;
}
.cz-card-main:hover { background: none; }
.cz-card-main:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius) var(--radius) 0 0; }
.cz-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.cz-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block;
  opacity: 0; transition: opacity .25s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.cz-thumb.cz-loaded img { opacity: 1; }
.cz-thumb-sch svg, .cz-thumb svg.cz-sch { width: 86%; height: 78%; }
.cz-card:hover .cz-thumb img, .cz-card:focus-within .cz-thumb img { transform: scale(1.04); }
.cz-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--text) 9%, transparent) 50%, transparent 60%);
  transform: translateX(-100%);
}
.cz-card:hover .cz-thumb::after { transform: translateX(100%); transition: transform .8s ease; }
.cz-onchip {
  position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10.5px; font-weight: 700;
  background: var(--up); color: var(--accent-ink); border-radius: var(--radius-pill); padding: 2px 8px;
  animation: cz-drop .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cz-drop { from { opacity: 0; transform: translateY(-6px); } }
.cz-card-tx { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 4px; }
.cz-card-t { font-size: var(--size-sm); font-weight: 700; line-height: 1.3; color: var(--text); }
.cz-card-b {
  font-size: var(--size-xs); color: var(--text-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cz-card-f { display: flex; align-items: center; gap: 6px; padding: 6px 12px 12px; margin-top: auto; flex-wrap: wrap; }
.cz-size {
  --w: 4; --h: 3; flex: none; width: 41px; height: 22px; border: 1px solid var(--line); border-radius: 4px;
  position: relative; background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 2px 2px / 3px 3px,
    linear-gradient(var(--line) 1px, transparent 1px) 2px 2px / 3px 3px;
}
.cz-size::after {
  content: ""; position: absolute; left: 2px; top: 2px; border-radius: 1px; background: var(--accent);
  width: calc(var(--w) * 3px - 1px); height: calc(var(--h) * 3px - 1px);
}
.cz-tag {
  font-size: 10.5px; font-weight: 600; border-radius: var(--radius-pill); padding: 1px 7px;
  border: 1px solid var(--line); color: var(--text-faint); white-space: nowrap;
}
.cz-tag-live { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.cz-tag-new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.cz-tag-yours { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.cz-var { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.cz-var-b {
  min-height: 24px; padding: 0 7px; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: var(--size-2xs); font-weight: 650; color: var(--text-muted);
}
.cz-var-b + .cz-var-b { border-left: 1px solid var(--line); }
.cz-var-b[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.cz-add {
  margin-left: auto; display: inline-grid; place-items: center; width: 30px; height: 30px; min-height: 30px;
  padding: 0; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--accent); box-shadow: none; transition: background .15s, color .15s, transform .2s;
}
.cz-card:hover .cz-add:not([aria-pressed="true"]), .cz-add:focus-visible:not([aria-pressed="true"]) {
  background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); border-color: transparent;
}
.cz-add[aria-pressed="true"] {
  background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); border-color: transparent;
}
.cz-add.cz-confirm { width: auto; padding: 0 10px; color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); font-size: var(--size-2xs); font-weight: 650; }
.cz-add.cz-loading { color: transparent; position: relative; }
.cz-add.cz-loading::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 2px solid var(--accent); border-right-color: transparent; animation: cz-spin .7s linear infinite;
}
@keyframes cz-spin { to { transform: rotate(360deg); } }
.cz-fly { position: fixed; z-index: 10; pointer-events: none; border-radius: 10px; overflow: hidden; margin: 0; }

/* --- El bocadillo y la ficha ------------------------------------------------- */
.cz-peek, .cz-sheet {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.cz-peek { position: absolute; z-index: 5; width: 380px; max-height: calc(100% - 16px); overflow: auto; }
.cz-peek-in { animation: cz-up .2s cubic-bezier(.2,.8,.2,1) both; }
.cz-peek-big { background: var(--bg); padding: 10px; border-bottom: 1px solid var(--line); }
.cz-peek-big .cz-thumb { border: 0; border-radius: 8px; aspect-ratio: auto; min-height: 140px; }
.cz-peek-big .cz-thumb img { height: auto; max-height: 260px; object-fit: contain; object-position: center; }
.cz-peek-tx { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.cz-peek-t { margin: 0; font-size: var(--size-md); }
.cz-peek-info { margin: 0; font-size: var(--size-sm); color: var(--text-muted); line-height: 1.5; }
.cz-peek-src { margin: 0; font-size: var(--size-2xs); color: var(--text-faint); }
.cz-sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.cz-size-b {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-height: 0; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-sunken); box-shadow: none;
  font-size: var(--size-2xs); color: var(--text-muted); font-weight: 500;
}
.cz-size-b[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.cz-size-box { display: block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .85; }
.cz-peek-act { display: flex; gap: 8px; flex-wrap: wrap; }
.cz-sheet {
  position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  border-radius: 14px 0 0 14px; overflow: auto;
}
.cz-sheet-in { animation: cz-slide .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cz-slide { from { transform: translateX(24px); opacity: 0; } }
.cz-back {
  margin: var(--s3); min-height: 30px; border: 1px solid var(--line); background: none; box-shadow: none;
  font-size: var(--size-xs); color: var(--text-muted);
}

/* --- El pie ------------------------------------------------------------------ */
.cz-foot {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line); font-size: var(--size-sm); color: var(--text-muted); flex-wrap: wrap;
}
.cz-count { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.cz-count b { color: var(--text); font-size: var(--size-base); }
.cz-bar {
  width: 120px; height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunken);
  border: 1px solid var(--line); overflow: hidden; display: inline-block;
}
.cz-bar i {
  display: block; height: 100%; width: 100%; background: var(--accent); border-radius: var(--radius-pill);
  transform-origin: left; transform: scaleX(0); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cz-count.cz-warn .cz-bar i { background: var(--warn); }
.cz-count.cz-warn b { color: var(--warn); }
.cz-heavy { color: var(--warn); font-size: var(--size-xs); }
.cz-bump b { animation: cz-bump .45s cubic-bezier(.2,.8,.2,1); display: inline-block; }
@keyframes cz-bump { 40% { transform: scale(1.35); color: var(--accent); } }

/* --- El aviso y lo que se lee en voz alta ------------------------------------- */
.cz-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 2147483000; transform: translateX(-50%);
  display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); border-radius: 10px; padding: 10px 14px;
  font-size: var(--size-sm); box-shadow: var(--shadow); animation: cz-toast .3s cubic-bezier(.2,.8,.2,1) both;
}
.cz-toast[hidden] { display: none; }
.cz-toast.cz-out { opacity: 0; transition: opacity .2s; }
@keyframes cz-toast { from { opacity: 0; transform: translate(-50%, 10px); } }
.cz-toast-a {
  min-height: 28px; padding: 0 4px; border: 0; background: none; box-shadow: none;
  color: inherit; font-weight: 700; text-decoration: underline; font-size: var(--size-sm);
}
.cz-toast-a:hover { background: none; opacity: .8; }
.cz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Pestaña «My boards» ------------------------------------------------------ */
.cz-boards { overflow: auto; padding: var(--s4) var(--s5) var(--s5); outline: 0; }
.cz-bsec { margin: 0 0 var(--s5); }
.cz-bsec-h { position: relative; display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s3); }
.cz-boards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.cz-bcard {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-sunken);
  animation: cz-up .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(min(var(--i, 0), 12) * 40ms);
  transition: opacity .2s, transform .2s;
}
.cz-bcard.cz-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cz-bcard.cz-gone { opacity: 0; transform: scale(.96); }
/* **La miniatura de un tablero es el tablero de verdad** (t77, 2026-11-07):
   `bbBoard.mini(…, {real: true})` pone la captura de cada pieza en su sitio y
   a su talla, a escala (12 columnas de 99 px, filas de 72). La tarjeta es un
   botón: enseña lo de arriba del tablero y abre la vista grande. */
.cz-bmini {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; min-height: 0; margin: 0;
  padding: 6px 6px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg); box-shadow: none; overflow: hidden; cursor: zoom-in; text-align: left; color: inherit;
}
.cz-bmini:hover { background: var(--bg); }
.cz-bmini:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cz-bmini::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 92%, transparent));
}
.cz-bmini-c { display: block; width: 100%; }
.cz-bmini-more {
  position: absolute; z-index: 4; right: 8px; bottom: 7px; font-size: var(--size-2xs); font-weight: 600;
  color: var(--text-muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 1px 8px; font-variant-numeric: tabular-nums; pointer-events: none;
}
.cz-bmini-more[hidden] { display: none; }
.bmini-real { position: relative; display: block; width: 100%; }
.bmini-p { position: absolute; display: block; padding: .34%; box-sizing: border-box; }
.bmini-f {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--line);
  transition: opacity .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bmini-f > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.bmini-sch { display: grid; place-items: center; width: 100%; height: 100%; }
.bmini-sch svg { width: 80%; height: 70%; }
.bmini-real:hover .bmini-f { opacity: .62; }
.bmini-real .bmini-p:hover { z-index: 3; }
.bmini-real .bmini-p:hover .bmini-f { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 6px 18px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.bmini-cap {
  position: absolute; z-index: 4; left: 3px; top: 3px; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 11px; line-height: 1.25; font-weight: 650; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 7px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(3px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.bmini-r .bmini-cap { left: auto; right: 3px; }
.bmini-p:hover .bmini-cap { opacity: 1; transform: none; }
.bmini-real-in .bmini-p { animation: cz-grow .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(min(var(--d, 0), 20) * 22ms); }
/* La cajita con su dato, a escala: rótulo, cifra, cambio con su plazo, línea. */
.bmt { container-type: size; position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5% 7% 0; overflow: hidden; }
.bmt-h { display: flex; align-items: center; gap: 4cqw; min-width: 0; font-size: min(9cqw, 11cqh); padding-bottom: 3cqh; border-bottom: 1px solid var(--line); }
.bmt-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--text); }
.bmt-logo { width: 1.25em; height: 1.25em; border-radius: 50%; flex: none; }
.bmt-m { display: flex; align-items: baseline; column-gap: 4cqw; margin-top: 7cqh; min-width: 0; overflow: hidden; flex: none; }
.bmt-v { flex: none; font-size: min(15cqw, 19cqh); font-weight: 750; letter-spacing: -.02em; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bmt-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: min(7.5cqw, 10cqh); font-weight: 650; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bmt-c.up { color: var(--up); }
.bmt-c.down { color: var(--down); }
.bmt-s { display: block; flex: 1 1 0; min-height: 0; width: 100%; max-height: 40cqh; margin: auto 0 7cqh; padding-top: 4cqh; overflow: visible; }
.bmt-s .bmt-l { fill: none; stroke: var(--text-faint); stroke-width: 1.4; stroke-linejoin: round; }
.bmt-s .bmt-a { fill: color-mix(in srgb, var(--text-faint) 10%, transparent); stroke: none; }
.bmt-s.up .bmt-l { stroke: var(--up); }
.bmt-s.up .bmt-a { fill: color-mix(in srgb, var(--up) 12%, transparent); }
.bmt-s.down .bmt-l { stroke: var(--down); }
.bmt-s.down .bmt-a { fill: color-mix(in srgb, var(--down) 12%, transparent); }
.bmt-wait .bmt-v::before { content: ""; display: block; width: 50cqw; height: 1em; border-radius: 3px; background: var(--surface-hover); }

/* La vista grande: el tablero entero, más grande; baja sola despacio. */
.cz-bzoom {
  position: absolute; z-index: 9; display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow), 0 24px 60px -24px rgba(0, 0, 0, .55); overflow: hidden;
}
.cz-bzoom-peek { pointer-events: none; }
.cz-bzoom-in { animation: cz-zoom .26s cubic-bezier(.2,.8,.2,1) both; }
.cz-bzoom-out { animation: cz-zoom .16s ease reverse both; pointer-events: none; }
@keyframes cz-zoom { from { opacity: 0; transform: scale(.86); } }
.cz-bzoom-h { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.cz-bzoom-t { font-size: var(--size-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cz-bzoom-n { font-size: var(--size-2xs); color: var(--text-faint); white-space: nowrap; flex: 1 1 auto; }
.cz-bzoom-x { width: 28px; height: 28px; min-height: 28px; }
.cz-bzoom-b { overflow: auto; overscroll-behavior: contain; padding: 8px; background: var(--bg); min-height: 0; flex: 1 1 auto; }
.cz-bzoom-c { display: block; width: 100%; }
.bmini {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; height: 100%;
  grid-template-rows: repeat(var(--mini-rows, 20), minmax(0, 1fr));
}
.bmini i {
  display: block; border-radius: 2px; min-height: 2px;
  background: color-mix(in srgb, var(--c, var(--accent)) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, transparent);
}
.bmini-in i { animation: cz-grow .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(min(var(--d, 0), 20) * 25ms); }
@keyframes cz-grow { from { opacity: 0; transform: scale(.6); } }
.bmini i[data-cat="stories"] { --c: var(--cat-stories); }
.bmini i[data-cat="moves"] { --c: var(--cat-moves); }
.bmini i[data-cat="markets"] { --c: var(--cat-markets); }
.bmini i[data-cat="derivatives"] { --c: var(--cat-derivatives); }
.bmini i[data-cat="onchain"] { --c: var(--cat-onchain); }
.bmini i[data-cat="coins"] { --c: var(--cat-coins); }
.bmini i[data-cat="read"] { --c: var(--cat-read); }
.bmini i[data-cat="narratives"] { --c: var(--cat-narratives); }
.bmini i[data-cat="yields"] { --c: var(--cat-yields); }
.bmini i[data-cat="presales"] { --c: var(--cat-presales); }
.bmini i[data-cat="alerts"] { --c: var(--cat-alerts); }
.bmini i[data-cat="calendar"] { --c: var(--cat-calendar); }
.bmini i[data-cat="portfolio"] { --c: var(--cat-portfolio); }
.bmini i[data-cat="figures"] { --c: var(--cat-figures); }
.cz-bmeta { display: flex; align-items: center; gap: 8px; padding: 10px 12px; position: relative; flex-wrap: wrap; }
.cz-bmeta-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 140px; }
.cz-bname { font-size: var(--size-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-bline, .cz-bblurb { font-size: var(--size-2xs); color: var(--text-faint); }
.cz-bblurb { color: var(--text-muted); }
.cz-pill-active {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent);
  border-radius: var(--radius-pill); padding: 1px 7px;
}
.cz-rename { font-size: var(--size-sm); padding: 4px 8px; min-height: 28px; width: 100%; }
.cz-menu {
  position: absolute; z-index: 8; right: 8px; top: calc(100% - 4px); min-width: 180px;
  display: flex; flex-direction: column; padding: 4px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow);
}
.cz-menu[hidden] { display: none; }
/* Cada tarjeta entra con `transform` y eso la hace su propio contexto de
   apilado: el menú abierto quedaba debajo de la tarjeta siguiente y no se
   podía pulsar (integración t73). La que tiene el menú abierto va encima. */
.cz-bcard:has(> .cz-bmeta > .cz-menu:not([hidden])), .cz-bsec-h:has(> .cz-menu:not([hidden])) { z-index: 9; }
.cz-newmenu { top: 100%; }
.cz-menu button {
  justify-content: flex-start; min-height: 32px; border: 0; background: none; box-shadow: none;
  font-size: var(--size-sm); font-weight: 500; color: var(--text); border-radius: 6px; text-align: left;
}
.cz-menu button:hover, .cz-menu button:focus-visible { background: var(--surface-hover); outline: 0; }
.cz-menu .cz-danger { color: var(--down); }
.cz-cta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s4); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.cz-cta p { margin: 0; color: var(--text-muted); font-size: var(--size-sm); flex: 1 1 260px; }

.cz-codebox {
  display: flex; gap: var(--s5); align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s4);
  margin: 0 0 var(--s5); background: var(--surface-sunken);
}
.cz-code-read { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; }
.cz-code-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cz-code-in {
  font: 600 var(--size-md) / 1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  background: var(--bg); padding: 10px 12px; width: min(260px, 100%); min-height: 40px;
}
.cz-code-err { margin: 0; min-height: 1em; color: var(--down); font-size: var(--size-xs); }
.cz-code-share { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; flex: 1 1 280px; }
.cz-code-lab { margin: 0; font-size: var(--size-xs); color: var(--text-faint); }
.cz-code-zone { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cz-code {
  font: 700 var(--size-lg) / 1 var(--font-mono); letter-spacing: .14em; color: var(--accent); user-select: all;
}
.cz-pulse-code { animation: cz-codepulse .6s ease; }
@keyframes cz-codepulse { 40% { color: var(--up); transform: scale(1.04); } }
.cz-code-note { margin: 0; font-size: var(--size-2xs); color: var(--text-faint); }
.cz-code-sm { font-family: var(--font-mono); letter-spacing: .06em; }

.cz-extra { overflow: auto; min-height: 0; }

/* --- La tira de arriba: el selector de tablero --------------------------------- */
.cz-switch { position: relative; display: inline-flex; }
.cz-switch-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: none; box-shadow: none;
  font-size: var(--size-2xs); font-weight: 500; color: var(--text-muted); max-width: 220px;
}
.cz-switch-btn b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-switch-menu {
  position: absolute; z-index: 60; right: 0; top: calc(100% + 6px); min-width: 200px; max-width: 280px;
  display: flex; flex-direction: column; padding: 4px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow);
}
.cz-switch-menu[hidden] { display: none; }
.cz-switch-menu button {
  justify-content: flex-start; min-height: 32px; border: 0; background: none; box-shadow: none; text-align: left;
  font-size: var(--size-sm); font-weight: 500; color: var(--text); border-radius: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cz-switch-menu button:hover, .cz-switch-menu button:focus-visible { background: var(--surface-hover); outline: 0; }
.cz-switch-menu button[aria-checked="true"] { color: var(--accent); font-weight: 650; }
.cz-switch-menu button[aria-checked="true"]::before { content: "✓"; margin-right: 6px; }
.cz-switch-more { border-top: 1px solid var(--line) !important; border-radius: 0 0 6px 6px !important; color: var(--text-muted) !important; }

/* --- «Customize» ↔ «Done» en la tira (t77, 2026-11-07) ---------------------------
   Las dos etiquetas en la misma celda (el botón mide lo que la más larga y la
   tira no se mueve); al cambiar, una sube y se va y la otra entra desde abajo,
   con la curva de `fx.css`, y el botón deja un halo que se apaga. */
.btn.cz-strip { display: inline-grid; place-items: center; overflow: hidden; }
.btn.cz-strip[hidden] { display: none; }
.cz-strip-l {
  grid-area: 1 / 1; white-space: nowrap;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}
.cz-strip-l[data-cz-strip="on"] { transform: translateY(120%); opacity: 0; }
.cz-strip-on .cz-strip-l[data-cz-strip="off"] { transform: translateY(-120%); opacity: 0; }
.cz-strip-on .cz-strip-l[data-cz-strip="on"] { transform: none; opacity: 1; }
.cz-strip-on { animation: cz-strip-halo 1.3s ease-out 1; }
@keyframes cz-strip-halo {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* --- La barra flotante de colocar ------------------------------------------------ */
.cz-editbar {
  position: fixed; left: 50%; bottom: 20px; z-index: 900; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow), var(--sheen); font-size: var(--size-xs); color: var(--text-muted);
  animation: cz-bar-in .3s cubic-bezier(.2,.8,.2,1) both; flex-wrap: wrap; justify-content: center;
}
.cz-editbar[hidden] { display: none; }
@keyframes cz-bar-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.cz-eb-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cz-eb-n b { color: var(--text); }
.cz-eb-reset { display: inline-flex; gap: 6px; align-items: center; }
.cz-eb-q { color: var(--text); }
.btn.danger, button.danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }

/* Huecos visibles al arrastrar (diseño §4.6). */
body.board-editing .grid-stack .grid-stack-placeholder > .placeholder-content {
  border: 2px dashed var(--accent) !important; background: var(--accent-soft) !important;
  border-radius: var(--radius); position: relative;
}
body.board-editing .grid-stack .grid-stack-placeholder > .placeholder-content::after {
  content: attr(data-size); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 700 var(--size-md) / 1 var(--font); color: var(--accent); font-variant-numeric: tabular-nums;
}
.grid-stack.cz-dragging {
  background-image: repeating-linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 7%, transparent) 0 calc(var(--gs-column-width, 8.333%) - 2px),
    transparent calc(var(--gs-column-width, 8.333%) - 2px) var(--gs-column-width, 8.333%));
  border-radius: var(--radius);
}
body.board-editing .grid-stack-item:focus-visible { outline: 0; }
body.board-editing .grid-stack-item:focus-visible > .grid-stack-item-content {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius);
}
.grid-stack-item.cz-new > .grid-stack-item-content,
.grid-stack-item.cz-pulse > .grid-stack-item-content { animation: cz-ring 1s ease 2; border-radius: var(--radius); }
@keyframes cz-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}

/* --- Un tablero compartido o una vista previa ------------------------------------- */
.cz-shared {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s3);
  padding: 10px var(--s4); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius); background: var(--accent-soft); font-size: var(--size-sm);
  animation: cz-drop .3s cubic-bezier(.2,.8,.2,1) both;
}
.cz-shared-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: cz-blink 1.6s ease-in-out infinite; }
@keyframes cz-blink { 50% { opacity: .3; } }
.cz-shared-t { flex: 1 1 260px; color: var(--text-muted); }
.cz-shared-t b { color: var(--text); }
.cz-shared-act { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- El escenario de las miniaturas (`/terminal/thumb-stage`) ------------------- */
.cz-stage { position: absolute; left: 0; top: 0; z-index: 99999; width: 1196px; padding: 0; background: var(--bg); }
.cz-stage .tp-board { width: 1196px; }
/* Lo que la librería pone en la rejilla con `margin: 8` (`terminal.js`): aquí
   no hay guion, así que se escribe a mano para que la pieza mida lo mismo. */
.cz-stage .grid-stack {
  --gs-item-margin-top: 8px; --gs-item-margin-bottom: 8px;
  --gs-item-margin-left: 8px; --gs-item-margin-right: 8px;
}

/* --- Panel: Terminal presets --------------------------------------------------- */
.pe-tools { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin: 0 0 var(--s3); }
.pe-import { display: flex; gap: 6px; align-items: center; }
.pe-import input { font-family: var(--font-mono); text-transform: uppercase; width: 170px; }
.pe-scroll { max-width: 100%; overflow-x: auto; }
.pe-table td { vertical-align: middle; }
.pe-table .bmini, .pe-table .bmini-x { width: 120px; height: 68px; display: grid; padding: 4px; background: var(--bg); border-radius: 6px; }
.pe-table .pe-bmini { display: block; width: 168px; aspect-ratio: 3 / 2; overflow: hidden; padding: 4px; background: var(--bg); border-radius: 6px; border: 1px solid var(--line); }
.pe-table .pe-bmini .bmini-f { border-radius: 2px; }
.pe-order form, .pe-actions form { display: inline; }
.pe-actions { white-space: nowrap; }
.pe-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 8px 0 4px;
  border-radius: var(--radius-pill); font-size: var(--size-xs);
}
.pe-knob { width: 28px; height: 16px; border-radius: 8px; background: var(--line-strong); position: relative; transition: background .2s; }
.pe-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); transition: transform .2s; }
.pe-switch[aria-checked="true"] .pe-knob { background: var(--accent); }
.pe-switch[aria-checked="true"] .pe-knob::after { transform: translateX(12px); background: var(--accent-ink); }

.pe-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); max-width: 980px; margin: 0 0 var(--s3); }
.pe-fields input:not([type=checkbox]) { width: 100%; }
.pe-wide { grid-column: 1 / -1; }
.pe-profiles { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s2) var(--s3); display: flex; gap: var(--s3); flex-wrap: wrap; }
.pe-profiles legend { color: var(--text-faint); font-size: var(--size-xs); padding: 0 4px; }
.pe-check { display: inline-flex !important; align-items: center; gap: 6px; color: var(--text) !important; font-size: var(--size-sm) !important; margin: 0 var(--s3) 0 0 !important; }
.pe-flags { display: flex; gap: var(--s4); flex-wrap: wrap; }
.pe-bar {
  position: sticky; top: var(--sticky-top, 52px); z-index: 20; display: flex; gap: var(--s2); align-items: center;
  padding: var(--s2) var(--s3); margin: 0 0 var(--s3); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pe-count { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.pe-count b { color: var(--text); }
.pe-editor { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.pe-side { position: sticky; top: calc(var(--sticky-top, 52px) + 56px); max-height: calc(100vh - 140px); display: flex; flex-direction: column; gap: var(--s2); }
.pe-q { width: 100%; }
.pe-rail { display: flex; gap: 4px; flex-wrap: wrap; }
.pe-rail button { min-height: 26px; padding: 0 9px; font-size: var(--size-2xs); border-radius: var(--radius-pill); box-shadow: none; background: none; }
.pe-rail button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pe-cards { overflow: auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 8px; padding-right: 4px; min-height: 0; flex: 1 1 auto; }
.pe-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface-sunken); cursor: pointer; position: relative;
}
.pe-card .cz-thumb { aspect-ratio: 16 / 10; }
.pe-card b { font-size: var(--size-2xs); padding: 6px 8px 0; line-height: 1.3; }
.pe-card .pe-card-f { display: flex; align-items: center; gap: 4px; padding: 4px 8px 8px; }
.pe-card .cz-add { width: 24px; height: 24px; min-height: 24px; }
.pe-card.pe-on { opacity: .5; }
.pe-canvas-wrap { min-width: 0; }
.pe-canvas { min-height: 420px; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.pe-block { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; inset: 2px !important; }
.pe-block .pe-block-h { display: flex; align-items: center; gap: 4px; padding: 3px 6px; font-size: var(--size-2xs); border-bottom: 1px solid var(--line); cursor: move; background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--surface)); }
.pe-block .pe-block-h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-block .pe-block-h span { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pe-block .pe-x { min-height: 20px; height: 20px; width: 20px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--text-faint); }
.pe-block img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top left; display: block; }
.pe-hint { min-height: 1em; }
.pe-phone { max-width: 360px; padding-left: 1.4em; color: var(--text-muted); font-size: var(--size-xs); }
.pe-raw textarea { width: 100%; max-width: 980px; }

/* --- Móvil y tableta ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cz-addpane { grid-template-columns: 180px minmax(0, 1fr); }
  .cz-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .cz-peek { display: none !important; }
  .pe-editor { grid-template-columns: 1fr; }
  .pe-side { position: static; max-height: none; }
  .pe-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 420px; }
}
@media (max-width: 720px) {
  .cz { padding: 6vh 0 0; }
  .cz-win { border-radius: 16px 16px 0 0; max-width: none; border-bottom: 0; transform-origin: 50% 100%; }
  @keyframes cz-pop { from { opacity: 0; transform: translateY(40px); } }
  .cz-head { flex-wrap: wrap; gap: 8px; padding: var(--s3) var(--s4) var(--s2); }
  .cz-tabs { order: 5; width: 100%; justify-content: space-between; }
  .cz-tab { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: var(--size-xs); }
  .cz-pill { display: none; }
  .cz-addpane { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .cz-rail {
    flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line);
    padding: 8px var(--s4); scrollbar-width: none; gap: 6px;
  }
  .cz-rail::-webkit-scrollbar { display: none; }
  .cz-rail-h { display: none; }
  .cz-rail-b { flex: none; white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0 11px; }
  .cz-rail-n { display: none; }
  .cz-main, .cz-boards { padding: var(--s3) var(--s4) var(--s5); }
  .cz-search kbd { display: none; }
  .cz-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cz-card-b { display: none; }
  .cz-card-f .cz-tag { display: none; }
  .cz-card-f .cz-size { display: none; }
  .cz-sec-p { flex-basis: 100%; }
  .cz-sheet { top: auto; left: 0; width: 100%; max-height: 88%; border-radius: 14px 14px 0 0; }
  @keyframes cz-slide { from { transform: translateY(30px); opacity: 0; } }
  .cz-foot { padding: var(--s2) var(--s4); gap: var(--s2); }
  .cz-bar, .cz-where, .cz-heavy { display: none; }
  /* «Arrange on board» se queda en el móvil (integración t73): es la única
     entrada a la lista con subir y bajar (§4.6 del diseño: «ahí no cambia
     nada»); escondido, en un teléfono no había forma de ordenar el tablero. */
  .cz-boards-grid { grid-template-columns: 1fr; }
  .cz-code-share { align-items: flex-start; text-align: left; }
  .cz-code-zone { justify-content: flex-start; }
  .cz-toast { bottom: 84px; flex-wrap: wrap; gap: 8px 12px; }
  /* A lo ancho que haga falta (integración t73): con `left: 50%` el ancho
     disponible era media pantalla y la barra salía en tres filas. */
  .cz-editbar { bottom: 12px; width: max-content; }
  .cz-eb-tip { display: none; }
  .cz-switch-btn { max-width: 150px; }
  .cz-switch-btn .faint { display: none; }
  .pe-fields { grid-template-columns: 1fr; }
}

/* --- Sin movimiento ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cz-win, .cz::backdrop, .cz-card, .cz-enter .cz-card, .cz-onchip, .cz-peek-in, .cz-sheet-in,
  .cz-toast, .cz-bcard, .bmini-in i, .bmini-real-in .bmini-p, .cz-bzoom-in, .cz-bzoom-out, .cz-strip-on, .cz-editbar, .cz-shared, .cz-shared-dot, .cz-bump b,
  .cz-pulse-code, .grid-stack-item.cz-new > .grid-stack-item-content,
  .grid-stack-item.cz-pulse > .grid-stack-item-content { animation: none !important; }
  .cz-card, .cz-thumb img, .cz-add, .cz-bar i, .cz-bcard, .pe-knob, .pe-knob::after,
  .bmini-f, .bmini-cap, .cz-strip-l { transition: none !important; }
  .bmini-cap { transform: none; }
  .cz-card:hover, .cz-card:focus-within { transform: none; }
  .cz-card:hover .cz-thumb img { transform: none; }
  .cz-card:hover .cz-add:not([aria-pressed="true"]) { transform: none; }
  .cz-thumb::after { display: none; }
  .cz-thumb img { opacity: 1; }
}
