/* =============================================================
   FLOWLY — TODAY VIEW
   Migrado de styles.css (linhas 7380–8316).
   Depende de: _tokens.css, _components.css
   ============================================================= */

/* ---- CONTAINER ----
   960px (não 1160): as tarefas são o foco da tela — container mais estreito,
   lista dominante, dados como nota de margem (decisão do Kaleb, 2026-07-08). */
#weekGrid.today-container,
#todayView.today-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- ZOOM LEVELS (Normal · Grande · Foco) ----
   IMPORTANTE: o zoom afeta SÓ a lista de to-dos — o cabeçalho ("Hoje", data,
   botões) e o hero/stats ficam em tamanho FIXO. Por isso não usamos mais `zoom`
   no container (que escalava a tela toda); escalamos só a fonte e o espaçamento
   dos .task-item. Decisão do Kaleb (2026-07-01): máximo foco, header estável. */

/* ── COMO O ZOOM ESCALA (em-based) ───────────────────────────────────────
   Em vez de escalar cada elemento em px (frágil: sobra sempre um metadado,
   checkbox ou chevron pra fora), setamos o `font-size` no PRÓPRIO .task-item.
   Ele vira a "unidade base": tudo dentro (label, horário, tags, checkbox, ✓,
   chevron, gaps) é medido em `em` e cresce PROPORCIONALMENTE junto.
   Regra: mexeu no zoom → mexe só no font-size do item; o resto acompanha. */

/* Subtarefas (depth>0) nascem 1px menores por nível (hierarquia sutil no NORMAL).
   Via data-depth em vez de font-size inline em px — assim, no zoom, a regra do
   .task-item (com id, mais específica) VENCE e a subtarefa escala junto com o topo
   em vez de ficar presa em 15px. (antes era inline no JS e o zoom não vencia.) */
.today-task-list--dashboard .task-item[data-depth="1"] { font-size: calc(15px * var(--flowly-text-k)); }
.today-task-list--dashboard .task-item[data-depth="2"] { font-size: calc(14px * var(--flowly-text-k)); }

/* Base comum aos níveis ampliados: label herda o em do item, metadados/ícones
   passam a medir em em (antes eram px fixos e ficavam anões ao lado do texto). */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-label,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-label,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-label,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-label {
  font-size: 1em;
  gap: 0.4em;
}
/* Horário de conclusão (· 12:02) — era 11px fixo */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-time,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-time,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-time,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-time {
  font-size: 0.6em;
  min-width: 0;
}
/* Tags/metadados (Salmos 25, "em Projeto", cronômetro) herdam o em do label */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-daily-word,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-daily-word,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-daily-word,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-daily-word,
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-project-meta,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-project-meta,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-project-meta,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-project-meta,
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-timer-meta,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item .task-timer-meta,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-timer-meta,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item .task-timer-meta {
  font-size: 0.62em;
}
/* Nome + meta do PROJETO (project-header) — não usam .task-label, então tinham
   font-size próprio (15px/11.5px) e ficavam anões no zoom. Escalam via em como o resto. */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-project-header-name,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-project-header-name,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-project-header-name,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-project-header-name {
  font-size: 1em;
}
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-project-header-meta,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-project-header-meta,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-project-header-meta,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-project-header-meta {
  font-size: 0.72em;
}
/* Checkbox: quadrado, ✓ e borda escalam via em */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .checkbox-custom,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .checkbox-custom,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .checkbox-custom,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .checkbox-custom,
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-group-icon,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-group-icon,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-group-icon,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-group-icon {
  width: 0.78em;
  height: 0.78em;
  border-width: max(1.5px, 0.09em);
}
#todayView[data-today-zoom="large"] .today-task-list--dashboard .checkbox-custom:checked::after,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .checkbox-custom:checked::after,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .checkbox-custom:checked::after,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .checkbox-custom:checked::after {
  width: 0.2em;
  height: 0.4em;
  border-width: 0 max(1.5px, 0.09em) max(1.5px, 0.09em) 0;
  margin-top: 0.1em;
}
/* Chevron ▶/▾ do grupo + contador de filhos + botão de cronômetro escalam junto.
   O container do timer (20px fixo) também vira em pra não ficar minúsculo no zoom. */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-collapse-btn,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-collapse-btn,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-collapse-btn,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-collapse-btn {
  font-size: 0.6em;
}
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item-timer-btn,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item-timer-btn,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item-timer-btn,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item-timer-btn {
  width: 1.0em;
  height: 1.0em;
}
/* lucide troca <i> por <svg> após hidratar — o seletor precisa cobrir os dois, senão o
   ícone do cronômetro/chevron não escalava (só o <i> pré-hidratação casava).
   specificity: id(#todayView) + classe + pseudo → alta o bastante pra vencer
   sem !important. */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-collapse-btn i,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-collapse-btn i,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-collapse-btn i,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-collapse-btn i,
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-collapse-btn svg,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-collapse-btn svg,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-collapse-btn svg,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-collapse-btn svg,
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item-timer-btn i,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item-timer-btn i,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item-timer-btn i,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item-timer-btn i,
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item-timer-btn svg,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item-timer-btn svg,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item-timer-btn svg,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item-timer-btn svg {
  width: 0.92em;
  height: 0.92em;
}

/* ── GRANDE (16px → 22px) ─ font-size no ITEM = unidade base do em ────────── */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item {
  font-size: calc(22px * var(--flowly-text-k));
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 0.7em;
}

/* ── FOCO (16px → 30px) — imersivo: tarefa grande + linhas densas ────────── */
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item {
  font-size: calc(30px * var(--flowly-text-k));
  border-bottom: 1px solid var(--flowly-border-subtle, rgba(255, 255, 255, 0.05));
  border-radius: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 0.7em;
}
#todayView[data-today-zoom="xlarge"] .today-task-list,
#weekGrid[data-today-zoom="xlarge"] .today-task-list {
  gap: 0;
}

/* Hover não pode reverter o padding aumentado de cada nível. */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item:hover,
#weekGrid[data-today-zoom="large"] .today-task-list--dashboard .task-item:hover {
  padding-top: 14px;
  padding-bottom: 14px;
}
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item:hover,
#weekGrid[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item:hover {
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: 0;
  background: var(--flowly-bg-glass-strong, rgba(255, 255, 255, 0.04));
}

#weekGrid.today-container > .today-hero,
#todayView.today-container > .today-hero {
  margin-top: 18px;
}

#weekGrid.today-container > .today-workspace,
#todayView.today-container > .today-workspace,
#weekGrid.today-container > .today-task-panel,
#todayView.today-container > .today-task-panel {
  margin-top: 28px;
}

/* Modo "Só a lista": mesma largura da coluna esquerda do modo dados (100% − 220px de
   coluna − 20px de gap), mas CENTRALIZADA no container (pedido do Kaleb, 2026-09-24 —
   antes ficava presa à esquerda pra não se mover ao alternar, decisão de 2026-07-08). */

/* ---- WORKSPACE (task panel + sidebar) ---- */
.today-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: start;
}

.today-task-panel { min-width: 0; padding-right: 0; }
.today-task-panel--focus { width: calc(100% - 240px); margin: 0 auto; }

/* ---- TASK LIST WRAP ---- */
.today-task-list-wrap        { min-height: 0; cursor: text; padding-top: 0; }
.today-task-list-wrap--focus { min-height: 0; }

