/* «Plan de hoy» (MUELA-095, hoy-ui.js). Prefijo propio: tkh-. Objetivos de 46 px, 4,5:1 y el estado en texto.
   El sol lleno lleva texto blanco sobre --olive-dark, como el `primary` del kit (8,9:1 en claro y 6,4:1 en oscuro). */

/* El sol: en cada fila, en la ficha y en «Lo primero». */
.tkh-sun{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:46px;min-height:46px;padding:0 8px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;font-weight:800;cursor:pointer;flex:none}
.tkh-sun svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tkh-sun.on{background:var(--olive-dark);border-color:var(--olive-dark);color:#fff}
.tkh-sun.on svg{fill:#fff}
.tkh-sun:focus-visible,.tkh-lead:focus-visible,.tkh-card:focus-visible,.tkh-result:focus-visible{outline:3px solid var(--olive-dark);outline-offset:2px}
html.dark .tkh-sun:focus-visible,html.dark .tkh-card:focus-visible,html.dark .tkh-result:focus-visible{outline-color:var(--ink)}
.task .tkh-sun{align-self:center;margin-right:2px}
#sheet .tkh-sun-ficha{margin:2px 0 10px;padding:0 14px;font-size:14px}
.tkh-lead svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;vertical-align:-4px;margin-right:4px}
.ikisai-kit .lead-actions .tkh-lead.on{background:var(--olive-dark);color:#fff;border-color:var(--olive-dark)}
.ikisai-kit .lead-actions .tkh-lead.on svg{fill:#fff}

/* La pantalla. */
main.tkh{padding-bottom:120px}
.tkh-head{display:flex;align-items:center;gap:14px;margin:6px 0 14px}
.tkh-head .title{margin:0;font-size:24px}
.tkh-head .subtitle{margin:4px 0 0}
.tkh-arc{width:120px;height:72px;flex:none}
.tkh-arc-track{fill:none;stroke:var(--line);stroke-width:10;stroke-linecap:round}
.tkh-arc-done{fill:none;stroke:var(--olive-dark);stroke-width:10;stroke-linecap:round}
html.dark .tkh-arc-done{stroke:var(--olive)}
.tkh-arc-sun{fill:#e0a94a;stroke:var(--paper);stroke-width:3}
.tkh-arc-n{font:800 18px/1 inherit;fill:var(--ink)}
.tkh-h2{display:flex;align-items:baseline;gap:8px;margin:18px 0 8px;font-size:17px}
.tkh-n{font-size:13px;font-weight:700;color:var(--ink);opacity:1}
.tkh-empty{margin:6px 0;color:var(--ink);font-size:14px}

/* Buscar o apuntar. */
.tkh-find{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.tkh-find input{flex:1 1 180px;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);font:inherit;font-size:16px}
.tkh-find input:focus-visible{outline:3px solid var(--olive-dark);outline-offset:1px}
.tkh-note{min-height:46px;padding:0 16px;border:0;border-radius:14px;background:var(--olive-dark);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.tkh-solo-label{flex-basis:100%;font-weight:800;font-size:14px}
.tkh-results-box:empty{display:none}
.tkh-results{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.tkh-result{display:grid;gap:2px;width:100%;min-height:46px;padding:8px 12px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
.tkh-result.tkh-asnote{font-weight:800}
.tkh-already{margin:8px 0 0;font-size:14px;font-weight:700;color:var(--ink)}

/* «De ayer…». */
.tkh-yesterday{margin:14px 0 0;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--olive) 14%,var(--paper));border:1px solid var(--line)}
.tkh-yesterday p{margin:0 0 8px;font-weight:800}
.tkh-yesterday-actions{display:flex;gap:8px;flex-wrap:wrap}
.tkh-yesterday-actions button{min-height:46px}

/* El plan (filas dentro de createSortableList; las flechas del teclado y el arrastre van en el asa). */
.tkh-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tkh-list .sortable-row{align-items:center}
.tkh-list .sortable-body{flex:1 1 auto;min-width:0}
.tkh-row{display:flex;align-items:center;gap:8px;min-width:0;width:100%}
.tkh-body{flex:1 1 auto;min-width:0;display:grid;gap:2px;justify-items:start}
.tkh-line{display:flex;align-items:center;gap:6px;min-width:0}
.tkh-check{flex:none;width:46px;height:46px;border-radius:50%;border:2px solid var(--olive-dark);background:var(--paper);color:#fff;font-size:20px;font-weight:900;cursor:pointer}
html.dark .tkh-check{border-color:var(--olive)}
.tkh-row.done .tkh-check{background:var(--olive-dark);border-color:var(--olive-dark)}
.tkh-check:disabled{opacity:.5;cursor:default}
.tkh-medal{flex:none;display:inline-flex}
.tkh-open{width:100%;min-width:0;display:block;min-height:30px;padding:2px 0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
button.tkh-open{min-height:46px}
span.tkh-open{cursor:default}
.tkh-text{font-weight:700;overflow-wrap:anywhere}
.tkh-row.done .tkh-text{text-decoration:line-through}
.tkh-meta{font-size:13px;color:var(--ink);opacity:1;overflow-wrap:anywhere}
.tkh-meta.late{color:#9a3b22;font-weight:700}
html.dark .tkh-meta.late{color:#f0a08c}
.tkh-row.gone .tkh-text{font-style:italic}
.tkh-face{flex:none;display:inline-flex}
.tkh-carry{min-height:46px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.tkh-remove{flex:none;width:46px;height:46px;border:0;border-radius:12px;background:none;color:var(--ink);font-size:24px;line-height:1;cursor:pointer}

/* «Para coger». */
.tkh-strip{margin:10px 0 0}
.tkh-strip-title{margin:0 0 6px;font-size:14px}
.tkh-cards{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity}
.tkh-cards.wrap{flex-wrap:wrap;overflow:visible}
.tkh-card{flex:0 0 min(220px,72vw);scroll-snap-align:start;display:grid;gap:4px;align-content:start;min-height:96px;padding:10px 12px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
.tkh-cards.wrap .tkh-card{flex:1 1 160px;min-height:46px}
.tkh-card-title{font-weight:800;overflow-wrap:anywhere}
.tkh-card-meta{font-size:13px;font-weight:700}
.tkh-card-where{font-size:12px}
.tkh-card-add{justify-self:start;margin-top:2px;padding:2px 8px;border-radius:999px;background:var(--olive-dark);color:#fff;font-size:12px;font-weight:800}
.tkh-all{margin:12px 0 0}
.tkh-all summary{min-height:46px;display:flex;align-items:center;gap:8px;font-weight:800;cursor:pointer}
.tkh-project-title{margin:10px 0 4px;font-size:14px}
.tkh-project-area{font-weight:600}

/* Quien solo lee: en pequeño. */
main.tkh.small .tkh-arc{width:96px;height:58px}
main.tkh.small .tkh-head .title{font-size:20px}

/* «Llevar a…». */
.tkh-carrystep{margin:8px 0;font-weight:800}
.tkh-carrylist{display:grid;gap:6px;margin-top:8px}
.tkh-carryopt{display:flex;align-items:center;gap:8px;min-height:46px;width:100%;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;font-weight:700;text-align:left;cursor:pointer}
.tkh-carryopt span:first-child{flex:1}
.tkh-carryopt small{font-weight:600}
.tkh-carryhere{width:100%;min-height:46px;margin:4px 0}
.tkh-carryback{min-height:46px;padding:0 10px 0 2px;border:0;background:none;color:var(--olive-dark);font:inherit;font-weight:800;cursor:pointer}
html.dark .tkh-carryback{color:var(--ink)}

/* FB_2026_059 · oficio y lugar bajo la línea de la tarea. */
.tkh-place{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
/* FB_2026_060 · portada de fondo: velo del papel (88 % → 72 %) sobre la imagen, para que el texto mantenga el contraste. */
.tkh-row.tkh-cover{border-radius:14px;padding:4px 6px;background-image:linear-gradient(90deg,color-mix(in srgb,var(--paper) 90%,transparent) 0%,color-mix(in srgb,var(--paper) 86%,transparent) 65%,color-mix(in srgb,var(--paper) 74%,transparent) 100%),var(--tkh-cover);background-size:cover;background-position:center}
.tkh-row.tkh-cover .tkh-text,.tkh-row.tkh-cover .tkh-meta{text-shadow:0 0 6px var(--paper),0 0 2px var(--paper)}
/* Filtro por espacio (encargo de VG, 27-10; revisión móvil de UI-kit): una sola fila con la pista de desplazamiento del kit
   (.scrollrow, K4); el chip sobre papel con borde de contraste, marcado en el color del área con su tinta (--accent-ink) y «✓». */
.tkh-spaces-wrap{margin:0 0 8px}
.tkh-spaces{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding-bottom:2px}
.tkh-spaces .tkh-space{flex:none;min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid color-mix(in srgb,var(--ink) 55%,var(--paper));background:var(--paper);color:var(--ink);font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tkh-spaces .tkh-space-n{font-weight:500;color:color-mix(in srgb,var(--ink) 80%,var(--paper));font-variant-numeric:tabular-nums}
.tkh-spaces .tkh-space[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.tkh-spaces .tkh-space[aria-pressed="true"] .tkh-space-n{color:inherit}
.tkh-space-check{font-weight:800}
.tkh-filtering{margin:0 0 12px;font-size:14px}
.tkh-clear{min-height:44px;font-weight:700}
/* Los hijos del que se ha tocado, en su propia fila debajo, algo metida; «Sin espacio» con borde discontinuo. */
.tkh-spaces-sub{margin-top:6px;padding-left:12px;border-left:2px solid color-mix(in srgb,var(--ink) 30%,var(--paper))}
.tkh-spaces .tkh-space.none{border-style:dashed}
.tkh-spaces .tkh-space.empty{opacity:.6}
/* VG V-01: los botones del plan («Seleccionar» y «Ordenar») en una fila. */
.tkh-plantools{gap:8px;flex-wrap:wrap;margin:0 0 8px}
.tkh-plantools button{min-height:44px}
/* VG C-04: la madre de una cadena de pasos, en gris, con lo hecho, el paso siguiente y lo que queda. */
.tkh-chain .task.tkh-mother{opacity:.6}
.tkh-chainline{margin:2px 12px;font-size:13px;color:color-mix(in srgb,var(--ink) 75%,var(--paper))}
