/* Matching LabLink: Resultados. Medidas de la maqueta; los colores, de los tokens de lablink-landing.css (con el valor
   del contrato de respaldo). Actuar va en tinta o en azul; el rojo oscuro (#A40E26) queda para los errores. */
.tl-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* isolation: la franja que pinta .tl-res__bar::before (z-index -1) queda sobre este fondo y bajo la cabecera. */
.tl-res-page{--res-text:var(--tl-ink,#002553);--res-muted:var(--tl-muted,#375478);--res-border:var(--tl-line,#D3DEEA);--res-card:var(--tl-line,#D3DEEA);--res-line:var(--tl-line,#D3DEEA);--res-focus:var(--tl-focus,#1D5C6B);--res-hero:var(--tl-hero,#172033);background:var(--tl-bg,#F4F6F9);isolation:isolate}
/* Franja oscura: la de la página son los 32 px sobre la cabecera; el resto lo pinta .tl-res__bar::before. */
.tl-res__band{height:32px;background:var(--res-hero)}
.tl-res{max-width:1232px;margin:0 auto;padding:0 16px 72px;box-sizing:border-box;display:flex;flex-direction:column;gap:20px;font-family:'Roboto',sans-serif;color:var(--res-text)}
.tl-res *{box-sizing:border-box}
.tl-res a{color:var(--tl-blue,#156194)}
.tl-res a:hover{color:var(--res-text)}
.tl-res :focus-visible{outline:2px solid var(--res-focus);outline-offset:2px}

/* Tres secciones apiladas: el encabezado (aquí), «Tu oferta» y los resultados. El encabezado lleva «Volver a la
   búsqueda», la búsqueda con su ceja y el semáforo de la oferta. */
.tl-res__head{background:#fff;border-radius:18px;box-shadow:0 24px 50px rgba(20,24,33,.16);padding:14px clamp(14px,2.2vw,22px);display:flex;flex-direction:column;gap:14px}
.tl-res__bar{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
/* La franja baja desde la de la página (46 px = 14 de padding + 32) hasta 2 px antes del borde inferior de la barra:
   16 px antes del de la tarjeta, sea cual sea su alto. La sombra la lleva a todo el ancho sin desbordar la página;
   clip-path la recorta arriba y abajo. */
.tl-res__bar::before{content:'';position:absolute;z-index:-1;left:0;right:0;top:-46px;bottom:2px;background:var(--res-hero);box-shadow:0 0 0 100vmax var(--res-hero);clip-path:inset(0 -100vmax);pointer-events:none}
.tl-res__query{flex:999 1 360px;min-width:0;display:flex;align-items:center;gap:12px}
.tl-res .tl-res__home{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px 0 12px;border:1px solid var(--res-border);border-radius:999px;background:#fff;font-size:14px;font-weight:500;color:var(--res-text);text-decoration:none;white-space:nowrap}
.tl-res .tl-res__home:hover{border-color:var(--res-text);color:var(--res-text)}
.tl-res__home svg{flex:0 0 auto}
.tl-res__query-lines{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
.tl-res__query-eyebrow{font-size:12.5px;line-height:1.2;color:var(--res-muted)}
.tl-res__query-text{min-width:0;font-size:16px;font-weight:500;line-height:1.3;color:var(--res-text);overflow-wrap:anywhere}
.tl-res__tools{flex:0 1 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
/* Semáforo de la oferta: la misma escala de la revisión (tres tramos con su nombre, llenos en azul hasta el actual, que
   va en tinta y en negrita) y «Mejorar» a su lado. */
.tl-res__nivel{display:flex;align-items:center;gap:14px}
.tl-res__escala{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(56px,1fr));gap:6px}
.tl-res__escala li{display:flex;flex-direction:column;gap:5px}
.tl-res__escala-bar{display:block;height:6px;border-radius:999px;background:var(--tl-line,#D3DEEA)}
.tl-res__escala .is-filled .tl-res__escala-bar{background:var(--tl-blue,#156194)}
.tl-res__escala-name{font-size:12px;line-height:1.2;color:var(--res-muted)}
.tl-res__escala .is-current .tl-res__escala-name{font-weight:500;color:var(--res-text)}
.tl-res__nivel-link{min-height:40px;padding:0 2px;border:0;background:transparent;font-family:inherit;font-size:14px;font-weight:500;color:var(--tl-blue,#156194);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.tl-res__nivel-link:hover{color:var(--res-text)}

/* «Tu oferta»: una tarjeta propia, siempre a la vista, con su título y «Editar la oferta»; el contenido se despliega
   debajo, en su lugar. */
.tl-res__oferta{background:#fff;border:1px solid var(--res-card);border-radius:18px;padding:12px clamp(14px,2.2vw,22px)}
.tl-res__oferta-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.tl-res__oferta-title{margin:0;font-size:18px;font-weight:500;line-height:1.3;color:var(--res-text)}
.tl-res__oferta-title:focus{outline:none}
/* El chevrón apunta abajo colapsada y arriba desplegada; desplegada, el borde va en tinta. */
.tl-res__toggle{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px 0 16px;border:1px solid var(--res-border);border-radius:999px;background:#fff;font-family:inherit;font-size:14px;font-weight:500;color:var(--res-text);cursor:pointer}
.tl-res__toggle:hover,.tl-res__toggle[aria-expanded=true]{border-color:var(--res-text)}
.tl-res__toggle-warn{margin-left:-6px;font-weight:400;color:var(--tl-partial,#8A5A00)}
.tl-res__chev{flex:0 0 auto}
.tl-res__toggle[aria-expanded=true] .tl-res__chev{transform:rotate(180deg)}
.tl-res__criterios{display:flex;flex-direction:column;gap:14px;margin-top:12px;padding:18px;border-radius:16px;background:var(--tl-bg,#F4F6F9)}
.tl-res__criterios[hidden],.tl-res__crit-wait[hidden],.tl-res__crit-fail[hidden]{display:none}
.tl-res__crit-wait{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;color:var(--res-muted)}
.tl-res__crit-fail{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 14px;border:1px solid #FFCECB;border-radius:12px;background:#FFEBE9;font-size:14px;line-height:1.45;color:#A40E26}
.tl-res__crit-fail p{margin:0}
.tl-res__crit-body:empty{display:none}

/* Botones */
.tl-res .tl-res__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 18px;border-radius:999px;font-size:14px;font-weight:500;text-decoration:none}
.tl-res .tl-res__btn--ghost{border:1px solid var(--res-border);background:#fff;color:var(--res-text)}
.tl-res .tl-res__btn--ghost:hover{border-color:var(--res-text);color:var(--res-text)}
.tl-res .tl-res__btn--dark{border:0;background:var(--res-text);color:#fff}
.tl-res .tl-res__btn--dark:hover{background:var(--res-hero);color:#fff}
.tl-res button.tl-res__btn{font-family:inherit;cursor:pointer}

/* Título, avisos y estados en el lugar de la lista */
.tl-res__body{display:flex;flex-direction:column;gap:20px}
.tl-res__body[hidden],.tl-res__fail[hidden]{display:none}
/* El título a la izquierda y la evaluación a la derecha; en el celular, la evaluación baja. */
.tl-res__titles{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:4px 4px 0}
.tl-res__titles-text{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:4px}
/* «¿Te sirven estos resultados?»: evalúa la búsqueda completa. El gracias (role=status) llega vacío y, mientras lo está,
   sale del flujo para no sumar un hueco. */
.tl-res__eval{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:14px;color:var(--res-text)}
.tl-res__eval-q{color:var(--res-muted)}
.tl-res__eval-btns{display:flex;gap:8px}
.tl-res__eval-btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border:1px solid var(--res-border);border-radius:999px;background:#fff;font-family:inherit;font-size:14px;color:var(--res-text);cursor:pointer}
.tl-res__eval-btn:hover{border-color:var(--res-text)}
.tl-res__eval-btn[aria-pressed=true]{border-color:var(--res-focus);background:var(--tl-selected-bg,#E8F1F3)}
/* El anillo de main.css (button:focus) salía también con el clic: aquí, solo con teclado. */
.tl-res__eval-btn:focus:not(:focus-visible){outline:none}
.tl-res__eval-btn:focus-visible{outline:2px solid var(--res-focus);outline-offset:2px}
.tl-res__eval-status{font-size:13px;line-height:1.35;color:var(--res-muted)}
.tl-res__eval-status:empty{position:absolute}
.tl-res__title{margin:0;font-size:22px;font-weight:500;line-height:1.2;letter-spacing:-.01em;color:var(--res-text)}
.tl-res__title:focus,.tl-res .tl-match-state-title:focus,.tl-res__busy:focus{outline:none}
.tl-res__missing{display:flex;gap:12px;align-items:flex-start;padding:18px 20px;border:1px solid #FFCECB;border-radius:16px;background:#FFEBE9;color:#A40E26}
.tl-res__missing svg{flex:0 0 auto;margin-top:1px}
.tl-res__missing .tl-res__title--sm{font-size:17px;line-height:1.3;letter-spacing:0;color:#A40E26}
.tl-res__missing p{margin:4px 0 0;font-size:14px;line-height:1.45}
.tl-res__notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 18px;border-radius:14px;background:var(--tl-partial-bg,#FFF4DC);font-size:14px;line-height:1.45;color:var(--tl-partial,#8A5A00)}
.tl-res__notice-text{flex:1 1 320px;margin:0}
.tl-res__notice strong{font-weight:500}
/* Pocos criterios (solo cargo y nivel): a todo el ancho entre el título y la lista. En el celular, el botón baja. */
.tl-res__pocos{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:16px 20px;border:1px solid var(--tl-blue-light,#A2BCD6);border-radius:12px;background:var(--tl-info-bg,#EEF2F7)}
.tl-res__pocos-main{flex:1 1 360px;min-width:0;display:flex;gap:12px;align-items:flex-start}
.tl-res__pocos-ico{flex:0 0 20px;margin-top:2px;color:var(--tl-blue,#156194)}
.tl-res__pocos-text{min-width:0;display:flex;flex-direction:column;gap:4px}
.tl-res__pocos-title{margin:0;font-size:16px;font-weight:500;line-height:1.35;color:var(--res-text)}
.tl-res__pocos-sub{margin:0;font-size:14px;line-height:1.45;color:var(--res-muted)}
.tl-res__pocos-btn{flex:0 0 auto;min-height:40px;padding:0 18px;border:0;border-radius:999px;background:var(--tl-blue,#156194);font-family:inherit;font-size:14px;font-weight:500;color:#fff;cursor:pointer}
.tl-res__pocos-btn:hover{background:var(--res-text)}
/* «Buscar de nuevo»: la barra de espera, centrada en el lugar de la lista; sin el módulo, solo el texto. */
.tl-res__busy{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:260px;padding:40px 0}
.tl-res__busy[hidden],.tl-res__busy-text[hidden]{display:none}
.tl-res__busy-text{text-align:center}
.tl-res__busy-title{margin:0;font-size:17px;font-weight:500;line-height:1.3;color:var(--res-text)}
.tl-res__busy-sub{margin:6px 0 0;font-size:14px;line-height:1.45;color:var(--res-muted)}
.tl-res__busy-bar{width:100%;max-width:560px}
.tl-res__busy-bar:empty{display:none}
/* Mientras carga la vista, la tarjeta del estado entra 52 px en la franja, como la cabecera. */
.tl-res .tl-match-shell .tl-match-state{position:relative}
.tl-res .tl-match-shell .tl-match-state::before{content:'';position:absolute;z-index:-1;left:-1px;right:-1px;top:-33px;height:84px;background:var(--res-hero);box-shadow:0 0 0 100vmax var(--res-hero);clip-path:inset(0 -100vmax);pointer-events:none}

/* Lista */
.tl-res__layout{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px}
/* 360 px: «Seleccionar todos» y «Descargar en PDF» caben en una fila y los nombres no se parten. */
.tl-res__list{flex:1 1 360px;max-width:100%;min-width:0;display:flex;flex-direction:column;gap:8px}
.tl-res__items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
/* «Ver igualmente»: tarjeta punteada del ancho de la lista; al abrirla, el separador y el resto. */
.tl-res__more{display:flex;align-items:center;gap:12px;min-height:70px;padding:12px 14px 12px 18px;border:1.5px dashed var(--tl-field-border,#A4B1C2);border-radius:16px}
.tl-res__more-text{flex:1 1 auto;min-width:0;margin:0;font-size:14px;line-height:1.35;color:var(--res-muted)}
.tl-res__more-text strong{font-weight:500;color:var(--res-text)}
.tl-res__more .tl-res__btn{flex:0 0 auto}
.tl-res__low{display:flex;flex-direction:column;gap:8px}
.tl-res__low[hidden]{display:none}
.tl-res__sep{display:flex;align-items:center;gap:10px;margin:8px 4px 0;font-size:13px;font-weight:400;line-height:1.3;letter-spacing:0;color:var(--res-muted)}
.tl-res__sep::after{content:'';flex:1 1 auto;height:1px;background:var(--res-border)}
/* Selección para el PDF: la tarjeta sobre la lista y una casilla por persona, en la misma columna de 44 px. La caja de
   18 px es la misma en las dos; en cada persona, la casilla nativa queda encima, transparente, con el clic y el foco. */
.tl-res__sel{display:flex;flex-direction:column}
.tl-res__sel[hidden]{display:none}
/* La columna mide ~340 px: con los espacios compactos (los mismos del celular), «Seleccionar todos» entra entero junto
   a «Descargar en PDF» con Roboto. */
.tl-res__sel-card{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:0 4px;min-height:56px;padding:0 6px;border:1px solid var(--res-card);border-radius:16px;background:#fff}
.tl-res__all{flex:0 1 auto;min-width:0;display:flex;align-items:center;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;font-family:inherit;font-size:14px;color:var(--res-text);text-align:left;cursor:pointer}
.tl-res__all:disabled{color:var(--res-muted);cursor:default}
/* Foco solo con teclado, como en «Sí» y «No». */
.tl-res__all:focus:not(:focus-visible){outline:none}
.tl-res__all:focus-visible{outline:2px solid var(--res-focus);outline-offset:2px}
.tl-res__all-hit{flex:0 0 44px;height:44px;display:flex;align-items:center;justify-content:center}
.tl-res__all-text{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-res__all-text.is-n{font-weight:500}
.tl-res__box{flex:0 0 18px;width:18px;height:18px;border:2px solid var(--res-muted);border-radius:5px;background:#fff;color:#fff;display:flex;align-items:center;justify-content:center}
.tl-res__box path{display:none}
.tl-res__check input:checked+.tl-res__box,.tl-res__all[aria-checked=true] .tl-res__box,.tl-res__all[aria-checked=mixed] .tl-res__box{border-color:var(--tl-blue,#156194);background:var(--tl-blue,#156194)}
.tl-res__check input:checked+.tl-res__box path,.tl-res__all[aria-checked=true] .tl-res__box-on,.tl-res__all[aria-checked=mixed] .tl-res__box-mixed{display:inline}
.tl-res__all:disabled .tl-res__box{border-color:var(--res-border)}
.tl-res__check input:focus-visible+.tl-res__box{outline:2px solid var(--res-focus);outline-offset:2px}
.tl-res__pdf{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:0 10px;border:0;border-radius:999px;background:var(--res-text);color:#fff;font-family:inherit;font-size:13.5px;font-weight:500;white-space:nowrap;cursor:pointer}
.tl-res__pdf:hover{background:var(--res-hero)}
.tl-res__pdf:disabled{background:var(--tl-neutral-bg,#F1F2F4);color:var(--tl-neutral,#4A5060);cursor:not-allowed}
/* Foco solo con teclado, como en «Sí» y «No». */
.tl-res__pdf:focus:not(:focus-visible){outline:none}
.tl-res__pdf:focus-visible{outline:2px solid var(--res-focus);outline-offset:2px}
/* Bajo la tarjeta, la ayuda y el error comparten la misma celda: con alguien marcado la ayuda queda con visibility
   hidden y el espacio sigue reservado, así que la lista no salta. */
.tl-res__sel-msg{display:grid;padding:6px 12px 0}
.tl-res__sel-msg>*{grid-area:1/1;min-width:0;margin:0;font-size:13px;line-height:1.4}
.tl-res__sel-hint{color:var(--res-muted)}
.tl-res__sel-hint.is-off{visibility:hidden}
.tl-res__pdf-error{color:#A40E26}
.tl-res__pdf-error[hidden]{display:none}
/* Cada persona es una tarjeta con la casilla y el botón que elige su detalle. La elegida lleva el fondo y el borde de
   1 px en el color del foco: nada se mueve. La casilla queda a la altura del nombre. */
.tl-res__li{display:flex;align-items:stretch;border:1px solid var(--res-card);border-radius:16px;background:#fff}
.tl-res__li:hover{border-color:var(--tl-field-border,#A4B1C2)}
.tl-res__li:has(>.tl-res__item[aria-pressed=true]){border-color:var(--res-focus);background:var(--tl-selected-bg,#E8F1F3)}
.tl-res__check{flex:0 0 44px;position:relative;display:flex;justify-content:center;align-items:flex-start;margin-left:6px;padding-top:16px;cursor:pointer}
.tl-res__check input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.tl-res__item{flex:1 1 auto;min-width:0;display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:0;border-radius:16px;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer}
.tl-res__check+.tl-res__item{padding-left:4px;border-radius:0 16px 16px 0}
/* Foco: con el clic basta el borde de elegida; con teclado, el anillo rodea la tarjeta entera y no corta en la casilla. */
.tl-res__item:focus{outline:none}
.tl-res__li:has(>.tl-res__item:focus-visible){outline:2px solid var(--res-focus);outline-offset:2px}
.tl-res__avatar{flex:0 0 40px;height:40px;border-radius:50%;background:var(--tl-line,#D3DEEA);color:var(--res-text);font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center}
.tl-res__item[aria-pressed=true] .tl-res__avatar,.tl-res__avatar--lg{background:var(--res-text);color:#fff}
.tl-res__avatar--lg{flex-basis:52px;height:52px;font-size:17px}
.tl-res__item-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.tl-res__item-top{display:flex;align-self:stretch;align-items:baseline;justify-content:space-between;gap:10px}
.tl-res__item-name{min-width:0;font-size:14px;font-weight:500;letter-spacing:.02em;color:var(--res-text);overflow-wrap:anywhere}
.tl-res__item-score{flex:0 0 auto;font-size:15px;font-weight:500}
.tl-res__item-score--calza{flex-shrink:1;max-width:96px;font-size:13px;line-height:1.3;text-align:right}
.tl-res__item-cargo{font-size:13px;line-height:1.35;color:var(--res-muted)}
/* Semáforo del calce: alto en verde, medio en ámbar y bajo en gris. */
.tl-res__calce--alto{color:var(--tl-ok,#1E7A4C)}
.tl-res__calce--medio{color:var(--tl-amber,#B4690E)}
.tl-res__calce--bajo{color:var(--tl-neutral,#4A5060)}

/* Detalle */
.tl-res__details{flex:999 1 520px;min-width:0}
.tl-res__detail{background:#fff;border:1px solid var(--res-card);border-radius:18px;padding:clamp(18px,2.4vw,28px);display:flex;flex-direction:column;gap:20px}
.tl-res__detail[hidden]{display:none}
/* Sin nadie sobre el umbral: el mensaje ocupa la columna del detalle, con la tarjeta del detalle. */
.tl-res__empty{background:#fff;border:1px solid var(--res-card);border-radius:18px;padding:clamp(20px,2.6vw,32px);display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.tl-res__empty-title{margin:0;font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.005em;color:var(--res-text)}
.tl-res__empty-text{max-width:56ch;margin:0;font-size:15px;line-height:1.55;color:var(--res-muted)}
.tl-res__empty-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tl-res__back{display:none;align-self:flex-start;align-items:center;gap:6px;min-height:40px;padding:0 4px;border:0;background:none;font-family:inherit;font-size:14px;font-weight:500;color:var(--res-text);cursor:pointer}
.tl-res__dhead{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;background:#fff}
.tl-res__who{display:flex;gap:14px;align-items:center;flex:999 1 260px;min-width:0}
.tl-res__who-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.tl-res__dname{margin:0;font-size:17px;font-weight:500;letter-spacing:.02em;color:var(--res-text);overflow-wrap:anywhere}
.tl-res__dname:focus{outline:none}
.tl-res__dcargo{font-size:14px;line-height:1.4;color:var(--res-muted)}
.tl-res__meter{flex:0 1 170px;display:flex;flex-direction:column;gap:8px}
.tl-res__meter-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.tl-res__meter-n{font-size:28px;font-weight:500;line-height:1;letter-spacing:-.01em}
.tl-res__meter-calza{font-size:15px;font-weight:500;line-height:1.3}
.tl-res__meter-unit{font-size:13px;color:var(--res-muted)}
.tl-res__meter-bar{height:6px;border-radius:999px;background:var(--tl-line,#D3DEEA);overflow:hidden}
.tl-res__meter-bar span{display:block;height:100%;border-radius:999px}
.tl-res__meter-bar .tl-res__calce--alto{background:var(--tl-ok,#1E7A4C)}
.tl-res__meter-bar .tl-res__calce--medio{background:var(--tl-amber,#B4690E)}
.tl-res__meter-bar .tl-res__calce--bajo{background:var(--tl-neutral,#4A5060)}
.tl-res__dactions{display:flex;gap:8px}
.tl-res__block{display:flex;flex-direction:column;gap:14px;padding-top:18px;border-top:1px solid var(--res-line)}
.tl-res__block--brief{gap:6px}
.tl-res__block--brief p{margin:0;font-size:15px;line-height:1.55;color:var(--res-text)}
.tl-res__h3{margin:0;font-size:16px;font-weight:500;color:var(--res-text)}
.tl-res__h3--sm{font-size:15px}
.tl-res__grp{display:flex;flex-direction:column}
.tl-res__group{margin:0;padding-bottom:2px;font-size:12px;font-weight:500;color:var(--res-muted)}
.tl-res__rows{list-style:none;margin:0;padding:0}
.tl-res__row{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 0;border-bottom:1px solid var(--res-line)}
/* Veredictos: «Cumple» en verde, «Parcial» en ámbar, «No cumple» en gris y «No evaluado» en gris con borde punteado. */
.tl-res__verdict{flex:0 0 116px;align-self:flex-start;display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500}
.tl-res__verdict--cumple{background:var(--tl-ok-bg,#E8F5EE);color:var(--tl-ok,#1E7A4C)}
.tl-res__verdict--parcial{background:var(--tl-partial-bg,#FFF4DC);color:var(--tl-partial,#8A5A00)}
.tl-res__verdict--no{background:var(--tl-neutral-bg,#F1F2F4);color:var(--tl-neutral,#4A5060)}
.tl-res__verdict--ne{border:1px dashed var(--tl-field-border,#A4B1C2);background:var(--tl-neutral-bg,#F1F2F4);color:var(--tl-neutral,#4A5060)}
.tl-res__row-body{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:14px;line-height:1.45}
.tl-res__attr{font-weight:500;color:var(--res-text)}
.tl-res__ev{color:var(--res-muted)}
.tl-res__tipo{font-size:11px;line-height:1.3;color:var(--res-muted)}
.tl-res__why{font-size:13px;color:var(--res-muted)}
.tl-res__note-ne{margin:10px 0 0;font-size:12px;line-height:1.45;color:var(--res-muted)}
.tl-res__foot{margin:-8px 0 0;font-size:12px;line-height:1.45;color:var(--res-muted)}

/* Cambios sin aplicar en «Tu oferta»: el aviso sobre la lista, que se atenúa, y la barra fija abajo con el único
   «Buscar de nuevo» (.tl-rv-search) y «Descartar cambios» (.tl-rv-link), en el ámbar de lo parcial. La barra mide
   63 px; el cuerpo gana ese espacio abajo para que no tape el final de la página. */
.tl-res__dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--tl-amber,#B4690E)}
.tl-res__stale{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border-radius:12px;background:var(--tl-partial-bg,#FFF4DC);font-size:14px;line-height:1.45;color:var(--tl-partial,#8A5A00)}
.tl-res__stale .tl-res__dot{margin-top:5px}
.tl-res__stale[hidden],.tl-res__changes[hidden]{display:none}
.tl-res__stale-text{flex:1 1 auto;min-width:0;margin:0}
.tl-res__stale strong{font-weight:500}
.tl-res__layout.is-stale{opacity:.55}
.tl-res__changes{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--res-border);box-shadow:0 -10px 28px rgba(20,24,33,.10)}
.tl-res__changes-in{max-width:1232px;margin:0 auto;padding:9px 16px;display:flex;align-items:center;gap:10px 14px}
.tl-res__changes-text{flex:1 1 auto;min-width:0;margin:0;font-size:14px;line-height:1.45;color:var(--res-muted)}
.tl-res__changes-text strong{font-weight:500;color:var(--res-text)}
.tl-res__changes-text.is-quiet{opacity:0}
.tl-res__changes-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px}
.tl-res__changes .tl-rv-link,.tl-res__changes .tl-rv-search{min-height:44px;margin:0;font-family:inherit;cursor:pointer}
body.tl-res-con-cambios{padding-bottom:64px}
/* Reordenar al instante: la misma barra dice «Reordenando…» y después, con el check verde, «Resultados reordenados» con
   «Deshacer» y «Ver resultados». data-modo elige ícono y botones; el alto no cambia entre modos. */
.tl-res__changes-in{min-height:62px}
.tl-res__spin,.tl-res__ok,.tl-res__changes-actions--done{display:none}
.tl-res__spin{flex:0 0 14px;width:14px;height:14px;border:2px solid var(--res-border);border-top-color:var(--res-text);border-radius:50%}
.tl-res__ok{flex:0 0 18px;color:var(--tl-ok,#1E7A4C)}
.tl-res__changes[data-modo="reordenando"] .tl-res__dot,.tl-res__changes[data-modo="listo"] .tl-res__dot,
.tl-res__changes[data-modo="reordenando"] .tl-res__changes-actions,.tl-res__changes[data-modo="listo"] .tl-res__changes-actions--pend{display:none}
.tl-res__changes[data-modo="reordenando"] .tl-res__spin,.tl-res__changes[data-modo="listo"] .tl-res__ok{display:block}
.tl-res__changes[data-modo="listo"] .tl-res__changes-actions--done{display:flex}
.tl-res__changes .tl-rv-link--u{padding:0 10px;font-size:13px}

@media (min-width:768px){
  /* Hasta 10 perfiles no caben en 630 px: la lista queda a la vista y se desplaza sola si no cabe. El padding deja
     ver el foco y la sombra del elegido. */
  /* scrollbar-gutter reserva el ancho de la barra desde el inicio: al aparecer con «Ver igualmente», la columna no se
     angosta ni la tarjeta de selección cambia de forma. */
  .tl-res__list{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable;margin:-4px;padding:4px}
  .tl-res__dhead{position:sticky;top:0;z-index:2;margin:-8px -8px 0;padding:8px;border-radius:10px}
  /* Con la barra de cambios, la lista se acorta para no quedar debajo de ella. */
  .tl-res-con-cambios .tl-res__list{max-height:calc(100vh - 96px)}
}
/* Celular: la lista da paso al detalle, con «Volver a la lista». «Volver a la búsqueda» va en su fila, sobre la
   búsqueda; el aviso de pocos criterios baja su botón; «Sí», «No» y «Descargar en PDF» miden 44 px. */
@media (max-width:767px){
  .tl-res__query{flex-wrap:wrap}
  .tl-res__query-lines{flex-basis:100%}
  .tl-res__pocos-main{flex-basis:100%}
  .tl-res__eval-btn,.tl-res__pdf{min-height:44px}
  /* Desde 360 px, «Seleccionar todos» (o «10 seleccionados») y «Descargar en PDF» caben en una fila: la tarjeta deja
     6 px a la derecha del botón, como arriba y abajo, y se acortan la separación y el relleno del botón. */
  .tl-res__sel-card{padding-right:6px;gap:0 4px}
  .tl-res__all{padding-right:0}
  .tl-res__pdf{gap:4px;padding:0 10px}
  .tl-res__layout.is-detail .tl-res__list{display:none}
  .tl-res__layout:not(.is-detail) .tl-res__details{display:none}
  /* Sin nadie sobre el umbral, el mensaje se ve bajo «Ver igualmente». */
  .tl-res__layout.is-empty .tl-res__details{display:block}
  .tl-res__back{display:inline-flex}
  .tl-res__criterios{padding:12px}
  .tl-res__nivel{flex-basis:100%;justify-content:space-between}
  .tl-res__tools{flex-basis:100%}
  .tl-res__busy{min-height:200px;padding:28px 0}
  /* La barra apila el texto arriba y los dos botones abajo, a ancho completo. */
  .tl-res__changes-in{flex-wrap:wrap;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
  .tl-res__changes .tl-res__dot{align-self:flex-start;margin-top:5px}
  .tl-res__changes-text{flex-basis:calc(100% - 24px)}
  .tl-res__changes .tl-res__spin{align-self:flex-start;margin-top:3px}
  .tl-res__changes .tl-res__ok{align-self:flex-start;margin-top:1px}
  .tl-res__changes[data-modo="reordenando"] .tl-res__changes-text,.tl-res__changes[data-modo="listo"] .tl-res__changes-text{flex-basis:calc(100% - 32px)}
  .tl-res__changes-actions{flex:1 1 100%}
  .tl-res__changes .tl-res__changes-actions>*{flex:1 1 0;min-width:0;padding:0 12px}
  body.tl-res-con-cambios{padding-bottom:128px}
}
@media (prefers-reduced-motion:no-preference){
  .tl-res__li,.tl-res__eval-btn,.tl-res__toggle,.tl-res__box,.tl-res__pdf{transition:border-color .15s,box-shadow .15s,background-color .15s}
  .tl-res__layout,.tl-res__changes-text{transition:opacity .2s}
  .tl-res__spin{animation:tl-res-spin .8s linear infinite}
  @keyframes tl-res-spin{to{transform:rotate(360deg)}}
  .tl-res__chev{transition:transform .2s ease}
}
