/* Personal OS · Tareas (kanban y fichas con el diseño de la app) */
.tk-i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Colores de etiquetas: misma gama fría de la app */
.c-gray { --c: #9b9ba8; } .c-blue { --c: #4cc9f0; } .c-purple { --c: #8b7cf6; } .c-violet { --c: #c77dff; } .c-indigo { --c: #5b7cfa; }
.c-teal { --c: #3ddbb4; } .c-pink { --c: #f472d0; } .c-yellow { --c: #e8c547; } .c-orange { --c: #f59e6b; } .c-red { --c: #f0718d; }

/* Navegación: secciones y contador */
.nav-label { margin: 14px 14px 4px; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.nav-label:first-child { margin-top: 0; }
.nav-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--text-2); font-size: 12px; font-weight: 600; text-align: center; }
.nav a.active .nav-badge { background: var(--accent-soft); color: #c3baff; }

/* La página de tareas usa todo el ancho */
body[data-page="tareas"] .main-wrap { max-width: none; width: 100%; }
body[data-page="tareas"] .main { padding-left: 44px; padding-right: 44px; }
.tk-page { min-width: 0; }
.tk-head { align-items: center; margin-bottom: 26px; }
.tk-title { display: flex; align-items: center; gap: 16px; }
.tk-page-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tk-page-icon .tk-i { width: 28px; height: 28px; stroke-width: 1.9; }
.tk-tool { background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.tk-tool .tk-i, .btn.primary .tk-i { width: 15px; height: 15px; }
.tk-tool:hover { color: var(--text); }
.tk-tool.on { color: #c3baff; border-color: rgba(139,124,246,.35); background: var(--accent-soft); }
.tk-count { margin-left: 2px; color: var(--text-3); font-size: 12px; }

.tk-fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }
.tk-fchip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--accent-soft); color: #c3baff; font-size: 13px; }
.tk-fchip b { font-weight: 600; }
.tk-fchip button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.tk-fchip button:hover { background: rgba(255,255,255,.08); }
.tk-fchip .tk-i { width: 13px; height: 13px; }

/* Tablero */
.tk-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr); gap: 16px; overflow-x: auto; padding: 2px 2px 24px; align-items: start; scrollbar-width: thin; scrollbar-color: #2a2a33 transparent; }
.tk-col { min-height: 460px; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .15s, background .15s; }
.tk-col.over { border-color: rgba(139,124,246,.45); background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.tk-col > header { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 4px 6px 12px; }
.tk-col-bar { width: 3px; height: 15px; border-radius: 2px; background: var(--c); }
.tk-col > header strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-col > header small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-2); font-size: 12px; text-align: center; }
.tk-col-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.tk-col:hover .tk-col-actions, .tk-col-actions:focus-within { opacity: 1; }
.tk-cards { display: grid; gap: 8px; }
.tk-empty-drop { padding: 22px 12px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--text-3); font-size: 13px; text-align: center; }
.tk-add-card { width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text-3); font-size: 14px; }
.tk-add-card:hover { background: rgba(255,255,255,.04); color: var(--text); }

