/* Command Hub — módulo de Tarefas */
.pop { z-index: 130; }
.rail .mod .bd { position: absolute; top: 0; right: 2px; min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 5px; box-shadow: 0 0 0 2px var(--rail); }

/* barra lateral: árvore */
.tk-si { padding-left: calc(10px + var(--n, 0) * 16px); cursor: pointer; }
.tk-si .tk-acoes { display: none; gap: 2px; margin-left: auto; }
.tk-si:hover .tk-acoes { display: flex; }
.tk-si:hover .tk-qt { display: none; }
.tk-si .tk-acoes span { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; color: var(--side-mut); }
.tk-si .tk-acoes span:hover { background: rgba(255,255,255,.14); color: #fff; }
.tk-si .tk-qt { margin-left: auto; font-size: 12px; color: var(--side-mut); }
.tk-caret { width: 16px; height: 16px; display: grid; place-items: center; flex: none; border-radius: 4px; color: inherit; opacity: .7; cursor: pointer; transition: transform .12s; }
.tk-caret:hover { opacity: 1; background: rgba(127,127,160,.18); }
.tk-caret.on { transform: rotate(90deg); }
.tk-caret.nada { visibility: hidden; }
.tk-esp-ic { width: 20px; height: 20px; border-radius: 6px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; text-transform: uppercase; }
.tk-esp-ic.g { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
.tk-ldot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.tk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.tk-dot.g { width: 22px; height: 22px; border: 0; cursor: pointer; }

/* cabeçalho e barra de filtros */
.tk-cab { height: 64px; gap: 12px; }
.tk-cab-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri); flex: none; }
.tk-cab-tit { min-width: 0; }
.tk-cab-tit h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-cab-sub { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-cab-sub a { color: var(--mut); }
.tk-abas { display: flex; gap: 2px; margin-left: 18px; height: 100%; }
.tk-abas button { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 700; font-size: 13.5px; color: var(--mut); border-bottom: 2px solid transparent; }
.tk-abas button:hover { color: var(--ink); }
.tk-abas button.on { color: var(--ink); border-color: var(--pri); }
.tk-nova { margin-left: auto; }
.tk-barra { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; flex: none; }
.tk-busca { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 16px; color: var(--mut); width: 220px; }
.tk-busca:focus-within { border-color: var(--pri); }
.tk-busca input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); }
.tk-barra .chip .av { margin-left: -4px; }
.tk-limpa { font-size: 13px; font-weight: 600; color: var(--link); }
.tk-seg { display: flex; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.tk-seg button { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.tk-seg button.on { background: var(--ink); color: var(--bg); }
.tk-corpo { flex: 1; overflow: auto; position: relative; }

/* visão em lista */
.tk-lista { padding: 8px 20px 60px; min-width: 760px; }
.tk-grupo { margin-top: 14px; }
.tk-gcab { display: flex; align-items: center; gap: 8px; padding: 4px 0; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.tk-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--c); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.tk-pill .av { box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
.tk-pill.mini { height: 18px; padding: 0 6px; font-size: 10.5px; border-radius: 4px; vertical-align: 1px; }
.tk-gqt { font-size: 13px; color: var(--mut); font-weight: 600; }
.tk-colcab, .tk-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 120px; align-items: center; }
.tk-colcab { font-size: 11.5px; color: var(--mut); font-weight: 700; padding: 6px 0 4px 26px; border-bottom: 1px solid var(--line); }
.tk-colcab span:not(:first-child) { padding-left: 10px; }
.tk-row { min-height: 40px; border-bottom: 1px solid var(--line); }
.tk-row:hover { background: var(--msg-hover); }
.tk-c { display: flex; align-items: center; gap: 6px; min-width: 0; height: 100%; padding: 0 10px; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.tk-c.nome { padding-left: calc(4px + var(--n, 0) * 28px); gap: 8px; cursor: default; }
.tk-c.resp:hover, .tk-c.prazo:hover, .tk-c.prio:hover { background: var(--hover); }
.tk-c.prazo.atrasada, .tk-mini.atrasada, .tk-datas .atrasada { color: var(--crit); font-weight: 700; }
.tk-c.prazo.hoje, .tk-mini.hoje, .tk-datas .hoje { color: #d97706; font-weight: 700; }
.tk-st { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c); flex: none; cursor: pointer; display: grid; place-items: center; color: #fff; position: relative; }
.tk-st::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .0; }
.tk-st:hover::after { opacity: .6; }
.tk-st.fech { background: var(--c); }
.tk-st.fech::after { display: none; }
.tk-st .i { width: 11px; height: 11px; stroke-width: 3; }
.tk-tit-w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; flex: 0 1 auto; }
.tk-tit { font-weight: 600; color: var(--ink); cursor: pointer; }
.tk-tit-w:hover .tk-tit, .tk-sub .tk-tit:hover { color: var(--pri); text-decoration: underline; }
.tk-row.fech .tk-tit, .tk-sub.fech .tk-tit, .tk-card.fech .tk-card-tit { color: var(--mut); text-decoration: line-through; }
.tk-pai { color: var(--mut); font-size: 12.5px; margin-right: 4px; }
.tk-mini { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--mut); flex: none; }
.tk-mini.ok { color: var(--ok); }
.tk-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap; flex: none; }
.tk-onde { margin-left: auto; font-size: 11.5px; color: var(--mut); background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; flex: none; }
.tk-vazio { color: var(--line2); display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px dashed var(--line2); border-radius: 50%; }
.tk-row:hover .tk-vazio { color: var(--mut); border-color: var(--mut); }
.tk-avs { display: flex; align-items: center; }
.tk-avs .av { margin-left: -5px; box-shadow: 0 0 0 2px var(--bg); }
.tk-avs .av:first-child { margin-left: 0; }
.tk-mais { font-size: 11px; color: var(--mut); font-weight: 700; margin-left: 3px; }
.tk-addrow { display: flex; align-items: center; gap: 8px; height: 38px; padding-left: 4px; color: var(--mut); border-bottom: 1px solid var(--line); }
.tk-addrow input { flex: 1; border: 0; outline: none; background: transparent; font-size: 13.5px; height: 100%; }
.tk-addrow:focus-within { background: var(--bg2); color: var(--pri); }
.tk-add-vazio { max-width: 360px; margin: 16px auto 0; }