/* ---- TASK LIST — dashboard variant ---- */
.today-task-list--dashboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  max-width: none;
}

#todayView .today-task-list--dashboard .task-item,
#weekGrid .today-task-list--dashboard .task-item {
  width: 100%;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: calc(9px + var(--flowly-density-pad)) 10px calc(9px + var(--flowly-density-pad)) 8px;
  border: none;
  border-radius: var(--flowly-radius-sm);
  background: transparent;
  box-shadow: none;
  transition: background var(--flowly-duration-fast) var(--flowly-ease-out);
}

#todayView .today-task-list--dashboard .task-item:hover,
#weekGrid .today-task-list--dashboard .task-item:hover {
  margin: 0;
  padding: 9px 10px 9px 8px;
  border: none;
  border-radius: var(--flowly-radius-sm);
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.055));
  transform: none;
  box-shadow: none;
}

/* Linha com painel aberto acompanha o radius da escala (base usa 6px). */
#todayView .today-task-list--dashboard .task-item.is-expanded,
#weekGrid .today-task-list--dashboard .task-item.is-expanded {
  border-radius: var(--flowly-radius-sm) var(--flowly-radius-sm) 0 0;
}

/* Pressão do clique no contexto dashboard — confirma o gesto na hora. */
#todayView .today-task-list--dashboard .task-item:active,
#weekGrid .today-task-list--dashboard .task-item:active {
  background: var(--flowly-bg-glass-strong, rgba(255, 255, 255, 0.09));
  transition: background 60ms ease;
}

.today-task-list--dashboard .task-item .task-label {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  font-size: calc(16px * var(--flowly-text-k));
  line-height: 1.45;
}

.today-task-list--dashboard .task-item .task-content-span {
  order: 1; min-width: 0; flex: 0 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.today-task-list--dashboard .task-item .task-item-timer-btn {
  order: 3;
  margin-left: 0;
}

/* ▷ do cronômetro só no hover/foco da linha — fica fixo só na Próxima e na que está
   rodando (em repouso era um ícone por linha pendente, ruído numa lista longa). */
#todayView .today-task-list--dashboard .task-item .task-item-timer-btn { opacity: 0; }
#todayView .today-task-list--dashboard .task-item:hover .task-item-timer-btn,
#todayView .today-task-list--dashboard .task-item:focus-within .task-item-timer-btn,
#todayView .today-task-list--dashboard .task-item[data-next] .task-item-timer-btn,
#todayView .today-task-list--dashboard .task-item .task-item-timer-btn.is-running,
#todayView .today-task-list--dashboard .task-item.timer-running .task-item-timer-btn { opacity: 0.94; }

/* Hover neutro na Hoje: só o fundo. A barrinha de acento (::after da base) deixa de
   aparecer em qualquer linha e passa a ser a marca FIXA da Próxima — antes as duas
   usavam o mesmo verde e a Próxima era um fio com cantos que virava colchete. */
#todayView .today-task-list--dashboard .task-item:hover::after { height: 0; }
#todayView .today-task-list--dashboard .task-item[data-next]::after { height: 56%; }
#todayView .today-task-list--dashboard .task-item[data-next] { transition: background-color 0.4s ease; }
/* Rodando: o transparent do dashboard anulava o destaque de .timer-running (a linha não
   mudava). Fundo âmbar leve + a mesma barrinha, em âmbar. */
#todayView .today-task-list--dashboard .task-item.timer-running { background: rgb(var(--flowly-accent-warning-rgb) / 0.08); }
#todayView .today-task-list--dashboard .task-item.timer-running::after { height: 56%; background: var(--flowly-accent-warning); }
#todayView .today-task-list--dashboard .task-item.is-next-flash {
  background: rgb(var(--flowly-accent-primary-rgb) / 0.12);
}

#todayView .today-task-list--dashboard .task-item .task-time,
#weekGrid .today-task-list--dashboard .task-item .task-time {
  order: 5; margin-left: 0; min-width: 58px;
  padding-left: 0; flex: 0 0 auto;
  color: var(--flowly-text-tertiary); font-size: calc(11px * var(--flowly-text-k)); font-weight: 600;
  text-align: left; white-space: nowrap;
}

.today-task-list--dashboard .task-item .task-project-meta {
  order: 2; flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.today-task-list--dashboard .task-item .task-daily-word {
  order: 2; flex: 0 0 auto;
}

/* Tempo cronometrado (· 10:30) — sem isto herdava os 16px do label e gritava
   ao lado dos outros metadados de 11px. */
.today-task-list--dashboard .task-item .task-timer-meta {
  order: 4;
  flex: 0 0 auto;
  font-size: calc(11px * var(--flowly-text-k));
  font-weight: 600;
  color: var(--flowly-text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.today-task-list--dashboard .task-item .checkbox-custom  { margin-top: 0; }

.today-task-list--dashboard + .task-expansion,
.today-task-list--dashboard .task-expansion {
  width: min(560px, calc(100% - 42px));
  margin-left: 30px;
}

#todayView .today-task-list--dashboard .task-item--project-anchor,
#todayView .today-task-list--dashboard .task-item--project-mirror,
#weekGrid .today-task-list--dashboard .task-item--project-anchor,
#weekGrid .today-task-list--dashboard .task-item--project-mirror {
  padding: 10px 12px;
  border-radius: calc(16px * var(--flowly-radius-k));
  border: 1px solid var(--flowly-border-subtle, rgba(255,255,255,0.05));
  background: var(--flowly-bg-glass, rgba(255,255,255,0.018));
}

#todayView .today-task-list--dashboard .task-item--project-mirror,
#weekGrid .today-task-list--dashboard .task-item--project-mirror {
  border-color: var(--flowly-border-subtle, rgba(255,255,255,0.06));
  background: var(--flowly-bg-glass, rgba(255,255,255,0.022));
}

/* A variante --focus não estiliza mais nada: as linhas são IDÊNTICAS nos dois
   modos (mesma fonte, mesmo padding). Tamanho de texto é papel do zoom. */

/* ---- TREINO DO DIA (linha marcável + exercícios) ----
   Encaixa igual às outras linhas — distingue-se só pela cor azul + emoji,
   sem negrito nem tamanho diferente (senão "salta" e quebra o alinhamento). */
/* O .task-label do dashboard é flex com gap:12px (pra separar texto/horário/tags).
   No treino só há o texto — o flex+gap empurrava o span ~24px pra direita e
   desalinhava. Aqui voltamos a texto simples pra o emoji+nome colarem à esquerda. */
.today-task-list--dashboard .task-item.is-workout .task-label {
  display: block;
  gap: 0;
}
.today-task-list--dashboard .task-item.is-workout .task-content-span {
  order: 0;
}
.task-workout-exercises {
  margin: 2px 0 8px 30px;
  padding: 8px 12px;
  border: 1px solid rgb(var(--flowly-accent-info-rgb) / 0.16);
  background: rgb(var(--flowly-accent-info-rgb) / 0.05);
  border-radius: var(--flowly-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wk-ex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: calc(13px * var(--flowly-text-k));
}
.wk-ex-name { color: var(--flowly-text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ex-meta { color: var(--flowly-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; }

/* ---- END DROPZONE ----
   Estado padrão: invisível, aparece como uma linha tracejada + "+ nova tarefa"
   no centro quando o usuário passa o mouse em cima da lista.
   Quando o dia está VAZIO (sem tarefas), ganha estado "quente": visível sempre,
   borda mais viva, ícone +. Reforça o convite a começar. */
.today-end-dropzone {
  position: relative;
  height: 18px; min-height: 18px;
  margin-top: 4px;
  border: none; border-radius: 0; background: transparent;
  opacity: 1; pointer-events: auto; cursor: text;
  transition: opacity var(--flowly-duration-fast) var(--flowly-ease-out, ease),
              height var(--flowly-duration-fast) var(--flowly-ease-out, ease),
              margin var(--flowly-duration-fast) var(--flowly-ease-out, ease),
              background var(--flowly-duration-fast) var(--flowly-ease-out, ease);
}

.today-end-dropzone::before {
  content: '';
  position: absolute; left: 6px; right: 6px; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent 100%);
  transform: translateY(-50%);
  /* Fio e chip só no hover (pedido do Kaleb, 2026-09-24): em repouso o fim da lista é limpo. */
  opacity: 0;
  transition: background var(--flowly-duration-fast), opacity var(--flowly-duration-fast);
}

.today-end-dropzone::after {
  content: '+  nova tarefa';
  position: absolute;
  left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--flowly-border, rgba(255, 255, 255, 0.08));
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.02));
  color: var(--flowly-text-tertiary);
  font-size: calc(11px * var(--flowly-text-k));
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%) scale(0.95);
  /* Invisível em repouso (pedido do Kaleb, 2026-09-24 — antes ficava a 30% como dica);
     aparece no hover. Adicionar segue no N, no clique na área vazia e no Cmd+N. */
  opacity: 0;
  transition:
    opacity var(--flowly-duration-fast) var(--flowly-ease-out, ease),
    color var(--flowly-duration-fast) var(--flowly-ease-out, ease),
    background var(--flowly-duration-fast) var(--flowly-ease-out, ease),
    border-color var(--flowly-duration-fast) var(--flowly-ease-out, ease),
    transform var(--flowly-duration-fast) var(--flowly-ease-out, ease);
  white-space: nowrap;
  pointer-events: none;
}

