/* ============================================================
   TAREFAS / PLANNER — tela cheia (avançado) com identidade ÍNDIGO.
   Hero próprio (.ztp-*) + lista reaproveita .tdm-* (style.css).
   ============================================================ */
/* o corpo da tela cheia vira um flex column SEM padding: hero no topo,
   lista rolável no meio, barra de input encostada na base (sem espaço em branco) */
#fsWidget[data-type="widget-todo"] .zfs-body { padding: 0; overflow: hidden; display: flex; }
.ztodo-full {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

/* ---- HERO verde (identidade ZIP, encostado no topo) ---- */
.ztp-hero {
    flex-shrink: 0;
    margin: 0;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
    color: #fff;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 10px 26px rgba(234, 88, 12, 0.28);
    position: relative;
}
.ztp-herotop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ztp-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 1px; color: rgba(255, 255, 255, 0.82); text-transform: uppercase; }

.ztp-gcal { display: flex; align-items: center; }
.ztp-gcal-pill {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28);
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.74rem; padding: 6px 11px; border-radius: 99px;
    transition: background 0.18s;
}
.ztp-gcal-pill:hover { background: rgba(255, 255, 255, 0.26); }
.ztp-gcal-pill.connected { background: rgba(255, 255, 255, 0.22); }
.ztp-g { font-weight: 900; background: #fff; color: #ea580c; width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.66rem; }
.ztp-sync { background: none; border: none; color: #fff; cursor: pointer; padding: 2px 4px; font-size: 0.78rem; }

/* navegação de dias */
.ztp-daynav { display: flex; align-items: center; gap: 10px; }
.ztp-nav {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: background 0.18s;
}
.ztp-nav:hover { background: rgba(255, 255, 255, 0.3); }
.ztp-dayinfo { flex: 1; min-width: 0; text-align: center; }
.ztp-daytitle { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem; margin: 0; letter-spacing: -0.5px; color: #fff; }
.ztp-daysub { margin: 1px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); font-weight: 600; }

/* faixa da semana */
.ztp-week { display: flex; gap: 5px; margin-top: 14px; }
.ztp-day {
    flex: 1; cursor: pointer; border: none; background: rgba(255, 255, 255, 0.1);
    border-radius: 13px; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: rgba(255, 255, 255, 0.85); transition: all 0.18s; min-width: 0;
}
.ztp-day:hover { background: rgba(255, 255, 255, 0.2); }
.ztp-day-lbl { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px; }
.ztp-day-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; line-height: 1; }
.ztp-day-dots { display: flex; gap: 2px; height: 5px; align-items: center; }
.ztp-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.ztp-dot.done { background: #fff; }
.ztp-day.today .ztp-day-num { position: relative; }
.ztp-day.today .ztp-day-lbl { color: #fff; }
.ztp-day.sel { background: #fff; color: #ea580c; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.ztp-day.sel .ztp-dot { background: rgba(234, 88, 12, 0.3); }
.ztp-day.sel .ztp-dot.done { background: #ea580c; }

/* ---- LISTA (reaproveita .tdm-*) — rola internamente ---- */
.ztodo-full .tdm-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px 8px; }

/* prioridade */
#tdmPrioPill.active { color: #ef4444 !important; border-color: rgba(239, 68, 68, 0.4) !important; background: rgba(239, 68, 68, 0.12) !important; }
.tdm-task-prio { display: inline-flex; align-items: center; gap: 4px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.4px; color: #ef4444; background: rgba(239, 68, 68, 0.12); padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(239, 68, 68, 0.28); }
.tdm-task-card.priority { border-left: 3px solid #ef4444; }

/* barra de input encostada na base (parte do flex column, sem espaço em branco) */
.ztodo-full .tdm-input-bar {
    flex-shrink: 0; margin: 0; z-index: 2;
    background: var(--bg-card); border-top: 1px solid var(--border-color);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
}
.ztp-send { background: var(--orange, #ea580c) !important; }
.ztp-send:hover { filter: brightness(.93); }

/* desktop */
@media (min-width: 900px) {
    .ztp-hero { padding: 22px 26px 18px; }
    .ztodo-full .tdm-body { padding: 16px 24px 8px; }
    .ztodo-full .tdm-input-bar { padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0)); }
    .ztp-daytitle { font-size: 1.7rem; }
}

/* ============================================================
   v7 "QUIET PREMIUM" — escala e pesos contidos
   ============================================================ */
.ztp-eyebrow { font-weight: 600; letter-spacing: .09em; font-size: 0.6rem; }
.ztp-daytitle { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.ztp-day-lbl { font-weight: 600; letter-spacing: .07em; }
.ztp-day-num { font-weight: 700; }
.ztp-g { font-weight: 700; }
.tdm-task-prio { font-weight: 700; letter-spacing: .02em; }
