/* ==============================================================
   Kerb — tema v2 (claro). Base: canvas "Kerb v2".
   Fundo claro, barra branca, tinta quase preta nos botões principais.
   Marca Bravva: preto + dourado #CE8935 (o mesmo do Gestão). O dourado claro
   não passa no contraste com texto em fundo branco: em texto/link vai o
   dourado escuro (--accent-ink); o #CE8935 fica em marcas, pontos e barras.
   ============================================================== */
:root {
  --tx-padrao: #2b2e37; --tx-cinza: #5d6170; --tx-vermelho: #c62828; --tx-laranja: #c2570c; --tx-dourado: #8a5418; --tx-verde: #1b7f3b; --tx-azul: #1f5fbf;
}
:root {
  --bg: #f7f7f9;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #2b2e37;
  --txt: #3d4150;
  --muted: #5d6170;
  --line: #ececf1;
  --line-2: #dfe1e8;
  --hover: #f2f2f6;
  --brand: #16181d;        /* botões e marcas sólidas: preto */
  --gold: #CE8935;         /* dourado Bravva (marca, pontos, luzes) */
  --accent: #B87424;       /* dourado para preenchimentos, foco e barras (≥3:1 no branco) */
  --accent-ink: #8A5418;   /* dourado escuro para texto e links (6:1 no branco) */
  --accent-soft: #FBF3E8;  /* fundo de seleção */
  --brand-ink: #8A5418;
  --late: #c2261d;
  --late-bg: #fdecea;
  --today: #a35a00;
  --today-bg: #fff4e0;
  --ok: #0f5e51;
  --ok-bg: #eef7f2;
  --red-dot: #e5484d;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 0 0 1px var(--line);
  --shadow-up: 0 4px 12px rgba(22, 24, 29, .08), 0 0 0 1px var(--line-2);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* senão .btn/.stack (display:flex) ignoram o atributo hidden */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Figtree', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; }
a { color: var(--accent-ink); }
a:hover { color: var(--c-tx-2f2fa0); }
h1, h2, h3 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kbd { font-size: 11px; font-weight: 700; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--muted); line-height: 1.4; }
body.trava { overflow: hidden; } /* gaveta/janela abertas */

/* ---- Casca ---------------------------------------------------- */
.app { min-height: 100vh; display: flex; }
.side { flex: 0 0 236px; background: var(--c-bg-ffffff); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.brand-txt { display: flex; flex-direction: column; }
.brand-txt b { font-size: 15px; color: var(--ink); }
.brand-txt span { font-size: 12px; color: var(--muted); }
.btn-novo { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--ink); color: var(--c-on-ffffff); text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; }
.btn-novo:hover { background: var(--c-bg-000000); color: var(--c-tx-ffffff); }
.btn-novo .kbd { margin-left: auto; border-color: var(--c-bd-ffffff-35); color: var(--c-tx-ffffff); opacity: .8; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--txt); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav .cnt { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.nav a.on .cnt { color: var(--accent-ink); }
.nav .ponto { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red-dot); color: var(--c-tx-ffffff); font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side-user { margin-top: auto; position: relative; }
.side-user > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; border-top: 1px solid var(--line); cursor: pointer; }
.side-user > summary::-webkit-details-marker { display: none; }
.side-user .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.side-user .who b { font-size: 13.5px; }
.side-user .who span { font-size: 12px; color: var(--muted); }
.side-user .menu { bottom: calc(100% + 6px); top: auto; left: 0; right: 0; }

.main { flex: 1; min-width: 0; padding: 28px 40px 80px; display: flex; flex-direction: column; gap: 18px; }
.miolo { width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.miolo-largo { max-width: none; margin: 0; } /* Hoje: mesma largura e alinhamento das outras telas */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.page-head .t { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-head .sub { font-size: 13.5px; color: var(--muted); }
.busca { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--c-bg-ffffff); border: 1px solid var(--line); min-width: 240px; color: var(--muted); }
.busca input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; flex: 1; min-width: 0; color: var(--ink); }
.topbar, .bottomnav { display: none; }

/* ---- Menus (⋯ e avatar) --------------------------------------- */
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
.menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 220px; background: var(--c-bg-ffffff); border-radius: 12px; box-shadow: 0 12px 32px var(--c-sh-16181d-16), 0 0 0 1px var(--line); padding: 6px; display: flex; flex-direction: column; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; width: 100%; }
.menu a:hover, .menu button:hover { background: var(--hover); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu .perigo { color: var(--late); }
.menu form { margin: 0; }

/* ---- Componentes ---------------------------------------------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card h2, .h2 { font-size: 15px; font-weight: 700; }
.lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.meta { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row-flex { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--c-bg-ffffff); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--c-bd-c9ccd6); background: var(--c-bg-fafafb); color: var(--ink); }
.btn-pri { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }
.btn-pri:hover { background: var(--c-bg-000000); border-color: var(--c-bd-000000); color: var(--c-tx-ffffff); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-ico { width: 44px; padding: 0; }
.btn-link { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent-ink); }
.btn-danger { color: var(--late); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--hover); border-color: transparent; }
.icb { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; flex: none; }
.icb:hover { background: var(--hover); color: var(--ink); }
form.inline { display: inline; margin: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--c-bg-f2f2f6); color: var(--ink-2); }
.k-prod { background: var(--c-bg-f2f2f6); color: var(--c-tx-374151); }
.k-rev { background: var(--accent-soft); color: var(--accent-ink); }
.k-apr { background: var(--c-bg-fff1e6); color: var(--c-tx-8a3a0c); }
.k-pub { background: var(--c-bg-e6f3ee); color: var(--ok); }
.c-late { background: var(--late-bg); color: var(--late); }
.c-today { background: var(--today-bg); color: var(--today); }
.c-date { background: var(--c-bg-f2f2f6); color: var(--txt); }
.c-ok { background: var(--ok-bg); color: var(--ok); }
.late { color: var(--late); font-weight: 700; }
.today { color: var(--today); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 99px; flex: none; display: inline-block; }
.d-producao { background: var(--c-bg-9aa0ad); }
.d-revisao { background: var(--accent); }
.d-aprovacao_cliente { background: var(--c-bg-e07b16); }
.d-publicacao { background: var(--c-bg-0f766e); }
/* Situações da tarefa */
.d-a_fazer { background: var(--c-bg-b5b9c4); }
.d-fazendo { background: var(--c-bg-3b82f6); }
.d-em_revisao { background: var(--gold); }
.d-com_cliente { background: var(--c-bg-0e7490); }
.d-ajustar { background: var(--c-bg-dc2626); }
.d-aprovado { background: var(--c-bg-65a30d); }
.d-entregue { background: var(--c-bg-16a34a); }
.d-pausada, .d-cancelada { background: var(--c-bg-6b7280); }
.stt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.av { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; flex: none; }
.av-sm { width: 18px; height: 18px; border-radius: 5px; font-size: 8.5px; }
.av-lg { width: 44px; height: 44px; border-radius: 10px; font-size: 14px; }
.pav { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; background: var(--c-bg-dbe0f5); color: var(--c-tx-151a2e); }
.pav-sm { width: 22px; height: 22px; font-size: 9px; }
.pav-lg { width: 32px; height: 32px; font-size: 12px; }

/* Formulários */
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fld input, .fld select, .fld textarea, .inp { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); width: 100%; }
.fld textarea, textarea.inp { padding: 11px 12px; min-height: 88px; resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inp:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; color: var(--ink); font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-danger { background: var(--late-bg); color: var(--late); }
.flash-info { background: var(--accent-soft); color: var(--accent-ink); }
.empty { border: 1.5px dashed var(--c-bd-d6d8e0); border-radius: 12px; padding: 22px 16px; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* Aviso rápido (embaixo, some sozinho) com "Desfazer" */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 12px; background: var(--ink); color: var(--c-tx-e9eaf0); font-size: 14px; box-shadow: 0 10px 30px var(--c-sh-16181d-25); }
.toast b { color: var(--c-tx-ffffff); }
.toast .t-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button, .toast a.t-bt { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--c-bg-2b2e37); color: var(--c-tx-ffffff); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; flex: none; }
.toast form { margin: 0; }
.toast.erro { background: var(--late); }
.toast.saindo { opacity: 0; transition: opacity .25s; }