/* Hover: revela o chip com transição suave */
body:not(.dragging-active) .today-end-dropzone:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent 0%, var(--flowly-bg-glass-hover, rgba(255,255,255,0.14)) 30%, var(--flowly-bg-glass-hover, rgba(255,255,255,0.14)) 70%, transparent 100%);
}
body:not(.dragging-active) .today-end-dropzone:hover::after {
  opacity: 1;
  color: var(--flowly-text-primary);
  border-color: var(--flowly-border-strong, rgba(255, 255, 255, 0.16));
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.04));
  transform: translate(-50%, -50%) scale(1);
}

/* Estado "quente" — quando o dia está vazio, o dropzone fica sempre visível,
   com cor mais viva e um leve glow que convida a adicionar a primeira tarefa.
   A classe é colocada pelo JS quando visibleTasks.length === 0 (ver today.js). */
.today-end-dropzone.is-hot {
  height: 56px; min-height: 56px;
  margin-top: 8px;
  border: 1px dashed rgba(255, 138, 101, 0.28);
  border-radius: calc(12px * var(--flowly-radius-k));
  background: linear-gradient(
    135deg,
    rgba(255, 138, 101, 0.06),
    rgba(255, 196, 100, 0.04)
  );
}
.today-end-dropzone.is-hot::before {
  opacity: 0; /* some a linha, porque o card vazio já toma conta do espaço */
}
.today-end-dropzone.is-hot::after {
  opacity: 1;
  color: rgba(255, 196, 100, 0.95);
  border-color: rgba(255, 138, 101, 0.32);
  background: rgba(255, 138, 101, 0.08);
  font-weight: 600;
  transform: translate(-50%, -50%) scale(1);
}

body.dragging-active .today-end-dropzone {
  height: 20px;
  min-height: 16px;
}
body.dragging-active .today-end-dropzone::after { opacity: 0 !important; }

/* Arrastando: o fim da lista só mostra a linha quando o ponteiro está nele (.show) —
   o mesmo indicador de destaque das linhas, sem o fio azul fixo que brigava com ele.
   Recuo (vira subtarefa) desloca a linha pra direita, animado. */
body.dragging-active .today-end-dropzone::before {
  opacity: 0;
  height: 2px;
  left: 0; right: 0;
  border-radius: calc(2px * var(--flowly-radius-k));
  background: var(--flowly-accent-primary);
  transition: opacity var(--flowly-duration-fast) var(--flowly-ease-out, ease),
              left var(--flowly-duration-fast) var(--flowly-ease-out, ease);
}
body.dragging-active .today-end-dropzone.show::before { opacity: 1; }
body.dragging-active .today-end-dropzone.is-indent::before { left: 28px; }
#todayView .today-end-dropzone.is-indent,
#todayView .today-end-dropzone.is-outdent {
  margin-left: 0; padding-left: 0; border-left: 0;
}

/* ---- EMPTY STATE ---- */
.today-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 24px 32px;
  cursor: text;
  border-radius: var(--flowly-radius-md);
  transition: background-color var(--flowly-duration-fast) var(--flowly-ease-out);
}

.today-empty:hover { background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.018)); }

.today-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.5;
  transition: opacity var(--flowly-duration-fast) var(--flowly-ease-out);
}
.today-empty:hover .today-empty__icon { opacity: 0.85; }

.today-empty__title {
  font-size: var(--flowly-text-xl);
  font-weight: var(--flowly-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--flowly-text-secondary, rgba(255, 255, 255, 0.58));
  margin: 0;
  transition: color var(--flowly-duration-fast) var(--flowly-ease-out);
}
.today-empty:hover .today-empty__title { color: var(--flowly-text-secondary, rgba(255, 255, 255, 0.58)); }

.today-empty__hint {
  font-size: var(--flowly-text-sm);
  font-weight: var(--flowly-weight-medium);
  color: var(--flowly-text-secondary, rgba(255, 255, 255, 0.58));
  margin: 2px 0 0;
  transition: color var(--flowly-duration-fast) var(--flowly-ease-out);
}
.today-empty:hover .today-empty__hint { color: var(--flowly-accent-primary); }

.today-empty__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  margin-top: 12px;
  padding: 3px 8px;
  font-size: calc(11px * var(--flowly-text-k));
  font-family: var(--flowly-font-mono, ui-monospace, monospace);
  font-weight: 700;
  color: var(--flowly-text-secondary, rgba(255, 255, 255, 0.42));
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--flowly-border, rgba(255, 255, 255, 0.1));
  border-radius: calc(5px * var(--flowly-radius-k));
  letter-spacing: 0.04em;
  align-self: center;
}
.today-empty:hover .today-empty__kbd {
  color: var(--flowly-accent-primary);
  border-color: rgb(var(--flowly-accent-primary-rgb) / 0.32);
  background: rgb(var(--flowly-accent-primary-rgb) / 0.06);
}

/* ============ HERO (Hoje) — UMA linha, sem card ============
   O herói não repete mais o título da tarefa (ela está logo abaixo, na lista,
   que é o foco da tela): é uma frase de contexto com o nome embutido + o botão
   de começar, e o fio de progresso separando do conteúdo. */
