/* Vorka México · notas de proyecto (tipo Notion) y Tú en Vorka */

/* ---------- lista de notas en el proyecto ---------- */
.sec .more { display: inline-flex; align-items: center; gap: 4px; }
.notas-l .row { align-items: flex-start; }
.notas-l .row .chev { align-self: center; }
.nota-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; flex: none; font-size: 21px; line-height: 1; }
.notas-l .row .txt span.nota-quien { color: var(--fg-3); font-size: 12px; margin-top: 1px; }
.nota-pin { font-style: normal; font-size: 12px; }
.nota-vacia { margin: 2px 16px 4px; width: calc(100% - 32px); display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--line); text-align: left; color: var(--fg); }
.nota-vacia:active { background: var(--bg-2); }
.nota-vacia > span:first-child { font-size: 26px; line-height: 1; }
.nota-vacia b { display: block; font-size: 15px; }
.nota-vacia small { display: block; font-size: 13px; color: var(--fg-2); margin-top: 2px; line-height: 1.4; }
.menu-emoji { width: 24px; text-align: center; font-size: 18px; line-height: 1; font-weight: 700; color: var(--fg-2); flex: none; }

/* ---------- editor ---------- */
.nota { position: relative; padding: 0 0 120px; }
.nota-tb { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 52px); z-index: 15; display: flex; align-items: center; gap: 2px; padding: 6px 10px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.nota-tb::-webkit-scrollbar { display: none; }
.nota-tb button { flex: none; width: 38px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: var(--fg); }
.nota-tb button svg { width: 20px; height: 20px; }
.nota-tb button:active { background: var(--bg-2); }
@media (hover: hover) { .nota-tb button:hover { background: var(--bg-2); } }
.nota-estado { margin-left: auto; padding-left: 10px; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.nota-estado.mal { color: var(--terra); font-weight: 600; }
.nota-conflicto { margin: 10px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--mustard-soft); display: grid; gap: 10px; }
.nota-conflicto b { display: block; font-size: 14.5px; }
.nota-conflicto span { font-size: 13.5px; color: var(--fg-2); }
.nc-a { display: flex; gap: 8px; flex-wrap: wrap; }
.nota-cab { padding: 22px 22px 6px; }
.nota-icono { font-size: 44px; line-height: 1; padding: 4px; margin-left: -4px; border-radius: 12px; }
.nota-icono.vacio { font-size: 13px; font-weight: 600; color: var(--fg-3); padding: 6px 8px; border: 1px dashed var(--line); }
.nota-titulo { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; margin: 10px 0 4px; outline: none; overflow-wrap: anywhere; min-height: 1.15em; }
.nota-titulo:empty::before { content: attr(data-ph); color: var(--fg-3); }
.nota-meta { font-size: 12.5px; color: var(--fg-3); min-height: 16px; }
.nota-bloques { padding: 6px 12px 0 4px; counter-reset: ol; }
.nota-fin { display: block; width: 100%; height: 90px; cursor: text; }

