/* Por responder: rows with media, and the reply sheet ("Responder como yo"). */
.adjuntoFila { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 15px; font-weight: 600; margin: 2px 0 1px; }
.adjuntoFila .icono { color: var(--ink-3); }

.miniatura {
  position: relative; width: 60px; height: 60px; flex: none; border-radius: 14px; overflow: hidden; align-self: center;
  background: var(--surface-var); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.miniatura:not(.cargada)::after, .fotoGrande:not(.cargada)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface-hi) 55%, transparent) 50%, transparent 70%);
  background-size: 220% 100%; animation: respBrillo 1.6s ease-in-out infinite;
}
.miniatura img, .fotoGrande img { display: block; width: 100%; height: 100%; object-fit: cover; animation: respRevela .4s var(--ease); }
@keyframes respBrillo { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes respRevela { from { opacity: 0; } }

/* A chat waiting: face, who and when, what came (as itself), then Responder and Más tarde. */
.chatFila { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 16px 18px 16px; }
.chatFila + .chatFila::before, .bandeja + .chatFila::before, .chatFila + .bandeja::before {
  content: ""; position: absolute; top: 0; left: 80px; right: 0; height: 1px; background: color-mix(in srgb, var(--line) 65%, transparent);
}
.quienCara { position: relative; display: block; width: fit-content; height: fit-content; flex: none; }
.quienCara .cara { border: 0; font: 700 19px/1 var(--sans); letter-spacing: .2px; }
.quienMarca {
  position: absolute; right: -6px; bottom: -5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 2px var(--surface);
}
.quienMarca .marcaWa { display: block; }
.chatCuerpo { min-width: 0; }
.chatQuien { display: flex; flex-direction: column; width: 100%; min-height: 48px; justify-content: center; text-align: left; }
.chatNombre { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.chatNombre b { font-weight: 700; font-size: 18px; line-height: 24px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chatCuando { font-size: 15.5px; line-height: 22px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatCuando b { font-weight: 600; }
.chatNombre .burbuja { flex: none; align-self: center; margin: 0; min-width: 24px; height: 24px; border-radius: 12px; font-size: 13.5px; background: color-mix(in srgb, var(--orange) 16%, var(--surface)); color: var(--orange-ink); }
.chatTexto { display: -webkit-box; width: 100%; margin-top: 2px; text-align: left; font-size: 17.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.chatMedia { margin: 8px 0 4px; }
.chatAcciones { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
@media (max-width: 599.98px) {
  .chatAcciones { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .masTarde { justify-content: center; }
}
.boton.responderBoton { min-height: 48px; padding: 0 20px 0 16px; font-size: 16.5px; }
.boton.responderBoton .icono { color: var(--orange-ink); }
.masTarde { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 16.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.masTarde:hover { color: var(--ink); background: color-mix(in srgb, var(--surface-var) 60%, transparent); }
.masTarde .icono { color: var(--ink-3); }

/* Photos: a thumbnail that opens whole. */
.fotoWa {
  position: relative; display: block; overflow: hidden; padding: 0; border-radius: 16px; cursor: zoom-in;
  background: var(--surface-var); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.fotoWa:not(.cargada)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface-hi) 55%, transparent) 50%, transparent 70%);
  background-size: 220% 100%; animation: respBrillo 1.6s ease-in-out infinite;
}
.fotoWa img { display: block; width: 100%; height: 100%; object-fit: cover; animation: respRevela .4s var(--ease); }
.fotoWa.miniaturaWa { width: min(100%, 240px); height: 136px; }
.fotoWa.adjuntoBorrador { width: 100%; height: 220px; border-radius: 18px; }
.visor {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: calc(72px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); background: rgba(20, 17, 13, .94);
  animation: respRevela .2s var(--ease); cursor: zoom-out;
}
.visor img { max-width: 100%; max-height: calc(100% - 60px); object-fit: contain; border-radius: 12px; }
.visorTexto { margin: 0; max-width: 640px; color: #F4F1E9; font-size: 17px; line-height: 1.5; text-align: center; }
.visorCerrar {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: #F4F1E9; background: rgba(244, 241, 233, .12); border: 1px solid rgba(244, 241, 233, .22);
}

/* Voice notes: play, a track to touch, the length. */
.notaVoz {
  display: flex; align-items: center; gap: 12px; width: min(100%, 340px); padding: 6px 16px 6px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface-var) 70%, transparent); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.notaVozBoton { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--orange); color: var(--on-orange); transition: transform .15s var(--ease); }
.notaVozBoton:active { transform: scale(.94); }
.notaVozBoton .giratorio { width: 20px; height: 20px; border-color: color-mix(in srgb, var(--on-orange) 30%, transparent); border-top-color: var(--on-orange); }
.notaVozPista { position: relative; flex: 1; height: 32px; cursor: pointer; }
.notaVozPista::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink-3) 30%, transparent); }
.notaVozPista i { position: absolute; left: 0; top: 14px; height: 4px; border-radius: 2px; background: var(--orange-ink); }
.notaVozPista b { position: absolute; top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--orange-ink); transition: transform .2s var(--ease); }
.notaVoz:not(.sonando) .notaVozPista b { transform: scale(.8); }
.notaVozTiempo { flex: none; min-width: 3.4em; text-align: right; font-size: 15.5px; font-weight: 600; color: var(--ink-2); }