/* Tarjeta */
.tk-card { position: relative; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card-2); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; transition: border-color .15s, transform .15s; overflow: hidden; }
.tk-card:hover { border-color: rgba(255,255,255,.2); }
.tk-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-card.is-placeholder { opacity: .35; }
.tk-ghost { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; box-shadow: 0 24px 50px rgba(0,0,0,.55); border-color: rgba(139,124,246,.5); }
body.tk-dragging, body.tk-dragging * { cursor: grabbing !important; }
.tk-drop-line { height: 3px; margin: -2px 4px; border-radius: 2px; background: var(--accent); }
.tk-card-top { padding: 9px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-card-top span { color: var(--text-2); }
.tk-card-body { padding: 13px 14px 12px; }
.tk-card-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tk-card-icon { margin-right: 6px; }
.tk-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; min-width: 0; overflow: hidden; }
.tk-card-meta.compact .tk-person-name { display: none; }
.tk-card-meta.compact .tk-person { padding: 0; background: none; }
.tk-people { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text-3); }
.tk-people > .tk-i { width: 15px; height: 15px; }
.tk-person { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 2px 8px 2px 2px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--text-2); font-size: 12px; }
.tk-person-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-person.stacked { padding: 0; background: none; gap: 0; }
.tk-person.stacked .tk-avatar + .tk-avatar { margin-left: -6px; }
.tk-person.stacked em { margin-left: 4px; font-style: normal; color: var(--text-3); }
.tk-avatar { width: var(--s); height: var(--s); flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent); color: #0b0b10; font-size: calc(var(--s) * .55); font-weight: 700; box-shadow: 0 0 0 2px var(--card-2); }
.tk-card-tags { display: inline-flex; flex-wrap: nowrap; gap: 6px; margin-left: auto; flex-shrink: 0; }
.tk-ktag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 15%, transparent); color: color-mix(in srgb, var(--c) 80%, white); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tk-ktag .tk-i { width: 13px; height: 13px; }
.tk-placeholder { width: 24px; height: 24px; display: inline-grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--text-3); }
.tk-placeholder .tk-i { width: 13px; height: 13px; }
.tk-card-extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--text-2); font-size: 12px; }
.tk-chip em { font-style: normal; color: var(--text-3); }
.tk-chip .tk-i { width: 13px; height: 13px; }
.tk-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; color: var(--text-3); font-size: 12px; }
.tk-card-foot:empty { display: none; }
.tk-card-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.tk-card-foot .tk-i { width: 14px; height: 14px; }
.tk-ring { width: 13px; height: 13px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); -webkit-mask: radial-gradient(circle, transparent 3.6px, #000 4px); mask: radial-gradient(circle, transparent 3.6px, #000 4px); }
.tk-date { margin-left: auto; white-space: nowrap; }
.tk-date.soon { color: #e8c547; }
.tk-date.late { color: var(--alert); }
.tk-card.mini .tk-card-body { padding: 11px 14px; }
.tk-card.mini .tk-card-title { font-size: 14px; }
.tk-col.is-minimized .tk-cards { gap: 6px; }

/* Etiquetas */
.tk-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 24px; padding: 0 9px; border-radius: 7px; background: color-mix(in srgb, var(--c) 17%, transparent); color: color-mix(in srgb, var(--c) 82%, white); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-tag .tk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.tk-vals { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tk-opt-person { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.tk-rel { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.tk-rel u { text-decoration-color: var(--text-3); text-underline-offset: 3px; }

/* Ficha */
.tk-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 28px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .15s ease-out; }
.tk-sheet { width: min(940px, 100%); height: min(860px, calc(100vh - 56px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #16161b; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .18s cubic-bezier(.2,.9,.3,1.2); }
.tk-sheet.full { width: 100%; height: calc(100vh - 56px); max-width: none; }
.tk-sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.tk-crumbs { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-3); font-size: 13px; }
.tk-crumbs .tk-i { width: 15px; height: 15px; color: var(--accent); }
.tk-crumbs i { font-style: normal; }
.tk-crumbs b { color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-bar-r { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.tk-edited { margin-right: 8px; color: var(--text-3); font-size: 12px; }
.tk-sheet-scroll { flex: 1; overflow-y: auto; }
.tk-cover { position: relative; height: 170px; }
.tk-cover-btn { position: absolute; right: 16px; bottom: 12px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; opacity: 0; transition: opacity .15s; }
.tk-cover:hover .tk-cover-btn { opacity: 1; }
.tk-doc { max-width: 720px; margin: 0 auto; padding: 34px 40px 80px; }
.tk-cover + .tk-doc { padding-top: 0; }
.tk-doc-icon { position: relative; display: block; margin: 0 0 6px; padding: 0; border: 0; background: none; font-size: 54px; line-height: 1.1; }
.tk-cover + .tk-doc .tk-doc-icon { margin-top: -34px; }
.tk-doc-tools { display: flex; gap: 6px; min-height: 30px; margin-bottom: 4px; opacity: 0; transition: opacity .15s; }
.tk-doc:hover .tk-doc-tools, .tk-doc-tools:focus-within { opacity: 1; }
.tk-doc-tools button, .tk-add-prop { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); font-size: 13px; }
.tk-doc-tools button:hover, .tk-add-prop:hover { background: rgba(255,255,255,.05); color: var(--text); }
.tk-doc-title { width: 100%; resize: none; overflow: hidden; margin: 0 0 18px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
.tk-doc-title:focus { outline: none; }
.tk-doc-title::placeholder { color: var(--text-3); }
.tk-props { display: grid; gap: 2px; }
.tk-prop { display: grid; grid-template-columns: 158px 1fr; align-items: start; gap: 8px; }
.tk-prop-name { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 14px; text-align: left; }
.tk-prop-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-prop-name:hover, .tk-prop-val:hover { background: rgba(255,255,255,.04); }
.tk-prop-val { min-height: 34px; display: flex; align-items: center; padding: 4px 8px; border-radius: 9px; cursor: pointer; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.tk-prop-val:focus-visible { outline: 1px solid var(--accent); }
.tk-empty { color: var(--text-3); }
.tk-daterange { display: inline-flex; align-items: center; gap: 10px; }
.tk-daterange .tk-i { width: 14px; height: 14px; color: var(--text-3); }
.tk-check { width: 18px; height: 18px; display: inline-grid; place-items: center; border: 1.5px solid var(--text-3); border-radius: 5px; }
.tk-check.on { border-color: var(--accent); background: var(--accent); color: #0b0b10; }
.tk-check .tk-i { width: 13px; height: 13px; stroke-width: 2.6; }
.tk-url { color: var(--accent); text-decoration: none; }
.tk-url:hover { text-decoration: underline; }
.tk-inline { width: 100%; height: 30px; padding: 0 10px; border: 1px solid var(--accent); border-radius: 8px; background: rgba(118,118,128,.18); }
.tk-inline:focus { outline: none; }
.tk-add-prop { margin-top: 4px; }

.tk-comments { margin-top: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tk-section-label { margin: 0 0 12px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.tk-comment-list { display: grid; gap: 14px; margin-bottom: 14px; }
.tk-comment { display: flex; gap: 12px; }
.tk-comment > div { flex: 1; min-width: 0; }
.tk-comment p { display: flex; align-items: center; gap: 8px; margin: 1px 0 3px; font-size: 13px; }
.tk-comment time { color: var(--text-3); font-size: 12px; }
.tk-comment p .icon-btn { margin-left: auto; width: 24px; height: 24px; opacity: 0; }
.tk-comment:hover p .icon-btn { opacity: 1; }
.tk-comment > div > span { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 14px; }
.tk-comment-form { display: flex; align-items: flex-start; gap: 12px; }
.tk-comment-form textarea { flex: 1; min-height: 24px; resize: none; padding: 2px 0; border: 0; background: transparent; font-size: 14px; line-height: 1.45; }
.tk-comment-form textarea:focus { outline: none; }
.tk-comment-form textarea::placeholder { color: var(--text-3); }

/* Editor */
.tk-editor { position: relative; min-height: 160px; margin-top: 22px; padding: 2px 0; font-size: 15px; line-height: 1.6; outline: none; overflow-wrap: anywhere; }
.tk-editor.is-empty::before { content: attr(data-placeholder); position: absolute; color: var(--text-3); pointer-events: none; }
.tk-editor > :first-child { margin-top: 0; }
.tk-editor p, .tk-editor div { margin: 0 0 6px; }
.tk-editor h1 { margin: 22px 0 8px; font-size: 26px; letter-spacing: -0.02em; }
.tk-editor h2 { margin: 20px 0 6px; font-size: 21px; letter-spacing: -0.015em; }
.tk-editor h3 { margin: 16px 0 4px; font-size: 17px; }
.tk-editor ul, .tk-editor ol { margin: 4px 0 8px; padding-left: 24px; }
.tk-editor li { margin: 2px 0; }
.tk-editor blockquote { margin: 8px 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); color: var(--text-2); }
.tk-editor hr { height: 1px; margin: 16px 0; border: 0; background: var(--line-strong); }
.tk-editor a { color: var(--accent); }
.tk-editor ul.tk-todo { list-style: none; padding-left: 0; }
.tk-editor ul.tk-todo > li { position: relative; padding-left: 28px; }
.tk-editor ul.tk-todo > li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 15px; height: 15px; border: 1.5px solid var(--text-3); border-radius: 5px; cursor: pointer; }
.tk-editor ul.tk-todo > li[data-checked="true"] { color: var(--text-3); text-decoration: line-through; }
.tk-editor ul.tk-todo > li[data-checked="true"]::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b10' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Adjuntos */
.tk-attach { display: grid; gap: 8px; margin-top: 18px; }
.tk-file { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tk-file-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border: 0; background: none; text-align: left; }
.tk-file-open strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-file-open small { color: var(--text-3); font-size: 12px; }
.tk-file-icon { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* Popovers y menús */
.tk-pop { position: fixed; z-index: 75; min-width: 240px; max-width: min(340px, calc(100vw - 24px)); max-height: min(440px, calc(100vh - 24px)); overflow-y: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: #1b1b21; box-shadow: 0 18px 48px rgba(0,0,0,.55); animation: fade .1s ease-out; }
.tk-pop-picker { width: 320px; padding: 0; }
.tk-picker-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tk-picker-input input { flex: 1; min-width: 80px; height: 24px; border: 0; background: transparent; font-size: 14px; }
.tk-picker-input input:focus { outline: none; }
.tk-sel { display: inline-flex; align-items: center; gap: 4px; }
.tk-sel > button { width: 18px; height: 18px; margin-left: -2px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text-3); font-size: 15px; line-height: 1; }
.tk-sel > button:hover { color: var(--text); }
.tk-sel .tk-avatar { box-shadow: none; }
.tk-picker-hint { padding: 10px 12px 4px; color: var(--text-3); font-size: 12px; }
.tk-picker-list { padding: 4px 6px 6px; }
.tk-picker-empty { padding: 8px; color: var(--text-3); font-size: 13px; }
.tk-opt { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 6px; border-radius: 9px; cursor: pointer; }
.tk-opt.hi, .tk-opt:hover { background: rgba(255,255,255,.06); }
.tk-opt-grip { color: var(--text-3); opacity: .6; display: grid; }
.tk-opt-grip .tk-i { width: 12px; height: 12px; }
.tk-opt-check { margin-left: auto; color: var(--text-2); display: grid; }
.tk-opt-more { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); opacity: 0; }
.tk-opt:hover .tk-opt-more { opacity: 1; }
.tk-opt-more:hover { background: rgba(255,255,255,.08); color: var(--text); }
.tk-opt-create { color: var(--text-3); font-size: 13px; }
.tk-mi { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-size: 14px; text-align: left; }
.tk-mi:hover, .tk-mi.hi { background: rgba(255,255,255,.06); }
.tk-mi .tk-i { color: var(--text-2); }
.tk-mi.danger, .tk-mi.danger .tk-i { color: var(--alert); }
.tk-mi.back { color: var(--text-2); }
.tk-mi small { display: block; color: var(--text-3); font-size: 12px; }
.tk-mi-check { margin-left: auto; }
.tk-mi-dir { margin-left: auto; color: #c3baff; font-style: normal; font-size: 12px; }
.tk-mi-row { display: flex; align-items: center; }
.tk-mi-row .tk-mi { flex: 1; }
.tk-menu-label { padding: 8px 10px 6px; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tk-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.tk-swatch { width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.tk-field { width: 100%; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: rgba(118,118,128,.18); font-size: 14px; }
.tk-field:focus { outline: none; border-color: var(--accent); }
.tk-propmenu > .tk-field, .tk-opt-edit > .tk-field { margin: 4px 0 4px; }
.tk-opt-edit { padding: 6px; }
.tk-datepop { display: grid; gap: 10px; padding: 8px; }
.tk-datepop label { display: grid; gap: 5px; color: var(--text-2); font-size: 12px; font-weight: 500; }
.tk-datepop input { color-scheme: dark; }
.tk-date-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-mini-btn { height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--card-2); color: var(--text-2); font-size: 12px; font-weight: 600; }
.tk-mini-btn:hover { color: var(--text); }
.tk-more-foot { display: grid; gap: 2px; padding: 4px 10px 6px; color: var(--text-3); font-size: 12px; }
.tk-emoji { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 4px; }
.tk-emoji button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; }
.tk-emoji button:hover { background: rgba(255,255,255,.08); }
.tk-covers { display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; padding: 4px 8px 8px; }
.tk-covers button { height: 40px; border: 2px solid transparent; border-radius: 9px; }
.tk-covers button.on, .tk-covers button:hover { border-color: #fff; }
.tk-slash { width: 290px; }
.tk-glyph { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 600; }

/* Papelera y confirmaciones por encima de la ficha */
.backdrop.tk-z { z-index: 55; }
.backdrop.tk-z2 { z-index: 90; }
.tk-trash { max-width: 560px; }
.tk-trash-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.tk-trash-list li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tk-trash-t { flex: 1; min-width: 0; font-weight: 500; }
.tk-trash-t small { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; }
.tk-trash .btn .tk-i { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .tk-board { grid-auto-columns: minmax(270px, 300px); }
}
@media (max-width: 760px) {
  body[data-page="tareas"] .main { padding: 26px 16px 110px; }
  .nav-label, .nav-badge { display: none; }
  .tk-head .actions { width: 100%; }
  .tk-tool { padding: 0 11px; }
  .tk-tool-label { display: none; }
  .tk-board { grid-auto-columns: 80vw; scroll-snap-type: x mandatory; }
  .tk-col { scroll-snap-align: start; min-height: 300px; }
  .tk-col-actions { opacity: 1; }
  .tk-backdrop { padding: 0; }
  .tk-sheet, .tk-sheet.full { width: 100%; height: 100%; border-radius: 0; }
  .tk-doc { padding: 22px 18px 120px; }
  .tk-doc-tools { opacity: 1; }
  .tk-prop { grid-template-columns: 118px 1fr; }
  .tk-doc-title { font-size: 27px; }
  .tk-edited { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-backdrop, .tk-sheet, .tk-pop { animation: none; }
  .tk-card { transition: none; }
}