.today-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 2px 0;
}

.today-hero__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.today-hero__line.today-next-action--empty { cursor: pointer; }

.today-hero__smart {
  margin: 0;
  min-width: 0;
  font-size: var(--flowly-text-sm);
  line-height: 1.5;
  color: var(--flowly-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.today-hero__smart strong {
  font-weight: var(--flowly-weight-semibold);
  color: var(--flowly-text-primary);
}

/* Wrap do smart line + type badge: mantém ambos na mesma linha, com gap
   consistente entre a frase e o badge. O smart line trunca antes do badge. */
.today-hero__smart-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.today-hero__smart-wrap .today-hero__smart { min-width: 0; flex: 1; }

/* Botão do hero segue o sistema padrão flowly-btn — só ajusta o ícone. */
.today-hero__line .flowly-btn { flex-shrink: 0; }
.today-hero__line .flowly-btn i { width: 15px; height: 15px; }

/* progresso = um fio: separa o herói do conteúdo e informa ao mesmo tempo */
.today-hero__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.today-hero__count {
  flex-shrink: 0;
  font-size: calc(12px * var(--flowly-text-k));
  font-weight: 600;
  color: var(--flowly-text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* Streak badge — chama atenção pro combo, fica à direita do count. */
.today-hero__streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 138, 101, 0.18), rgba(255, 196, 100, 0.12));
  border: 1px solid rgba(255, 138, 101, 0.32);
  color: rgba(255, 196, 100, 0.95);
  font-size: calc(11px * var(--flowly-text-k));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  /* Pulse removido — sombra estava piscando a cada 2.6s. Estático fica mais limpo. */
}
.today-hero__streak i { color: #ff8a65; stroke-width: 2.5; }

/* ---- NAVEGAÇÃO DE DIAS (centro do header) ----
   ‹ › andam 1 dia; o rótulo abre o date picker nativo (input escondido).
   Fica na mesma linha do título e dos ícones, centralizada no espaço entre os dois. */
.flowly-page-header--today {
  align-items: center;
  flex-wrap: nowrap;
}
.flowly-page-header--today .flowly-page-header__title { flex: 0 0 auto; }
.today-datenav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 4px;
  position: relative;
}
.today-datenav__btn {
  border: none;
  background: transparent;
  padding: 0 6px;
  font-size: calc(16px * var(--flowly-text-k));
  line-height: 1;
  color: var(--flowly-text-tertiary);
  cursor: pointer;
  border-radius: var(--flowly-radius-sm, 8px);
  transition: color var(--flowly-duration-fast) var(--flowly-ease-out), background var(--flowly-duration-fast) var(--flowly-ease-out);
}
.today-datenav__btn:hover:not(:disabled) {
  color: var(--flowly-text-primary);
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.06));
}
.today-datenav__btn:disabled { opacity: 0.3; cursor: default; }
.today-datenav__label {
  border: none;
  background: transparent;
  padding: 2px 4px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--flowly-radius-sm, 8px);
  transition: background var(--flowly-duration-fast) var(--flowly-ease-out);
}
.today-datenav__label:hover { background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.06)); }
.today-datenav__today {
  margin-left: 4px;
  padding: 2px 10px;
  border: 1px solid rgb(var(--flowly-accent-info-rgb) / 0.3);
  border-radius: 999px;
  background: rgb(var(--flowly-accent-info-rgb) / 0.08);
  color: var(--flowly-accent-info);
  font-size: calc(11px * var(--flowly-text-k));
  font-weight: 600;
  cursor: pointer;
  transition: background var(--flowly-duration-fast) var(--flowly-ease-out);
}
.today-datenav__today:hover { background: rgb(var(--flowly-accent-info-rgb) / 0.16); }
/* input de data invisível mas presente: âncora do showPicker() */
.today-datenav__input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- REVISÃO DE DIA PASSADO ---- */
.today-hero--past .today-hero__smart,
.today-hero--future .today-hero__smart { color: var(--flowly-text-tertiary); }
.today-workspace--full { grid-template-columns: minmax(0, 1fr); }

/* ---- DADOS (coluna direita: Estado · Caixa · Ritmo) ----
   Três seções visuais distintas, separadas por um fio sutil:
   1. Estado do dia (anel + legenda)
   2. Caixa (tarefas pendentes + total a receber)
   3. Ritmo (tempo desde última conclusão + Venvanse)
   Denso, quieto, sem texto motivacional — só números e ícones. */