/* ---- Hoje ----------------------------------------------------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a .c { font-size: 12px; font-weight: 700; background: var(--c-bg-eeeff3); color: var(--txt); border-radius: 999px; padding: 1px 8px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a.on .c { background: var(--ink); color: var(--c-on-ffffff); }
.grp { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px 2px; }
.lista { display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--c-bg-ffffff); }
.item:hover { box-shadow: var(--shadow); }
.item.fila { background: var(--c-bg-fbfbfc); }
.ck { position: relative; width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--c-bd-c9ccd6); background: transparent; flex: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: border-color .15s, background-color .15s, color .15s; }
.ck::before { content: ""; position: absolute; inset: -11px; border-radius: 999px; } /* bolinha pequena, área de clique de 40px */
.ck svg { width: 11px; height: 11px; stroke-width: 2.6; }
.ck:hover, .ck:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--c-on-ffffff); }
.ck:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ck-fila { border-style: dashed; cursor: default; }
.ck-fila:hover { border-color: var(--c-bd-c9ccd6); background: transparent; color: transparent; }
.item .corpo { flex: 1; min-width: 0; }
.tt { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.tt:hover { color: var(--ink); text-decoration: underline; }
.sub { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.prazo { font-size: 13px; font-weight: 600; color: var(--txt); white-space: nowrap; }
.prazo.late { color: var(--late); font-weight: 700; }
.prazo.today { color: var(--today); font-weight: 700; }

/* ---- Gaveta (desktop) / folha (celular) ----------------------- */
.fundo { position: fixed; inset: 0; z-index: 50; background: var(--c-bg-16181d-28); }
/* Tarefa aberta: popup centralizado, como a Nova tarefa (no celular sobe de baixo) */
.gaveta { position: fixed; left: 50%; top: 5vh; transform: translateX(-50%); z-index: 51; width: min(860px, calc(100vw - 24px)); max-height: 90vh; background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: 0 24px 60px var(--c-sh-16181d-22); display: flex; flex-direction: column; }
.gaveta .g-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px 12px 28px; border-bottom: 1px solid var(--line); min-height: 60px; }
.gaveta .g-top .onde { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--txt); margin-right: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gaveta .g-corpo { flex: 1; min-height: 0; overflow: auto; padding: 22px 28px 20px; display: flex; flex-direction: column; gap: 22px; }
.gaveta .g-pe { display: flex; gap: 10px; align-items: flex-end; padding: 12px 28px 16px; border-top: 1px solid var(--line); background: var(--c-bg-fbfbfc); border-radius: 0 0 16px 16px; }
.gaveta .g-pe textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 14px; resize: none; color: var(--ink); }
.gaveta .g-pe .enviar { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--brand); color: var(--c-on-ffffff); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.g-tit { font-size: 24px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.g-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--txt); }
.progresso { display: flex; gap: 4px; }
.progresso span { flex: 1; height: 6px; border-radius: 99px; background: var(--c-bg-e6e7ee); }
.progresso span.ok { background: var(--ink); }
.progresso span.cur { background: var(--accent); }
.g-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.g-acoes .btn-pri { flex: 1 1 260px; min-height: 46px; }
.g-acoes .btn { min-height: 46px; }
.link-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 100%; padding: 0 6px 0 12px; border-radius: 99px; background: var(--c-bg-f2f2f6); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.link-pill a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-pill a:hover { text-decoration: underline; }
.link-pill button { width: 26px; height: 26px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.link-pill button:hover { background: var(--c-bg-e4e5ec); color: var(--ink); }
.etapas-lista { display: flex; flex-direction: column; gap: 4px; }
.etapa-l { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 10px; font-size: 13.5px; }
.etapa-l.cur { background: var(--accent-soft); }
.etapa-l .num { width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; background: var(--c-bg-eceef3); color: var(--muted); }
.etapa-l.ok .num { background: var(--ink); color: var(--c-on-ffffff); }
.etapa-l.cur .num { background: var(--accent); color: var(--c-on-ffffff); }
.etapa-l select { min-height: 34px; margin-left: auto; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--c-bg-ffffff); font: inherit; font-size: 13px; max-width: 150px; }
.msg { display: flex; gap: 12px; }
.msg p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.evento { margin: 0 0 0 40px; font-size: 12.5px; color: var(--muted); }
.brief { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
/* Descrição formatada: mesmo visual na tela da tarefa e dentro do editor */
.rt, .ed-campo { font-size: 14.5px; line-height: 1.6; font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; }
.rt > :first-child, .ed-campo > :first-child { margin-top: 0; }
.rt > :last-child, .ed-campo > :last-child { margin-bottom: 0; }
.rt p, .ed-campo p { margin: 0 0 8px; }
.rt h3, .ed-campo h3 { margin: 16px 0 6px; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.rt h4, .ed-campo h4 { margin: 12px 0 4px; font-size: 15.5px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.rt ul, .rt ol, .ed-campo ul, .ed-campo ol { margin: 0 0 8px; padding-left: 22px; }
.rt li, .ed-campo li { margin-bottom: 3px; }
.rt strong, .rt b, .ed-campo strong, .ed-campo b { font-weight: 700; }
.rt a, .ed-campo a { color: var(--brand-ink); text-decoration: underline; }
/* Descrição na tarefa: ao passar o mouse, fundo cinza leve e lápis para editar (sem mexer no texto) */
.desc-editavel { position: relative; margin: -8px -10px; padding: 8px 44px 8px 10px; border-radius: 10px; cursor: pointer; transition: background-color .12s; }
.desc-lapis { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: var(--c-bg-ffffff); color: var(--muted); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity .12s; }
.desc-lapis:hover { color: var(--brand-ink); }
.desc-lapis:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: hover) {
  .desc-editavel:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
  .desc-editavel:hover .desc-lapis { opacity: 1; }
}
@media (hover: none) { .desc-lapis { opacity: 1; box-shadow: none; background: none; } .desc-editavel { cursor: auto; } }
.tx-padrao { color: var(--tx-padrao); } .tx-cinza { color: var(--tx-cinza); } .tx-vermelho { color: var(--tx-vermelho); }
.tx-laranja { color: var(--tx-laranja); } .tx-dourado { color: var(--tx-dourado); } .tx-verde { color: var(--tx-verde); } .tx-azul { color: var(--tx-azul); }
.ed { position: relative; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); }
.ed:focus-within { outline: 2px solid var(--accent); border-color: var(--accent); }
.ed-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ed-grupo { position: relative; }
.ed-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line-2); }
.ed-b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.ed-b:hover { background: var(--line); }
.ed-b.on { background: var(--accent-soft); color: var(--brand-ink); }
.ed-b b { font-weight: 800; } .ed-b u { font-weight: 600; }
.ed-estilo { min-width: 92px; justify-content: space-between; font-size: 13px; }
.ed-a-letra { display: inline-flex; flex-direction: column; align-items: center; font-weight: 700; line-height: 1; }
.ed-a-letra i { display: block; width: 14px; height: 3px; margin-top: 2px; border-radius: 2px; background: currentColor; }
.ed-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 6px; border-radius: 10px; background: var(--c-bg-ffffff); box-shadow: var(--shadow-up); }
.ed-menu[hidden] { display: none; }
.ed-op { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; }
.ed-op:hover { background: var(--line); }
.ed-op.on { background: var(--accent-soft); }
.ed-op-h3 { font-size: 18px; font-weight: 800; }
.ed-op-h4 { font-size: 15.5px; font-weight: 700; }
.ed-menu-cores { flex-direction: row; flex-wrap: wrap; width: 164px; min-width: 0; gap: 4px; }
.ed-cor { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: none; cursor: pointer; }
.ed-cor:hover { background: var(--line); }
.ed-cor span { display: block; width: 20px; height: 20px; border-radius: 50%; background: currentColor; }
.ed-campo { position: relative; min-height: 130px; max-height: 380px; overflow-y: auto; padding: 11px 12px; border-radius: 0 0 10px 10px; outline: none; cursor: text; }
.ed-campo.vazio::before { content: attr(data-placeholder); position: absolute; left: 12px; right: 12px; top: 11px; color: var(--muted); pointer-events: none; }
@media (max-width: 900px) { .ed-campo { font-size: 16px; } .ed-b { min-width: 38px; height: 38px; } }
.caixa-leve { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.carregando { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
details.fold > summary { cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }

/* Página cheia da tarefa (abrir pelo link/notificação) */
.tarefa-pagina { max-width: 680px; margin: 0 auto; width: 100%; background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tarefa-pagina .gaveta { position: static; transform: none; width: 100%; height: auto; max-height: none; box-shadow: none; min-height: 70vh; border-radius: 0; }
.tarefa-pagina .gaveta::before { display: none; }

/* ---- Janela (nova tarefa) ------------------------------------- */
.janela { position: fixed; left: 50%; top: 10vh; transform: translateX(-50%); z-index: 51; width: min(620px, calc(100vw - 24px)); max-height: 84vh; background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: 0 24px 60px var(--c-sh-16181d-22); display: flex; flex-direction: column; }
.janela .j-top { display: flex; align-items: center; padding: 16px 16px 4px 24px; }
.janela .j-top h2 { font-size: 15px; font-weight: 700; color: var(--muted); }
.janela .j-corpo { overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 4px 24px 20px; }
.janela .j-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--c-bg-fbfbfc); border-radius: 0 0 16px 16px; }
.janela .j-atalho { margin-left: auto; display: inline-flex; gap: 4px; }
.titulo-grande { width: 100%; border: 0; outline: 0; padding: 4px 0; font: inherit; font-size: 22px; font-weight: 700; color: var(--ink); background: transparent; }
.titulo-grande::placeholder { color: var(--c-tx-a2a6b2); }
.linha-campos { display: flex; flex-wrap: wrap; gap: 12px; }
.linha-campos .fld { flex: 1 1 180px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 99px; background: var(--c-bg-f2f2f6); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill .pav { width: 20px; height: 20px; font-size: 8px; }
.seta { color: var(--c-tx-a2a6b2); }

/* ---- Quadro --------------------------------------------------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-f { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--c-bg-ffffff); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--txt); cursor: pointer; text-decoration: none; }
.chip-f:hover { border-color: var(--c-bd-c9ccd6); color: var(--ink); }
.chip-f.on { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }
/* Quadro: barra compacta de filtros (período em botões, caixinhas "Período ▾" e "Filtros", etiquetas) */
.fbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: -6px 0 16px; }
.fseg { display: inline-flex; align-items: center; background: var(--c-bg-ffffff); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; }
.fseg > a, .fseg summary { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--txt); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; }
.fseg > a:hover, .fseg summary:hover { background: var(--c-bg-f3f3f6); color: var(--ink); }
.fseg > a.on, .fseg summary.on { background: var(--ink); color: var(--c-on-ffffff); }
.fpop-wrap { position: relative; }
.fpop-wrap > summary::-webkit-details-marker { display: none; }
.fbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid var(--line-2); background: var(--c-bg-ffffff); border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.fbtn:hover { border-color: var(--c-bd-c9ccd6); }
.fpop-wrap[open] > .fbtn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--c-sh-b87424-15); }
.fn { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--c-on-ffffff); font-size: 11.5px; font-weight: 800; }
.fpop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; background: var(--c-bg-ffffff); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 14px 40px var(--c-sh-16181d-14); padding: 16px; }
.fpop h4 { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fpop h4.mt { margin-top: 14px; }
.fpop fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fpop-filtros { width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.fop { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.fop:hover { background: var(--c-bg-f6f6f8); }
.fop input { position: absolute; opacity: 0; pointer-events: none; }
.fop i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c-bd-c4c7d0); }
.fop:has(input:checked) { font-weight: 600; }
.fop:has(input:checked) i { border: 5px solid var(--accent); }
.fop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.fop small { margin-left: auto; font-size: 12px; color: var(--muted); }
.fadmin { display: flex; gap: 8px; margin: 0; }
.fsel.fsel-barra { width: auto; max-width: 220px; min-height: 38px; padding-right: 28px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.fsel.fsel-barra.on { border-color: var(--gold); background-color: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 900px) { .fadmin { flex-basis: 100%; } .fadmin .fsel-barra { flex: 1; max-width: none; } }
.fsel { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--c-bg-ffffff); font: inherit; font-size: 14px; color: var(--ink); }
.fpe { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--line); }
.fpop-periodo { width: 310px; }
.fatalhos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fatalhos a { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--txt); text-decoration: none; }
.fatalhos a:hover { border-color: var(--gold); background: var(--accent-soft); color: var(--accent-ink); }
.fdatas { display: flex; gap: 8px; margin-bottom: 12px; }
.fdatas label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fdatas input { width: 100%; min-width: 0; min-height: 38px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; font-size: 14px; color: var(--ink); }
.fetq { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 5px 0 11px; border-radius: 99px; background: var(--accent-soft); border: 1px solid var(--accent-line, var(--c-bd-ebd5b5)); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.fetq a { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--accent-ink); text-decoration: none; font-size: 12px; }
.fetq a:hover { background: var(--c-bg-f1dec2); }
.flimpar { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.flimpar:hover { color: var(--ink); }
.fconta { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fvazio { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 16px; padding: 46px 20px; background: var(--c-bg-ffffff); border: 1px dashed var(--c-bd-d8dae2); border-radius: 14px; text-align: center; }
.fvazio b { font-size: 17px; }
.fvazio p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .fbar { gap: 8px; }
  .fseg > a, .fseg summary { padding: 0 9px; font-size: 13px; }
  .fconta { margin-left: 0; flex-basis: 100%; }
  /* caixinhas viram folha que sobe de baixo; escolhe tudo e toca em "Filtrar" */
  .fpop-wrap[open]::before { content: ''; position: fixed; inset: 0; z-index: 60; background: var(--c-bg-16181d-35); }
  .fpop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 61; width: auto; max-height: 82vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .fpop-filtros { grid-template-columns: 1fr; }
  .fpop .fpe .btn-pri { flex: 1; justify-content: center; min-height: 44px; }
}
select.chip-f { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233d4150' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.board-wrap { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 8px; position: relative; }
.board-wrap.rolando, .board-wrap.rolando * { cursor: grabbing !important; user-select: none; }
/* Barra do Quadro: fica presa no rodape da tela, mesmo com coluna comprida */
html body .board-trilho { position: sticky; bottom: 0; z-index: 5; margin-top: -12px; padding: 4px 0; overflow-x: auto; overflow-y: hidden; background: var(--bg); scrollbar-color: auto; scrollbar-width: auto; }
.board-trilho > div { height: 1px; }
.board-trilho::-webkit-scrollbar { height: 10px; -webkit-appearance: none; }
.board-trilho::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.board-trilho::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 99px; }
.board-trilho::-webkit-scrollbar-thumb:hover { background: var(--ink); }
@media (min-width: 901px) { .board-wrap { scrollbar-width: none; } .board-wrap::-webkit-scrollbar { display: none; } }
@media (max-width: 900px) { html body .board-trilho { display: none; } }
.board { display: flex; gap: 14px; align-items: flex-start; min-width: max-content; }
.board[data-quadro] { min-width: 100%; }
.board[data-quadro] .col { flex: 1 0 248px; width: auto; max-width: 340px; }
.col { flex: none; width: 292px; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; padding: 4px; min-height: 120px; transition: background .12s; }
.col.alvo { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.colh { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; }
.colh h2 { font-size: 14px; font-weight: 700; }
.colh .n { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kc { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--c-bg-ffffff); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); cursor: grab; }
.kc:hover { box-shadow: var(--shadow-up); color: var(--ink); }
.kc.arrastando { opacity: .45; }
.kc.kc-ver { cursor: pointer; }
.kt { font-size: 14px; font-weight: 600; line-height: 1.35; }
.km { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.km .prazo { margin-left: auto; font-size: 12.5px; }
.col-ok { background: var(--ok-bg); }
.col-ok .colh h2 { color: var(--ok); }
/* Abas de área (segmentado) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--c-bg-ececf1); }
.seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--c-bg-ffffff); color: var(--ink); box-shadow: 0 1px 2px var(--c-sh-16181d-12); }
.seg .c { font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---- Calendário ----------------------------------------------- */
.legenda { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.leg-itens { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cal-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cal-nav .icb { border: 1px solid var(--line-2); background: var(--c-bg-ffffff); }
.cal-mes { font-size: 16px; min-width: 132px; text-align: center; }
.dia-pontos, .so-cel-f { display: none; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--txt); }
.cal-wrap { background: var(--c-bg-ffffff); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; overflow-x: auto; position: relative; }
.cal { min-width: 840px; }
.cal-sem { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-sem div { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 10px 8px; }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.dia { min-height: 128px; background: var(--c-bg-ffffff); padding: 8px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dia.fora { background: var(--c-bg-fafafb); }
.dia.fora .dn { color: var(--c-tx-a2a6b2); }
.dia.hoje { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 8px; } /* arredondado: no canto da grade a borda não é cortada */
.dn { font-size: 13px; font-weight: 700; color: var(--txt); padding: 2px; display: inline-flex; align-items: center; gap: 6px; }
.dia.hoje .dn b { background: var(--ink); color: var(--c-on-ffffff); border-radius: 99px; padding: 0 7px; }
.dia { cursor: pointer; } /* clicar no vazio do dia = novo evento nesse dia */
.dia-topo { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.dia-novo { display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--accent-ink); cursor: pointer; opacity: 0; transition: opacity .12s; }
.dia:hover .dia-novo, .dia-novo:focus-visible { opacity: 1; }
.dia-novo:hover { background: var(--accent-soft); }
@media (hover: none) { .dia-novo { opacity: .75; } }
.post { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 8px; background: var(--c-bg-f5f5f8); text-decoration: none; color: var(--ink); min-width: 0; }
.post:hover { background: var(--c-bg-ececf3); color: var(--ink); }
.post .pt { font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .pm { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.fmt { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--c-bg-ececf1); color: var(--txt); flex: none; }
.fmt-reels, .fmt-video { background: var(--c-bg-fde8d7); color: var(--c-tx-8a3a0c); }
.fmt-carrossel { background: var(--c-bg-f6e7d2); color: var(--accent-ink); }
.fmt-estatico, .fmt-grid { background: var(--c-bg-e6f3ee); color: var(--ok); }
.fmt-story { background: var(--c-bg-fde2ea); color: var(--c-tx-9d174d); }
.fmt-capa { background: var(--c-bg-e0f0fb); color: var(--c-tx-075985); }
.st-late { background: var(--late) !important; }
.st-ok { background: var(--c-bg-15803d) !important; }
.dia .mais-dia { font-size: 12px; font-weight: 700; color: var(--accent-ink); border: 0; background: none; padding: 2px; text-align: left; font-family: inherit; cursor: pointer; min-height: 24px; }
.dia.fechado .extra { display: none; }

/* ---- Tabelas (configuração) ----------------------------------- */
.table-wrap { overflow-x: auto; position: relative; } /* contém os .sr-only da tabela (senão vazam e criam rolagem lateral) */
.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tb th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb tr.off td { color: var(--muted); }
.tb select, .tb input[type=text], .tb input[type=number] { min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--c-bg-ffffff); font: inherit; font-size: 13.5px; color: var(--ink); }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fl { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ty { display: flex; align-items: center; min-height: 40px; padding: 0 12px 0 26px; border-radius: 8px; text-decoration: none; color: var(--txt); font-size: 13.5px; font-weight: 500; gap: 8px; }
.ty:hover { background: var(--hover); color: var(--ink); }
.ty.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ty small { margin-left: auto; font-size: 12px; opacity: .8; }
.sim { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--bg); min-width: 118px; flex: 1 1 118px; }
.sim b { font-size: 14px; }
.sim span { font-size: 12px; color: var(--muted); }
.cfg-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Avisos --------------------------------------------------- */
.av-item { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.av-item:hover { background: var(--c-bg-fafafb); color: var(--ink); }
.av-item.nova { background: var(--c-bg-f7f7fe); }
.av-item .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--c-bg-f2f2f6); color: var(--muted); }
.av-item.nova .ic { background: var(--accent-soft); color: var(--accent-ink); }
.av-item b { font-size: 14px; }
.av-item p { margin: 2px 0 0; font-size: 13.5px; color: var(--txt); line-height: 1.45; }
.sw-push { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--c-bg-c9cdd8); cursor: pointer; flex: none; padding: 0; }
.sw-push::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: var(--c-bg-ffffff); transition: left .15s; }
.sw-push[aria-checked="true"] { background: var(--accent); }
.sw-push[aria-checked="true"]::after { left: 25px; }
.sw-push:disabled { opacity: .5; cursor: not-allowed; }
.passos { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--txt); }

/* Faixa "instale o app" / "ative as notificações" */
.ins { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--c-tx-e6e9f5); border-radius: 14px; padding: 12px 12px 12px 14px; box-shadow: 0 10px 30px var(--c-sh-16181d-35); }
.ins img, .ins .ins-ic { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.ins .ins-ic { background: var(--brand); color: var(--c-on-ffffff); display: flex; align-items: center; justify-content: center; }
.ins .ins-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; }
.ins .ins-t strong { color: var(--c-tx-ffffff); font-size: 14px; }
.ins .ins-t svg { width: 15px; height: 15px; vertical-align: -2px; }
.ins .ins-ok { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--brand); color: var(--c-on-ffffff); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ins .ins-x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--c-tx-9aa2c0); cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (min-width: 901px) { .ins { right: auto; left: 260px; bottom: 24px; max-width: 420px; } }

/* ---- Login ---------------------------------------------------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-links { margin: 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; text-align: center; }
.auth-links a { color: var(--accent-ink); }

/* ---- Páginas públicas (Sobre, Privacidade, Termos) ----------- */
body.pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.pub-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px max(16px, calc((100% - 960px) / 2)); background: var(--c-bg-16181d); }
.pub-marca { display: flex; align-items: center; gap: 10px; color: var(--c-tx-ffffff); text-decoration: none; }
.pub-marca b { display: block; font-size: 15px; }
.pub-topo .brand-mark { background: var(--gold); color: var(--c-tx-16181d); }
.pub-nav .btn-pri { background: var(--gold); border-color: var(--gold); color: var(--c-tx-16181d); }
.pub-nav .btn-pri:hover { background: var(--c-bg-e09a45); }
.pub-marca small { display: block; font-size: 12px; color: var(--gold); font-weight: 600; }
.pub-nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.pub-nav a:not(.btn) { color: var(--c-tx-d7d9e0); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 0; }
.pub-nav a:not(.btn):hover, .pub-nav a[aria-current] { color: var(--gold); }
.pub-miolo { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 40px 16px 56px; display: flex; flex-direction: column; gap: 28px; }
.pub-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pub-selo { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; }
.pub-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; margin: 0; line-height: 1.1; }
.pub-lead { font-size: 17px; line-height: 1.55; max-width: 680px; margin: 0; color: var(--ink); }
.pub-hero .meta { margin: 0; }
.pub-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.pub-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pub-grade article, .pub-bloco, .pub-texto { background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.pub-grade article { border-top: 3px solid var(--gold); }
.pub-grade h2 { font-size: 16px; margin: 0 0 6px; }
.pub-grade p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pub-bloco h2 { font-size: 19px; margin: 0 0 8px; }
.pub-bloco p, .pub-bloco li, .pub-texto p, .pub-texto li { font-size: 15px; line-height: 1.6; }
.pub-bloco ul, .pub-texto ul { padding-left: 20px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.pub-bloco a, .pub-texto a, .pub-rodape a { color: var(--accent-ink); }
.pub-texto { padding: 28px clamp(18px, 4vw, 40px); max-width: 820px; width: 100%; margin: 0 auto; }
.pub-texto h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 4px; }
.pub-texto h2 { font-size: 18px; margin: 26px 0 6px; }
.pub-texto h3 { font-size: 15.5px; margin: 16px 0 4px; }
.pub-texto code { font-size: 13px; background: var(--bg); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.pub-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px max(16px, calc((100% - 960px) / 2)); font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-2); background: var(--c-bg-ffffff); }

