/* =========================================================
   Caudal® Consola · los demás escritorios — v0.2 (Claudia, 18-nov-2026)
   v0.2: se quedan los tres temas (Oli, 18-nov). Están al final del archivo.
   Responde a caudal-consola-escritorios-brief-claudia-v0_1.md

   Se carga DESPUÉS de cauce.css (Cauce v0.2, sin cambios) y usa sus roles
   de color (--c-*), su caja (cz-app, cz-top, cz-nav, cz-main), su banda
   jade (cz-head), su fila (cz-fila, cz-row), su panel de tinta (cz-panel)
   y los botones y el recuadro «Qué cambió» de la tarjeta (ap-btn, ap-c).
   Aquí sólo está lo que Cauce no tenía. Prefijo: es-.

   Sólo tokens de caudal-tokens.css. Sin colores nuevos y sin rojo.
   Teléfono: nada por debajo de 12 px, lectura en 16 px, todo lo que se
   toca de 44 px o más, sin barra horizontal. Corte: @container 900 px.
   ---------------------------------------------------------
   PRODUCCIÓN (CC201126-02, contrato): copia fiel de «Consola - Escritorios/escritorios/escritorios.css» v0.2
   con cambios mínimos: (1) prefijo «:where(.cz)» en todo selector que no empezaba por el contenedor (misma
   especificidad); (2) sin el rótulo «ejemplo» (.ej) ni la hoja de relleno (.es-hoja): la vista previa es un
   PDF de verdad (CN.piezas.pv, un <iframe>); (3) al final, la sección «PRODUCCIÓN» con lo que la maqueta
   no dibujó: el montaje en #cn, el sello de build, «Cargando…», el <iframe> del PDF y el pie de NAP.
   ========================================================= */

.cz [hidden] { display: none !important; }
:where(.cz) :where(input, select, textarea) { font-family: inherit; }   /* [producción] ver cauce.css */
.cz .cz-h2 { display: flex; align-items: baseline; gap: 8px; }
.cz .cz-h2 .n { font-weight: 500; color: var(--c-t3); }
.cz .cz-h2:first-child { margin-top: 18px; }
:where(.cz) .es-p { font-size: 15px; line-height: 1.5; color: var(--c-t2); }
:where(.cz) .es-p b { color: var(--c-t0); font-weight: 600; }
:where(.cz) .es-stack { display: flex; flex-direction: column; gap: 12px; }
:where(.cz) .es-stack > .cz-fila, :where(.cz) .es-stack > .cz-nada { margin-top: 0; }
:where(.cz) .cz-fila { margin-top: 0; }
:where(.cz) .cz-hoy { margin-top: 12px; }
/* en el teléfono, las dos columnas de la pantalla de adentro son una sola pila: así la decisión puede quedarse pegada abajo */
:where(.cz) .es-cols.is-in > div { display: contents; }

/* ---------- la caja: lo que cambia respecto de Cauce ---------- */
:where(.cz) .cz-nav .it[aria-current="true"] { color: var(--c-t0); font-weight: 600; box-shadow: inset 0 3px 0 var(--c-ac); }
:where(.cz) .cz-mas a[aria-current="page"] { color: var(--c-t0); font-weight: 600; box-shadow: inset 3px 0 0 var(--c-ac); }
:where(.cz) .cz-mas .salir { border-top: 1px solid var(--c-ln); margin-top: 6px; padding-top: 6px; }
:where(.cz) .cz-mas .salir a { color: var(--c-t1); font-size: 15px; }
:where(.cz) .cz-top .salir { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-ln2); border-radius: var(--r-sm); background: none; font-family: var(--font-mono) !important; font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--c-t0) !important; }
/* NAP sólo ve Tareas: no hay barra de secciones */
:where(.cz) .cz-app.es-solo { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top" "main"; }

/* ---------- encabezado: con acción, y el de adentro ---------- */
:where(.cz) .es-headrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
:where(.cz) .es-headrow .cz-h1 { flex: 1 1 auto; min-width: 0; }
:where(.cz) .es-headsub { margin-top: 6px !important; font-size: 14px; line-height: 1.4; color: var(--c-t2); }
:where(.cz) .es-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 0 -8px; padding: 0 10px 0 6px; background: none; border: 0; font-family: var(--font-mono) !important; font-size: 12px !important; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c-t2) !important; }
:where(.cz) .es-back svg { width: 18px; height: 18px; }
:where(.cz) .es-bt-dark { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; background: var(--gold-2); border: 1px solid var(--gold-2); border-radius: var(--r-sharp); font-family: var(--font-mono) !important; font-size: 12px !important; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-0) !important; white-space: nowrap; }
:where(.cz) .es-bt-dark:hover { background: var(--gold-3); border-color: var(--gold-3); }