.today-data {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

/* === SEÇÃO 1: ESTADO DO DIA (anel + legenda integrada) === */
.today-data__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.today-data__ring {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      var(--flowly-accent-info) 0deg var(--ring-task-deg, 0deg),
      rgb(124 120 137 / 0.18) var(--ring-task-deg, 0deg) 360deg
    );
  display: grid;
  place-items: center;
}
.today-data__ring::before {
  /* Anel vazado: 7px de "ring wall", sobra 90px de disco interno */
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--flowly-bg-body);
}
.today-data__ring-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.today-data__ring-pct {
  font-size: calc(26px * var(--flowly-text-k));
  font-weight: 700;
  color: var(--flowly-text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.025em;
}
.today-data__ring-pct-suffix {
  font-size: calc(12px * var(--flowly-text-k));
  font-weight: 500;
  color: var(--flowly-text-tertiary);
  margin-left: 1px;
}
.today-data__ring-caption {
  font-size: calc(10px * var(--flowly-text-k));
  font-weight: 600;
  color: var(--flowly-text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Estado vazio (anel a 0%): vira "CTA visual" — pista tracejada,
   pulse suave no track, e ícone play no topo convidando a começar. */
.today-data__ring.is-empty {
  background:
    conic-gradient(
      from -90deg,
      transparent 0deg 360deg
    );
  outline: 6px dashed var(--flowly-border-muted, rgb(124 120 137 / 0.32));
  outline-offset: -6px;
  animation: ring-empty-pulse 2.4s var(--flowly-ease-in-out, ease) infinite;
}
/* Play no 12 o'clock — convite pra começar. Círculo accent (container) com o
   ícone `play` da lucide dentro (nunca um triângulo desenhado em CSS). */
.today-data__ring-play {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--flowly-accent-primary);
  box-shadow: 0 4px 12px rgb(var(--flowly-accent-primary-rgb) / 0.32),
              0 0 0 4px var(--flowly-bg-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.today-data__ring-play i,
.today-data__ring-play svg {
  width: 11px;
  height: 11px;
  color: var(--flowly-bg-body);
  fill: var(--flowly-bg-body);
  stroke: var(--flowly-bg-body);
  margin-left: 1px; /* correção óptica: play sólido pende p/ a esquerda */
}
.today-data__ring.is-empty .today-data__ring-caption {
  color: var(--flowly-accent-primary);
}
@keyframes ring-empty-pulse {
  0%, 100% { outline-color: var(--flowly-border-muted, rgb(124 120 137 / 0.32)); }
  50%      { outline-color: var(--flowly-border-strong, rgb(124 120 137 / 0.55)); }
}

/* Legenda: 2 linhas, label à esquerda, valor à direita — alinha com o anel */

/* === SEÇÕES (Caixa · Ritmo · Quiet) — cabeçalho comum === */
.today-data__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--flowly-border-subtle, rgba(255, 255, 255, 0.05));
  padding-top: 14px;
}
.today-data__section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.today-data__section-icon {
  width: 12px;
  height: 12px;
  color: var(--flowly-text-tertiary);
  flex-shrink: 0;
}
.today-data__section-title {
  font-size: calc(11px * var(--flowly-text-k));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flowly-text-secondary);
  flex: 1;
  min-width: 0;
}
.today-data__section-amount {
  font-size: calc(13px * var(--flowly-text-k));
  font-weight: 700;
  color: var(--flowly-accent-success);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

/* === SEÇÃO 2: CAIXA (lista $) === */
.today-data__money-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.today-data__money-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: calc(12.5px * var(--flowly-text-k));
  color: var(--flowly-text-primary);
  line-height: 1.35;
  min-width: 0;
}
.today-data__money-bullet {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--flowly-accent-success);
  flex-shrink: 0;
}
.today-data__money-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.today-data__money-more {
  font-size: calc(10.5px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary);
  padding-left: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.today-data__hint {
  margin: 0;
  font-size: calc(12px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary);
  font-style: italic;
  line-height: 1.5;
}

/* === SEÇÃO 3: RITMO (Venvanse + idle) === */
.today-data__rhythm-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-data__rhythm-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.today-data__rhythm-icon {
  width: 18px;
  height: 18px;
  color: var(--flowly-accent-info);
  flex-shrink: 0;
}
.today-data__rhythm-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.today-data__rhythm-label {
  font-size: calc(11px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.today-data__rhythm-value {
  font-size: calc(15px * var(--flowly-text-k));
  color: var(--flowly-text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.today-data__rhythm-side {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--flowly-border, rgba(255, 255, 255, 0.06));
  font-size: calc(11.5px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary);
}
.today-data__rhythm-side-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.today-data__rhythm-side-label {
  flex: 1;
}
.today-data__rhythm-side-value {
  color: var(--flowly-text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* === EMPTY STATE (sem $, sem ritmo) === */
.today-data__section--quiet .today-data__hint {
  text-align: center;
  padding: 4px 0;
}

/* ---- RESPONSIVE ---- */

/* Tablet + small desktop: workspace colapsa para single-col — a lista do modo
   só-tarefas acompanha (100%), mantendo a paridade de largura entre os modos. */
@media (max-width: 1024px) {
  .today-workspace {
    grid-template-columns: 1fr;
  }
  .today-task-panel--focus {
    width: 100%;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  #weekGrid.today-container,
  #todayView.today-container {
    padding: 0 0 32px;
  }

  #weekGrid.today-container > .today-hero,
  #todayView.today-container > .today-hero {
    margin-top: 8px;
  }

  #weekGrid.today-container > .today-workspace,
  #todayView.today-container > .today-workspace,
  #weekGrid.today-container > .today-task-panel,
  #todayView.today-container > .today-task-panel {
    margin-top: 16px;
  }

  .today-workspace { grid-template-columns: 1fr; }

  /* task list */
  .today-task-list--dashboard .task-item .task-label { font-size: 15px; }

}

/* =============================================================
   AGRUPAMENTO POR PERÍODO — section headers contextuais
   Aparece quando groupByPeriod está ON (toggle no header).
   Mantém o sort unificado dentro de cada bloco.
   Hierarquia: ícone (cor contextual) + label uppercase + count à direita
   Quando o bloco está 100% concluído, fica esmaecido com ✓ verde.
   ============================================================= */
.today-period-section {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 10px 6px;
  margin-bottom: 2px;
  /* primeiro bloco não precisa de espaço extra — a lista já começa */
}
.today-period-section:first-child {
  padding-top: 4px;
}

/* Linha guia sutil ligando o label ao count — sem border-bottom no header pra
   não duplicar com o padding. Vai de 8% (depois do label) até o count. */
.today-period-section__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--flowly-border, rgba(255, 255, 255, 0.06)),
    var(--flowly-border-subtle, rgba(255, 255, 255, 0.03)) 70%,
    transparent
  );
  align-self: center;
}

/* Ícone contextual do período — sol (manhã), entardecer (tarde), lua (noite).
   Cor do ícone vem de --period-color (setado inline por JS, por período).
   Tamanho em em pra escalar com o zoom igual ao resto da lista. */
.today-period-section__icon {
  width: 17px;
  height: 17px;
  color: var(--period-color, var(--flowly-text-tertiary));
  flex-shrink: 0;
  opacity: 0.95;
  transition: color var(--flowly-duration-fast) var(--flowly-ease-out, ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.today-period-section__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.25;
}

.today-period-section__label {
  font-size: calc(11px * var(--flowly-text-k));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flowly-text-secondary);
  transition: color var(--flowly-duration-fast) var(--flowly-ease-out, ease);
}

.today-period-section__count {
  font-size: calc(11px * var(--flowly-text-k));
  font-weight: 600;
  color: var(--flowly-text-tertiary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  transition: color var(--flowly-duration-fast) var(--flowly-ease-out, ease);
}
.today-period-section__count.is-all-done {
  color: rgba(48, 209, 88, 0.85);
}

/* Estado "tudo feito": ícone + label esmaecem pra verde, indicando
   conclusão sem precisar de checkbox visual — o ✓ aparece no count. */
.today-period-section.is-all-done .today-period-section__icon {
  color: rgba(48, 209, 88, 0.65);
  opacity: 0.85;
}
.today-period-section.is-all-done .today-period-section__label {
  color: var(--flowly-text-tertiary);
  opacity: 0.85;
}


/* ---- "N feitas" — concluídas/puladas recolhidas no fim da lista (pendentes primeiro) ----
   "N atrasadas" (topo da lista) usa o MESMO desenho, com classes próprias. */
.today-done {
  margin-top: 10px;
}
.today-overdue { margin: 0 0 6px; }
.today-done__toggle,
.today-overdue__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* Ícone na coluna dos checkboxes (padding 8 + alça + gap da linha = 38px). */
  margin-left: 29px;
  padding: 5px 10px 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--flowly-text-tertiary);
  font-size: calc(12px * var(--flowly-text-k));
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color var(--flowly-duration-fast), background var(--flowly-duration-fast);
}
.today-done__toggle:hover,
.today-done__toggle:focus-visible,
.today-overdue__toggle:hover,
.today-overdue__toggle:focus-visible {
  color: var(--flowly-text-secondary);
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.04));
}
.today-done__icon { width: 14px; height: 14px; color: var(--flowly-accent-success, #30d158); opacity: 0.8; }
.today-done__chevron { width: 13px; height: 13px; transition: transform var(--flowly-duration-base) var(--flowly-ease-out, ease); }
/* Pelo aria-expanded (muda no clique): .is-expanded só sai no fim da animação de fechar. */
.today-done__toggle[aria-expanded="true"] .today-done__chevron,
.today-overdue__toggle[aria-expanded="true"] .today-done__chevron { transform: rotate(180deg); }
.today-done__list,
.today-overdue__list { display: none; margin-top: 4px; }
.today-done.is-expanded .today-done__list,
.today-overdue.is-expanded .today-overdue__list { display: block; }

.today-overdue__icon { width: 14px; height: 14px; color: var(--flowly-accent-warning, #ff9f0a); opacity: 0.8; }
/* Itens: texto + data, ações Hoje/Amanhã discretas (aparecem na linha em hover/foco). */
.today-overdue__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 38px;
  border-radius: var(--flowly-radius-sm, 6px);
  font-size: calc(14px * var(--flowly-text-k));
}
.today-overdue__item:hover { background: var(--flowly-bg-glass, rgb(255 255 255 / 0.05)); }
.today-overdue__text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--flowly-text-secondary); }
.today-overdue__date { flex: 1 0 auto; font-size: calc(11px * var(--flowly-text-k)); color: var(--flowly-text-tertiary); font-variant-numeric: tabular-nums; }
.today-overdue__move,
.today-overdue__all {
  border: 0;
  background: transparent;
  color: var(--flowly-text-tertiary);
  font: inherit;
  font-size: calc(11.5px * var(--flowly-text-k));
  font-weight: 600;
  padding: 3px 8px;
  border-radius: calc(6px * var(--flowly-radius-k));
  cursor: pointer;
}
.today-overdue__move { opacity: 0; transition: opacity var(--flowly-duration-fast) var(--flowly-ease-out); }
.today-overdue__item:hover .today-overdue__move,
.today-overdue__item:focus-within .today-overdue__move { opacity: 1; }
.today-overdue__move:hover,
.today-overdue__move:focus-visible,
.today-overdue__all:hover,
.today-overdue__all:focus-visible { color: var(--flowly-accent-primary); background: rgb(var(--flowly-accent-primary-rgb) / 0.1); outline: none; }
.today-overdue__all { margin: 2px 0 4px 30px; }

/* ---- Herói "Próxima": um bloco só (rótulo + tarefa + contexto) com o Começar ao lado ----
   A próxima pode estar dentro de um projeto recolhido; o rótulo mostra de onde ela vem. */
.today-hero__line--next {
  align-items: center;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--flowly-border-muted, rgba(255, 255, 255, 0.07));
  border-radius: calc(14px * var(--flowly-radius-k));
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.025));
}
.today-hero__next {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.today-hero__kicker {
  font-size: calc(10.5px * var(--flowly-text-k));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flowly-accent-success, #30d158);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-hero__project {
  color: var(--flowly-text-tertiary);
  letter-spacing: 0.04em;
}
.today-hero__title {
  margin: 0;
  font-size: calc(17px * var(--flowly-text-k));
  font-weight: var(--flowly-weight-semibold, 600);
  line-height: 1.35;
  color: var(--flowly-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: calc(12px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary);
  min-width: 0;
}
.today-hero__context { white-space: nowrap; }

/* Cronômetro rodando no herói: ponto pulsando + tempo vivo (tick de 1s do app). */
.today-hero__running {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--flowly-accent-warning, #ff9f0a);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.today-hero__running-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: todayHeroPulse 1.6s ease-in-out infinite;
}
@keyframes todayHeroPulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .today-hero__running-dot { animation: none; } }

/* Dia fechado: mesmo bloco da Próxima, com as ações pra amanhã ao lado. */
.today-hero__closed-actions { display: flex; gap: 6px; flex: 0 0 auto; }

#todayView.today-container > .today-workspace,
#todayView.today-container > .today-task-panel {
  margin-top: 20px;
}