/* ---- Celular / tablet ---------------------------------------- */
@media (max-width: 900px) {
  .side { display: none; }
  .app { flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: var(--c-bg-ffffff-94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar .sp { margin-left: auto; }
  .tb-sino { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; color: var(--txt); text-decoration: none; }
  .tb-sino.on { background: var(--accent-soft); color: var(--accent-ink); }
  .tb-sino:active { background: var(--hover); }
  .topbar .eu { width: 38px; height: 38px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
  .topbar .menu { right: 0; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--c-bg-ffffff); border-top: 1px solid var(--line); padding: 4px 6px calc(8px + env(safe-area-inset-bottom)); }
  /* Safari do iOS 26 (tela de ponta a ponta) pinta a faixa do relógio e a da barra recolhida embaixo
     com o fundo do <html>/<body> — não usa mais o theme-color. Fundo branco como as barras; o cinza das
     telas fica no .app. Com a conversa aberta, a cor do campo de escrever. */
  html, body { background: var(--c-bg-ffffff); }
  .app { background: var(--bg); }
  html:has(body.chat-aberto), body.chat-aberto { background: var(--c-bg-f7f5f1); }
  .bottomnav a, .bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; color: var(--muted); text-decoration: none; font: inherit; font-size: 11px; font-weight: 600; border: 0; background: none; cursor: pointer; }
  .bottomnav .on { color: var(--ink); }
  .bottomnav .plus { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--c-on-ffffff); display: flex; align-items: center; justify-content: center; }
  .bn-ic { position: relative; display: inline-flex; }
  .bn-dot { position: absolute; top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--red-dot); color: var(--c-tx-ffffff); font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; }
  .main { padding: 8px 16px 104px; gap: 14px; }
  .page-head h1 { font-size: 24px; }
  .page-head .busca, .so-desk { display: none; }
  .tabs { gap: 4px; padding: 4px; background: var(--c-bg-ececf1); border-radius: 10px; border: 0; }
  .tabs a { flex: 1; justify-content: center; min-height: 40px; border: 0; border-radius: 8px; margin: 0; font-size: 13.5px; padding: 0 4px; }
  .tabs a.on { background: var(--c-bg-ffffff); box-shadow: 0 1px 2px var(--c-sh-16181d-10); }
  .tabs a .c, .tabs a.on .c { background: none; color: inherit; padding: 0; }
  .item { padding: 12px 8px 12px 14px; }
  .item .mais-pop { display: none; }
  .gaveta { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: none; height: 88vh; height: min(88dvh, calc(100dvh - env(safe-area-inset-top) - 12px)); border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px var(--c-sh-16181d-18); }
  .gaveta::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 99px; background: var(--c-bg-d6d8e0); }
  .gaveta .g-top { padding: 18px 12px 10px 18px; }
  .gaveta .g-corpo { padding: 16px 18px; }
  .gaveta .g-pe { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
  .g-tit { font-size: 21px; }
  /* folhas que sobem de baixo: param abaixo do relógio (lá o iPhone não deixa tocar no X) */
  .janela { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-height: 92vh; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); border-radius: 20px 20px 0 0; }
  .janela .j-pe { border-radius: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .janela .j-pe .check { flex-basis: 100%; }
  .janela .j-pe .btn { flex: 1; justify-content: center; min-height: 46px; }
  .janela .j-atalho { display: none; }
  .col { width: 272px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---- Cronômetro ---------------------------------------------- */
/* Popup central de criar/editar (dialog nativo; _popup.twig + app.js) */
.dlg { padding: 0; border: 0; width: min(560px, calc(100vw - 24px)); max-height: 86vh; border-radius: 16px; background: var(--c-bg-ffffff); color: var(--ink); box-shadow: 0 24px 60px var(--c-sh-16181d-22); }
.dlg::backdrop { background: var(--c-bg-16181d-38); }
.dlg-caixa { display: flex; flex-direction: column; max-height: 86vh; }
.dlg-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 4px 24px; }
.dlg-top h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.dlg-top .icb { margin-left: auto; }
.dlg-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.dlg-corpo { overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 24px 22px; }
.dlg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dlg-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 12px 24px; border-top: 1px solid var(--line); background: var(--c-bg-fbfbfc); border-radius: 0 0 16px 16px; }
.dlg-pe form { margin: 0; display: contents; }
.dlg-pe .dir { margin-left: auto; display: flex; gap: 8px; }
.cores { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.cores legend { padding: 0; margin-bottom: 8px; }
.cores label { cursor: pointer; display: inline-flex; }
.cores input:checked + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cores input:focus-visible + span { outline: 2px dashed var(--accent); outline-offset: 2px; }
@media (max-width: 900px) {
  .dlg { margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); border-radius: 20px 20px 0 0; }
  .dlg-caixa { max-height: 92vh; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); }
  .dlg-2 { grid-template-columns: 1fr; }
  .dlg-pe { border-radius: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Popup flutuante (canto inferior direito). Some com gaveta/janela abertas. */
.crono-pop { position: fixed; right: 24px; bottom: 24px; z-index: 45; }
body.trava .crono-pop { display: none; }
.crono-cheio { width: 300px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: 0 16px 40px var(--c-sh-16181d-16), 0 0 0 1px var(--line); }
.crono-topo { display: flex; align-items: center; gap: 8px; margin: -2px -6px -4px 0; }
.crono-rotulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-right: auto; }
.crono-pop[data-estado="pausado"] .crono-rotulo { color: var(--muted); }
.crono-tempo { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.crono-grande { font-size: 30px; line-height: 1.1; color: var(--ink); }
.crono-tarefa { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-decoration: none; color: var(--ink); }
.crono-tarefa b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crono-tarefa span { font-size: 12.5px; color: var(--muted); }
.crono-tarefa:hover b { text-decoration: underline; color: var(--ink); }
.crono-pausas { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.crono-pausas-cab { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.crono-pausas-cab b { font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink-2, var(--txt)); }
.crono-pausas ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; max-height: 120px; overflow: auto; }
.crono-pausas li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--txt); font-variant-numeric: tabular-nums; }
.crono-pausas li b { font-weight: 600; }
.crono-pausas li.agora { color: var(--ink); font-weight: 700; }
.crono-pausas li.mais { color: var(--muted); font-size: 12px; }
.crono-acoes { display: flex; gap: 8px; }
.crono-acoes .btn { flex: 1; }
.crono-pop[data-estado="rodando"] [data-crono-acao="retomar"], .crono-pop[data-estado="pausado"] [data-crono-acao="pausar"] { display: none; }
.crono-mini { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: var(--c-on-ffffff); font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 10px 28px var(--c-sh-16181d-25); }
.crono-mini .crono-luz { background: var(--gold); }
.crono-pop.minimizado .crono-cheio { display: none; }
.crono-pop.minimizado .crono-mini { display: inline-flex; }
.crono-pop[data-estado="pausado"] .crono-mini { background: var(--c-bg-3d4150); }
.crono-luz { width: 8px; height: 8px; border-radius: 99px; background: var(--gold); flex: none; }
.crono-pop[data-estado="rodando"] .crono-luz, .crono-chip.rodando .crono-luz { animation: crono-pulsa 1.4s ease-in-out infinite; }
.crono-pop[data-estado="pausado"] .crono-luz, .crono-chip.pausado .crono-luz { background: var(--c-bg-a2a6b2); animation: none; }
@keyframes crono-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .crono-luz { animation: none !important; } }
/* Aviso rápido não encosta no cronômetro: no computador vai um pouco para a esquerda;
   no celular sobe acima da pílula do cronômetro. */