/* pestañas dentro de un escritorio (Canal B) */
:where(.cz) .es-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 12px; background: var(--c-sf); border: 1px solid var(--c-t0); border-radius: var(--r-sharp); }
:where(.cz) .es-tabs button { min-height: 46px; padding: 0 6px; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--c-t1); }
:where(.cz) .es-tabs button + button { border-left: 1px solid var(--c-ln2); }
:where(.cz) .es-tabs button[aria-current="true"] { background: var(--c-t0); color: var(--c-sf); font-weight: 600; }

/* ---------- la fila: lo que le faltaba ---------- */
:where(.cz) .cz-row.is-static { cursor: default; grid-template-columns: minmax(0, 1fr); }
:where(.cz) .cz-row.is-static:hover { background-color: transparent; }
:where(.cz) .cz-row .t.has-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
:where(.cz) .cz-row .t.has-amt b { font-weight: 600; white-space: nowrap; font-feature-settings: 'tnum' on, 'lnum' on; }
:where(.cz) .cz-fila.is-quiet { box-shadow: none; background: transparent; border-style: dashed; border-color: var(--c-ln2); }

/* ---------- estados: forma + texto, no sólo color (los chips del Portal) ---------- */
:where(.cz) .es-cs { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 1px 10px; border: 1px solid color-mix(in srgb, currentColor 42%, transparent); background: color-mix(in srgb, currentColor 9%, transparent); border-radius: var(--r-pill); font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
:where(.cz) .es-cs::before { content: ''; width: 8px; height: 8px; flex: none; }
:where(.cz) .es-cs.s-pend { color: var(--c-t3); background: transparent; }
:where(.cz) .es-cs.s-pend::before { border: 1.5px solid currentColor; border-radius: 50%; }
:where(.cz) .es-cs.s-resp { color: var(--c-gd); }
:where(.cz) .es-cs.s-resp::before { background: currentColor; transform: rotate(45deg); }
:where(.cz) .es-cs.s-ok { color: var(--c-ok); }
:where(.cz) .es-cs.s-ok::before { background: currentColor; }
:where(.cz) .es-cs.s-desc { color: var(--c-t2); border-color: var(--c-ln2); background: var(--c-sf2); }
:where(.cz) .es-cs.s-desc::before { height: 2px; background: currentColor; }
:where(.cz) .es-cs.s-err { color: var(--c-t0); border: 2px solid var(--c-t1); background: var(--c-sf); font-weight: 600; }
:where(.cz) .es-cs.s-err::before { background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ---------- avisos (los del Portal) ---------- */
:where(.cz) .es-av { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px 18px; border: 1px solid var(--c-ln2); border-radius: var(--r-md); background: var(--c-sf); box-shadow: inset 4px 0 0 var(--c-ln2); font-size: 15px; line-height: 1.45; color: var(--c-t0); }
:where(.cz) .es-av .lbl { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-t2); }
:where(.cz) .es-av b { font-weight: 600; }
:where(.cz) .es-av .x { font-size: 14px; color: var(--c-t2); }
:where(.cz) .es-av .ap-btn { margin-top: 8px; align-self: flex-start; }
:where(.cz) .es-av.is-aten { background: linear-gradient(90deg, var(--gold-wash), transparent 85%), var(--c-sf); border-color: var(--gold-edge); box-shadow: inset 4px 0 0 var(--gold-2); }
:where(.cz) .es-av.is-aten .lbl { color: var(--c-gd); }
:where(.cz) .es-av.is-info { background: linear-gradient(90deg, var(--c-wash-j), transparent 85%), var(--c-sf); border-color: var(--c-edge-j); box-shadow: inset 4px 0 0 var(--c-ac); }
:where(.cz) .es-av.is-info .lbl { color: var(--c-ac); }
:where(.cz) .es-av.is-ok { background: linear-gradient(90deg, var(--c-wash-j), transparent 85%), var(--c-sf); border-color: var(--c-line-j); box-shadow: inset 4px 0 0 var(--c-ok); }
:where(.cz) .es-av.is-err { border: 2px solid var(--c-t1); box-shadow: inset 6px 0 0 var(--c-t0); font-weight: 600; padding-left: 20px; }
:where(.cz) .es-av.is-vac { background: var(--c-sf2); border-style: dashed; box-shadow: none; color: var(--c-t2); }

/* ---------- tarjeta de papel, campos y casillas ---------- */
:where(.cz) .es-card { background: var(--c-sf); border: 1px solid var(--c-ln); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 16px; }
:where(.cz) .es-card > .ap-lbl { color: var(--c-t2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
:where(.cz) .es-form { display: flex; flex-direction: column; gap: 14px; }
:where(.cz) .es-fd { display: flex; flex-direction: column; gap: 6px; }
:where(.cz) .es-fd > span { font-size: 14px; font-weight: 600; color: var(--c-t1); }
:where(.cz) .es-fd > span i { font-style: normal; font-weight: 400; color: var(--c-t3); }
:where(.cz) .es-fd > small { font-size: 13px; line-height: 1.4; color: var(--c-t3); }
:where(.cz) .es-in { display: block; width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; line-height: 1.4; color: var(--c-t0); background: var(--c-sf); border: 1px solid var(--c-t3); border-radius: var(--r-sm); }
:where(.cz) textarea.es-in { min-height: 96px; resize: vertical; }
:where(.cz) textarea.es-in.is-msg { min-height: 380px; line-height: 1.55; }
:where(.cz) .es-in.is-warn { border: 2px solid var(--c-t0); padding: 9px 11px; }
:where(.cz) .es-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
:where(.cz) .es-chk { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 12px 14px; background: var(--c-sf); border: 1px solid var(--c-ln2); border-radius: var(--r-sm); cursor: pointer; font-size: 16px; line-height: 1.35; }
:where(.cz) .es-chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--c-chk); flex: none; cursor: pointer; }
:where(.cz) .es-chk span b { display: block; font-weight: 600; }
:where(.cz) .es-chk span small { display: block; font-size: 14px; color: var(--c-t2); margin-top: 1px; }
:where(.cz) .es-chk:has(input:checked) { border-color: var(--c-line-j); background: linear-gradient(90deg, var(--c-wash-j), transparent 85%), var(--c-sf); }
:where(.cz) .es-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--c-t0); border-radius: var(--r-sharp); }
:where(.cz) .es-seg button { min-height: 46px; padding: 0 8px; background: var(--c-sf); border: 0; font-size: 15px; font-weight: 500; color: var(--c-t1); }
:where(.cz) .es-seg button + button { border-left: 1px solid var(--c-ln2); }
:where(.cz) .es-seg button[aria-pressed="true"] { background: var(--c-t0); color: var(--c-sf); font-weight: 600; }
:where(.cz) .es-fold > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--c-t0); cursor: pointer; list-style: none; }
:where(.cz) .es-fold > summary::-webkit-details-marker { display: none; }
:where(.cz) .es-fold > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 4px 0 2px; flex: none; }
:where(.cz) .es-fold[open] > summary::before { transform: rotate(45deg); margin-top: -4px; }
:where(.cz) .es-fold.is-quiet > summary { font-weight: 500; color: var(--c-t2); }
:where(.cz) .es-qa { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 6px; }
:where(.cz) .es-qa p { font-size: 15px; line-height: 1.45; color: var(--c-t0); }
:where(.cz) .es-qa p i { display: block; font-size: 14px; color: var(--c-t2); }
:where(.cz) .es-file { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px dashed var(--c-t3); border-radius: var(--r-sm); background: var(--c-sf); font-size: 15px; color: var(--c-t1); cursor: pointer; flex-wrap: wrap; row-gap: 2px; }
:where(.cz) .es-file b { white-space: nowrap; font-weight: 600; color: var(--c-ac); text-decoration: underline; text-underline-offset: 3px; }
:where(.cz) .es-saved { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-line-j); border-radius: var(--r-sm); background: linear-gradient(90deg, var(--c-wash-j), transparent 85%), var(--c-sf); }
:where(.cz) .es-saved .tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 4px 6px; border: 1px solid var(--c-t3); border-radius: var(--r-sm); color: var(--c-t1); }
:where(.cz) .es-saved .nm { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
:where(.cz) .es-saved .nm b { display: block; font-weight: 600; overflow-wrap: anywhere; }
:where(.cz) .es-saved .nm span { font-size: 13px; color: var(--c-t2); }
:where(.cz) .ap-btn.is-blk { width: 100%; }
:where(.cz) .ap-btn.is-quiet { border-color: transparent; padding: 0 4px; color: var(--c-ac); text-transform: none; letter-spacing: 0; font-family: var(--font-sans) !important; font-size: 15px !important; text-decoration: underline; text-underline-offset: 3px; }
:where(.cz) .ap-btn.is-quiet:hover { background: none; color: var(--c-ac-h); }
:where(.cz) .es-acts { display: flex; flex-wrap: wrap; gap: 8px; }
:where(.cz) .es-acts .ap-btn { flex: 1 1 auto; }

/* ---------- la pantalla de adentro: vista previa, datos y decisión ---------- */
:where(.cz) .es-pv { border: 1px solid var(--c-ln2); border-radius: var(--r-md); background: var(--c-sf2); overflow: hidden; }
:where(.cz) .es-pv .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: var(--c-sf); border-bottom: 1px solid var(--c-ln); }
:where(.cz) .es-pv .bar .nm { flex: 1 1 100%; min-width: 0; font-size: 15px; line-height: 1.3; }
:where(.cz) .es-pv .bar .nm b { display: block; font-weight: 600; overflow-wrap: anywhere; }
:where(.cz) .es-pv .bar .nm span { font-size: 13px; color: var(--c-t2); }
:where(.cz) .es-pv .bar .ap-btn { min-height: 44px; padding: 0 12px; flex: 1 1 0; }
:where(.cz) .es-pv .view { padding: 16px; display: flex; justify-content: center; }
:where(.cz) .es-kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
:where(.cz) .es-kv div { display: flex; flex-direction: column; }
:where(.cz) .es-kv dt, :where(.cz) .es-kv small { font-size: 13px; color: var(--c-t2); }
:where(.cz) .es-kv b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
:where(.cz) .es-checks { display: grid; gap: 8px; }
:where(.cz) .es-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.4; }
:where(.cz) .es-checks svg { width: 20px; height: 20px; color: var(--c-ok); }
/* la decisión se queda pegada abajo en el teléfono: Aprobar siempre a la vista */
:where(.cz) .es-decide { position: sticky; bottom: 0; z-index: 3; margin: 4px -16px -28px; padding: 12px 16px 14px; background: var(--c-sf); border-top: 1px solid var(--c-ln2); box-shadow: 0 -8px 24px rgba(20, 17, 12, .10); }
:where(.cz) .es-decide .ap-btn { font-size: 12px !important; letter-spacing: .06em; padding: 0 8px; }
:where(.cz) .es-decide .ap-btn.is-blk { font-size: 13px !important; letter-spacing: .1em; }
:where(.cz) .es-decide .ap-why { margin-top: 6px !important; }
:where(.cz) .es-decide .al { font-size: 13px; line-height: 1.4; color: var(--c-t2); margin-bottom: 8px; }
:where(.cz) .es-decide .es-chk { margin-bottom: 8px; min-height: 44px; padding: 10px 12px; }
:where(.cz) .es-decide .ap-hecho { margin-top: 0; }
:where(.cz) .es-decide .sig { margin-top: 6px; }

