/* Gerador de propostas Saara: a ferramenta (barra, editor, lista, catálogo).
   Cores e fontes do Brand Book: papel #F4F4F4, areia #DCBFA5, petróleo #2E4F65,
   laranja #E25220, chumbo #1E1E1E. Nexa → Poppins, Gotham → Montserrat. */
:root {
  --paper: #F4F4F4;
  --white: #FFFFFF;
  --ember: #E25220;
  --ember-2: #C6431A;
  --blue: #2E4F65;
  --sand: #DCBFA5;
  --sand-2: #F3EAE1;
  --ink: #1E1E1E;
  --ink-2: #4A4744;
  --ink-3: #7A746D;
  --line: rgba(30, 30, 30, .12);
  --line-2: rgba(30, 30, 30, .07);
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-text: 'Montserrat', system-ui, sans-serif;
  --bar-h: 64px;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { height: 100%; }
body { min-height: 100%; }
body { font-family: var(--font-text); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- barra ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar-h); display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1.25rem; background: var(--white); border-bottom: 1px solid var(--line);
}
.bar__brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.bar__brand img { height: 24px; width: auto; }
.bar__brand { border: 0; background: none; padding: .35rem .25rem; margin-left: -.25rem; border-radius: 8px; cursor: pointer; }
.bar__brand:hover img { opacity: .8; }
.bar__tabs { display: flex; gap: .25rem; }
.bar__tabs button { border: 0; background: none; padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .8125rem; color: var(--ink-2); min-height: 40px; }
.bar__tabs button:hover { background: var(--paper); }
.bar__tabs button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.bar__actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.salvo { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 40px; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--ember);
  background: var(--ember); color: var(--white); font-weight: 600; font-size: .8125rem; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--ember-2); border-color: var(--ember-2); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); border-color: var(--ink-3); }