body:has(.crono-pop:not([hidden]):not(.minimizado)) .toast { left: calc(50% - 170px); }
@media (max-width: 900px) {
  .crono-pop { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .crono-cheio { width: min(300px, calc(100vw - 24px)); }
  body:has(.crono-pop:not([hidden])) .toast { left: 50%; bottom: calc(132px + env(safe-area-inset-bottom)); }
}
/* Gaveta: "Iniciar" quando não roda aqui; relógio + botões quando roda nesta tarefa */
.crono-chip { display: flex; align-items: center; }
.crono-chip .crono-iniciar { min-height: 32px; }
.crono-chip .crono-iniciar .meta { font-size: 12px; font-weight: 600; }
.crono-chip .crono-aqui { display: none; align-items: center; gap: 2px; min-height: 34px; padding: 0 2px 0 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.crono-chip .crono-aqui .crono-tempo { margin-left: 6px; margin-right: 2px; }
.crono-chip .crono-bt { width: 30px; height: 30px; color: inherit; }
.crono-chip.aqui .crono-iniciar { display: none; }
.crono-chip.aqui .crono-aqui { display: inline-flex; }
.crono-chip.pausado .crono-aqui { background: var(--c-bg-f2f2f6); color: var(--txt); }
.crono-chip.rodando [data-crono-acao="retomar"], .crono-chip.pausado [data-crono-acao="pausar"] { display: none; }

/* ---- Modelo simples: pessoas da tarefa, tarefas ligadas, checklists do modelo ---- */
.pessoas-t { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.pessoas-t > div { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.pessoas-t .lbl { margin: 0 2px 0 0; }
.ligada { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 13.5px; }
.ligada .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ligada:hover { background: var(--hover); }
.tabs a .c.c-alerta { background: var(--gold); color: var(--ink); }
.kc-com { margin-top: -4px; font-size: 12px; }
.ck-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.ck-op { align-items: flex-start; }

/* ---- Painel do gestor ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--c-bg-ffffff); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-ruim b { color: var(--late); }
.semanas { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: end; height: 170px; }
.sem { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.sem .barra { width: min(44px, 100%); display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.sem .barra span { display: block; min-height: 3px; }
.sem .barra span:first-child { border-radius: 4px 4px 0 0; }
.b-ok { background: var(--ok); }
.b-atraso { background: var(--late); }
.sem .n { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sem .meta { font-size: 11.5px; }
.tb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb td.late { color: var(--late); font-weight: 700; }

/* ---- Tempo gasto na gaveta ---- */
.tempo-linha { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tempo-total { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tempo-pct { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tempo-barra { height: 6px; border-radius: 99px; background: var(--c-bg-ececf1); overflow: hidden; }
.tempo-barra span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.tempo-barra span.passou { background: var(--late); }
.tempo-pessoas { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.tempo-pessoas > span { display: inline-flex; align-items: center; gap: 6px; }
.tempo-reg { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tempo-reg li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tempo-reg li:first-child { border-top: 0; }
.tempo-reg li > span:nth-child(2) { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tempo-reg li b { font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
@media (max-width: 520px) { .tempo-reg li { grid-template-columns: 48px minmax(0, 1fr) auto; } .tempo-reg li > .meta { display: none; } }

/* ── Tarefa em que o seu cronômetro está (quadro e Hoje) ───────────────────── */
.kc.minha-agora { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--gold), var(--shadow-up); }
.item.minha-agora { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--gold); }
.agora-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-ink); }
.agora-selo[hidden] { display: none !important; }
.agora-selo b { font-weight: 700; }
.agora-selo [data-agora-tempo] { color: var(--muted); font-variant-numeric: tabular-nums; }
.item .agora-selo { margin: 2px 0 1px; }
.minha-agora.rodando .crono-luz, .kc-outro.rodando .crono-luz { animation: crono-pulsa 1.4s ease-in-out infinite; }
.minha-agora.pausado .crono-luz, .kc-outro.pausado .crono-luz { background: var(--c-bg-a2a6b2); animation: none; }
.kc-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: -4px; font-size: 12px; color: var(--muted); }
.kc-outro { display: inline-flex; align-items: center; gap: 5px; }
.kc-outro .crono-luz { width: 7px; height: 7px; background: var(--c-bg-3b82f6); }

/* ── Checklist da gaveta: cartão com barra de progresso, itens, adicionar ───── */
.ck-prog { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-prog.ok { color: var(--ok); }
.ck-box { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ck-cab { display: flex; align-items: center; gap: 12px; padding: 0 2px 4px; }
.ck-cab .lbl { margin: 0; }
.ck-barra { flex: 1; height: 6px; border-radius: 99px; background: var(--c-bg-efe9df); overflow: hidden; }
.ck-barra span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .25s ease; }
.ck-box.completo .ck-barra span { background: var(--ok); }
.ck-conta { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-box.completo .ck-conta { color: var(--ok); }
.ck-grupo { display: flex; flex-direction: column; }
.ck-grupo + .ck-grupo { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.ck-grupo-cab { display: flex; justify-content: space-between; padding: 2px 8px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ck-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ck-item { position: relative; display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 4px 0 8px; border-radius: 10px; }
.ck-item:hover { background: var(--hover); }
.ck-item.arrastando { opacity: .45; }
.ck-check { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.ck-cb { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ck-caixa { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--c-bd-c9ccd4); border-radius: 6px; background: var(--c-bg-ffffff); color: transparent; transition: background .15s, border-color .15s, color .15s; }
.ck-check:hover .ck-caixa { border-color: var(--accent); }
.ck-cb:checked + .ck-caixa { background: var(--accent); border-color: var(--accent); color: var(--c-on-ffffff); }
.ck-cb:focus-visible + .ck-caixa { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-txt { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; transition: color .15s; }
.ck-item.feito .ck-txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--c-tx-8e93a1); }
.ck-alca { position: absolute; left: -2px; top: 50%; width: 8px; height: 16px; margin-top: -8px; cursor: grab; opacity: 0;
  background: radial-gradient(circle, var(--c-bg-a2a6b2) 1.3px, transparent 1.5px) 0 0 / 4px 5px; }
.ck-item:hover .ck-alca { opacity: 1; }
.ck-bts { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .15s; }
.ck-bts form { margin: 0; display: flex; }
.ck-item:hover .ck-bts, .ck-item:focus-within .ck-bts { opacity: 1; }
.ck-bt { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.ck-bt:hover { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.ck-bt-x:hover { color: var(--c-tx-b91c1c); }
.ck-item.editando { background: var(--accent-soft); }
.ck-item.editando > .ck-check, .ck-item.editando > .ck-bts, .ck-item.editando > .ck-alca { display: none; }
.ck-editar { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.ck-editar[hidden] { display: none; }
.ck-editar .inp { flex: 1; min-width: 0; width: auto; min-height: 36px; }
.ck-novo { position: relative; display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; padding: 0 8px; border-radius: 10px; }
.ck-novo:focus-within { background: var(--accent-soft); }
.ck-mais { width: 20px; height: 20px; margin-top: 10px; flex: none; display: grid; place-items: center; border-radius: 6px; color: var(--accent-ink); border: 1.5px dashed var(--c-bd-d8c3a3); }
.ck-novo textarea { flex: 1; min-height: 40px; padding: 10px 0; resize: none; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.ck-novo textarea::placeholder { color: var(--muted); }
.ck-dica { display: none; align-self: center; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ck-novo:focus-within .ck-dica { display: inline; }
.ck-novo.enviando { opacity: .6; pointer-events: none; }
@media (hover: none) { .ck-bts { opacity: 1; } .ck-alca { display: none; } }
@media (max-width: 600px) { .ck-novo:focus-within .ck-dica { display: none; } }

/* ── "Você parou aqui" (última tarefa com tempo contado) ───────────────────── */
.kc.minha-ultima { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow); }
.item.minha-ultima { box-shadow: inset 4px 0 0 var(--gold); }
.parou-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-ink); }
.parou-selo b { font-weight: 700; }
.parou-selo span { color: var(--muted); }
.item .parou-selo { margin: 2px 0 1px; }
.parou-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--c-sh-ecd3ae); }
.parou-card .parou-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--gold); display: grid; place-items: center; flex: none; }
.parou-card .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.parou-card .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.parou-card .tt { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parou-card .btn { flex: none; gap: 6px; }
.crono-ligado .minha-ultima:not(.minha-agora) { box-shadow: var(--shadow); }
.crono-ligado .item.minha-ultima:not(.minha-agora) { box-shadow: none; }
.crono-ligado [data-parou-selo], .crono-ligado [data-parou-card] { display: none !important; }
@media (max-width: 600px) { .parou-card { flex-wrap: wrap; } .parou-card .btn { width: 100%; justify-content: center; } }

/* ── Prioridade: bandeira (Alta / Urgente) e faixa à esquerda ───────────────── */
.prio { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
.prio-u { color: var(--c-tx-b91c1c); }
.prio-a { color: var(--c-tx-c2410c); }
.kc .prio { align-self: flex-start; padding: 3px 7px; border-radius: 99px; margin-bottom: -4px; }
.kc .prio-u { background: var(--c-bg-fee2e2); }
.kc .prio-a { background: var(--c-bg-ffedd5); }
.kc.prio-100:not(.minha-agora):not(.minha-ultima) { box-shadow: inset 3px 0 0 var(--c-sh-dc2626), var(--shadow); }
.kc.prio-50:not(.minha-agora):not(.minha-ultima) { box-shadow: inset 3px 0 0 var(--c-sh-ea580c), var(--shadow); }

/* ── Calendário: dias de trabalho antes do prazo ───────────────────────────── */
.post.post-faixa { background: transparent; border: 1px dashed var(--line-2); opacity: .85; }
.post.post-faixa .pm { gap: 4px; }
.post.prio-100 .pt::before, .post.prio-50 .pt::before { content: "▲ "; font-size: 9px; vertical-align: 1px; }
.post.prio-100 .pt::before { color: var(--c-tx-dc2626); }
.post.prio-50 .pt::before { color: var(--c-tx-ea580c); }

/* ── Cronômetro destacado (janelinha por cima de tudo) ─────────────────────── */
.crono-pip[hidden] { display: none; }
.crono-pip.on { background: var(--accent-soft); color: var(--accent-ink); }

/* ── Nova tarefa: popup central em duas partes (o que é · quem e quando) ───── */
.janela.janela-nova { width: min(980px, calc(100vw - 24px)); top: 5vh; max-height: 90vh; }
.janela .j-corpo.nt-grade { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; gap: 0; padding: 0; }
.nt-principal { display: flex; flex-direction: column; gap: 16px; padding: 4px 24px 24px; min-width: 0; }
.nt-lado { display: flex; flex-direction: column; gap: 14px; padding: 16px 24px 20px; min-width: 0; background: var(--c-bg-fbfaf7); border-left: 1px solid var(--line); }
.nt-sec { display: flex; flex-direction: column; gap: 10px; }
.nt-sec + .nt-sec { padding-top: 14px; border-top: 1px solid var(--line); }
.nt-lado .nt-2 { gap: 10px; }
.nt-lado input[type=date] { padding: 0 8px; width: 100%; min-width: 0; }
.nt-sec .lbl { margin: 0; }
.nt-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.nt-2 > * { min-width: 0; } /* campo de data tem largura mínima própria: sem isso passa da coluna */
.nt-principal textarea, .nt-lado textarea { min-height: 0; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.nt-principal textarea[name="descricao"] { min-height: 190px; }
.nt-principal textarea[name="itens"] { min-height: 84px; }
.nt-dica { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.nt-dica:empty { display: none; }
.nt-opc { font-weight: 400; color: var(--muted); font-size: 12px; }
.seg-prio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--c-bg-ffffff); }
.seg-op { position: relative; display: flex; cursor: pointer; }
.seg-op + .seg-op { border-left: 1px solid var(--line-2); }
.seg-op input { position: absolute; opacity: 0; pointer-events: none; }
.seg-op span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; font-size: 13.5px; font-weight: 600; color: var(--txt); }
.seg-op:hover span { background: var(--hover); }
.seg-op input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg-0 input:checked + span { background: var(--ink); color: var(--c-on-ffffff); }
.seg-50 input:checked + span { background: var(--c-bg-ffedd5); color: var(--c-tx-c2410c); box-shadow: inset 0 0 0 1.5px var(--c-sh-fb923c); }
.seg-100 input:checked + span { background: var(--c-bg-fee2e2); color: var(--c-tx-b91c1c); box-shadow: inset 0 0 0 1.5px var(--c-sh-f87171); }
@media (max-width: 760px) {
  .janela.janela-nova { top: auto; width: 100%; max-height: 92vh; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); }
  .janela .j-corpo.nt-grade { grid-template-columns: 1fr; }
  .nt-principal textarea[name="descricao"] { min-height: 110px; }
  .nt-lado { border-left: 0; border-top: 1px solid var(--line); }
  .nt-2 { grid-template-columns: 1fr; }
  .nt-principal { padding: 4px 18px 18px; }
  .nt-lado { padding: 16px 18px 20px; }
}

/* ── Desempenho ─────────────────────────────────────────────────────────── */
.d-barra-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.d-rotulo { min-width: 190px; text-align: center; font-size: 14px; }
.delta { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; }
.delta.melhor { background: var(--ok-bg); color: var(--ok); }
.delta.pior { background: var(--late-bg); color: var(--late); }
.d-graficos, .d-listas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.d-serie .sem { cursor: default; border-radius: 8px; }
.d-serie .sem.atual .meta { color: var(--ink); font-weight: 700; }
.d-serie .sem:hover .barra { filter: brightness(.92); }
.b-horas { background: var(--accent); }
.ok-txt { color: var(--ok); font-weight: 600; }
.d-dica { position: fixed; z-index: 60; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--c-on-ffffff); font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px var(--c-sh-16181d-20); transform: translate(-50%, calc(-100% - 10px)); }
@media (max-width: 960px) { .d-graficos, .d-listas { grid-template-columns: 1fr; } }

.so-cel { display: none !important; }
@media (max-width: 900px) { .menu a.so-cel { display: flex !important; } }
.nav .cnt-chat { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--c-tx-16181d); display: inline-grid; place-items: center; font-size: 11.5px; }
.nav .cnt-chat[hidden] { display: none; }

/* ── Chat (estilo WhatsApp Web) ───────────────────────────────────────────── */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 68px); height: calc(100dvh - 68px); margin: -8px 0 -60px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--c-bg-ffffff); box-shadow: var(--shadow); }
.chat-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--c-bg-ffffff); }
.chat-lista-top { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.chat-lista-top h1 { margin: 0; font-size: 20px; }
.chat-busca { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border-radius: 10px; background: var(--c-bg-f2f3f5); color: var(--muted); }
.chat-busca input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.chat-lista-itens { flex: 1; overflow-y: auto; padding: 6px 0 10px; }
.chat-cli + .chat-cli { border-top: 1px solid var(--line); }
.chat-cli summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: 13.5px; }
.chat-cli summary:hover { background: var(--hover); }
.chat-cli[open] summary { padding-bottom: 8px; }
.chat-cli-meta { font-size: 12px; font-weight: 500; color: var(--muted); flex: none; }
.chat-cli[open] .chat-cli-meta { display: none; }
.chat-cli summary::-webkit-details-marker { display: none; }
.chat-cli-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-seta { width: 8px; height: 8px; border-right: 2px solid var(--c-bd-a2a6b2); border-bottom: 2px solid var(--c-bd-a2a6b2); transform: rotate(45deg); margin: -4px 4px 0; transition: transform .15s; }
.chat-cli:not([open]) .chat-seta { transform: rotate(-45deg); margin-top: 0; }
.chat-grupos { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 12px 24px; }
.chat-grupo { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); border-left: 2px solid var(--line); margin-left: 4px; }
.chat-grupo:hover { background: var(--hover); }
.chat-grupo.on { background: var(--accent-soft); border-left-color: var(--gold); }
.chat-grupo[hidden], .chat-cli[hidden] { display: none; }
.chat-grupo-l1, .chat-grupo-l2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-grupo-l1 b { flex: 1; font-size: 14px; font-weight: 600; }
.chat-hora { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-previa { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.chat-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--c-tx-16181d); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.chat-badge[hidden] { display: none; }

.chat-conv { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--c-bg-f4f0e9); background-image: radial-gradient(var(--c-bg-ce8935-07) 1px, transparent 1.2px); background-size: 18px 18px; }
.chat-vazio { margin: auto; max-width: 360px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; }
.chat-vazio h2 { margin: 6px 0 0; font-size: 18px; color: var(--ink); }
.chat-vazio-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--c-bg-16181d); color: var(--gold); display: grid; place-items: center; }
.chat-painel { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.chat-painel.soltando { outline: 3px dashed var(--gold); outline-offset: -10px; }
.chat-topo { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; background: var(--c-bg-ffffff); border-bottom: 1px solid var(--line); }
.chat-topo-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-topo-t b { font-size: 15px; }
.chat-topo-t span { font-size: 12.5px; color: var(--accent-ink); font-weight: 600; }
.chat-voltar { display: none; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 6% 10px; display: flex; flex-direction: column; gap: 2px; }
.chat-mais { display: flex; justify-content: center; padding-bottom: 8px; }
.chat-mais[hidden] { display: none; }
.chat-inicio { align-self: center; margin: 10px 0; padding: 6px 12px; border-radius: 8px; background: var(--c-bg-fff7e8); color: var(--accent-ink); font-size: 12.5px; }
.chat-dia { display: flex; justify-content: center; margin: 12px 0 8px; position: sticky; top: 4px; z-index: 2; pointer-events: none; }
.chat-dia span { padding: 4px 12px; border-radius: 8px; background: var(--c-bg-ffffff); box-shadow: 0 1px 1px var(--c-sh-16181d-08); font-size: 12px; font-weight: 600; color: var(--muted); }
.chat-msgs .msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; max-width: 78%; }
.chat-msgs .msg.seguida { margin-top: 2px; }
.chat-msgs .msg.eu { align-self: flex-end; flex-direction: row-reverse; }
.chat-msgs .msg:not(.eu).seguida { padding-left: 32px; }
.chat-msgs .msg-av { flex: none; margin-bottom: 2px; }
.chat-msgs .msg-bolha { position: relative; padding: 6px 10px 18px; border-radius: 12px; background: var(--c-bg-ffffff); box-shadow: 0 1px 1px var(--c-sh-16181d-10); min-width: 72px; max-width: 100%; overflow-wrap: anywhere; }
.chat-msgs .msg.eu .msg-bolha { background: var(--c-bg-fbeed9); }
.chat-msgs .msg:not(.seguida):not(.eu) .msg-bolha { border-top-left-radius: 4px; }
.chat-msgs .msg.eu:not(.seguida) .msg-bolha { border-top-right-radius: 4px; }
.chat-msgs .msg-autor { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); margin-bottom: 2px; }
.chat-msgs .msg-texto { font-size: 14.5px; line-height: 1.45; color: var(--ink); white-space: normal; }
.chat-msgs .msg-texto a { color: var(--c-tx-0e7490); }
.chat-msgs .msg.enviando .msg-texto { white-space: pre-wrap; }
.chat-msgs .msg.enviando .msg-hora { display: inline-flex; color: var(--c-tx-a2a6b2); }
.chat-msgs .msg-midia { display: block; max-width: min(340px, 100%); border-radius: 8px; overflow: hidden; margin: 2px 0 4px; }
.msg-midia img, video.msg-midia { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; background: var(--c-bg-e9e5dd); }
.chat-msgs .msg-audio { display: flex; align-items: center; gap: 6px; color: var(--accent-ink); }
.chat-msgs .msg-audio audio { height: 36px; width: 260px; max-width: 100%; }
.chat-msgs .msg-audio { min-width: 0; }
.chat-msgs .msg-arquivo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 2px 0 4px; border-radius: 8px; background: var(--c-bg-16181d-05); text-decoration: none; color: var(--ink); min-width: min(220px, 100%); }
.chat-msgs .msg-arq-ic { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--c-bg-16181d); color: var(--gold); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.chat-msgs .msg-arq-t { display: flex; flex-direction: column; min-width: 0; }
.chat-msgs .msg-arq-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-msgs .msg-arq-t span { font-size: 12px; color: var(--muted); }
.chat-msgs .msg-hora { position: absolute; right: 9px; bottom: 4px; font-size: 11px; color: var(--c-tx-8e93a1); font-variant-numeric: tabular-nums; }
.chat-msgs .msg-apagada { font-style: italic; color: var(--muted); font-size: 13.5px; }
.chat-msgs .msg-menu-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: var(--c-bg-ffffff-90); color: var(--muted); display: none; place-items: center; cursor: pointer; }
.chat-msgs .msg-bolha:hover .msg-menu-btn, .chat-msgs .msg-menu-btn:focus-visible, .chat-msgs .msg.acoes .msg-menu-btn, .chat-msgs .msg-bolha:has(.msg-menu) .msg-menu-btn { display: grid; }
.chat-msgs .msg.acoes .msg-bolha { box-shadow: 0 0 0 2px var(--gold); }
.chat-descer { position: absolute; right: 16px; bottom: 76px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 99px; background: var(--c-bg-ffffff); color: var(--ink); box-shadow: 0 2px 10px var(--c-sh-16181d-18); display: grid; place-items: center; cursor: pointer; }
.chat-descer svg { transform: rotate(-90deg); }
.chat-descer[hidden] { display: none; }
.chat-descer-n { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--c-tx-16181d); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chat-descer-n[hidden] { display: none; }
.chat-bandeja { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px; background: var(--c-bg-ffffff); border-top: 1px solid var(--line); }
.chat-bandeja-itens { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-bandeja .msg-arq-ic { width: 44px; height: 44px; flex: none; border-radius: 6px; background: var(--c-bg-16181d); color: var(--gold); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.chat-bandeja[hidden] { display: none; }
.chat-anexo-item { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--c-bg-fbfaf7); max-width: 280px; }
.chat-anexo-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.chat-anexo-nome { font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-anexo-barra { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.chat-anexo-barra span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.chat-anexo-dica { width: 100%; margin: 0; }
.chat-escrever, .chat-gravando { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; background: var(--c-bg-f7f5f1); border-top: 1px solid var(--line); }
.chat-escrever[hidden], .chat-gravando[hidden] { display: none; }
.chat-escrever textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 160px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--c-bg-ffffff); font: inherit; font-size: 14.5px; line-height: 1.4; resize: none; outline: none; color: var(--ink); overflow-y: hidden; scrollbar-width: thin; }
.chat-escrever textarea:focus { border-color: var(--accent); }
.chat-anexo, .chat-mic { width: 42px; height: 42px; flex: none; color: var(--txt); cursor: pointer; }
.chat-mic[hidden], .chat-enviar[hidden] { display: none; }
.chat-enviar { width: 42px; height: 42px; flex: none; border: 0; border-radius: 99px; background: var(--c-bg-16181d); color: var(--gold); display: grid; place-items: center; cursor: pointer; }
.chat-gravando { align-items: center; }
.chat-gravando b { font-variant-numeric: tabular-nums; font-size: 15px; }
.chat-gravando .meta { margin-right: auto; }
.chat-rec-luz { width: 10px; height: 10px; border-radius: 99px; background: var(--c-bg-dc2626); animation: crono-pulsa 1.2s ease-in-out infinite; }
/* Abas da lista: Com mensagens · Não lidas · Todas */
.chat-abas { display: flex; gap: 4px; }
.chat-abas button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; white-space: nowrap; border: 0; border-radius: 99px; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.chat-abas button:hover { background: var(--hover); color: var(--ink); }
.chat-abas button.on { background: var(--c-bg-16181d); color: var(--c-tx-ffffff); }
.chat-abas b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--c-tx-16181d); font-size: 11px; display: inline-grid; place-items: center; }
.chat-abas b[hidden] { display: none; }
.chat-recentes[hidden], .chat-todos[hidden], .chat-item[hidden], .chat-lista-vazia[hidden], .chat-outros[hidden] { display: none; }
.chat-recentes { display: flex; flex-direction: column; gap: 2px; padding: 2px 8px; }
.chat-item { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.chat-item:hover { background: var(--hover); }
.chat-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--gold); }
.chat-item > .av { flex: none; }
.chat-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-item .chat-grupo-l1 b { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .chat-grupo-l1 b span { font-weight: 600; color: var(--accent-ink); }
.chat-lista-vazia { margin: 14px 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.chat-outros { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 4px; padding: 11px 12px; border: 1px dashed var(--line-2); border-radius: 10px; background: transparent; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-align: left; }
.chat-outros:hover { border-color: var(--gold); color: var(--accent-ink); }
.chat-vazio-dica { font-size: 13px; }
.chat-vazio kbd { font-family: inherit; font-size: 11.5px; font-weight: 800; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--c-bg-ffffff); color: var(--ink); }
/* Topo da conversa: quem vê e as tarefas abertas */
.chat-topo-pessoas { display: flex; margin-left: auto; padding-left: 8px; }
.chat-topo-pessoas .pav { width: 28px; height: 28px; font-size: 10.5px; border: 2px solid var(--c-bd-ffffff); margin-left: -7px; box-sizing: content-box; }
.chat-topo-pessoas .chat-topo-mais { background: var(--c-bg-eef0f3); color: var(--muted); }
.chat-topo-tarefas { flex: none; gap: 6px; }
.chat-topo-tarefas b { font-weight: 800; }
.chat-topo-pessoas:empty + .chat-topo-tarefas { margin-left: auto; }
/* Menções no texto */
.msg-texto .men { padding: 0 3px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.msg-texto .men-voce { background: var(--c-bg-f6dfb8); }
.msg.eu .msg-texto .men { background: var(--c-bg-ffffff-70); }
.msg-texto .men-ref, .msg.eu .msg-texto .men-ref { padding: 0; background: none; font-weight: 600; } /* a tarefa/evento já ganha o cartão embaixo */
/* Cartão da tarefa/evento citado (situação de agora) */
.chat-msgs .msg-cartao { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 2px; padding: 9px 11px; border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: 10px; background: var(--c-bg-ffffff); text-decoration: none; color: var(--ink); min-width: min(260px, 100%); }
.chat-msgs .msg-cartao:hover { border-color: var(--gold); }
.msg-cartao-ic { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.msg-cartao-evt { border-left-color: var(--c-bd-0e7490) !important; }
.msg-cartao-evt .msg-cartao-ic { background: var(--c-bg-e0f2f6); color: var(--c-tx-0e7490); }
.msg-cartao-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg-cartao-t b { font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.msg-cartao-rot { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.msg-cartao-sub { font-size: 12px; color: var(--muted); }
.msg-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--txt); }
.msg-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-bg-9a9eaa); }
.st-fazendo i { background: var(--c-bg-2f6fde); }
.st-em_revisao i { background: var(--c-bg-d97706); }
.st-ajustar i { background: var(--c-bg-c2261d); }
.st-aprovado i { background: var(--c-bg-0f766e); }
.st-com_cliente i { background: var(--c-bg-0e7490); }
.st-entregue i { background: var(--c-bg-15803d); }
.msg-late { color: var(--late); font-weight: 700; }
/* Menu ⋯ da mensagem */
.chat-msgs .msg-menu-btn svg { display: block; }
.msg-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 6; min-width: 190px; padding: 5px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--c-bg-ffffff); box-shadow: 0 14px 36px var(--c-sh-16181d-16); display: flex; flex-direction: column; }
.msg.eu .msg-menu, .msg-menu.dir { left: auto; right: 0; }
.msg-menu.acima { top: auto; bottom: calc(100% + 4px); }
.msg-menu button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.msg-menu button:hover, .msg-menu button:focus-visible { background: var(--accent-soft); color: var(--accent-ink); }
.msg-menu-ic { width: 18px; text-align: center; color: var(--muted); }
.msg-menu .msg-menu-perigo:hover { background: var(--c-bg-fdecea); color: var(--late); }
/* Responder: citação dentro da bolha e barra "Respondendo a…" em cima do campo */
.chat-msgs .msg-citada { display: flex; flex-direction: column; gap: 1px; width: 100%; margin: 2px 0 5px; padding: 5px 9px; border: 0; border-left: 3px solid var(--gold); border-radius: 8px; background: var(--c-bg-16181d-05); font: inherit; text-align: left; color: var(--ink); cursor: pointer; min-width: min(200px, 100%); }
.chat-msgs .msg.eu .msg-citada { background: var(--c-bg-ffffff-60); }
.msg-citada b { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.msg-citada span { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-msgs .msg.realce .msg-bolha { animation: msg-realce 1.6s ease-out; }
@keyframes msg-realce { 0%, 40% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 1px 1px var(--c-sh-16181d-10); } }
.chat-resp { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0 60px; background: var(--c-bg-f7f5f1); border-top: 1px solid var(--line); }
.chat-resp[hidden] { display: none; }
.chat-resp:not([hidden]) ~ .chat-escrever { border-top: 0; }
.chat-resp-q { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 6px 10px; border-left: 3px solid var(--gold); border-radius: 8px; background: var(--c-bg-ffffff); }
.chat-resp-q b { font-size: 12.5px; color: var(--accent-ink); }
.chat-resp-q span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-resp .icb { width: 36px; height: 36px; font-size: 20px; flex: none; }
/* Escrevendo: dica e sugestões do @ / # / */
.chat-rodape { position: relative; }
.chat-sug { position: absolute; left: 56px; bottom: calc(100% + 6px); z-index: 8; width: min(440px, calc(100% - 72px)); max-height: 340px; overflow-y: auto; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--c-bg-ffffff); box-shadow: 0 16px 40px var(--c-sh-16181d-16); }
.chat-sug[hidden] { display: none; }
.chat-sug h4 { margin: 4px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chat-sug-op { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; cursor: pointer; }
.chat-sug-op:hover { background: var(--hover); }
.chat-sug-op.on { background: var(--accent-soft); }
.chat-sug-op .pav { width: 30px; height: 30px; font-size: 11px; flex: none; }
.chat-sug-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--c-bg-f2f3f5); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.chat-sug-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-sug-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sug-t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sug-k { font-size: 11.5px; color: var(--muted); visibility: hidden; }
.chat-sug-op.on .chat-sug-k { visibility: visible; }
.chat-sug-vazio { margin: 4px 8px 8px; font-size: 13px; color: var(--muted); }
.chat-sug-rod { margin-top: 6px; padding: 8px 8px 2px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
/* Computador pequeno / iPad deitado (menu lateral + lista + conversa): a conversa não fica espremida */
@media (min-width: 901px) and (max-width: 1280px) {
  .chat { grid-template-columns: 300px minmax(0, 1fr); }
  .chat-abas { gap: 2px; }
  .chat-abas button { padding: 0 9px; font-size: 12.5px; }
  .chat-topo-pessoas, .chat-topo-tarefas-t { display: none; }
  .chat-topo-tarefas { margin-left: auto; }
  .chat-topo-t { min-width: 0; }
  .chat-topo-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-msgs { padding: 14px 3% 10px; }
  .chat-msgs .msg { max-width: 88%; }
}
/* Celular: a lista rola na própria página, como as outras telas (travar a página em 100dvh com
   overflow hidden fazia a barra de baixo subir ~90 pt no app instalado do iOS 26). A conversa aberta
   cobre a tela toda (como app de mensagem), com o campo de escrever preso embaixo e acompanhando o teclado.
   --chat-vh / --chat-top vêm do visualViewport (chat.js): no iPhone o teclado encolhe só a parte visível. */
@media (max-width: 900px) {
  body.pg-chat .app { background: var(--c-bg-ffffff); }
  body.pg-chat .main { padding: 0 0 calc(80px + env(safe-area-inset-bottom)); gap: 0; } /* espaço da barra de baixo */
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .chat-lista { border-right: 0; }
  .chat-lista-itens { overflow: visible; }
  body.chat-aberto { overflow: hidden; }
  body.chat-aberto .chat { overflow: hidden; }
  .chat .chat-conv { display: none; }
  .chat.com-conversa .chat-lista { display: none; }
  .chat.com-conversa .chat-conv { display: flex; }
  .chat-lista-top { padding: 12px 16px 10px; }
  .chat-busca { height: 42px; }
  .chat-busca input, .chat-escrever textarea { font-size: 16px; } /* menos de 16 px = iPhone dá zoom ao tocar */
  .chat-grupo { padding: 12px 12px 12px 14px; }

  body.chat-aberto .topbar, body.chat-aberto .bottomnav, body.chat-aberto .crono-pop { display: none; }
  body.chat-aberto .main { padding: 0; }
  body.chat-aberto .chat { position: fixed; left: 0; right: 0; top: var(--chat-top, 0px); height: var(--chat-vh, 100dvh); z-index: 30; }
  .chat-topo { gap: 10px; padding: 8px 12px 8px 6px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 56px; }
  .chat-voltar { display: inline-grid; width: 40px; height: 40px; }
  .chat-msgs { padding: 8px 10px 10px; overscroll-behavior: contain; }
  .chat-msgs .msg { max-width: 86%; }
  .chat-msgs .msg:not(.eu).seguida { padding-left: 30px; }
  .chat-msgs .msg-midia { max-width: min(260px, 100%); }
  .msg-midia img, video.msg-midia { max-height: 300px; }
  .chat-escrever, .chat-gravando { gap: 4px; padding: 8px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  body.teclado-aberto .chat-escrever, body.teclado-aberto .chat-gravando { padding-bottom: 8px; }
  .chat-escrever textarea { min-height: 44px; max-height: 132px; padding: 11px 14px; }
  .chat-anexo, .chat-mic, .chat-enviar { width: 44px; height: 44px; }
  .chat-bandeja { padding: 8px 10px; }
  .chat-bandeja-itens { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .chat-anexo-item { flex: none; max-width: 220px; }
  .chat-descer { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .chat-topo-pessoas, .chat-topo-tarefas-t { display: none; }
  .chat-topo-tarefas { margin-left: auto; }
  .chat-abas button { min-height: 34px; padding: 0 12px; }
  /* sugestões sobem como uma folha logo acima do campo (e do teclado) */
  .chat-sug { left: 0; right: 0; width: auto; bottom: 100%; max-height: 45vh; border-width: 1px 0 0; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px var(--c-sh-16181d-12); }
  .chat-sug-op { padding: 11px 8px; }
  .chat-resp { padding: 8px 8px 0 10px; }
  .msg-menu { min-width: 200px; }
  .msg-menu button { padding: 11px 12px; }
}
/* Sem mouse (celular/tablet): o X de apagar aparece ao tocar na própria bolha (classe .acoes), não fica por cima do texto */
@media (hover: none) {
  .chat-msgs .msg-bolha:hover .msg-menu-btn { display: none; }
  .chat-msgs .msg.acoes .msg-menu-btn { display: grid; width: 28px; height: 28px; top: -10px; right: -6px; border-radius: 99px; background: var(--c-bg-16181d); color: var(--c-tx-ffffff); box-shadow: 0 1px 4px var(--c-sh-000000-25); }
  .chat-msgs .msg.eu.acoes .msg-menu-btn { right: auto; left: -10px; } /* as minhas ficam na borda direita da tela */
}

/* ── Anexos da tarefa (descrição e comentários) ─────────────────────────── */
.anx-galeria { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.anx-item { position: relative; max-width: 100%; }
.anx-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--c-bg-f3f1ec); cursor: zoom-in; }
.anx-img img { display: block; max-width: 100%; height: auto; }
.anx-img img.sem-medida { width: auto; max-width: 280px; max-height: 180px; }
.anx-img:hover { border-color: var(--gold); }
.anx-video { display: block; max-width: min(360px, 100%); max-height: 240px; border-radius: 10px; background: var(--c-bg-16181d); }
.anx-arq { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--c-bg-ffffff); color: var(--ink); text-decoration: none; max-width: 300px; }
.anx-arq:hover { border-color: var(--gold); }
.anx-ext { width: 38px; height: 38px; flex: none; border-radius: 8px; background: var(--c-bg-16181d); color: var(--gold); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.anx-arq-t { display: flex; flex-direction: column; min-width: 0; }
.anx-arq-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anx-arq-t span { font-size: 12px; color: var(--muted); }
.anx-tirar { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border: 0; border-radius: 7px; background: var(--c-bg-16181d-72); color: var(--c-tx-ffffff); display: none; place-items: center; cursor: pointer; }
.anx-item:hover .anx-tirar, .anx-tirar:focus-visible { display: grid; }
@media (hover: none) { .anx-tirar { display: grid; } }

.anx-campo:not(.tem) { display: none; }
.anx-bandeja { display: flex; flex-wrap: wrap; gap: 6px; }
.anx-pend { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); max-width: 260px; }
.anx-pend img, .anx-pend .anx-ext { width: 38px; height: 38px; flex: none; border-radius: 7px; object-fit: cover; }
.anx-pend-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.anx-pend-t b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anx-pend-t .meta { font-size: 11.5px; color: var(--c-tx-15803d); }
.anx-barra { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.anx-barra i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
.anx-pend-x { width: 24px; height: 24px; flex: none; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.anx-pend-x:hover { background: var(--line); color: var(--ink); }
.anx-clipe { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.anx-clipe:hover { color: var(--accent-ink); border-color: var(--gold); }
.gaveta .g-pe { flex-wrap: wrap; }
.gaveta .g-pe .anx-campo { flex-basis: 100%; }
.gaveta .g-pe .anx-clipe { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 10px; flex: none; }
[data-anx-raiz].anx-soltar { outline: 2px dashed var(--gold); outline-offset: 4px; border-radius: 10px; }

/* Imagem ampliada (clique na imagem; clique de novo = tamanho real) */
dialog.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--c-bg-0c0d10-94); color: var(--c-tx-ffffff); overflow: hidden; }
dialog.lb::backdrop { background: transparent; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 18px; background: linear-gradient(var(--c-bg-0c0d10-85), var(--c-bg-0c0d10-00)); }
.lb-nome { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-conta { font-size: 13px; color: var(--c-tx-ffffff-70); margin-right: 6px; font-variant-numeric: tabular-nums; }
.lb-bt { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--c-bg-ffffff-08); color: var(--c-tx-ffffff); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.lb-bt:hover { background: var(--c-bg-ffffff-18); }
.lb-palco { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 72px 28px; overflow: hidden; }
.lb-palco img.lb-carregando { opacity: 0; }
.lb-palco img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; cursor: zoom-in; box-shadow: 0 10px 40px var(--c-sh-000000-50); transition: opacity .12s; }
dialog.lb.zoom .lb-palco { display: block; overflow: auto; text-align: center; }
dialog.lb.zoom .lb-palco img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-seta { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--c-bg-ffffff-10); color: var(--c-tx-ffffff); display: none; place-items: center; cursor: pointer; }
.lb-seta:hover { background: var(--c-bg-ce8935-90); }
.lb-seta.ant { left: 14px; }
.lb-seta.prox { right: 14px; }
dialog.lb.varias .lb-seta { display: grid; }
@media (max-width: 760px) {
  .lb-palco { padding: 60px 8px 16px; }
  .lb-seta { top: auto; bottom: 18px; transform: none; }
}

/* ── Eventos da agenda (Calendário e Hoje) ───────────────────────────────── */
.d-evento { background: var(--gold); }
button.post-evt, button.post-meet { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.post.post-evt { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--gold); }
.post.post-evt:hover { background: var(--c-bg-f6e7d2); }
.post-evt .evt-h { font-weight: 800; color: var(--accent-ink); }
.post-evt .pm { gap: 4px; }
.post.evt-outro { opacity: .75; }
.evt-novo-bt { min-height: 40px; }
/* formulário */
.evt-quando { display: flex; flex-direction: column; gap: 14px; }
.evt-quando:has(.evt-inteiro input:checked) .evt-q-hora { display: none; }
.evt-quando:has(.evt-inteiro input:checked) .evt-q-linha { grid-template-columns: 1fr; }
.evt-repete:has(option[value="nao"]:checked) .evt-ate { visibility: hidden; }
.evt-pessoas { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.evt-pessoas legend { padding: 0; margin-bottom: 2px; }
.evt-pessoas .check { min-height: 32px; }
.evt-pessoas:has(input[name="equipe_toda"]:checked) .evt-pessoa:not(.evt-equipe) { display: none; }
.evt-equipe svg { color: var(--accent-ink); margin-left: 4px; }
.evt-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.evt-pessoa { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none; }
.evt-pessoa input { position: absolute; opacity: 0; pointer-events: none; }
.evt-pessoa:has(input:checked) { border-color: var(--gold); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.evt-pessoa:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.evt-atalhos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.evt-atalho { border: 1px solid var(--line-2); background: var(--c-bg-ffffff); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.evt-atalho:hover { border-color: var(--gold); background: var(--accent-soft); }
.evt-quando { gap: 8px; }
.evt-q-linha { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.evt-mini { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.evt-mini input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.evt-meet { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.evt-meet:has(input[name="criar_meet"]:checked) { border-color: var(--gold); background: var(--accent-soft); }
.evt-switch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.evt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.evt-switch svg { flex: none; color: var(--accent-ink); }
.evt-sw { position: relative; flex: none; width: 40px; height: 24px; margin-left: auto; border-radius: 99px; background: var(--c-bg-cfd2da); transition: background .15s; }
.evt-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-bg-ffffff); box-shadow: 0 1px 2px var(--c-sh-000000-25); transition: transform .15s; }
.evt-switch input:checked ~ .evt-sw { background: var(--accent); }
.evt-switch input:checked ~ .evt-sw::after { transform: translateX(16px); }
.evt-switch input:focus-visible ~ .evt-sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.evt-meet:not(:has(input[name="criar_meet"]:checked)) .evt-meet-mais { display: none; }
.evt-meet-mais { display: flex; flex-direction: column; gap: 12px; }
.evt-meet-mais > .meta, .evt-contatos-vazio { margin: 0; }
.evt-meet textarea { min-height: 64px; }
.evt-convidar { display: flex; flex-direction: column; gap: 8px; }
.evt-contatos { display: flex; flex-wrap: wrap; gap: 6px; }
.evt-contatos:empty { display: none; }
.evt-pessoa.evt-contato { padding: 5px 12px; background: var(--c-bg-ffffff); }
.evt-mais { flex: none; border-top: 1px solid var(--line-2); padding-top: 12px; }
.evt-mais summary { display: flex; align-items: baseline; gap: 8px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.evt-mais summary::-webkit-details-marker { display: none; }
.evt-mais summary::before { content: '+'; width: 12px; font-weight: 800; }
.evt-mais[open] summary::before { content: '–'; }
.evt-mais-corpo { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.evt-convs { display: flex; flex-direction: column; gap: 4px; }
.evt-conv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; }
.evt-conv span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.evt-conv.r-accepted span { color: var(--ok); }
.evt-conv.r-declined span { color: var(--late); }
.evt-pauta { margin: 0; font-size: 14px; }
.cli-contatos { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cli-contatos legend { display: block; padding: 0; margin-bottom: 2px; }
.cli-contato { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; align-items: center; }
.cli-contato .check { min-height: 0; font-size: 13px; }
.cli-contatos > .btn { align-self: flex-start; }
@media (max-width: 520px) {
  .evt-q-linha { grid-template-columns: 1fr 1fr; }
  .evt-q-dia { grid-column: 1 / -1; }
  .cli-contato { grid-template-columns: 1fr auto; }
  .cli-contato input[type="text"] { grid-column: 1 / -1; }
}
.post-evt .pt svg { vertical-align: -1px; margin-right: 3px; color: var(--accent-ink); }
/* detalhes */
.evt-detalhe { gap: 12px; }
.evt-linha { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; color: var(--ink); }
.evt-linha > svg { flex: none; color: var(--accent-ink); }
.evt-linha a { color: var(--c-tx-0e7490); overflow-wrap: anywhere; }
.evt-quem { align-items: flex-start; }
.evt-avs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.evt-av { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.evt-cancelar { color: var(--late); }
/* bloco Agenda no Hoje */
.agenda { display: flex; flex-direction: column; gap: 8px; }
.agenda-top { display: flex; align-items: center; gap: 8px; }
.agenda-top .grp { margin: 0; }
.agenda-top a { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.agenda-lista { display: flex; flex-direction: column; gap: 6px; }
.agenda-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; background: var(--c-bg-ffffff); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 3px solid var(--gold); }
.agenda-item:hover { background: var(--c-bg-fffcf7); color: var(--ink); }
.agenda-hora { flex: none; width: 64px; display: flex; flex-direction: column; line-height: 1.2; }
.agenda-hora b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.agenda-hora span { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: capitalize; }
.agenda-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agenda-txt b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-txt .meta { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda .grp.agenda-sub { margin-top: 6px; }
.evt-dica { margin: -6px 0 0; font-size: 12px; }
.evt-quando:has(.evt-inteiro input:checked) .evt-dica { display: none; }

/* ── Botões rápidos no cartão do quadro (iniciar cronômetro e próximo passo) ── */
.kc-caixa { position: relative; display: flex; flex-direction: column; }
.kc-caixa.com-acoes > .kc { padding-bottom: 52px; }
.kc-acoes { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 6px; }
.kc-bt { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 9px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--c-bg-ffffff); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.kc-bt:hover { border-color: var(--gold); color: var(--accent-ink); }
.kc-bt:disabled { opacity: .55; cursor: default; }
.kc-crono.crono-chip .crono-iniciar { min-height: 30px; }
.kc-crono .crono-aqui { min-height: 30px; padding: 0; gap: 6px; background: transparent; }
.kc-crono .crono-bt { width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--c-bg-ffffff); color: var(--ink); }
.kc-crono .crono-bt:hover { border-color: var(--gold); color: var(--accent-ink); }
.kc-form { margin: 0 0 0 auto; display: flex; }
.kc-ok { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }
.kc-ok:hover { background: var(--c-bg-000000); border-color: var(--c-bd-000000); color: var(--gold); }
.kc-ok svg { color: var(--gold); }

/* ── Google Agenda (reuniões do Meet) ───────────────────────────────────── */
.google-pg { max-width: 760px; }
.g-cartao { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; padding: 20px; background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: var(--shadow); }
.g-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--c-bg-16181d); color: var(--gold); display: grid; place-items: center; }
.g-ok .g-ic { background: var(--c-bg-e6f3ee); color: var(--ok); }
.g-txt h2 { margin: 2px 0 6px; font-size: 17px; overflow-wrap: anywhere; }
.g-txt p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.g-conectar, .g-aviso, .g-botoes { grid-column: 2; }
.g-conectar { justify-self: start; }
.g-botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.g-botoes form { margin: 0; }
.g-agencia { margin-top: 18px; }
.g-agencia h2 { font-size: 16px; }
.g-aviso summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.g-aviso p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.agenda-item.agenda-meet { border-left-color: var(--c-bd-16181d); }
@media (max-width: 600px) {
  .g-cartao { grid-template-columns: 1fr; }
  .g-conectar, .g-aviso, .g-botoes { grid-column: 1; }
}
/* chip da reunião no calendário */
.post.post-meet { background: var(--c-bg-f1f2f6); box-shadow: inset 3px 0 0 var(--c-sh-16181d); }
.post.post-meet:hover { background: var(--c-bg-e7e9f0); }
.post-meet .evt-h { color: var(--ink); }
.d-meet { background: var(--c-bg-16181d); }
.cal-google { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.cal-google:hover { text-decoration: underline; }
.agenda-linha { position: relative; }
.agenda-linha .agenda-entrar { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.agenda-linha:has(.agenda-entrar) .agenda-item { padding-right: 104px; }

/* ---- Tour de boas-vindas (tour.js): tela escura, item do menu em destaque e o balão ---- */
.tour-capa { position: fixed; inset: 0; z-index: 80; background: transparent; }
.tour-capa.escura { background: var(--c-bg-16181d-62); }
.tour-foco { position: fixed; z-index: 81; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9999px var(--c-sh-16181d-62); transition: left .25s, top .25s, width .25s, height .25s; }
.tour-card { position: fixed; z-index: 82; padding: 18px 18px 14px; border-radius: 16px; background: var(--c-bg-ffffff); color: var(--ink); box-shadow: 0 20px 50px var(--c-sh-000000-28); transition: left .25s, top .25s; }
.tour-card h2 { margin: 4px 0 6px; font-size: 18px; line-height: 1.3; }
.tour-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--txt); }
.tour-card p b { color: var(--ink); }
.tour-card.meio h2 { font-size: 21px; }
.tour-passo { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.tour-pontos { display: flex; gap: 5px; margin: 14px 0 12px; }
.tour-pontos i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .2s; }
.tour-pontos i.on { width: 18px; background: var(--gold); }
.tour-pe { display: flex; align-items: center; gap: 8px; }
.tour-pe .sp { margin-left: auto; }
.tour-card.chama { animation: tour-chama .35s; }
@keyframes tour-chama { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
body.em-tour .crono-pop, body.em-tour .toast, body.em-tour .ins { display: none; }
@media (max-width: 900px) { .tour-pe .btn { min-height: 40px; } }

/* ---- Calendário no celular: grade compacta (7 dias, número + pontinhos) e a lista do dia tocado ---- */
@media (max-width: 900px) {
  .so-cel-f { display: flex; }
  .cal-nav { width: 100%; margin-left: 0; }
  .cal-nav .cal-mes { min-width: 0; flex: 1; text-align: center; white-space: nowrap; }
  .cal-nav .icb { flex: none; }
  .cal-nav .evt-novo-bt { margin-left: 4px; }
  .legenda { gap: 10px; position: relative; }
  .leg-pop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--c-bg-ffffff); font-size: 13px; font-weight: 700; color: var(--txt); cursor: pointer; }
  .leg-pop > summary::-webkit-details-marker { display: none; }
  .leg-pop[open] > summary { border-color: var(--gold); color: var(--accent-ink); }
  .leg-caixa { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 15; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--c-bg-ffffff); box-shadow: 0 14px 36px var(--c-sh-16181d-14); }
  .cal-wrap { padding: 8px; overflow: visible; }
  .cal { min-width: 0; }
  .cal-sem div { padding: 0 0 6px; text-align: center; font-size: 11px; letter-spacing: .02em; }
  .dia { min-height: 54px; padding: 4px 2px; gap: 3px; align-items: center; }
  .dia-topo { flex-direction: column; gap: 3px; }
  .dn { font-size: 13.5px; padding: 0; justify-content: center; min-width: 26px; height: 26px; }
  .dia.hoje { box-shadow: none; }
  .dia.hoje .dn .meta { display: none; }
  .dia.hoje .dn b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; }
  .dia.sel { box-shadow: inset 0 0 0 2px var(--gold); border-radius: 8px; background: var(--accent-soft); }
  .dia-pontos { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 8px; }
  .dia-pontos .dot { width: 6px; height: 6px; }
  .dia-pontos small { font-size: 9.5px; font-weight: 800; color: var(--muted); line-height: 1; }
  .cal-grade .post, .cal-grade .mais-dia, .cal-grade .dia-novo { display: none !important; }
  .cal-diario { flex-direction: column; gap: 8px; background: var(--c-bg-ffffff); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; }
  .cal-diario-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .cal-diario-top b { font-size: 15px; }
  .cal-diario-itens { display: flex; flex-direction: column; gap: 6px; }
  .cal-diario-itens .post { display: flex !important; }
  .cal-diario-vazio { margin: 4px 0; }
}
@media (max-width: 360px) {
  .cal-nav { gap: 6px; }
  .cal-nav .cal-mes { font-size: 14.5px; }
  .cal-nav .evt-novo-bt { padding: 0 12px; }
}

/* ---- Conectar ao Claude (MCP) ---- */
.mcp-url { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mcp-url input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--c-bg-fbfbfc); }
.mcp-nova { border: 1px solid var(--gold); background: var(--accent-soft); }
.mcp-ex, .mcp-passos { margin: 6px 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.mcp-acoes { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.g-txt { min-width: 0; }
@media (max-width: 900px) { .mcp-acoes { grid-column: 1; } }
.mcp-acoes .meta { flex-basis: 100%; margin: 0; }
.mcp-acoes form { margin: 0; }
.mcp-cmd { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--c-bg-16181d); color: var(--c-tx-f3e6d3); font-size: 12.5px; overflow-x: auto; white-space: pre; }

/* ==== Campos, selects e controles de filtro: o mesmo preenchimento em todo o sistema ====
   Duas alturas só: 40 px nos controles de filtro e de barra, 44 px nos campos de formulário.
   Select sem a aparência nativa (no iPhone ela ignora altura e preenchimento) e com a mesma setinha. */
:root {
  --ctl-h: 40px; --campo-h: 44px; --ctl-raio: 10px; --ctl-px: 12px;
  --seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233d4150' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; text-overflow: ellipsis;
  background-image: var(--seta) !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 14px 14px !important; padding-right: 36px !important; }
select[multiple], select[size]:not([size="1"]) { background-image: none !important; padding-right: var(--ctl-px) !important; }
.fld input[type=date], .fld input[type=time], .fld input[type=datetime-local], .fpe-datas input, .fpop input[type=date] { -webkit-appearance: none; appearance: none; text-align: left; }
/* controles de filtro e de barra: 40 px */
.fbtn, .fsel, .chip-f, .tb select, .tb input[type=text], .tb input[type=number], .tb input[type=date], .etapa-l select {
  min-height: var(--ctl-h); border-radius: var(--ctl-raio); padding-left: var(--ctl-px); font-size: 13.5px; }
.fbtn, .chip-f { padding-right: var(--ctl-px); }
.fsel, select.chip-f, .tb select, .etapa-l select { font-weight: 600; color: var(--ink); border: 1px solid var(--line-2); background-color: var(--c-bg-ffffff); }
.fsel.fsel-barra { min-height: var(--ctl-h); font-weight: 700; }
.chip-f.on, select.chip-f.on { background-color: var(--ink); color: var(--c-on-ffffff); }
select.chip-f.on { --seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.fseg { min-height: var(--ctl-h); box-sizing: border-box; }
.fseg > a, .fseg summary { min-height: 32px; }
/* campos de formulário: 44 px */
.fld input:not([type=checkbox]):not([type=radio]):not([type=file]), .fld select, .inp { min-height: var(--campo-h); border-radius: var(--ctl-raio); padding-left: var(--ctl-px); }
@media (max-width: 900px) {
  /* menos de 16 px faz o iPhone dar zoom ao tocar no campo */
  .fld input, .fld select, .fld textarea, .inp, .fsel, select.chip-f, .tb select, .tb input { font-size: 16px; }
  /* barra de filtros do quadro: período na largura toda, botões do mesmo tamanho */
  .fbar > .fseg { display: flex; width: 100%; }
  .fbar > .fseg > a, .fbar > .fseg > .fpop-wrap { flex: 1; }
  .fbar > .fseg > a, .fbar > .fseg summary { justify-content: center; padding: 0 6px; }
  .fbar > .fseg > .fpop-wrap > summary { width: 100%; }
}
/* barra do calendário: setas, mês e "+ Evento" na mesma altura dos filtros */
.cal-nav .icb { width: var(--ctl-h); height: var(--ctl-h); border-radius: var(--ctl-raio); }
.cal-nav .evt-novo-bt { min-height: var(--ctl-h); }
.leg-pop > summary { min-height: var(--ctl-h); border-radius: var(--ctl-raio); }

/* ── Captação: no formulário do evento, a lista e a página de cada uma ───── */
.evt-capt { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.evt-capt:has(input[data-evt-capt]:checked) { border-color: var(--gold); background: var(--accent-soft); }
.evt-capt:not(:has(input[data-evt-capt]:checked)) .evt-capt-mais { display: none; }
.evt-capt-mais { display: flex; flex-direction: column; gap: 12px; }
.evt-capt-mais > .meta { margin: 0; }
.evt-capt-saldo { margin: 0; font-weight: 600; color: var(--accent-ink); }
.evt-capt-saldo.late { color: var(--late); }
.evt-capt .evt-pessoa { background: var(--c-bg-ffffff); }
form:has(input[data-evt-capt]:checked) .evt-cli-opc { display: none; }
.evt-capt-itens { display: block; margin-top: 2px; }

.capt-pg { gap: 16px; }
.capt-aviso { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--today-bg); box-shadow: 0 0 0 1px var(--c-sh-f6dcae); }
.capt-aviso-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--c-bg-ffffff); color: var(--today); }
.capt-aviso-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; min-width: 0; }
.capt-aviso-txt b { color: var(--ink); }
.capt-aviso-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.capt-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 20px 10px; }
.capt-card-top h2 { margin-right: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.capt-card-top h2 .meta { font-weight: 500; font-size: 12.5px; }
.capt-tb { min-width: 640px; }
.capt-tb .n { text-align: right; width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.capt-tb tr.sel td { background: var(--accent-soft); }
.capt-cli { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.capt-cli:hover b { text-decoration: underline; }
.capt-nota { margin: 0; padding: 10px 20px 16px; }
.capt-lista { display: flex; flex-direction: column; padding: 0 12px 12px; }
.capt-lista .empty { margin: 4px 8px 8px; }
.capt-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; color: var(--txt); text-decoration: none; }
.capt-item + .capt-item { border-top: 1px solid var(--line); }
.capt-item:hover { background: var(--hover); }
.capt-item > svg { color: var(--muted); }
.capt-data { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; background: var(--c-bg-f2f2f6); line-height: 1.15; }
.capt-data b { font-size: 15px; color: var(--ink); }
.capt-data span { font-size: 11.5px; color: var(--muted); }
.capt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.capt-txt b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capt-txt .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capt-eq-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; max-width: 520px; }

.capt-info { display: flex; flex-direction: column; gap: 10px; }
.capt-pos { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; }
.capt-pos.extra { background: var(--late-bg); color: var(--late); }
.capt-levar { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.capt-equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.capt-eq { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px 8px 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); cursor: pointer; }
.capt-eq input { position: absolute; opacity: 0; pointer-events: none; }
.capt-eq::before { content: ''; position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid var(--c-bd-c9ccd6); border-radius: 6px; background: var(--c-bg-ffffff); }
.capt-eq:has(input:checked) { border-color: var(--gold); background: var(--accent-soft); }
.capt-eq:has(input:checked)::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.capt-eq:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.capt-eq > span { display: flex; flex-direction: column; min-width: 0; }
.capt-eq b { font-size: 14px; color: var(--ink); }
.capt-fb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.capt-fb > div { padding: 12px 14px; border-radius: 10px; background: var(--c-bg-f6f6f9); }
.capt-fb dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.capt-fb dd { margin: 4px 0 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.capt-fb dd.late { font-size: 16px; }
.capt-falta { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--late-bg); color: var(--ink); font-size: 14px; }
.capt-info .brief, #feedback .brief { margin-top: 12px !important; }
.capt-fb-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.capt-form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; max-width: 560px; }
.capt-num input { max-width: 160px; }
.capt-q { display: flex; flex-direction: column; gap: 8px; }
.capt-q > span { font-weight: 600; }
.capt-seg { display: grid; grid-template-columns: 1fr 1fr; max-width: 360px; border: 1px solid var(--line-2); border-radius: var(--ctl-raio); overflow: hidden; background: var(--c-bg-ffffff); }
.capt-op { position: relative; display: flex; cursor: pointer; }
.capt-op + .capt-op { border-left: 1px solid var(--line-2); }
.capt-op input { position: absolute; opacity: 0; pointer-events: none; }
.capt-op span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: var(--campo-h); padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--txt); text-align: center; }
.capt-op:hover span { background: var(--hover); }
.capt-op input:checked + span { background: var(--ink); color: var(--c-on-ffffff); }
.capt-op input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.capt-mal input:checked + span { background: var(--late-bg); color: var(--late); box-shadow: inset 0 0 0 1.5px var(--late); }
.capt-q .capt-mais { display: none; margin-top: 4px; }
.capt-q-fotos:has(input[name="fotos"][value="1"]:checked) .capt-mais,
.capt-q-faltou:has(input[name="faltou"][value="1"]:checked) .capt-mais { display: flex; }
.capt-form:has(input[name="avaliacao"][value="negativa"]:checked) .capt-obs-opc { display: none; }
.capt-form-pe { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 900px) {
  .capt-card-top { padding: 14px 14px 8px; }
  .capt-nota { padding: 8px 14px 14px; }
  .capt-lista { padding: 0 6px 8px; }
  .capt-item { grid-template-columns: 50px minmax(0, 1fr) 16px; gap: 10px; }
  .capt-item .chip { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -4px; }
  .capt-item > svg { grid-column: 3; grid-row: 1 / span 2; }
  .capt-data { grid-row: 1 / span 2; }
  .capt-fb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capt-seg { max-width: none; }
  .capt-form-pe .btn { flex: 1; }
  .capt-aviso-lista .btn { flex: 1 1 auto; }
}
.capt-ver { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.capt-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.capt-tb td:nth-child(2) { white-space: nowrap; }
@media (min-width: 1180px) {
  .capt-ver { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .capt-equip { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .capt-form, .capt-seg { max-width: none; }
}
@media (max-width: 700px) { /* por cliente: um cartão por cliente, números lado a lado */
  .capt-pg .table-wrap { overflow: visible; }
  .capt-tb { min-width: 0; }
  .capt-tb thead { display: none; }
  .capt-tb, .capt-tb tbody { display: block; }
  .capt-tb tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .capt-tb td { display: block; padding: 0; border: 0; }
  .capt-tb .capt-tb-cli { grid-column: 1 / -1; }
  .capt-tb .capt-tb-ciclo { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); white-space: normal; margin-top: -2px; }
  .capt-tb .n { width: auto; text-align: left; font-size: 15px; font-weight: 700; color: var(--ink); }
  .capt-tb .n::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .capt-tb .n .chip { font-size: 11px; padding: 2px 7px; }
}

/* ── Repetição: dia da semana ── */
.rep-dias { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rep-dias legend { padding: 0; margin-bottom: 6px; }
.rep-dias-l { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rep-dia { position: relative; display: flex; cursor: pointer; }
.rep-dia input { position: absolute; opacity: 0; pointer-events: none; }
.rep-dia span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--line-2); border-radius: var(--ctl-raio); background: var(--c-bg-ffffff); font-size: 12.5px; font-weight: 700; color: var(--txt); }
.rep-dia:hover span { background: var(--hover); }
.rep-dia input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }
.rep-dia input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
form:not(:has(select[name="recorrencia"] option[value="semanal"]:checked)):not(:has(select[name="recorrencia"] option[value="quinzenal"]:checked)) .rep-dias { display: none; }

/* ── Nova tarefa: salvar também como modelo ── */
.janela .j-pe .nt-modelo-nome { flex-basis: 100%; order: -1; }
#form-nova:not(:has([data-salvar-modelo]:checked)) .nt-modelo-nome { display: none; }

/* ── Duplicar tarefa ── */
.dup-resumo { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--c-bg-f6f6f9); }
.dup-resumo b { font-size: 14px; color: var(--ink); }
.dup-cab { display: flex; align-items: center; gap: 10px; }
.dup-cab .fld { margin-right: auto; }
.dup-todos { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.dup-lista { display: flex; flex-direction: column; gap: 2px; margin: -4px -6px 0; }
.dup-cli { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px; border-radius: 10px; cursor: pointer; }
.dup-cli:hover { background: var(--hover); }
.dup-cli input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.dup-cli .av { width: 26px; height: 26px; font-size: 9.5px; border-radius: 7px; }
.dup-cli .n { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dup-cli .n small { font-size: 12px; font-weight: 500; color: var(--muted); }
.dup-cli.origem { cursor: default; opacity: .62; }
.dup-cli.origem:hover { background: none; }
.dup-cli.ja small { color: var(--today); font-weight: 600; }

/* ── Quadro: criar tarefa na coluna ── */
.colh-mais { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -4px 0 -4px auto; border-radius: 8px; color: var(--muted); text-decoration: none; }
.colh-mais:hover { background: var(--hover); color: var(--ink); }
.col-add { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px dashed var(--c-bd-d6d8e0); border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.col-add:hover { border-color: var(--gold); background: var(--accent-soft); color: var(--accent-ink); }
.colh-mais:focus-visible, .col-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) { .colh-mais { width: 36px; height: 36px; } }
.fvazio-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Explicação do item do checklist */
.ck-item:has(.ck-expl) { flex-wrap: wrap; }
.ck-expl { order: 9; flex: 1 0 100%; padding: 0 8px 6px 34px; font-size: 12.5px; line-height: 1.45; color: var(--muted); white-space: pre-line; }

/* Coluna Aguardando */
:root { --espera: #a35a00; --espera-bg: #fff4e0; --espera-linha: #f6dcae; }
.d-aguardando { background: var(--espera); }
.col-agu { background: var(--espera-bg); box-shadow: inset 0 0 0 1px var(--espera-linha); }
.col-agu .colh h2 { color: var(--espera); }
.kc-espera { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border-radius: 8px; background: var(--espera-bg); color: var(--espera); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.kc-espera b { font-weight: 800; }
.kc-espera span { color: var(--txt); }
.kc-espera small { font-size: 11.5px; font-weight: 600; }
.caixa-espera { background: var(--espera-bg); color: var(--espera); }
.caixa-espera span { color: var(--txt); }
.caixa-espera b { color: var(--espera); }
.agu-quem { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.agu-quem legend { padding: 0; margin-bottom: 8px; }
.agu-pessoas { display: flex; flex-wrap: wrap; gap: 8px; }
.agu-pessoa { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--c-bg-ffffff); font-size: 14px; font-weight: 600; cursor: pointer; }
.agu-pessoa[hidden] { display: none; }
.agu-pessoa input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.agu-pessoa:hover { background: var(--hover); }
.agu-pessoa:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }
.agu-pessoa:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Novidades */
.nov { width: min(520px, calc(100vw - 24px)); }
.nov-cab { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nov-data { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nov-destaque { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.nov-selo { align-self: flex-start; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--c-on-ffffff); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nov-destaque h3, .nov-item h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.nov-destaque p, .nov-item p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--txt); }
.nov-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.nov-destaque + .nov-sec, .nov-sec + .nov-item { border-top: 0; padding-top: 0; }
.nov-item > div { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nov-ver { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.nov-sec { margin: 6px 0 -4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu button .ponto { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red-dot); color: var(--c-tx-ffffff); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.eu-av, .topbar .eu { position: relative; }
.eu-ponto { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 99px; background: var(--red-dot); box-shadow: 0 0 0 2px var(--c-sh-ffffff); }
.kc-exemplo { pointer-events: none; }

/* Biblioteca */
.bib { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bib-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bib-filtros form { margin: 0; min-width: 0; }
.bib-busca { flex: 1 1 220px; }
.bib-busca input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); font: inherit; font-size: 14px; color: var(--ink); }
.bib-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bib-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--c-bg-ffffff); font-size: 13px; font-weight: 700; color: var(--txt); text-decoration: none; }
.bib-chip:hover { background: var(--hover); }
.bib-chip.on { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }
.bib-caminho { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--muted); }
.bib-caminho a { font-weight: 600; color: var(--accent-ink); }
.bib-caminho b { color: var(--ink); font-weight: 700; }
.bib-drive { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; text-decoration: none; }
.bib-desligar { padding: 2px 4px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bib-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bib-sec h2 { margin: 0; font-size: 15px; font-weight: 800; }
.bib-tit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bib-pastas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.bib-pasta { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--c-bg-ffffff); color: var(--ink); text-decoration: none; }
.bib-pasta:hover { border-color: var(--gold); }
.bib-pasta b { font-size: 14px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.bib-pasta .q { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bib-pasta .f { font-size: 12.5px; line-height: 1.4; color: var(--txt); overflow-wrap: anywhere; }
.bib-pasta.nova { flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-height: 76px; border-style: dashed; border-color: var(--c-bd-d6d8e0); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.bib-selo { align-self: flex-start; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.bib-selo.captacao { background: var(--accent-soft); color: var(--accent-ink); }
.bib-selo.geral { background: var(--c-bg-e6f4f1); color: var(--c-tx-0f766e); }
.bib-selo.ligada { background: var(--c-bg-eeeff3); color: var(--c-tx-5d6170); }
.bib-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bib-arq { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--c-bg-ffffff); font: inherit; text-align: left; color: var(--ink); cursor: pointer; overflow: hidden; }
.bib-arq:hover { border-color: var(--gold); }
.bib-thumb { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; background: var(--c-bg-eeeff3); color: var(--c-tx-8a8e9b); overflow: hidden; }
.bib-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bib-play { position: absolute; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 99px; background: var(--c-bg-ffffff-94); color: var(--ink); }
.bib-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 5px; background: var(--c-bg-16181d-78); color: var(--c-tx-ffffff); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bib-arq-t { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.bib-arq-t b { font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.bib-arq-t span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bib-solta { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; border: 1.5px dashed var(--c-bd-c9ccd6); border-radius: 12px; text-align: center; font-size: 13.5px; color: var(--txt); }
.bib-solta.sobre { border-color: var(--gold); background: var(--accent-soft); }
.bib-env { display: flex; flex-direction: column; gap: 8px; }
.bib-env:empty { display: none; }
.bib-env-l { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.bib-env-l span { display: flex; justify-content: space-between; gap: 10px; }
.bib-env-l b { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.bib-env-l em { flex: none; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.bib-env-l.ruim em { color: var(--late); font-weight: 700; }
.bib-env-b { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bib-env-b i { display: block; width: 0; height: 100%; background: var(--gold); transition: width .2s; }
.bib-ver { width: min(960px, calc(100vw - 24px)); }
#bib-ver-t { overflow-wrap: anywhere; min-width: 0; }
.bib-ver-g { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.bib-ver-tela, .bib-ver-lado { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bib-tela { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--c-bg-16181d); }
.bib-tela iframe { display: block; width: 100%; height: 100%; border: 0; }
.bib-tela.t-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bib-dados { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 0; font-size: 13px; }
.bib-dados dt { color: var(--muted); }
.bib-dados dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bib-usar { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bib-tar-campo { position: relative; }
.bib-tar-q { width: 100%; min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); font: inherit; font-size: 14px; color: var(--ink); text-overflow: ellipsis; }
.bib-tar-q:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.bib-tar-seta { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bib-tar-lista { position: fixed; z-index: 5; display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); box-shadow: 0 12px 32px var(--c-sh-16181d-20); }
.bib-usar .btn-pri:disabled { opacity: .45; cursor: default; }
.bib-tar-lista[hidden] { display: none; }
.bib-tar { display: flex; flex: none; flex-direction: column; gap: 1px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.bib-tar[hidden] { display: none; }
.bib-tar:hover, .bib-tar.on { background: var(--accent-soft); }
.bib-tar b { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.bib-tar span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bib-tar-nada { margin: 0; padding: 12px 10px; font-size: 13px; color: var(--muted); }
.bib-ver-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.bib-lixeira { color: var(--late); }
.g-raiz { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.g-raiz input { flex: 1 1 240px; min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; }
@media (max-width: 760px) {
  .bib-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bib-ver { width: 100%; max-width: 100%; }
  .bib-ver-g { grid-template-columns: minmax(0, 1fr); }
  .bib-filtros form:first-child { flex: 1 1 100%; }
  .bib-filtros .fsel { width: 100%; max-width: none; }
}

/* Sol e lua no menu lateral: mostra o tema para o qual vai mudar */
.tema-alternar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.tema-alternar:hover { background: var(--hover); color: var(--ink); }
.tema-alternar:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tema-alternar span { display: inline-flex; }
.tema-ic-sol { display: none !important; }
html[data-tema="escuro"] .tema-ic-sol { display: inline-flex !important; }
html[data-tema="escuro"] .tema-ic-lua { display: none !important; }

/* Tema no menu da conta */
.menu-tema { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 6px 10px; font-size: 13px; color: var(--muted); }
.menu-tema span { margin-right: auto; font-weight: 600; }
.menu .menu-tema button { min-height: 30px; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 12.5px; font-weight: 700; color: var(--txt); }
.menu .menu-tema button.on { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }

.evt-linha-meet { flex-wrap: wrap; }
.evt-linha-meet .btn { margin-left: auto; }

/* Menções nos comentários da tarefa */
.msg .men { padding: 0 3px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.msg .men-voce { background: var(--c-bg-f6dfb8); }
.msg .men-tarefa { font-weight: 700; color: var(--accent-ink); text-underline-offset: 2px; overflow-wrap: anywhere; }
.men-sug { position: fixed; bottom: auto; z-index: 70; }
.men-sug .msg-late { color: var(--late); font-weight: 700; }


/* ---- Busca do topo (busca.js) --------------------------------- */
/* Computador: barra presa no topo de todas as telas, de margem a margem do conteúdo. Celular: lupa no topo abre em tela cheia. */
.bsc-topo { position: sticky; top: 0; z-index: 25; margin: -28px -40px 0; padding: 14px 40px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.bsc-caixa { position: relative; }
.bsc-linha { display: flex; align-items: center; gap: 8px; }
.bsc-voltar { display: none; }
.bsc-campo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--c-bg-ffffff); color: var(--muted); cursor: text; }
.bsc-campo:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; }
.bsc-campo input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.bsc-campo input::placeholder { color: var(--muted); }
.bsc-campo input::-webkit-search-cancel-button { display: none; }
.bsc-limpar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.bsc-limpar:hover { background: var(--hover); color: var(--ink); }
.bsc-atalho { flex: none; }
.buscando .bsc-campo > svg { animation: bsc-pulsa 1s ease-in-out infinite; }
@keyframes bsc-pulsa { 50% { opacity: .35; } }
.bsc-painel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(70vh, 640px); display: flex; flex-direction: column; background: var(--c-bg-ffffff); border-radius: 14px; box-shadow: 0 18px 50px var(--c-sh-16181d-22), 0 0 0 1px var(--line-2); overflow: hidden; }
.bsc-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.bsc-filtros:empty { display: none; }
.bsc-filtros .chip-f { min-height: 32px; padding: 0 10px; font-size: 13px; }
.bsc-filtros .chip-f small { font-size: 11.5px; font-weight: 700; opacity: .75; }
.bsc-entregues { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.bsc-lista { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px 8px 8px; }
.bsc-grupo { padding: 10px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bsc-res { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.bsc-res:hover { color: var(--ink); }
.bsc-res.sel { background: var(--hover); box-shadow: inset 3px 0 0 var(--gold); }
.bsc-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--hover); color: var(--txt); }
.bsc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bsc-tt { font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsc-tr { font-size: 13px; line-height: 1.45; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bsc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bsc-res mark { padding: 0 1px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.bsc-mais { display: block; margin: 2px 0 4px 54px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-ink); cursor: pointer; }
.bsc-vazio { padding: 28px 18px; text-align: center; font-size: 13.5px; color: var(--muted); }
.bsc-pe { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--c-bg-fbfbfc); }
.bsc-pe .kbd { font-size: 10.5px; }
.bsc-pe-dir { margin-left: auto; }
.tb-busca { border: 0; background: none; cursor: pointer; }
/* O Chat ocupa a altura da tela: desconta a barra de busca */
@media (min-width: 901px) { body.pg-chat .chat { height: calc(100vh - 130px); height: calc(100dvh - 130px); } }
@media (max-width: 900px) {
  .bsc-topo { display: none; }
  body.bsc-cheia { overflow: hidden; }
  body.bsc-cheia .bsc-topo { display: block; position: fixed; inset: 0; z-index: 60; margin: 0; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); background: var(--c-bg-ffffff); box-shadow: none; }
  body.bsc-cheia .bsc-caixa { display: flex; flex-direction: column; height: 100%; }
  body.bsc-cheia .bsc-voltar { display: inline-flex; }
  .bsc-campo input { font-size: 16px; } /* sem zoom no iPhone */
  .bsc-atalho, .bsc-pe { display: none; }
  .bsc-painel { position: static; flex: 1; min-height: 0; max-height: none; margin: 10px -12px 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
  .bsc-lista { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .bsc-mais { margin-left: 54px; }
}
@media (prefers-reduced-motion: reduce) { .buscando .bsc-campo > svg { animation: none; } }

/* ---- Hoje por cliente (sanfona) -------------------------------- */
.hc-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hc-rot { font-size: 13px; font-weight: 600; color: var(--muted); }
.hc-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--c-bg-eeeff3); }
.hc-seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.hc-seg button.on { background: var(--c-bg-ffffff); color: var(--ink); box-shadow: 0 1px 2px var(--c-sh-16181d-16); }
.hc-seg button:focus-visible, .hc-todos:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hc-todos { margin-left: auto; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-ink); cursor: pointer; }
.hc-grupos { display: flex; flex-direction: column; gap: 8px; }
.hc-grupo { border-radius: 14px; background: var(--c-bg-ffffff); box-shadow: var(--shadow); overflow: hidden; }
.hc-cab { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.hc-cab:hover { background: var(--hover); }
.hc-cab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hc-seta { flex: none; display: inline-flex; color: var(--muted); transition: transform .18s; }
.hc-grupo.aberto .hc-seta { transform: rotate(90deg); }
.hc-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hc-nome b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-nome span { font-size: 12.5px; color: var(--muted); }
.hc-pilulas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.hc-pil { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hc-pil.late { background: var(--late-bg); color: var(--late); }
.hc-pil.today { background: var(--today-bg); color: var(--today); }
.hc-pil.ajuste { background: var(--c-bg-eeeff3); color: var(--txt); }
.hc-n { flex: none; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 99px; background: var(--c-bg-eeeff3); font-size: 13px; font-weight: 800; color: var(--ink); }
.hc-corpo { display: flex; flex-direction: column; padding: 0 8px 8px 30px; }
.hc-corpo .item { padding-left: 12px; border-radius: 10px; }
.hc-corpo .item:hover { background: var(--hover); box-shadow: none; }
.hc-corpo .item + .item { border-top: 1px solid var(--line); border-radius: 0; }
@media (max-width: 900px) {
  .hc-cab { gap: 10px; padding: 10px 12px; }
  .hc-pilulas .hc-pil:not(.late) { display: none; }
  .hc-corpo { padding-left: 4px; padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .hc-seta { transition: none; } }

/* ---- Comentário novo (tf_tarefa_lidas) ------------------------- */
/* Selo no cartão do Quadro e na linha do Hoje; na tarefa, a linha "Novos comentários" e o comentário que pisca uma vez */
.cn-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px 0 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; vertical-align: 2px; }
.kc .cn-chip { align-self: flex-start; margin-top: -4px; }
.cn-chip i { width: 7px; height: 7px; flex: none; border-radius: 99px; background: var(--gold); animation: cn-luz 1.8s ease-out infinite; }
@keyframes cn-luz { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--gold) 0%, transparent); } }
.cn-divisor { display: flex; align-items: center; gap: 10px; margin: 4px 0 -4px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.cn-divisor::before, .cn-divisor::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .55; }
.cn-selo { display: inline-flex; align-items: center; min-height: 18px; margin-left: 4px; padding: 0 7px; border-radius: 99px; background: var(--gold); color: var(--c-on-ffffff); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.msg.cn-novo { margin: 0 -12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--gold); transition: background-color 1.2s ease, box-shadow 1.2s ease; }
.msg.cn-novo.pulsa { animation: cn-pulsa 1.1s ease-in-out 3; }
.msg.cn-novo.calmo { background: transparent; box-shadow: inset 3px 0 0 transparent; }
@keyframes cn-pulsa {
  0%, 100% { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--gold), 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent); }
  45% { background: var(--c-bg-f6dfb8); box-shadow: inset 3px 0 0 var(--gold), 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); }
}
@media (max-width: 900px) { .msg.cn-novo { margin: 0 -8px; padding: 10px 8px; } }
@media (prefers-reduced-motion: reduce) { .cn-chip i, .msg.cn-novo.pulsa { animation: none; } }

/* ---- Publicações (publicacoes.js), só administradores ----------- */
/* Semana com um cliente por linha, bandeja "Para agendar", painel lateral do post, feed do cliente e postar à mão. */
.pb-voltar { font-size: 13px; font-weight: 600; text-decoration: none; }
.pb-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pb-barra .sp { margin-left: auto; }
.pb-per { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pb-per .icb { width: 32px; height: 32px; }
.pb-resumo { font-size: 13px; color: var(--muted); }
.pb-resumo b { color: var(--ink); }
.pb-atencao { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-alerta { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--today-bg); color: var(--today); font-size: 13px; font-weight: 700; text-decoration: none; }
a.pb-alerta:hover { color: var(--today); box-shadow: inset 0 0 0 1px currentColor; }
.pb-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.pb-bandeja { display: grid; grid-template-columns: 210px 190px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--c-bg-ffffff); box-shadow: var(--shadow); }
.pb-band-tit { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pb-band-tit h2 { margin: 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.pb-band-tit p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pb-soltar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--c-bg-fbfbfc); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; text-align: center; cursor: pointer; }
.pb-soltar:hover { border-color: var(--gold); color: var(--accent-ink); }
.pb-soltar small { font-weight: 500; font-size: 11.5px; }
.pb-rasc { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; min-width: 0; }
.pb-rasc .pb-post { flex: 0 0 196px; padding: 6px 8px 6px 6px; }
.pb-rasc .pb-mini { width: 32px; height: 40px; }
.pb-vazio { margin: 0; font-size: 12.5px; color: var(--muted); }
.pb-semana { background: var(--c-bg-ffffff); border-radius: 16px; box-shadow: var(--shadow); overflow-x: auto; }
.pb-semana:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-tab { display: grid; grid-template-columns: 176px repeat(7, minmax(112px, 1fr)); min-width: 960px; }
.pb-th { padding: 10px 8px 8px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pb-th b { display: block; font-size: 17px; letter-spacing: -.01em; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-th.hoje { box-shadow: inset 0 -2px 0 var(--gold); }
.pb-th.hoje b { color: var(--accent-ink); }
.pb-th-cli { position: sticky; left: 0; z-index: 2; background: var(--c-bg-ffffff); }
.pb-cli { position: sticky; left: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--c-bg-ffffff); min-width: 0; }
.pb-cli-nome { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); min-width: 0; }
.pb-cli-nome span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pb-meta a { font-weight: 700; }
.pb-meta .barra { flex: 0 0 56px; height: 5px; border-radius: 99px; background: var(--c-bg-eeeff3); overflow: hidden; }
.pb-meta .barra i { display: block; height: 100%; border-radius: inherit; background: var(--c-bg-16a34a); }
.pb-meta.falta { color: var(--today); }
.pb-meta.falta .barra i { background: var(--gold); }
.pb-cel { position: relative; min-height: 92px; padding: 6px 6px 34px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pb-cel.hoje { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.pb-cel.passou { background: var(--c-bg-fbfbfc); padding-bottom: 6px; }
.pb-cel.alvo { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.pb-cel-mais { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 8px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.pb-cel:hover .pb-cel-mais, .pb-cel-mais:focus-visible { opacity: 1; }
.pb-cel-mais:hover { border-color: var(--gold); color: var(--accent-ink); }
.pb-post { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 6px 4px 4px; border: 0; border-radius: 8px; background: var(--bg); font: inherit; font-size: 12px; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.pb-post[draggable="true"] { cursor: grab; }
.pb-post:hover { box-shadow: 0 0 0 1px var(--line-2); }
.pb-post:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pb-post.arrastando { opacity: .4; }
.pb-post.pb-rascunho { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pb-rasc .pb-post.pb-rascunho { background: var(--bg); box-shadow: none; }
.pb-post.pb-avisado { box-shadow: inset 0 0 0 1.5px var(--today); }
.pb-mini { width: 24px; height: 30px; flex: none; border-radius: 5px; overflow: hidden; background: var(--c-bg-eeeff3); color: var(--muted); display: grid; place-items: center; }
.pb-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-post-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pb-post-txt b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-post-txt .pb-tt { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-post-txt span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-st { flex: none; width: 18px; height: 18px; border-radius: 99px; display: inline-grid; place-items: center; }
.pb-st-agendado { background: var(--accent-soft); color: var(--accent-ink); }
.pb-st-publicado { background: var(--ok-bg); color: var(--ok); }
.pb-st-avisado { background: var(--today-bg); color: var(--today); }
.pb-st-rascunho { background: var(--c-bg-eeeff3); color: var(--muted); }
.pb-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.pb-legenda > span { display: inline-flex; align-items: center; gap: 6px; }
.pb-legenda-dica { flex-basis: 100%; }
.pb-link { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }

/* Painel lateral do post */
.pb-fundo { position: fixed; inset: 0; z-index: 50; background: var(--c-bg-16181d-28); }
.pb-painel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(860px, 100vw); display: flex; flex-direction: column; background: var(--c-bg-ffffff); box-shadow: -18px 0 50px var(--c-sh-16181d-22); }
.pb-p-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pb-p-top { display: flex; align-items: center; gap: 10px; padding: max(14px, env(safe-area-inset-top)) 16px 12px 22px; border-bottom: 1px solid var(--line); }
.pb-p-top h2 { margin: 0 auto 0 0; font-size: 17px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pil { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pb-pil-rascunho { background: var(--c-bg-eeeff3); color: var(--txt); }
.pb-pil-agendado { background: var(--accent-soft); color: var(--accent-ink); }
.pb-pil-avisado { background: var(--today-bg); color: var(--today); }
.pb-pil-publicado { background: var(--ok-bg); color: var(--ok); }
.pb-p-corpo { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; padding: 18px 22px 22px; align-items: start; }
.pb-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pb-p-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px max(14px, env(safe-area-inset-bottom)) 22px; border-top: 1px solid var(--line); background: var(--c-bg-fbfbfc); }
.pb-p-pe .sp { margin-left: auto; }
.pb-excluir { color: var(--late); }
.pb-faixa { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: var(--txt); }
.pb-faixa > div { flex: 1; min-width: 0; }
.pb-faixa-agora { background: var(--today-bg); }
.pb-faixa-agora > svg { color: var(--today); flex: none; }
.pb-faixa-ok { background: var(--ok-bg); }
.pb-faixa-ok > svg { color: var(--ok); flex: none; }
.pb-linha2 { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: 12px; }
.pb-linha2-igual { grid-template-columns: 1fr 1fr; }
.pb-redes { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-rede { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--c-bg-ffffff); font-size: 13px; font-weight: 600; color: var(--txt); cursor: pointer; }
.pb-rede input { position: absolute; opacity: 0; pointer-events: none; }
.pb-rede .ok { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.pb-rede:has(input:checked) { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pb-rede:has(input:checked) .ok { background: var(--ink); border-color: var(--ink); color: var(--c-on-ffffff); }
.pb-rede:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-midias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pb-thumb { position: relative; flex: none; width: 76px; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; background: var(--c-bg-eeeff3); box-shadow: 0 0 0 1px var(--line-2); cursor: grab; }
.pb-thumb img, .pb-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-thumb i { position: absolute; left: 5px; top: 5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--c-bg-16181d-72); color: var(--c-tx-ffffff); font-style: normal; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.pb-thumb-x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border: 0; border-radius: 99px; background: var(--c-bg-16181d-72); color: var(--c-tx-ffffff); display: grid; place-items: center; cursor: pointer; }
.pb-thumb.enviando { display: grid; place-items: center; cursor: default; }
.pb-thumb-prog { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-thumb.arrastando { opacity: .4; }
.pb-add { flex: none; width: 76px; aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 9px; border: 1.5px dashed var(--line-2); background: var(--c-bg-fbfbfc); color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; padding: 4px; cursor: pointer; }
.pb-add:hover, .pb-add:focus-within { border-color: var(--gold); color: var(--accent-ink); }
.pb-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 600; }
.pb-checks:empty { display: none; }
.pb-checks .ok { color: var(--ok); }
.pb-checks .aviso { color: var(--today); }
.pb-blocos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -8px; }
.pb-blocos > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pb-bloco { min-height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--c-bg-ffffff); font: inherit; font-size: 12px; font-weight: 600; color: var(--txt); cursor: pointer; }
.pb-bloco:hover { border-color: var(--gold); background: var(--accent-soft); color: var(--accent-ink); }
.pb-bloco-cfg { font-size: 12px; font-weight: 600; margin-left: 2px; }
.pb-contas { display: flex; justify-content: space-between; gap: 10px; margin-top: -8px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-contas .passou { color: var(--late); }
.pb-horas { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-hora { min-height: 32px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--c-bg-ffffff); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--txt); cursor: pointer; }
.pb-hora.livre { border-color: var(--gold); background: var(--accent-soft); color: var(--accent-ink); }
.pb-hora:hover { border-color: var(--ink); }
.pb-erro { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--late-bg); color: var(--late); font-size: 13.5px; font-weight: 600; }

/* Prévia do Instagram no painel */
.pb-tel { position: sticky; top: 0; background: var(--c-bg-ffffff); border-radius: 22px; box-shadow: var(--shadow-up); padding: 12px 0 14px; overflow: hidden; }
.pb-tel-rot { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pb-tel-rot a { text-transform: none; letter-spacing: 0; font-size: 12px; }
.pb-ig-top { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); min-height: 34px; }
.pb-ig-av { width: 26px; height: 26px; border-radius: 99px; background: conic-gradient(var(--c-bg-f9ce34), var(--c-bg-ee2a7b), var(--c-bg-6228d7), var(--c-bg-f9ce34)); padding: 2px; flex: none; }
.pb-ig-av span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 99px; background: var(--c-bg-ffffff); font-size: 8px; font-weight: 800; color: var(--ink); }
.pb-ig-img { aspect-ratio: 4 / 5; background: var(--c-bg-eeeff3); display: grid; place-items: center; overflow: hidden; }
.pb-ig-img img, .pb-ig-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-ig-vazio { font-size: 12.5px; color: var(--muted); }
.pb-ig-pontos { display: flex; justify-content: center; gap: 4px; padding: 8px 0 2px; min-height: 13px; }
.pb-ig-pontos i { width: 5px; height: 5px; border-radius: 99px; background: var(--line-2); }
.pb-ig-pontos i.on { background: var(--c-bg-3b82f6); }
.pb-ig-legenda { margin: 4px 0 0; padding: 0 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pb-ig-quando { margin: 6px 0 0; padding: 0 12px; font-size: 11px; color: var(--muted); }

/* Feed do cliente */
.pb-feed-wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.pb-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; width: 100%; max-width: 520px; border-radius: 14px; overflow: hidden; background: var(--c-bg-ffffff); box-shadow: var(--shadow); }
.pb-feed-it { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--c-bg-eeeff3); cursor: pointer; overflow: hidden; font: inherit; }
.pb-feed-it[draggable="true"] { cursor: grab; }
.pb-feed-it img, .pb-feed-it video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-feed-it.agendado::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--gold); pointer-events: none; }
.pb-feed-it.alvo { outline: 3px solid var(--accent); outline-offset: -3px; }
.pb-feed-it.arrastando { opacity: .45; }
.pb-feed-it .tag { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 7px; border-radius: 99px; background: var(--c-bg-16181d-72); color: var(--c-tx-ffffff); font-size: 10.5px; font-weight: 700; }
.pb-feed-it .nome { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 7px; background: linear-gradient(to top, var(--c-bg-000000-60), transparent); color: var(--c-tx-ffffff); font-size: 11px; font-weight: 700; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-feed-lado { display: flex; flex-direction: column; gap: 10px; max-width: 360px; font-size: 13.5px; line-height: 1.55; color: var(--txt); }
.pb-feed-lado p { margin: 0; }

/* Postar à mão (aberto pelo aviso no celular) */
.pb-postar-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pb-postar-midias { display: flex; flex-direction: column; gap: 12px; }
.pb-postar-m { margin: 0; border-radius: 16px; overflow: hidden; background: var(--c-bg-ffffff); box-shadow: var(--shadow); }
.pb-postar-m img, .pb-postar-m video { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--c-bg-eeeff3); }
.pb-postar-m figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.pb-postar-passos { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.pb-postar-passos > .btn { min-height: 48px; }
.pb-onde { font-size: 14px; color: var(--txt); }
.pb-copiar { padding: 12px 14px; border-radius: 14px; background: var(--c-bg-ffffff); box-shadow: var(--shadow); }
.pb-copiar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pb-copiar p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; color: var(--ink); max-height: 220px; overflow: auto; }
.pb-ja-postei { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--c-bg-ffffff); box-shadow: var(--shadow); }
.pb-ja-postei .btn { min-height: 48px; }

/* Clientes */
.pb-clientes { display: flex; flex-direction: column; gap: 8px; }
.pb-cli-cfg { border-radius: 14px; background: var(--c-bg-ffffff); box-shadow: var(--shadow); }
.pb-cli-cfg > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; cursor: pointer; }
.pb-cli-cfg > summary::-webkit-details-marker { display: none; }
.pb-cli-cfg > summary b { font-size: 14.5px; }
.pb-cli-cfg > summary .meta { margin-right: auto; }
.pb-cli-abrir { color: var(--muted); display: inline-flex; transition: transform .15s; }
.pb-cli-cfg[open] .pb-cli-abrir { transform: rotate(90deg); }
.pb-cli-form { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 16px; }

@media (min-width: 1700px) {
  .pb-area { grid-template-columns: minmax(0, 1fr) 250px; }
  .pb-bandeja { order: 2; position: sticky; top: 90px; display: flex; flex-direction: column; align-items: stretch; }
  .pb-rasc { flex-direction: column; overflow: visible; }
  .pb-rasc .pb-post { flex: none; }
}
@media (max-width: 1100px) { .pb-bandeja { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .pb-barra .sp { display: none; }
  .pb-cel-mais { opacity: 1; }
  .pb-p-corpo { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .pb-tel { position: static; max-width: 300px; }
  .pb-linha2 { grid-template-columns: 1fr; }
  .pb-postar-grade { grid-template-columns: minmax(0, 1fr); }
  .pb-postar-passos { position: static; }
  .pb-p-pe { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pb-cel-mais, .pb-cli-abrir { transition: none; } }

/* >>> variaveis de cor (geradas por tools/tokenizar_cores.py) */
:root {
  --c-bd-000000: #000000;
  --c-bd-0e7490: #0e7490;
  --c-bd-16181d: #16181d;
  --c-bd-a2a6b2: #a2a6b2;
  --c-bd-c4c7d0: #c4c7d0;
  --c-bd-c9ccd4: #c9ccd4;
  --c-bd-c9ccd6: #c9ccd6;
  --c-bd-d6d8e0: #d6d8e0;
  --c-bd-d8c3a3: #d8c3a3;
  --c-bd-d8dae2: #d8dae2;
  --c-bd-ebd5b5: #ebd5b5;
  --c-bd-ffffff: #ffffff;
  --c-bd-ffffff-35: rgba(255, 255, 255, 0.35);
  --c-bg-000000: #000000;
  --c-bg-000000-60: rgba(0, 0, 0, .6);
  --c-bg-0c0d10-00: rgba(12, 13, 16, 0.00);
  --c-bg-0c0d10-85: rgba(12, 13, 16, 0.85);
  --c-bg-0c0d10-94: rgba(12, 13, 16, 0.94);
  --c-bg-0e7490: #0e7490;
  --c-bg-0f766e: #0f766e;
  --c-bg-15803d: #15803d;
  --c-bg-16181d: #16181d;
  --c-bg-16181d-05: rgba(22, 24, 29, 0.05);
  --c-bg-16181d-28: rgba(22, 24, 29, 0.28);
  --c-bg-16181d-35: rgba(22, 24, 29, 0.35);
  --c-bg-16181d-38: rgba(22, 24, 29, 0.38);
  --c-bg-16181d-62: rgba(22, 24, 29, 0.62);
  --c-bg-16181d-72: rgba(22, 24, 29, .72);
  --c-bg-16181d-78: rgba(22, 24, 29, 0.78);
  --c-bg-16a34a: #16a34a;
  --c-bg-2b2e37: #2b2e37;
  --c-bg-2f6fde: #2f6fde;
  --c-bg-3b82f6: #3b82f6;
  --c-bg-3d4150: #3d4150;
  --c-bg-6228d7: #6228d7;
  --c-bg-65a30d: #65a30d;
  --c-bg-6b7280: #6b7280;
  --c-bg-9a9eaa: #9a9eaa;
  --c-bg-9aa0ad: #9aa0ad;
  --c-bg-a2a6b2: #a2a6b2;
  --c-bg-b5b9c4: #b5b9c4;
  --c-bg-c2261d: #c2261d;
  --c-bg-c9cdd8: #c9cdd8;
  --c-bg-ce8935-07: rgba(206, 137, 53, 0.07);
  --c-bg-ce8935-90: rgba(206, 137, 53, 0.90);
  --c-bg-cfd2da: #cfd2da;
  --c-bg-d6d8e0: #d6d8e0;
  --c-bg-d97706: #d97706;
  --c-bg-dbe0f5: #dbe0f5;
  --c-bg-dc2626: #dc2626;
  --c-bg-e07b16: #e07b16;
  --c-bg-e09a45: #e09a45;
  --c-bg-e0f0fb: #e0f0fb;
  --c-bg-e0f2f6: #e0f2f6;
  --c-bg-e4e5ec: #e4e5ec;
  --c-bg-e6e7ee: #e6e7ee;
  --c-bg-e6f3ee: #e6f3ee;
  --c-bg-e6f4f1: #e6f4f1;
  --c-bg-e7e9f0: #e7e9f0;
  --c-bg-e9e5dd: #e9e5dd;
  --c-bg-ececf1: #ececf1;
  --c-bg-ececf3: #ececf3;
  --c-bg-eceef3: #eceef3;
  --c-bg-ee2a7b: #ee2a7b;
  --c-bg-eeeff3: #eeeff3;
  --c-bg-eef0f3: #eef0f3;
  --c-bg-efe9df: #efe9df;
  --c-bg-f1dec2: #f1dec2;
  --c-bg-f1f2f6: #f1f2f6;
  --c-bg-f2f2f6: #f2f2f6;
  --c-bg-f2f3f5: #f2f3f5;
  --c-bg-f3f1ec: #f3f1ec;
  --c-bg-f3f3f6: #f3f3f6;
  --c-bg-f4f0e9: #f4f0e9;
  --c-bg-f5f5f8: #f5f5f8;
  --c-bg-f6dfb8: #f6dfb8;
  --c-bg-f6e7d2: #f6e7d2;
  --c-bg-f6f6f8: #f6f6f8;
  --c-bg-f6f6f9: #f6f6f9;
  --c-bg-f7f5f1: #f7f5f1;
  --c-bg-f7f7fe: #f7f7fe;
  --c-bg-f9ce34: #f9ce34;
  --c-bg-fafafb: #fafafb;
  --c-bg-fbeed9: #fbeed9;
  --c-bg-fbfaf7: #fbfaf7;
  --c-bg-fbfbfc: #fbfbfc;
  --c-bg-fde2ea: #fde2ea;
  --c-bg-fde8d7: #fde8d7;
  --c-bg-fdecea: #fdecea;
  --c-bg-fee2e2: #fee2e2;
  --c-bg-ffedd5: #ffedd5;
  --c-bg-fff1e6: #fff1e6;
  --c-bg-fff7e8: #fff7e8;
  --c-bg-fffcf7: #fffcf7;
  --c-bg-ffffff: #ffffff;
  --c-bg-ffffff-08: rgba(255, 255, 255, 0.08);
  --c-bg-ffffff-10: rgba(255, 255, 255, 0.10);
  --c-bg-ffffff-18: rgba(255, 255, 255, 0.18);
  --c-bg-ffffff-60: rgba(255, 255, 255, 0.60);
  --c-bg-ffffff-70: rgba(255, 255, 255, 0.70);
  --c-bg-ffffff-90: rgba(255, 255, 255, 0.90);
  --c-bg-ffffff-94: rgba(255, 255, 255, 0.94);
  --c-on-ffffff: #ffffff;
  --c-sh-000000-25: rgba(0, 0, 0, 0.25);
  --c-sh-000000-28: rgba(0, 0, 0, 0.28);
  --c-sh-000000-50: rgba(0, 0, 0, 0.50);
  --c-sh-16181d: #16181d;
  --c-sh-16181d-08: rgba(22, 24, 29, 0.08);
  --c-sh-16181d-10: rgba(22, 24, 29, 0.10);
  --c-sh-16181d-12: rgba(22, 24, 29, 0.12);
  --c-sh-16181d-14: rgba(22, 24, 29, 0.14);
  --c-sh-16181d-16: rgba(22, 24, 29, 0.16);
  --c-sh-16181d-18: rgba(22, 24, 29, 0.18);
  --c-sh-16181d-20: rgba(22, 24, 29, 0.20);
  --c-sh-16181d-22: rgba(22, 24, 29, 0.22);
  --c-sh-16181d-25: rgba(22, 24, 29, 0.25);
  --c-sh-16181d-35: rgba(22, 24, 29, 0.35);
  --c-sh-16181d-62: rgba(22, 24, 29, 0.62);
  --c-sh-b87424-15: rgba(184, 116, 36, 0.15);
  --c-sh-dc2626: #dc2626;
  --c-sh-ea580c: #ea580c;
  --c-sh-ecd3ae: #ecd3ae;
  --c-sh-f6dcae: #f6dcae;
  --c-sh-f87171: #f87171;
  --c-sh-fb923c: #fb923c;
  --c-sh-ffffff: #ffffff;
  --c-tx-075985: #075985;
  --c-tx-0e7490: #0e7490;
  --c-tx-0f766e: #0f766e;
  --c-tx-151a2e: #151a2e;
  --c-tx-15803d: #15803d;
  --c-tx-16181d: #16181d;
  --c-tx-2f2fa0: #2f2fa0;
  --c-tx-374151: #374151;
  --c-tx-5d6170: #5d6170;
  --c-tx-8a3a0c: #8a3a0c;
  --c-tx-8a8e9b: #8a8e9b;
  --c-tx-8e93a1: #8e93a1;
  --c-tx-9aa2c0: #9aa2c0;
  --c-tx-9d174d: #9d174d;
  --c-tx-a2a6b2: #a2a6b2;
  --c-tx-b91c1c: #b91c1c;
  --c-tx-c2410c: #c2410c;
  --c-tx-d7d9e0: #d7d9e0;
  --c-tx-dc2626: #dc2626;
  --c-tx-e6e9f5: #e6e9f5;
  --c-tx-e9eaf0: #e9eaf0;
  --c-tx-ea580c: #ea580c;
  --c-tx-f3e6d3: #f3e6d3;
  --c-tx-ffffff: #fff;
  --c-tx-ffffff-70: rgba(255, 255, 255, 0.70);
}
/* <<< variaveis de cor */