/* ---- Menu "Visualização" do header da Hoje ---- */
.today-viewmenu { position: relative; }
.today-viewmenu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--flowly-z-dropdown, 300);
  width: 244px;
  padding: 6px;
  border: 1px solid var(--flowly-border-strong, rgba(255, 255, 255, 0.1));
  border-radius: calc(12px * var(--flowly-radius-k));
  background: linear-gradient(var(--flowly-bg-overlay, rgba(12, 13, 18, 0.96)), var(--flowly-bg-overlay, rgba(12, 13, 18, 0.96))), var(--flowly-bg-body, #08090e);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}
.today-viewmenu__panel[hidden] { display: none; }
.today-viewmenu__panel {
  transform-origin: top right;
  animation: today-menu-in var(--flowly-duration-fast, 150ms) var(--flowly-ease-out, ease);
}
.today-viewmenu__panel.is-instant { animation: none; }
@keyframes today-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.today-viewmenu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 8px;
  border: 0;
  border-radius: calc(8px * var(--flowly-radius-k));
  background: transparent;
  color: var(--flowly-text-secondary);
  font-size: calc(13px * var(--flowly-text-k));
  text-align: left;
  cursor: pointer;
}
.today-viewmenu__item:hover,
.today-viewmenu__item:focus-visible { background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.05)); color: var(--flowly-text-primary); }
.today-viewmenu__icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--flowly-text-tertiary); }
.today-viewmenu__label { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.today-viewmenu__label small { font-size: calc(11px * var(--flowly-text-k)); color: var(--flowly-text-tertiary); }
/* interruptor desenhado só com CSS (container; sem glifo) */
.today-viewmenu__switch {
  position: relative;
  width: 26px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--flowly-border-strong, rgba(255, 255, 255, 0.14));
  transition: background var(--flowly-duration-base) var(--flowly-ease-out, ease);
}
.today-viewmenu__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--flowly-text-secondary);
  transition: transform var(--flowly-duration-base) var(--flowly-ease-out, ease),
              background var(--flowly-duration-base) var(--flowly-ease-out, ease);
}
.today-viewmenu__item[aria-checked="true"] .today-viewmenu__switch { background: var(--flowly-accent-success, #30d158); }
.today-viewmenu__item[aria-checked="true"] .today-viewmenu__switch::after { transform: translateX(11px); background: #fff; }
.today-viewmenu__sep { height: 1px; margin: 6px 4px; background: var(--flowly-border-muted, rgba(255, 255, 255, 0.07)); }
.today-viewmenu__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 6px; }
.today-viewmenu__rowlabel { font-size: calc(12px * var(--flowly-text-k)); color: var(--flowly-text-tertiary); }
.today-viewmenu__seg { display: inline-flex; padding: 2px; border-radius: calc(8px * var(--flowly-radius-k)); background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.05)); }
.today-viewmenu__segbtn {
  padding: 4px 8px;
  border: 0;
  border-radius: calc(6px * var(--flowly-radius-k));
  background: transparent;
  color: var(--flowly-text-tertiary);
  font-size: calc(11.5px * var(--flowly-text-k));
  cursor: pointer;
}
.today-viewmenu__segbtn:hover { color: var(--flowly-text-primary); }
.today-viewmenu__segbtn.is-on { background: var(--flowly-bg-elevated, rgba(255, 255, 255, 0.1)); color: var(--flowly-text-primary); }

/* ==========================================================================
   Minimalismo (2026-09-24) — princípio do Kaleb: o foco são as TAREFAS; o resto
   não chama atenção. Overrides agrupados aqui pra ficar fácil de rever/reverter.
   ========================================================================== */

/* Herói discreto: sem caixa; uma linha só (PRÓXIMA · título · contexto) e o
   Começar contornado. Antes era o elemento mais pesado da tela. */
