/* Plan suelto: página, pestañas, tareas y chat */
/* fotos del plan */
.ph-box { margin-top: 14px; }
.ph-strip { display: flex; gap: 10px; margin-top: 8px; }
.ph-th, .ph-add { flex: 1 1 0; max-width: 33%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 0; padding: 0; background: var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.ph-th:hover, .ph-add:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(60, 40, 140, .18); }
.ph-th:active, .ph-add:active { transform: scale(.96); }
.ph-th img { width: 100%; height: 100%; object-fit: cover; display: block; animation: ph-in .3s ease both; }
.ph-add { border: 2px dashed var(--line); display: grid; place-content: center; gap: 2px; color: var(--muted); font-weight: 700; }
.ph-add span { font-size: 26px; line-height: 1; }
.ph-add small { font-size: 12px; }
.ph-add.busy { opacity: .6; }
.ph-big { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 16px; background: var(--surface); }
@keyframes ph-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* página de un plan suelto */
.panel { max-width: 640px; margin: 0 auto; padding-bottom: 48px; }
.panel .pn-card { padding: 18px; }
.panel .pn-card .btn-row { margin-top: 12px; }
.panel .pn-invite { margin-top: 12px; }
.panel .pn-leave { display: block; margin: 28px auto 0; color: var(--muted); }
.panel .section-title { display: flex; justify-content: space-between; align-items: center; }
#app[data-tab=plan] .topbar { padding-top: max(env(safe-area-inset-top), 14px); }

