/* =====================================================================
   Whoami · Central de tarefas (Fase 14): Hoje / Semana / Quadro + ficha da missão.
   Mesmo padrão de jogo do game.css (peças com contorno escuro, sombra "3D", Fredoka).
   ===================================================================== */

/* ---------- moldura ---------- */
.cx { background: radial-gradient(1200px 500px at 50% -10%, #262b66 0%, var(--bg) 60%); }
.cx-top { gap: 16px; justify-content: flex-start; padding: 12px 16px; flex-wrap: nowrap !important; }
.cx-brand { display: flex; align-items: center; gap: 10px; }
.cx-badge {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #3b2200;
  background: linear-gradient(180deg, var(--gold), var(--gold2)); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--edge); transform: rotate(-6deg);
}
.cx-tabs { display: flex; gap: 6px; margin: 0 auto; padding: 5px; border-radius: 18px; background: var(--well); border: 2px solid var(--edge); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3); }
.cx-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 13px; border: 0; cursor: pointer;
  background: transparent; color: var(--text2); font: 600 16px var(--display); transition: color .15s, background .15s, transform .25s var(--pop);
}
.cx-tab:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.cx-tab.on { color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-d)); box-shadow: 0 3px 0 var(--violet-e); transform: translateY(-1px); }
.cx-actions { display: flex; gap: 8px; align-items: center; }
.cx-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 18px 18px; gap: 14px; }
.cx-body.cx-semana { padding: 12px 14px 14px; gap: 10px; }
.cx-subbar { display: flex; align-items: center; gap: 8px; }
.cx-semana .ag-body { padding: 0; }
.cx-empty { display: grid; place-items: center; gap: 10px; color: var(--text2); flex: 1; text-align: center; }

/* entrada em cascata (só ao abrir/trocar de aba) */
@keyframes cxIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.cx-body.anim .cx-row, .cx-body.anim .cx-card { animation: cxIn .42s var(--pop) both; animation-delay: calc(var(--i, 0) * 35ms); }
.cx-body.anim .cx-hero, .cx-body.anim .cx-side-card, .cx-body.anim .cx-col { animation: cxIn .45s var(--pop) both; }