/* ---------- Entregas · cotizar: el precio en vivo (tinta) ---------- */
:where(.cz) .es-precio { padding: 14px 16px 16px; }
:where(.cz) .es-precio .lab { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--c-t1); }
:where(.cz) .es-precio .big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
:where(.cz) .es-precio .big b { font-family: var(--font-serif); font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--c-hero); font-feature-settings: 'tnum' on, 'lnum' on; }
:where(.cz) .es-precio .big span { font-size: 14px; color: var(--c-t1); }
:where(.cz) .es-escala { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--c-ln2); border-radius: var(--r-sm); }
:where(.cz) .es-escala div { padding: 8px 6px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--c-t1); }
:where(.cz) .es-escala div + div { border-left: 1px solid var(--c-ln2); }
:where(.cz) .es-escala div b { display: block; font-size: 15px; font-weight: 600; color: var(--c-t0); font-feature-settings: 'tnum' on; }
:where(.cz) .es-escala div.on { background: var(--c-sf2); box-shadow: inset 0 3px 0 var(--gold-3); }
:where(.cz) .es-escala div.on b { color: var(--c-hero); }

/* ---------- Precio en bomba: lo vigente (tinta) y la historia (papel) ---------- */
:where(.cz) .es-comb + .es-comb { border-top: 1px solid var(--c-ln); }
:where(.cz) .es-comb { padding: 12px 16px 12px; }
:where(.cz) .es-comb h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif) !important; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--c-t0); }
:where(.cz) .es-comb ul { margin-top: 4px !important; }
:where(.cz) .es-comb li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; padding: 7px 0; }
:where(.cz) .es-comb li + li { border-top: 1px dashed var(--c-ln2); }
:where(.cz) .es-comb .mod { font-size: 15px; color: var(--c-t1); }
:where(.cz) .es-comb .q { font-family: var(--font-serif); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--c-t0); font-feature-settings: 'tnum' on, 'lnum' on; text-align: right; }
:where(.cz) .es-comb .q.no { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--c-t1); }
:where(.cz) .es-comb .st { grid-column: 1 / -1; font-size: 14px; line-height: 1.35; color: var(--c-t1); }
:where(.cz) .es-comb li.is-hot .q { color: var(--c-hero); }
:where(.cz) .es-comb li.is-hot .st b { color: var(--c-gd); font-weight: 600; }
:where(.cz) .es-comb li.is-venc .st b { color: var(--c-t0); font-weight: 700; }
:where(.cz) .es-comb li.is-venc .st b::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
:where(.cz) .es-comb li.is-venc .q { color: var(--c-t1); text-decoration: line-through; text-decoration-thickness: 2px; }
.cz .es-regla { padding: 10px 16px 12px; border-top: 1px solid var(--c-ln); font-size: 13px; color: var(--c-t1); }
:where(.cz) .es-tbl { background: var(--c-sf); border: 1px solid var(--c-ln); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
:where(.cz) .es-tbl .cap { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--c-ln); font-size: 14px; font-weight: 600; color: var(--c-t1); }
:where(.cz) .es-tbl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 9px 14px; }
:where(.cz) .es-tbl li + li { border-top: 1px solid var(--c-ln); }
:where(.cz) .es-tbl .d { font-size: 15px; font-weight: 500; }
:where(.cz) .es-tbl .v { font-family: var(--font-serif); font-size: 19px; font-weight: 700; font-feature-settings: 'tnum' on, 'lnum' on; }
:where(.cz) .es-tbl .w { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--c-t2); }