.today-hero__line--next {
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.today-hero__line--next .today-hero__next {
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
}
.today-hero__line--next .today-hero__kicker { flex: 0 0 auto; }
.today-hero__line--next .today-hero__title {
  flex: 0 1 auto;
  min-width: 0;
  font-size: calc(15px * var(--flowly-text-k));
}
.today-hero__line--next .today-hero__meta { flex: 0 0 auto; margin-top: 0; }
.today-hero__line--next .flowly-btn--primary {
  border: 1px solid rgb(var(--flowly-accent-primary-rgb) / 0.4);
  background: transparent;
  color: var(--flowly-accent-primary);
  box-shadow: none;
}
.today-hero__line--next .flowly-btn--primary:hover,
.today-hero__line--next .flowly-btn--primary:focus-visible {
  background: rgb(var(--flowly-accent-primary-rgb) / 0.1);
  color: var(--flowly-accent-primary);
}


/* Uma cor de destaque só: o azul fixo (info) vira o accent do app ou cinza. */
.today-datenav__today {
  border-color: var(--flowly-border-muted, rgb(255 255 255 / 0.08));
  background: transparent;
  color: var(--flowly-text-secondary);
}
.today-datenav__today:hover { background: var(--flowly-bg-glass, rgb(255 255 255 / 0.05)); }

/* Coluna lateral apagada: anel menor e fino no accent, número em cinza; ritmo e
   caixa em tons secundários. Continua lá, mas não puxa o olho. */
.today-data__ring {
  width: 84px;
  height: 84px;
  background:
    conic-gradient(
      from -90deg,
      rgb(var(--flowly-accent-primary-rgb) / 0.7) 0deg var(--ring-task-deg, 0deg),
      rgb(124 120 137 / 0.14) var(--ring-task-deg, 0deg) 360deg
    );
}
.today-data__ring::before { inset: 4px; }
.today-data__ring-pct { font-size: calc(20px * var(--flowly-text-k)); font-weight: 600; color: var(--flowly-text-secondary); }
.today-data__ring-caption { font-size: calc(9px * var(--flowly-text-k)); }
.today-data__rhythm-icon { color: var(--flowly-text-tertiary); }
.today-data__rhythm-value { font-size: calc(13.5px * var(--flowly-text-k)); color: var(--flowly-text-secondary); }
.today-data__money-item { color: var(--flowly-text-secondary); }
.today-data__section-amount { color: var(--flowly-text-secondary); }
/* Ações do Dia fechado no mesmo peso do Começar: contorno, sem fundo. */
.today-hero__closed-actions .flowly-btn {
  border: 1px solid var(--flowly-border-muted, rgb(255 255 255 / 0.08));
  background: transparent;
  color: var(--flowly-text-secondary);
}
.today-hero__closed-actions .flowly-btn:hover,
.today-hero__closed-actions .flowly-btn:focus-visible {
  background: var(--flowly-bg-glass, rgb(255 255 255 / 0.05));
  color: var(--flowly-text-primary);
}

/* ---- Coluna lateral inteligente (2026-09-24) ---- */
/* @property deixa o conic-gradient animar: o anel "anda" do valor anterior pro novo. */
@property --ring-task-deg { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
button.today-data__ring {
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: --ring-task-deg 0.7s var(--flowly-ease-out, ease), transform var(--flowly-duration-fast) var(--flowly-ease-out);
}
button.today-data__ring:hover { transform: scale(1.03); }
button.today-data__ring:focus-visible { outline: 2px solid rgb(var(--flowly-accent-primary-rgb) / 0.5); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { button.today-data__ring { transition: none; } }

.today-data__count {
  margin: 8px 0 0;
  font-size: calc(12px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.today-data__count strong { color: var(--flowly-text-secondary); font-weight: 600; }
.today-data__forecast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  font-size: calc(11px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary);
  text-align: center;
}

/* Cabeçalho clicável (abre Análises): seta aparece no hover. */
.today-data__section-head--link { cursor: pointer; border-radius: calc(6px * var(--flowly-radius-k)); }
.today-data__section-go {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--flowly-text-tertiary);
  opacity: 0;
  transition: opacity var(--flowly-duration-fast) var(--flowly-ease-out);
}
.today-data__section-head--link .today-data__section-amount + .today-data__section-go { margin-left: 4px; }
.today-data__section-head--link .today-data__section-amount { margin-left: auto; }
.today-data__section-head--link:hover .today-data__section-go,
.today-data__section-head--link:focus-visible .today-data__section-go { opacity: 1; }
.today-data__section-head--link:focus-visible { outline: 2px solid rgb(var(--flowly-accent-primary-rgb) / 0.45); outline-offset: 2px; }

/* Conclusões por hora (6h–23h): barrinhas baixas, hora atual marcada. */
.today-data__hours {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  align-items: end;
  gap: 2px;
  height: 22px;
  margin-top: 2px;
}
.today-data__hour {
  height: max(2px, var(--h));
  border-radius: 1px;
  background: var(--flowly-text-tertiary);
  opacity: 0.35;
}
.today-data__hour.is-now { background: var(--flowly-accent-primary); opacity: 0.8; }

/* Semana em 7 pontos: preenchimento = % do dia; hoje com anel; futuro vazado. */
.today-data__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.today-data__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  border-radius: calc(6px * var(--flowly-radius-k));
  background: transparent;
  cursor: pointer;
}
.today-data__day:hover { background: var(--flowly-bg-glass, rgb(255 255 255 / 0.05)); }
.today-data__day-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: conic-gradient(rgb(var(--flowly-accent-primary-rgb) / 0.75) var(--p), rgb(124 120 137 / 0.2) 0);
}
.today-data__day-dot.is-empty { background: transparent; box-shadow: inset 0 0 0 1px rgb(124 120 137 / 0.3); }
.today-data__day.is-future .today-data__day-dot:not(.is-empty) { opacity: 0.55; }
.today-data__day.is-today .today-data__day-dot { box-shadow: 0 0 0 2px var(--flowly-bg-body), 0 0 0 3px rgb(var(--flowly-accent-primary-rgb) / 0.6); }
.today-data__day-letter { font-size: calc(10px * var(--flowly-text-k)); font-weight: 600; color: var(--flowly-text-tertiary); }
.today-data__day.is-today .today-data__day-letter { color: var(--flowly-text-secondary); }

/* ---- Coluna compacta: anel ao lado do resumo, linhas únicas, menos ar ---- */
.today-data { gap: 12px; }
.today-data__hero {
  display: grid;
  grid-template-columns: 68px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  align-content: center;
}
.today-data__hero > .today-data__ring { grid-row: 1 / span 2; width: 68px; height: 68px; }
.today-data__hero > .today-data__count,
.today-data__hero > .today-data__forecast { grid-column: 2; margin: 0; text-align: left; align-items: flex-start; }
.today-data__hero > .today-data__count { align-self: end; font-size: calc(12.5px * var(--flowly-text-k)); }
.today-data__hero > .today-data__forecast { align-self: start; }
.today-data__hero > .today-data__count:last-child { grid-row: 1 / span 2; align-self: center; }
.today-data__ring::before { inset: 3px; }
.today-data__ring-pct { font-size: calc(16px * var(--flowly-text-k)); }
.today-data__ring-pct-suffix { font-size: calc(9px * var(--flowly-text-k)); }
.today-data__ring-caption { display: none; }
button.today-data__ring:hover { transform: scale(1.05); }

.today-data__section { gap: 7px; padding-top: 10px; }
.today-data__rhythm-body { gap: 5px; }
/* Venvanse vira linha única, igual às demais. */
.today-data__rhythm-main { gap: 8px; }
.today-data__rhythm-icon { width: 11px; height: 11px; }
.today-data__rhythm-text { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.today-data__rhythm-label { font-size: calc(11.5px * var(--flowly-text-k)); }
.today-data__rhythm-value { font-size: calc(11.5px * var(--flowly-text-k)); font-weight: 600; }
.today-data__rhythm-side { padding-top: 0; border-top: 0; }
.today-data__hours { height: 14px; margin-top: 3px; }

.today-data__week { gap: 0; }
.today-data__day { gap: 3px; padding: 3px 0; }
.today-data__day-dot { width: 10px; height: 10px; }
.today-data__day-letter { font-size: calc(9.5px * var(--flowly-text-k)); }

/* ---- Próxima enxuta e responsiva (sem selo de tipo; botão menor) ----
   Container query: com pouca largura some o contexto e depois o texto do botão (fica ▷). */
.today-hero { container-type: inline-size; }
.today-hero__line--next .today-next-action__btn {
  height: 30px;
  padding: 0 12px;
  gap: 6px;
  font-size: calc(12.5px * var(--flowly-text-k));
  border-color: rgb(var(--flowly-accent-primary-rgb) / 0.3);
}
.today-hero__line--next .today-next-action__btn i { width: 13px; height: 13px; }
@container (max-width: 620px) {
  .today-hero__line--next .today-hero__meta { display: none; }
}
@container (max-width: 440px) {
  .today-hero__line--next .today-next-action__btn { width: 30px; padding: 0; justify-content: center; }
  .today-hero__line--next .today-next-action__btn span { display: none; }
  .today-hero__line--next .today-hero__kicker { display: none; }
}

/* ── Movimento contínuo: camada dos fantasmas (FLIP) ─────────────────────── */
#todayView .today-flip-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
/* Fantasma congela no estado final (o clone reiniciaria pop/risco do zero). */
#todayView .today-flip-layer *,
#todayView .today-flip-layer *::after {
  animation: none !important;
  transition: none !important;
}
/* Abrir/fechar as seções recolhíveis anima a altura (toggleTodaySection). */
.today-done.is-animating .today-done__list,
.today-overdue.is-animating .today-overdue__list { overflow: hidden; }

/* Tarefa pendente: quadrado tracejado (pedido do Kaleb, 2026-09-24); marcado volta ao sólido. */
#todayView .today-task-list .checkbox-custom:not(:checked) { border-style: dashed; }

/* ── Arrasto com mola (bindTodaySortableList) ─────────────────────────────
   Durante a ordenação, a lista recebe os eventos (filhos sem pointer-events) e
   as linhas se afastam com mola; o lugar da arrastada vira um vão tracejado. */
#todayView .today-task-list.is-sorting > *,
.pdp-tasks.is-sorting > * {
  pointer-events: none;
  transition: transform var(--flowly-duration-base) var(--flowly-ease-spring);
}
#todayView .today-task-list.is-sorting > .is-sort-source,
.pdp-tasks.is-sorting > .is-sort-source {
  border-radius: var(--flowly-radius-sm);
  outline: 1.5px dashed var(--flowly-border-strong, rgba(255, 255, 255, 0.18));
  outline-offset: -2px;
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.03));
  transition: transform var(--flowly-duration-base) var(--flowly-ease-out);
}
#todayView .today-task-list.is-sorting > .is-sort-source > *,
.pdp-tasks.is-sorting > .is-sort-source > * { opacity: 0; }
/* Bloco arrastado junto (projeto + tarefas, pai + subtarefas): as linhas de baixo
   também viram vão — a linha de tarefa de projeto tem opacity própria. */