/* ---------- HOJE: topo ---------- */
.cx-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 12px 20px; align-items: center;
  padding: 18px 20px; border-radius: 24px; border: 3px solid var(--edge); box-shadow: 0 5px 0 var(--edge);
  background: linear-gradient(135deg, #3a2f8f 0%, #2a2f72 55%, #1f4a6b 100%); position: relative; overflow: hidden;
}
.cx-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 209, 102, .22), transparent 70%); pointer-events: none; }
.cx-hero-l { grid-row: span 2; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-date { font: 600 14px var(--display); color: var(--gold); }
.cx-hello { font: 700 26px/1.15 var(--display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.cx-quick-wrap { position: relative; margin-top: 8px; max-width: 560px; }
.cx-quick-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); display: grid; }
.cx-quick {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 16px; border: 2px solid var(--edge); background: rgba(4, 7, 6, .55);
  color: #fff; font: 700 16px var(--font); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.cx-quick::placeholder { color: #b7b2e8; }
.cx-quick:focus { border-color: var(--gold); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 209, 102, .25); }
.cx-quick-wrap.small { margin: 8px 0 0; max-width: none; }
.cx-quick.small { height: 40px; font-size: 14px; padding-left: 38px; background: var(--well); }
.cx-quick-wrap.small .cx-quick-i { left: 12px; color: var(--text3); }
.cx-stats { display: flex; gap: 8px; z-index: 1; }
.cx-stat {
  min-width: 84px; padding: 8px 12px; border-radius: 16px; text-align: center; border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--edge);
  background: linear-gradient(180deg, var(--a), var(--d)); color: var(--ink, #fff);
}
.cx-stat b { display: block; font: 700 26px/1 var(--display); }
.cx-stat span { font: 700 11px var(--font); opacity: .9; }
.cx-stat.red { --a: var(--red); --d: var(--red-d); }
.cx-stat.gold { --a: var(--gold); --d: var(--gold2); --ink: #3b2200; }
.cx-stat.teal { --a: var(--teal); --d: var(--teal-d); --ink: #04302b; }
.cx-stat.green { --a: var(--green); --d: var(--green-d); --ink: #06290f; }
.cx-stat.zero { --a: #24302b; --d: #1b2320; --ink: var(--text3); }
.cx-stat.red:not(.zero) { animation: cxPulse 1.6s ease-in-out infinite; }
@keyframes cxPulse { 50% { transform: translateY(-2px) scale(1.04); } }
.cx-whopick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; z-index: 1; }
.cx-who {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 4px; border-radius: 99px; cursor: pointer;
  border: 2px solid var(--edge); background: rgba(4, 7, 6, .45); color: var(--text2); font: 600 13px var(--display); transition: transform .2s var(--pop);
}
.cx-who img { width: 28px; height: 28px; border-radius: 50%; background: #0a0e0c; }
.cx-who:hover { transform: translateY(-2px); color: #fff; }
.cx-who.on { background: var(--c); color: #080a09; box-shadow: 0 3px 0 var(--edge); }

/* ---------- HOJE: fila + lado ---------- */
.cx-today { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
.cx-queue { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px 6px 10px 2px; }
.cx-lane { --lc: var(--violet); display: flex; flex-direction: column; gap: 8px; }
.cx-lane.red { --lc: var(--red); } .cx-lane.gold { --lc: var(--gold); } .cx-lane.teal { --lc: var(--teal); }
.cx-lane.gray { --lc: #7d8f86; } .cx-lane.green { --lc: var(--green); }
.cx-lane-h { display: flex; align-items: center; gap: 8px; font: 600 16px var(--display); color: var(--lc); padding-left: 4px; }
.cx-lane-i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--lc) 22%, transparent); }
.cx-n { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font: 800 12px var(--font); color: var(--text); background: var(--well); border: 2px solid var(--edge); }
.cx-lane-empty { padding: 14px 16px; border-radius: 16px; border: 3px dashed #343a7a; color: var(--text3); font: 600 14px var(--display); }
.cx-more { align-self: flex-start; }

.cx-row {
  --pc: #4fd1c5; position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; cursor: pointer;
  border-radius: 18px; border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); background: linear-gradient(180deg, #24302b, #242a62);
  transition: transform .22s var(--pop), box-shadow .15s, filter .15s;
}
.cx-row::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 5px; border-radius: 4px; background: var(--pc); }
.cx-row:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 6px 0 var(--edge); }
.cx-row.late { background: linear-gradient(180deg, #4a2340, #3a1d3c); }
.cx-row.doing { background: linear-gradient(180deg, #1f4d5c, #1a3d50); }
.cx-row.done { opacity: .72; }
.cx-row.done .cx-row-t { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--text2); }
.cx-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cx-row-t { font: 600 16px var(--display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row-m, .cx-card-m { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cx-act {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none;
  border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--edge); color: #04302b; background: linear-gradient(180deg, var(--teal), var(--teal-d));
  transition: transform .2s var(--pop);
}
.cx-act.pause { color: #fff; background: linear-gradient(180deg, #4a5296, #2a3530); }
.cx-act:hover { transform: scale(1.1) rotate(-4deg); }
.cx-act:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }

/* bolinha de concluir */
.cx-done {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: transparent;
  border: 3px solid #5a62a8; background: var(--well); transition: transform .25s var(--pop), background .15s, color .15s, border-color .15s;
}
.cx-done:hover { color: var(--green); border-color: var(--green); transform: scale(1.12); }
.cx-done.on { color: #06290f; border-color: var(--edge); background: linear-gradient(180deg, var(--green), var(--green-d)); }
.finishing { animation: cxFinish .5s var(--pop) forwards; }
.finishing .cx-done { color: #06290f; border-color: var(--edge); background: linear-gradient(180deg, var(--green), var(--green-d)); transform: scale(1.25); }
@keyframes cxFinish { 40% { transform: scale(1.03); } 100% { transform: scale(.96); opacity: .5; } }

/* etiquetas */
.cx-pill, .cx-due, .cx-meta, .cx-mini {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font: 700 12px var(--font);
  background: rgba(4, 7, 6, .45); color: var(--text2); white-space: nowrap;
}
.cx-pill { color: var(--c); }
.cx-due.ok { color: #8dffbf; }
.cx-due.soon { color: var(--gold); }
.cx-due.today { color: #3b2200; background: linear-gradient(180deg, var(--gold), var(--gold2)); }
.cx-due.late { color: #fff; background: linear-gradient(180deg, var(--red), var(--red-d)); animation: cxBlink 1.4s ease-in-out infinite; }
@keyframes cxBlink { 50% { filter: brightness(1.25); box-shadow: 0 0 10px rgba(255, 122, 122, .6); } }
.cx-mini-bar { width: 36px; height: 7px; border-radius: 99px; background: var(--well); overflow: hidden; }
.cx-mini-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--green)); }
.cx-mini.full { color: var(--green); }
.cx-avs { display: flex; flex: none; }
.cx-av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #5a62a8; background: #0a0e0c; margin-left: -8px; display: grid; place-items: center; font: 800 12px var(--font); color: var(--text3); }
.cx-av:first-child { margin-left: 0; }
.cx-av.none { border-style: dashed; }
.cx-av.more { background: var(--win3); color: var(--text); }

/* lado */
.cx-side { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.cx-side-card { padding: 14px; border-radius: 20px; border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); background: linear-gradient(180deg, #232859, #1d2150); display: flex; flex-direction: column; gap: 8px; }
.cx-side-h { display: flex; align-items: center; gap: 8px; font: 600 16px var(--display); color: var(--text); }
.cx-link { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--acc-text); font: 700 13px var(--font); cursor: pointer; }
.cx-evs { display: flex; flex-direction: column; gap: 6px; }
.cx-ev {
  --ec: var(--violet); display: flex; align-items: stretch; gap: 10px; padding: 8px 10px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 2px solid var(--edge); background: color-mix(in srgb, var(--ec) 18%, #1b1f45); color: var(--text); transition: transform .2s var(--pop);
}
.cx-ev:hover { transform: translateX(3px); }
.cx-ev-t { flex: none; width: 48px; display: flex; flex-direction: column; font: 700 15px var(--display); color: var(--ec); }
.cx-ev-t small { font: 700 11px var(--font); color: var(--text3); }
.cx-ev-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-ev-b b { font: 600 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-ev-b small { color: var(--text3); font-size: 11px; }
.cx-ev.past { opacity: .5; }
.cx-ev.task { border-style: dashed; }
.cx-ev.live { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec) 50%, transparent); }
.cx-live { align-self: flex-start; padding: 1px 8px; border-radius: 99px; background: var(--red); color: #fff; font: 800 10px var(--font); animation: cxBlink 1.2s infinite; }
.cx-add-ev { margin-top: 2px; }
.cx-mate { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; transition: background .15s; }
.cx-mate:hover { background: rgba(255, 255, 255, .06); }
.cx-mate img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c); background: #0a0e0c; flex: none; }
.cx-mate-b { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cx-mate-b b { font: 600 14px var(--display); }
.cx-mate-b span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-mate-b .doing { color: var(--teal); }
.cx-mate-b .free { color: var(--text3); }
.cx-mate-late { min-width: 22px; height: 22px; border-radius: 99px; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 11px var(--font); border: 2px solid var(--edge); }

/* ---------- QUADRO ---------- */
.cx-boardbar { display: flex; align-items: center; gap: 12px; }
.cx-filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cx-fchip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 2px solid var(--edge); background: linear-gradient(180deg, #313872, #282e66); color: var(--text2); font: 600 14px var(--display); box-shadow: 0 3px 0 var(--edge);
  transition: transform .2s var(--pop);
}
.cx-fchip img { width: 22px; height: 22px; border-radius: 50%; margin-left: -8px; }
.cx-fchip:hover { transform: translateY(-2px); color: #fff; }
.cx-fchip.on { color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-d)); box-shadow: 0 3px 0 var(--violet-e); }
.cx-search { width: 220px; height: 38px; }
.cx-board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-col {
  --cc: var(--violet); min-height: 0; display: flex; flex-direction: column; padding: 12px; border-radius: 24px;
  border: 3px solid var(--edge); box-shadow: 0 5px 0 var(--edge); background: linear-gradient(180deg, #20244c, #1a1e44);
}
.cx-col.doing { --cc: var(--teal); }
.cx-col.done { --cc: var(--green); }
.cx-col-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font: 700 18px var(--display); color: var(--text); }
.cx-col-i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #080a09; background: var(--cc); border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--edge); }
.cx-col-h .cx-n { margin-left: auto; }
.cx-list { flex: 1; min-height: 60px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 8px; border-radius: 16px; transition: background .15s; }
.cx-list.over { background: color-mix(in srgb, var(--cc) 12%, transparent); }
.cx-drop-empty { padding: 18px 12px; border-radius: 16px; border: 3px dashed #343a7a; color: var(--text3); text-align: center; font: 600 14px var(--display); }
.cx-card {
  --pc: #4fd1c5; position: relative; padding: 11px 12px 10px 16px; border-radius: 16px; cursor: grab; display: flex; flex-direction: column; gap: 8px;
  border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); background: linear-gradient(180deg, #24302b, #252a62);
  transition: transform .22s var(--pop), box-shadow .15s, opacity .15s;
}
.cx-card::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 5px; border-radius: 4px; background: var(--pc); }
.cx-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 7px 0 var(--edge); }
.cx-card.dragging { opacity: .35; transform: rotate(2deg) scale(.98); }
.cx-card.late { background: linear-gradient(180deg, #4a2340, #3a1d3c); }
.cx-card.done .cx-card-t { text-decoration: line-through; color: var(--text2); }
.cx-card.done { opacity: .8; }
.cx-card.landed { animation: cxLand .5s var(--pop); }
@keyframes cxLand { 0% { transform: scale(1.08) rotate(-2deg); } 60% { transform: scale(.98); } 100% { transform: none; } }
.cx-card-top { display: flex; align-items: flex-start; gap: 10px; }
.cx-card-top .cx-done { width: 26px; height: 26px; border-width: 3px; }
.cx-card-t { font: 600 15px/1.25 var(--display); color: #fff; padding-top: 2px; word-break: break-word; }
.cx-card .cx-av { width: 26px; height: 26px; }
.cx-ph { height: 52px; border-radius: 16px; border: 3px dashed var(--cc); background: color-mix(in srgb, var(--cc) 10%, transparent); animation: cxIn .2s var(--pop); flex: none; }

/* ---------- SEMANA (agenda dentro da central) ---------- */
.cx-semana .ag-week, .cx-semana .ag-month { border: 3px solid var(--edge) !important; box-shadow: 0 5px 0 var(--edge); border-radius: 22px !important; background: #171a3d !important; }
.cx-semana .ag-label { font: 700 20px var(--display); color: #fff; }
.cx-semana .ag-dayhead.today b { background: linear-gradient(180deg, var(--violet), var(--violet-d)); color: #fff; border-radius: 99px; padding: 0 8px; }
.cx-semana .ag-event { box-shadow: 0 2px 0 var(--edge); transition: transform .2s var(--pop); }
.cx-semana .ag-event:hover { transform: scale(1.03); z-index: 3; }
.cx-semana .ag-now { height: 3px !important; background: var(--red) !important; box-shadow: 0 0 8px rgba(255, 122, 122, .6); }

/* =====================================================================
   Ficha da missão
   ===================================================================== */
.modal.tk-modal { width: min(1040px, calc(100vw - 40px)) !important; max-width: none !important; }
.tk { display: flex; flex-direction: column; max-height: calc(100vh - 60px); }
.tk-head { --pc: var(--teal); position: relative; padding-left: 22px !important; }
.tk-head::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 6px; border-radius: 0 6px 6px 0; background: var(--pc); }
.tk-status { display: flex; gap: 6px; flex: 1; }
.tk-st {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 13px; cursor: pointer;
  border: 2px solid var(--edge); background: linear-gradient(180deg, #313872, #282e66); color: var(--text2); font: 600 15px var(--display); box-shadow: 0 3px 0 var(--edge);
  transition: transform .2s var(--pop), filter .15s;
}
.tk-st:hover { transform: translateY(-2px); color: #fff; }
.tk-st.on.todo { color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-d)); }
.tk-st.on.doing { color: #04302b; background: linear-gradient(180deg, var(--teal), var(--teal-d)); }
.tk-st.on.done { color: #06290f; background: linear-gradient(180deg, var(--green), var(--green-d)); }
.tk-saved { font: 700 12px var(--font); color: var(--text3); min-width: 70px; text-align: right; transition: color .2s; }
.tk-saved.ok { color: var(--green); }
.tk-saved.busy { color: var(--gold); }
.tk-saved.err { color: var(--red); }
.tk-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; overflow: auto; min-height: 0; }
.tk-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tk-title {
  width: 100%; border: 0; border-bottom: 3px dashed transparent; background: transparent; color: #fff; padding: 2px 0 6px;
  font: 700 26px var(--display); outline: 0; transition: border-color .15s;
}
.tk-title:hover { border-bottom-color: #343a7a; }
.tk-title:focus { border-bottom-color: var(--violet); }
.tk-title::placeholder { color: #5f66a8; }
.tk-desc { resize: vertical; min-height: 64px; }
.tk-sec { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; border: 2px solid var(--edge); background: rgba(4, 7, 6, .32); }
.tk-sec + .tk-sec { margin-top: 12px; }
.tk-sec-h { display: flex; align-items: center; gap: 8px; color: var(--text); font: 600 16px var(--display); }
.tk-count { font: 700 13px var(--font); color: var(--text2); }
.tk-bar { position: relative; height: 14px; border-radius: 99px; background: var(--well); border: 2px solid var(--edge); overflow: hidden; }
.tk-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width .45s var(--pop); }
.tk-bar.full i { background: linear-gradient(90deg, var(--gold), var(--green)); }
.tk-checks { display: flex; flex-direction: column; gap: 4px; }
.tk-check { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; transition: background .15s; }
.tk-check:hover { background: rgba(255, 255, 255, .05); }
.tk-box {
  flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: #06290f;
  border: 2px solid #5a62a8; background: var(--well); transition: transform .25s var(--pop);
}
.tk-box:hover { border-color: var(--green); transform: scale(1.1); }
.tk-check.done .tk-box { border-color: var(--edge); background: linear-gradient(180deg, var(--green), var(--green-d)); animation: tkTick .35s var(--pop); }
@keyframes tkTick { 0% { transform: scale(.6); } 100% { transform: none; } }
.tk-check-t { flex: 1; font: 700 14px var(--font); word-break: break-word; }
.tk-check.done .tk-check-t { color: var(--text3); text-decoration: line-through; }
.tk-check-by { width: 20px; height: 20px; border-radius: 50%; }
.tk-x { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--text3); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.tk-check:hover .tk-x, .tk-file:hover .tk-x, .tk-com:hover .tk-x { opacity: 1; }
.tk-x:hover { background: var(--red-d); color: #fff; }
.tk-add { height: 38px; }
.tk-files { display: flex; flex-direction: column; gap: 6px; }
.tk-file { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.tk-file a { flex: 1; min-width: 0; color: var(--acc-text); font: 700 14px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.tk-file a:hover { text-decoration: underline; }
.tk-file-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--win3); color: var(--text); flex: none; }
.tk-thumb { width: 44px; height: 32px; object-fit: cover; border-radius: 8px; border: 2px solid var(--edge); flex: none; }
.tk-none { color: var(--text3); font: 600 13px var(--font); padding: 4px 2px; }
.tk-comments { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow: auto; }
.tk-com { display: flex; gap: 10px; align-items: flex-start; }
.tk-com img { width: 30px; height: 30px; border-radius: 50%; background: #0a0e0c; flex: none; }
.tk-com-b { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--win2); border: 2px solid var(--edge); }
.tk-com-h { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.tk-com-h b { font: 600 14px var(--display); }
.tk-com-h span { color: var(--text3); }
.tk-com-t { font: 600 14px/1.4 var(--font); white-space: pre-wrap; word-break: break-word; }
.tk-cin { resize: none; min-height: 42px; }
.tk-legacy { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255, 209, 102, .1); color: var(--gold); font-size: 13px; }

.tk-side { display: flex; flex-direction: column; gap: 16px; padding: 14px; border-radius: 20px; background: rgba(4, 7, 6, .32); border: 2px solid var(--edge); align-self: start; }
.tk-field { display: flex; flex-direction: column; gap: 8px; }
.tk-field > label { font: 600 13px var(--display); color: var(--gold); }
.tk-people { display: flex; flex-direction: column; gap: 6px; }
.tk-person {
  position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 4px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 2px solid var(--edge); background: var(--well); color: var(--text2); font: 600 14px var(--display); transition: transform .2s var(--pop), background .15s;
}
.tk-person img { width: 32px; height: 32px; border-radius: 50%; background: #1a1e44; border: 2px solid transparent; }
.tk-person:hover { transform: translateX(3px); color: #fff; }
.tk-person.on { color: #fff; background: color-mix(in srgb, var(--c) 30%, #1d2150); box-shadow: 0 3px 0 var(--edge); }
.tk-person.on img { border-color: var(--c); }
.tk-person i { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #06290f; background: var(--green); border: 2px solid var(--edge); animation: tkTick .3s var(--pop); }
.tk-due-label { font: 700 15px var(--display); color: #fff; }
.tk-quick, .tk-rec { display: flex; gap: 5px; flex-wrap: wrap; }
.tk-chip {
  height: 30px; padding: 0 11px; border-radius: 99px; cursor: pointer; border: 2px solid var(--edge); background: linear-gradient(180deg, #313872, #282e66);
  color: var(--text2); font: 600 13px var(--display); box-shadow: 0 2px 0 var(--edge); transition: transform .2s var(--pop);
}
.tk-chip:hover { color: #fff; transform: translateY(-1px); }
.tk-chip.on { color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-d)); }
.tk-dt { display: flex; gap: 6px; }
.tk-date { flex: 1; min-width: 0; }
.tk-time { width: 116px; }
.tk-prio { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tk-pr {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; border-radius: 11px; cursor: pointer;
  border: 2px solid var(--edge); background: var(--well); color: var(--c); font: 600 13px var(--display); transition: transform .2s var(--pop);
}
.tk-pr:hover { transform: translateY(-1px); }
.tk-pr.on { background: var(--c); color: #080a09; box-shadow: 0 3px 0 var(--edge); }
.tk-days { display: flex; gap: 4px; flex-wrap: wrap; }
.tk-day { width: 36px; height: 30px; border-radius: 9px; border: 2px solid var(--edge); background: var(--well); color: var(--text2); font: 700 12px var(--font); cursor: pointer; }
.tk-day.on { background: var(--teal); color: #04302b; }
.tk-side-end { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 2px dashed #24302b; }
.tk-meta { font-size: 12px; color: var(--text3); }
.tk-del { align-self: flex-start; color: var(--red) !important; }
.tk-del:hover { background: rgba(255, 122, 122, .14) !important; }
.tk-foot { align-items: center; }
.tk-foot .err { margin-right: auto; }

/* faísca da checklist completa */
.tk-spark { position: fixed; z-index: 200; pointer-events: none; width: 0; height: 0; }
.tk-spark i { position: absolute; width: 7px; height: 7px; border-radius: 2px; animation: tkSpark .8s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes tkSpark { from { transform: rotate(var(--a)) translateX(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateX(var(--d)) scale(.3); opacity: 0; } }

/* =====================================================================
   Cartão de entrada ("o que vence hoje")
   ===================================================================== */
.today-card {
  position: fixed; left: 50%; top: 84px; z-index: 30; width: 380px; transform: translateX(-50%); padding: 14px; display: flex; flex-direction: column; gap: 8px;
  border-radius: 22px; border: 3px solid var(--edge); box-shadow: 0 6px 0 var(--edge), 0 20px 40px rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, #2c2f72, #1f2357); animation: tcIn .5s var(--pop) both;
}
.today-card.out { animation: tcOut .3s ease-in forwards; }
@keyframes tcIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes tcOut { to { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.95); } }
.today-card-h { display: flex; align-items: center; gap: 10px; font: 600 17px var(--display); color: #fff; }
.today-card-h b { flex: 1; }
.today-card-i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #3b2200; background: linear-gradient(180deg, var(--gold), var(--gold2)); border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--edge); transform: rotate(-6deg); }
.today-card-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--edge); background: rgba(4, 7, 6, .4); color: var(--text); cursor: pointer; text-align: left; transition: transform .2s var(--pop); }
.today-card-row:hover { transform: translateX(3px); }
.today-card-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.today-card-row.late .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.today-card-row .t { flex: 1; min-width: 0; font: 600 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-card-row .w { font: 700 12px var(--font); color: var(--gold); }
.today-card-row.late .w { color: var(--red); }
.today-card-more { font-size: 12px; color: var(--text3); padding-left: 4px; }
.today-card .btn { margin-top: 4px; }