.btn--perigo { background: var(--white); color: #B42318; border-color: rgba(180, 35, 24, .3); }
.btn--perigo:hover { background: #FEF3F2; border-color: #B42318; }

/* ---------- tela da proposta ---------- */
.tela--editor { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); height: calc(100vh - var(--bar-h)); }
.editor { background: var(--white); border-right: 1px solid var(--line); min-height: 0; }
.editor__scroll { height: 100%; overflow-y: auto; padding: .75rem 1rem 2rem; }
.preview { min-height: 0; overflow: auto; padding: 32px; background: #E7E5E2; }
.preview__zoom { zoom: var(--zoom, .7); width: 210mm; margin: 0 auto; display: grid; gap: 14mm; }

/* seções do editor */
.sec { border-bottom: 1px solid var(--line-2); }
.sec > summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem .25rem; min-height: 52px;
}
.sec > summary::-webkit-details-marker { display: none; }
.sec__t { font-family: var(--font-display); font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.sec__t::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .2s ease; margin-right: .15rem; }
.sec[open] .sec__t::before { transform: rotate(45deg); }
.sec__r { font-size: .75rem; color: var(--ink-3); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.sec__c { padding: 0 .25rem 1.25rem; display: grid; gap: .85rem; }

/* campos */
.f { display: grid; gap: .3rem; min-width: 0; }
.f__r { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.f small { font-size: .75rem; color: var(--ink-3); }
.f input, .f select, .f textarea, .busca, .cat__row input, .cat__row select {
  width: 100%; min-height: 40px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.f textarea { resize: vertical; line-height: 1.5; min-height: 64px; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: rgba(30, 30, 30, .25); }
.f input:focus, .f select:focus, .f textarea:focus, .busca:focus, .cat__row input:focus, .cat__row select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(226, 82, 32, .15); }
.money { position: relative; }
.money span { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); font-size: .8125rem; color: var(--ink-3); pointer-events: none; }
.money input { padding-left: 2.1rem; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.grid3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: .6rem; }
.span2 { grid-column: 1 / -1; }
.linha { display: flex; gap: .5rem; align-items: end; }
.grow { flex: 1; }
.x { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 1.1rem; color: var(--ink-3); }
.x:hover { color: #B42318; border-color: #B42318; }

.chk, .toggle { display: flex; align-items: center; gap: .6rem; min-height: 36px; cursor: pointer; }
.chk input, .toggle input, .svc__chk input { width: 18px; height: 18px; accent-color: var(--ember); flex-shrink: 0; }
.chk em { font-style: normal; color: var(--ink-3); font-size: .8125rem; margin-left: .25rem; }
.toggle { background: var(--sand-2); border-radius: var(--radius); padding: .75rem .9rem; font-weight: 600; }

/* serviços */
.frente { display: grid; gap: .35rem; }
.frente + .frente { margin-top: .6rem; }
.frente__cab { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.frente__cab b { font-family: var(--font-display); font-weight: 600; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); }
.pill { font-size: .6875rem; font-weight: 600; background: var(--ember); color: var(--white); border-radius: 999px; padding: 0 .45rem; line-height: 1.5; }
.svc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .15s ease, background .15s ease; }
.svc:hover { border-color: rgba(30, 30, 30, .25); }
.svc.is-on { border-color: rgba(226, 82, 32, .45); background: #FFFBF8; }
.svc__chk { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; min-height: 44px; cursor: pointer; }
.svc__chk span { font-weight: 600; flex: 1; }
.svc__chk em { font-style: normal; font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.svc__edit { padding: .2rem .8rem .85rem; display: grid; gap: .7rem; }
.svc > .svc__edit:first-child { padding-top: .8rem; }
.sub > summary { cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--blue); padding: .2rem 0; list-style: none; }
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::before { content: '+ '; }
.sub[open] > summary::before { content: '− '; }
.sub[open] { display: grid; gap: .7rem; }
.add { justify-self: start; border: 1px dashed rgba(30, 30, 30, .3); background: none; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .8125rem; color: var(--ink-2); min-height: 40px; }
.add:hover { border-color: var(--ember); color: var(--ember); }

/* sistema */
.mods { display: grid; gap: .6rem; }
.mod { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; display: grid; gap: .6rem; background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chips > span { font-size: .75rem; color: var(--ink-3); margin-right: .15rem; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .3rem .7rem; font-size: .75rem; font-weight: 600; min-height: 32px; }
.chip:hover { border-color: var(--ember); color: var(--ember); }

/* investimento */
.resumo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
.resumo div { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: .8rem .9rem; display: grid; gap: .1rem; }
.resumo span { font-size: .75rem; opacity: .8; }
.resumo b { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.resumo small { font-size: .75rem; opacity: .85; }
.aviso { font-size: .8125rem; color: #93370D; background: #FFFAEB; border: 1px solid #FEDF89; border-radius: 8px; padding: .55rem .75rem; }

.editor__pe { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.25rem .25rem 0; }

/* ---------- telas de lista e catálogo ---------- */
.tela--lista, .tela--catalogo { min-height: calc(100vh - var(--bar-h)); }
.painel { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; gap: 1.25rem; }
.painel__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.painel h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -.02em; }
.nota { color: var(--ink-3); max-width: 60ch; margin-top: .25rem; }
.painel__acoes { display: flex; gap: .5rem; }
.painel__acoes label.btn { cursor: pointer; }
.busca { max-width: 420px; }
.lista { list-style: none; padding: 0; display: grid; gap: .6rem; }
.lista__vazia { color: var(--ink-3); padding: 2rem 0; }
.card { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .6rem .4rem .4rem; }
.card.is-atual { border-color: rgba(226, 82, 32, .5); }
.card__abrir { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; text-align: left; border: 0; background: none; padding: .7rem .8rem; border-radius: 8px; }
.card__abrir:hover { background: var(--paper); }
.card__num { grid-row: span 2; font-family: var(--font-display); font-weight: 600; font-size: .8125rem; color: var(--ember); }
.card__abrir b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.card__abrir b i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.card__meta { font-size: .8125rem; color: var(--ink-3); }
.card__acoes { display: flex; gap: .25rem; }
.card__acoes button { border: 0; background: none; font-size: .8125rem; font-weight: 600; color: var(--ink-2); padding: .5rem .6rem; border-radius: 8px; min-height: 40px; }
.card__acoes button:hover { background: var(--paper); }
.card__acoes .perigo { color: #B42318; }

.cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .75rem; }
.cat h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.cat__tab { display: grid; gap: .4rem; }
.cat__row { display: grid; grid-template-columns: minmax(0, 1.6fr) 150px 170px 150px; gap: .6rem; align-items: center; }
.cat__row--cab span { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.cat__nome { font-weight: 600; }

.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: .7rem 1.1rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ---------- telas menores ---------- */
@media screen and (max-width: 1000px) {
  .tela--editor { grid-template-columns: minmax(0, 1fr); height: auto; }
  .editor, .preview { min-width: 0; }
  .editor { border-right: 0; border-bottom: 1px solid var(--line); }
  .editor__scroll { height: auto; overflow: visible; }
  .preview { padding: 16px; }
  .bar { gap: .75rem; overflow-x: auto; }
  .salvo { display: none; }
  .cat__row { grid-template-columns: 1fr 1fr; }
  .cat__row--cab { display: none; }
  .cat__nome { grid-column: 1 / -1; }
}

/* ---------- rascunho ---------- */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .85rem .25rem 1rem; border-bottom: 1px solid var(--line-2); }
.status__r { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.status small { flex-basis: 100%; font-size: .75rem; color: var(--ink-3); }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: .4rem .9rem; font-size: .8125rem; font-weight: 600; color: var(--ink-2); min-height: 34px; }
.seg button[aria-pressed="true"][data-v="rascunho"] { background: var(--sand); color: var(--ink); }
.seg button[aria-pressed="true"][data-v="finalizada"] { background: #127A4B; color: #fff; }
.filtros-linha { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.filtros { display: flex; gap: .35rem; }
.filtros button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .8125rem; min-height: 38px; }
.filtros button span { color: var(--ink-3); font-weight: 500; margin-left: .15rem; }
.filtros button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filtros button[aria-pressed="true"] span { color: rgba(255,255,255,.7); }
.tag { display: block; font-style: normal; font-size: .6875rem; font-weight: 600; border-radius: 999px; padding: .1rem .5rem; margin-top: .3rem; text-align: center; }
.tag--rasc { background: var(--sand-2); color: #8A5A2B; }
.tag--ok { background: #E7F6EE; color: #127A4B; }
.card__acoes .continuar { color: var(--ember); }

/* ---------- módulos do serviço (páginas, integrações) ---------- */
.smods { display: grid; gap: .8rem; padding: .8rem; background: var(--paper); border-radius: 10px; }
.smods__t { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.smods__g { display: grid; gap: .4rem; }
.smods__g + .smods__g { padding-top: .7rem; border-top: 1px solid var(--line-2); }
.smods__g > b { font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.smod { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: 8px; padding: .35rem .35rem .35rem .5rem; }
.smod input { width: 100%; min-height: 30px; padding: .25rem .4rem; border: 1px solid transparent; border-radius: 6px; background: none; font-size: .8125rem; }
.smod input:hover { border-color: var(--line); }
.smod input:focus { outline: none; border-color: var(--ember); background: var(--white); box-shadow: 0 0 0 3px rgba(226, 82, 32, .15); }
.smod__n { font-weight: 600; }
.smod__d { grid-column: 1 / -1; color: var(--ink-2); margin-top: -.3rem; }
.x--sm { width: 30px; height: 30px; font-size: 1rem; border-color: transparent; }
.chip--novo { border-style: dashed; background: var(--white); }

/* ---------- proposta com PDF gerado (travada) ---------- */
.campos { border: 0; padding: 0; margin: 0; min-width: 0; }
.campos:disabled .f input, .campos:disabled .f select, .campos:disabled .f textarea,
.campos:disabled .smod input { background: var(--paper); color: var(--ink-2); cursor: not-allowed; }
.campos:disabled .chip, .campos:disabled .add, .campos:disabled .x, .campos:disabled .svc__chk { opacity: .5; cursor: not-allowed; }
.status--travada { display: grid; gap: .75rem; background: #EAF0F3; border: 1px solid rgba(46,79,101,.25); border-radius: var(--radius); padding: .9rem 1rem; margin: .75rem 0 .5rem; }
.status--travada b { font-family: var(--font-display); font-weight: 600; color: var(--blue); display: block; }
.status--travada small { color: var(--ink-2); font-size: .8125rem; flex-basis: auto; }
.status__acoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag--pdf { background: #EAF0F3; color: var(--blue); }

/* ---------- combinados (editor) ---------- */
.nota-sec { font-size: .8125rem; color: var(--ink-3); }
.termo { display: grid; gap: .4rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.termo.is-off { background: var(--paper); }
.termo.is-off .chk span { color: var(--ink-3); }
.termo .chk em { display: block; margin-left: 0; font-size: .75rem; }

/* ---------- celular ---------- */
.vista-mob { display: none; }
@media screen and (max-width: 1000px) {
  .vista-mob { display: flex; position: sticky; top: var(--bar-real, 0); z-index: 15; gap: .35rem; padding: .6rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); }
  .vista-mob button { flex: 1; min-height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-weight: 600; font-size: .8125rem; }
  .vista-mob button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
  body.ver-previa .tela--editor .editor { display: none; }
  body:not(.ver-previa) .tela--editor .preview { display: none; }
  .preview { min-height: calc(100vh - 120px); }
}
@media screen and (max-width: 700px) {
  body { font-size: 15px; }
  .bar { flex-wrap: wrap; height: auto; padding: .6rem 1rem .5rem; gap: .5rem; overflow: visible; }
  .bar__brand { order: 1; }
  .bar__brand img { height: 22px; }
  .bar__actions { order: 2; margin-left: auto; gap: .4rem; }
  .bar__actions [data-acao="nova"] { display: none; }
  .bar__actions .btn { padding: .5rem .9rem; }
  .bar__tabs { order: 3; width: 100%; overflow-x: auto; }
  .bar__tabs button { flex: 1; white-space: nowrap; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid3 > :first-child { grid-column: 1 / -1; }
  .editor__scroll { padding: .5rem 1rem 2rem; }
  .sec__r { max-width: 45%; }
  .painel { padding: 1.5rem 1rem 3rem; }
  .painel h1 { font-size: 1.5rem; }
  .painel__acoes { width: 100%; }
  .painel__acoes > * { flex: 1; }
  .filtros { width: 100%; overflow-x: auto; }
  .busca { max-width: none; }
  .card { flex-wrap: wrap; padding: .4rem; }
  .card__abrir { flex-basis: 100%; }
  .card__acoes { width: 100%; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: .25rem; }
  .status--travada .status__acoes .btn { flex: 1; }
  .toast { left: 1rem; right: 1rem; transform: none; text-align: center; border-radius: 14px; }
  .cat__row:not(.cat__row--cab) { padding-bottom: .75rem; border-bottom: 1px solid var(--line-2); }
  .cat__row:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* Medição dos títulos com a prévia escondida (celular): fora da tela, invisível. */
body.medindo .tela--editor .preview { display: block !important; position: absolute !important; left: -10000px; top: 0; width: 1000px; visibility: hidden; }

/* ---------- catálogo: serviços criados ---------- */
.painel__acoes { flex-wrap: wrap; }
.cat--form { border-color: rgba(226, 82, 32, .45); box-shadow: 0 8px 24px rgba(30, 30, 30, .06); }
.cat--form .f textarea { min-height: 88px; }
.cat__acoes { display: flex; gap: .5rem; }
.cat__meu { display: inline-block; font-size: .6875rem; font-weight: 600; color: var(--ember); background: #FDEEE8; border-radius: 999px; padding: .05rem .5rem; margin-left: .35rem; vertical-align: middle; }
.cat__links { display: flex; gap: .75rem; margin-top: .2rem; }
.cat__links button { border: 0; background: none; padding: .2rem 0; font-size: .75rem; font-weight: 600; color: var(--blue); min-height: 28px; }
.cat__links button:hover { text-decoration: underline; }
.cat__links .perigo { color: #B42318; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- faixa de informação do editor ---------- */
.status--dica small { flex-basis: auto; font-size: .8125rem; color: var(--ink-2); }
.status--dica b { font-weight: 600; color: var(--ink); }
.status--pdf { display: grid; gap: .2rem; background: #EAF0F3; border: 1px solid rgba(46,79,101,.25); border-radius: var(--radius); padding: .8rem 1rem; margin: .75rem 0 .5rem; }
.status--pdf b { font-family: var(--font-display); font-weight: 600; color: var(--blue); }
.status--pdf small { font-size: .8125rem; color: var(--ink-2); flex-basis: auto; }

/* ---------- confirmação ---------- */
.dialogo { margin: auto; border: 0; border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem; max-width: min(440px, calc(100vw - 2rem)); box-shadow: 0 24px 64px rgba(30,30,30,.25); color: var(--ink); }
.dialogo::backdrop { background: rgba(30, 30, 30, .45); }
.dialogo p { font-size: .9375rem; line-height: 1.55; }
.dialogo__acoes { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.btn--perigo-cheio { background: #B42318; border-color: #B42318; color: #fff; }
.btn--perigo-cheio:hover { background: #912018; border-color: #912018; }

/* ---------- tela do contrato ---------- */
.tela--contrato { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); height: calc(100vh - var(--bar-h)); }
.k-topo { padding: 1rem .25rem 1.1rem; border-bottom: 1px solid var(--line-2); display: grid; gap: .35rem; }
.k-topo h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.k-topo p { color: var(--ink-3); font-size: .8125rem; }
.k-topo .aviso { color: #93370D; }
.ok-k { color: #127A4B !important; background: #E7F6EE; border-radius: 8px; padding: .5rem .7rem; }
.link-volta { justify-self: start; border: 0; background: none; padding: .25rem 0; font-weight: 600; font-size: .8125rem; color: var(--blue); min-height: 32px; }
.link-volta:hover { text-decoration: underline; }
.k-ed-cl { font-family: var(--font-display); font-weight: 600; font-size: .8125rem; color: var(--ember); letter-spacing: .02em; margin-top: .6rem; }
.k-ed-item textarea { font-size: .8125rem; line-height: 1.5; }
.k-ed-item.is-ed textarea { border-color: rgba(46, 79, 101, .5); background: #F6F9FA; }
.k-ed-item em { font-style: normal; font-size: .6875rem; font-weight: 600; color: var(--blue); background: #EAF0F3; border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; }
.link-rest { border: 0; background: none; padding: 0 .2rem; font-size: .75rem; font-weight: 600; color: var(--ember); text-decoration: underline; }
.btn--azul { background: var(--blue); border-color: var(--blue); justify-self: start; margin-top: .4rem; }
.btn--azul:hover { background: #243F51; border-color: #243F51; }
@media screen and (max-width: 1000px) {
  .tela--contrato { grid-template-columns: minmax(0, 1fr); height: auto; }
  .tela--contrato .editor__scroll { height: auto; overflow: visible; }
}

.btn--peq { min-height: 34px; padding: .4rem .9rem; font-size: .75rem; }
.status--dica { flex-wrap: wrap; }

.aviso--leve { color: var(--ink-2); background: var(--paper); border-color: var(--line); }

/* ======================================================================
   CLIENTES (CRM) E FINANCEIRO
   ====================================================================== */
.tela--clientes, .tela--financeiro { min-height: calc(100vh - var(--bar-h)); }
.painel--largo { max-width: 1320px; }
.backup-aviso { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; background: #FFFAEB; border: 1px solid #FEDF89; border-radius: var(--radius); padding: .75rem 1rem; }
.backup-aviso p { font-size: .8125rem; color: #93370D; max-width: 70ch; }
.backup-ok { font-size: .75rem; color: var(--ink-3); }

/* agenda do dia */
.agenda { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.agenda:empty { display: none; }
.agenda__t { font-family: var(--font-display); font-weight: 600; font-size: .8125rem; margin-right: .3rem; }
.agenda__c { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .35rem .8rem; font-size: .8125rem; min-height: 36px; }
.agenda__c:hover { border-color: var(--ember); }

/* quadro */
.quadro { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: .75rem; align-items: start; overflow-x: auto; padding-bottom: .5rem; }
.coluna { background: #EDEBE8; border-radius: var(--radius); padding: .6rem; min-height: 180px; transition: background .15s ease, box-shadow .15s ease; }
.coluna.is-alvo { background: #F9E4DA; box-shadow: inset 0 0 0 2px var(--ember); }
.coluna header { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .6rem; }
.coluna header b { font-family: var(--font-display); font-weight: 600; font-size: .8125rem; }
.coluna header span { font-size: .75rem; font-weight: 600; color: var(--ink-3); background: var(--white); border-radius: 999px; padding: 0 .5rem; }
.coluna[data-etapa="ativo"] header b { color: #127A4B; }
.coluna[data-etapa="perdido"] header b { color: var(--ink-3); }
.coluna__cards { display: grid; gap: .45rem; }
.coluna__vazia { font-size: .75rem; color: var(--ink-3); text-align: center; padding: 1.2rem .5rem; border: 1px dashed rgba(30,30,30,.18); border-radius: 10px; }
.cartao { display: grid; gap: .2rem; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; cursor: grab; transition: border-color .15s ease, box-shadow .15s ease; }
.cartao:hover { border-color: rgba(226,82,32,.5); box-shadow: 0 4px 12px rgba(30,30,30,.06); }
.cartao b { font-family: var(--font-display); font-weight: 600; font-size: .875rem; line-height: 1.25; }
.cartao span { font-size: .75rem; color: var(--ink-3); }
.cartao .cartao__v { color: var(--ink-2); font-weight: 600; }
.prox { font-size: .6875rem !important; font-weight: 600; color: var(--blue) !important; }
.prox.hoje { color: #B54708 !important; }
.prox.atrasado { color: #B42318 !important; }

/* lista de clientes */
.crm-tab { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.crm-tab__cab, .crm-tab__l { display: grid; grid-template-columns: minmax(0, 1.6fr) 150px minmax(0, 1.4fr) 190px 80px; gap: .75rem; align-items: center; padding: .7rem 1rem; }
.crm-tab__cab { font-size: .75rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.crm-tab__l { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; font-size: .8125rem; }
.crm-tab__l:hover { background: var(--paper); }
.crm-tab__l b { font-family: var(--font-display); font-weight: 600; display: block; }
.crm-tab__l small { color: var(--ink-3); font-size: .75rem; }
.etq { font-style: normal; font-size: .6875rem; font-weight: 600; border-radius: 999px; padding: .15rem .55rem; background: var(--paper); color: var(--ink-2); }
.etq--enviada { background: #EAF0F3; color: var(--blue); }
.etq--negociacao { background: #FFF4E5; color: #B54708; }
.etq--ativo { background: #E7F6EE; color: #127A4B; }
.etq--perdido { background: #F2F1F0; color: var(--ink-3); }

/* ficha (janela) */
.ficha { margin: auto; border: 0; border-radius: 18px; padding: 0; width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 24px 64px rgba(30,30,30,.25); color: var(--ink); overflow: hidden; }
.ficha[open] { display: flex; flex-direction: column; }
.ficha form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 2rem); }
.ficha--peq { width: min(520px, calc(100vw - 2rem)); }
.ficha::backdrop { background: rgba(30, 30, 30, .45); }
.ficha__cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem .8rem; border-bottom: 1px solid var(--line-2); }
.ficha__eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.ficha__cab h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.ficha__corpo { padding: 1rem 1.4rem 1.2rem; overflow-y: auto; display: grid; gap: 1rem; }
.ficha__pe { display: flex; justify-content: space-between; gap: .5rem; padding: .9rem 1.4rem; border-top: 1px solid var(--line-2); background: var(--paper); }
.ficha__sec { display: grid; gap: .55rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }
.ficha__sec h3 { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.nota-nova { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; }
.nota-nova textarea { width: 100%; min-height: 48px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.nota-nova textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(226, 82, 32, .15); }
.notas { list-style: none; padding: 0; display: grid; gap: .35rem; max-height: 220px; overflow-y: auto; }
.notas li { font-size: .8125rem; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line-2); }
.notas li span { color: var(--ink-3); font-size: .75rem; }
.notas li.auto { color: var(--ink-3); }
.ficha__lista { list-style: none; padding: 0; display: grid; gap: .3rem; }
.ficha__lista li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .8125rem; padding: .4rem .6rem; background: var(--paper); border-radius: 8px; }
.ficha__lista small { display: block; color: var(--ink-3); font-size: .75rem; }
.ficha__nums { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ficha__nums div { background: var(--paper); border-radius: 10px; padding: .6rem .8rem; display: grid; }
.ficha__nums span { font-size: .75rem; color: var(--ink-3); }
.ficha__nums b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.seg--tipo { justify-self: start; }
.seg--tipo button[aria-pressed="true"][data-lf-tipo="entrada"] { background: #127A4B; color: #fff; }
.seg--tipo button[aria-pressed="true"][data-lf-tipo="saida"] { background: #B42318; color: #fff; }

/* financeiro */
.mes { display: flex; align-items: center; gap: .6rem; }
.mes b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; min-width: 11ch; text-align: center; }
.fcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.fcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .15rem; border-top: 3px solid var(--line); }
.fcard span { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.fcard b { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.fcard small { font-size: .75rem; color: var(--ink-3); }
.fcard--ent { border-top-color: #127A4B; }
.fcard--sai { border-top-color: #B42318; }
.fcard--saldo { border-top-color: var(--blue); }
.fcard--atr.tem { border-top-color: #B54708; background: #FFFBF5; }
.fcard--atr.tem b { color: #B54708; }
.lancs { list-style: none; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lanc { display: grid; grid-template-columns: 40px 88px minmax(0, 1fr) 96px 130px auto; gap: .6rem; align-items: center; padding: .55rem .9rem .55rem .5rem; border-bottom: 1px solid var(--line-2); font-size: .8125rem; }
.lanc:last-child { border-bottom: 0; }
.lanc__pg { display: grid; place-items: center; min-height: 40px; cursor: pointer; }
.lanc__pg input { width: 20px; height: 20px; accent-color: #127A4B; cursor: pointer; }
.lanc--saida .lanc__pg input { accent-color: #B42318; }
.lanc__data { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lanc__desc b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lanc__desc small { color: var(--ink-3); font-size: .75rem; }
.lanc__v { text-align: right; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lanc--entrada .lanc__v { color: #127A4B; }
.lanc--saida .lanc__v { color: #B42318; }
.lanc.is-pago .lanc__desc b, .lanc.is-pago .lanc__v { opacity: .6; }
.lanc__acoes { display: flex; gap: .15rem; }
.lanc__acoes button { border: 0; background: none; font-size: .75rem; font-weight: 600; color: var(--ink-2); padding: .4rem .45rem; border-radius: 6px; min-height: 34px; }
.lanc__acoes button:hover { background: var(--paper); }
.lanc__acoes .perigo { color: #B42318; }
.sit { font-style: normal; font-size: .6875rem; font-weight: 600; border-radius: 999px; padding: .15rem .5rem; text-align: center; justify-self: start; }
.sit--recebido, .sit--pago { background: #E7F6EE; color: #127A4B; }
.sit--em-aberto { background: var(--paper); color: var(--ink-2); }
.sit--atrasado { background: #FEF3F2; color: #B42318; }
.k-fin { display: grid; gap: .45rem; background: var(--paper); border-radius: 10px; padding: .7rem .8rem; margin-top: .3rem; }
.k-fin p { font-size: .8125rem; color: var(--ink-2); }
.k-fin__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.k-fin .btn--azul { margin-top: 0; }

@media screen and (max-width: 900px) {
  .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-tab__cab { display: none; }
  .crm-tab__l { grid-template-columns: minmax(0, 1fr) auto; }
  .crm-tab__l > span:nth-child(3), .crm-tab__l > span:nth-child(5) { display: none; }
  .crm-tab__l > span:nth-child(4) { grid-column: 1 / -1; }
  .lanc { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: .15rem; }
  .lanc__data { grid-column: 2; grid-row: 2; font-size: .75rem; }
  .lanc__desc { grid-column: 2; grid-row: 1; }
  .lanc__v { grid-column: 3; grid-row: 1; }
  .sit { grid-column: 3; grid-row: 2; justify-self: end; }
  .lanc__pg { grid-row: 1 / span 2; }
  .lanc__acoes { grid-column: 2 / -1; grid-row: 3; }
  .quadro { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; }
  .coluna { scroll-snap-align: start; }
  .ficha__corpo .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .tela--clientes, .tela--financeiro, .ficha { display: none !important; }
}

.painel > * { min-width: 0; }
.quadro { width: 100%; }
@media screen and (max-width: 700px) {
  .mes b { font-size: 1.05rem; min-width: 0; }
  .mes { flex-wrap: wrap; }
}

/* ================= PAINEL: início, clientes, funil, configurações ================= */
body:not([data-tela-atual="editor"]):not([data-tela-atual="contrato"]) .bar__actions { display: none; }
.tela--inicio .painel, .tela--config .painel { gap: 1.5rem; }
.ini-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ini-data { font-size: .8125rem; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: .5rem; }
.ini-data::before { content: ""; width: 8px; height: 8px; background: var(--ember); }
.ini-cab h1 { margin-top: .2rem; }
.ini-continuar { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; text-align: left; width: 100%; border: 1px solid var(--line); border-left: 4px solid var(--ember); background: var(--white); border-radius: var(--radius); padding: .85rem 1rem; font-size: .875rem; }
.ini-continuar span { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.ini-continuar b { font-family: var(--font-display); font-weight: 600; }
.ini-continuar:hover { border-color: var(--ember); }
.ini-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.ini-card { grid-column: span 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; align-content: start; gap: .75rem; min-width: 0; }
.ini-card--num { grid-column: span 2; }
.ini-card header { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.ini-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.ini-card header span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.ini-card .link-volta { justify-self: start; }
.ini-vazio { font-size: .8125rem; color: var(--ink-3); }
.ini-lista, .ini-lanc { list-style: none; display: grid; margin: 0; padding: 0; }
.ini-lista li + li, .ini-lanc li + li { border-top: 1px solid var(--line-2); }
.ini-lista button { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; border: 0; background: none; text-align: left; padding: .55rem 0; font-size: .8125rem; }
.ini-lista button:hover b { color: var(--ember); }
.ini-lista b { font-family: var(--font-display); font-weight: 600; }
.ini-lanc li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: baseline; padding: .55rem 0; font-size: .8125rem; }
.ini-lanc span { color: var(--ink-3); font-size: .75rem; }
.ini-lanc span.atr { color: #B54708; font-weight: 600; }
.ini-lanc b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-lanc em { font-style: normal; font-weight: 600; white-space: nowrap; }
.ini-pagar { font-size: .75rem; color: var(--ink-3); }
/* Início › Seu dia na Criação */
.ini-card--dia { grid-column: 1 / -1; }
.dia-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.dia-num { display: grid; gap: .1rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--sand-100, #f6f3ee); text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; }
.dia-num:hover { border-color: var(--ink-3); }
.dia-num b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.dia-num span { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.dia-num.is-atr { background: #fdecea; border-color: #f3c3bd; } .dia-num.is-atr b { color: #c0392b; }
.dia-num.is-hoje { background: #fff4e5; border-color: #f6d9ad; } .dia-num.is-hoje b { color: #b45f06; }
.dia-num.is-cli b { color: #2E4F65; }
.dia-num.is-zero { opacity: .55; }
.dia-sub { font-size: .75rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-top: .25rem; }
@media (max-width: 640px) { .dia-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ini-nums { display: grid; gap: .7rem; }
.ini-nums div { display: grid; gap: .05rem; }
.ini-nums span { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.ini-nums b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.ini-nums small { font-size: .75rem; color: var(--ink-3); }
.ini-nums .pos { color: #127A4B; }
.ini-nums .neg { color: #B42318; }

.crm-tab--cli .crm-tab__cab, .crm-tab--cli .crm-tab__l { grid-template-columns: minmax(0, 1.6fr) 150px minmax(0, 1.3fr) 130px 190px; }
.crm-tab__l small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-tab__l span > small:only-child { display: inline; }
.cartao__v + .prox { margin-top: 0; }
.tela--funil .fcards { margin-bottom: .25rem; }

.cfg { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; }
.cfg__cab h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.cfg__cab h2::before { content: ""; width: 8px; height: 8px; background: var(--ember); flex: none; }
.cfg__cab p { font-size: .8125rem; color: var(--ink-3); margin-top: .25rem; max-width: 60ch; }
.cfg .btn { justify-self: start; }

.trava { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: grid; place-items: center; padding: 1rem; }
.trava[hidden] { display: none; }
.trava__caixa { width: min(360px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; display: grid; gap: 1rem; }
.trava__caixa img { width: 140px; height: auto; justify-self: center; margin-bottom: .5rem; }
body.travado > :not(.trava) { visibility: hidden; }

@media screen and (max-width: 900px) {
  .ini-card, .ini-card--num { grid-column: span 6; }
  .crm-tab--cli .crm-tab__l { grid-template-columns: minmax(0, 1fr) auto; }
  .crm-tab--cli .crm-tab__l > span:nth-child(3) { display: none; }
  .crm-tab--cli .crm-tab__l > span:nth-child(4) { display: block; text-align: right; grid-column: auto; }
  .crm-tab--cli .crm-tab__l > span:nth-child(5) { grid-column: 1 / -1; display: block; }
}
@media screen and (min-width: 560px) and (max-width: 900px) {
  .ini-card--num { grid-column: span 3; }
}
@media screen and (max-width: 700px) {
  .ini-cab .painel__acoes { width: 100%; }
  .ini-lanc li { grid-template-columns: minmax(0, 1fr) auto; }
  .ini-lanc span { grid-column: 1 / -1; }
}
@media screen and (max-width: 700px) {
  .bar__tabs { scrollbar-width: none; }
  .bar__tabs::-webkit-scrollbar { display: none; }
}

/* ---------- comercial, usuários e login ---------- */
.etq--inativo { background: #F2F1F0; color: var(--ink-3); }
.coluna--ganho { background: #E7F6EE; border: 1px dashed #127A4B; }
.coluna--ganho header b { color: #127A4B; }
.coluna--ganho header span { font-size: .6875rem; white-space: nowrap; }
.coluna--ganho .coluna__vazia { border-color: rgba(18, 122, 75, .35); color: #127A4B; }
.coluna--ganho.is-alvo { background: #D3EFE0; }
.bar__user { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.bar__user[hidden] { display: none; }
.bar__user span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--ember); margin-right: .45rem; vertical-align: 1px; }
body[data-tela-atual="editor"] .bar__user, body[data-tela-atual="contrato"] .bar__user { margin-left: .25rem; padding-left: .75rem; border-left: 1px solid var(--line); }
.usus { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); }
.usus li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem; align-items: center; padding: .7rem 1rem; font-size: .8125rem; }
.usus li + li { border-top: 1px solid var(--line-2); }
.usus li.is-off { opacity: .6; }
.usus b { font-family: var(--font-display); font-weight: 600; display: block; }
.usus b small { font-family: var(--font-text, inherit); font-weight: 500; color: var(--ink-3); }
.usus span > small { color: var(--ink-3); font-size: .75rem; display: block; overflow: hidden; text-overflow: ellipsis; }
.perms { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem 1rem; display: grid; gap: .75rem; margin: 0; min-width: 0; }
.perms legend { font-family: var(--font-display); font-weight: 600; font-size: .875rem; padding: 0 .35rem; }
.perms__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .9rem; }
.perms__lista[data-off] { opacity: .5; }
.perms .chk { align-items: flex-start; }
.perms .chk span { display: grid; gap: .1rem; }
.perms .chk small { font-size: .75rem; color: var(--ink-3); font-weight: 400; }
.chk--forte { padding-bottom: .75rem; border-bottom: 1px solid var(--line-2); }
@media screen and (max-width: 700px) {
  .bar__user { order: 2; }
  .perms__lista { grid-template-columns: minmax(0, 1fr); }
  .usus li { grid-template-columns: minmax(0, 1fr) auto; }
  .usus li .etq { display: none; }
}
.sit--previsto { background: #EAF0F3; color: var(--blue); }
.lanc.is-prev { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(46, 79, 101, .03) 10px 20px); }
.lanc.is-prev .lanc__desc small { font-style: italic; }

/* ================= MENU LATERAL ================= */
:root { --side-w: 248px; --side-mini: 68px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--side-w); display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); transition: width .2s ease, box-shadow .2s ease, transform .25s ease; overflow: hidden; }
.side__topo { display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: var(--bar-h); padding: 0 .75rem 0 1.25rem; border-bottom: 1px solid var(--line-2); flex: none; }
.side__logo { border: 0; background: none; padding: .35rem 0; display: flex; }
.side__logo img { height: 24px; width: auto; }
.side__recolher { border: 1px solid var(--line); background: var(--white); color: var(--ink-3); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.side__recolher:hover { color: var(--ink); border-color: var(--ink-3); }
.side__recolher .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.side__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: .75rem .75rem 1rem; display: grid; align-content: start; gap: 1rem; }
.side__grupo { display: grid; gap: .15rem; }
.side__titulo { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 .75rem .3rem; display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.side__titulo::before { content: ""; width: 6px; height: 6px; background: var(--ember); flex: none; }
.side__item { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 40px; padding: .5rem .75rem; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-weight: 600; font-size: .8125rem; text-align: left; white-space: nowrap; position: relative; }
.side__item:hover { background: var(--paper); color: var(--ink); }
.side__item.is-ativo { background: var(--ink); color: var(--white); }
.side__item.is-ativo .ico { color: var(--ember); }
.side__item span { overflow: hidden; text-overflow: ellipsis; }
.side__pe { flex: none; border-top: 1px solid var(--line-2); padding: .85rem 1rem 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .7rem; align-items: center; }
.side__avatar { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.side__eu { display: grid; min-width: 0; }
.side__eu b { font-size: .8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__eu small { font-size: .6875rem; color: var(--ink-3); }
.side__conta { display: flex; gap: .75rem; }
.side__conta button { border: 0; background: none; padding: 0; font-size: .75rem; font-weight: 600; color: var(--blue); }
.side__conta button:hover { color: var(--ember); }
.side__pe:not(:has(.side__avatar)) { grid-template-columns: minmax(0, 1fr); }
.side__fundo { display: none; }

@media screen and (min-width: 901px) {
  body { padding-left: var(--side-w); transition: padding-left .2s ease; }
  body .bar__menu, body .bar__logo { display: none; }
  body:not([data-tela-atual="editor"]):not([data-tela-atual="contrato"]) .bar { display: none; }
  /* Menu estreito: só ícones. Fica assim na proposta e no contrato (mais espaço para a prévia) ou quando recolhido. */
  body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"] { padding-left: var(--side-mini); }
  body.side-mini .side, body[data-tela-atual="editor"] .side, body[data-tela-atual="contrato"] .side { width: var(--side-mini); }
  body.side-mini .side__recolher .ico { transform: rotate(180deg); }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) :is(.side__item span, .side__titulo, .side__eu, .side__conta, .side__logo) { display: none; }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__topo { justify-content: center; padding: 0; }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__item { justify-content: center; padding: .5rem; }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__grupo + .side__grupo { border-top: 1px solid var(--line-2); padding-top: 1rem; }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__pe { justify-content: center; grid-template-columns: auto; padding: .85rem 0 1rem; }
  /* Ao passar o mouse no menu estreito, ele abre por cima do conteúdo. */
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:hover { width: var(--side-w); box-shadow: 12px 0 32px rgba(30, 30, 30, .12); }
  body[data-tela-atual="editor"] .side__recolher, body[data-tela-atual="contrato"] .side__recolher { display: none; }
}
.bar__menu { border: 0; background: none; width: 40px; height: 40px; margin-left: -.5rem; display: grid; place-items: center; border-radius: 10px; flex: none; }
.bar__menu:hover { background: var(--paper); }
.bar__logo { border: 0; background: none; padding: 0; display: flex; flex: none; }
.bar__logo img { height: 22px; width: auto; }
.bar__titulo { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
@media screen and (max-width: 900px) {
  .side { transform: translateX(-100%); box-shadow: none; }
  body.side-aberta .side { transform: none; box-shadow: 12px 0 40px rgba(30, 30, 30, .2); }
  body.side-aberta .side__fundo { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(30, 30, 30, .35); }
  .side__recolher { display: none; }
  .bar__titulo { display: none; }
  .bar { gap: .75rem; }
}
@media screen and (max-width: 700px) {
  .bar { flex-wrap: nowrap; height: var(--bar-h); padding: 0 1rem; }
  .bar__actions { margin-left: auto; }
  body[data-tela-atual="editor"] .bar__logo, body[data-tela-atual="contrato"] .bar__logo { display: none; }
}
@media print {
  .side, .side__fundo { display: none !important; }
  body { padding-left: 0 !important; }
}

/* ================= tabelas e financeiro ================= */
.tab { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tab__cab, .tab__l { display: grid; gap: .75rem; align-items: center; padding: .7rem 1rem; }
.tab--contratos .tab__cab, .tab--contratos .tab__l { grid-template-columns: minmax(0, 2fr) 110px minmax(0, 1.2fr) 120px 90px; }
.tab--mens .tab__cab, .tab--mens .tab__l { grid-template-columns: minmax(0, 2fr) 110px 130px 140px 170px; }
.tab__cab { font-size: .75rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.tab__l { font-size: .8125rem; border-bottom: 1px solid var(--line-2); }
.tab__l:last-child { border-bottom: 0; }
.tab__l b { font-family: var(--font-display); font-weight: 600; display: block; }
.tab__l small { color: var(--ink-3); font-size: .75rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab__acoes { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.fcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .75rem; align-items: start; }
.fin-grid .ini-card header.sub { margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--line-2); }
.fin-grid .atr, .ini-lanc em.neg { color: #B42318; }
.proj { display: grid; gap: .1rem; }
.proj__l { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 7.5rem 6.5rem; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line-2); font-size: .8125rem; }
.proj__l:last-child { border-bottom: 0; }
.proj__m { font-weight: 600; text-transform: capitalize; }
.proj__barras { display: grid; gap: 3px; }
.proj__barras i { display: block; height: 8px; border-radius: 4px; min-width: 2px; }
.proj__barras i.pos { background: #127A4B; }
.proj__barras i.neg { background: #D9786E; }
.proj__v, .proj__s { display: grid; text-align: right; }
.proj b { font-weight: 600; white-space: nowrap; }
.proj b.pos { color: #127A4B; }
.proj b.neg { color: #B42318; }
.proj small { font-size: .6875rem; color: var(--ink-3); white-space: nowrap; }
.mens-sem { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .6rem; font-size: .8125rem; }
.mens-sem > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.sit--sem-cobranca, .sit--antes-do-inicio { background: var(--paper); color: var(--ink-3); }
@media screen and (max-width: 1100px) {
  .fin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 800px) {
  .tab__cab { display: none; }
  .tab--contratos .tab__l, .tab--mens .tab__l { grid-template-columns: minmax(0, 1fr) auto; }
  .tab--contratos .tab__l > span:nth-child(2), .tab--mens .tab__l > span:nth-child(2) { display: none; }
  .tab__l > span:nth-child(3) { text-align: right; }
  .tab__l > span:nth-child(4) { grid-column: 1; }
  .tab__l > .tab__acoes { grid-column: 2; }
  .fcards--3 { grid-template-columns: minmax(0, 1fr); }
  .proj__l { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
  .proj__s { display: none; }
}
.mens-resumo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; background: var(--paper); border-radius: 10px; padding: .75rem .9rem; margin-top: .25rem; }
.mens-resumo div { display: grid; gap: .1rem; min-width: 0; }
.mens-resumo span { font-size: .6875rem; font-weight: 600; color: var(--ink-3); }
.mens-resumo b { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.mens-resumo b.pos { color: #127A4B; }
.mens-resumo b.neg { color: #B42318; }
.mens-resumo small { font-size: .6875rem; color: var(--ink-3); }
[data-mens-resumo] .nota-sec { margin-top: .5rem; }
@media screen and (max-width: 700px) { .mens-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.extras { list-style: none; margin: 0 0 .75rem; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.extras li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem; align-items: center; padding: .6rem .85rem; font-size: .8125rem; }
.extras li + li { border-top: 1px solid var(--line-2); }
.extras li b { font-weight: 600; white-space: nowrap; }
.extras li span b { display: block; white-space: normal; font-family: var(--font-display); }
.extras small { font-size: .75rem; color: var(--ink-3); }
.extras .atr { color: #B42318; font-style: normal; font-weight: 600; }
.link-volta.perigo { color: #B42318; }
.extra-novo { background: var(--paper); border-radius: 10px; padding: .85rem .9rem .6rem; }
.extra-novo .f input, .extra-novo .f select { background: var(--white); }
.extra-novo__btn { display: flex; align-items: flex-end; }
.ext-mes { color: var(--blue) !important; font-weight: 600; }

/* filtro de mês e painéis */
.mes__tag { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: #EAF0F3; padding: .2rem .55rem; border-radius: 999px; }
.ini-card header .mes__tag { font-family: var(--font-text); }
button.proj__l { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; padding: .5rem .4rem; }
button.proj__l:hover { background: var(--paper); }
button.proj__l.is-sel { background: var(--sand-2); }
.fin-col { display: grid; gap: .75rem; align-content: start; }
.ini-lanc.cat li { grid-template-columns: minmax(0, 1fr) auto; }
.ini-lanc.cat li > span { display: none; }
.ini-lanc b small { font-family: var(--font-text); font-weight: 600; font-size: .6875rem; color: var(--blue); background: #EAF0F3; padding: .05rem .4rem; border-radius: 999px; margin-left: .25rem; }
.pot { border-style: dashed; }
.tela--inicio .mes { margin-top: -.5rem; }

/* funil no Início */
.ini-card--funil { grid-column: span 6; }
.funil { display: grid; gap: .45rem; }
.funil__et { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: center; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.funil__barra { display: flex; justify-content: center; align-items: center; height: 40px; width: var(--w); margin-left: auto; margin-right: auto; border-radius: 8px; background: var(--blue); color: var(--white); opacity: calc(1 - var(--i) * .18); transition: filter .2s ease; }
.funil__et:nth-child(3) .funil__barra { background: var(--ember); opacity: 1; }
.funil__et:hover .funil__barra { filter: brightness(1.1); }
.funil__barra b { font-family: var(--font-display); font-size: 1rem; }
.funil__txt { display: grid; }
.funil__txt b { font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.funil__txt small { font-size: .75rem; color: var(--ink-3); }
.funil__fim { display: grid; grid-template-columns: auto auto auto auto; justify-content: start; gap: .35rem .9rem; align-items: baseline; padding-top: .6rem; margin-top: .2rem; border-top: 1px solid var(--line-2); font-size: .75rem; color: var(--ink-3); }
.funil__fim b { font-family: var(--font-display); font-size: .9375rem; color: var(--ink); margin-right: .75rem; }
.funil__prev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.funil__prev div { background: var(--paper); border-radius: 10px; padding: .75rem .9rem; display: grid; gap: .1rem; }
.funil__prev span { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.funil__prev b { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.funil__prev b.pos { color: #127A4B; }
.funil__prev small { font-size: .6875rem; color: var(--ink-3); }
@media screen and (max-width: 700px) {
  .funil__et { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .6rem; }
  .funil__prev { grid-template-columns: minmax(0, 1fr); }
  .funil__fim { grid-template-columns: auto auto; }
}

/* aprovar proposta */
.status__aprov { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.card__acoes .aprovar { color: #127A4B; font-weight: 600; }
.aprov-resumo { display: grid; gap: .75rem; background: var(--paper); border-radius: 10px; padding: .9rem 1rem; }
.aprov-resumo h3 { font-family: var(--font-display); font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.aprov-resumo ul { list-style: none; margin: 0; padding: 0; display: grid; }
.aprov-resumo li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: .75rem; padding: .35rem 0; font-size: .8125rem; border-top: 1px solid var(--line-2); }
.aprov-resumo li span { color: var(--ink-3); }
.aprov-resumo li em { font-style: normal; font-weight: 600; }
.aprov-resumo p { font-size: .8125rem; color: var(--ink-2); }
@media screen and (min-width: 1101px) {
  .ini-card--funil { grid-column: span 4; grid-row: span 2; }
}
@media screen and (max-width: 1100px) {
  .ini-card--funil { grid-column: span 6; }
}

/* card Comercial do Início: caminho do funil compactado */
.ini-card--com { gap: .9rem; }
.com__caminho { display: flex; align-items: stretch; gap: 0; }
.com__passo { flex: 1; min-width: 0; display: grid; gap: .1rem; justify-items: center; text-align: center; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: .55rem .35rem; font: inherit; color: inherit; cursor: pointer; }
.com__passo:hover { border-color: var(--blue); }
.com__passo b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; color: var(--blue); }
.com__passo span { font-size: .6875rem; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.com__passo.is-fim { background: #E7F6EE; border-color: rgba(18, 122, 75, .3); }
.com__passo.is-fim b { color: #127A4B; }
.com__seta { flex: none; width: 14px; align-self: center; height: 10px; background: no-repeat center / 8px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M1 1l5 4-5 4' fill='none' stroke='%237A746D' stroke-width='1.5'/%3E%3C/svg%3E"); }
.com__neg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.com__neg div { background: var(--paper); border-radius: 10px; padding: .65rem .8rem; display: grid; gap: .05rem; min-width: 0; }
.com__neg span { font-size: .6875rem; font-weight: 600; color: var(--ink-3); }
.com__neg b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.com__neg b.pos { color: #127A4B; }
.com__neg small { font-size: .6875rem; color: var(--ink-3); }
.com__ret { border-top: 1px solid var(--line-2); padding-top: .6rem; }
.com__tit { font-size: .75rem; font-weight: 600; color: var(--ink-3); display: flex; justify-content: space-between; }
.com__tit b { color: var(--ink); font-family: var(--font-display); }
.ini-grid .ini-card--num { grid-column: span 3; }
@media screen and (max-width: 900px) { .ini-grid .ini-card--num { grid-column: span 6; } }
@media screen and (max-width: 560px) {
  .com__caminho { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .com__seta { display: none; }
  .com__neg { grid-template-columns: minmax(0, 1fr); }
}
.com__passo small { font-size: .625rem; font-weight: 600; color: var(--ink-2); line-height: 1.2; margin-top: .15rem; }
.aprov-rec { font-size: .75rem; color: var(--ink-3); margin-right: auto; align-self: center; }

/* =====================================================================
   DESIGN 2026-09 · cores com função
   Petróleo = navegação e estrutura. Laranja = ação principal e "você está aqui".
   Areia = destaque e seleção. Verde / vermelho / âmbar = recebido, atraso, atenção.
   ===================================================================== */
:root {
  --blue-900: #22394A;
  --blue-700: #2E4F65;
  --blue-100: #EAF0F3;
  --sand-100: #F7EFE7;
  --ok: #127A4B;   --ok-bg: #E7F6EE;
  --bad: #B42318;  --bad-bg: #FEF3F2;
  --warn: #B54708; --warn-bg: #FFF4E5;
  --card-line: rgba(30, 30, 30, .08);
  --shadow-1: 0 1px 2px rgba(30, 30, 30, .04), 0 1px 1px rgba(30, 30, 30, .02);
  --shadow-2: 0 8px 24px rgba(30, 30, 30, .08);
}
@media screen {
  body { background: var(--paper); }

  /* ---------- menu lateral em petróleo ---------- */
  .side { background: linear-gradient(180deg, var(--blue-700) 0%, var(--blue-900) 100%); border-right: 0; color: #fff; }
  .side__topo { border-bottom-color: rgba(255, 255, 255, .08); }
  .side__logo img { filter: brightness(0) invert(1); }
  .side__recolher { background: transparent; border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7); }
  .side__recolher:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
  .side__titulo { color: rgba(255, 255, 255, .5); }
  .side__item { color: rgba(255, 255, 255, .78); font-weight: 500; }
  .side__item .ico { color: rgba(255, 255, 255, .6); }
  .side__item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .side__item:hover .ico { color: #fff; }
  .side__item.is-ativo { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
  .side__item.is-ativo .ico { color: var(--ember); }
  .side__item.is-ativo::before { content: ""; position: absolute; left: -.75rem; top: 50%; width: 4px; height: 20px; margin-top: -10px; border-radius: 0 3px 3px 0; background: var(--ember); }
  .side__item:focus-visible { outline-color: var(--sand); }
  .side__pe { border-top-color: rgba(255, 255, 255, .08); }
  .side__avatar { background: var(--ember); }
  .side__eu b { color: #fff; }
  .side__eu small { color: rgba(255, 255, 255, .55); }
  .side__conta button { color: var(--sand); }
  .side__conta button:hover { color: #fff; }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:hover { box-shadow: 16px 0 40px rgba(20, 35, 45, .28); }

  /* ---------- cabeçalho das telas ---------- */
  .eyebrow { display: flex; align-items: center; gap: .45rem; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: .3rem; }
  .eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--ember); flex: none; }
  .painel h1, .ini-cab h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -.025em; }
  .painel__cab { align-items: flex-end; padding-bottom: .25rem; }
  .nota { font-size: .875rem; line-height: 1.55; }

  /* ---------- cartões ---------- */
  .ini-card, .fcard, .cfg, .tab, .crm-tab, .card, .mens-sem, .ini-continuar, .extras { border-color: var(--card-line); box-shadow: var(--shadow-1); border-radius: 14px; }
  .ini-card { padding: 1.2rem 1.3rem; }
  .ini-card h2, .cfg__cab h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }

  /* Indicadores: cor só no marcador e no número que importa */
  .fcard { border-top: 1px solid var(--card-line); padding: 1rem 1.1rem; gap: .3rem; }
  .fcard span { display: flex; align-items: center; gap: .45rem; font-size: .75rem; letter-spacing: .01em; }
  .fcard span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
  .fcard--ent span::before { background: var(--ok); }
  .fcard--sai span::before { background: var(--bad); }
  .fcard--saldo span::before { background: var(--blue-700); }
  .fcard--atr span::before { background: var(--warn); }
  .fcard b { font-size: 1.5rem; }
  .fcard--atr.tem { background: var(--warn-bg); border-color: rgba(181, 71, 8, .2); }
  .fcard--atr.tem b { color: var(--warn); }

  /* ---------- botões ---------- */
  .btn { box-shadow: 0 1px 2px rgba(198, 67, 26, .25); }
  .btn--ghost { box-shadow: none; }
  .btn--ghost:hover { background: var(--sand-100); border-color: var(--sand); }
  .btn--ok { background: var(--white); color: var(--ok); border-color: rgba(18, 122, 75, .35); box-shadow: none; }
  .btn--ok::before { content: "✓"; font-weight: 600; }
  .btn--ok:hover { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
  .btn--azul { background: var(--blue-700); border-color: var(--blue-700); }
  .btn--azul:hover { background: var(--blue-900); border-color: var(--blue-900); }
  .link-volta { color: var(--blue-700); }

  /* ---------- filtros e mês ---------- */
  .filtros button[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); }
  .mes { display: inline-flex; align-items: center; gap: .35rem; background: var(--white); border: 1px solid var(--card-line); border-radius: 999px; padding: .3rem .4rem .3rem .3rem; box-shadow: var(--shadow-1); justify-self: start; width: max-content; max-width: 100%; }
  .mes .x { width: 34px; height: 34px; border-radius: 50%; border-color: transparent; background: var(--paper); color: var(--ink-2); }
  .mes .x:hover { background: var(--sand-100); color: var(--ink); border-color: transparent; }
  .mes b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 0 .35rem; min-width: 9.5rem; text-align: center; }
  .mes .link-volta, .mes__tag { margin: 0 .35rem 0 .15rem; }
  .mes__tag { background: var(--sand-100); color: var(--blue-700); }
  button.proj__l.is-sel { background: var(--sand-100); }

  /* ---------- status (uma cor por significado) ---------- */
  .sit, .etq { font-style: normal; font-size: .6875rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
  .sit--recebido, .sit--pago, .etq--ativo { background: var(--ok-bg); color: var(--ok); }
  .sit--atrasado { background: var(--bad-bg); color: var(--bad); }
  .sit--previsto, .etq--enviada { background: var(--blue-100); color: var(--blue-700); }
  .sit--em-aberto, .etq--negociacao { background: var(--warn-bg); color: var(--warn); }

  /* ---------- tabelas e listas ---------- */
  .tab__cab, .crm-tab__cab { background: #FAFAF8; }
  .tab__l:hover, .crm-tab__l:hover { background: var(--sand-100); }
  .lanc:hover { background: #FCFAF7; }
  .lanc.is-prev { background: repeating-linear-gradient(135deg, #fff 0 10px, #F8FAFB 10px 20px); }
  .lanc.is-prev:hover { background: var(--blue-100); }
  .cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
  .cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; font-size: .8125rem; }
  .cats li span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cats li b { font-weight: 600; white-space: nowrap; }
  .cats li i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; min-width: 3px; }
  .cats li i.pos { background: var(--ok); opacity: .75; }
  .cats li i.neg { background: #D9786E; }

  /* ---------- Início ---------- */
  .ini-continuar { border-left-color: var(--ember); background: linear-gradient(90deg, var(--sand-100), #fff 60%); }
  .com__passo { border-color: var(--card-line); }
  .com__passo:hover { border-color: var(--blue-700); background: var(--blue-100); }
  .com__passo b { color: var(--blue-700); }
  .backup-aviso { border-radius: 14px; }

  /* ---------- funil ---------- */
  .coluna { background: #ECEAE6; }
  .cartao { border-color: var(--card-line); box-shadow: var(--shadow-1); }

  /* ---------- janelas ---------- */
  .ficha { border-radius: 20px; }
  .ficha__eyebrow { color: var(--blue-700); display: flex; align-items: center; gap: .4rem; }
  .ficha__eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--ember); }
  .ficha__pe { background: #FAFAF8; }
  .seg--tipo button[data-lf-tipo="saida"][aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
  .seg--tipo button[data-lf-tipo="entrada"][aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
  .toast { background: var(--blue-900); }
}

/* ---------- barra inferior (celular) ---------- */
.tabbar { display: none; }
@media screen and (max-width: 900px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid var(--card-line); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); }
  .tabbar__it { display: grid; justify-items: center; gap: .15rem; border: 0; background: none; padding: .35rem 0 .25rem; min-height: 52px; font-size: .6875rem; font-weight: 600; color: var(--ink-3); border-radius: 12px; position: relative; }
  .tabbar__it .ico { width: 22px; height: 22px; }
  .tabbar__it.is-ativo { color: var(--blue-700); }
  .tabbar__it.is-ativo .ico { color: var(--ember); }
  .tabbar__it.is-ativo::before { content: ""; position: absolute; top: -.3rem; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ember); }
  body:not([data-tela-atual="editor"]):not([data-tela-atual="contrato"]) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body[data-tela-atual="editor"] .tabbar, body[data-tela-atual="contrato"] .tabbar, body.travado .tabbar { display: none; }
  body:not([data-tela-atual="editor"]):not([data-tela-atual="contrato"]) .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* barra do topo: menu, logo e o nome da tela */
  .bar { gap: .6rem; }
  .bar__titulo { display: block; font-size: .9375rem; padding-left: .7rem; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  body[data-tela-atual="inicio"] .bar__titulo { display: none; }
  .bar__logo img { height: 20px; }
}
@media screen and (max-width: 700px) {
  body[data-tela-atual="editor"] .bar__titulo, body[data-tela-atual="contrato"] .bar__titulo { display: none; }
  .painel { padding: 1.25rem 1rem 2rem; gap: 1rem; }
  .painel h1, .ini-cab h1 { font-size: 1.6rem; }
  .painel__cab .painel__acoes, .ini-cab .painel__acoes { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .painel__cab .painel__acoes > :only-child { grid-column: 1 / -1; }
  .painel__acoes .btn { width: 100%; padding-left: .6rem; padding-right: .6rem; }
  .fcard { padding: .85rem .9rem; }
  .fcard b { font-size: 1.2rem; }
  .ini-card { padding: 1rem; }
  .mes { width: 100%; justify-content: space-between; }
  .mes b { min-width: 0; font-size: .9375rem; }
  /* janelas viram folha de baixo para cima, em tela cheia */
  .ficha { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .ficha form { max-height: 94dvh; }
  .ficha__cab, .ficha__corpo { padding-left: 1rem; padding-right: 1rem; }
  .ficha__pe { padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .side, body, .ficha { transition: none !important; }
}
.fin-grid > .ini-card, .fin-col > .ini-card { grid-column: auto; grid-row: auto; }
@media screen and (max-width: 700px) {
  .mes { flex-wrap: nowrap; }
  .mes__tag { display: none; }
  .mes .link-volta { white-space: nowrap; font-size: .75rem; margin-right: .5rem; }
  .painel__cab .painel__acoes > :nth-child(3):last-child { grid-column: 1 / -1; }
  .backup-aviso { padding: .7rem .85rem; gap: .5rem; }
  .backup-aviso p { font-size: .75rem; line-height: 1.45; }
  .backup-aviso .btn { min-height: 34px; }
}
@media screen and (max-width: 560px) {
  .fcards--3 { gap: 0; background: var(--white); border: 1px solid var(--card-line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); }
  .fcards--3 .fcard { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border: 0; border-radius: 0; box-shadow: none; padding: .75rem .9rem; }
  .fcards--3 .fcard + .fcard { border-top: 1px solid var(--line-2); }
  .fcards--3 .fcard small { display: none; }
  .fcards--3 .fcard b { font-size: 1.05rem; }
}

/* ---------- Propostas por situação ---------- */
.filtros { flex-wrap: wrap; }
.lista__resumo { font-size: .8125rem; color: var(--ink-3); margin-top: -.25rem; }
.lista__resumo b { color: var(--ink); font-weight: 600; }
.lista__resumo:empty { display: none; }
.card { position: relative; border-left: 4px solid var(--card-line); padding: .35rem .6rem .35rem .35rem; }
.card--rascunho { border-left-color: var(--sand); }
.card--enviada { border-left-color: var(--blue-700); }
.card--aprovada { border-left-color: var(--ok); }
.card--perdida { border-left-color: #C9C4BE; }
.card--perdida .card__abrir b { color: var(--ink-3); }
.card__abrir { grid-template-columns: minmax(0, 1fr); row-gap: .2rem; }
.card__topo { display: flex; align-items: center; gap: .6rem; }
.card__num { grid-row: auto; font-size: .75rem; color: var(--ink-3); letter-spacing: .02em; }
.card__meta strong { color: var(--ink-2); font-weight: 600; }
.card__acoes { align-items: center; gap: .4rem; flex: none; }
.card__acoes .btn { min-height: 36px; }
.sit--rascunho { background: var(--sand-100); color: #8A5A2B; }
.sit--enviada { background: var(--blue-100); color: var(--blue-700); }
.sit--aprovada { background: var(--ok-bg); color: var(--ok); }
.sit--perdida { background: #F2F1F0; color: var(--ink-3); }
.mais { position: relative; }
.mais > summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink-2); border: 1px solid transparent; }
.mais > summary::-webkit-details-marker { display: none; }
.mais > summary:hover, .mais[open] > summary { background: var(--paper); border-color: var(--card-line); }
.mais__menu { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 20; min-width: 200px; display: grid; padding: .35rem; background: var(--white); border: 1px solid var(--card-line); border-radius: 12px; box-shadow: var(--shadow-2); }
.mais__menu button { border: 0; background: none; text-align: left; padding: .55rem .7rem; border-radius: 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.mais__menu button:hover { background: var(--paper); color: var(--ink); }
.mais__menu .perigo { color: var(--bad); border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; margin-top: .2rem; }
@media screen and (max-width: 700px) {
  .card { flex-wrap: wrap; padding: .3rem .5rem .6rem .3rem; }
  .card__abrir { flex-basis: 100%; }
  .card__acoes { width: 100%; padding-left: .8rem; }
  .card__acoes .btn { flex: 1; }
  .filtros { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: none; }
}
.card__acoes .btn { border: 1px solid var(--ember); background: var(--ember); color: #fff; padding: .4rem .95rem; border-radius: 999px; font-size: .75rem; min-height: 36px; }
.card__acoes .btn:hover { background: var(--ember-2); border-color: var(--ember-2); }
.card__acoes .btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.card__acoes .btn--ghost:hover { background: var(--sand-100); border-color: var(--sand); }
.card__acoes .btn--ok { background: var(--white); color: var(--ok); border-color: rgba(18, 122, 75, .35); }
.card__acoes .btn--ok:hover { background: var(--ok-bg); border-color: var(--ok); }
.card__acoes .btn--azul { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.card__acoes .btn--azul:hover { background: var(--blue-900); border-color: var(--blue-900); }
.card.is-atual { border-top-color: rgba(226, 82, 32, .45); border-right-color: rgba(226, 82, 32, .45); border-bottom-color: rgba(226, 82, 32, .45); }

/* ---------- topo do editor da proposta ---------- */
.ed-status { display: grid; gap: .8rem; padding: .9rem .1rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.ed-topo { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ed-topo .link-volta { min-height: 28px; font-size: .75rem; }
.ed-num { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; counter-reset: et; }
.etapas li { position: relative; display: grid; gap: .05rem; padding-top: .7rem; }
.etapas li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line); }
.etapas li.is-feito::before { background: var(--ok); }
.etapas li.is-atual::before { background: var(--ember); }
.etapas li b { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.etapas li.is-feito b { color: var(--ok); }
.etapas li.is-atual b { color: var(--ink); }
.etapas li small { font-size: .6875rem; color: var(--ink-3); line-height: 1.3; }
.etapas.is-perdida li::before { background: #D6D1CB; }
.ed-check { background: var(--warn-bg); border: 1px solid rgba(181, 71, 8, .18); border-radius: 12px; padding: .65rem .8rem; }
.ed-check p { font-size: .75rem; font-weight: 600; color: var(--warn); margin-bottom: .3rem; }
.ed-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.ed-check button { border: 0; background: none; padding: .15rem 0; font-size: .8125rem; color: var(--ink-2); text-align: left; text-decoration: underline; text-decoration-color: rgba(181, 71, 8, .4); text-underline-offset: 3px; }
.ed-check button::before { content: "○ "; color: var(--warn); text-decoration: none; }
.ed-check button:hover { color: var(--ink); }
.ed-ok { font-size: .8125rem; color: var(--ok); background: var(--ok-bg); border-radius: 12px; padding: .55rem .8rem; }
.ed-ok::before { content: "✓ "; font-weight: 600; }
.ed-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.ed-acoes .btn[disabled] { opacity: .45; cursor: not-allowed; }
.ed-acoes .link-volta.perigo { color: var(--bad); margin-left: auto; }
.ed-info { font-size: .75rem; color: var(--ink-3); }
.ed-nota { font-size: .75rem; color: var(--ink-3); }
.ed-mudou { font-size: .8125rem; }
.k-fin--pend { background: var(--ok-bg); border-color: rgba(18, 122, 75, .2); }
body[data-tela-atual="contrato"] .bar__actions [data-acao="nova"] { display: none; }
.ed-topo { flex-wrap: wrap; row-gap: .25rem; }
.ed-topo .link-volta, .ed-num { white-space: nowrap; }
@media screen { .vista-mob button[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; } }

/* ---------- backup ---------- */
.bkp-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.bkp-status div { display: grid; gap: .05rem; background: var(--paper); border-radius: 10px; padding: .7rem .85rem; }
.bkp-status span { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bkp-status b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.bkp-status small { font-size: .75rem; color: var(--ink-3); }
.bkps { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--card-line); border-radius: 12px; max-height: 50vh; overflow-y: auto; }
.bkps li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .85rem; }
.bkps li + li { border-top: 1px solid var(--line-2); }
.bkps b { display: block; font-size: .875rem; font-weight: 600; }
.bkps small { font-size: .75rem; color: var(--ink-3); }
@media screen and (max-width: 560px) { .bkp-status { grid-template-columns: minmax(0, 1fr); } }

/* ---------- nuvem: acesso e estado ---------- */
.trava { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); }
.nv-caixa { width: min(400px, 100%); padding: 2rem 1.6rem 1.6rem; gap: .9rem; box-shadow: 0 24px 64px rgba(10, 20, 30, .35); border: 0; }
.nv-caixa h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.nv-caixa form { display: grid; gap: .8rem; }
.nv-caixa .btn { width: 100%; }
.nv-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.nv-links .btn { width: auto; }
.nv-nota { font-size: .75rem; color: var(--ink-3); text-align: center; margin-top: .75rem; }
.nv-aviso { font-size: .8125rem; background: var(--blue-100); color: var(--blue-700); border-radius: 10px; padding: .6rem .75rem; }
.nv-carregando { text-align: center; color: var(--ink-3); font-size: .875rem; padding: 1rem 0; }
.nv-carregando::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto .75rem; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ember); animation: nvgira .8s linear infinite; }
@keyframes nvgira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nv-carregando::before { animation: none; } }
.nv-estado { grid-column: 1 / -1; font-size: .6875rem; font-weight: 600; margin-top: .35rem; display: flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .6); }
.nv-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; flex: none; }
.nv-estado--salvando::before { background: var(--sand); }
.nv-estado--erro { color: #FECACA; }
.nv-estado--erro::before { background: #F87171; }
.nv-migrar { background: var(--blue-100); border-color: rgba(46, 79, 101, .25); }
.nv-migrar p { color: var(--blue-900); }
.nv-pend { border-color: rgba(181, 71, 8, .25); background: var(--warn-bg); }
:is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .nv-estado { display: none; }

/* ================= FOLLOW-UP ================= */
.sino { position: relative; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: rgba(255, 255, 255, .8); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; margin-left: auto; }
.sino:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.sino .ico { width: 17px; height: 17px; }
.sino__n { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ember); color: #fff; font-size: .625rem; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--blue-700); }
.side__topo { gap: .4rem; }
.sino--bar { display: none; border-color: var(--line); color: var(--ink-2); width: 38px; height: 38px; margin-left: auto; }
.sino--bar .sino__n { box-shadow: 0 0 0 2px #fff; }
@media screen and (max-width: 900px) {
  .sino--bar { display: grid; }
  body[data-tela-atual="editor"] .sino--bar, body[data-tela-atual="contrato"] .sino--bar { display: none; }
  .bar__titulo { margin-right: .25rem; }
}
:is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__topo .sino { display: none; }
.sino-painel { position: fixed; z-index: 60; width: min(420px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; background: var(--white); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: 0 20px 50px rgba(20, 35, 45, .25); padding: .9rem; display: grid; gap: .6rem; }
.sino-painel[hidden] { display: none; }
.sino-painel > header { display: flex; justify-content: space-between; align-items: center; }
.sino-painel > header b { font-family: var(--font-display); font-weight: 600; }
.sino-painel > header span { font-weight: 600; color: var(--ember); }
.sino-painel > footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px solid var(--line-2); padding-top: .5rem; }
.sino__ok { font-size: .75rem; color: var(--ok); font-weight: 600; }

.fus { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.fu { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; background: var(--white); border: 1px solid var(--card-line); border-left: 3px solid var(--blue-700); border-radius: 10px; padding: .55rem .7rem; }
.fu.hoje { border-left-color: var(--ember); }
.fu.atr { border-left-color: var(--bad); background: #FFFBFA; }
.fu__quando { font-size: .75rem; font-weight: 600; color: var(--blue-700); }
.fu.hoje .fu__quando { color: var(--ember); }
.fu.atr .fu__quando { color: var(--bad); }
.fu__txt { display: grid; min-width: 0; }
.fu__txt b { font-size: .8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fu__txt small { font-size: .6875rem; color: var(--ink-3); }
.fu__cli { border: 0; background: none; padding: 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--ink); }
.fu__cli:hover { color: var(--ember); }
.fu__acoes { display: flex; align-items: center; gap: .35rem; }
.fu__adiar > summary { width: auto; padding: 0 .6rem; font-size: .75rem; font-weight: 600; height: 32px; }
.fus--ini .fu, .fus--sino .fu { grid-template-columns: minmax(0, 1fr) auto; }
.fus--ini .fu__quando, .fus--sino .fu__quando { grid-column: 1 / -1; }
.fu-novo { display: grid; gap: .6rem; background: var(--paper); border-radius: 10px; padding: .75rem .8rem; margin-top: .5rem; }
.fu-novo__campos { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1.2fr; gap: .5rem; }
.fu-novo__assunto { grid-column: 1 / -1; }
.fu-novo .f input, .fu-novo .f select { background: var(--white); }
.fu-novo .btn { justify-self: start; }
.fu-hist { margin-top: .5rem; font-size: .8125rem; }
.fu-hist summary { cursor: pointer; font-weight: 600; color: var(--blue-700); }
.fu-hist ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .35rem; }
.fu-hist li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .1rem .6rem; }
.fu-hist li span { color: var(--ink-3); font-size: .75rem; }
.fu-hist li small { grid-column: 2; color: var(--ink-3); }
.fu-prox { border: 1px solid var(--card-line); border-radius: 12px; padding: .7rem .8rem .8rem; display: grid; gap: .6rem; margin: 0; }
.fu-prox legend { font-family: var(--font-display); font-weight: 600; font-size: .875rem; padding: 0 .3rem; }
.fu-prox__op { display: flex; flex-wrap: wrap; gap: .35rem; }
.fu-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fu-chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .75rem; font-weight: 600; cursor: pointer; background: var(--white); }
.fu-chip input:checked + span { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.fu-chip input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.fu-grupo { display: grid; gap: .5rem; }
.fu-grupo + .fu-grupo { margin-top: .75rem; }
.fu-grupo header { display: flex; align-items: center; gap: .5rem; }
.fu-grupo h2 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.fu-grupo header span { font-size: .75rem; font-weight: 600; background: var(--paper); border-radius: 999px; padding: .05rem .5rem; color: var(--ink-2); }
.fu-grupo.is-atr h2 { color: var(--bad); }
.fu-grupo.is-hoje h2 { color: var(--ember); }
.fu-regua-info { margin-top: .5rem; }
.rg-passos { display: grid; gap: .5rem; }
.rg-passo { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr); gap: .5rem; align-items: end; }
@media screen and (max-width: 700px) {
  .fu { grid-template-columns: minmax(0, 1fr) auto; }
  .fu__quando { grid-column: 1 / -1; }
  .fu-novo__campos { grid-template-columns: 1fr 1fr; }
  .rg-passo { grid-template-columns: 90px minmax(0, 1fr); }
  .rg-assunto { grid-column: 1 / -1; }
}

/* ---------- app instalado (PWA) ---------- */
.app-passos { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .8125rem; color: var(--ink-2); }
@media (display-mode: standalone) {
  .bar { padding-top: env(safe-area-inset-top); height: calc(var(--bar-h) + env(safe-area-inset-top)); }
  .side__topo { padding-top: env(safe-area-inset-top); height: calc(var(--bar-h) + env(safe-area-inset-top)); }
  .trava { padding-top: calc(1rem + env(safe-area-inset-top)); }
}

/* =====================================================================
   MOBILE FLUIDO
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, summary, label, select, .cartao, .card__abrir { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* resposta ao toque */
.btn, .side__item, .tabbar__it, .cartao, .card__abrir, .fu__cli, .com__passo, .rapido, .filtros button, .mais > summary, .x { transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:active, .tabbar__it:active, .cartao:active, .card__abrir:active, .com__passo:active, .rapido:active, .filtros button:active, .x:active { transform: scale(.97); }
.side__item:active { transform: scale(.985); }

/* troca de tela suave */
@keyframes telaEntra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tela:not([hidden]) > .painel, .tela--editor:not([hidden]), .tela--contrato:not([hidden]) { animation: telaEntra .22s ease both; }

/* contato em um toque */
.rapidos { display: flex; flex-wrap: wrap; gap: .4rem; }
.rapido { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: .8125rem; text-decoration: none; }
.rapido:hover { border-color: var(--blue-700); background: var(--blue-100); }
.rapido--whats { background: #E9F8EF; border-color: rgba(18, 140, 70, .35); color: #0E7A3F; }
.rapido--whats::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25D366; }
.rapido--whats:hover { background: #D8F3E3; border-color: #25D366; }
.rapido--peq { min-height: 34px; padding: .35rem .75rem; font-size: .75rem; }

/* funil: seletor "Mover para" só em telas de toque */
.cartao__mover { display: none; }
@media (hover: none), (pointer: coarse) {
  .cartao__mover { display: flex; align-items: center; gap: .4rem; margin: -.15rem 0 .1rem; padding: 0 .2rem; font-size: .6875rem; font-weight: 600; color: var(--ink-3); }
  .cartao__mover select { flex: 1; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: .2rem .45rem; font-size: .8125rem; color: var(--ink); }
}

@media screen and (max-width: 900px) {
  /* no iPhone, campo com letra menor que 16px dá zoom ao tocar */
  .f input:not([type="checkbox"]):not([type="radio"]), .f select, .f textarea, .busca, .nota-nova textarea, .cartao__mover select, .cat__row input, .cat__row select, .fu-novo input, .fu-novo select, input.busca { font-size: 16px; }
  .f input, .f select { min-height: 44px; }

  /* áreas de toque */
  .lanc__pg { min-width: 40px; min-height: 40px; display: grid; place-items: center; }
  .lanc__pg input { width: 22px; height: 22px; }
  .fu__cli { min-height: 32px; display: inline-flex; align-items: center; }
  .card__acoes button, .lanc__acoes button, .link-volta { min-height: 38px; }

  /* janelas sobem de baixo */
  @keyframes folhaSobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .ficha[open], .dialogo[open] { animation: folhaSobe .24s cubic-bezier(.2, .8, .2, 1); }
  .ficha__corpo, .side__nav, .sino-painel { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  dialog::backdrop { background: rgba(20, 30, 40, .45); }

  /* funil: uma coluna por vez, com encaixe */
  .quadro { grid-template-columns: repeat(5, 84vw); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding: 0 1rem; margin: 0 -1rem; padding: 0 1rem .5rem; -webkit-overflow-scrolling: touch; }
  .coluna { scroll-snap-align: start; }

  /* ficha: dados em uma coluna e respiro */
  .ficha__dados { grid-template-columns: minmax(0, 1fr); }
  .ficha__cab h2 { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tela:not([hidden]) > .painel, .tela--editor:not([hidden]), .tela--contrato:not([hidden]), .ficha[open], .dialogo[open] { animation: none; }
  .btn:active, .tabbar__it:active, .cartao:active, .card__abrir:active, .com__passo:active, .rapido:active { transform: none; }
}
@media screen and (max-width: 700px) {
  .fu { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .fu__acoes { flex-wrap: wrap; justify-content: flex-start; }
  .fu__acoes .btn--ok { flex: 1; }
  .fu__acoes .rapido { flex: 1; }
  .tela--funil .painel__cab .nota { display: none; }
}

/* ======================================================================
   PRODUÇÃO (protótipo): projetos, quadro, tarefa, minhas tarefas, portal
   ====================================================================== */
.av { --c: var(--blue-700); display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font: 600 .75rem/1 var(--font-display); letter-spacing: .02em; box-shadow: 0 0 0 2px var(--white); }
.av--peq { width: 24px; height: 24px; font-size: .625rem; }
.av--vazio { background: var(--paper); color: var(--ink-3); border: 1px dashed var(--ink-3); box-shadow: none; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -6px; }
.atr { color: var(--bad); font-style: normal; font-weight: 600; }

.pr-vazio { max-width: 560px; margin: 3rem auto; text-align: center; display: grid; gap: .75rem; justify-items: center; }
.pr-vazio h2 { font-family: var(--font-display); font-size: 1.375rem; }
.pr-vazio p { color: var(--ink-2); }

.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.pr-card { --c: var(--blue-700); position: relative; display: grid; gap: .35rem; text-align: left; background: var(--white); border: 1px solid var(--card-line); border-radius: 16px; padding: 1.1rem 1.1rem 1rem; box-shadow: var(--shadow-1); cursor: pointer; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; font: inherit; color: var(--ink); }
.pr-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.pr-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pr-card__tipo { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pr-card b { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.pr-card__nome { color: var(--ink-2); font-size: .875rem; }
.pr-card__pe { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .75rem; color: var(--ink-3); margin-top: .25rem; }
.pr-barra { display: block; height: 6px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-top: .4rem; }
.pr-barra i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .3s ease; }
.pr-barra--g { max-width: 420px; }

.pr-topo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem 1.25rem; align-items: end; margin-bottom: 1.25rem; }
.pr-topo > .link-volta { grid-column: 1 / -1; justify-self: start; }
.pr-topo__t { grid-column: 1 / 3; }
.pr-topo__t h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.pr-topo__acoes { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* quadro */
.pr-quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x proximity; align-items: start; }
.tcol { --tc: var(--ink-3); background: #ECEBE8; border-radius: 14px; padding: .6rem; display: grid; gap: .5rem; scroll-snap-align: start; min-height: 120px; transition: background .15s ease, box-shadow .15s ease; }
.tcol.is-alvo { background: var(--sand-100); box-shadow: inset 0 0 0 2px var(--sand); }
.tcol header { display: flex; align-items: center; gap: .45rem; padding: .15rem .3rem; font-size: .8125rem; }
.tcol header::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.tcol header span { margin-left: auto; font-size: .6875rem; font-weight: 600; color: var(--ink-3); }
.tcol--entrada { --tc: #7A746D; } .tcol--fazer { --tc: var(--blue-700); } .tcol--producao { --tc: var(--ember); }
.tcol--revisao { --tc: #7C3AED; } .tcol--aprovacao { --tc: var(--warn); } .tcol--ajustes { --tc: var(--bad); } .tcol--entregue { --tc: var(--ok); }
.tcol__cards { display: grid; gap: .5rem; }
.tcard-wrap { display: grid; gap: .25rem; }
.tcard { display: grid; gap: .45rem; text-align: left; background: var(--white); border: 1px solid var(--card-line); border-radius: 10px; padding: .7rem .75rem; box-shadow: var(--shadow-1); cursor: grab; font: inherit; color: var(--ink); transition: box-shadow .15s ease, transform .15s ease; }
.tcard:hover { box-shadow: var(--shadow-2); }
.tcard:active { cursor: grabbing; }
.tcard b { font-weight: 600; font-size: .875rem; line-height: 1.35; }
.tcol--entregue .tcard b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(30,30,30,.25); }
.tcard__tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.tcard__tags:empty { display: none; }
.tag-pr, .pri { font-style: normal; font-size: .625rem; font-weight: 600; border-radius: 6px; padding: .12rem .4rem; background: var(--blue-100); color: var(--blue-700); }
.pri--alta { background: var(--bad-bg); color: var(--bad); }
.tcard__pe { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .6875rem; color: var(--ink-3); }
.tcard__sub { white-space: nowrap; }
.prazo { font-size: .6875rem; font-weight: 600; color: var(--ink-2); background: var(--paper); border-radius: 6px; padding: .12rem .4rem; white-space: nowrap; }
.prazo.hoje { background: #FFF1EB; color: var(--ember); }
.prazo.atr { background: var(--bad-bg); color: var(--bad); }
.tcol__add { border: 0; background: none; text-align: left; padding: .45rem .5rem; border-radius: 8px; color: var(--ink-3); font: 600 .8125rem var(--font-body, inherit); cursor: pointer; }
.tcol__add:hover { background: rgba(255,255,255,.6); color: var(--ink); }

/* lista */
.pr-lista { display: grid; gap: 1rem; }
.pr-lista h3 { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; margin-bottom: .4rem; }
.pr-lista h3 span { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.pr-lista ul, .mt-lista { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--card-line); border-radius: 12px; overflow: hidden; }
.pr-lista li + li, .mt-lista li + li { border-top: 1px solid var(--line-2); }
.pr-lista button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem; align-items: center; border: 0; background: none; padding: .7rem 1rem; text-align: left; font: inherit; font-size: .875rem; cursor: pointer; color: var(--ink); min-height: 48px; }
.pr-lista button:hover, .mt-lista button:hover { background: var(--sand-100); }
.pr-lista__t { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.pr-lista__t i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-3); display: grid; place-items: center; font-style: normal; font-size: .625rem; }
.pr-lista__t i.ok { background: var(--ok); border-color: var(--ok); color: #fff; }

/* tarefa */
.ficha--tarefa { width: min(760px, calc(100vw - 2rem)); }
.tf-titulo { width: 100%; border: 0; background: none; font: 600 1.25rem/1.3 var(--font-display); color: var(--ink); padding: .15rem 0; border-radius: 6px; }
.tf-titulo:focus { outline: 2px solid var(--sand); outline-offset: 2px; }
.tf-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.subs, .anexos, .coms { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.subs li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem .5rem; border-radius: 8px; }
.subs li:hover { background: var(--paper); }
.subs .feito { text-decoration: line-through; color: var(--ink-3); }
.anexos li { display: flex; gap: .5rem; align-items: baseline; font-size: .8125rem; padding: .45rem .6rem; background: var(--paper); border-radius: 8px; }
.anexos small { margin-left: auto; color: var(--ink-3); }
.coms { gap: .75rem; margin-bottom: .75rem; }
.coms li { display: flex; gap: .6rem; align-items: flex-start; }
.coms li > div { flex: 1; background: var(--blue-100); border-radius: 4px 12px 12px 12px; padding: .5rem .75rem; font-size: .8125rem; }
.coms li.interno > div { background: var(--sand-100); }
.coms small { color: var(--ink-3); margin-left: .4rem; font-size: .6875rem; }
.coms p { margin-top: .2rem; white-space: pre-wrap; }
.coms mark { background: none; color: var(--ember); font-weight: 600; }
.com-novo { display: grid; gap: .5rem; }
.com-novo textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; font: inherit; resize: vertical; }
.com-novo__pe { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* minhas tarefas */
.mt-lista button { width: 100%; display: grid; gap: .3rem; border: 0; background: none; padding: .75rem 1rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.mt-lista b { font-weight: 600; font-size: .9375rem; }
.mt-proj { --c: var(--blue-700); display: inline-flex; align-items: center; gap: .4rem; font-size: .6875rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.mt-proj::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.mt-pe { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.tela--minhas .painel__cab .nota { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.vercomo { display: grid; gap: .2rem; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.vercomo select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: .3rem .6rem; font: 500 .875rem var(--font-body, inherit); text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--white); }
.carga { margin-top: 1.5rem; }
.carga ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.carga li { display: grid; grid-template-columns: auto 150px minmax(0, 1fr) 28px 64px; gap: .6rem; align-items: center; font-size: .8125rem; }
.carga__n { display: grid; line-height: 1.2; }
.carga__n small { color: var(--ink-3); font-size: .6875rem; }
.carga__b { height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.carga__b i { display: block; height: 100%; background: var(--blue-700); border-radius: inherit; }
.carga li b { text-align: right; }
.carga li em { font-size: .6875rem; }

/* portal do cliente */
.portal-aviso { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: var(--sand-100); border: 1px dashed var(--sand); border-radius: 12px; padding: .75rem 1rem; font-size: .8125rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.portal-aviso .vercomo { margin-left: auto; }
.portal { max-width: 860px; margin: 0 auto; display: grid; gap: 1.25rem; }
.portal__cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--card-line); border-radius: 18px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-1); }
.portal__cab img { width: 110px; height: auto; }
.portal__cab h1 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.portal__sec { background: var(--white); border: 1px solid var(--card-line); border-radius: 18px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-1); }
.portal__sec h2 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.portal__sec h2 span { font-size: .75rem; background: var(--warn-bg); color: var(--warn); border-radius: 99px; padding: .05rem .5rem; }
.portal-apr { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line-2); }
.portal-apr:first-of-type { border-top: 0; }
.portal-apr > div:first-child { display: grid; gap: .2rem; min-width: 0; }
.portal-apr small { color: var(--ink-3); font-size: .75rem; }
.portal-apr p { font-size: .8125rem; color: var(--ink-2); font-style: italic; }
.portal-apr__acoes { display: flex; gap: .5rem; flex: none; }
.portal-lista { list-style: none; margin: .75rem 0 0; padding: 0; }
.portal-lista li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line-2); font-size: .875rem; }

/* equipe e acessos */
.tela--equipe .usus li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.tela--equipe .usus li > span { display: grid; min-width: 0; }
.tela--equipe .usus li small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-volta.perigo { color: var(--bad); }

@media screen and (max-width: 900px) {
  .pr-topo { grid-template-columns: 1fr; }
  .pr-topo__t { grid-column: auto; }
  .pr-quadro { grid-auto-columns: 82%; margin: 0 -1rem; padding: 0 1rem .75rem; scroll-snap-type: x mandatory; }
  .tf-meta { grid-template-columns: 1fr 1fr; }
  .carga li { grid-template-columns: auto minmax(0, 1fr) 70px 22px; }
  .carga li em { display: none; }
  .portal__cab { grid-template-columns: 1fr; text-align: left; }
  .portal-apr { flex-direction: column; align-items: stretch; }
  .portal-apr__acoes .btn { flex: 1; }
  .portal-aviso .vercomo { margin-left: 0; width: 100%; }
  .tela--equipe .usus li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tela--equipe .usus li .etq { display: none; }
  .tf-titulo, .com-novo textarea, .vercomo select, .nota-nova input { font-size: 16px; }
}
.ficha__sec .nota-nova input { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; font: inherit; min-height: 40px; background: var(--white); }
.pr-tela { display: grid; gap: 1.25rem; min-width: 0; }
.pr-tela > * { min-width: 0; }
.carga { background: var(--white); border: 1px solid var(--card-line); border-radius: 18px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-1); }
.carga header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.carga header h2 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.carga header span { font-size: .75rem; color: var(--ink-3); }
@media screen and (max-width: 900px) { .carga { padding: 1rem; } .tela--minhas .painel__cab { flex-wrap: wrap; } .vercomo { width: 100%; } .vercomo select { width: 100%; } }

/* ---------- Produção v2: formato Asana (quadro por cliente, concluir no círculo, subtarefas com dono e data) ---------- */
.pr-ico { --c: var(--blue-700); display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--c); vertical-align: -1px; margin-right: .5rem; }
.pr-card { gap: .6rem; }
.pr-card::before { display: none; }
.pr-card__topo { display: flex; align-items: center; }
.pr-cols { display: flex; flex-wrap: wrap; gap: .3rem; }
.pr-col { font-size: .6875rem; color: var(--ink-3); background: var(--paper); border-radius: 6px; padding: .15rem .45rem; }
.pr-col b { color: var(--ink); }
.pr-col--aprovacao { background: var(--warn-bg); color: var(--warn); } .pr-col--aprovacao b { color: var(--warn); }
.pr-col--alteracao { background: var(--bad-bg); color: var(--bad); } .pr-col--alteracao b { color: var(--bad); }

.pr-topo { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: .75rem; }
.pr-topo__t { grid-column: 1; }
.pr-topo__t h1 { display: flex; align-items: center; font-size: 1.625rem; }
.pr-topo__t h1 .pr-ico { width: 22px; height: 22px; border-radius: 6px; margin-right: .6rem; }
.pr-abas { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); grid-column: 1 / -1; }
.pr-abas button { border: 0; background: none; padding: .6rem .9rem; font: 600 .875rem var(--font-body, inherit); color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; min-height: 42px; }
.pr-abas button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ember); }
.pr-abas button:hover { color: var(--ink); }
.pr-barra-ac { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.pr-barra-ac__fim { margin-left: auto; font-size: .8125rem; color: var(--ink-2); }

/* colunas com as etapas da equipe */
.tcol--fazer { --tc: var(--blue-700); } .tcol--andamento { --tc: var(--ember); } .tcol--aprovacao { --tc: var(--warn); }
.tcol--alteracao { --tc: var(--bad); } .tcol--artefinal { --tc: var(--ok); }
.tcol header b { text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
.tcard { cursor: pointer; }
.tcard:focus-visible, .mt-it:focus-visible, .pr-lista__it:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.tcard.is-arrastando { opacity: .5; }
.tcard__t { display: flex; gap: .5rem; align-items: flex-start; }
.tcard.is-feita b, .pr-lista li.is-feita .pr-lista__t span, .cal__t.is-feita { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(30,30,30,.25); }
.tcard__pe { gap: .45rem; }
.tcard__cnt { display: inline-flex; gap: .55rem; margin-left: auto; }
.cnt { display: inline-flex; align-items: center; gap: .2rem; font-size: .6875rem; color: var(--ink-3); white-space: nowrap; }
.cnt svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* círculo de concluir */
.ck { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--white); color: var(--ink-3); padding: 0; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; position: relative; }
.ck::after { content: ""; position: absolute; inset: -12px; }
.ck svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ck:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.ck.is-ok { background: var(--ok); border-color: var(--ok); color: #fff; }

/* datas no estilo Asana */
.prazo { background: none; padding: 0; font-weight: 600; color: var(--ink-2); }
.prazo.perto { color: var(--ok); }
.prazo.atr { color: var(--bad); background: none; }
.prazo.ok { color: var(--ink-3); font-weight: 500; }
.prazo.vazio { color: var(--ink-3); font-weight: 500; }

/* lista */
.pr-lista__h { display: flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem !important; }
.pr-lista__h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.pr-lista__h--fazer::before { background: var(--blue-700); } .pr-lista__h--andamento::before { background: var(--ember); } .pr-lista__h--aprovacao::before { background: var(--warn); } .pr-lista__h--alteracao::before { background: var(--bad); } .pr-lista__h--artefinal::before { background: var(--ok); }
.pr-lista__it { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 96px; gap: .75rem; align-items: center; padding: .55rem 1rem; min-height: 46px; cursor: pointer; font-size: .875rem; }
.pr-lista__it:hover { background: var(--sand-100); }
.pr-lista__t { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.pr-lista__t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-lista__z { text-align: right; }
.pr-lista__add { width: 100%; border: 0; background: none; text-align: left; padding: .55rem 1rem; color: var(--ink-3); font: 600 .8125rem var(--font-body, inherit); cursor: pointer; }
.pr-lista__add:hover { background: var(--paper); color: var(--ink); }

/* calendário */
.cal { background: var(--white); border: 1px solid var(--card-line); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow-1); }
.cal__nav { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.cal__nav b { font-family: var(--font-display); font-size: 1rem; min-width: 150px; text-align: center; }
.cal__sem, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__sem span { font-size: .6875rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; padding: .3rem .4rem; }
.cal__grid { border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.cal__d { min-height: 104px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: .3rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cal__d.is-fora { background: var(--paper); }
.cal__n { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.cal__d.is-hoje .cal__n { background: var(--ember); color: #fff; border-radius: 99px; width: 22px; height: 22px; display: grid; place-items: center; }
.cal__t { border: 0; text-align: left; border-radius: 6px; padding: .2rem .4rem; font: 600 .6875rem/1.3 var(--font-body, inherit); background: var(--blue-100); color: var(--blue-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cal__t--andamento { background: #FFF1EB; color: var(--ember); } .cal__t--aprovacao { background: var(--warn-bg); color: var(--warn); }
.cal__t--alteracao { background: var(--bad-bg); color: var(--bad); } .cal__t--artefinal { background: var(--ok-bg); color: var(--ok); }

/* tarefa */
.tf-cab { align-items: flex-start; }
.tf-cab__t { display: grid; gap: .5rem; flex: 1; min-width: 0; }
.tf-cab__linha { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.tf-cab__linha .ficha__eyebrow { display: inline-flex; align-items: center; margin: 0; }
.tf-cab__linha .pr-ico { width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; }
.tf-links { list-style: none; margin: -.25rem 0 0; padding: 0; display: grid; gap: .3rem; }
.tf-links a { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; color: var(--blue-700); text-decoration: none; background: var(--blue-100); border-radius: 8px; padding: .35rem .6rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-links a::before { content: "↗"; }
.tf-links a:hover { text-decoration: underline; }
.sub-cont { font-size: .75rem; font-weight: 600; background: var(--paper); border-radius: 6px; padding: .1rem .45rem; color: var(--ink-2); }

/* subtarefas com responsável e data (como no Asana) */
.subs { gap: 0; border-top: 1px solid var(--line-2); }
.subs li.sub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: .6rem; align-items: center; padding: .35rem .4rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
.subs li.sub:hover { background: var(--paper); }
.subs li.sub.is-foco { background: var(--sand-100); box-shadow: inset 3px 0 0 var(--ember); }
.ck--sub { width: 18px; height: 18px; margin: 0; }
.sub__t { border: 0; background: none; font: inherit; font-size: .875rem; color: var(--ink); padding: .35rem .3rem; border-radius: 6px; min-width: 0; width: 100%; }
.sub__t:focus { outline: 2px solid var(--sand); background: var(--white); }
.sub.is-feita .sub__t { color: var(--ink-3); }
.sub__z, .sub__r { position: relative; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; font-size: .75rem; white-space: nowrap; }
.sub__z input, .sub__r select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 16px; }
.sub__z input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.sub__z { min-width: 78px; justify-content: flex-end; }
.sub-nova { margin-top: .5rem; }

/* minhas tarefas */
.mt-it { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem 1rem; cursor: pointer; }
.mt-it:hover { background: var(--sand-100); }
.mt-corpo { display: grid; gap: .25rem; min-width: 0; flex: 1; }
.mt-proj { text-transform: none; letter-spacing: 0; font-size: .75rem; }
.mt-mae { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mt-mae svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-it--sub b { font-weight: 500; }

@media screen and (max-width: 900px) {
  .pr-topo { grid-template-columns: 1fr; }
  .pr-abas { overflow-x: auto; }
  .pr-barra-ac__fim { margin-left: 0; width: 100%; }
  .pr-lista__it { grid-template-columns: minmax(0, 1fr) auto; }
  .pr-lista__it .tcard__cnt, .pr-lista__it .av { display: none; }
  .cal__d { min-height: 64px; padding: .15rem; }
  .cal__t { font-size: .5625rem; padding: .1rem .2rem; }
  .subs li.sub { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .4rem; }
  .subs li.sub .x--sm { display: none; }
  .sub__z { min-width: 0; }
  .sub__t { font-size: 16px; }
}
.mt-lista .ck, .pr-lista .ck { width: 20px; height: 20px; min-height: 0; display: inline-grid; padding: 0; grid-template-columns: none; }
.mt-lista .ck--sub { width: 18px; height: 18px; }
.pr-lista .pr-lista__add { display: block; grid-template-columns: none; }
.mt-lista .ck, .pr-lista .ck { border: 1.5px solid var(--ink-3); background: var(--white); color: var(--ink-3); }
.mt-lista .ck:hover, .pr-lista .ck:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.mt-lista .ck.is-ok, .pr-lista .ck.is-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
@media screen and (max-width: 640px) {
  .ficha--tarefa { width: 100vw; max-width: 100vw; }
  .subs li.sub { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 0; padding: .45rem .25rem; }
  .subs li.sub .sub__t { grid-column: 2 / 4; padding: .2rem .3rem; }
  .subs li.sub .sub__z { grid-column: 2; justify-self: start; padding-left: .3rem; min-height: 28px; }
  .subs li.sub .sub__r { grid-column: 3; }
  .subs li.sub > .ck { align-self: start; margin-top: .45rem; }
}

/* seções do quadro: menu ⋯ e "+ Adicionar seção" */
.tcol { position: relative; }
.tcol header span { margin-left: auto; }
.tcol__menu { border: 0; background: none; width: 28px; height: 28px; border-radius: 8px; color: var(--ink-3); font-size: 1rem; line-height: 1; cursor: pointer; }
.tcol__menu:hover, .tcol__menu[aria-expanded="true"] { background: rgba(255,255,255,.7); color: var(--ink); }
.tcol__opcoes { position: absolute; top: 44px; right: .5rem; z-index: 5; min-width: 210px; display: grid; background: var(--white); border: 1px solid var(--card-line); border-radius: 12px; box-shadow: var(--shadow-2); padding: .35rem; }
.tcol__opcoes button { border: 0; background: none; text-align: left; padding: .55rem .7rem; border-radius: 8px; font: 500 .8125rem var(--font-body, inherit); color: var(--ink); cursor: pointer; min-height: 38px; }
.tcol__opcoes button:hover { background: var(--paper); }
.tcol__opcoes button.perigo { color: var(--bad); }
.tcol__opcoes .nota-sec { padding: .4rem .7rem; margin: 0; font-size: .75rem; }
.tcol-nova { align-self: start; min-width: 220px; border: 1.5px dashed var(--line); background: none; border-radius: 14px; padding: .9rem 1rem; color: var(--ink-3); font: 600 .875rem var(--font-body, inherit); text-align: left; cursor: pointer; }
.tcol-nova:hover { border-color: var(--ink-3); color: var(--ink); background: rgba(255,255,255,.5); }

/* subtarefa: abrir detalhe */
.subs li.sub { grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; }
.sub__abrir { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; border-radius: 8px; padding: .25rem .4rem; min-height: 30px; color: var(--ink-3); cursor: pointer; }
.sub__abrir:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sub__seta { font-size: 1.125rem; line-height: 1; }
.tf-mae { justify-self: start; border: 0; background: none; padding: 0; font: 600 .8125rem var(--font-body, inherit); color: var(--blue-700); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-mae:hover { text-decoration: underline; }
@media screen and (max-width: 640px) {
  .subs li.sub { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .subs li.sub .sub__t { grid-column: 2 / 5; }
  .subs li.sub .sub__abrir { grid-column: 4; }
  .tcol__opcoes { right: .25rem; left: .25rem; min-width: 0; }
}
.anexos li { align-items: center; }
.anexos li svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-3); }
.sub__abrir .cnt svg { width: 13px; height: 13px; }
.tf-cab__linha .ficha__eyebrow::before { display: none; }

/* ---------- logos dos clientes ---------- */
.lg { --c: var(--blue-700); flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--white); border: 1px solid var(--card-line); }
.lg--ini { background: var(--c); border-color: transparent; color: #fff; font: 600 .8125rem/1 var(--font-display); letter-spacing: .02em; }
.lg--xs { width: 20px; height: 20px; border-radius: 5px; font-size: .5rem; }
.lg--m { width: 48px; height: 48px; border-radius: 12px; font-size: .9375rem; }
.lg--g { width: 44px; height: 44px; border-radius: 12px; font-size: .9375rem; margin-right: .75rem; }
.lg--xg { width: 88px; height: 88px; border-radius: 18px; font-size: 1.5rem; }
img.lg { padding: 3px; }

/* lista de quadros */
.pr-filtros { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.pr-card__topo { gap: .75rem; }
.pr-card__id { display: grid; gap: .1rem; min-width: 0; }
.pr-card__id small { font-size: .75rem; color: var(--ink-3); }
.pr-card__id small .atr { font-weight: 600; }
.pr-equipe { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .4rem; font-size: .8125rem; color: var(--ink-2); }
.pr-equipe__crit { display: inline-flex; align-items: center; gap: .4rem; }
.pr-barra-ac .btn[data-pr="quadro-config"] { margin-left: .25rem; }

/* configurar quadro */
.qd-logo { display: flex; gap: 1rem; align-items: center; }
.qd-logo .btn { cursor: pointer; }
.qd-eq { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.qd-eq__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.qd-eq__it { padding: .45rem .55rem; border: 1px solid var(--line-2); border-radius: 10px; }
.qd-eq__it > span { display: inline-flex; align-items: center; gap: .5rem; }
.qd-eq__it > span > span { display: grid; line-height: 1.2; font-size: .8125rem; }
.qd-eq__it small { color: var(--ink-3); font-size: .6875rem; }

/* painel do criativo */
.mt-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.mt-num { background: var(--white); border: 1px solid var(--card-line); border-radius: 16px; padding: .9rem 1.1rem; box-shadow: var(--shadow-1); display: grid; gap: .1rem; }
.mt-num b { font: 600 1.75rem/1.1 var(--font-display); color: var(--ink); }
.mt-num span { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.mt-num small { font-size: .6875rem; color: var(--ink-3); }
.mt-num.is-atr { border-color: rgba(180, 35, 24, .25); background: var(--bad-bg); } .mt-num.is-atr b, .mt-num.is-atr span { color: var(--bad); }
.mt-num.is-hoje b { color: var(--ember); }
.mt-num.is-cli b { color: var(--warn); }
.mt-num.is-zero { background: var(--white); border-color: var(--card-line); } .mt-num.is-zero b { color: var(--ink-3); } .mt-num.is-zero span { color: var(--ink-3); }
.mt-clis { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.mt-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .35rem .5rem .35rem .45rem; font: 600 .8125rem var(--font-body, inherit); color: var(--ink-2); cursor: pointer; min-height: 40px; }
.mt-chip:first-child { padding-left: .85rem; padding-right: .85rem; }
.mt-chip:hover { border-color: var(--ink-3); }
.mt-chip.is-on { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.mt-chip__n { font-size: .6875rem; background: var(--paper); color: var(--ink-2); border-radius: 99px; padding: .05rem .45rem; }
.mt-chip__n.is-atr { background: var(--bad-bg); color: var(--bad); }
.mt-chip.is-on .mt-chip__n { background: rgba(255,255,255,.2); color: #fff; }
.mt-barra { display: flex; justify-content: flex-end; }
.mt-cli { background: var(--white); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: var(--shadow-1); padding: 1rem 1.1rem 1.1rem; display: grid; gap: .85rem; }
.mt-cli.tem-atr { box-shadow: inset 4px 0 0 var(--bad), var(--shadow-1); }
.mt-cli__cab { display: flex; align-items: center; gap: .85rem; }
.mt-cli__id { flex: 1; min-width: 0; }
.mt-cli__id h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.mt-cli__id p { font-size: .8125rem; color: var(--ink-3); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.mt-cli__vazio { margin: 0; }
.mt-etapa { display: grid; gap: .4rem; }
.mt-etapa h4 { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.mt-etapa h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.mt-etapa h4 span { color: var(--ink-3); }
.mt-etapa h4 em { text-transform: none; letter-spacing: 0; font-size: .6875rem; }
.mt-etapa--fazer h4 i { background: var(--blue-700); } .mt-etapa--andamento h4 i { background: var(--ember); } .mt-etapa--aprovacao h4 i { background: var(--warn); } .mt-etapa--alteracao h4 i { background: var(--bad); } .mt-etapa--artefinal h4 i { background: var(--ok); }
.mt-cli .mt-lista { box-shadow: none; }
.mt-lista li.is-atr { background: #FFF8F7; box-shadow: inset 3px 0 0 var(--bad); }
.mt-proj { display: inline-flex; align-items: center; gap: .4rem; }
.mt-proj::before { display: none; }

@media screen and (max-width: 900px) {
  .mt-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .mt-num { padding: .75rem .85rem; }
  .mt-num b { font-size: 1.5rem; }
  .mt-clis { margin: 0 -1rem; padding: 0 1rem .25rem; }
  .mt-barra { justify-content: stretch; } .mt-barra .filtros { width: 100%; }
  .mt-cli { padding: .85rem; border-radius: 16px; }
  .mt-cli__cab { flex-wrap: wrap; }
  .mt-cli__cab .btn { width: 100%; }
  .qd-eq__lista { grid-template-columns: 1fr; }
  .qd-logo { align-items: flex-start; }
}

/* ---------- Visão da equipe (painel do administrador) ---------- */
.lg--s { width: 28px; height: 28px; border-radius: 7px; font-size: .625rem; }
.ve-resumo { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mt-num.is-alerta b { color: var(--warn); }
.ve-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ve-sec, .ve-card { background: var(--white); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: var(--shadow-1); padding: 1rem 1.1rem; }
.ve-sec > header, .ve-pessoas__cab { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .75rem; }
.ve-sec h2, .ve-pessoas__cab h2 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.ve-sec > header span, .ve-pessoas__cab span { font-size: .75rem; color: var(--ink-3); }
.ve-atencao { box-shadow: inset 4px 0 0 var(--bad), var(--shadow-1); }
.ve-lista, .ve-clis { list-style: none; margin: 0; padding: 0; }
.ve-lista li + li, .ve-clis li + li { border-top: 1px solid var(--line-2); }
.ve-at { display: flex; align-items: center; gap: .55rem; padding: .55rem .35rem; border-radius: 8px; cursor: pointer; }
.ve-at:hover { background: var(--sand-100); }
.ve-at__t { flex: 1; min-width: 0; display: grid; }
.ve-at__t b { font-weight: 600; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-at__t small { font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-dias { flex: none; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--bad); background: var(--bad-bg); border-radius: 6px; padding: .15rem .45rem; }
.ve-cli { width: 100%; display: flex; align-items: center; gap: .65rem; border: 0; background: none; padding: .55rem .35rem; border-radius: 8px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.ve-cli:hover { background: var(--sand-100); }
.ve-cli__id { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.ve-cli__id b { font-size: .875rem; }
.ve-cli__id small { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--ink-3); }
.ve-cli__n { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .3rem; font-size: .75rem; color: var(--ink-3); max-width: 50%; }
.ve-cli__n b { color: var(--ink); }
.ve-cli__n em { font-style: normal; font-weight: 600; font-size: .6875rem; border-radius: 6px; padding: .1rem .4rem; }
.ve-cli__n .atr { background: var(--bad-bg); }
.ve-ag { background: var(--warn-bg); color: var(--warn); }
.ve-al { background: #FFF1EB; color: var(--ember); }
.ve-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.ve-card { display: grid; gap: .85rem; align-content: start; }
.ve-card.tem-atr { box-shadow: inset 4px 0 0 var(--bad), var(--shadow-1); }
.ve-card > header { display: flex; align-items: center; gap: .65rem; }
.ve-card > header div { flex: 1; min-width: 0; display: grid; }
.ve-card > header small { font-size: .75rem; color: var(--ink-3); }
.ve-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.ve-nums span { display: grid; text-align: center; background: var(--paper); border-radius: 10px; padding: .45rem .2rem; font-size: .6875rem; color: var(--ink-3); }
.ve-nums b { font: 600 1.125rem/1.1 var(--font-display); color: var(--ink); }
.ve-nums .is-atr { background: var(--bad-bg); color: var(--bad); } .ve-nums .is-atr b { color: var(--bad); }
.ve-nums .is-hoje b { color: var(--ember); }
.ve-rot { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: .35rem; }
.ve-fazendo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.ve-fazendo button { width: 100%; display: flex; align-items: center; gap: .45rem; border: 0; background: none; padding: .35rem .3rem; border-radius: 8px; text-align: left; font: inherit; font-size: .8125rem; color: var(--ink); cursor: pointer; }
.ve-fazendo button:hover { background: var(--sand-100); }
.ve-fazendo button > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-logos { display: flex; flex-wrap: wrap; gap: .35rem; }
.ve-logos .is-crit .lg { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ember); }
.ve-pessoas { display: grid; gap: .25rem; }

@media screen and (max-width: 1100px) { .ve-resumo { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ve-grid { grid-template-columns: 1fr; } }
@media screen and (max-width: 640px) {
  .ve-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ve-cards { grid-template-columns: 1fr; }
  .ve-cli { flex-wrap: wrap; } .ve-cli__n { max-width: none; width: 100%; justify-content: flex-start; padding-left: 3.1rem; }
}
.ve-cards > *, .ve-card > *, .ve-nums span, .ve-grid > * { min-width: 0; }
.ve-card > header .btn { flex: none; }
.ve-card > header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-fazendo button > .lg { flex: none; width: 20px; }
.ve-nums span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-fazendo li, .ve-fazendo button { min-width: 0; }
.ve-fazendo ul { grid-template-columns: minmax(0, 1fr); }

/* ======================================================================
   PAUTA DA SEMANA — assinatura da Produção.
   Linha = pessoa, coluna = dia. A cor da borda do item é a etapa;
   tracejado = está com o cliente. Fim de semana levemente areia.
   ====================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pz-chip { --st: var(--blue-700); }
.pz-chip--fazer, .pz-leg__it--fazer { --st: var(--blue-700); }
.pz-chip--andamento, .pz-leg__it--andamento { --st: var(--ember); }
.pz-chip--aprovacao, .pz-leg__it--aprovacao { --st: var(--warn); }
.pz-chip--alteracao, .pz-leg__it--alteracao { --st: var(--bad); }
.pz-chip--artefinal, .pz-leg__it--artefinal { --st: var(--ok); }

/* status do dia, em uma linha (substitui os cartões de número) */
.ve-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.1rem; margin-top: .5rem; font-size: .9375rem; color: var(--ink-2); }
.ve-status__dia { font-weight: 600; color: var(--blue-700); }
.ve-st b { font: 600 1.0625rem var(--font-display); font-variant-numeric: tabular-nums; margin-right: .15rem; }
.ve-st.is-atr b, .ve-st.is-atr { color: var(--bad); }
.ve-st.is-hoje b { color: var(--ember); }
.ve-st.is-cli b { color: var(--warn); }
.ve-st.is-alt b { color: var(--bad); }
.ve-st.is-sem b { color: var(--warn); }
.ve-st.is-zero { color: var(--ink-3); } .ve-st.is-zero b { color: var(--ink-3); }

.pz { background: var(--white); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: var(--shadow-1); overflow: hidden; }
.pz__cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.1rem 1.25rem .9rem; }
.pz__cab h2 { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; }
.pz__cab p { font-size: .8125rem; color: var(--ink-3); margin-top: .15rem; }
.pz-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .75rem; color: var(--ink-2); }
.pz-leg__it { display: inline-flex; align-items: center; gap: .35rem; }
.pz-leg__it::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--st); }
.pz-leg__it--aprovacao::before { width: 12px; height: 12px; border-radius: 3px; background: none; border: 1.5px dashed var(--st); }
.pz-leg__it small { color: var(--ink-3); }

.pz__rolagem { overflow-x: auto; border-top: 1px solid var(--line-2); scrollbar-width: thin; }
.pz__rolagem:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; }
.pz__grade { display: grid; grid-template-columns: 156px repeat(var(--n), minmax(128px, 1fr)); min-width: calc(156px + var(--n) * 128px); gap: 1px; background: var(--line-2); }
.pz__grade > * { background: var(--white); min-width: 0; }
.pz__canto, .pz__dia { padding: .6rem .6rem .5rem; }
.pz__canto { position: sticky; left: 0; z-index: 2; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: flex; align-items: flex-end; }
.pz__dia { display: grid; gap: .05rem; border-top: 3px solid transparent; }
.pz__dia b { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.pz__dia small { font-size: .6875rem; color: var(--ink-3); }
.pz__dia.is-hoje { border-top-color: var(--ember); } .pz__dia.is-hoje b { color: var(--ember); }
.pz__dia.is-atr b { color: var(--bad); }
.pz__dia.is-fds, .pz__cel.is-fds { background: #FBF7F2; }
.pz__dia.is-depois, .pz__cel.is-depois { background: #FAFAF9; }
.pz__cel.is-atr { background: #FFF9F8; }
.pz__cel.is-hoje { background: #FFFCFA; }

.pz__pessoa { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: .55rem; padding: .6rem .6rem; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; box-shadow: 1px 0 0 var(--line-2); }
button.pz__pessoa:hover { background: var(--sand-100); }
button.pz__pessoa:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; }
.pz__nome { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.pz__nome b { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz__nome small { font-size: .6875rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz__qtd { flex: none; min-width: 24px; height: 22px; padding: 0 .4rem; border-radius: 99px; background: var(--paper); font: 600 .6875rem/22px var(--font-body, inherit); text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pz__qtd.is-atr { background: var(--bad-bg); color: var(--bad); }
.pz__pessoa--sem { cursor: default; } .pz__pessoa--sem .pz__nome b { color: var(--warn); }

.pz__cel { display: flex; flex-direction: column; gap: .25rem; padding: .4rem; min-height: 64px; }
.pz-chip { display: flex; align-items: center; gap: .35rem; width: 100%; border: 0; border-left: 3px solid var(--st); background: var(--paper); border-radius: 4px 7px 7px 4px; padding: .3rem .4rem .3rem .35rem; font: 500 .75rem/1.25 var(--font-body, inherit); color: var(--ink); text-align: left; cursor: pointer; transition: background .12s ease, box-shadow .12s ease; }
.pz-chip > span:not(.lg) { min-width: 0; overflow: hidden; }
.pz-chip:hover { background: var(--white); box-shadow: 0 2px 8px rgba(30,30,30,.1); }
.pz-chip:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.pz-chip.is-sub > span:not(.lg)::before { content: "↳ "; color: var(--ink-3); }
.pz-chip--aprovacao { background: var(--white); border: 1.5px dashed var(--st); border-left-style: solid; color: var(--ink-2); }
.pz__cel.is-atr .pz-chip { background: var(--bad-bg); }
.pz__cel.is-atr .pz-chip--aprovacao { background: var(--white); }
.pz-mais { align-self: flex-start; border: 0; background: none; padding: .15rem .3rem; font: 600 .6875rem var(--font-body, inherit); color: var(--blue-700); cursor: pointer; border-radius: 6px; }
.pz-mais:hover { background: var(--blue-100); }

.ve-grid { margin-top: .25rem; }

/* ---------- Minha semana (painel do criativo) ---------- */
.mt-semana { display: grid; gap: .5rem; }
.mt-semana__t { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.mt-semana__dias { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--card-line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); }
.mt-dia { display: grid; align-content: start; gap: .1rem; border: 0; border-top: 3px solid transparent; background: var(--white); padding: .6rem .6rem .7rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; min-height: 104px; transition: background .12s ease; }
.mt-dia:hover { background: var(--sand-100); }
.mt-dia:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; }
.mt-dia__rot { font-size: .75rem; font-weight: 600; }
.mt-dia small { font-size: .625rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-dia b { font: 600 1.625rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin-top: .3rem; }
.mt-dia__lg { display: flex; gap: .2rem; margin-top: .15rem; min-height: 20px; }
.mt-dia.is-fds { background: #FBF7F2; }
.mt-dia.is-hoje { border-top-color: var(--ember); } .mt-dia.is-hoje .mt-dia__rot { color: var(--ember); }
.mt-dia.is-atr:not(.is-zero) { background: var(--bad-bg); } .mt-dia.is-atr:not(.is-zero) b, .mt-dia.is-atr .mt-dia__rot { color: var(--bad); }
.mt-dia.is-zero b { color: var(--line); color: rgba(30,30,30,.2); }
.mt-dia.is-on { background: var(--blue-700); color: #fff; } .mt-dia.is-on small, .mt-dia.is-on .mt-dia__rot, .mt-dia.is-on b { color: #fff; }
.mt-barra { align-items: center; gap: .5rem; }
.mt-filtro { margin-right: auto; display: inline-flex; align-items: center; gap: .4rem; border: 0; background: var(--blue-700); color: #fff; border-radius: 99px; padding: .45rem .85rem; font: 600 .8125rem var(--font-body, inherit); cursor: pointer; min-height: 38px; }
.mt-filtro:hover { background: var(--blue-900); }

@media screen and (max-width: 900px) {
  .pz__grade { grid-template-columns: 132px repeat(var(--n), 132px); min-width: calc(132px + var(--n) * 132px); }
  .pz__nome small { display: none; }
  .pz__cab { padding: 1rem; }
  .mt-semana__dias { display: flex; overflow-x: auto; border-radius: 14px; scroll-snap-type: x proximity; }
  .mt-dia { flex: 0 0 88px; min-height: 96px; scroll-snap-align: start; }
  .mt-barra { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .pz-chip, .mt-dia { transition: none; } }
.pz-chip { align-items: flex-start; }
.pz-chip .lg { margin-top: 1px; }
.pz-chip > span:not(.lg) { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .71875rem; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.pz__pessoa.tem-atr { box-shadow: inset 3px 0 0 var(--bad), 1px 0 0 var(--line-2); }
.pz__nome small.pz__atr { color: var(--bad); font-weight: 600; }
@media screen and (max-width: 900px) { .pz__nome small.pz__atr { display: block; } }

/* ---------- horário de entrega ---------- */
.tf-quando__c { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: .35rem; }
.tf-meta { grid-template-columns: 1.1fr 1.35fr 1fr .8fr; }
.pz-h { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cal__t b { font-weight: 600; }

/* ---------- Visão da equipe: cabeçalho com abas ---------- */
.ve-cab { align-items: flex-end; flex-wrap: wrap; }
.ve-abas { border-bottom: 0; background: var(--white); border: 1px solid var(--card-line); border-radius: 999px; padding: .25rem; gap: .15rem; }
.ve-abas button { border: 0; border-radius: 999px; margin: 0; min-height: 36px; padding: .4rem .95rem; }
.ve-abas button[aria-pressed="true"] { background: var(--blue-700); color: #fff; border: 0; }

/* ---------- Aba Hoje: uma coluna por pessoa (a agenda do dia da agência) ---------- */
.eq-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1rem; align-items: start; }
.eq-col { background: var(--white); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: var(--shadow-1); display: grid; gap: .55rem; padding: .9rem .9rem .75rem; min-width: 0; }
.eq-col.tem-atr { box-shadow: inset 0 3px 0 var(--bad), var(--shadow-1); }
.eq-col.is-livre { background: transparent; box-shadow: none; border-style: dashed; padding: .75rem .9rem; }
.eq-col__cab { display: flex; align-items: center; gap: .6rem; }
.eq-col__id { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.eq-col__id b { font-weight: 600; font-size: .9375rem; }
.eq-col__id small { font-size: .75rem; color: var(--ink-3); }
.eq-col__ver { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 1.125rem; line-height: 1; color: var(--ink-2); cursor: pointer; }
.eq-col__ver:hover { background: var(--sand-100); color: var(--ink); }
.eq-agora-faz { display: flex; align-items: center; gap: .4rem; width: 100%; border: 0; background: #FFF1EB; border-radius: 10px; padding: .45rem .55rem; text-align: left; font: inherit; font-size: .75rem; color: var(--ink); cursor: pointer; min-width: 0; }
.eq-agora-faz > span:not(.lg) { flex: none; font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ember); }
.eq-agora-faz b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-agora-faz em { flex: none; font-style: normal; font-weight: 600; color: var(--ember); }
.eq-agora-faz:hover { background: #FFE6DA; }
.eq-rot { display: flex; align-items: center; gap: .35rem; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: .2rem; }
.eq-rot span { font-variant-numeric: tabular-nums; }
.eq-rot.is-atr { color: var(--bad); }
.eq-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.eq-it { --st: var(--blue-700); width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: .5rem; align-items: start; border: 0; border-left: 3px solid var(--st); background: var(--paper); border-radius: 4px 10px 10px 4px; padding: .45rem .55rem .45rem .45rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: background .12s ease, box-shadow .12s ease; }
.eq-it:hover { background: var(--white); box-shadow: 0 2px 10px rgba(30,30,30,.1); }
.eq-it:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.eq-it.pz-chip--aprovacao { background: var(--white); border: 1.5px dashed var(--st); border-left: 3px solid var(--st); }
.eq-it__h { font: 600 .8125rem/1.3 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.eq-it.is-atr .eq-it__h { font: 600 .625rem/1.3 var(--font-body, inherit); color: var(--bad); }
.eq-it.is-atr { background: var(--bad-bg); }
.eq-it.is-venc .eq-it__h { color: var(--bad); }
.eq-it__c { display: grid; gap: .15rem; min-width: 0; }
.eq-it__c b { font-size: .8125rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eq-it__c small { display: flex; align-items: center; gap: .3rem; font-size: .6875rem; color: var(--ink-3); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-it__c small em { font-style: normal; font-weight: 600; color: var(--bad); }
.eq-agora { position: relative; height: 18px; display: flex; align-items: center; }
.eq-agora::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ember); border-radius: 2px; }
.eq-agora::after { content: ""; position: absolute; left: -2px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.eq-agora span { position: relative; margin-left: auto; background: var(--white); color: var(--ember); font: 600 .625rem var(--font-body, inherit); text-transform: uppercase; letter-spacing: .06em; padding: 0 .35rem; font-variant-numeric: tabular-nums; }
.eq-vazio { font-size: .8125rem; color: var(--ink-3); }
.eq-livre { font-size: .8125rem; color: var(--ink-2); }
.eq-livre b { color: var(--ok); }
.eq-col__pe { border-top: 1px solid var(--line-2); padding-top: .5rem; margin-top: .15rem; font-size: .75rem; color: var(--ink-3); }
.eq-col__pe b { color: var(--ink); }

@media screen and (max-width: 900px) {
  .tf-meta { grid-template-columns: 1fr 1fr; }
  .tf-quando { grid-column: 1 / -1; }
  .ve-abas { width: 100%; } .ve-abas button { flex: 1; }
  .eq-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .eq-it { transition: none; } }

/* ======================================================================
   CRIAÇÃO · tema escuro no espírito do Asana: fundo chapado, cartões
   claros com borda fina, sem sombra, tipo de sistema, cor só onde
   significa algo (data, etapa, concluído). Só vale nas telas da Criação
   (body.tema-criacao); o resto do painel e o portal do cliente não mudam.
   ====================================================================== */
body.tema-criacao {
  color-scheme: dark;
  --cr-fundo: #1e1f21; --cr-coluna: #252628; --cr-borda-f: #2f3032;
  --white: #2a2b2d; --paper: #2f3032;
  --ink: #f5f4f3; --ink-2: #c7c6c5; --ink-3: #8f8e8d;
  --line: #48494b; --line-2: #333436; --card-line: #3a3b3d;
  --sand: #56575a; --sand-100: #313234;
  --blue: #7ea2f0; --blue-700: #4573d2; --blue-900: #3a63b8; --blue-100: rgba(69, 115, 210, .18);
  --ok: #5da283; --ok-bg: rgba(93, 162, 131, .16);
  --bad: #f06a6a; --bad-bg: rgba(240, 106, 106, .13);
  --warn: #f1bd6c; --warn-bg: rgba(241, 189, 108, .13);
  --shadow-1: none; --shadow-2: 0 6px 20px rgba(0, 0, 0, .45);
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cr-fundo); color: var(--ink);
}
body.tema-criacao .tela, body.tema-criacao dialog, body.tema-criacao .toast { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* menu lateral e barras no mesmo escuro */
body.tema-criacao .side { background: #1b1c1e; border-right: 1px solid var(--line-2); }
body.tema-criacao .bar, body.tema-criacao .tabbar { background: #1b1c1e; border-color: var(--line-2); }
body.tema-criacao .bar__logo img { filter: brightness(0) invert(1); }

/* títulos leves, sem o selo laranja */
body.tema-criacao .tela .eyebrow { display: none; }
body.tema-criacao .tela .painel h1, body.tema-criacao .pr-topo__t h1 { font-size: 1.375rem; font-weight: 500; letter-spacing: 0; }
body.tema-criacao .tela .nota { color: var(--ink-3); }

/* botões: contorno fino; o laranja fica só na ação principal */
body.tema-criacao .tela .btn, body.tema-criacao dialog .btn { box-shadow: none; border-radius: 6px; min-height: 34px; padding: .4rem .8rem; font-weight: 500; font-size: .8125rem; }
body.tema-criacao .tela .btn--ghost, body.tema-criacao dialog .btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
body.tema-criacao .tela .btn--ghost:hover, body.tema-criacao dialog .btn--ghost:hover { background: var(--sand-100); border-color: var(--ink-3); }
body.tema-criacao .pr-barra-ac .btn:not(.btn--ghost) { background: transparent; border: 1px solid var(--line); color: var(--ink); }
body.tema-criacao .pr-barra-ac .btn:not(.btn--ghost):hover { background: var(--sand-100); }
body.tema-criacao .filtros button { background: transparent; border-color: var(--line); color: var(--ink-2); font-weight: 500; min-height: 34px; border-radius: 6px; }
body.tema-criacao .filtros button[aria-pressed="true"] { background: transparent; border-color: var(--blue); color: var(--blue); }
body.tema-criacao .link-volta { color: var(--blue); }

/* campos */
body.tema-criacao .f input, body.tema-criacao .f select, body.tema-criacao .f textarea, body.tema-criacao .vercomo select,
body.tema-criacao .com-novo textarea, body.tema-criacao .nota-nova input { background: var(--cr-fundo); border-color: var(--line); color: var(--ink); }
body.tema-criacao .f input:focus, body.tema-criacao .f select:focus, body.tema-criacao .f textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(69, 115, 210, .25); }

/* abas (Lista / Quadro / Calendário e Hoje / Semana / Clientes): contorno azul na ativa, como o Asana */
body.tema-criacao .pr-abas { border-bottom-color: var(--line-2); gap: .35rem; }
body.tema-criacao .pr-abas button { color: var(--ink-2); font-weight: 500; border: 1px solid transparent; border-radius: 6px; margin-bottom: .35rem; min-height: 34px; padding: .35rem .6rem; }
body.tema-criacao .pr-abas button[aria-pressed="true"] { color: var(--blue); border-color: var(--blue); background: transparent; }
body.tema-criacao .pr-abas button:hover { color: var(--ink); background: var(--sand-100); }
body.tema-criacao .ve-abas { background: transparent; border: 0; padding: 0; }
body.tema-criacao .ve-abas button { margin: 0; }

/* superfícies: raio menor, borda fina, sem sombra */
body.tema-criacao .pr-card, body.tema-criacao .eq-col, body.tema-criacao .pz, body.tema-criacao .ve-sec, body.tema-criacao .mt-cli,
body.tema-criacao .mt-semana__dias, body.tema-criacao .cal, body.tema-criacao .carga, body.tema-criacao .mt-num { border-radius: 8px; box-shadow: none; }
body.tema-criacao .pr-card:hover { transform: none; border-color: var(--ink-3); box-shadow: none; }

/* quadro no formato Asana: coluna escura, cabeçalho em caixa própria, cartões com borda fina */
body.tema-criacao .pr-quadro { gap: 1rem; }
body.tema-criacao .tcol { background: transparent; padding: 0; gap: .6rem; border-radius: 0; }
body.tema-criacao .tcol header { background: var(--cr-coluna); border-radius: 8px; padding: .75rem .8rem; font-size: .9375rem; }
body.tema-criacao .tcol header::before { display: none; }
body.tema-criacao .tcol header b { font-size: .9375rem; font-weight: 600; letter-spacing: .01em; }
body.tema-criacao .tcol header span { margin-left: .5rem; margin-right: auto; font-weight: 400; color: var(--ink-3); font-size: .875rem; }
body.tema-criacao .tcol__cards { background: var(--cr-coluna); border-radius: 8px; padding: .6rem; gap: .6rem; min-height: 56px; }
body.tema-criacao .tcol.is-alvo .tcol__cards { box-shadow: inset 0 0 0 1px var(--blue); background: #262a33; }
body.tema-criacao .tcard { background: var(--white); border: 1px solid var(--card-line); border-radius: 8px; padding: .8rem .85rem; gap: .7rem; box-shadow: none; }
body.tema-criacao .tcard:hover { border-color: #6d6e6f; box-shadow: none; }
body.tema-criacao .tcard b { font-weight: 500; font-size: .875rem; }
body.tema-criacao .tcol__add { color: var(--ink-2); font-weight: 500; padding: .5rem .6rem; }
body.tema-criacao .tcol__add:hover { background: var(--sand-100); color: var(--ink); }
body.tema-criacao .tcol__menu:hover, body.tema-criacao .tcol__menu[aria-expanded="true"] { background: var(--sand-100); }
body.tema-criacao .tcol__opcoes { background: #2a2b2d; border-color: var(--line); }
body.tema-criacao .tcol-nova { border-color: var(--line-2); color: var(--ink-2); }
body.tema-criacao .tcol-nova:hover { background: var(--cr-coluna); color: var(--ink); }
body.tema-criacao .tag-pr, body.tema-criacao .pri { background: var(--paper); color: var(--ink-2); }
body.tema-criacao .pri--alta { background: var(--bad-bg); color: var(--bad); }

/* círculo de concluir e datas no estilo Asana */
body.tema-criacao .ck { background: transparent; border-color: #8f8e8d; color: #8f8e8d; }
body.tema-criacao .ck:hover { border-color: var(--ok); color: var(--ok); background: transparent; }
body.tema-criacao .ck.is-ok { background: var(--ok); border-color: var(--ok); color: #1e1f21; }
body.tema-criacao .mt-lista .ck, body.tema-criacao .pr-lista .ck { background: transparent; border-color: #8f8e8d; color: #8f8e8d; }
body.tema-criacao .mt-lista .ck.is-ok, body.tema-criacao .pr-lista .ck.is-ok { background: var(--ok); border-color: var(--ok); color: #1e1f21; }
body.tema-criacao .prazo { font-weight: 400; color: var(--ink-2); }
body.tema-criacao .prazo.perto { color: var(--ok); }
body.tema-criacao .prazo.atr { color: var(--bad); }
body.tema-criacao .av { box-shadow: 0 0 0 2px var(--white); }

/* lista e calendário */
body.tema-criacao .pr-lista ul, body.tema-criacao .mt-lista { background: transparent; border-color: var(--line-2); border-radius: 8px; }
body.tema-criacao .pr-lista__it:hover, body.tema-criacao .mt-it:hover, body.tema-criacao .ve-at:hover, body.tema-criacao .ve-cli:hover, body.tema-criacao .ve-fazendo button:hover { background: var(--sand-100); }
body.tema-criacao .cal__d.is-fora { background: var(--cr-fundo); }
body.tema-criacao .cal__t { background: var(--blue-100); color: #b8cdf8; }
body.tema-criacao .cal__t--andamento { background: rgba(226, 82, 32, .18); color: #f5a584; }
body.tema-criacao .cal__t--aprovacao { background: var(--warn-bg); color: var(--warn); }
body.tema-criacao .cal__t--alteracao { background: var(--bad-bg); color: var(--bad); }
body.tema-criacao .cal__t--artefinal { background: var(--ok-bg); color: var(--ok); }

/* janelas da tarefa e da subtarefa: escuras, campos em linha como no Asana */
body.tema-criacao .ficha, body.tema-criacao .dialogo { background: var(--cr-fundo); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 24px 64px rgba(0, 0, 0, .6); }
body.tema-criacao .ficha__pe { background: var(--cr-coluna); }
body.tema-criacao .ficha__cab { border-bottom-color: var(--line-2); }
body.tema-criacao .ficha .tf-titulo { font-size: 1.5rem; font-weight: 500; }
body.tema-criacao .ficha .tf-meta { grid-template-columns: 1fr; gap: .15rem; }
body.tema-criacao .ficha .tf-meta > .f, body.tema-criacao .ficha .grid2 > .f { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: .75rem; }
body.tema-criacao .ficha .grid2 { grid-template-columns: 1fr; gap: .15rem; }
body.tema-criacao .ficha .tf-meta .f__r, body.tema-criacao .ficha .grid2 .f__r { font-size: .8125rem; font-weight: 400; color: var(--ink-3); margin: 0; }
body.tema-criacao .ficha .tf-meta select, body.tema-criacao .ficha .tf-meta input, body.tema-criacao .ficha .grid2 select, body.tema-criacao .ficha .grid2 input { background: transparent; border-color: transparent; min-height: 36px; }
body.tema-criacao .ficha .tf-meta select:hover, body.tema-criacao .ficha .tf-meta input:hover, body.tema-criacao .ficha .grid2 select:hover, body.tema-criacao .ficha .grid2 input:hover { border-color: var(--line); background: var(--cr-coluna); }
body.tema-criacao .ficha .tf-quando__c { max-width: 320px; }
body.tema-criacao .ficha .ficha__sec h3 { font-size: .9375rem; font-weight: 600; }
body.tema-criacao .subs { border-top-color: var(--line-2); }
body.tema-criacao .subs li.sub { border-bottom-color: var(--line-2); }
body.tema-criacao .subs li.sub:hover { background: var(--cr-coluna); }
body.tema-criacao .sub-cont { background: var(--paper); }
body.tema-criacao .tf-links a { background: transparent; color: var(--blue); padding-left: 0; }
body.tema-criacao .coms li > div { background: var(--cr-coluna); border: 1px solid var(--line-2); }
body.tema-criacao .coms li.interno > div { background: #2b2822; border-color: #3d372b; }
body.tema-criacao .coms mark { color: var(--blue); }
body.tema-criacao .anexos li { background: var(--cr-coluna); }
body.tema-criacao .toast { background: #f5f4f3; color: #1e1f21; }

/* Visão da equipe e Minhas tarefas no escuro (troca as cores claras fixas) */
body.tema-criacao .eq-col { background: var(--cr-coluna); border-color: transparent; }
body.tema-criacao .eq-col.tem-atr { box-shadow: inset 0 2px 0 var(--bad); }
body.tema-criacao .eq-col.is-livre { background: transparent; border: 1px dashed var(--line-2); }
body.tema-criacao .eq-col__ver { background: transparent; border-color: var(--line); color: var(--ink-2); }
body.tema-criacao .eq-col__ver:hover { background: var(--sand-100); }
body.tema-criacao .eq-it { background: var(--white); border: 1px solid var(--card-line); border-left: 3px solid var(--st); border-radius: 4px 8px 8px 4px; }
body.tema-criacao .eq-it:hover { border-color: #6d6e6f; border-left-color: var(--st); box-shadow: none; background: var(--white); }
body.tema-criacao .eq-it.is-atr { background: #2e2426; }
body.tema-criacao .eq-it.pz-chip--aprovacao { background: transparent; border: 1px dashed var(--st); border-left: 3px solid var(--st); }
body.tema-criacao .eq-it__c b { font-weight: 500; }
body.tema-criacao .eq-agora-faz { background: rgba(226, 82, 32, .14); }
body.tema-criacao .eq-agora-faz:hover { background: rgba(226, 82, 32, .22); }
body.tema-criacao .eq-agora span { background: var(--cr-coluna); color: #f5875b; }
body.tema-criacao .eq-agora::before, body.tema-criacao .eq-agora::after { background: #f5875b; }
body.tema-criacao .eq-col__pe { border-top-color: var(--line-2); }
body.tema-criacao .pz__grade { background: var(--line-2); }
body.tema-criacao .pz__dia.is-fds, body.tema-criacao .pz__cel.is-fds, body.tema-criacao .mt-dia.is-fds { background: #26272a; }
body.tema-criacao .pz__dia.is-depois, body.tema-criacao .pz__cel.is-depois { background: #232426; }
body.tema-criacao .pz__cel.is-atr { background: #2a2325; }
body.tema-criacao .pz__cel.is-hoje { background: #2c2a29; }
body.tema-criacao .pz-chip { background: var(--paper); }
body.tema-criacao .pz-chip:hover { background: #38393b; box-shadow: none; }
body.tema-criacao .pz-chip--aprovacao { background: transparent; }
body.tema-criacao .pz__cel.is-atr .pz-chip { background: #3a2a2d; }
body.tema-criacao .mt-lista li.is-atr { background: #2a2325; }
body.tema-criacao .mt-dia.is-on { background: var(--blue-700); }
body.tema-criacao .mt-dia.is-zero b { color: #4a4b4d; }
body.tema-criacao .mt-chip { background: transparent; border-color: var(--line); color: var(--ink-2); }
body.tema-criacao .mt-chip.is-on { background: transparent; border-color: var(--blue); color: var(--blue); }
body.tema-criacao .mt-chip.is-on .mt-chip__n { background: var(--blue-100); color: var(--blue); }
body.tema-criacao .prazo.hoje { background: none; color: var(--ember); }
body.tema-criacao .ve-al { background: rgba(226, 82, 32, .16); color: #f5a584; }
body.tema-criacao .ve-status__dia { color: var(--ink); }
body.tema-criacao .lg { border-color: var(--line-2); }

/* clientes no menu lateral (atalhos como no Asana) */
.side__quadros { display: grid; gap: 1px; margin: .15rem 0 .25rem; }
.side__q { font-weight: 500; }
.side__q > span:not(.lg) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; font-size: .75rem; letter-spacing: .02em; }
.lg--side { width: 20px; height: 20px; border-radius: 5px; font-size: .5rem; border: 0; flex: none; }
img.lg--side { padding: 1px; background: #fff; }
body.tema-criacao .pr-topo__t h1 .lg--g { width: 30px; height: 30px; border-radius: 7px; font-size: .6875rem; margin-right: .6rem; }
body.tema-criacao .pr-topo { margin-bottom: .5rem; }
body.tema-criacao .ficha .x { background: transparent; border-color: transparent; color: var(--ink-3); }
body.tema-criacao .ficha .x:hover { background: var(--sand-100); color: var(--ink); }
body.tema-criacao .subs li.sub .x--sm { opacity: 0; transition: opacity .12s ease; }
body.tema-criacao .subs li.sub:hover .x--sm, body.tema-criacao .subs li.sub:focus-within .x--sm { opacity: 1; }
@media (hover: none) { body.tema-criacao .subs li.sub .x--sm { opacity: 1; } }
body.tema-criacao .ficha__eyebrow { color: var(--ink-3); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .8125rem; }
body.tema-criacao .ficha__eyebrow::before { display: none; }
body.tema-criacao .eq-col.tem-atr { box-shadow: none; }
body.tema-criacao .eq-rot.is-atr { color: var(--bad); }
body.tema-criacao .eq-agora { height: 16px; }
body.tema-criacao .eq-agora::before { height: 1px; }
body.tema-criacao .eq-agora::after { width: 6px; height: 6px; top: calc(50% - 3px); }
body.tema-criacao .eq-agora span { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .6875rem; }
body.tema-criacao .ve-st { color: var(--ink-2); }
body.tema-criacao .eq-agora-faz > span:not(.lg) { color: #f5875b; }

/* rodapé do menu: pessoa + sair na mesma linha; ações da conta embaixo, lado a lado */
.side__pe { grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem .65rem; }
.side__avatar { grid-row: auto; }
.side__eu { line-height: 1.25; }
.side__sair { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: rgba(255, 255, 255, .65); cursor: pointer; }
.side__sair .ico { width: 18px; height: 18px; }
.side__sair:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.side__sair:focus-visible, .side__conta button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.side__conta { grid-column: 1 / -1; display: flex; gap: .4rem; }
.side__conta button { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; padding: .4rem .5rem; min-height: 32px; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .04); }
.side__conta button .ico { width: 14px; height: 14px; flex: none; }
.side__conta button:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.side__pe .nv-estado { grid-column: 1 / -1; }
.side__pe:not(:has(.side__avatar)) .side__conta button { flex: 0 1 auto; }
@media screen and (min-width: 901px) {
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__sair { display: none; }
}

/* ---------- menu lateral: grupo Clientes ---------- */
.side__qtoggle { display: flex; align-items: center; gap: .4rem; width: 100%; border: 0; background: none; padding: .45rem .75rem .35rem 1.35rem; color: rgba(255, 255, 255, .55); font: 600 .625rem var(--font-body, inherit); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; border-radius: 8px; }
.side__qtoggle .ico { width: 12px; height: 12px; transition: transform .15s ease; }
.side__qtoggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
.side__qtoggle em { font-style: normal; font-weight: 600; margin-left: auto; color: rgba(255, 255, 255, .45); }
.side__qtoggle:hover { color: #fff; }
.side__qbusca { display: flex; align-items: center; gap: .4rem; margin: .1rem .5rem .35rem 1rem; padding: 0 .55rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(0, 0, 0, .15); }
.side__qbusca .ico { width: 14px; height: 14px; color: rgba(255, 255, 255, .5); flex: none; }
.side__qbusca input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 500 .8125rem var(--font-body, inherit); padding: .45rem 0; outline: none; }
.side__qbusca input::placeholder { color: rgba(255, 255, 255, .45); }
.side__qbusca:focus-within { border-color: rgba(255, 255, 255, .35); }
.side__qlista { display: grid; gap: 1px; }
.side__qlista.is-rola { max-height: 272px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.side__qvazio { padding: .4rem .75rem .4rem 1.35rem; font-size: .75rem; color: rgba(255, 255, 255, .5); }
.side__q { padding-left: 1.35rem; }
@media screen and (min-width: 901px) {
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) :is(.side__qtoggle, .side__qbusca) { display: none; }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__q { padding-left: 0; }
}

/* ---------- busca no quadro e em todos os quadros ---------- */
.pr-busca { display: inline-flex; align-items: center; gap: .4rem; min-width: 220px; flex: 0 1 280px; padding: 0 .5rem 0 .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); min-height: 36px; }
.pr-busca .ico { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.pr-busca input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 500 .8125rem var(--font-body, inherit); padding: .45rem 0; outline: none; }
.pr-busca input::placeholder { color: var(--ink-3); }
.pr-busca:focus-within { border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.pr-busca kbd { font: 600 .6875rem var(--font-body, inherit); color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; line-height: 1.4; }
.pr-busca:focus-within kbd { display: none; }
.pr-busca__res { font-size: .8125rem; color: var(--ink-2); margin: -.25rem 0 .75rem; }
mark.achou { background: rgba(241, 189, 108, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.tcard__achou { font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-filtros .pr-busca { flex: 1 1 320px; max-width: 420px; }
.bg-res { background: var(--white); border: 1px solid var(--card-line); border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; }
.bg-res header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.bg-res h2 { font-size: .9375rem; font-weight: 600; }
.bg-lista { list-style: none; margin: 0; padding: 0; }
.bg-lista li + li { border-top: 1px solid var(--line-2); }
.bg-it { --st: var(--blue-700); width: 100%; display: flex; align-items: center; gap: .6rem; border: 0; border-left: 3px solid var(--st); background: none; padding: .55rem .6rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 2px; }
.bg-it:hover { background: var(--sand-100); }
.bg-it__c { flex: 1; min-width: 0; display: grid; }
.bg-it__c b { font-weight: 500; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-it__c small { font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-it.is-feita .bg-it__c b { text-decoration: line-through; color: var(--ink-3); }
body.tema-criacao .pr-busca { background: var(--cr-fundo); }
body.tema-criacao mark.achou { background: rgba(241, 189, 108, .28); }
@media screen and (max-width: 900px) {
  .pr-busca, .pr-filtros .pr-busca { flex: 1 1 100%; max-width: none; min-width: 0; }
  .pr-busca input { font-size: 16px; }
  .pr-busca kbd { display: none; }
}

/* ---------- menu: seções que abrem e fecham ---------- */
.side__titulo[role="button"] { cursor: pointer; user-select: none; border-radius: 6px; margin: 0 .25rem; padding-top: .3rem; padding-bottom: .35rem; }
.side__titulo[role="button"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; opacity: .7; }
.side__titulo[aria-expanded="false"]::after { transform: rotate(-45deg); }
.side__titulo[role="button"]:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.side__titulo[role="button"]:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
/* fechada: some tudo, menos a tela em que você está */
.side__grupo.is-fechado > .side__item:not(.is-ativo), .side__grupo.is-fechado > .side__quadros { display: none; }
.side__grupo.is-fechado > .side__titulo { padding-bottom: .1rem; }
@media screen and (min-width: 901px) {
  /* menu estreito (só ícones): mostra tudo, sem seções */
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__grupo.is-fechado > .side__item:not([hidden]) { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .side__titulo[role="button"]::after { transition: none; } }

/* ---------- foto de perfil ---------- */
img.av { object-fit: cover; padding: 0; background: var(--paper); }
.av--xg { width: 88px; height: 88px; font-size: 1.5rem; }
.foto-perfil { display: flex; align-items: center; gap: 1rem; }
.foto-perfil .btn { cursor: pointer; }
.foto-perfil--peq .av--xg { width: 64px; height: 64px; font-size: 1.125rem; }
.av-trocar { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; line-height: 0; }
.av-trocar:hover .av, .av-trocar:focus-visible .av { box-shadow: 0 0 0 2px var(--ember); }
.side__avatar { border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.side__avatar img { width: 100%; height: 100%; object-fit: cover; }
.side__avatar:hover, .side__avatar:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); outline: none; }

/* ---------- sino: avisos da Criação ---------- */
.sino__sec { display: grid; gap: .4rem; }
.sino__sec + header { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line-2); }
.sino__sec > header { display: flex; align-items: center; gap: .5rem; }
.sino__sec > header b { font-family: var(--font-display); font-weight: 600; }
.sino__sec > header span { font-weight: 600; color: var(--ember); }
.sino__sec > header .link-volta { margin-left: auto; min-height: 0; font-size: .75rem; }
.avisos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aviso-it { width: 100%; display: flex; gap: .6rem; align-items: flex-start; border: 0; background: none; padding: .55rem .5rem; border-radius: 10px; text-align: left; font: inherit; color: var(--ink-2); cursor: pointer; }
.aviso-it:hover { background: var(--sand-100); }
.aviso-it > span { display: grid; gap: .2rem; min-width: 0; }
.aviso-it__t { font-size: .8125rem; line-height: 1.35; }
.aviso-it small { display: flex; align-items: center; gap: .3rem; font-size: .6875rem; color: var(--ink-3); }
.aviso-it.is-nova { color: var(--ink); background: var(--blue-100); }
.aviso-it.is-nova .aviso-it__t { font-weight: 600; }
.sino__pe { margin-top: .5rem; }

/* ======================================================================
   TIPOGRAFIA ÚNICA DO PAINEL: Inter em tudo, escala curta, no máximo 600.
   (Propostas e contratos continuam com Poppins/Montserrat: proposta.css.)
   ====================================================================== */
:root {
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body { font-feature-settings: 'cv11' 1, 'ss01' 1; letter-spacing: -.003em; }
body.tema-criacao { --font-display: var(--font-text); }
body.tema-criacao .tela, body.tema-criacao dialog, body.tema-criacao .toast { font-family: var(--font-text); }
/* escala: 24 título da tela · 18 título de janela · 16 seção · 14 texto · 13 apoio · 11 rótulo */
.painel h1, .ini-cab h1, .pr-topo__t h1, body.tema-criacao .tela .painel h1, body.tema-criacao .pr-topo__t h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.ficha__cab h2, .k-topo h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.tf-titulo, body.tema-criacao .ficha .tf-titulo { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.cfg__cab h2, .ini-card h2, .ve-sec h2, .pz__cab h2, .mt-cli__id h2, .cat h2, .bg-res h2, .carga header h2, .fu-grupo h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.eyebrow, .side__titulo, .mt-semana__t, .ve-rot, .eq-rot, .pz__canto, .f__r { letter-spacing: .05em; }
.side__item { font-weight: 500; font-size: .8125rem; }
.side__item.is-ativo { font-weight: 600; }
.btn { font-weight: 600; letter-spacing: 0; }
@media screen and (max-width: 900px) {
  .painel h1, .ini-cab h1, .pr-topo__t h1, body.tema-criacao .tela .painel h1, body.tema-criacao .pr-topo__t h1 { font-size: 1.3125rem; }
}

/* ======================================================================
   MENU: clientes como sub-lista de Quadros (seta na própria linha de Quadros)
   ====================================================================== */
.side__quadros { position: relative; margin: 0; }
.side__item.tem-sub { padding-right: 2.5rem; }
.side__qtoggle { position: absolute; z-index: 2; top: calc(-35px - .15rem); right: .3rem; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 7px; color: rgba(255, 255, 255, .55); }
.side__qtoggle:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.side__qtoggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 0; }
.side__qtoggle .ico { width: 14px; height: 14px; }
.side__qlista { margin: .1rem 0 .2rem 1.45rem; padding-left: .55rem; border-left: 1px solid rgba(255, 255, 255, .12); gap: 1px; }
.side__q { min-height: 32px; padding: .3rem .55rem; gap: .55rem; font-size: .8125rem; font-weight: 500; color: rgba(255, 255, 255, .7); border-radius: 7px; }
.side__q > span:not(.lg) { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.side__q:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side__q.is-ativo { color: #fff; background: rgba(255, 255, 255, .1); font-weight: 600; }
.side__q.is-ativo::before { display: none; }
.lg--side { width: 18px; height: 18px; border-radius: 5px; font-size: .5rem; }
.side__qbusca { margin: .15rem .15rem .35rem 1.45rem; }
.side__qvazio { padding: .35rem .55rem; }
@media screen and (min-width: 901px) {
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__qlista { margin-left: 0; padding-left: 0; border-left: 0; }
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__q { justify-content: center; padding: .3rem; }
}

/* ======================================================================
   USUÁRIOS: uma linha por pessoa (perfil + acesso)
   ====================================================================== */
.pessoas .pes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .85rem; align-items: center; padding: .75rem 1rem; }
.pes__id { display: grid; gap: .1rem; min-width: 0; line-height: 1.3; }
.pes__id b { font-weight: 600; font-size: .875rem; }
.pes__id b small { font-weight: 500; color: var(--ink-3); }
.pes__id small { font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pes__ac { color: var(--ink-2) !important; }
.pes__acoes { display: flex; gap: .85rem; }
.pes.is-off { opacity: .65; }
.pes__novo { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.cfg--aviso { border-color: rgba(226, 82, 32, .35); background: #FFF8F4; }
@media screen and (max-width: 640px) {
  .pessoas .pes { grid-template-columns: auto minmax(0, 1fr); }
  .pessoas .pes .etq { display: none; }
  .pes__acoes { grid-column: 2; }
}

/* ======================================================================
   VISÃO DA EQUIPE: tabela da equipe (uma linha por pessoa, abre o detalhe)
   ====================================================================== */
.eqfs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.eqf { display: inline-flex; align-items: baseline; gap: .4rem; border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: .45rem .75rem; font: 500 .8125rem var(--font-text); color: var(--ink-2); cursor: pointer; min-height: 36px; }
.eqf b { font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.eqf.is-atr b { color: var(--bad); } .eqf.is-hoje b { color: var(--ember); } .eqf.is-cli b { color: var(--warn); } .eqf.is-livre b { color: var(--ok); }
.eqf.is-zero { opacity: .55; }
.eqf:hover { border-color: var(--ink-3); color: var(--ink); }
.eqf.is-on { border-color: var(--blue); color: var(--blue); background: var(--blue-100); }
.eqf:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.eqt { --eqt-cols: minmax(210px, 1.3fr) minmax(190px, 1.6fr) 64px 80px 168px 116px; border: 1px solid var(--card-line); border-radius: 10px; background: var(--white); overflow: hidden; }
.eqt--cli { --eqt-cols: minmax(210px, 1.5fr) minmax(140px, 1fr) 76px 84px 104px 104px minmax(160px, 1.2fr); }
.eqt__row { display: grid; grid-template-columns: var(--eqt-cols); align-items: center; column-gap: 1rem; padding: 0 1rem; min-height: 60px; border-top: 1px solid var(--line-2); }
.eqt__row:first-child { border-top: 0; }
.eqt__cab { min-height: 40px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--cr-coluna, var(--paper)); }
.eqt__row.tem-atr { box-shadow: inset 3px 0 0 var(--bad); }
.eqt__row.is-aberta { background: var(--cr-coluna, var(--paper)); }
.eqt__rowbtn { width: 100%; border: 0; border-top: 1px solid var(--line-2); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.eqt__rowbtn:hover { background: var(--sand-100); }
.eqt__pessoa { display: flex; align-items: center; gap: .6rem; min-width: 0; border: 0; background: none; padding: .6rem 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
button.eqt__pessoa:hover .eqt__nome b { text-decoration: underline; text-underline-offset: 3px; }
.eqt__pessoa:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
.eqt__seta { width: 14px; height: 14px; flex: none; color: var(--ink-3); transition: transform .15s ease; }
.eqt__pessoa[aria-expanded="true"] .eqt__seta { transform: rotate(90deg); }
.eqt__nome { display: grid; min-width: 0; line-height: 1.25; }
.eqt__nome b { font-weight: 600; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eqt__nome small { font-size: .75rem; color: var(--ink-3); }
.eqt__agora { min-width: 0; }
.eqt__faz { display: flex; align-items: center; gap: .45rem; max-width: 100%; border: 0; background: none; padding: .3rem 0; font: inherit; font-size: .8125rem; color: var(--ink); cursor: pointer; text-align: left; }
.eqt__faz span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eqt__faz em { flex: none; font-style: normal; font-size: .75rem; color: var(--ink-3); }
.eqt__faz:hover span { text-decoration: underline; text-underline-offset: 3px; }
.eqt__livre { font-size: .8125rem; font-weight: 500; color: var(--ok); }
.eqt__nada { font-size: .8125rem; color: var(--ink-3); }
.eqt__n { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; display: grid; line-height: 1.2; }
.eqt__n small { font-size: .6875rem; font-weight: 500; color: var(--bad); }
.eqt__n.is-zero { color: var(--ink-3); font-weight: 400; opacity: .6; }
.eqt__n.is-hoje { color: var(--ember); } .eqt__n.is-atr { color: var(--bad); } .eqt__n.is-cli { color: var(--warn); } .eqt__n.is-alt { color: var(--bad); }
.eqt__sem { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; height: 30px; }
.eqt__d { position: relative; height: 100%; border-radius: 3px; background: var(--line-2); display: flex; align-items: flex-end; overflow: hidden; }
.eqt__d.is-fds { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.eqt__d i { display: block; width: 100%; background: var(--blue); border-radius: 3px; }
.eqt__d.is-hoje i { background: var(--ember); }
.eqt__sem--cab { height: auto; align-items: center; text-align: center; }
.eqt__sem--cab span.is-hoje { color: var(--ember); }
.eqt__cli { display: flex; align-items: center; gap: 4px; }
.eqt__cli .is-crit .lg { box-shadow: 0 0 0 1.5px var(--ember); }
.eqt__cli em { font-style: normal; font-size: .75rem; color: var(--ink-3); }
.eqt__crit { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; }
.eqt__prox { display: grid; font-size: .8125rem; min-width: 0; }
.eqt__prox small { font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eqt__vazio { padding: 1.25rem 1rem; font-size: .875rem; color: var(--ink-3); }
.eqt__row.is-sem .eqt__nome b { color: var(--warn); }

/* detalhe aberto da pessoa */
.eqd { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; padding: .25rem 0 1rem 1.5rem; }
.eqd__g > p { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: .35rem; }
.eqd__g.is-atr > p { color: var(--bad); }
.eqd__g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.eqd__v { font-size: .8125rem; color: var(--ink-3); }
.eqd__it { --st: var(--blue-700); width: 100%; display: flex; align-items: center; gap: .5rem; border: 0; border-left: 2px solid var(--st); background: none; padding: .35rem .5rem; border-radius: 0 6px 6px 0; font: inherit; font-size: .8125rem; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.eqd__it:hover { background: var(--sand-100); }
.eqd__q { flex: none; width: 64px; font-size: .75rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqd__q.is-atr { color: var(--bad); }
.eqd__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eqd__t i { font-style: normal; color: var(--ink-3); }
.eqd__e { flex: none; font-size: .6875rem; color: var(--ink-3); }
.eqd__painel { grid-column: 1 / -1; justify-self: start; }

@media screen and (max-width: 1100px) {
  .eqt { --eqt-cols: minmax(180px, 1.2fr) minmax(160px, 1.4fr) 56px 70px 140px; }
  .eqt__row > :nth-child(6), .eqt__cab > :nth-child(6) { display: none; }
  .eqt--cli { --eqt-cols: minmax(180px, 1.4fr) minmax(120px, 1fr) 64px 76px 96px 96px; }
  .eqt--cli .eqt__row > :nth-child(6), .eqt--cli .eqt__cab > :nth-child(6) { display: block; }
  .eqt--cli .eqt__row > :nth-child(7), .eqt--cli .eqt__cab > :nth-child(7) { display: none; }
  .eqd { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 700px) {
  .eqt, .eqt--cli { --eqt-cols: minmax(0, 1fr) auto auto; }
  .eqt__cab { display: none; }
  .eqt__row { grid-template-columns: minmax(0, 1fr) 44px 44px; padding: .25rem .85rem .6rem; row-gap: .15rem; }
  .eqt__row > .eqt__agora { grid-column: 1 / -1; grid-row: 2; padding-left: 1.4rem; }
  .eqt__row > :nth-child(5), .eqt__row > :nth-child(6) { display: none; }
  .eqt--cli .eqt__row { grid-template-columns: minmax(0, 1fr) 44px 44px; }
  .eqt--cli .eqt__row > :nth-child(2), .eqt--cli .eqt__row > :nth-child(5), .eqt--cli .eqt__row > :nth-child(6), .eqt--cli .eqt__row > :nth-child(7) { display: none; }
  .eqd { grid-template-columns: 1fr; padding-left: .25rem; }
}
@media (prefers-reduced-motion: reduce) { .eqt__seta { transition: none; } }

/* menu: pessoa clicável (abre Meu perfil) */
.side__perfil { grid-column: 1 / 3; display: flex; align-items: center; gap: .65rem; min-width: 0; border: 0; background: none; padding: .25rem; margin: -.25rem; border-radius: 10px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.side__perfil:hover { background: rgba(255, 255, 255, .07); }
.side__perfil:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.side__perfil .side__avatar { flex: none; }
.perfil-conta { display: grid; gap: .4rem; }
.perfil-conta__acoes { display: flex; gap: .5rem; flex-wrap: wrap; }
@media screen and (min-width: 901px) {
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__perfil { grid-column: auto; margin: 0; padding: 0; }
}
.eqd > *, .eqd__g, .eqd__g ul, .eqd__g li { min-width: 0; }
.eqd__q { width: 78px; }
.eqt__row > * { min-width: 0; }

/* ================= Relatório mensal (tela) ================= */
.tela--relatorio { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - var(--bar-h)); }
.rel-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding: .75rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--line); }
.rel-barra__esq, .rel-barra__dir { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.rel-barra .f--inline { display: flex; align-items: center; gap: .4rem; margin: 0; }
.rel-barra .f--inline .f__r { margin: 0; white-space: nowrap; }
.rel-barra select, .rel-barra input[type=month] { padding: .35rem .5rem; font: inherit; font-size: .8125rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.rel-barra .chk--peq { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; }
.rel-barra .chk--peq input { width: 16px; height: 16px; }
.rel-barra .nota-sec { max-width: 32ch; font-size: .75rem; }
.preview--relatorio { --zoom: .8; }
@media (max-width: 900px) { .rel-barra .nota-sec { display: none; } .preview--relatorio { --zoom: .45; padding: 12px; } }

/* ================= Lançamentos: filtros, categoria, busca e resumo ================= */
.fin-ferramentas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.fin-afinar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; flex: 1 1 420px; justify-content: flex-end; }
.fin-cat { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .4rem 0 .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); flex: 0 1 240px; min-width: 0; }
.fin-cat .ico { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.fin-cat select { flex: 1; min-width: 0; border: 0; background: none; font: 600 .8125rem var(--font-body, inherit); color: var(--ink); padding: .45rem .2rem; outline: none; cursor: pointer; }
.fin-cat:focus-within { border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.fin-cat.is-on { border-color: var(--ink); }
.fin-busca { flex: 1 1 260px; max-width: 380px; min-height: 38px; border-radius: 999px; }
.fin-res { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; padding: 0; margin-top: .25rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--radius); overflow: hidden; }
.fin-res > div { display: grid; gap: .1rem; min-width: 0; padding: .75rem 1.1rem; border-right: 1px solid var(--line-2); flex: 1 1 160px; }
.fin-res > div:first-child { flex: 1.4 1 220px; }
.fin-res span { font-size: .6875rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.fin-res b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.fin-res > div:first-child b { font-size: .9375rem; }
.fin-res b.pos { color: #127A4B; } .fin-res b.neg { color: #B3261E; }
.fin-res small { font-size: .75rem; color: var(--ink-3); }
.fin-res .link-volta { align-self: center; margin: 0 1rem 0 auto; padding: .75rem 0; }
@media (max-width: 700px) {
  .fin-afinar { justify-content: stretch; }
  .fin-cat, .fin-busca { flex: 1 1 100%; max-width: none; }
  .fin-res > div { flex: 1 1 45%; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .fin-res .link-volta { margin: 0 auto; }
}

/* ================= Projeção e capital de giro ================= */
.pj-grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pj-form { position: sticky; top: calc(var(--bar-h, 0px) + 1rem); }
.pj-campos { display: grid; gap: .85rem; }
.pj-in { position: relative; display: flex; align-items: center; }
.pj-in input { width: 100%; padding-right: 3.2rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.pj-in i { position: absolute; right: .8rem; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--ink-3); pointer-events: none; }
.pj-auto { font-style: normal; font-size: .6875rem; font-weight: 600; color: #127A4B; background: #E3F2EA; border-radius: 999px; padding: .05rem .5rem; margin-left: .35rem; }
.pj-base { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.pj-base .d-mini { font-size: .7rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.pj-base ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pj-base li { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; font-size: .8125rem; }
.pj-base li b { font-weight: 600; font-variant-numeric: tabular-nums; } .pj-base .pos { color: #127A4B; } .pj-base .neg { color: #B3261E; }
.pj-cats li { grid-template-columns: 1fr auto; }
.pj-res { display: grid; gap: 1.25rem; min-width: 0; }
.pj-res .fcards { margin-top: .25rem; }
.fcard.is-neg b { color: #B3261E; }
.pj-barra { height: 10px; background: var(--sand-100, #f1ede6); border-radius: 999px; overflow: hidden; margin-top: 1rem; }
.pj-barra i { display: block; height: 100%; background: #127A4B; border-radius: 999px; }
.pj-tab { width: 100%; border-collapse: collapse; font-size: .8125rem; margin-top: .5rem; }
.pj-tab th { font-size: .7rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.pj-tab td { padding: .5rem .5rem; border-bottom: 1px solid var(--line-2); }
.pj-tab .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj-tab td.pos { color: #127A4B; } .pj-tab td.neg { color: #B3261E; }
.pj-tab td small { color: var(--ink-3); margin-left: .35rem; }
.pj-tab tr.is-atual td { background: var(--sand-100, #f6f3ee); font-weight: 600; }
.pj-tab tr.is-meta td { background: #E3F2EA; font-weight: 600; } .pj-tab tr.is-meta em { font-style: normal; color: #127A4B; font-size: .7rem; text-transform: uppercase; margin-left: .3rem; }
.pj-tab tr.is-ok td { color: var(--ink-3); }
@media (max-width: 900px) { .pj-grid { grid-template-columns: 1fr; } .pj-form { position: static; } }
.pj-tab tr.is-neg td { color: #B3261E; }

/* ---- Projeção: visual ---- */
.pj-f { padding-left: .75rem; border-left: 3px solid var(--line); }
.pj-f--faturamento { border-left-color: #127A4B; } .pj-f--despesas, .pj-f--impostos { border-left-color: #E25220; }
.pj-f--socio1, .pj-f--socio2 { border-left-color: #E0892B; } .pj-f--capital { border-left-color: #2E4F65; }
.pj-hero { background: linear-gradient(135deg, #2E4F65 0%, #1F3746 100%); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; display: grid; gap: 1rem; box-shadow: 0 10px 28px rgba(46,79,101,.22); }
.pj-hero.is-neg { background: linear-gradient(135deg, #7A2E24 0%, #4C1C16 100%); }
.pj-hero__conta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.pj-hero__it { display: grid; gap: .1rem; min-width: 0; flex: 1 1 140px; padding: .75rem .9rem; border-radius: 12px; background: rgba(255,255,255,.07); }
.pj-hero__it span { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.pj-hero__it b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.15; }
.pj-hero__it small { font-size: .75rem; color: rgba(255,255,255,.7); }
.pj-hero__it--fat b { color: #9BE3B9; } .pj-hero__it--custo b, .pj-hero__it--ret b { color: #FFC8B5; }
.pj-hero__it--sobra { flex: 1.3 1 180px; background: #E25220; box-shadow: 0 6px 18px rgba(226,82,32,.35); }
.pj-hero__it--sobra span, .pj-hero__it--sobra small { color: rgba(255,255,255,.85); } .pj-hero__it--sobra b { font-size: 1.7rem; }
.pj-hero.is-neg .pj-hero__it--sobra { background: #fff; color: #B3261E; } .pj-hero.is-neg .pj-hero__it--sobra span, .pj-hero.is-neg .pj-hero__it--sobra small { color: #7A2E24; }
.pj-hero__op { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: rgba(255,255,255,.55); flex: none; }
.pj-comp { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); }
.pj-comp i { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; font-style: normal; font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.pj-comp i span { padding: 0 .5rem; overflow: hidden; text-overflow: ellipsis; }
.pj-comp__desp { background: #E25220; } .pj-comp__ret { background: #E0892B; } .pj-comp__imp { background: #C0392B; } .pj-comp__sobra { background: #127A4B; }
.pj-hero__alerta { margin: 0; font-size: .8125rem; background: rgba(255,255,255,.12); border-radius: 10px; padding: .6rem .8rem; }
.pj-cap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem 1.5rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 5px solid #2E4F65; border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.pj-cap__t h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; color: #2E4F65; margin: .15rem 0 .3rem; }
.pj-cap__t p { font-size: .8125rem; color: var(--ink-2); margin: 0; }
.pj-cap__nums { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pj-cap__nums > div { display: grid; gap: .1rem; padding: .6rem .8rem; background: var(--sand-100, #f6f3ee); border-radius: 10px; }
.pj-cap__nums span { font-size: .6875rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.pj-cap__nums b { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; } .pj-cap__nums b.neg { color: #B3261E; }
.pj-cap__nums small { font-size: .7rem; color: var(--ink-3); }
.pj-cap__barra { grid-column: 1 / -1; position: relative; height: 12px; background: var(--sand-100, #f1ede6); border-radius: 999px; margin: .25rem 0 1rem; }
.pj-cap__barra i { display: block; height: 100%; background: linear-gradient(90deg, #2E4F65, #4F86A8); border-radius: 999px; }
.pj-cap__barra em { position: absolute; top: 16px; transform: translateX(-100%); font-style: normal; font-size: .6875rem; color: var(--ink-3); }
.pj-cen__lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: .5rem; }
.pj-cen__it { display: grid; gap: .1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.pj-cen__it span { font-size: .6875rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.pj-cen__it b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #127A4B; }
.pj-cen__it small { font-size: .72rem; color: var(--ink-3); }
.pj-cen__it.is-atual { border-color: #E25220; background: #FFF4EF; } .pj-cen__it.is-atual span { color: #E25220; }
.pj-cen__it.is-neg b { color: #B3261E; }
.pj-tab--caixa .g { width: 120px; } .pj-tab--caixa td.g { padding-left: .75rem; }
.pj-tab--caixa td.g i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #2E4F65, #4F86A8); }
.pj-tab--caixa td.g i.neg { background: #B3261E; }
@media (max-width: 900px) { .pj-cap { grid-template-columns: 1fr; } .pj-cen__lista { grid-template-columns: 1fr 1fr; } .pj-hero__op { display: none; } }

/* ---------- Importar do Asana ---------- */
.ficha--asana { width: min(640px, calc(100vw - 2rem)); }
.as-passos { margin: .25rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .875rem; }
.as-passos a { color: var(--blue); font-weight: 600; }
.as-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.as-acoes .chk { margin-left: auto; }
.as-lista { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.as-lista li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .75rem; border-top: 1px solid var(--line-2); }
.as-lista li:first-child { border-top: 0; }
.as-lista li small { flex: none; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.as-lista .chk span { font-size: .875rem; }
.as-ja, .as-int { font-style: normal; font-size: .6875rem; font-weight: 600; border-radius: 6px; padding: .05rem .4rem; margin-left: .35rem; white-space: nowrap; }
.as-ja { background: var(--blue-100); color: var(--blue-700); }
.as-int { background: var(--paper); color: var(--ink-3); }
.as-barra { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.as-barra i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .3s ease; }
.as-n { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.as-log { font-size: .8125rem; color: var(--ink-3); }
.as-ok { font-weight: 600; color: var(--ok); }
.as-resumo { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.as-resumo b { font-size: 1.25rem; font-weight: 600; margin-right: .25rem; }
.tf-asana { font-size: .8125rem; color: var(--ink-3); }
.tf-asana a { color: var(--blue); font-weight: 600; }
body.tema-criacao .tf-asana a, body.tema-criacao .as-passos a { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .as-barra i { transition: none; } }

/* ======================================================================
   CRIAÇÃO · ajustes (descrição com links, comentários, subtarefas com
   várias pessoas e ordem, anexos de verdade, quadro sem cor, atualizar)
   ====================================================================== */
/* descrição: texto com links clicáveis; clique fora do link para editar */
.tf-desc { min-height: 44px; padding: .55rem .7rem; border: 1px solid transparent; border-radius: 8px; font-size: .875rem; line-height: 1.55; color: var(--ink); cursor: text; overflow-wrap: anywhere; white-space: normal; }
.tf-desc:hover { border-color: var(--line); background: var(--cr-coluna, var(--paper)); }
.tf-desc:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.tf-desc.is-vazia { color: var(--ink-3); }
.tf-desc a, .coms p a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.tf-desc mark, .coms mark { background: none; color: var(--blue); font-weight: 600; }
.tf-desc[hidden], .tf-desc-f textarea[hidden] { display: none; }
.tf-desc-f textarea { width: 100%; }

/* comentários: cabeçalho com "Excluir" */
.com__cab { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.com__cab small { margin-left: 0; }
.com__x { margin-left: auto; border: 0; background: none; padding: 0 .1rem; font: 500 .6875rem var(--font-text); color: var(--ink-3); cursor: pointer; opacity: 0; }
.coms li:hover .com__x, .com__x:focus-visible { opacity: 1; }
.com__x:hover { color: var(--bad); text-decoration: underline; }
@media (hover: none) { .com__x { opacity: 1; } }

/* subtarefas: alça para arrastar, setas, várias pessoas */
.ficha .subs li.sub { display: flex; align-items: center; gap: .45rem; flex-wrap: nowrap; position: relative; }
.ficha .subs li.sub .sub__t { flex: 1; min-width: 0; }
.sub__arr { flex: none; width: 14px; text-align: center; font-size: .8125rem; letter-spacing: -2px; color: var(--ink-3); cursor: grab; opacity: 0; user-select: none; }
li.sub:hover .sub__arr { opacity: .8; }
.sub__arr:active { cursor: grabbing; }
li.sub.is-arrastando { opacity: .45; }
li.sub.is-cima { box-shadow: inset 0 2px 0 var(--blue); }
li.sub.is-baixo { box-shadow: inset 0 -2px 0 var(--blue); }
.sub__mov { flex: none; display: inline-flex; gap: 1px; opacity: 0; }
li.sub:hover .sub__mov, .sub__mov:focus-within { opacity: 1; }
.sub__mov button { width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: var(--ink-3); font-size: .8125rem; line-height: 1; cursor: pointer; }
.sub__mov button:hover { background: var(--sand-100); color: var(--ink); }
.sub__mov button:focus-visible { outline: 2px solid var(--blue); }
@media (hover: none) { .sub__arr { display: none; } .sub__mov { opacity: 1; } }
.sub__r { position: relative; flex: none; }
.sub__pes { display: inline-flex; align-items: center; gap: .15rem; border: 0; background: none; padding: .15rem .25rem; border-radius: 999px; cursor: pointer; color: var(--ink-3); }
.sub__pes:hover, .sub__pes[aria-expanded="true"] { background: var(--sand-100); }
.sub__pes .avs .av + .av { margin-left: -6px; }
.sub__pes em { font-style: normal; font-size: .6875rem; color: var(--ink-3); margin-left: .1rem; }
.sub__mais { width: 18px; height: 18px; border-radius: 50%; border: 1px dashed var(--ink-3); display: inline-grid; place-items: center; font-size: .75rem; line-height: 1; margin-left: .15rem; opacity: 0; }
li.sub:hover .sub__mais, .sub__pes[aria-expanded="true"] .sub__mais { opacity: 1; }
@media (hover: none) { .sub__mais { opacity: 1; } }
.sub-pop { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; width: 240px; max-height: 280px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2, 0 6px 20px rgba(0,0,0,.25)); padding: .4rem; display: grid; gap: 1px; }
body.tema-criacao .sub-pop { background: #2a2b2d; }
.sub-pop > p { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: .25rem .4rem; }
.sub-pop__it { padding: .35rem .4rem; border-radius: 7px; }
.sub-pop__it:hover { background: var(--sand-100); }
.sub-pop__it > span { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; }
.pes-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.pes-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .25rem .2rem .2rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; }
.pes-chip button { border: 0; background: none; width: 20px; height: 20px; border-radius: 50%; color: var(--ink-3); cursor: pointer; font-size: .875rem; line-height: 1; }
.pes-chip button:hover { background: var(--sand-100); color: var(--bad); }
.pes-chips select { min-height: 32px; border-radius: 999px; padding: .2rem .7rem; font-size: .8125rem; }
@media screen and (max-width: 640px) {
  .ficha .subs li.sub { flex-wrap: wrap; row-gap: .2rem; }
  .ficha .subs li.sub .sub__t { flex: 1 1 calc(100% - 40px); }
}

/* anexos: miniatura, abrir, excluir, arrastar arquivos */
.anx-area { display: grid; gap: .5rem; border-radius: 10px; }
.anx-area.is-alvo { outline: 2px dashed var(--blue); outline-offset: 4px; }
.anexos .anx { display: flex; align-items: center; gap: .6rem; }
.anx__min { flex: none; width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; }
.anx__min img { width: 100%; height: 100%; object-fit: cover; }
.anx__ico { flex: none; width: 40px; height: 40px; border-radius: 6px; background: var(--line-2); display: grid; place-items: center; color: var(--ink-3); }
.anx__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.anx__nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; padding: 0; text-align: left; font: 500 .8125rem var(--font-text); color: var(--ink); }
button.anx__nome, a.anx__nome { cursor: pointer; color: var(--blue); text-decoration: none; }
button.anx__nome:hover, a.anx__nome:hover { text-decoration: underline; }
.anexos .anx small { flex: none; margin-left: 0; }
.anx.is-enviando { opacity: .6; }
.anx-dica { font-size: .75rem; color: var(--ink-3); }
@media (hover: none) { .anx-dica { display: none; } }

/* quadro sem cor: iniciais em cinza neutro */
.lg--ini, body.tema-criacao .lg--ini { background: #4b4d52; color: #f2f2f2; }
.pr-ico, body.tema-criacao .pr-ico { background: var(--ink-3); }
.pr-card::before { display: none; }

/* atualizar (embaixo do menu, junto do "Salvo na nuvem") */
.nv-linha { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.nv-atualizar { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; padding: .2rem .35rem; border-radius: 6px; font: 600 .6875rem var(--font-text); color: rgba(255, 255, 255, .65); cursor: pointer; }
.nv-atualizar .ico { width: 13px; height: 13px; }
.nv-atualizar:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nv-atualizar.is-girando .ico { animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nv-atualizar.is-girando .ico { animation: none; } }
@media screen and (min-width: 901px) {
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .nv-linha { display: none; }
}

/* ======================================================================
   @MENÇÃO: lista de sugestões enquanto digita
   ====================================================================== */
.mencao-pop { position: absolute; z-index: 30; width: min(300px, 90vw); background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); padding: .3rem; display: grid; gap: 1px; }
body.tema-criacao .mencao-pop { background: #2c2d30; }
.mencao-it { display: flex; align-items: center; gap: .55rem; width: 100%; border: 0; background: none; padding: .4rem .5rem; border-radius: 7px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.mencao-it > span { display: grid; line-height: 1.2; }
.mencao-it b { font-weight: 600; font-size: .8125rem; }
.mencao-it small { font-size: .6875rem; color: var(--ink-3); }
.mencao-it.is-sel, .mencao-it:hover { background: var(--blue-100); }
.mencao-dica { font-size: .625rem; color: var(--ink-3); padding: .3rem .5rem .15rem; border-top: 1px solid var(--line-2); margin-top: .15rem; }
@media (hover: none) { .mencao-dica { display: none; } }

/* ======================================================================
   CENTRAL DE NOTIFICAÇÕES (painel lateral)
   ====================================================================== */
.sino-painel { position: fixed; inset: 0 0 0 auto; top: 0 !important; left: auto !important; z-index: 70; width: min(420px, 100vw); max-height: none; height: 100dvh; border-radius: 0; border: 0; border-left: 1px solid var(--card-line); padding: 0; display: flex; flex-direction: column; gap: 0; box-shadow: -18px 0 48px rgba(0, 0, 0, .25); background: var(--white); animation: centralEntra .18s ease both; }
.sino-painel[hidden] { display: none; }
@keyframes centralEntra { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.tema-criacao .sino-painel { background: #1f2022; }
.central__cab { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1rem .6rem 1.1rem; }
.central__cab h2 { font-size: 1.125rem; font-weight: 600; }
.central__acoes { display: flex; align-items: center; gap: .75rem; }
.central__acoes .link-volta { min-height: 0; font-size: .75rem; }
.central__filtros { display: flex; gap: .3rem; padding: 0 1rem .6rem; overflow-x: auto; border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
.central__filtros button { flex: none; border: 1px solid var(--line); background: none; border-radius: 999px; padding: .3rem .7rem; font: 500 .75rem var(--font-text); color: var(--ink-2); cursor: pointer; }
.central__filtros button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
body.tema-criacao .central__filtros button[aria-pressed="true"] { background: var(--blue-100); border-color: var(--blue); color: var(--blue); }
.central__corpo { flex: 1; overflow-y: auto; padding: .4rem .5rem 1rem; overscroll-behavior: contain; }
.central__g h3 { display: flex; align-items: center; gap: .4rem; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: .8rem .6rem .35rem; }
.central__g h3 span { background: var(--ember); color: #fff; border-radius: 99px; padding: 0 .4rem; font-size: .625rem; letter-spacing: 0; }
.ntfs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ntf { position: relative; width: 100%; display: flex; align-items: flex-start; gap: .7rem; border: 0; background: none; padding: .6rem .6rem; border-radius: 10px; text-align: left; font: inherit; color: var(--ink-2); cursor: pointer; }
.ntf:hover { background: var(--sand-100); }
.ntf.is-nova { color: var(--ink); background: var(--blue-100); }
.ntf.is-nova:hover { filter: brightness(1.05); }
.ntf__av { position: relative; flex: none; }
.ntf__tipo { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-700); color: #fff; box-shadow: 0 0 0 2px var(--white); }
body.tema-criacao .ntf__tipo { box-shadow: 0 0 0 2px #1f2022; }
.ntf__tipo svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ntf--mencao .ntf__tipo { background: #7c5cff; } .ntf--atrib .ntf__tipo { background: var(--blue-700); } .ntf--coment .ntf__tipo { background: #64748b; }
.ntf--aprovou .ntf__tipo { background: var(--ok); } .ntf--alteracao .ntf__tipo { background: var(--bad); } .ntf--pedido .ntf__tipo { background: var(--ember); } .ntf--chat .ntf__tipo { background: #0e9488; }
.ntf__c { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.ntf__t { font-size: .8125rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ntf.is-nova .ntf__t { font-weight: 600; }
.ntf__meta { display: flex; align-items: center; gap: .3rem; font-size: .6875rem; color: var(--ink-3); }
.ntf__ponto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); margin-top: .35rem; }
.central__fu { width: calc(100% - .4rem); margin: .4rem .2rem .2rem; display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: none; border-radius: 10px; padding: .6rem .75rem; font: 500 .8125rem var(--font-text); color: var(--ink); cursor: pointer; text-align: left; }
.central__fu b { color: var(--ember); }
.central__fu span { margin-left: auto; color: var(--ink-3); }
.central__fu:hover { background: var(--sand-100); }
.central__vazio { display: grid; gap: .3rem; text-align: center; padding: 3rem 1.5rem; color: var(--ink-3); font-size: .8125rem; }
.central__vazio b { color: var(--ink); font-size: .9375rem; }
.central__mais { padding: .5rem .6rem; }
.central__pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1.1rem calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
.central__dica { font-size: .6875rem; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .sino-painel { animation: none; } }

/* ======================================================================
   CHAT DA EQUIPE
   ====================================================================== */
.tela--chat:not([hidden]) { padding: 0; }
.chat-tela { height: 100dvh; }
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100%; }
.chat__lista { border-right: 1px solid var(--line-2); overflow-y: auto; padding: 1.1rem .6rem 1rem; }
.chat__lista ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.chat__titulo { font-size: 1.375rem; font-weight: 600; padding: 0 .5rem .6rem; }
.chat__sec { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: .8rem .5rem .3rem; }
.chat__canal { width: 100%; display: flex; align-items: center; gap: .55rem; border: 0; background: none; padding: .4rem .5rem; border-radius: 8px; font: 500 .875rem var(--font-text); color: var(--ink-2); cursor: pointer; text-align: left; min-height: 36px; }
.chat__canal > span:not(.lg):not(.av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__canal:hover { background: var(--sand-100); color: var(--ink); }
.chat__canal.is-on { background: var(--blue-100); color: var(--ink); }
.chat__canal.tem-nova { color: var(--ink); font-weight: 600; }
.chat__canal em { flex: none; font-style: normal; font-size: .6875rem; font-weight: 700; background: var(--ember); color: #fff; border-radius: 99px; padding: 0 .4rem; min-width: 18px; text-align: center; }
.chat__hash { flex: none; width: 20px; height: 20px; display: grid; place-items: center; font-weight: 600; color: var(--ink-3); }
.chat__hash--g { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); font-size: 1.125rem; }
.chat__conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.chat__cab { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line-2); }
.chat__cab-t { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.chat__cab-t b { font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__cab-t small { font-size: .75rem; color: var(--ink-3); }
.chat__voltar { display: none; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--ink-2); padding: .2rem .4rem; cursor: pointer; }
.chat__aviso { margin: .75rem 1.25rem 0; font-size: .8125rem; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: .5rem .75rem; }
.chat__msgs { flex: 1; overflow-y: auto; padding: 1rem 1.25rem .5rem; overscroll-behavior: contain; }
.chat__vazio { display: grid; gap: .3rem; text-align: center; padding: 4rem 1rem; color: var(--ink-3); font-size: .875rem; }
.chat__vazio b { color: var(--ink); }
.chat__dia, .chat__novas { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .5rem; font-size: .6875rem; font-weight: 600; color: var(--ink-3); }
.chat__dia::before, .chat__dia::after, .chat__novas::before, .chat__novas::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.chat__dia span { text-transform: capitalize; }
.chat__novas { color: var(--ember); } .chat__novas::before, .chat__novas::after { background: var(--ember); opacity: .5; }
.cm { position: relative; display: flex; gap: .7rem; padding: .3rem .4rem; border-radius: 8px; }
.cm:hover { background: rgba(127, 127, 127, .07); }
.cm + .cm:not(.is-seq) { margin-top: .5rem; }
.cm.is-seq { padding-top: .05rem; padding-bottom: .05rem; }
.cm .av { margin-top: .1rem; }
.cm__hora-l { flex: none; width: 34px; font-size: .625rem; color: var(--ink-3); text-align: right; padding-top: .3rem; opacity: 0; }
.cm:hover .cm__hora-l { opacity: 1; }
.cm__c { flex: 1; min-width: 0; }
.cm__cab { display: flex; align-items: baseline; gap: .45rem; }
.cm__cab b { font-weight: 600; font-size: .875rem; }
.cm__cab small { font-size: .6875rem; color: var(--ink-3); }
.cm__c p { font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.cm__c p a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cm__c p mark { background: none; color: var(--blue); font-weight: 600; }
.cm__ed { font-size: .6875rem; color: var(--ink-3); }
.cm__apagada { font-style: italic; color: var(--ink-3); }
.cm.is-erro p { opacity: .6; }
.cm__falha { font-size: .75rem; color: var(--bad); }
.cm__acoes { position: absolute; top: -.6rem; right: .5rem; display: none; gap: 1px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.cm:hover .cm__acoes, .cm__acoes:focus-within { display: flex; }
@media (hover: none) { .cm.is-meu .cm__acoes { position: static; display: flex; align-self: flex-start; background: none; border: 0; } }
.cm__acoes button { border: 0; background: none; padding: .2rem .45rem; border-radius: 6px; font: 500 .6875rem var(--font-text); color: var(--ink-2); cursor: pointer; }
.cm__acoes button:hover { background: var(--sand-100); color: var(--ink); }
.cm__edit { display: grid; gap: .4rem; }
.cm__edit textarea { width: 100%; border: 1px solid var(--blue); border-radius: 8px; padding: .5rem .6rem; font: inherit; background: var(--cr-fundo, var(--white)); color: var(--ink); }
.cm__edit div { display: flex; gap: .4rem; }
.chat__comp { position: relative; display: flex; align-items: flex-end; gap: .5rem; padding: .75rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
.chat__comp textarea { flex: 1; min-height: 42px; max-height: 180px; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; font: inherit; font-size: .875rem; line-height: 1.45; background: var(--cr-fundo, var(--white)); color: var(--ink); }
.chat__comp textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.chat__comp .btn { min-height: 42px; }
.side__badge { margin-left: auto; font-style: normal; font-size: .625rem; font-weight: 700; background: var(--ember); color: #fff; border-radius: 99px; padding: .05rem .4rem; min-width: 18px; text-align: center; }
.side__badge[hidden] { display: none; }
@media screen and (min-width: 901px) {
  :is(body.side-mini, body[data-tela-atual="editor"], body[data-tela-atual="contrato"]) .side:not(:hover) .side__badge { position: absolute; top: 4px; right: 8px; margin: 0; }
}
@media screen and (max-width: 900px) {
  .chat-tela { height: calc(100dvh - var(--bar-h, 56px) - 64px - env(safe-area-inset-bottom)); }
  .chat { grid-template-columns: 1fr; }
  .chat__conv { display: none; }
  .chat.is-conversa .chat__lista { display: none; }
  .chat.is-conversa .chat__conv { display: flex; }
  .chat__voltar { display: block; }
  .chat__cab { padding: .6rem .75rem; }
  .chat__msgs { padding: .75rem .75rem .5rem; }
  .chat__comp { padding: .6rem .75rem .75rem; }
  .chat__comp textarea { font-size: 16px; }
}

/* ======================================================================
   MEU PERFIL › APARÊNCIA (cor de fundo)
   ====================================================================== */
.ap-cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.ap-cor { display: grid; justify-items: center; gap: .3rem; border: 1px solid var(--line); background: none; border-radius: 10px; padding: .5rem .3rem .4rem; cursor: pointer; color: var(--ink-2); }
.ap-cor small { font-size: .6875rem; }
.ap-cor:hover { border-color: var(--ink-3); }
.ap-cor.is-on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-100); color: var(--ink); }
.ap-cor__amostra { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(127, 127, 127, .35); }
.ap-cor__amostra--padrao { background: linear-gradient(135deg, #f4f4f4 0 50%, #1e1f21 50% 100%); }
.ap-livre { display: inline-flex; align-items: center; gap: .6rem; font-size: .8125rem; color: var(--ink-2); cursor: pointer; margin-top: .25rem; }
.ap-livre input[type="color"] { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: none; cursor: pointer; }
/* fundo escolhido pela pessoa (aparência escura vale para o painel todo) */
body.tema-criacao .side { background: var(--cr-side, #1b1c1e); }
body.tema-criacao .bar, body.tema-criacao .tabbar { background: var(--cr-side, #1b1c1e); }

/* ======================================================================
   MINHAS TAREFAS EM QUADRO
   ====================================================================== */
.mt-quadro { margin-top: .25rem; }
.mt-card { cursor: pointer; }
.mt-card[draggable="true"] { cursor: grab; }
.mt-card__cli { display: flex; align-items: center; gap: .35rem; font-size: .6875rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mt-card.is-sub { border-style: dashed; }
.mt-card .mt-mae { font-size: .6875rem; }
.tcol.is-alvo .tcol__cards, [data-mt-col].is-alvo { box-shadow: inset 0 0 0 1px var(--blue); }
.mt-q-vazio { font-size: .75rem; color: var(--ink-3); padding: .5rem .3rem; text-align: center; }
.chat__canal > span.chat__hash:not(.lg):not(.av) { flex: none; }
.chat__comp textarea { height: 42px; overflow-y: auto; }

/* ---------- cor de fundo escura escolhida pelo usuário: telas fora da Criação ---------- */
body.tema-criacao .btn:not(.btn--ghost) { color: #fff; }
body.ap-escura .aviso, body.ap-escura .backup-aviso, body.ap-escura .cfg--aviso { border-color: var(--line); }

body.ap-escura .btn--perigo { color: var(--bad); }
body.ap-escura .btn--perigo:hover { background: var(--paper); }
body.ap-escura .x:hover { color: var(--bad); }
body.ap-escura .svc.is-on { background: var(--paper); }
body.ap-escura .aviso { color: var(--warn); background: var(--paper); }
body.ap-escura .card__acoes .perigo { color: var(--bad); }
body.ap-escura .tag--ok { background: var(--paper); color: var(--ok); }
body.ap-escura .status--travada { background: var(--paper); }
body.ap-escura .tag--pdf { background: var(--paper); }
body.ap-escura .cat__meu { background: var(--paper); }
body.ap-escura .cat__links .perigo { color: var(--bad); }
body.ap-escura .status--pdf { background: var(--paper); }
body.ap-escura .k-topo .aviso { color: var(--warn); }
body.ap-escura .ok-k { background: var(--paper); }
body.ap-escura .k-ed-item.is-ed textarea { background: var(--paper); }
body.ap-escura .k-ed-item em { background: var(--paper); }
body.ap-escura .backup-aviso { background: var(--paper); }
body.ap-escura .backup-aviso p { color: var(--warn); }
body.ap-escura .coluna { background: var(--paper); }
body.ap-escura .coluna.is-alvo { background: var(--paper); }
body.ap-escura .coluna[data-etapa="ativo"] header b { color: var(--ok); }
body.ap-escura .etq--enviada { background: var(--paper); }
body.ap-escura .etq--negociacao { background: var(--paper); color: var(--warn); }
body.ap-escura .etq--ativo { background: var(--paper); color: var(--ok); }
body.ap-escura .etq--perdido { background: var(--paper); }
body.ap-escura .fcard--atr.tem { background: var(--paper); }
body.ap-escura .fcard--atr.tem b { color: var(--warn); }
body.ap-escura .lanc--entrada .lanc__v { color: var(--ok); }
body.ap-escura .lanc--saida .lanc__v { color: var(--bad); }
body.ap-escura .lanc__acoes .perigo { color: var(--bad); }
body.ap-escura .sit--recebido, body.ap-escura .sit--pago { background: var(--paper); color: var(--ok); }
body.ap-escura .sit--atrasado { background: var(--paper); color: var(--bad); }
body.ap-escura .ini-lanc span.atr { color: var(--warn); }
body.ap-escura .dia-num.is-atr { background: var(--paper); }
body.ap-escura .dia-num.is-hoje { background: var(--paper); }
body.ap-escura .dia-num.is-hoje b { color: var(--warn); }
body.ap-escura .ini-nums .pos { color: var(--ok); }
body.ap-escura .ini-nums .neg { color: var(--bad); }
body.ap-escura .etq--inativo { background: var(--paper); }
body.ap-escura .coluna--ganho { background: var(--paper); }
body.ap-escura .coluna--ganho header b { color: var(--ok); }
body.ap-escura .coluna--ganho .coluna__vazia { color: var(--ok); }
body.ap-escura .coluna--ganho.is-alvo { background: var(--paper); }
body.ap-escura .sit--previsto { background: var(--paper); }
body.ap-escura .fin-grid .atr, body.ap-escura .ini-lanc em.neg { color: var(--bad); }
body.ap-escura .proj b.pos { color: var(--ok); }
body.ap-escura .proj b.neg { color: var(--bad); }
body.ap-escura .mens-resumo b.pos { color: var(--ok); }
body.ap-escura .mens-resumo b.neg { color: var(--bad); }
body.ap-escura .extras .atr { color: var(--bad); }
body.ap-escura .link-volta.perigo { color: var(--bad); }
body.ap-escura .mes__tag { background: var(--paper); }
body.ap-escura .ini-lanc b small { background: var(--paper); }
body.ap-escura .funil__prev b.pos { color: var(--ok); }
body.ap-escura .card__acoes .aprovar { color: var(--ok); }
body.ap-escura .com__passo.is-fim { background: var(--paper); }
body.ap-escura .com__passo.is-fim b { color: var(--ok); }
body.ap-escura .com__neg b.pos { color: var(--ok); }
body.ap-escura .tab__cab, body.ap-escura .crm-tab__cab { background: var(--paper); }
body.ap-escura .lanc:hover { background: var(--paper); }
body.ap-escura .coluna { background: var(--paper); }
body.ap-escura .ficha__pe { background: var(--paper); }
body.ap-escura .sit--perdida { background: var(--paper); }
body.ap-escura .fu.atr { background: var(--paper); }
body.ap-escura .rapido--whats { background: var(--paper); }
body.ap-escura .rapido--whats:hover { background: var(--paper); }
body.ap-escura .tcol { background: var(--paper); }
body.ap-escura .prazo.hoje { background: var(--paper); }
body.ap-escura .cal__t--andamento { background: var(--paper); }
body.ap-escura .mt-lista li.is-atr { background: var(--paper); }
body.ap-escura .ve-al { background: var(--paper); }
body.ap-escura .pz__dia.is-fds, body.ap-escura .pz__cel.is-fds { background: var(--paper); }
body.ap-escura .pz__dia.is-depois, body.ap-escura .pz__cel.is-depois { background: var(--paper); }
body.ap-escura .pz__cel.is-atr { background: var(--paper); }
body.ap-escura .pz__cel.is-hoje { background: var(--paper); }
body.ap-escura .mt-dia.is-fds { background: var(--paper); }
body.ap-escura .eq-agora-faz { background: var(--paper); }
body.ap-escura .eq-agora-faz:hover { background: var(--paper); }
body.ap-escura .cfg--aviso { background: var(--paper); }
body.ap-escura .fin-res b.pos { color: var(--ok); }
body.ap-escura .fin-res b.neg { color: var(--bad); }
body.ap-escura .pj-auto { color: var(--ok); background: var(--paper); }
body.ap-escura .pj-base .pos { color: var(--ok); }
body.ap-escura .pj-base .neg { color: var(--bad); }
body.ap-escura .fcard.is-neg b { color: var(--bad); }
body.ap-escura .pj-tab td.pos { color: var(--ok); }
body.ap-escura .pj-tab td.neg { color: var(--bad); }
body.ap-escura .pj-tab tr.is-meta td { background: var(--paper); }
body.ap-escura .pj-tab tr.is-meta em { color: var(--ok); }
body.ap-escura .pj-tab tr.is-neg td { color: var(--bad); }
body.ap-escura .pj-hero.is-neg .pj-hero__it--sobra { color: var(--bad); }
body.ap-escura .pj-hero.is-neg .pj-hero__it--sobra span, body.ap-escura .pj-hero.is-neg .pj-hero__it--sobra small { color: var(--bad); }
body.ap-escura .pj-cap__nums b.neg { color: var(--bad); }
body.ap-escura .pj-cen__it b { color: var(--ok); }
body.ap-escura .pj-cen__it.is-atual { background: var(--paper); }
body.ap-escura .pj-cen__it.is-neg b { color: var(--bad); }
body.ap-escura .pj-hero.is-neg .pj-hero__it--sobra { background: var(--bad-bg); }
body.ap-escura .mes__tag, body.ap-escura .sit--previsto, body.ap-escura .etq--enviada { color: var(--blue); background: var(--blue-100); }
body.ap-escura .dia-num.is-atr b { color: var(--bad); }
body.ap-escura .dia-num.is-cli b, body.ap-escura .pj-cap__t h2 { color: var(--ink); }
body.ap-escura .mt-dia.is-zero b { color: var(--ink-3); }



/* ---------- Chat 2: lista, conversas, emojis, figurinhas, fotos e janelinhas ---------- */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 100%; }
.chat__lista { border-right: 1px solid var(--line-2); overflow-y: auto; padding: 1.1rem .6rem 1rem; }
.chat__lista-in { display: block; }
.chat__busca { display: flex; align-items: center; gap: .45rem; margin: 0 .3rem .4rem; padding: 0 .65rem; height: 36px; border-radius: 9px; background: var(--sand-100); color: var(--ink-3); }
.chat__busca svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.chat__busca input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .8125rem; color: var(--ink); outline: none; }
.chat__sec { display: flex; align-items: center; justify-content: space-between; }
.chat__todos { border: 0; background: none; font: 600 .6875rem var(--font-text); color: var(--blue); cursor: pointer; text-transform: none; letter-spacing: 0; }
.chat__nada { font-size: .75rem; color: var(--ink-3); padding: .2rem .55rem .5rem; }
.chat__canal { align-items: center; min-height: 48px; padding: .4rem .5rem; }
.chat__canal > .lg { flex: none; }
.chat__ct { flex: 1; min-width: 0; display: grid; gap: 1px; }
.chat__cn { display: flex; align-items: baseline; gap: .4rem; }
.chat__cn b { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.chat__cn small { flex: none; font-size: .6875rem; color: var(--ink-3); }
.chat__cp { font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__canal.tem-nova .chat__cn b, .chat__canal.tem-nova .chat__cp { font-weight: 600; color: var(--ink); }
.chat-av { position: relative; flex: none; display: inline-flex; }
.chat-on { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); border: 2px solid var(--cr-fundo, var(--white)); display: none; }
.chat-on.is-on { display: block; background: #2fb36d; }

.cv { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; background: var(--cr-fundo, var(--white)); }
.cv.is-alvo::after { content: "Solte a foto aqui"; position: absolute; inset: 8px; display: grid; place-items: center; border: 2px dashed var(--blue); border-radius: 12px; background: var(--blue-100); color: var(--ink); font-weight: 600; z-index: 5; pointer-events: none; }
.cv__cab { display: flex; align-items: center; gap: .65rem; padding: .8rem 1.25rem; border-bottom: 1px solid var(--line-2); min-width: 0; }
.cv__cab .chat__cab-t b { display: flex; align-items: center; gap: .35rem; }
.cv__n { font-style: normal; font-size: .625rem; font-weight: 700; background: var(--ember); color: #fff; border-radius: 99px; padding: 0 .35rem; min-width: 16px; text-align: center; }
.cv__bts { display: flex; gap: 1px; margin-left: auto; }
.cv__bts button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; opacity: .85; }
.cv__bts button:hover { background: rgba(127, 127, 127, .18); opacity: 1; }
.cv__bts svg, .cv__ferr svg, .cv__enviar svg, .chat-dock__bolha svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv__dig { min-height: 18px; padding: 0 1.25rem; font-size: .6875rem; color: var(--ink-3); display: flex; align-items: center; gap: .4rem; }
.cv__dots { display: inline-flex; gap: 2px; } .cv__dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: digita 1s infinite ease-in-out; }
.cv__dots i:nth-child(2) { animation-delay: .15s; } .cv__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes digita { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.cv__fila { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: 0 1.25rem; }
.cv__fila:empty { display: none; }
.cv__fila small { font-size: .6875rem; color: var(--ink-3); }
.cv__fi { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.cv__fi img { width: 100%; height: 100%; object-fit: cover; }
.cv__fi button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: .75rem; line-height: 1; cursor: pointer; }
.cv__comp { position: relative; display: flex; align-items: flex-end; gap: .4rem; padding: .6rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); }
.cv__ferr { display: flex; gap: 1px; padding-bottom: 4px; }
.cv__ferr button, .cv__ferr label { width: 32px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.cv__ferr button:hover, .cv__ferr label:hover { background: var(--sand-100); color: var(--ink); }
.cv__ferr .cv__gif { font: 800 .625rem var(--font-text); letter-spacing: .02em; }
.cv__ferr .cv__gif::before { content: ""; } 
.cv__comp textarea { flex: 1; min-width: 0; height: 42px; min-height: 42px; max-height: 160px; overflow-y: auto; resize: none; border: 1px solid var(--line); border-radius: 21px; padding: .6rem .9rem; font: inherit; font-size: .875rem; line-height: 1.45; background: var(--white); color: var(--ink); }
.cv__comp textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.cv__enviar { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ember); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cv__enviar:hover { background: var(--ember-2); }
.cv .chat__msgs { padding: 1rem 1.25rem .4rem; }

/* emojis, figurinhas e GIFs */
.cpop { position: absolute; left: .75rem; bottom: calc(100% - .4rem); z-index: 20; width: min(340px, calc(100% - 1.5rem)); height: 320px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); overflow: hidden; }
.cv .cv__comp + .cpop, .cv .cpop { bottom: 64px; }
.cpop__abas { display: flex; gap: 2px; padding: .4rem; border-bottom: 1px solid var(--line-2); }
.cpop__abas button { flex: 1; border: 0; border-radius: 8px; background: none; padding: .4rem; font: 600 .75rem var(--font-text); color: var(--ink-3); cursor: pointer; }
.cpop__abas button[aria-pressed="true"] { background: var(--sand-100); color: var(--ink); }
.cpop__corpo { flex: 1; overflow-y: auto; padding: .3rem .5rem .6rem; overscroll-behavior: contain; }
.cpop__sec { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: .5rem .2rem .2rem; }
.cpop__emojis { display: grid; grid-template-columns: repeat(8, 1fr); }
.cpop__emojis button { border: 0; background: none; font-size: 1.35rem; line-height: 1; padding: .3rem 0; border-radius: 7px; cursor: pointer; }
.cpop__emojis button:hover { background: var(--sand-100); transform: scale(1.12); }
.cpop__figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding-top: .3rem; }
.cpop__figs button { border: 0; background: none; padding: .25rem; border-radius: 10px; cursor: pointer; }
.cpop__figs button:hover { background: var(--sand-100); }
.cpop__figs .fig { transform: none; width: 100%; }
.cpop__busca { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 .7rem; font: inherit; font-size: .8125rem; background: var(--cr-fundo, var(--white)); color: var(--ink); margin: .3rem 0 .5rem; }
.cpop__gifs { columns: 2; column-gap: .35rem; }
.cpop__gifs button { display: block; width: 100%; border: 0; padding: 0; margin-bottom: .35rem; background: var(--sand-100); border-radius: 8px; overflow: hidden; cursor: pointer; }
.cpop__gifs img { display: block; width: 100%; }
.cpop__pe { display: flex; align-items: center; justify-content: space-between; padding-top: .3rem; }
.cpop__pe small, .cpop__mini { font-size: .6875rem; color: var(--ink-3); }
.cpop__gifinfo { display: grid; gap: .6rem; padding: .8rem .4rem; font-size: .8125rem; color: var(--ink-2); }
.cpop__up { justify-self: start; display: inline-flex; align-items: center; height: 34px; padding: 0 .9rem; border-radius: 99px; background: var(--ember); color: #fff; font-weight: 600; font-size: .75rem; cursor: pointer; }

.fig { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .9rem .55rem; min-width: 120px; border-radius: 18px; background: var(--c); color: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(0, 0, 0, .22); transform: rotate(-3deg); }
.fig__e { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.fig b { font-family: var(--font-display, inherit); font-weight: 800; font-size: .9375rem; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); white-space: nowrap; }
.cm__c > .fig { margin: .5rem 0 .4rem .3rem; }

/* fotos e reações nas mensagens */
.cm__fotos { display: grid; gap: 4px; margin-top: .35rem; max-width: 300px; }
.cm__fotos.is-varias { grid-template-columns: 1fr 1fr; }
.cm__foto { position: relative; display: block; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--sand-100); cursor: zoom-in; max-height: 320px; min-height: 60px; }
.cm__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm__foto.is-enviando img { opacity: .55; }
.cm__sub { position: absolute; left: 6px; bottom: 6px; font-size: .625rem; font-weight: 600; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 99px; padding: .1rem .45rem; }
.cm__reacoes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .3rem; }
.cm__reacoes button { display: inline-flex; align-items: center; gap: .25rem; height: 24px; padding: 0 .45rem; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: .8125rem; cursor: pointer; color: var(--ink-2); }
.cm__reacoes button b { font-size: .6875rem; font-weight: 600; }
.cm__reacoes button.is-meu { border-color: var(--blue); background: var(--blue-100); color: var(--ink); }
.cm__acoes .cm__re { font-size: .9375rem; padding: .1rem .3rem; }
.chat__vazio-e { font-size: 2rem; }

/* foto grande */
.lb { border: 0; padding: 0; background: none; max-width: 94vw; max-height: 94vh; }
.lb::backdrop { background: rgba(10, 10, 12, .82); }
.lb figure { margin: 0; display: grid; gap: .6rem; }
.lb img { max-width: 94vw; max-height: 82vh; border-radius: 10px; display: block; margin: 0 auto; }
.lb figcaption { display: flex; align-items: center; gap: .8rem; justify-content: center; color: #fff; font-size: .8125rem; }
.lb figcaption a, .lb figcaption button { color: #fff; background: rgba(255, 255, 255, .15); border: 0; border-radius: 99px; padding: .35rem .9rem; font: 600 .75rem var(--font-text); cursor: pointer; text-decoration: none; }

/* janelinhas no canto (estilo messenger) */
.chat-dock { position: fixed; right: 18px; bottom: 0; z-index: 45; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 10px; pointer-events: none; }
.chat-dock > * { pointer-events: auto; }
.chat-dock[hidden] { display: none; }
.chat-dock__bolha { position: relative; flex: none; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%; border: 0; background: var(--ember); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: transform .15s ease, background .15s ease; }
.chat-dock__bolha svg { width: 24px; height: 24px; }
.chat-dock__bolha:hover { transform: translateY(-2px); background: var(--ember-2); }
.chat-dock__bolha.is-on { background: var(--ink); color: var(--white); }
.chat-dock__bolha em { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 99px; background: #fff; color: var(--ember); font: 700 .6875rem/20px var(--font-text); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--ember); }
.chat-dock__bolha em[hidden] { display: none; }
.cv--dock { width: 330px; height: min(480px, calc(100dvh - 80px)); border: 1px solid var(--card-line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -4px 40px rgba(0, 0, 0, .25); animation: dockEntra .16s ease both; }
.cv--dock.cv--lista { width: 320px; }
@keyframes dockEntra { from { opacity: 0; transform: translateY(14px); } }
.cv--dock .cv__cab { padding: .5rem .45rem .5rem .75rem; gap: .5rem; background: var(--ember); color: #fff; border-bottom: 0; cursor: pointer; }
.cv--dock .cv__cab .chat__cab-t b { font-size: .875rem; color: #fff; }
.cv--dock .cv__cab .chat__cab-t small { color: rgba(255, 255, 255, .8); font-size: .6875rem; }
.cv--dock .cv__cab .chat__hash { color: #fff; }
.cv--dock .cv__cab .chat-on { border-color: var(--ember); }
.cv--dock .cv__n { background: #fff; color: var(--ember); }
.cv--dock.is-min { height: auto; width: 240px; }
.cv--dock .chat__lista-in { flex: 1; overflow-y: auto; padding: .5rem .4rem; }
.cv--dock .chat__msgs { padding: .6rem .6rem .3rem; }
.cv--dock .cv__dig, .cv--dock .cv__fila { padding: 0 .7rem; }
.cv--dock .cv__comp { padding: .45rem .5rem .55rem; gap: .25rem; flex-wrap: wrap; }
.cv--dock .cv__ferr { order: 2; width: 100%; padding: 0; }
.cv--dock .cv__ferr button, .cv--dock .cv__ferr label { width: 30px; height: 28px; }
.cv--dock .cv__comp textarea { order: 1; height: 38px; min-height: 38px; padding: .5rem .75rem; }
.cv--dock .cv__enviar { order: 1; width: 38px; height: 38px; }
.cv--dock .cpop { bottom: 92px; left: .4rem; width: calc(100% - .8rem); height: 300px; }
.cv--dock .cm { gap: .5rem; padding: .25rem .3rem; }
.cv--dock .cm__hora-l { width: 28px; }
.cv--dock .cm__fotos { max-width: 220px; }
.cv--dock .chat__vazio { padding: 2.5rem 1rem; }
.cv--dock .chat__aviso { margin: .5rem .6rem 0; font-size: .75rem; }
.cv--dock .fig { min-width: 104px; } .cv--dock .fig__e { font-size: 2rem; }
@media screen and (max-width: 900px) {
  .chat { grid-template-columns: 1fr; }
  .chat .cv--tela { display: none; }
  .chat.is-conversa .chat__lista { display: none; }
  .chat.is-conversa .cv--tela { display: flex; }
  .cv__cab { padding: .55rem .75rem; }
  .cv .chat__msgs { padding: .75rem .75rem .4rem; }
  .cv__comp { padding: .5rem .6rem .7rem; }
  .cv__comp textarea { font-size: 16px; }
  .chat-dock { left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); justify-content: flex-start; }
  .chat-dock__bolha { margin: 0 6px 12px 0; width: 50px; height: 50px; }
  .chat-dock.tem-janela .chat-dock__bolha { display: none; }
  .cv--dock, .cv--dock.cv--lista { width: 100%; height: calc(100dvh - 140px - env(safe-area-inset-bottom)); border-radius: 14px; border-bottom: 1px solid var(--card-line); margin-bottom: 8px; }
  .cv--dock.is-min { width: 100%; height: auto; }
  body.side-aberta .chat-dock { display: none; }
}
@media print { .chat-dock { display: none !important; } }
.chat__lista-in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }

/* ---------- anexos em cartões + visualizador no próprio painel ---------- */
.anx-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.anx-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--card-line); border-radius: 10px; overflow: hidden; background: var(--white); transition: border-color .15s ease, box-shadow .15s ease; }
.anx-card:hover { border-color: var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.anx-card.is-enviando { opacity: .6; }
.anx-card__ver { display: block; height: 96px; border: 0; padding: 0; background: var(--paper); cursor: zoom-in; }
.anx-card__ver:disabled { cursor: default; }
.anx-card__min { display: block; width: 100%; height: 100%; }
.anx-card__min img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anx-card__ext { display: grid; place-items: center; width: 100%; height: 100%; font: 800 .875rem var(--font-text); letter-spacing: .04em; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.anx-card__info { display: grid; gap: 1px; padding: .45rem .55rem .5rem; min-width: 0; }
.anx-card__nome { border: 0; background: none; padding: 0; text-align: left; font: 500 .75rem var(--font-text); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.anx-card__nome:hover:not(:disabled) { text-decoration: underline; }
.anx-card__info small { font-size: .625rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anx-card__acoes { position: absolute; top: 5px; right: 5px; display: flex; gap: 3px; opacity: 0; transition: opacity .15s ease; }
.anx-card:hover .anx-card__acoes, .anx-card__acoes:focus-within { opacity: 1; }
@media (hover: none) { .anx-card__acoes { opacity: 1; } }
.anx-card__acoes button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(20, 20, 22, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.anx-card__acoes button:hover { background: rgba(20, 20, 22, .9); }
.anx-card__acoes svg, .anx-solta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.anx-solta { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--ink-3); cursor: pointer; font-size: .8125rem; }
.anx-solta:hover, .anx-area.is-alvo .anx-solta { border-color: var(--blue); background: var(--blue-100); color: var(--ink); }
.anx-solta svg { width: 20px; height: 20px; flex: none; }
.anx-solta span { display: grid; gap: 1px; } .anx-solta b { color: var(--ink); font-weight: 600; }
.anx-solta small { font-size: .6875rem; color: var(--ink-3); }
.anx-area.is-alvo { outline: none; }

.va { width: min(1100px, 96vw); height: min(820px, 92vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 14px; background: #161719; color: #fff; display: none; flex-direction: column; overflow: hidden; }
.va[open] { display: flex; }
.va::backdrop { background: rgba(8, 8, 10, .78); }
.va__topo { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem .65rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.va__topo b { flex: 0 1 auto; min-width: 0; font-weight: 600; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va__topo small { flex: 1; font-size: .75rem; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.va__bt { border: 0; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; padding: .4rem .95rem; font: 600 .75rem var(--font-text); cursor: pointer; text-decoration: none; }
.va__bt:hover { background: rgba(255, 255, 255, .22); }
.va__palco { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 1rem; }
.va__palco img, .va__palco video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.va__palco iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; background: #fff; }
.va__palco audio { width: min(480px, 90%); }
.va__ficha { display: grid; justify-items: center; gap: .9rem; text-align: center; color: rgba(255, 255, 255, .8); font-size: .875rem; }
.va__ficha .anx-card__ext { width: 96px; height: 116px; border-radius: 12px; font-size: 1.1rem; }
.va__carrega { color: rgba(255, 255, 255, .6); font-size: .875rem; }
.va__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.va__nav:hover { background: rgba(255, 255, 255, .26); }
.va__nav--a { left: .8rem; } .va__nav--p { right: .8rem; }
@media screen and (max-width: 700px) { .va { width: 100vw; height: 100dvh; border-radius: 0; } .anx-grade { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Minhas tarefas: quadro personalizável ---------- */
.mtq-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 .8rem; }
.mtq-pers { display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink-2); font: 600 .75rem var(--font-text); cursor: pointer; }
.mtq-pers[aria-expanded="true"], .mtq-pers:hover { border-color: var(--ink-3); color: var(--ink); }
.mtq-pers svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mtq-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .75rem; color: var(--ink-2); }
.mtq-ocultas { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.mtq-ocultas button { border: 1px dashed var(--line); background: none; border-radius: 99px; padding: .2rem .6rem; font: 500 .6875rem var(--font-text); color: var(--ink-2); cursor: pointer; }
.mtq-ocultas button:hover { border-style: solid; color: var(--ink); }
.mtq-dica { color: var(--ink-3); }
.mt-quadro .tcol { position: relative; }
.mt-quadro .tcol.tem-cor { border-top: 3px solid var(--cc); }
.mt-quadro .tcol.tem-cor > header b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); margin-right: .4rem; vertical-align: 1px; }
.mt-quadro .tcol.is-pessoal { background: color-mix(in srgb, var(--cc, var(--blue)) 6%, var(--cr-coluna, var(--paper))); }
.mt-quadro .tcol > header { position: relative; display: flex; align-items: center; gap: .4rem; }
.mt-quadro .tcol > header > span { margin-left: auto; }
.mtq-tag { font-style: normal; font-size: .5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); background: var(--blue-100); border-radius: 99px; padding: .1rem .4rem; }
.mtq-mais { border: 0; background: none; width: 26px; height: 24px; border-radius: 6px; color: var(--ink-3); font-size: 1rem; line-height: 1; cursor: pointer; }
.mtq-mais:hover, .mtq-mais[aria-expanded="true"] { background: var(--sand-100); color: var(--ink); }
.mtq-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 15; width: 220px; display: grid; gap: 1px; padding: .4rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.mtq-menu p { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: .2rem .4rem; }
.mtq-cores { display: flex; flex-wrap: wrap; gap: 5px; padding: .1rem .4rem .45rem; border-bottom: 1px solid var(--line-2); margin-bottom: .2rem; }
.mtq-cores button { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--c); cursor: pointer; padding: 0; }
.mtq-cores button:first-child { background: linear-gradient(135deg, transparent 45%, var(--bad) 45% 55%, transparent 55%); }
.mtq-cores button.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.mtq-menu > button { border: 0; background: none; text-align: left; padding: .45rem .5rem; border-radius: 7px; font: 500 .8125rem var(--font-text); color: var(--ink); cursor: pointer; }
.mtq-menu > button:hover { background: var(--sand-100); }
.mtq-menu > button.is-perigo { color: var(--bad); }
.mtq-nova { flex: none; align-self: flex-start; width: 220px; min-height: 46px; border: 1.5px dashed var(--line); border-radius: 12px; background: none; color: var(--ink-3); font: 600 .8125rem var(--font-text); cursor: pointer; }
.mtq-nova:hover { border-color: var(--ink-3); color: var(--ink); }