#todayView .today-task-list.is-sorting > .is-sort-source *,
.pdp-tasks.is-sorting > .is-sort-source * { visibility: hidden; }
/* O vão já mostra onde cai: sem a linha de marcador por cima. */
#todayView .today-task-list.is-sorting .task-item::before,
.pdp-tasks.is-sorting .task-item::before { display: none; }
#todayView .today-flip-layer .checkbox-custom::before { display: none; }

/* ── Linhas: hover sobe 1px com sombra, clique afunda ─────────────────────── */
#todayView .today-task-list--dashboard .task-item {
  transition: background var(--flowly-duration-fast) var(--flowly-ease-out),
              transform var(--flowly-duration-base) var(--flowly-ease-spring),
              box-shadow var(--flowly-duration-base) var(--flowly-ease-out);
}
#todayView .today-task-list--dashboard .task-item:hover:not(.is-expanded) {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 16px -8px rgba(0, 0, 0, 0.22);
}
#todayView .today-task-list--dashboard .task-item:active:not(.is-expanded) {
  transform: translateY(0) scale(0.995);
  box-shadow: none;
  transition-duration: 60ms;
}
/* Arrastando: sem levantar linha. */
body.dragging-active #todayView .today-task-list--dashboard .task-item:hover { transform: none; box-shadow: none; }
/* Contadores que rolam precisam de caixa (transform não age em inline). */
#todayView .today-data__count strong,
#todayView .today-period-section__count { display: inline-block; }
#todayView .today-data__ring-pct { font-variant-numeric: tabular-nums; }

/* ── Médio e Grande enxutos e responsivos (pedido do Kaleb, 2026-09-24) ──────
   Antes: fonte fixa (22/30px) + padding em px (14/20px) + bordas retas entre as
   linhas no Grande → linhas de 60–85px, lista "quadriculada" e texto cortado cedo.
   Agora a fonte acompanha a largura da lista (container query) e todo o respiro é
   em `em`, na mesma proporção do Normal: cresce o texto, não o vazio.
   Normal 16 · Médio 18–20 · Grande 21–24. Só a Hoje (a Semana segue as regras de cima). */
#todayView .today-task-panel { container-type: inline-size; }
#todayView[data-today-zoom="large"] .today-task-list--dashboard,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard { gap: 3px; }

#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item,
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item:hover,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item:hover {
  padding: max(9px, 0.4em) 0.6em max(9px, 0.4em) max(8px, 0.45em);
  gap: max(14px, 0.62em);
  line-height: 1.3;
  border-bottom: none;
  border-radius: calc(var(--flowly-radius-sm, 6px) + 0.1em);
}
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item { font-size: calc(clamp(18px, 3cqi, 20px) * var(--flowly-text-k)); }
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item { font-size: calc(clamp(21px, 3.6cqi, 24px) * var(--flowly-text-k)); }
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item:hover {
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.055));
}
/* Subtarefa um degrau menor, também no zoom (hierarquia sem mudar a escala). */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item[data-depth="1"],
#todayView[data-today-zoom="large"] .today-task-list--dashboard .task-item[data-depth="2"] { font-size: calc(clamp(17px, 2.8cqi, 18.5px) * var(--flowly-text-k)); }
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item[data-depth="1"],
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .task-item[data-depth="2"] { font-size: calc(clamp(19px, 3.3cqi, 21.5px) * var(--flowly-text-k)); }
/* Quadrado proporcional e mais arredondado — com raio fixo ele ia virando um bloco. */
#todayView[data-today-zoom="large"] .today-task-list--dashboard .checkbox-custom,
#todayView[data-today-zoom="xlarge"] .today-task-list--dashboard .checkbox-custom {
  width: max(16px, 0.8em);
  height: max(16px, 0.8em);
  border-radius: 0.26em;
  border-width: max(1.5px, 0.075em);
}