/* ---------- Cobro: la cuenta (tinta) ---------- */
:where(.cz) .es-cuenta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
:where(.cz) .es-cuenta div { padding: 12px 10px 13px 14px; }
:where(.cz) .es-cuenta div + div { border-left: 1px solid var(--c-ln); }
:where(.cz) .es-cuenta b { display: block; font-family: var(--font-serif); font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--c-t0); font-feature-settings: 'tnum' on, 'lnum' on; }
:where(.cz) .es-cuenta div.is-hot b { color: var(--c-hero); }
:where(.cz) .es-cuenta span { font-size: 14px; line-height: 1.3; color: var(--c-t1); }

/* ---------- Equipo: una persona ---------- */
:where(.cz) .es-per > summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 2px 12px; min-height: 68px; padding: 10px 12px 10px 14px; cursor: pointer; list-style: none; }
:where(.cz) .es-per > summary::-webkit-details-marker { display: none; }
:where(.cz) .es-per .ini { grid-row: 1 / span 2; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-t0); color: var(--c-sf); font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
:where(.cz) .es-per .nm { font-size: 16px; font-weight: 600; line-height: 1.3; }
:where(.cz) .es-per .mt { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--c-t2); }
:where(.cz) .es-per .chev { grid-column: 3; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--c-t3); transform: rotate(90deg); }
:where(.cz) .es-per[open] .chev { transform: rotate(-90deg); }
:where(.cz) .es-per .acc { display: flex; flex-direction: column; gap: 8px; padding: 4px 14px 14px; }
:where(.cz) .es-per .acc .ap-btn { justify-content: flex-start; text-transform: none; letter-spacing: 0; font-family: var(--font-sans) !important; font-size: 15px !important; font-weight: 500; }
:where(.cz) .es-conf { padding: 12px 14px; border: 2px solid var(--c-t1); border-radius: var(--r-sm); box-shadow: inset 6px 0 0 var(--c-t0); padding-left: 20px; font-size: 15px; line-height: 1.4; }
:where(.cz) .es-conf b { font-weight: 600; }
:where(.cz) .es-conf .es-acts { margin-top: 10px; }
:where(.cz) .es-url { display: block; padding: 10px 12px; border: 1px solid var(--c-ln2); border-radius: var(--r-sm); background: var(--c-sf2); font-family: var(--font-mono); font-size: 13px; line-height: 1.4; color: var(--c-t0); overflow-wrap: anywhere; }