.nb { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 1px 0 1px 26px; }
.nb:not([data-t="ol"]) { counter-reset: ol; }
.nb[data-t="ol"] { counter-increment: ol; }
.nb-asa { position: absolute; left: 2px; top: 5px; width: 22px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--fg-3); opacity: .35; touch-action: manipulation; }
.nb:focus-within .nb-asa { opacity: 1; }
@media (hover: hover) { .nb-asa { opacity: 0; } .nb:hover .nb-asa, .nb:focus-within .nb-asa { opacity: 1; } .nb-asa:hover { background: var(--bg-2); } }
.nb-x { flex: 1; min-width: 0; outline: none; font-size: 16px; line-height: 1.55; padding: 4px 2px; overflow-wrap: anywhere; white-space: pre-wrap; }
.nb-x:empty::before { content: attr(data-ph); color: var(--fg-3); pointer-events: none; }
.nb[data-t="p"] .nb-x:empty::before { content: ""; }
.nb[data-t="p"] .nb-x:focus:empty::before { content: attr(data-ph); }
.nb-x a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nb-x code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; color: var(--terra); }
.nb[data-t="h1"] .nb-x { font-size: 25px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; padding-top: 18px; }
.nb[data-t="h2"] .nb-x { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; padding-top: 14px; }
.nb[data-t="h3"] .nb-x { font-size: 17px; font-weight: 700; line-height: 1.35; padding-top: 10px; }
.nb[data-t="h1"] .nb-asa { top: 21px; } .nb[data-t="h2"] .nb-asa { top: 16px; } .nb[data-t="h3"] .nb-asa { top: 11px; }
.nb[data-t="li"] .nb-x, .nb[data-t="ol"] .nb-x { position: relative; padding-left: 26px; }
.nb[data-t="li"] .nb-x::before, .nb[data-t="ol"] .nb-x::before { position: absolute; left: 4px; top: 4px; color: var(--fg-2); pointer-events: none; }
.nb[data-t="li"] .nb-x::before, .nb[data-t="li"] .nb-x:empty::before { content: "•"; font-weight: 700; color: var(--fg-2); }
.nb[data-t="ol"] .nb-x::before, .nb[data-t="ol"] .nb-x:empty::before { content: counter(ol) "."; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.nb[data-t="li"] .nb-x:empty::after, .nb[data-t="ol"] .nb-x:empty::after { content: attr(data-ph); color: var(--fg-3); pointer-events: none; }
.nb-chk { flex: none; width: 21px; height: 21px; margin-top: 6px; border-radius: 6px; border: 1.8px solid var(--fg-3); display: grid; place-items: center; color: transparent; }
.nb-chk svg { width: 12px; height: 12px; }
.nb[data-c="1"] .nb-chk { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.nb[data-c="1"] .nb-x { color: var(--fg-3); text-decoration: line-through; }
.nb[data-t="quote"] .nb-x { border-left: 3px solid var(--fg); padding-left: 14px; font-size: 17px; }
.nb[data-t="callout"] { margin: 6px 0; }
.nb[data-t="callout"] .nb-emoji { position: absolute; left: 38px; top: 11px; font-size: 18px; line-height: 1; pointer-events: none; }
.nb[data-t="callout"] .nb-x { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px 10px 42px; }
.nb[data-t="code"] .nb-x { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.5; background: var(--bg-2); border-radius: 10px; padding: 12px 14px; margin: 4px 0; tab-size: 2; }
.nb[data-t="hr"] { padding-top: 10px; padding-bottom: 10px; }
.nb[data-t="hr"] hr { flex: 1; border: 0; border-top: 1px solid var(--line); margin: 6px 2px; }
.nb[data-t="hr"] .nb-asa { top: 3px; }

/* menú "/" */
.nota-slash { position: absolute; left: 30px; right: 16px; max-width: 330px; max-height: 300px; overflow-y: auto; z-index: 30; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.ns-t { font-size: 11.5px; font-weight: 700; color: var(--fg-3); letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px 4px; }
.nota-slash button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; text-align: left; }
.nota-slash button.on, .nota-slash button:active { background: var(--bg-2); }
.ns-ico { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--fg-2); flex: none; background: var(--bg); }
.nota-slash b { display: block; font-size: 14.5px; font-weight: 600; }
.nota-slash small { display: block; font-size: 12.5px; color: var(--fg-3); }

.nota-iconos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 8px 16px 12px; }
.nota-iconos button { font-size: 26px; height: 48px; border-radius: 12px; }
.nota-iconos button[aria-pressed="true"] { background: var(--accent-soft); }
.nota-iconos button:active { background: var(--bg-2); }

@media (min-width: 1024px) {
  .nota-cab { padding: 34px 40px 8px; }
  .nota-bloques { padding: 6px 40px 0 18px; }
  .nota-titulo { font-size: 36px; }
  .nota, .nota-tb { max-width: 860px; }
}

/* ---------- Tú en Vorka ---------- */
.pill.tev-pill { background: var(--accent-soft); color: var(--accent); }
.tev-grupos { padding-top: 4px; }
.tev-grupos .chip small { font-weight: 700; opacity: .65; margin-left: 2px; }
.tev-nuevo-g { display: inline-flex; align-items: center; gap: 4px; border-style: dashed; }
.tev-gcab { margin: 4px 16px 8px; padding: 12px 8px 12px 14px; border-radius: 14px; background: var(--bg-2); display: flex; align-items: center; gap: 10px; }
.tev-gcab > div { flex: 1; min-width: 0; }
.tev-gcab b { display: block; font-size: 16px; }
.tev-gcab span { display: block; font-size: 13px; color: var(--fg-2); }
.tev-todos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg-2); }
.tev-todos .link { font-size: 13px; }
.qa-lbl .opc, .field .opc { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--fg-3); }
.tev-emojis { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 4px; }
.tev-emojis button { width: 42px; height: 42px; border-radius: 11px; font-size: 22px; }
.tev-emojis button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tev-ver { padding: 4px 18px 8px; display: grid; gap: 12px; }
.tev-ver-t { margin: 0; font-size: 18px; font-weight: 650; }
.tev-ver .b-sol-m { margin: 0; }
.task .chk:disabled { opacity: .45; cursor: default; }
