@font-face { font-family: Plex; src: url(/fontes/plex-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(/fontes/plex-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url(/fontes/plex-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fontes/archivo-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fontes/archivo-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --fundo: #f4f6f7; --superficie: #fff; --superficie-2: #eef2f3; --texto: #122b33; --suave: #5a7480; --borda: #e0e7ea; --borda-forte: #c3d0d5;
  --marca: #007a7a; --marca-texto: #fff; --marca-suave: #dff3f1; --marca-forte: #006060;
  --acento: #b95a0c; --acento-suave: #fdeedd;
  --perigo: #b42318; --perigo-suave: #fdeaea; --ok: #116a3c; --ok-suave: #e2f5ea;
  --sombra-alta: 0 12px 36px rgb(18 43 51 / .18);
  --topo: #0f2329; --topo-texto: #a9c1c8; --topo-hover: #1c3a43;
  --titulo: Archivo, Plex, system-ui, sans-serif;
  --raio: 8px; --raio-g: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    color-scheme: dark;
    --fundo: #0b1a1f; --superficie: #12252c; --superficie-2: #1a3038; --texto: #e7f0f2; --suave: #93acb5; --borda: #203943; --borda-forte: #3a5863;
    --marca: #3dd2c8; --marca-texto: #05282a; --marca-suave: #123c3d; --marca-forte: #6be3da;
    --acento: #f4a65c; --acento-suave: #3a2813;
    --perigo: #fca5a5; --perigo-suave: #3a1b1d; --ok: #7ee2a8; --ok-suave: #12321f;
    --sombra-alta: 0 12px 36px rgb(0 0 0 / .5);
    --topo: #0a171c; --topo-hover: #17303a;
  }
}
:root[data-tema="escuro"] {
  color-scheme: dark;
  --fundo: #0b1a1f; --superficie: #12252c; --superficie-2: #1a3038; --texto: #e7f0f2; --suave: #93acb5; --borda: #203943; --borda-forte: #3a5863;
  --marca: #3dd2c8; --marca-texto: #05282a; --marca-suave: #123c3d; --marca-forte: #6be3da;
  --acento: #f4a65c; --acento-suave: #3a2813;
  --perigo: #fca5a5; --perigo-suave: #3a1b1d; --ok: #7ee2a8; --ok-suave: #12321f;
  --sombra-alta: 0 12px 36px rgb(0 0 0 / .5);
  --topo: #0a171c; --topo-hover: #17303a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 13.5px/1.45 Plex, system-ui, -apple-system, "Segoe UI", sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.2rem; line-height: 1.25; }
h2 { font-size: .92rem; }
p { margin: 0 0 .6rem; }
a { color: inherit; }
small { color: var(--suave); font-size: .78rem; }
.suave { color: var(--suave); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 1px; }

/* barra superior */
.topo { display: flex; align-items: center; gap: .35rem; height: 46px; padding: 0 .75rem; background: var(--topo); color: var(--topo-texto); position: sticky; top: 0; z-index: 20; }
.topo-marca { display: flex; align-items: center; padding: .2rem; border-radius: 6px; flex: none; }
.topo-marca img { height: 26px; width: auto; display: block; }
.topo-marca:hover { background: var(--topo-hover); }
.topo-ferr { color: #fff; font: 700 .86rem var(--titulo); padding: 0 .55rem 0 .65rem; border-left: 1px solid var(--topo-hover); margin-left: .2rem; white-space: nowrap; text-decoration: none; line-height: 22px; }
.topo nav { display: flex; gap: .05rem; }
.topo nav a { display: flex; align-items: center; height: 30px; padding: 0 .6rem; border-radius: 6px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.topo nav a:hover { color: #fff; background: var(--topo-hover); }
.topo nav a.ativo { color: #fff; background: var(--topo-hover); }
.topo-dir { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.abrir-busca { display: flex; align-items: center; gap: .4rem; width: 210px; height: 30px; padding: 0 .5rem; border: 1px solid var(--topo-hover); border-radius: 6px; background: none; color: var(--topo-texto); font: inherit; cursor: pointer; text-align: left; }
.abrir-busca:hover { border-color: #3a5863; color: #fff; }
.abrir-busca span { flex: 1; }
kbd { font: 500 .68rem Plex, sans-serif; border: 1px solid var(--borda); border-radius: 4px; padding: 0 .3rem; color: var(--suave); }
.topo kbd { border-color: var(--topo-hover); color: var(--topo-texto); }
.topo .botao { height: 30px; border-color: var(--topo-hover); background: none; color: #fff; }
.topo .botao:hover { background: var(--topo-hover); }
.topo .botao.primario { background: #3dd2c8; border-color: #3dd2c8; color: #05282a; }
.topo .botao.primario:hover { background: #6be3da; border-color: #6be3da; }

/* menu do usuário */
.menu-perfil { position: relative; }
.menu-perfil summary { list-style: none; display: flex; align-items: center; padding: .15rem; border-radius: 50%; cursor: pointer; }
.menu-perfil summary::-webkit-details-marker { display: none; }
.menu-perfil summary:hover .avatar { background: #3dd2c8; color: #05282a; }
.menu-painel { position: absolute; right: 0; top: calc(100% + 8px); width: 232px; background: var(--superficie); color: var(--texto); border: 1px solid var(--borda); border-radius: var(--raio-g); box-shadow: var(--sombra-alta); padding: .3rem; z-index: 30; }
.menu-cabeca { display: grid; padding: .45rem .55rem .55rem; border-bottom: 1px solid var(--borda); margin-bottom: .3rem; }
.menu-cabeca strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-cabeca small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-painel a, .menu-painel button { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .38rem .55rem; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; border-radius: 6px; cursor: pointer; text-align: left; }
.menu-painel a:hover, .menu-painel button:hover { background: var(--superficie-2); }
.menu-painel form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--borda); }
.menu-painel .ic { color: var(--suave); }

/* estrutura */
.pagina { width: 100%; max-width: 1480px; margin: 0 auto; padding: .85rem 1rem 2rem; }
.pagina.larga { max-width: none; }
.pagina.estreita { max-width: 960px; padding-top: 1.1rem; }
.abas { display: none; }
.centro { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.pagina.centro { min-height: calc(100vh - 46px); }
.cabeca { display: flex; justify-content: space-between; align-items: center; gap: .5rem .75rem; margin-bottom: .7rem; flex-wrap: wrap; min-height: 32px; }
.cabeca p { margin: 0; color: var(--suave); }
.acoes { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.acoes form { margin: 0; }
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-g); padding: .7rem .85rem; margin-bottom: .6rem; min-width: 0; }
.cartao > h2 { margin-bottom: .45rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cartao > h2 a { font: 500 .78rem Plex, sans-serif; color: var(--marca); text-decoration: none; }
.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; align-items: start; margin-bottom: .6rem; }
.grade2.larga-esq { grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); }
.grade3 { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: .6rem; align-items: start; }
.grade2 > .cartao, .grade3 > .cartao { margin-bottom: 0; }
.secao { font: 600 .74rem Plex, sans-serif; letter-spacing: .02em; color: var(--suave); margin: 1rem 0 .4rem; }

/* botões e campos */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; font: 600 .82rem Plex, sans-serif; text-decoration: none; cursor: pointer; height: 32px; padding: 0 .65rem; border-radius: var(--raio); border: 1px solid var(--borda-forte); background: var(--superficie); color: var(--texto); white-space: nowrap; transition: background .1s, border-color .1s; }
.botao:hover { background: var(--superficie-2); }
.botao.primario { background: var(--marca); border-color: var(--marca); color: var(--marca-texto); }
.botao.primario:hover { background: var(--marca-forte); border-color: var(--marca-forte); }
.botao.bloco { width: 100%; }
.botao .ic { width: 14px; height: 14px; }
.link { border: 0; background: none; color: var(--suave); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.icone { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; color: var(--suave); border-radius: 6px; cursor: pointer; flex: none; }
.icone:hover { background: var(--superficie-2); color: var(--texto); }
.campos { display: grid; gap: .55rem; }
.campos > h2 { margin-bottom: 0; }
.campos .cartao { margin-bottom: 0; }
label { display: grid; gap: .15rem; font-weight: 600; font-size: .78rem; }
label small { font-weight: 400; font-size: .74rem; }
input, select, textarea { width: 100%; min-height: 32px; font: 400 .88rem Plex, sans-serif; color: inherit; background: var(--superficie); border: 1px solid var(--borda-forte); border-radius: var(--raio); padding: .28rem .5rem; }
input:hover, select:hover, textarea:hover { border-color: var(--suave); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--marca); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
.linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .55rem; }
.segmentado { display: inline-flex; border: 1px solid var(--borda-forte); border-radius: var(--raio); padding: 2px; }
.segmentado label { font: 500 .82rem Plex, sans-serif; cursor: pointer; display: block; }
.segmentado input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.segmentado span { display: block; padding: .2rem .75rem; border-radius: 6px; color: var(--suave); }
.segmentado input:checked + span { background: var(--marca); color: var(--marca-texto); }
.segmentado input:focus-visible + span { outline: 2px solid var(--marca); outline-offset: 1px; }

/* mensagens */
.alerta, .aviso, .sucesso { padding: .4rem .6rem; border-radius: var(--raio); margin-bottom: .6rem; font-size: .84rem; }
.alerta { background: var(--perigo-suave); color: var(--perigo); }
.aviso { background: var(--acento-suave); color: var(--acento); }
.sucesso { background: var(--ok-suave); color: var(--ok); }
.torrada { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: .4rem; background: var(--texto); color: var(--superficie); padding: .4rem .7rem; border-radius: var(--raio); box-shadow: var(--sombra-alta); font-weight: 500; animation: subir .18s ease-out; }
.torrada.saindo { opacity: 0; transition: opacity .25s; }
@keyframes subir { from { transform: translateY(6px); opacity: 0; } }

/* selos e avatar */
.selo { display: inline-flex; align-items: center; padding: 0 .45rem; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.55; background: var(--superficie-2); color: var(--suave); white-space: nowrap; }
.s-enviada { background: var(--marca-suave); color: var(--marca); }
.s-visualizada, .s-expirada { background: var(--acento-suave); color: var(--acento); }
.s-aceita { background: var(--ok-suave); color: var(--ok); }
.s-recusada { background: var(--perigo-suave); color: var(--perigo); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--marca-suave); color: var(--marca); font: 600 .7rem Plex, sans-serif; }
.avatar.p { width: 20px; height: 20px; font-size: .58rem; }
.avatar.g { width: 38px; height: 38px; font-size: .85rem; }
.topo .avatar { background: var(--topo-hover); color: #3dd2c8; transition: background .1s; }

/* hub */
.ferramentas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: .6rem; }
.ferramentas.pequenas { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ferramenta { display: flex; align-items: flex-start; gap: .65rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-g); padding: .75rem .8rem; text-decoration: none; transition: border-color .1s, transform .1s; min-width: 0; }
a.ferramenta:hover { border-color: var(--marca); transform: translateY(-1px); }
.ferramenta > div { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.ferramenta strong { font: 700 .95rem var(--titulo); }
.f-icone { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--raio); background: var(--marca-suave); color: var(--marca); flex: none; }
.f-dados { display: flex; flex-wrap: wrap; gap: .1rem .7rem; margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--borda); color: var(--suave); font-size: .78rem; }
.f-dados b { color: var(--texto); font-weight: 600; font-variant-numeric: tabular-nums; }
.ferramenta .seta { color: var(--suave); margin-top: .1rem; }
a.ferramenta:hover .seta { color: var(--marca); }
.ferramenta.futura { border-style: dashed; background: none; }
.ferramenta.futura .f-icone { background: var(--superficie-2); color: var(--suave); }
.ferramentas.pequenas strong { font-size: .86rem; }
.ferramentas.pequenas .f-icone { width: 28px; height: 28px; }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-g); margin-bottom: .6rem; overflow: hidden; }
.kpi { padding: .5rem .85rem; min-width: 0; display: grid; text-decoration: none; border-left: 1px solid var(--borda); }
.kpi:first-child { border-left: 0; }
a.kpi:hover { background: var(--superficie-2); }
.kpi span { color: var(--suave); font-size: .76rem; font-weight: 500; }
.kpi strong { font: 800 1.15rem/1.3 var(--titulo); letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi.atencao strong { color: var(--acento); }

/* funil */
.funil { display: grid; gap: .32rem; }
.funil a { display: grid; grid-template-columns: 80px minmax(0, 1fr) 2em; align-items: center; gap: .5rem; text-decoration: none; font-size: .82rem; }
.funil svg { width: 100%; height: 7px; display: block; border-radius: 99px; background: var(--superficie-2); }
.funil rect { fill: var(--marca); }
.funil .e-ganho rect { fill: var(--ok); }
.funil .e-perdido rect { fill: var(--borda-forte); }
.funil b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* listas */
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { border-bottom: 1px solid var(--borda); }
.lista li:last-child { border-bottom: 0; }
.lista a { display: flex; align-items: center; gap: .5rem; padding: .32rem 0; text-decoration: none; min-width: 0; }
.lista a > div { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.lista strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista a:hover strong { color: var(--marca); }
.bolinha { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--superficie-2); color: var(--suave); }
.bolinha .ic { width: 12px; height: 12px; }
.b-visualizada { background: var(--acento-suave); color: var(--acento); }
.b-enviada { background: var(--marca-suave); color: var(--marca); }
.b-aceita { background: var(--ok-suave); color: var(--ok); }
.b-recusada { background: var(--perigo-suave); color: var(--perigo); }
.vazio { text-align: center; padding: .9rem .75rem; color: var(--suave); }
.vazio .ic { width: 20px; height: 20px; color: var(--marca); margin-bottom: .15rem; }
.vazio h1, .vazio h2, .vazio h3 { color: var(--texto); margin-bottom: .2rem; }
.vazio p { max-width: 42ch; margin: 0 auto .5rem; }
.passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.passo { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-g); text-decoration: none; min-width: 0; }
a.passo:hover { border-color: var(--marca); }
.passo.feito { background: var(--ok-suave); border-color: transparent; }
.passo div { display: grid; min-width: 0; line-height: 1.3; }
.passo b { font-family: var(--titulo); font-size: .85rem; }
.passo .ic { color: var(--marca); }

/* tabelas */
.rolavel { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: .72rem; color: var(--suave); font-weight: 600; white-space: nowrap; }
.tabela th, .tabela td { padding: .3rem .45rem; border-bottom: 1px solid var(--borda); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tfoot th { color: var(--texto); font: 700 .95rem var(--titulo); border-top: 2px solid var(--borda); border-bottom: 0; }
.tabela .clicavel:hover td { background: var(--superficie-2); }
.tabela a { text-decoration: none; font-weight: 600; }
.tabela a:hover { color: var(--marca); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num form { margin: 0; }
.so-celular { display: none; }
.cartao.tabelado { padding: .2rem .4rem; }

.chips { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.chips a { display: inline-flex; gap: .25rem; padding: .12rem .55rem; border-radius: 999px; border: 1px solid var(--borda); text-decoration: none; color: var(--suave); white-space: nowrap; background: var(--superficie); font-weight: 500; font-size: .8rem; }
.chips a:hover { border-color: var(--borda-forte); }
.chips a.ativo { background: var(--marca-suave); border-color: var(--marca); color: var(--marca); font-weight: 600; }

/* etapas e progresso */
.etapas { display: flex; flex-wrap: wrap; gap: .2rem; margin-bottom: .6rem; }
.etapas button { font: 500 .78rem Plex, sans-serif; padding: .12rem .55rem; border-radius: 999px; border: 1px solid var(--borda); background: var(--superficie); color: var(--suave); cursor: pointer; }
.etapas button:hover { border-color: var(--marca); }
.etapas button[aria-pressed="true"] { background: var(--marca); border-color: var(--marca); color: var(--marca-texto); font-weight: 600; }
.progresso { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 .6rem; padding: .45rem 0; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-g); }
.progresso li { position: relative; padding-top: 1rem; font-size: .76rem; color: var(--suave); text-align: center; }
.progresso li::before { content: ""; position: absolute; top: .1rem; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--borda-forte); z-index: 1; }
.progresso li::after { content: ""; position: absolute; top: .3rem; left: -50%; width: 100%; height: 2px; background: var(--borda); }
.progresso li:first-child::after { display: none; }
.progresso li.feito { color: var(--texto); font-weight: 600; }
.progresso li.feito::before, .progresso li.feito::after { background: var(--marca); }
.progresso li.final-recusada::before { background: var(--perigo); }

.linha-tempo { list-style: none; margin: 0; padding: 0 0 0 .8rem; border-left: 2px solid var(--borda); }
.linha-tempo li { position: relative; display: grid; padding-bottom: .4rem; line-height: 1.3; }
.linha-tempo li::before { content: ""; position: absolute; left: calc(-.8rem - 5px); top: .3rem; width: 8px; height: 8px; border-radius: 50%; background: var(--borda-forte); box-shadow: 0 0 0 2px var(--superficie); }
.linha-tempo li:first-child::before { background: var(--marca); }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo strong { font-weight: 600; font-size: .84rem; }

.copiar { display: flex; gap: .35rem; flex-wrap: wrap; }
.copiar input { flex: 1 1 220px; width: auto; background: var(--superficie-2); color: var(--suave); }
.convite { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.convite select { width: auto; }
.pessoa { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pessoa div { display: grid; min-width: 0; line-height: 1.3; }
.pessoa strong { font-weight: 600; }
.ficha { display: flex; align-items: center; gap: .6rem; }
.titulo-linha { display: flex; align-items: center; gap: .4rem .7rem; flex-wrap: wrap; min-width: 0; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: .45rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; }
.coluna { background: var(--superficie-2); border-radius: var(--raio-g); padding: .35rem; min-height: calc(100vh - 118px); border: 1.5px solid transparent; display: flex; flex-direction: column; scroll-snap-align: start; transition: border-color .1s, background .1s; }
.coluna.sobre { border-color: var(--marca); background: var(--marca-suave); }
.col-topo { padding: .1rem .3rem .35rem; display: grid; }
.col-topo h2 { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.col-topo h2 a { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: var(--suave); }
.col-topo h2 a:hover { background: var(--superficie); color: var(--marca); }
.col-topo h2 span span { color: var(--suave); font: 500 .76rem Plex, sans-serif; margin-left: .25rem; }
.fila { display: grid; gap: .3rem; align-content: start; flex: 1; min-height: 2.5rem; }
.card { display: grid; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: .35rem .5rem; text-decoration: none; cursor: grab; line-height: 1.3; transition: border-color .1s; }
.card:hover { border-color: var(--marca); }
.card.arrastando { opacity: .45; }
.card strong { font-weight: 600; overflow-wrap: anywhere; }
.card small { overflow-wrap: anywhere; }
.card .pe { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: .15rem; min-height: 20px; }
.card .valor { font-weight: 600; font-size: .78rem; font-variant-numeric: tabular-nums; }
.col-vazia { border: 1px dashed var(--borda-forte); border-radius: var(--raio); padding: .5rem; text-align: center; color: var(--suave); font-size: .76rem; }
.busca { margin: 0; }
.busca input { width: 200px; }

/* editor de proposta */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: .6rem; align-items: start; }
.resumo { position: sticky; top: 56px; margin: 0; }
.resumo .total { font: 800 1.35rem/1.25 var(--titulo); letter-spacing: -.02em; margin: 0 0 .5rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 100px 28px; gap: .3rem; align-items: center; margin-bottom: .3rem; }
.item.cabecalho { font-size: .72rem; color: var(--suave); font-weight: 600; margin-bottom: .15rem; }
.item output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; font-size: .84rem; white-space: nowrap; }
.item .icone:hover { color: var(--perigo); background: var(--perigo-suave); }
.atalhos { display: flex; gap: .25rem; margin: .25rem 0 .1rem; }
.atalhos button { font: 500 .72rem Plex, sans-serif; border: 1px solid var(--borda); background: var(--superficie); color: var(--suave); border-radius: 5px; padding: .05rem .35rem; cursor: pointer; }
.atalhos button:hover { border-color: var(--marca); color: var(--marca); }

/* login */
.dividida { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.vitrine { background: #0f2329; color: #fff; padding: 2rem 2.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.vitrine img { height: 36px; width: auto; align-self: flex-start; position: relative; }
.vitrine svg.orbita { position: absolute; right: -14%; bottom: -22%; width: 72%; min-width: 340px; opacity: .13; }
.vitrine h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; max-width: 16ch; position: relative; }
.vitrine h1 em { font-style: normal; color: #3dd2c8; }
.vitrine p { color: #a9c1c8; max-width: 40ch; margin: .5rem 0 0; position: relative; font-size: .92rem; }
.painel-acesso { display: grid; place-items: center; padding: 1.5rem 1rem; background: var(--superficie); }
.painel-acesso > div { width: 100%; max-width: 320px; }
.painel-acesso h2 { font-size: 1.25rem; margin-bottom: .15rem; }
.painel-acesso p { color: var(--suave); }

/* proposta do cliente: mantém mais ar, é a vitrine da empresa */
.pub-topo { background: #0f2329; color: #fff; padding: 1.6rem 1.25rem 3.6rem; }
.pub-topo > div { max-width: 920px; margin: 0 auto; }
.pub-topo .remetente { font: 700 .9rem var(--titulo); color: #3dd2c8; margin-bottom: .4rem; }
.pub-topo h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.pub-topo p:last-child { color: #a9c1c8; margin: .35rem 0 0; }
.pub-corpo { max-width: 920px; margin: -2.4rem auto 0; padding: 0 1.25rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: .75rem; align-items: start; font-size: 14.5px; }
.documento { background: var(--superficie); border: 1px solid var(--borda); border-radius: 12px; padding: 1.3rem 1.4rem; min-width: 0; }
.documento h2 { margin: 1.2rem 0 .4rem; font-size: 1rem; }
.documento h2:first-child { margin-top: 0; }
.documento .tabela th, .documento .tabela td { padding: .45rem .45rem; }
.texto { white-space: pre-line; }
.decisao { position: sticky; top: .75rem; margin: 0; padding: 1rem; border-radius: 12px; }
.decisao .total { font: 800 1.6rem/1.2 var(--titulo); letter-spacing: -.02em; margin: 0 0 .5rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.decisao input, .decisao textarea { font-size: 16px; }
.decisao .botao { height: 38px; font-size: .92rem; }
.decisao details { margin-top: .6rem; font-size: .86rem; }
.decisao summary { cursor: pointer; color: var(--suave); margin-bottom: .4rem; }
.barra-resposta { display: none; }
.pub-rodape { display: flex; justify-content: center; align-items: center; gap: .4rem; color: var(--suave); padding: 0 1rem 1.5rem; font-size: .78rem; }
.pub-rodape img { height: 16px; width: 16px; }

/* busca rápida e diálogos */
dialog { border: 1px solid var(--borda); border-radius: 12px; background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-alta); padding: 0; }
dialog::backdrop { background: rgb(9 22 27 / .5); }
.paleta { width: min(520px, calc(100vw - 2rem)); margin-top: 10vh; }
.paleta header { display: flex; align-items: center; gap: .5rem; padding: .15rem .7rem; border-bottom: 1px solid var(--borda); }
.paleta input { border: 0; background: none; min-height: 38px; padding: 0; outline: none; }
.paleta ul { list-style: none; margin: 0; padding: .3rem; max-height: 320px; overflow-y: auto; }
.paleta li.grupo { font-size: .72rem; font-weight: 600; color: var(--suave); padding: .3rem .45rem .15rem; }
.paleta a { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 6px; text-decoration: none; }
.paleta a.sel { background: var(--marca-suave); color: var(--marca); }
.paleta a small { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.paleta .nada { padding: .8rem; text-align: center; color: var(--suave); }
.confirma { width: min(340px, calc(100vw - 2rem)); padding: .9rem; }
.confirma p { font-weight: 500; }
.confirma div { display: flex; justify-content: flex-end; gap: .35rem; }

@media (max-width: 1180px) {
  .grade3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade3 > :last-child { grid-column: 1 / -1; }
  .abrir-busca { width: 150px; }
  .abrir-busca kbd { display: none; }
}
@media (max-width: 960px) {
  .topo-dir .botao:not(.primario) { display: none; }
  .grade2, .grade2.larga-esq, .grade3, .editor { grid-template-columns: minmax(0, 1fr); }
  .grade3 > :last-child { grid-column: auto; }
  .resumo { position: static; }
  .pub-corpo { grid-template-columns: minmax(0, 1fr); }
  .decisao { position: static; }
}
@media (max-width: 760px) {
  .topo { padding: 0 16px; }
  .topo nav, .topo-dir .botao, .abrir-busca span, .abrir-busca kbd { display: none; }
  .abrir-busca { width: 32px; padding: 0; justify-content: center; }
  .topo-ferr { padding-right: 0; }
  .pagina, .pagina.estreita { padding: .75rem 16px 1.5rem; }
  .com-abas { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--borda); }
  .kpi strong { font-size: 1.02rem; }
  .abas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--superficie); border-top: 1px solid var(--borda); padding-bottom: env(safe-area-inset-bottom); }
  .abas a { display: grid; justify-items: center; align-content: center; gap: .05rem; font-size: .66rem; font-weight: 500; text-decoration: none; color: var(--suave); min-height: 50px; }
  .abas .ic { width: 18px; height: 18px; }
  .abas a.ativo { color: var(--marca); }
  .abas a.mais span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--marca); color: var(--marca-texto); }
  .kanban { grid-template-columns: repeat(6, 72vw); margin-right: -16px; padding-right: 16px; }
  .coluna { min-height: 55vh; }
  .torrada { left: 16px; right: 16px; bottom: calc(4rem + env(safe-area-inset-bottom)); justify-content: center; }
  .dividida { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .vitrine { padding: .8rem 16px; }
  .vitrine img { height: 28px; }
  .vitrine > div, .vitrine svg.orbita { display: none; }
  .passos { grid-template-columns: minmax(0, 1fr); }
  .busca, .busca input { width: 100%; }
  .so-grande { display: none !important; }
  .so-celular { display: inline; color: var(--suave); font-weight: 500; }
  .cartoes-m thead { display: none; }
  .cartoes-m, .cartoes-m tbody, .cartoes-m tr, .cartoes-m td { display: block; }
  .cartoes-m tr { padding: .4rem .3rem; border-bottom: 1px solid var(--borda); }
  .cartoes-m tr:last-child { border-bottom: 0; }
  .cartoes-m td { border: 0; padding: .05rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .cartoes-m td::before { content: attr(data-rotulo); color: var(--suave); font-size: .78rem; text-align: left; }
  .cartoes-m td.principal { text-align: left; }
  .cartoes-m td.principal::before { display: none; }
  .tabela-itens thead th:nth-child(2), .tabela-itens thead th:nth-child(3), .tabela-itens tbody td:nth-child(2), .tabela-itens tbody td:nth-child(3) { display: none; }
  .tabela-itens, .tabela-itens thead, .tabela-itens tbody, .tabela-itens tfoot { display: block; }
  .tabela-itens tr { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--borda); }
  .tabela-itens tbody tr:last-child { border-bottom: 0; }
  .tabela-itens tfoot tr { border-top: 2px solid var(--borda); border-bottom: 0; }
  .tabela-itens th, .tabela-itens td, .tabela-itens tfoot th { display: block; border: 0; }
  .item { grid-template-columns: 64px minmax(0, 1fr) 28px; padding-bottom: .35rem; border-bottom: 1px solid var(--borda); }
  .item input[name=item_descricao] { grid-column: 1 / -1; }
  .item output { grid-column: 1 / -1; grid-row: 3; }
  .item.cabecalho { display: none; }
  input, select, textarea { font-size: 16px; }
  .documento { padding: 1rem; }
  .pub-corpo { padding: 0 16px 1.5rem; }
  .pub-topo { padding-left: 16px; padding-right: 16px; }
  .barra-resposta { display: flex; justify-content: space-between; align-items: center; gap: .75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--superficie); border-top: 1px solid var(--borda); padding: .5rem 16px calc(.5rem + env(safe-area-inset-bottom)); }
  .barra-resposta strong { font: 800 1.1rem var(--titulo); }
  .com-resposta { padding-bottom: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  .barra-resposta, .decisao form, .decisao details, .pub-rodape { display: none; }
  .pub-topo { background: none; color: #000; padding: 0 0 .75rem; }
  .pub-topo .remetente, .pub-topo p:last-child { color: #000; }
  .pub-corpo { display: block; margin: 0; padding: 0; }
  .documento, .decisao { border: 0; padding: 0; }
}
.acoes[data-direita] { justify-content: flex-end; flex-wrap: nowrap; }

/* foto de perfil */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xg { width: 72px; height: 72px; font-size: 1.4rem; }
.foto-cartao { display: flex; align-items: center; gap: .85rem; }
.foto-cartao > div { min-width: 0; }
.foto-cartao h2 { margin-bottom: .1rem; }
.foto-cartao p { margin-bottom: .4rem; font-size: .8rem; }
.foto-cartao label.botao { cursor: pointer; font-size: .82rem; display: inline-flex; position: relative; }
.foto-cartao label.botao:has(input:focus-visible) { outline: 2px solid var(--marca); outline-offset: 1px; }