/* ---------- Canal B: el coach ---------- */
:where(.cz) .es-turno { display: flex; flex-direction: column; gap: 6px; }
:where(.cz) .es-turno p { font-size: 15px; line-height: 1.5; }
:where(.cz) .es-turno .dijo { color: var(--c-t2); }
:where(.cz) .es-turno small { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-t2); }

/* =========================================================
   COMPUTADORA (900 px o más)
   ========================================================= */
@container (min-width: 900px) {
  :where(.cz) .cz-app.es-solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  :where(.cz) .cz-mas .salir { border-top: 0; margin: 0; padding: 0; order: 11; }
  :where(.cz) .cz-mas .tema { order: 10; border-top: 0; margin: 0; padding: 8px 12px 10px; }
  :where(.cz) .cz-mas .salir a { min-height: 46px; padding: 0 12px; color: var(--c-t3); }
  :where(.cz) .cz-mas a[aria-current="page"] { background: var(--c-sf); color: var(--c-t0); }
  :where(.cz) .es-back { margin-top: -6px; }
  :where(.cz) .es-tabs { max-width: 520px; margin-top: 20px; }
  :where(.cz) .cz-hoy { margin-top: 0; }
  :where(.cz) .es-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; margin-top: 28px; }
  :where(.cz) .es-cols > div > .cz-h2:first-child, :where(.cz) .cz-lado > .cz-h2:first-child { margin-top: 0; }
  :where(.cz) .es-cols.is-in > div { display: flex; }
  :where(.cz) .es-cols.is-par { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.cz) .es-cols.is-in { grid-template-columns: minmax(0, 1fr) 440px; margin-top: 28px !important; }
  :where(.cz) .es-uno { max-width: 760px; margin-top: 16px !important; }
  :where(.cz) .es-pv .bar .nm { flex: 1 1 160px; }
  :where(.cz) .es-pv .bar .ap-btn { flex: 0 0 auto; }
  :where(.cz) .es-decide { position: static; margin: 0; padding: 16px; border: 1px solid var(--c-ln); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
  :where(.cz) .es-comb { padding: 14px 20px; }
  :where(.cz) .es-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* el texto de ayuda dentro de un campo también pasa 4,5:1 */
:where(.cz) .es-in::placeholder, :where(.cz) .ap-falta textarea::placeholder { color: var(--c-t3); opacity: 1; }

/* =========================================================
   LOS TRES TEMAS (Oli, 18-nov: se quedan Clara, Oscura y Jade)
   El tema va en el contenedor:  <div class="cz" data-tema="clara | oscura | jade">
   Sin data-tema es Clara. Un tema sólo cambia la superficie DE TRABAJO
   (lo que en Clara es papel). La barra, la navegación y los paneles de
   cifras siguen en tinta en los tres, para que signifiquen lo mismo.
   Sólo tokens; donde hacía falta un tono intermedio es una mezcla de dos.

   · Clara  — papel:  paper-1 / paper-0, texto en tinta, botón principal jade.
   · Oscura — tinta:  ink-0 / bg-dark-2, texto crema, botón principal oro.
   · Jade   — jade:   jade-0 / jade-1, texto crema, botón principal oro;
                      el encabezado pasa a tinta para que no se pierda.

   Contraste (calculado): Oscura  on-dark-1/bg-dark-2 10,0 · on-dark-2/bg-dark-2 5,1
   · gold-3/bg-dark-2 9,9 · jade-4/bg-dark-2 5,6 · ink-0/gold-2 7,8
   Jade  on-dark-0/jade-1 8,9 · on-dark-1/jade-1 5,8 · gold-3/jade-1 5,7 · jade-5/jade-1 4,6
   ========================================================= */
.cz[data-tema="oscura"], .cz[data-tema="oscura"] .ap {
  --c-bg: var(--ink-0);
  --c-sf: var(--bg-dark-2);
  --c-sf2: var(--ink-1);
  --c-ln: var(--border-dark);
  --c-ln2: var(--on-dark-3);
  --c-t0: var(--on-dark-0);
  --c-t1: var(--on-dark-1);
  --c-t2: var(--on-dark-1);
  --c-t3: var(--on-dark-2);
  --c-ac: var(--jade-4);
  --c-ac-h: var(--jade-5);
  --c-gd: var(--gold-3);
  --c-hero: var(--gold-3);
  --c-track: var(--ink-1);
  --c-grid: var(--chrome-grid-dark);
  --c-ok: var(--jade-4);
  --c-line-j: var(--jade-4);
  --c-wash-j: color-mix(in srgb, var(--jade-4) 14%, transparent);
  --c-edge-j: color-mix(in srgb, var(--jade-4) 40%, transparent);
  --c-main: var(--gold-2);
  --c-main-h: var(--gold-3);
  --c-main-t: var(--ink-0);
  --c-off: var(--ink-1);
  --c-chk: var(--jade-4);
}
.cz[data-tema="jade"], .cz[data-tema="jade"] .ap {
  --c-bg: var(--jade-0);
  --c-sf: var(--jade-1);
  --c-sf2: color-mix(in srgb, var(--jade-1) 55%, var(--jade-0));
  --c-ln: var(--jade-2);
  --c-ln2: var(--jade-3);
  --c-t0: var(--on-dark-0);
  --c-t1: var(--on-dark-0);
  --c-t2: var(--on-dark-1);
  --c-t3: var(--on-dark-1);
  --c-ac: var(--jade-5);
  --c-ac-h: var(--on-dark-0);
  --c-gd: var(--gold-3);
  --c-hero: var(--gold-3);
  --c-track: var(--jade-2);
  --c-grid: var(--chrome-grid-dark);
  --c-ok: var(--jade-5);
  --c-line-j: var(--jade-5);
  --c-wash-j: color-mix(in srgb, var(--jade-5) 14%, transparent);
  --c-edge-j: color-mix(in srgb, var(--jade-5) 45%, transparent);
  --c-main: var(--gold-2);
  --c-main-h: var(--gold-3);
  --c-main-t: var(--ink-0);
  --c-off: color-mix(in srgb, var(--jade-1) 45%, var(--jade-0));
  --c-chk: var(--jade-5);
}
/* Oscura: la página ya es tinta, así que los paneles de cifras y la barra se despegan con el filo */
.cz[data-tema="oscura"] .cz-panel { border-color: var(--on-dark-3); }
.cz[data-tema="oscura"] .cz-top { border-bottom-color: var(--on-dark-3); }
.cz[data-tema="oscura"] .cz-nav { border-color: var(--on-dark-3); }
.cz[data-tema="oscura"] .cz-main, .cz[data-tema="jade"] .cz-main { background-image: none; }
/* Jade: todo es jade, así que el encabezado va en tinta con el brillo jade */
.cz[data-tema="jade"] .cz-head { background-color: var(--ink-0); background-image: radial-gradient(80% 140% at 100% 0%, var(--jade-1) 0%, transparent 62%), var(--chrome-grid-dark); background-size: auto, 32px 32px, 32px 32px; border-color: var(--jade-3); }

/* el cambio de tema: en «Más» (teléfono), al pie de la columna (compu) y al pie de la lista de NAP */
:where(.cz) .cz-mas .tema, :where(.cz) .es-tema { display: flex; flex-direction: column; gap: 6px; }
:where(.cz) .cz-mas .tema { border-top: 1px solid var(--c-ln); margin-top: 6px; padding: 10px 18px 8px; }
:where(.cz) .tema > span, :where(.cz) .es-tema > span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--c-t3); }
:where(.cz) .tema .es-seg button, :where(.cz) .es-tema .es-seg button { min-height: 44px; font-size: 14px; }
:where(.cz) .es-tema { margin-top: 8px; max-width: 360px; }
/* Jade: «hecho» en jade-5 sobre jade-1 daba 4,0. Va en crema; la forma (el cuadro) sigue diciendo «hecho». */
.cz[data-tema="jade"] .es-cs.s-ok { color: var(--on-dark-0); }