.resp-done { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 4px; padding: 10px 14px; border-radius: 14px; background: var(--primary-soft); animation: ph-in .25s ease both; }
.resp-done.accepted { background: #def7ea; color: #0f7a4a; }
.resp-done.declined { background: #fde6ea; color: #c23352; }
.resp-done.maybe { background: #fff0d6; color: #a86300; }

.hub-card.is-past { opacity: .72; }
.hub-card.is-past .hub-next { color: var(--muted); }
.hub-x { font-size: 16px; font-weight: 800; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.hub-x:hover { color: #c23352; transform: scale(1.1); }

/* ---- plan suelto: menú de pestañas y chat ---- */
.nav-panel .nav-in { grid-template-columns: repeat(3, 1fr); }
.panel.pn-chat { padding-bottom: 150px; }
.panel .pn-gal { padding: 14px; }
.panel .pn-gal .ph-box { margin: 0; }
.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.ch-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; animation: chin .18s ease both; }
.ch-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.ch-b { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 12px; min-width: 0; overflow-wrap: anywhere; }
.ch-msg.mine .ch-b { background: var(--primary-soft); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.ch-b b { display: block; font-size: 12px; color: var(--primary); margin-bottom: 1px; }
.ch-b small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.ch-b .linklike { font-size: 10.5px; color: var(--muted); text-decoration: underline; }
.ch-composer input { font-size: 16px; }
@keyframes chin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ch-msg { animation: none; } }

/* ---- plan suelto v3: cabecera, recuerdos, tareas, burbuja de chat ---- */
@media (max-width: 1023px) { .view.panel { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 130px); } }
.nav-panel .nav-in { grid-template-columns: repeat(3, 1fr); }
.pn-hero { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pn-when { display: flex; align-items: center; gap: 14px; }
.pn-tile { flex: none; width: 66px; height: 70px; border-radius: 20px; background: var(--grad); color: var(--primary-ink, #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.pn-tile small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .9; margin-bottom: 4px; }
.pn-tile b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.pn-tile.tbd { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.pn-date { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-transform: capitalize; }
.pn-time { margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--primary); }
.pn-where { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; transition: transform .15s ease, background-color .2s ease; }
.pn-where:active { transform: scale(.98); }
.pn-where .pw-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pn-where .go { color: var(--muted); font-size: 20px; }
.pn-desc { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; } /* respeta los saltos de línea y párrafos que escribió quien lo creó */
.ch-bub, .notes .note-t { white-space: pre-line; overflow-wrap: anywhere; }
.pn-org { font-size: 13px; color: var(--muted); }
.pn-rec { padding: 0; overflow: hidden; }
.pn-rec-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 800; font-size: 16px; text-align: left; }
.pn-rec-h small { color: var(--muted); font-weight: 700; }
.pn-rec-h .chev { margin-left: auto; font-size: 22px; color: var(--muted); transition: transform .2s ease; }
.pn-rec.open .chev { transform: rotate(90deg); }
.pn-rec-b { padding: 0 16px 16px; animation: chin .2s ease both; }
.pn-rec-b .ph-box { margin: 0; }
.pn-rec-b .ph-box > .label { display: none; }
.panel .pn-card { padding: 16px; }
/* tareas */
.tk-add { display: flex; gap: 8px; padding: 10px; align-items: center; }
.tk-add input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 8px; height: 44px; font-size: 16px; color: inherit; outline: none; }
.tk-prog { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.tk-prog .q-bar { flex: 1; } .tk-prog small { color: var(--muted); font-weight: 700; white-space: nowrap; }
.tk-g { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px 8px; box-shadow: var(--shadow); }
.tk-gh { display: flex; align-items: center; gap: 8px; padding: 8px 0 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tk-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); animation: chin .18s ease both; }
.tk-gh + .tk-row { border-top: 0; }
.tk-box { flex: none; width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.tk-box:active { transform: scale(.88); }
.tk-box.on { background: var(--primary); border-color: var(--primary); }
.tk-box svg.i { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; }
.tk-t { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.tk-row.done .tk-t { text-decoration: line-through; color: var(--muted); }
.tk-claim { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 13px; }
.tk-more { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 20px; }
/* burbuja de chat */
.ch-fab { position: fixed; z-index: 18; right: 18px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 38%, transparent); transition: transform .15s ease, bottom .2s ease; }
.ch-fab:active { transform: scale(.92); }
.ch-fab.up { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 100px); }
.ch-fab svg.i { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ch-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font: 800 11px/20px inherit; font-style: normal; text-align: center; border: 2px solid var(--bg); }
.ch-badge[hidden] { display: none; }
@media (min-width: 1024px) { .ch-fab { right: 36px; bottom: 36px; } .ch-fab.up { bottom: 112px; } }
html.ch-lock, html.ch-lock body { overflow: hidden; }
.ch-pop { position: fixed; left: 0; right: 0; top: 0; height: 100dvh; z-index: 60; display: flex; justify-content: center; align-items: flex-end; opacity: 0; transition: opacity .2s ease; }
.ch-pop.in { opacity: 1; }
.ch-back { position: absolute; inset: 0; background: rgba(15, 18, 30, .45); backdrop-filter: blur(3px); }
.ch-sheet { position: relative; display: flex; flex-direction: column; width: min(100%, 560px); height: 100%; background: var(--bg); transform: translateY(24px); transition: transform .25s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.ch-pop.in .ch-sheet { transform: none; }
@media (min-width: 720px) { .ch-pop { align-items: center; } .ch-sheet { height: min(720px, 88vh); border-radius: 26px; box-shadow: var(--shadow-lg); } }
.ch-head { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ch-head .icon-btn { font-size: 28px; line-height: 1; }
.ch-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-ht b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ch-ht small { color: var(--muted); font-size: 12.5px; }
.ch-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ch-empty { margin: auto; text-align: center; color: var(--muted); padding: 24px; }
.ch-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: var(--surface-2); }
.ch-av { flex: none; width: 30px; }
.asst-msg.cont { margin-top: -6px; }
.ch-bub { max-width: min(80%, 420px); }
.asst-msg.me .ch-bub { max-width: min(80%, 420px); }
.ch-n { display: block; font-size: 12px; color: var(--primary); margin-bottom: 2px; }
.ch-bub small { display: block; margin-top: 3px; font-size: 10.5px; opacity: .65; text-align: right; }
.ch-composer { position: static !important; flex: none; margin: 8px 12px calc(env(safe-area-inset-bottom) + 10px); }
@media (prefers-reduced-motion: reduce) { .ch-sheet, .ch-pop, .tk-row, .pn-rec-b { transition: none; animation: none; } }

.ev-end-add { align-self: flex-start; margin: -6px 0 6px; font-size: 14px; font-weight: 700; color: var(--primary); }
.ev-who { display: flex; align-items: center; gap: 8px; width: 100%; margin: 2px 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--ink); font-size: 14px; text-align: left; }
.ev-who span { flex: 1; } .ev-who b { color: var(--primary); font-size: 13px; }
/* Asistente dentro de un plan: no hay barra inferior, así que la caja de escribir baja al borde */
#app[data-tab=plan] .asst-composer { bottom: calc(env(safe-area-inset-bottom) + 14px); }
#app[data-tab=plan] .asst { min-height: calc(100dvh - 230px); }
/* Asistente encima del plan */
.asst-pop .ch-scroll { display: flex; flex-direction: column; gap: 14px; }
.asst-pop .asst-hero.sm { margin: auto 0; text-align: center; }
.asst-pop .asst-hero.sm p { margin: 12px 0 18px; color: var(--muted); }
.asst-pop .asst-acts { grid-template-columns: 1fr; }
.asst-pop .ch-head .asst-new-l { margin-left: auto; font-size: .85rem; }
.menu-list + .ask-ai, h2 + .ask-ai { margin-bottom: 12px; }
.pn-where .pw-t b { display: block; font-weight: 700; }
.pn-where .pw-t small { display: block; text-wrap: pretty; margin-top: 2px; font-size: .85em; font-weight: 500; color: var(--muted); }
/* Identidad del plan: un toque de color arriba y el emoji del plan grande y suave en la esquina */
.pn-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, var(--surface)) 0%, var(--surface) 55%); }
.pn-emo { position: absolute; top: 10px; right: 14px; font-size: 40px; line-height: 1; opacity: .85; transform: rotate(8deg); pointer-events: none; filter: drop-shadow(0 6px 12px rgb(0 0 0 / .12)); }
.pn-hero.has-emo .pn-wt { padding-right: 44px; }
/* «Para dejarlo redondo» */
.pn-todo { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pn-todo > b { font-size: .95rem; }
.pn-todo-c { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); color: var(--text); font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; }
.pn-chip.ai { border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.pn-chip:active { transform: scale(.96); }
/* Buscador de direcciones: sugerencias bajo el campo */
.ac-box { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.ac-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ac-it:last-child { border-bottom: 0; }
.ac-it:active { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.ac-ic { flex: none; font-size: 16px; }
.ac-t { min-width: 0; display: flex; flex-direction: column; }
.ac-t b { font-weight: 600; font-size: .95rem; }
.ac-t small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-inline #addr-fl { margin-top: 8px; }
/* Invitar a gente de tus grupos */
.ct-q { margin-bottom: 10px; }
.ct-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; margin-bottom: 14px; }
.ct-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ct-row.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.ct-row[hidden] { display: none; }
.ct-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-t small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-ck { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: #fff; }
.ct-row.on .ct-ck { background: var(--primary); border-color: var(--primary); }
.ct-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--muted); font-size: .85rem; }
.ct-or::before, .ct-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ct-block { margin-bottom: 4px; }
.ct-h { display: block; margin-bottom: 10px; font-size: .95rem; }
/* ===== Videollamada ===== */
.pn-vc { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); }
.pn-vc .vc-h { display: flex; align-items: center; gap: 12px; }
.pn-vc .vc-ic { font-size: 26px; line-height: 1; }
.pn-vc .vc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn-vc .vc-t small { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pn-vc.live .vc-t small { color: #16a765; font-weight: 600; }
.vc-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a765; box-shadow: 0 0 0 0 rgb(22 167 101 / .5); animation: vcPulse 1.6s infinite; }
@keyframes vcPulse { 70% { box-shadow: 0 0 0 7px rgb(22 167 101 / 0); } 100% { box-shadow: 0 0 0 0 rgb(22 167 101 / 0); } }
.vc-stack { display: flex; } .vc-stack .avatar + .avatar { margin-left: -8px; }
.vc-join:disabled { opacity: .55; }
.vc-pop { position: fixed; inset: 0; z-index: 70; background: #0d0b1f; color: #fff; opacity: 0; transition: opacity .2s ease; display: flex; }
.vc-pop.in { opacity: 1; }
.vc-pre, .vc-call { flex: 1; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 16px); gap: 14px; max-width: 900px; margin: 0 auto; width: 100%; min-height: 0; }
.vc-top { display: flex; align-items: center; gap: 12px; }
.vc-top div { display: flex; flex-direction: column; min-width: 0; } .vc-top b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vc-top small { opacity: .7; }
.vc-x { width: 42px; height: 42px; border-radius: 14px; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 22px; flex: none; cursor: pointer; }
.vc-prev { position: relative; flex: 1; min-height: 0; border-radius: 26px; overflow: hidden; background: #1c1935; display: grid; place-items: center; }
.vc-prev video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.vc-off { position: absolute; inset: 0; display: grid; place-items: center; background: #1c1935; }
.vc-off[hidden] { display: none; }
.vc-msg { margin: 0; text-align: center; opacity: .8; font-size: .9rem; } .vc-msg[hidden] { display: none; }
.vc-bar { display: flex; justify-content: center; gap: 14px; }
.vc-b { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; padding: 12px 0 8px; border: 0; border-radius: 20px; background: rgb(255 255 255 / .12); color: #fff; font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.vc-b svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-b.off { background: #fff; color: #0d0b1f; }
.vc-b.end { background: #ef4444; }
.vc-enter { background: #fff !important; color: #2a1e7a !important; }
.vc-grid { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.vc-grid.n2 { grid-template-rows: 1fr 1fr; }
.vc-grid.n3, .vc-grid.n4 { grid-template-columns: 1fr 1fr; }
.vc-grid.n5, .vc-grid.n6 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .vc-grid.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .vc-grid.n5, .vc-grid.n6 { grid-template-columns: 1fr 1fr 1fr; } }
.vc-tile { position: relative; border-radius: 22px; overflow: hidden; background: #1c1935; min-height: 0; box-shadow: inset 0 0 0 0 #16a765; transition: box-shadow .15s ease; }
.vc-tile.talk { box-shadow: inset 0 0 0 3px #16a765; }
.vc-m, .vc-m video { width: 100%; height: 100%; }
.vc-m video { object-fit: cover; display: block; } .vc-m video.me { transform: scaleX(-1); }
.vc-av { width: 100%; height: 100%; display: grid; place-items: center; }
.vc-name { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .45); font-size: .8rem; font-weight: 600; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-aud { display: none; }
.vc-pre .vc-b[data-act=vc-mic] { position: relative; overflow: hidden; }
.vc-pre .vc-b[data-act=vc-mic]::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--lvl, 0) * 100%); background: #16a765; transition: width .08s linear; }
.vc-sound { align-self: center; padding: 12px 20px; border: 0; border-radius: 999px; background: #16a765; color: #fff; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgb(22 167 101 / .45); animation: vcPulse 1.6s infinite; cursor: pointer; }
.vc-sound[hidden] { display: none; }
.vc-grid.many { overflow-y: auto; grid-auto-rows: 34vh; align-content: start; -webkit-overflow-scrolling: touch; }
@media (min-width: 720px) { .vc-grid.many { grid-auto-rows: 30vh; } }
.pn-who .pn-nudge.in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 16px 14px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); box-shadow: none; }
.pn-who .pn-nudge.in .pn-nudge-tx { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.pn-who .pn-nudge.in small { color: var(--muted); }
/* Inicio: el asistente a mano */
.hx-ask { display: flex; align-items: center; gap: 10px; width: 100%; margin: 14px 0 6px; padding: 13px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); background: var(--surface); color: var(--muted); font: inherit; font-size: .95rem; text-align: left; box-shadow: var(--shadow); cursor: pointer; }
.hx-ask-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; flex: none; }
.hx-ask-ic svg.i { fill: none; stroke: currentColor; stroke-width: 2; }
.asst-gsel { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.asst-g { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.asst-g.on { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-act=ct-send][hidden] { display: none !important; }
.ct-q { width: 100%; box-sizing: border-box; height: 46px; margin: 4px 0 10px; padding: 0 14px 0 40px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface) no-repeat 14px 50% / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8aa3' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); color: var(--text); font: inherit; font-size: 16px; outline: none; }
.ct-q:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.ct-block .ct-h { margin: 0 0 6px; font-size: .88rem; }
.ct-none { margin: 4px 0 10px; font-size: .9rem; }
.ct-none[hidden] { display: none; }
/* Opción con explicación debajo (Compartir: link o resumen) */
.menu-item > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.menu-item > span:last-child small { display: block; font-weight: 500; color: var(--muted); }
.ct-sum { display: block; width: 100%; margin-top: 14px; padding: 12px; border: 0; border-radius: 14px; background: transparent; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.ct-sum:active { background: color-mix(in srgb, var(--primary) 8%, transparent); }

/* Lápiz de la tarjeta del plan: editar (y adentro, borrar) */
.pn-edit { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; cursor: pointer; }
.pn-edit .i { width: 18px; height: 18px; }
.pn-hero.has-pen .pn-emo { right: 60px; }
.pn-hero.has-pen .pn-wt { padding-right: 48px; } .pn-hero.has-pen.has-emo .pn-wt { padding-right: 96px; }
.pn-leave { display: block; margin: 14px auto 4px; color: var(--muted); font-weight: 700; }
.menu-list .menu-item small { display: block; font-weight: 500; color: var(--muted); }
.ev-del { display: block; width: 100%; margin: 6px 0 4px; padding: 12px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); color: var(--bad); font: inherit; font-weight: 800; cursor: pointer; }

/* Formulario: «Se repite» como casilla; si se marca, elegís cada cuánto */
.ev-rep { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.ev-rp { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 2px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.ev-rp .ck { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.ev-rp.on .ck { background: var(--primary); border-color: var(--primary); }
.ev-rps { display: inline-flex; gap: 6px; flex-wrap: wrap; } .ev-rps .chip.on { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
/* Arriba en el plan: el chat es lo principal (lleno de color); compartir, secundario (blanco) */
#ch-fab.ch-fab.hd { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); }
#ch-fab.ch-fab.hd .ch-badge { border: 2px solid var(--bg, #F4F5FB); }
.ev-rep { margin: -8px 0 8px; } /* pegado a «Cuándo»: repetir es parte de la fecha */

/* Plan nuevo por pasos */
.wz-prog { display: flex; gap: 6px; width: 62%; margin: 2px 0 12px; } .wz-prog i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .wz-prog i.on { background: var(--primary); }
.wz-n { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wz-h { margin: 4px 0 6px; }
.wz-l { font-size: 13.5px; font-weight: 800; margin: 16px 0 8px; } .wz-l small { color: var(--muted); font-weight: 600; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wz-c { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.wz-c.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.wz-sub { margin: 0 0 10px; }
.wz-foot { display: flex; gap: 10px; } .wz-foot .btn { flex: 1; } .wz-foot .wz-back { flex: 0 0 56px; } .wz-foot .wz-now { flex: .8; }
.wz-done { font-size: 46px; text-align: center; margin-top: 6px; }
.wz .ev-wl { display: none; } /* el paso ya se titula «¿Dónde?» */

.xw-s[hidden] { display: none; } .xw-sum { font-size: 1.05rem; font-weight: 700; margin: 4px 0 12px; } .xw-pay { margin-bottom: 8px; }

/* formularios de pasos: pie con «Atrás» y «Siguiente» nada más; los tres pasos del mismo alto */
.wz-foot [hidden] { display: none !important; }
.wz-foot { align-items: stretch; } .wz-foot .btn { white-space: nowrap; }
form.xw { display: flex; flex-direction: column; }
.xw .xw-s { min-height: 420px; }
.xw .xw-s > .field ~ .field, .xw .xw-s > .field ~ .tc-card { margin-top: 18px; }
.xw #ev-hint:empty { display: none; }
.xw .tc-card { overflow: visible; }
.xw .xw-plan .dd { flex: 1; min-width: 0; max-width: 64%; margin-left: auto; } .xw .xw-plan .dd-btn { justify-content: flex-end; border: 0; background: transparent; padding: 0; min-height: 0; color: var(--primary); font-weight: 700; }
.xw .split-box { max-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
.xw .xw-s[data-xs-n="3"] .tc-card { margin-top: 8px; }

/* crear plan por pasos: más liviano y todos los pasos del mismo alto */
form.wz { display: flex; flex-direction: column; min-height: 430px; }
form.wz .wz-foot { margin-top: auto; padding-top: 14px; }
.wz-chips.sm { gap: 6px; flex-wrap: nowrap; } .wz-chips.sm .chip { padding: 8px 10px; font-size: 13px; flex: 1 1 0; min-width: 0; white-space: nowrap; text-align: center; }
.wz-inv { margin-top: 12px; } .wz-invh { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 8px; font-size: .9rem; } .wz-invh span { font-size: .8rem; color: var(--muted); }
.wz-invl { max-height: 250px; overflow-y: auto; overscroll-behavior: contain; }

.xw #ev-hint { display: none; } /* el desplegable «Plan» ya lo dice: el aviso se pegaba al título */

.wz-chips.wz-rep { flex-wrap: wrap; } .wz-chips.wz-rep .chip { flex: 0 1 auto; padding: 7px 12px; }
.wz-rl { margin-top: 14px; margin-bottom: 0; }
.wz-tm .wz-chips .chip { padding: 6px 8px; font-size: 12.5px; background: transparent; }
form.wz .dp-quick { padding-top: 6px; } form.wz .dp-chip { padding: 6px 12px; font-size: 12.5px; }
.wz-rl + .wz-chips { margin-top: 4px; }

/* hora con ruedas (como la alarma del iPhone) */
.hw .hw-wheel { position: relative; display: flex; justify-content: center; align-items: center; gap: 6px; height: 160px; border-radius: 16px; background: var(--surface); overflow: hidden; }
.hw .hw-sel { position: absolute; left: 12px; right: 12px; top: 60px; height: 40px; border-radius: 12px; background: var(--primary-soft); pointer-events: none; }
.hw .hw-wheel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--surface) 0, transparent 34%, transparent 66%, var(--surface) 100%); }
.hw .hw-col { position: relative; z-index: 1; width: 84px; height: 160px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 60px 0; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; text-align: center; }
.hw .hw-col::-webkit-scrollbar { display: none; }
.hw .hw-col i { display: block; height: 40px; line-height: 40px; font-style: normal; font-size: 22px; font-weight: 800; scroll-snap-align: center; color: var(--ink); }
.hw .hw-colon { position: relative; z-index: 1; font-size: 22px; font-weight: 800; }
.hw .hw-q { padding-top: 10px; flex-wrap: wrap; }

form.wz { padding-bottom: 84px; } /* lo de abajo no queda tapado por el botón */

.hw .hw-col[data-k=p] { width: 70px; } .hw .hw-q { padding-top: 12px; } .hw-end[hidden] { display: none; }

.share-push { margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--primary-soft); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.share-push b { font-size: 15px; } .share-push small { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Videollamada: botón propio bajo las sugerencias (otra jerarquía que los planes normales) */
.wz-vcb { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.wz-vcb b { display: block; font-size: 15px; } .wz-vcb small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.wz-vci { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 20px; border-radius: 13px; background: var(--primary-soft); }
.wz-vcb.on { border-color: var(--primary); background: var(--primary-soft); }

.rp-ask { gap: 8px; } .rp-ask .aviso-b { flex: 1; font-size: 14px; font-weight: 600; } .rp-ask .btn.small { flex: none; min-height: 34px; padding: 0 14px; }

/* zumbido */
.ch-zb { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 20px; line-height: 1; cursor: pointer; }
.ch-nudge { align-self: center; margin: 8px auto; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.ch-nudge small { color: var(--muted); font-weight: 600; }
.ch-shake { animation: ch-shake .7s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes ch-shake { 10%, 90% { transform: translate3d(-3px, 0, 0); } 20%, 80% { transform: translate3d(6px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-10px, 0, 0); } 40%, 60% { transform: translate3d(10px, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ch-shake { animation: none; } }
.wz-quick { flex: 1; display: flex; flex-direction: column; gap: 10px; }

/* documentos del plan */
.doc-box { display: flex; flex-direction: column; gap: 10px; }
.doc-box .pn-ih { font-weight: 800; font-size: 16px; } .doc-n { color: var(--muted); font-weight: 700; margin-left: auto; }
.doc-box .hint { margin: 0; }
.doc-row { display: flex; align-items: center; gap: 8px; }
.doc-it { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg, #f4f4fb); color: inherit; text-decoration: none; }
.doc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--primary); flex: none; }
.doc-nm { display: flex; flex-direction: column; min-width: 0; } .doc-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .doc-nm small { color: var(--muted); }
.doc-x { flex: none; min-width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-weight: 800; } .doc-x.ask { color: #fff; background: var(--danger, #e5484d); padding: 0 10px; }
.doc-add { align-self: flex-start; padding: 10px 16px; border-radius: 999px; background: var(--primary-soft, #ecebff); color: var(--primary); font-weight: 800; } .doc-add.busy { opacity: .6; }