/* quadro */
.tk-quadro { display: flex; gap: 12px; padding: 14px 20px 24px; height: 100%; align-items: flex-start; }
.tk-col { width: 280px; flex: none; background: var(--bg2); border-radius: 12px; display: flex; flex-direction: column; max-height: 100%; border: 1px solid var(--line); }
.tk-col-cab { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 12px; border-top: 3px solid var(--c); border-radius: 12px 12px 0 0; }
.tk-col-cab .tk-pill { background: var(--c); }
.tk-col-cab .bt-ic { margin-left: auto; width: 26px; height: 26px; }
.tk-col-corpo { flex: 1; overflow-y: auto; padding: 2px 8px 6px; min-height: 60px; display: flex; flex-direction: column; gap: 8px; }
.tk-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(18,19,58,.05); transition: box-shadow .12s, border-color .12s; }
.tk-card:hover { border-color: var(--line2); box-shadow: 0 4px 12px rgba(18,19,58,.1); }
.tk-card.arrastando { opacity: .35; }
.tk-card-onde { font-size: 11.5px; color: var(--mut); margin-bottom: 3px; }
.tk-card-tit { font-weight: 700; font-size: 14px; line-height: 1.35; word-break: break-word; }
.tk-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.tk-card-rod { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.tk-card-rod:empty { display: none; }
.tk-ph { height: 4px; border-radius: 2px; background: var(--pri); flex: none; }
.tk-col-add { padding: 4px 8px 10px; }
.tk-col-add button { width: 100%; text-align: left; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; color: var(--mut); font-size: 13px; font-weight: 600; }
.tk-col-add button:hover { background: var(--hover); color: var(--ink); }

/* calendário */
.tk-cal { padding: 12px 20px 20px; min-width: 760px; display: flex; flex-direction: column; height: 100%; }
.tk-cal-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.tk-cal-top h3 { margin: 0 8px; font-size: 18px; font-weight: 800; min-width: 170px; text-align: center; }
.tk-cal-sem, .tk-cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); }
.tk-cal-sem span { font-size: 12px; font-weight: 700; color: var(--mut); padding: 4px 8px; }
.tk-cal-grade { border-top: 1px solid var(--line); border-left: 1px solid var(--line); flex: 1; grid-auto-rows: minmax(110px, 1fr); }
.tk-dia { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 5px 6px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-dia.fora { background: var(--bg2); }
.tk-dia.fora .tk-dia-n span { color: var(--mut); }
.tk-dia.tk-sobre { background: var(--pri-soft); }
.tk-dia-n { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; padding: 0 2px; }
.tk-dia.hoje .tk-dia-n span { background: var(--pri); color: #fff; border-radius: 10px; padding: 0 7px; }
.tk-dia-n button { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--mut); opacity: 0; }
.tk-dia:hover .tk-dia-n button { opacity: 1; }
.tk-dia-n button:hover { background: var(--hover); color: var(--ink); }
.tk-chip-cal { font-size: 12px; font-weight: 600; padding: 3px 6px 3px 8px; border-radius: 5px; background: color-mix(in srgb, var(--c) 14%, var(--bg)); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tk-chip-cal:hover { filter: brightness(.96); }
.tk-chip-cal.fech { text-decoration: line-through; opacity: .6; }
.tk-chip-cal.arrastando { opacity: .3; }
.tk-mais-dia { font-size: 12px; color: var(--link); font-weight: 600; text-align: left; padding: 0 4px; }

/* popovers */
.tk-menu { min-width: 220px; max-width: 300px; }
.tk-menu button { gap: 9px; }
.tk-menu button:hover .tk-tag { background: rgba(255,255,255,.9); }
.tk-menu .tk-ok { margin-left: auto; display: grid; place-items: center; }
.tk-resp { width: 280px; }
.tk-resp .inp { height: 36px; margin: 2px 0 6px; }
.tk-resp-l { max-height: 300px; overflow-y: auto; }
.tk-data-t { font-size: 12px; font-weight: 700; color: var(--mut); padding: 6px 10px 4px; text-transform: uppercase; letter-spacing: .04em; }
.tk-data .inp { height: 36px; }
.tk-pop-esp { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--mut); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: .03em; }

/* janela da tarefa */
.modal.tk-mod { width: min(1180px, 96vw); height: min(860px, 92vh); max-height: 92vh; }
.tk-modal { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.tk-mtop { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); flex: none; }
.tk-trilha { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); min-width: 0; flex-wrap: wrap; }
.tk-trilha a { color: var(--ink2); font-weight: 600; }
.tk-trilha-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); }
.tk-trilha-l:hover { background: var(--hover); }
.tk-mtop-acoes { margin-left: auto; display: flex; gap: 4px; align-items: center; flex: none; }
.tk-mcorpo { display: grid; grid-template-columns: minmax(0, 1fr) 400px; flex: 1; min-height: 0; }
.tk-esq { overflow-y: auto; padding: 18px 28px 40px; }
.tk-esq.solta { outline: 2px dashed var(--pri); outline-offset: -8px; background: var(--pri-soft); }
.tk-pai-link { font-size: 13px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 8px; padding: 3px 8px; border-radius: 6px; background: var(--bg2); }
.tk-pai-link:hover { color: var(--pri); }
.tk-linha-st { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tk-st-grande { height: 30px; padding: 0 12px; border-radius: 7px; background: var(--c); color: #fff; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 6px; }
.tk-st-grande:hover { filter: brightness(1.08); }
.tk-concluir { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.tk-id { margin-left: auto; font-size: 12.5px; }
.tk-titulo { width: 100%; border: 0; outline: none; resize: none; background: transparent; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; padding: 4px 6px; margin: 0 -6px 10px; border-radius: 8px; overflow: hidden; }
.tk-titulo:hover { background: var(--bg2); }
.tk-titulo:focus { background: var(--bg2); box-shadow: 0 0 0 2px var(--pri-soft); }
.tk-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; margin-bottom: 18px; }
.tk-campo { display: grid; grid-template-columns: 130px 1fr; align-items: center; min-height: 38px; }
.tk-campo.larga { grid-column: 1 / -1; grid-template-columns: 130px 1fr; }
.tk-rot { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mut); font-weight: 600; }
.tk-val { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-align: left; padding: 5px 8px; border-radius: 7px; min-height: 32px; font-size: 13.5px; font-weight: 600; }
button.tk-val:hover, .tk-datas button:hover { background: var(--hover); }
.tk-datas { gap: 4px; padding: 0; }
.tk-datas button { padding: 5px 8px; border-radius: 7px; font-weight: 600; font-size: 13.5px; }
.tk-pessoa { display: inline-flex; align-items: center; gap: 5px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 2px 9px 2px 3px; font-size: 12.5px; }
.tk-info { font-size: 12.5px; color: var(--mut); min-height: 28px; display: block; padding-top: 4px; }
.tk-sec { margin-top: 18px; }
.tk-sec-cab { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.tk-prog { flex: 0 1 140px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tk-prog i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .2s; }
.tk-desc { width: 100%; min-height: 80px; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; outline: none; resize: none; background: var(--bg2); line-height: 1.5; overflow: hidden; }
.tk-desc:hover { border-color: var(--line); }
.tk-desc:focus { border-color: var(--pri); background: var(--bg); box-shadow: 0 0 0 3px var(--pri-soft); }
.tk-sub { display: grid; grid-template-columns: 22px minmax(0, 1fr) 100px 100px; align-items: center; gap: 6px; min-height: 36px; border: 1px solid var(--line); border-top: 0; padding: 0 0 0 10px; }
.tk-sub:first-of-type, .tk-sec-cab + .tk-sub { border-top: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.tk-sub:last-child { border-radius: 0 0 8px 8px; }
.tk-sub .tk-tit { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sub.add { grid-template-columns: 22px 1fr; color: var(--mut); }
.tk-sub.add input { border: 0; outline: none; background: transparent; height: 34px; }
.tk-check { margin-bottom: 14px; }
.tk-ck-nome { border: 0; outline: none; background: transparent; font-weight: 800; font-size: 14px; padding: 2px 4px; border-radius: 5px; min-width: 60px; max-width: 260px; }
.tk-ck-nome:focus, .tk-ck-nome:hover { background: var(--bg2); }
.tk-check .tk-sec-cab .bt-ic { margin-left: auto; width: 28px; height: 28px; }
.tk-item { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 4px 0 8px; border-radius: 7px; }
.tk-item:hover { background: var(--bg2); }
.tk-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ok); flex: none; }
.tk-item .tk-it-txt { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; padding: 4px; border-radius: 5px; }
.tk-item .tk-it-txt:focus { background: var(--bg); box-shadow: 0 0 0 1px var(--line2); }
.tk-item.feito .tk-it-txt { color: var(--mut); text-decoration: line-through; }
.tk-item .bt-ic { width: 26px; height: 26px; opacity: 0; }
.tk-item:hover .bt-ic { opacity: 1; }
.tk-item.add { color: var(--mut); }
.tk-item.add input { flex: 1; border: 0; outline: none; background: transparent; height: 32px; }
.tk-anx-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.tk-anx { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: var(--ink); background: var(--bg2); }
.tk-anx img { width: 100%; height: 84px; object-fit: cover; display: block; }
.tk-anx-ext { height: 84px; display: grid; place-items: center; font-weight: 800; color: var(--mut); font-size: 18px; }
.tk-anx-nm { font-size: 12px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg); border-top: 1px solid var(--line); }
.tk-anx-x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(18,19,58,.75); color: #fff; display: none; place-items: center; }
.tk-anx:hover .tk-anx-x { display: grid; }
.tk-solte { font-size: 13px; padding: 14px; border: 1.5px dashed var(--line2); border-radius: 10px; text-align: center; }
.tk-dir { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg2); position: relative; }
.tk-dir-cab { display: flex; align-items: center; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tk-dir-cab .seguir { margin-left: auto; background: var(--bg); }
.tk-feed { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.tk-h { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.tk-h .av { margin-top: 1px; }
.tk-com { display: flex; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tk-com-c { min-width: 0; flex: 1; }
.tk-com-top { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.tk-com-top .mut { font-size: 12px; }
.tk-com-ac { margin-left: auto; display: none; gap: 8px; }
.tk-com:hover .tk-com-ac { display: flex; }
.tk-com-ac button { font-size: 12px; color: var(--mut); font-weight: 600; }
.tk-com-ac button:hover { color: var(--ink); }
.tk-com .txt { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-com .fig { width: 110px; }
.tk-dir .compor { padding: 10px 12px 4px; background: var(--bg2); }
.tk-dir .compor .digitando { height: 6px; }
.tk-dir .auto { left: 12px; right: 12px; }

/* janela de nova tarefa */
.modal.tk-nt { width: 620px; }
.tk-nt-tit { font-size: 18px !important; font-weight: 700; height: 48px !important; }
.tk-nt-bts { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-nt-bts .chip .tk-avs .av { width: 18px; height: 18px; font-size: 8px; }

/* editor de status do espaço */
.tk-st-ed { display: grid; grid-template-columns: 26px 1fr 160px 34px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.tk-st-ed .inp { height: 36px; }
.tk-st-ed .bt-ic:disabled { opacity: .3; cursor: default; }

/* caixa de entrada */
.tk-notif-t { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 14px; }

/* tarefa citada no chat */
.tk-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; margin: 2px 0; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--ink) !important; font-size: 13.5px; text-decoration: none !important; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-chip:hover { border-color: var(--pri); box-shadow: 0 2px 8px rgba(18,19,58,.08); }
.tk-chip .mut { font-size: 12px; }

@media (max-width: 1000px) {
  .tk-mcorpo { grid-template-columns: 1fr; overflow-y: auto; }
  .tk-esq { overflow: visible; }
  .tk-dir { border-left: 0; border-top: 1px solid var(--line); min-height: 420px; }
  .tk-campos { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .rail { display: flex; position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: 58px; flex-direction: row; justify-content: space-around; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); z-index: 40; }
  .rail .logo, .rail .esp, .rail [data-a="tema"], .rail .mod.off { display: none; }
  .rail .mod .ic { width: 32px; height: 28px; }
  .app { padding-bottom: 58px; }
  .tk-abas button span, .tk-cab-sub { display: none; }
  .tk-abas { margin-left: 4px; }
  .tk-abas button { padding: 0 8px; font-size: 0; gap: 0; }
  .tk-abas button .i { width: 18px; height: 18px; }
  .tk-cab { gap: 8px; }
  .tk-barra { padding: 8px 12px; overflow-x: auto; flex-wrap: nowrap; }
  .tk-busca { width: 160px; flex: none; }
  .tk-barra .chip { flex: none; }
  .tk-lista { min-width: 640px; padding: 4px 12px 40px; }
  .modal.tk-mod { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .fundo-modal:has(.tk-mod) { padding: 0; }
  .tk-esq { padding: 14px 16px 24px; }
  .tk-mtop-acoes .bt span { display: none; }
}
.side-item.on .tk-esp-ic { box-shadow: 0 0 0 1.5px rgba(255,255,255,.75); }
.tk-tit-w { min-width: min(45%, 180px); }
@media (max-width: 820px) {
  .tk-lista { min-width: 0; }
  .tk-colcab, .tk-row { grid-template-columns: minmax(0, 1fr) 64px 78px; }
  .tk-colcab span:nth-child(4), .tk-row .tk-c.prio { display: none; }
  .tk-row .tk-tag, .tk-row .tk-onde, .tk-row .tk-mini { display: none; }
  .tk-tit-w { min-width: 0; flex: 1; }
  .tk-c { padding: 0 6px; font-size: 12.5px; }
  .tk-cab h2 { font-size: 16px; }
}

/* repetição e automações */
.tk-rec { display: inline-grid; place-items: center; color: var(--pri); margin-left: 2px; }
.tk-rec-on { color: var(--pri); }
.tk-auto-bt { margin-left: auto; }
.tk-auto-bt + .tk-nova { margin-left: 0; }
.tk-h-link { color: var(--link); font-weight: 700; font-size: inherit; }
.tk-h-link:hover { text-decoration: underline; }
.modal.tk-rec-m { width: 560px; }
.tk-rec-lin { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
.tk-rec-lin > label { font-weight: 700; font-size: 14px; }
.tk-rec-lin .inp { height: 38px; }
.tk-rec-dias { display: flex; gap: 6px; }
.tk-rec-dias button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line2); font-weight: 800; font-size: 13px; color: var(--ink2); }
.tk-rec-dias button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.tk-rec-modos { display: grid; gap: 8px; margin: 16px 0 12px; }
.tk-rec-modos .troca.on { border-color: var(--pri); background: var(--pri-soft); }
.tk-rec-modos input { margin-top: 3px; align-self: flex-start; }
.tk-rec-copia { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink2); }
.tk-rec-copia label { display: flex; align-items: center; gap: 6px; }
.tk-rec-prev { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.tk-rec-prev .i { margin-top: 2px; flex: none; }
.tk-au-w { max-width: 920px; margin: 0 auto; }
.tk-au-h { font-size: 15px; font-weight: 800; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.tk-au-h:first-child { margin-top: 4px; }
.tk-au { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.tk-au.off { opacity: .6; }
.tk-au-c { flex: 1; min-width: 0; }
.tk-au-nome { font-weight: 800; font-size: 14.5px; margin-bottom: 3px; }
.tk-au-frase { font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.tk-au-meta { font-size: 12px; color: var(--mut); margin-top: 3px; }
.tk-au-q, .tk-au-e { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 5px; background: var(--pri-soft); color: var(--pri); }
.tk-au-e { background: #e7f6ee; color: #11804a; }
.escuro .tk-au-e { background: #173d2a; color: #6ee7a8; }
.tk-au-vazio { padding: 18px; border: 1.5px dashed var(--line2); border-radius: 12px; color: var(--mut); text-align: center; font-size: 13.5px; background: var(--bg); }
.tk-au-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tk-au-mod { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; align-items: center; }
.tk-au-mod:hover { border-color: var(--pri); box-shadow: 0 3px 12px rgba(18,19,58,.08); }
.tk-au-mod .tk-au-mi { font-size: 20px; grid-row: span 2; }
.tk-au-mod b { font-size: 13.5px; }
.tk-au-mod .mut { font-size: 12px; }
.tk-sw { position: relative; width: 38px; height: 22px; flex: none; cursor: pointer; }
.tk-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.tk-sw i { position: absolute; inset: 0; border-radius: 11px; background: var(--line2); transition: background .15s; }
.tk-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.tk-sw input:checked + i { background: var(--ok); }
.tk-sw input:checked + i::after { transform: translateX(16px); }
.tk-rec-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tk-rec-row:last-child { border-bottom: 0; }
.tk-rec-row:hover { background: var(--msg-hover); }
.tk-rec-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; flex: none; }
.tk-rec-modo { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.tk-rec-modo.agenda { background: #f3e8ff; color: #7c3aed; }
.escuro .tk-rec-modo.agenda { background: #33224f; color: #c4a5ff; }
.tk-rec-pz { font-size: 12.5px; color: var(--mut); width: 110px; text-align: right; flex: none; }
.modal.tk-au-m { width: 680px; }
.tk-au-bloco { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.tk-au-bloco.q { border-left: 3px solid var(--pri); }
.tk-au-bloco.e { border-left: 3px solid var(--ok); }
.tk-au-bloco > select { height: 38px; }
.tk-au-rot { font-size: 12.5px; font-weight: 700; color: var(--mut); margin-bottom: 8px; }
.tk-au-lin { display: flex; gap: 8px; align-items: center; }
.tk-au-lin .inp { height: 38px; flex: 1; }
.tk-au-acao { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tk-au-acao:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.tk-au-val { display: grid; gap: 8px; margin-top: 8px; }
.tk-au-val:empty { display: none; }
.tk-au-val .inp { height: 38px; }
.tk-au-val textarea.inp { height: auto; min-height: 70px; padding: 8px 12px; resize: vertical; }
.tk-au-us { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-au-us button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; }
.tk-au-us button.on { background: var(--pri-soft); border-color: var(--pri); color: var(--pri); }
.tk-au-chk { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-top: 8px; }
@media (max-width: 820px) { .tk-au { flex-wrap: wrap; } .tk-rec-modo, .tk-rec-pz { display: none; } .tk-auto-bt { font-size: 0; gap: 0; padding: 0 9px; } }
.tk-au-bloco .ajuda { font-size: 12.5px; color: var(--mut); margin-top: 6px; }
.tk-au-w .cartao { max-width: none; }
