/* ✅ Tarefas (app/tarefas.js). Usa também .md-hello, .md-seg, .md-btn e .md-tag de app/meu-dia.css. */
.tzt2 svg { width: 15px; height: 15px; flex: none; }
.tzt2-views button { display: inline-flex; align-items: center; gap: 6px; }
.tzt2-new { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px !important; }
.tzt2-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.tzt2-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tzt2-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--tz-outline-control); border-radius: var(--tz-r-sm); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tzt2-tabs button small { padding: 1px 7px; border-radius: 999px; background: var(--panel, #eef2f8); color: var(--muted); font-size: 11px; }
.tzt2-tabs button small.bad { background: #fdeae4; color: #c2410c; }
.tzt2-tabs button.on { border-color: var(--blue); background: var(--blue2); color: var(--blue); }
.tzt2-tabs button.on small { background: #ffffffb0; color: var(--blue); }
.tzt2-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tzt2-filters input, .tzt2-filters select { padding: 8px 11px; border: 1px solid var(--tz-outline-control); border-radius: var(--tz-r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; min-width: 0; }
.tzt2-filters input { width: 230px; }
/* lista */
.tzt2-group { margin-bottom: 16px; }
.tzt2-group h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tzt2-group h4 small { padding: 1px 7px; border-radius: 999px; background: var(--panel, #eef2f8); font-size: 11px; }
.tzt2-group.bad h4 { color: #c2410c; }
.tzt2-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin-bottom: 6px; border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); background: var(--surface); }
.tzt2-row:hover { border-color: #a9bfea; }
.tzt2-main { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.tzt2-main b { font-size: 13.5px; }
.tzt2-main small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzt2-row.done .tzt2-main b, .tzt2-card.done b { text-decoration: line-through; color: var(--muted); }
.tzt2-row.done, .tzt2-card.done { opacity: .7; }
.tzt2-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tzt2-meta .md-tag { margin-left: 0; }
.tzt2-date { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tzt2-date.late { color: #c2410c; } .tzt2-date.now { color: var(--blue); }
.tzt2-chat { display: inline-flex; align-items: center; gap: 4px; max-width: 170px; padding: 2px 8px; border: 0; border-radius: 999px; background: var(--blue2); color: var(--blue); font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzt2-check { width: 22px; height: 22px; border: 2px solid #b9c3d3; border-radius: 50%; background: transparent; color: #fff; flex: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.tzt2-check svg { width: 12px; height: 12px; }
.tzt2-check:hover { border-color: #16a34a; }
.tzt2-check.on { background: #16a34a; border-color: #16a34a; }
.tzt2-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: 10px; font-weight: 800; }
.tzt2-av.none { background: var(--panel, #e6ebf3); color: var(--muted); }
/* vazio */
.tzt2-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 54px 20px; border: 1px dashed var(--line); border-radius: var(--tz-r-md); background: var(--surface); text-align: center; color: var(--muted); }
.tzt2-empty svg { width: 38px; height: 38px; color: var(--blue); opacity: .75; margin-bottom: 6px; }
.tzt2-empty b { color: var(--ink); font-size: 15px; }
.tzt2-empty p { margin: 0 0 8px; font-size: 13px; max-width: 360px; }
/* quadro */
.tzt2-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tzt2-col { padding: 10px; border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); background: var(--panel, #f3f6fb); min-height: 220px; transition: border-color .15s, background .15s; }
.tzt2-col.over { border-color: var(--blue); background: var(--blue2); }
.tzt2-col h4 { margin: 2px 4px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tzt2-col h4 small { padding: 1px 7px; border-radius: 999px; background: var(--surface); font-size: 11px; }
.tzt2-col.bad h4 { color: #c2410c; }
.tzt2-col-body { display: flex; flex-direction: column; gap: 8px; }
.tzt2-col-empty { margin: 18px 0; text-align: center; color: var(--muted); font-size: 12px; }
.tzt2-card { padding: 10px 12px; border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); background: var(--surface); cursor: grab; }
.tzt2-card.drag { opacity: .4; }
.tzt2-card-top { display: flex; gap: 9px; align-items: flex-start; }
.tzt2-card-top b { font-size: 13px; cursor: pointer; line-height: 1.3; }
.tzt2-card .tzt2-meta { margin: 8px 0 8px 31px; }
.tzt2-card-foot { display: flex; align-items: center; gap: 7px; margin-left: 31px; }
.tzt2-card-foot small { color: var(--muted); font-size: 11.5px; }
/* calendário */
.tzt2-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tzt2-cal-head b { min-width: 150px; text-align: center; }
.tzt2-cal-head b::first-letter { text-transform: uppercase; }
.tzt2-cal-head small { margin-left: auto; color: var(--muted); font-size: 12px; }
.tzt2-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tzt2-wd { text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.tzt2-day { min-height: 98px; padding: 6px; border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
.tzt2-day.off { background: transparent; border-color: transparent; }
.tzt2-day.today { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.tzt2-day .n { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.tzt2-day .n small { display: none; }
.tzt2-day.today .n { color: var(--blue); }
.tzt2-day small { color: var(--muted); font-size: 10.5px; }
.tzt2-pill { padding: 2px 6px; border: 0; border-radius: 6px; background: var(--blue2); color: var(--blue); font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tzt2-pill:nth-of-type(n+4) { display: none; }
.tzt2-pill.late { background: #fdeae4; color: #c2410c; }
.tzt2-pill.done { background: var(--panel, #eef2f8); color: var(--muted); text-decoration: line-through; }
body[data-theme="graphite"] .tzt2-tabs button small.bad, body[data-theme="graphite"] .tzt2-pill.late { background: #5b2a26; color: #fca5a5; }
@media (max-width: 900px) { .tzt2-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tzt2-new { min-height: 40px; }
  .tzt2-tabs button { min-height: 40px; padding-inline: 12px; }
  .tzt2-filters input, .tzt2-filters select { min-height: 40px; font-size: 16px; }
  .tzt2-empty { padding: 32px 18px; }
  .tzt2-board { grid-template-columns: 1fr; }
  .tzt2-filters, .tzt2-filters input { width: 100%; }
  .tzt2-filters select { flex: 1; }
  .tzt2-row { flex-wrap: wrap; }
  .tzt2-main { flex-basis: calc(100% - 100px); }
  .tzt2-meta { order: 3; flex-basis: 100%; margin-left: 34px; }
  .tzt2-cal { grid-template-columns: 1fr; gap: 4px; }
  .tzt2-wd, .tzt2-day.off { display: none; }
  .tzt2-day { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; min-height: 24px; padding: 1px 8px; gap: 8px; border-color: transparent; border-bottom-color: var(--line); border-radius: 0; background: transparent; }
  .tzt2-day:has(.tzt2-pill) { align-items: start; min-height: 42px; padding: 5px 8px; border-color: var(--line); border-radius: 8px; background: var(--surface); }
  .tzt2-day .n { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 13px; }
  .tzt2-day .n small { display: inline !important; font-size: 10px; font-weight: 700; }
  .tzt2-pill { grid-column: 2; width: 100%; padding: 5px 8px; font-size: 13px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
  .tzt2-pill:nth-of-type(n+4) { display: block; }
  .tzt2-day > small { display: none; }
  .tzt2-cal-head small { display: none; }
}