/* Documents: a tile with the name. */
.docWa {
  display: flex; align-items: center; gap: 12px; width: min(100%, 360px); min-height: 64px; padding: 10px 18px 10px 10px; border-radius: 18px; text-align: left;
  background: color-mix(in srgb, var(--surface-var) 60%, transparent); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); transition: background .2s;
}
.docWa:hover { background: var(--surface-var); }
.docWaIcono { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--orange-ink); background: color-mix(in srgb, var(--orange) 13%, var(--surface)); }
.docWaTexto { display: flex; flex-direction: column; min-width: 0; }
.docWaTexto b { font-weight: 600; font-size: 16.5px; line-height: 22px; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.docWaTexto span { font-size: 14.5px; line-height: 20px; color: var(--ink-2); }

/* The reply sheet. */
.responder { padding-top: 2px; }
.respCabecera { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.respCabecera .quienCara .cara { font-size: 21px; }
.respNombre { display: block; font: 400 24px/1.25 var(--serif); letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.respDetalle { display: block; margin-top: 2px; font-size: 15.5px; line-height: 21px; color: var(--ink-2); }
.respDetalle b { font-weight: 600; }
.chip.resumir { min-height: 48px; padding: 0 16px 0 12px; font-size: 16px; color: var(--ink); flex: none; }
.chip.resumir .icono { color: var(--orange-ink); }

.suyo {
  max-width: 88%; width: fit-content; padding: 12px 16px; border-radius: 6px 20px 20px 20px;
  background: var(--surface-var); color: var(--ink); font-size: 17.5px; line-height: 1.5;
}
.suyo p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.suyo.conFoto { padding: 5px; width: min(100%, 320px); }
.suyo.conFoto p { padding: 8px 11px 7px; }
.suyo .notaVoz, .suyo .docWa { background: color-mix(in srgb, var(--surface-hi) 55%, transparent); }
.suyo .notaVoz + p, .suyo .docWa + p { margin-top: 10px; }
.correoSuyo { max-width: 100%; font-weight: 600; }
.fotoWa.fotoGrande { width: 100%; height: 260px; border-radius: 15px; }

.tuyo { margin-top: 18px; }
.asuntoResp { margin: 14px 4px 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.respCaja {
  display: block; width: 100%; min-height: 108px; padding: 16px 18px; border-radius: 20px 6px 20px 20px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font: 400 17.5px/1.6 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; box-sizing: border-box;
}
textarea.respCaja { max-height: 46vh; overflow: auto; }
textarea.respCaja:focus { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.respCaja.final { min-height: 0; max-height: 46vh; overflow: auto; border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); background: color-mix(in srgb, var(--orange) 6%, var(--surface)); }
.respCaja.pensando { display: flex; align-items: center; }
.puntosResp { display: inline-flex; gap: 7px; padding-left: 2px; }
.puntosResp i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); opacity: .25; animation: respPuntos 1.4s ease-in-out infinite; }
.puntosResp i:nth-child(2) { animation-delay: .18s; }
.puntosResp i:nth-child(3) { animation-delay: .36s; }
@keyframes respPuntos { 40% { opacity: .8; transform: translateY(-2px); } 80% { opacity: .25; transform: none; } }
.cursor { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.2em; border-radius: 1px; background: var(--orange); animation: respTitila 1s steps(1) infinite; }
@keyframes respTitila { 50% { opacity: 0; } }
.notaResp { margin: 4px 4px 12px; font: 400 18px/1.5 var(--serif); color: var(--ink-2); }

.respAcciones { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.respAcciones .crece { flex: 1; min-width: 0; }
.respAcciones .crece > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.respAcciones .boton { min-height: 56px; font-size: 17px; }
.respAcciones .boton.fantasma { padding: 0 16px; }
.responder .boton.secundario { border-color: var(--line); }
@media (max-width: 599.98px) {
  .respAcciones { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
}
.confirmar .borradorWa { animation: aparece .3s var(--ease); }

/* A draft before it leaves: to whom, then exactly what. */
.paraQuien {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px;
  padding: 14px 16px 16px; border-radius: 22px; background: color-mix(in srgb, var(--surface-var) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.paraEtiqueta { grid-column: 1 / -1; margin-bottom: 10px; font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--ink-2); }
.paraTexto { display: flex; flex-direction: column; min-width: 0; }
.paraTexto b { font: 400 23px/1.25 var(--serif); letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paraTexto span { font-size: 15.5px; line-height: 21px; color: var(--ink-2); overflow-wrap: anywhere; }
.adjuntosBorrador { margin-top: 14px; }
.borradorWa .respCaja.final { margin-top: 14px; border-radius: 20px; }

/* ===== Tareas ===== */
/* The last row has to clear "Anotar" and the floating nav. */
.pantalla.pendientes { padding-bottom: calc(212px + env(safe-area-inset-bottom)); }
.pendientes { --rubi-tenue: color-mix(in srgb, var(--ruby) 72%, var(--ink-2)); }
:root[data-tema="oscuro"] .pendientes, :root[data-tema="oscuro"] .detalleTarea { --rubi-tenue: color-mix(in srgb, var(--ruby) 62%, var(--ink-2)); }
.detalleTarea { --rubi-tenue: color-mix(in srgb, var(--ruby) 72%, var(--ink-2)); }

/* Groups: one surface, hairlines that start where the text starts. */
.tarjeta.tareas > * + * { border-top: 0; }
.tarjeta.tareas { transition: height .3s var(--ease); }
.tarea { position: relative; align-items: center; gap: 0; padding: 0 16px 0 4px; min-height: 72px; overflow: hidden; transition: background .2s; }
.tarea + .tarea::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 1px; background: color-mix(in srgb, var(--line) 60%, transparent); }
@media (hover: hover) { .tarea:hover { background: color-mix(in srgb, var(--surface-var) 38%, transparent); } }
.tarea .cuerpo { padding: 14px 0 15px; display: flex; flex-direction: column; gap: 3px; }
.tarea .filaTitulo { font-size: 17.5px; line-height: 24px; transition: color .3s var(--ease); }
.tarea .meta { font-size: 15px; }
.vencida { color: var(--rubi-tenue, var(--warning)); font-weight: 600; }
.enDika { font-weight: 600; }

/* The ring: thin grey stroke; green grows from the centre and the check is drawn in one stroke. */
.anillo { width: 52px; height: 52px; margin: 0; border-radius: 50%; }
.anillo:focus-visible { outline: 2px solid var(--focus); outline-offset: -6px; }
.aro { display: block; overflow: visible; }
.aroBorde { fill: none; stroke: var(--ink-3); stroke-width: 1.6; transition: stroke .3s var(--ease); }
.aroRelleno { fill: var(--success); transform-origin: 13px 13px; transform: scale(0); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.aroPalomita { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .25s var(--ease) .09s; }
:root[data-tema="oscuro"] .aroPalomita { stroke: #10241A; }
.aro.lleno .aroBorde { stroke: var(--success); }
.aro.lleno .aroRelleno { transform: scale(1); }
.aro.lleno .aroPalomita { stroke-dashoffset: 0; }
@media (hover: hover) { .anillo:hover .aroBorde { stroke: var(--success); } }
.anillo:active .aro { transform: scale(.92); }
.aro { transition: transform .15s var(--ease); }

/* Strike-through drawn left to right across every line, then the row folds up and the group closes over it. */
.tachable {
  background: linear-gradient(currentColor, currentColor) 0 58% / 0 1.6px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tarea.llena .filaTitulo { color: var(--ink-2); }
.tarea.llena .tachable { background-size: 100% 1.6px; }
.tarea.marca .tachable, .tarea.pliega .tachable { transition: background-size .38s var(--ease) .12s; }
.tarea.hecha.marca .tachable { transition: background-size .3s var(--ease); }
.tarea.llena .meta { opacity: .75; }
.tarea.pliega { height: 0 !important; min-height: 0; opacity: 0; transform: translateX(10px); transition: height .32s var(--ease), opacity .24s, transform .32s var(--ease); }
.tarea.pliega::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tachable, .aroRelleno, .aroPalomita { transition: none !important; } }

/* First look: groups arrive one after another. */
.pendientes.entrando .grupoTareas, .pendientes.entrando .tarjeta.tareas, .pendientes.entrando .hechas {
  animation: tareasEntran .5s var(--ease) both; animation-delay: calc(var(--o, 0) * 70ms);
}
@keyframes tareasEntran { from { opacity: 0; transform: translateY(10px); } }

/* Done: folded, and a small nod when one more arrives. */
.hechas { margin: 30px 4px 10px; min-height: 48px; font: 600 18px/1.4 var(--sans); color: var(--ink-2); border-radius: 999px; padding: 0 6px; }
.hechas:hover { color: var(--ink); }
.asiente { display: inline-block; animation: asiente .5s var(--ease); }
@keyframes asiente { 30% { transform: translateY(-3px); color: var(--success); } }
.hechasLista { animation: aparece .3s var(--ease); }
.tareasVacias { padding: 64px 12px 24px; }
.tareasVacias .voz { color: var(--ink); margin: 0; }
.esperaTareas { margin-top: 28px; }

/* Undo notice, above the nav: espresso pill, the action in soft orange. */
.aviso.deshacer { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 22px; min-height: 52px; min-width: min(340px, calc(100vw - 44px)); justify-content: space-between; }
.aviso.deshacer button { padding: 14px 16px; border-radius: 999px; font-weight: 700; color: color-mix(in srgb, var(--orange) 70%, var(--bg)); }
.aviso.deshacer button:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); }
.campoBuscar .campo { font-size: 17px; }

/* ---- Anotar ---- */
.anotar { padding-top: 2px; }
.anotarCampo.campo { border: 0; background: none; box-shadow: none; padding: 6px 2px 10px; font: 400 25px/1.4 var(--serif); letter-spacing: -.2px; min-height: 0; }
.anotarCampo.campo::placeholder { color: var(--ink-3); }
.anotarChips { margin: 10px 0 22px; gap: 8px; align-items: center; }
.anotarChips .chip { min-height: 42px; font-size: 15px; background: var(--surface); }
.anotarChips .chip.activo { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.quien { padding-left: 10px; }
.chip.quien .cara { border: 0; margin-left: -2px; }
.chip.quien.activo { background: color-mix(in srgb, var(--orange) 14%, var(--surface)); color: var(--ink); border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
.chipsSep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.anotarBoton { min-height: 56px; font-size: 17px; }
.giratorio.claro { border-color: color-mix(in srgb, var(--bg) 35%, transparent); border-top-color: var(--bg); }

/* A step inside a sheet: back, then its content. */
.paso { display: flex; align-items: center; gap: 6px; margin: 0 0 10px -10px; }
.paso .campoBuscar { flex: 1; box-shadow: none; background: var(--surface-var); border-color: transparent; backdrop-filter: none; }
.pasoTitulo { font: 400 22px/1.3 var(--serif); }
.gente { max-height: min(52vh, 460px); overflow: auto; margin: 4px -12px 0; }
.fila.persona { border-radius: 16px; gap: 14px; padding: 10px 12px; min-height: 64px; }
.fila.persona .cara { border: 0; font-size: 16px; }
.fila.persona.elegida { background: color-mix(in srgb, var(--orange) 9%, transparent); }
.elegidaMarca { color: var(--orange-ink); }
.caraVacia { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; border: 1.5px dashed color-mix(in srgb, var(--ink-3) 70%, transparent); color: var(--ink-3); font-weight: 700; }
.caraVacia.grande { width: 52px; height: 52px; font: 400 22px/1 var(--serif); }
.sinGente { padding: 18px 12px; }
.elegirDia .calendario { margin-top: 4px; }
.sinFechaBoton { margin-top: 10px; }

/* ---- Detalle ---- */
.detalleTarea { display: flex; flex-direction: column; }
.detallePilas { margin: 0 0 8px; }
.chip.fecha { background: var(--surface-var); border-color: transparent; color: var(--ink); }
.chip.fecha.vacia { color: var(--ink-2); }
.chip.fecha.vencidaChip { background: color-mix(in srgb, var(--ruby) 11%, transparent); color: var(--rubi-tenue); }
.chip.dika { background: color-mix(in srgb, var(--ruby) 88%, #000); color: #fff; border-color: transparent; max-width: 58vw; }
:root[data-tema="oscuro"] .chip.dika { background: color-mix(in srgb, var(--ruby) 70%, var(--surface)); }
.chip.dika span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.dika .icono { flex: none; }

.deDonde { display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin: 14px 0 6px; }
.extremo { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 124px; text-align: center; padding: 4px; border-radius: 18px; }
.extremo .pequeno { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.extremo .cara { border: 0; font-size: 20px; }
button.extremo:not(:disabled):hover { background: color-mix(in srgb, var(--surface-var) 55%, transparent); }
button.extremo:disabled { cursor: default; }
.origenReunion { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-var); color: var(--ink-2); }
.flechaDe { color: color-mix(in srgb, var(--ink-3) 70%, transparent); margin-top: 19px; flex: none; }
.aroResponsable { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; margin-top: -4px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 55%, transparent); padding: 1px; }
.responsable .pequeno { color: var(--ink); font-weight: 600; }

.textoTarea { font: 400 26px/1.38 var(--serif); letter-spacing: -.2px; text-align: center; margin: 14px 0 20px; padding: 6px 8px; border-radius: 16px; cursor: text; width: 100%; overflow-wrap: anywhere; }
.textoTarea:hover { background: color-mix(in srgb, var(--surface-var) 40%, transparent); }
.textoTarea.hecha { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.editarTexto { margin: 14px 0 20px; }
.editarTexto .campo { font: 400 22px/1.45 var(--serif); }
.dosBotones { display: flex; gap: 10px; margin-top: 12px; }
.hechaBoton { min-height: 56px; font-size: 17px; }
.reabrir { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border-radius: 999px; color: var(--success); font-weight: 700; background: color-mix(in srgb, var(--success) 10%, transparent); }

.reunionOrigen { margin-top: 22px; padding: 18px 20px 6px; border-radius: 22px; background: color-mix(in srgb, var(--surface-var) 55%, transparent); }
.reunionTitulo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.reunionResumen { margin: 10px 0 0; font-size: 16.5px; line-height: 1.55; }
.reunionResumen.corto { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.seDecidio { margin: 12px 0 4px; }
.puntosReunion { margin: 0; padding: 0; list-style: none; }
.puntosReunion li { position: relative; padding-left: 16px; margin: 4px 0; font-size: 16px; line-height: 1.5; }
.puntosReunion li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.reunionAcciones { display: flex; gap: 20px; }
.reunionAcciones button { padding: 14px 0; color: var(--ink-2); font-weight: 600; }
.reunionAcciones button:hover { color: var(--ink); }

.tituloDetalle { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font: 700 16px/1.4 var(--sans); }
.igualDika { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.archivosTarea { display: flex; gap: 10px; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 4px; scrollbar-width: none; }
.archivo {
  flex: none; position: relative; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--surface-var);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 10px; text-align: left;
  -webkit-touch-callout: none; user-select: none; transition: transform .15s var(--ease);
}
.archivo:active { transform: scale(.96); }
.archivo.foto { padding: 0; }
.archivo.subiendo { align-items: center; justify-content: center; }
.archivoNombre { font-size: 14px; font-weight: 600; line-height: 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.archivo .pequeno { font-size: 14px; line-height: 18px; }
.fotoArchivo { position: absolute; inset: 0; }
.fotoArchivo img { width: 100%; height: 100%; object-fit: cover; animation: respRevela .4s var(--ease); }
.fotoArchivo:not(.cargada)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface-hi) 55%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: respBrillo 1.6s ease-in-out infinite; }

.comentarios { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.burbujaFila { display: flex; align-items: flex-end; gap: 10px; }
.burbujaFila.mia { justify-content: flex-end; }
.burbujaFila .cara { border: 0; font-size: 14px; }
.burbujaCol { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 420px); }
.mia .burbujaCol { align-items: flex-end; }
.burbujaCol .pequeno { padding: 0 6px 4px; font-size: 14px; }
.burbujaTexto { padding: 11px 15px; border-radius: 20px 20px 20px 6px; background: var(--surface-var); font-size: 16.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mia .burbujaTexto { border-radius: 20px 20px 6px 20px; background: color-mix(in srgb, var(--orange) 17%, var(--surface)); }
.burbujaFila.enviando .burbujaTexto { opacity: .6; }
.burbujaFila:last-child { animation: aparece .3s var(--ease); }

/* Writing stays at hand: pinned to the bottom of the sheet. */
.cajaComentario {
  position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); z-index: 2; display: flex; align-items: center; gap: 8px;
  margin: 10px -24px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 24px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--surface-hi) 0%, transparent), var(--surface-hi) 14px);
}
.campoComentario { flex: 1; display: flex; align-items: center; min-height: 50px; padding: 0 4px 0 18px; border-radius: 999px; background: var(--surface-var); }
.campoComentario .campo { border: 0; background: none; box-shadow: none; padding: 12px 0; min-height: 0; font-size: 16.5px; }
.enviarComentario { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--orange); color: var(--on-orange); flex: none; transition: opacity .2s, transform .15s var(--ease); }
.enviarComentario:disabled { opacity: .35; }
.enviarComentario:active { transform: scale(.94); }
.confirmarBorrar { padding: 8px 0 4px; }
.confirmarBorrar .voz { margin: 0 0 6px; }

@media (min-width: 900px) {
  .pantalla.pendientes { padding-bottom: 120px; }
  .detalleTarea:not(.enPaso) { padding: 0 24px; }
  .archivosTarea { margin: 0 -48px; padding: 2px 48px 4px; }
  .cajaComentario { margin-left: -48px; margin-right: -48px; padding-left: 48px; padding-right: 48px; }
  .textoTarea { font-size: 28px; }
}

/* Notices on Pendientes sit above "Anotar", which sits above the nav. */
@media (max-width: 899px) {
  :root:has(.pagina.visible > .pendientes) .aviso { bottom: calc(186px + env(safe-area-inset-bottom)); }
}
.detallePilas { flex-wrap: nowrap; min-width: 0; }
.detallePilas .chip { flex: none; }
.detallePilas .chip.dika { flex: 0 1 auto; min-width: 0; max-width: none; }

/* Without a LIA account the tasks column is a quiet way in. */
.pantalla.pendientes.sinCuenta { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
.cuentaTareas {
  display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 28px; padding: 34px 24px 28px; text-align: center;
  background: var(--lg-fill), color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--lg-edge); box-shadow: var(--lg-rim), var(--lg-shadow);
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); animation: aparece .5s var(--ease) both;
}
.cuentaMarca {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--orange-ink);
  background: color-mix(in srgb, var(--orange) 11%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 16%, transparent);
}
.cuentaTitulo { margin: 16px 0 22px; font: 400 26px/1.2 var(--serif); letter-spacing: -.3px; color: var(--ink); }
.cuentaTareas .conGoogle { min-height: 50px; padding: 0 24px 0 20px; gap: 12px; font-size: 16px; }
.conGoogle .gLogo { flex: none; }
.tarjeta.cuentaTareas > * + * { border-top: 0; }