/* =========================================================
   PRODUCCIÓN (CC201126-02, contrato) — lo que la maqueta no dibujó y la consola de verdad necesita.
   ========================================================= */
/* el montaje: #cn es la caja entera (la consola vieja de index.html queda escondida detrás) */
#cn.cz { height: 100vh; height: 100dvh; }
#cn.cz[hidden] { display: none; }
/* con la caja a la vista la página no se desplaza (se desplaza .cz-main): sin el canal de 9 px que reserva el CSS viejo
   (html { scrollbar-gutter: stable }, del tablero), que dejaba una franja crema a la derecha de la barra */
html:has(#app.visible > #cn.cz:not([hidden])) { scrollbar-gutter: auto; overflow: hidden; }
/* el punto oro va dentro de un envoltorio que el núcleo llena o vacía: el envoltorio no cuenta en el diseño */
:where(.cz) .cn-dot { display: contents; }
/* el sello de build (#build-stamp, que escribe stamp-build.mjs): en la barra en la compu; al pie de «Más» en el teléfono */
:where(.cz) .cn-build { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--on-dark-2); white-space: nowrap; }
:where(.cz) .cz-mas .cn-build-pie { padding: 8px 18px 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-t3); }
:where(.cz) .cz-mas .cn-build-pie:empty, :where(.cz) .cn-build:empty { display: none; }
/* «Salir» en la hoja «Más»: es un enlace que no navega (role=button) */
:where(.cz) .cz-mas .salir a { cursor: pointer; }
/* el PDF de verdad, en la vista previa (CN.piezas.pv) */
:where(.cz) .es-pv .view:has(.cn-pdf) { padding: 0; }
:where(.cz) .cn-pdf { display: block; width: 100%; height: min(70vh, 720px); min-height: 360px; border: 0; background: #fff; }
:where(.cz) .es-pv .bar a.ap-btn { text-decoration: none; }
/* «Cargando…» */
:where(.cz) .cn-cargando { margin-top: 12px; }
/* el pie de NAP (el tema al pie de su lista) */
:where(.cz) .cn-pie { margin-top: 20px; }
/* la ruta vacía de arriba no empuja */
:where(.cz) .cn-ruta:empty { display: none; }
@container (min-width: 900px) {
  :where(.cz) .cn-build { display: inline; }
  :where(.cz) .cz-mas .cn-build-pie { display: none; }
  :where(.cz) .cn-pdf { height: 640px; }
}

/* [integración] el aviso viejo (#toasts) estaba pegado a 92 px del pie, pensado para la barra fija vieja: con la caja
   caía encima de los botones del pie en el teléfono y se llevaba el toque. Con la caja a la vista sube bajo la barra
   de arriba, donde no hay nada que tocar. */
@media (max-width: 768px) {
  html:has(#app.visible > #cn.cz:not([hidden])) #toasts { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 60px); }
  /* arriba cae sobre «Todas las tareas» (medido: se llevaba el toque): el aviso deja pasar el toque a lo de abajo; sólo su ✕ lo recibe */
  html:has(#app.visible > #cn.cz:not([hidden])) #toasts .toast { pointer-events: none; }
  html:has(#app.visible > #cn.cz:not([hidden])) #toasts .toast .toast-close { pointer-events: auto; }
}
