/* =================================================================
   Airpost Mail - webmail  (design v2, padrao Gmail + acabamento Airpost)
   Monocromatico: a tinta e preto no claro e branco no escuro. Hierarquia
   por peso + opacity. Vidro so no que flutua (menu, dialogo, toast).
   Comentarios so em ASCII.
   ================================================================= */

@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fontes/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fontes/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fonte: "Golos Text", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --app: #f3f3f5;
  --cartao: #ffffff;
  --campo: #e8e8ec;
  --campo-foco: #ffffff;
  --linha: rgba(0, 0, 0, .075);
  --linha-lista: rgba(0, 0, 0, .055);
  --linha-forte: rgba(0, 0, 0, .16);
  --texto: #0b0b0d;
  --tinta: #000000;
  --tinta-txt: #ffffff;
  --realce: rgba(0, 0, 0, .05);
  --sel: rgba(0, 0, 0, .085);
  --lida: rgba(0, 0, 0, .018);
  --hover-linha: 0 1px 2px rgba(0, 0, 0, .08), 0 1px 6px rgba(0, 0, 0, .05), inset 0 0 0 1px rgba(0, 0, 0, .04);
  --sombra-cartao: 0 1px 2px rgba(16, 24, 40, .04);
  --sombra-cmp: 0 24px 64px -16px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06);
  --perigo: #e83a3a;
  --cmp-topo: #f1f1f3;

  --glass-fundo: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .18) 30%, rgba(255, 255, 255, 0) 60%), rgba(255, 255, 255, .76);
  --glass-filtro: blur(26px) saturate(200%);
  --glass-borda: rgba(0, 0, 0, .06);
  --glass-brilho: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .42);
  --glass-sombra: 0 0 0 .5px rgb(0 0 0 / 7%), 0 8px 24px -6px rgb(32 32 32 / 12%), 0 30px 64px -22px rgb(39 39 39 / 16%);
  --glass-scrim: rgba(17, 19, 24, .24);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: .2s var(--ease);
  --lado: 256px;
  color-scheme: light;
}

:root[data-tema="escuro"] {
  --app: #09090a;
  --cartao: #141416;
  --campo: rgba(255, 255, 255, .08);
  --campo-foco: #1c1c1f;
  --linha: rgba(255, 255, 255, .08);
  --linha-lista: rgba(255, 255, 255, .055);
  --linha-forte: rgba(255, 255, 255, .2);
  --texto: #f2f2f3;
  --tinta: #ffffff;
  --tinta-txt: #000000;
  --realce: rgba(255, 255, 255, .065);
  --sel: rgba(255, 255, 255, .11);
  --lida: rgba(255, 255, 255, .012);
  --hover-linha: 0 1px 2px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .06);
  --sombra-cartao: 0 0 0 1px rgba(255, 255, 255, .04);
  --sombra-cmp: 0 24px 64px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  --cmp-topo: #1d1d20;
  --glass-fundo: linear-gradient(180deg, rgb(89 89 89 / 11%) 0%, rgb(56 56 56 / 3%) 32%, rgb(73 73 73 / 0%) 62%), rgb(24 24 27 / 78%);
  --glass-borda: rgba(255, 255, 255, .10);
  --glass-brilho: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .05);
  --glass-sombra: 0 0 0 .5px rgba(0, 0, 0, .75), 0 12px 32px -8px rgba(0, 0, 0, .6), 0 30px 64px -24px rgba(0, 0, 0, .75);
  --glass-scrim: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--fonte); font-size: 14px; line-height: 1.45; color: var(--texto);
  background: var(--app); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
svg.ic { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--sel); }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; border-radius: 8px; }

/* ----------------------------------------------------------- marca */
.marca-ap { font-weight: 560; letter-spacing: -.035em; font-size: 20px; white-space: nowrap; }
.marca-ap b { font-weight: 560; opacity: .4; }
.marca-sel {
  width: 34px; height: 34px; border-radius: 10px; background: var(--tinta); color: var(--tinta-txt);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.marca-sel svg { width: 19px; height: 19px; stroke-width: 1.9; }
.marca-sel.p { width: 30px; height: 30px; border-radius: 9px; }
.marca-sel.p svg { width: 17px; height: 17px; }

/* ----------------------------------------------------------- botoes */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  transition: background var(--t), transform var(--t), box-shadow var(--t), border-color var(--t); white-space: nowrap; user-select: none;
}
.bt svg.ic { width: 18px; height: 18px; }
.bt:active { transform: scale(.98); }
.bt-tinta { background: var(--tinta); color: var(--tinta-txt); }
.bt-tinta:hover { box-shadow: 0 10px 28px -14px rgba(37, 99, 235, .6); transform: translateY(-1px); }
.bt-contorno { border: 1px solid var(--linha-forte); }
.bt-contorno:hover { background: var(--realce); border-color: transparent; }
.bt-fantasma:hover { background: var(--realce); }
.bt[disabled] { opacity: .45; pointer-events: none; }
.bt-ic {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; transition: background var(--t), color var(--t);
}
.bt-ic:hover { background: var(--realce); }
.bt-ic:active { background: var(--sel); }
.bt-ic.perigo:hover { color: var(--perigo); }
.bt-ic.ativo svg { fill: currentColor; }

/* checkbox proprio */
.ck {
  width: 18px; height: 18px; border-radius: 5px; border: 1.6px solid var(--linha-forte); display: inline-block; position: relative;
  transition: background var(--t), border-color var(--t);
}
.ck::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 4.5px; height: 9px;
  border: solid var(--tinta-txt); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
}
.on > .ck, .ck.on { background: var(--tinta); border-color: var(--tinta); }
.on > .ck::after, .ck.on::after { opacity: 1; }
.meio > .ck { background: var(--tinta); border-color: var(--tinta); }
.meio > .ck::after { border-width: 0 0 2px 0; transform: none; width: 8px; height: 0; left: 3.5px; top: 6.5px; opacity: 1; }

.av {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sel); font-size: 13px; font-weight: 650; letter-spacing: -.01em; user-select: none;
}
.av.p { width: 32px; height: 32px; font-size: 12px; }
.av.g { width: 40px; height: 40px; font-size: 14px; }

/* ================================================================
   LOGIN
   ================================================================ */
.ent { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; overflow: auto; background: var(--app); }
.ent::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(900px 520px at 50% -8%, var(--cartao), transparent 70%);
}
.ent-caixa { position: relative; width: 100%; max-width: 420px; animation: entra .5s var(--ease) both; }
.ent-marca { display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 26px; }
.ent-marca .marca-ap { font-size: 24px; }
.ent-card {
  padding: 34px 32px 30px; border-radius: 24px; background: var(--cartao);
  box-shadow: 0 0 0 1px var(--linha), 0 24px 60px -30px rgba(16, 24, 40, .25);
}
.ent-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 560; letter-spacing: -.03em; }
.ent-card p.sub { margin: 0 0 24px; opacity: .58; }
.ent-card label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 7px; }
.campo {
  width: 100%; height: 48px; padding: 0 15px; border-radius: 13px; border: 1px solid var(--linha); background: var(--campo); outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.campo::placeholder { opacity: .45; }
.campo:focus { border-color: var(--linha-forte); background: var(--campo-foco); box-shadow: 0 0 0 4px var(--realce); }
.ent-card .bt { width: 100%; height: 48px; margin-top: 24px; font-size: 15px; border-radius: 13px; }
.senha-caixa { position: relative; }
.senha-caixa .campo { padding-right: 50px; }
.senha-caixa .bt-ic { position: absolute; right: 5px; top: 5px; }
.ent-erro { margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: var(--realce); font-size: 13px; }
.ent-erro::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--perigo); margin-right: 9px; vertical-align: middle; }
.ent-rodape { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; font-size: 12.5px; opacity: .5; }
.ent-rodape svg { width: 14px; height: 14px; }

/* ================================================================
   APP - grade
   ================================================================ */
.wm {
  display: grid; height: 100dvh;
  grid-template-columns: var(--lado) minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-areas: "topo topo" "lado principal";
  transition: grid-template-columns .25s var(--ease);
}
body.lado-recolhido .wm { --lado: 76px; }

/* ----------------------------------------------------------- topo */
.wm-topo { grid-area: topo; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; }
.wm-topo-esq { display: flex; align-items: center; gap: 6px; width: calc(var(--lado) - 10px); min-width: 0; transition: width .25s var(--ease); }
.wm-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wm-logo .marca-ap { font-size: 19px; }
.wm-busca {
  position: relative; flex: 1; max-width: 720px; height: 48px; display: flex; align-items: center;
  border-radius: 24px; background: var(--campo); transition: background var(--t), box-shadow var(--t);
}
.wm-busca:focus-within { background: var(--campo-foco); box-shadow: var(--glass-sombra); }
.wm-busca .lupa { width: 52px; display: flex; justify-content: center; opacity: .6; }
.wm-busca input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 15px; }
.wm-busca input::placeholder { opacity: .55; color: var(--texto); }
.wm-busca input::-webkit-search-cancel-button { display: none; }
.wm-busca .limpar { margin-right: 5px; }
.wm-conta-movel, .wm-busca .menu-movel { display: none; }
.wm-topo-dir { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.wm-conta { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background var(--t); }
.wm-conta:hover { background: var(--realce); }

/* ----------------------------------------------------------- lateral */
.wm-lado { grid-area: lado; display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-top: 6px; }
.wm-escrever {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  height: 56px; margin: 0 0 14px 10px; padding: 0 26px 0 20px; border-radius: 18px;
  background: var(--tinta); color: var(--tinta-txt); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 8px 22px -12px rgba(0, 0, 0, .45);
  transition: transform var(--t), box-shadow var(--t), padding .25s var(--ease);
}
.wm-escrever:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -16px rgba(37, 99, 235, .55), 0 1px 2px rgba(0, 0, 0, .14); }
.wm-escrever svg { width: 21px; height: 21px; }
.wm-pastas { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 12px 16px 0; scrollbar-width: thin; }
.wm-pasta {
  width: 100%; display: flex; align-items: center; gap: 18px; height: 36px; padding: 0 14px 0 22px;
  border-radius: 0 18px 18px 0; font-size: 14px; text-align: left; white-space: nowrap; transition: background var(--t);
}
.wm-pasta:hover { background: var(--realce); }
.wm-pasta.ativa { background: var(--sel); font-weight: 650; }
.wm-pasta.ativa svg { stroke-width: 2; }
.wm-pasta .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wm-pasta .qtd { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.wm-pasta .qtd.fraca { font-weight: 500; opacity: .55; }
.wm-pasta.nova { opacity: .6; }
.wm-pasta.nova:hover { opacity: 1; }
.wm-sep { font-size: 12px; font-weight: 600; letter-spacing: .01em; opacity: .5; padding: 18px 0 6px 24px; white-space: nowrap; }

body.lado-recolhido .wm-topo-esq { width: 66px; }
body.lado-recolhido .wm-logo { display: none; }
body.lado-recolhido .wm-escrever { width: 56px; padding: 0; justify-content: center; margin-left: 10px; }
body.lado-recolhido .wm-escrever span,
body.lado-recolhido .wm-pasta .nome,
body.lado-recolhido .wm-pasta .qtd,
body.lado-recolhido .wm-sep { display: none; }
body.lado-recolhido .wm-pasta { width: 56px; margin-left: 10px; padding: 0; justify-content: center; border-radius: 18px; position: relative; }
body.lado-recolhido .wm-pasta.tem-qtd::after { content: ""; position: absolute; top: 7px; right: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--tinta); }

/* ----------------------------------------------------------- area principal */
.wm-principal { grid-area: principal; min-width: 0; min-height: 0; padding: 0 16px 16px 0; display: flex; }
.wm-cartao {
  flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--cartao); border-radius: 18px; box-shadow: var(--sombra-cartao);
}
.wm-barra { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 10px 0 8px; border-bottom: 1px solid var(--linha); flex: 0 0 auto; }
.wm-barra .grupo { display: flex; align-items: center; gap: 2px; }
.wm-barra .div { width: 1px; height: 20px; background: var(--linha); margin: 0 6px; }
.wm-barra .esp { flex: 1; }
.wm-barra .bt-ic { width: 36px; height: 36px; }
.wm-barra .bt-ic svg { width: 19px; height: 19px; }
.ck-todos { width: 44px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.ck-todos:hover { background: var(--realce); }
.qtd-sel { font-size: 13px; font-weight: 600; margin-left: 10px; white-space: nowrap; }
.pag { display: flex; align-items: center; gap: 0; margin-left: 10px; }
.pag > span { font-size: 12.5px; opacity: .6; margin-right: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pag .bt-ic[disabled] { opacity: .3; pointer-events: none; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--campo); }
.seg button { height: 28px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 560; opacity: .62; white-space: nowrap; transition: var(--t); }
.seg button:hover { opacity: 1; }
.seg button.ativo { background: var(--cartao); opacity: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 .5px var(--linha); }
:root[data-tema="escuro"] .seg button.ativo { background: rgba(255, 255, 255, .14); }
.wm-titulo-movel { display: none; }

/* ----------------------------------------------------------- linhas */
.wm-itens { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: thin; }
.wm-linha {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 44px 32px minmax(120px, 216px) minmax(0, 1fr) 96px;
  grid-template-areas: "ck est rem cont meta";
  height: 44px; padding: 0 14px 0 4px; border-bottom: 1px solid var(--linha-lista);
  cursor: pointer; background: var(--lida); transition: background .12s ease;
}
.wm-linha.nao-lida { background: var(--cartao); }
.wm-linha:hover { box-shadow: var(--hover-linha); z-index: 2; }
.wm-linha.sel { background: var(--sel); }
.wm-linha.foco::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tinta); }
.wm-linha .ckb { grid-area: ck; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.wm-linha .ckb:hover { background: var(--realce); }
.wm-linha .est { grid-area: est; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; opacity: .32; transition: opacity var(--t); }
.wm-linha .est:hover { opacity: .8; background: var(--realce); }
.wm-linha .est.on { opacity: 1; }
.wm-linha .est.on svg { fill: currentColor; }
.wm-linha .est svg { width: 18px; height: 18px; }
.wm-linha .av { display: none; grid-area: av; }
.wm-linha .rem { grid-area: rem; min-width: 0; padding-right: 18px; display: flex; align-items: baseline; gap: 5px; }
.wm-linha .rem .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-linha .rem .n { font-size: 11.5px; opacity: .55; font-weight: 500; flex: 0 0 auto; }
.wm-linha .rasc { font-size: 12px; font-weight: 650; opacity: .9; flex: 0 0 auto; }
.wm-linha .cont { grid-area: cont; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-linha .cont .prev { opacity: .55; }
.wm-linha .cont .pasta-chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--sel); margin-right: 7px; vertical-align: 1px; }
.wm-linha .meta { grid-area: meta; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .62; }
.wm-linha .meta svg { width: 16px; height: 16px; }
.wm-linha.nao-lida .nm, .wm-linha.nao-lida .ass { font-weight: 680; }
.wm-linha.nao-lida .meta { opacity: 1; font-weight: 680; }
.wm-linha .acoes { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: none; gap: 0; padding-left: 14px; background: inherit; }
.wm-linha:hover .acoes { display: flex; }
.wm-linha:hover .meta { visibility: hidden; }
.wm-linha .acoes .bt-ic { width: 36px; height: 36px; }
.wm-linha .acoes .bt-ic svg { width: 18px; height: 18px; }
.wm-linha:hover .acoes { background: linear-gradient(90deg, transparent, var(--cartao) 14px); }
.wm-linha.sel:hover .acoes { background: linear-gradient(90deg, transparent, var(--cartao) 14px); }

.wm-vazio { list-style: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 90px 24px; }
.wm-vazio .ilus { width: 64px; height: 64px; border-radius: 20px; background: var(--campo); display: grid; place-items: center; margin-bottom: 16px; }
.wm-vazio .ilus svg { width: 28px; height: 28px; opacity: .6; }
.wm-vazio b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 4px; }
.wm-vazio span { opacity: .55; }

.esq { list-style: none; display: grid; grid-template-columns: 44px 32px 200px 1fr 80px; align-items: center; height: 44px; padding: 0 14px 0 4px; border-bottom: 1px solid var(--linha-lista); }
.esq i { display: block; height: 10px; border-radius: 6px; background: var(--campo); animation: pulsa 1.2s ease-in-out infinite; }
.esq i:nth-child(1) { width: 16px; height: 16px; margin-left: 12px; border-radius: 4px; }
.esq i:nth-child(2) { width: 16px; height: 16px; border-radius: 50%; }
.esq i:nth-child(3) { width: 60%; }
.esq i:nth-child(4) { width: 75%; }
.esq i:nth-child(5) { width: 40px; margin-left: auto; }

/* ----------------------------------------------------------- conversa */
.wm-conv-corpo { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.cv-cab { display: flex; align-items: flex-start; gap: 12px; padding: 22px 28px 10px 76px; }
.cv-cab h1 { margin: 0; font-size: 22px; font-weight: 520; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
.cv-cab .pasta-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 7px; background: var(--sel); margin-left: 10px; vertical-align: 4px; letter-spacing: 0; }
.cv-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding: 16px 28px 16px 20px; border-top: 1px solid transparent; }
.cv-msg + .cv-msg { border-top-color: var(--linha); }
.cv-msg.fechada { cursor: pointer; padding-top: 12px; padding-bottom: 12px; }
.cv-msg.fechada:hover { background: var(--realce); }
.cv-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 22px; }
.cv-l1 .nm { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-l1 .em { font-size: 12.5px; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-l1 .prev { flex: 1; min-width: 0; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-l1 .esp { flex: 1; }
.cv-l1 .dt { font-size: 12.5px; opacity: .6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-l1 .bt-ic { width: 34px; height: 34px; }
.cv-l1 .bt-ic svg { width: 18px; height: 18px; }
.cv-l1 .icones { display: flex; margin-right: -8px; }
.cv-para { font-size: 12.5px; opacity: .6; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; border-radius: 6px; margin-top: -4px; }
.cv-para:hover { opacity: .9; }
.cv-para svg { width: 14px; height: 14px; }
.cv-detalhes { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--campo); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12.5px; max-width: 620px; }
.cv-detalhes dt { opacity: .55; text-align: right; }
.cv-detalhes dd { margin: 0; overflow-wrap: anywhere; }
.cv-corpo { grid-column: 2; margin-top: 14px; min-width: 0; }
.cv-papel { border-radius: 12px; overflow: hidden; }
.cv-papel iframe { display: block; width: 100%; border: 0; height: 60px; background: #fff; }
:root[data-tema="escuro"] .cv-papel { box-shadow: 0 0 0 1px var(--linha); }
.cv-aviso { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--campo); font-size: 13px; }
.cv-aviso svg { width: 17px; height: 17px; opacity: .7; }
.cv-aviso .tx { flex: 1; opacity: .75; }
.cv-aviso .bt { height: 30px; padding: 0 13px; font-size: 12.5px; }
.cv-anexos-tit { font-size: 12.5px; font-weight: 600; opacity: .6; margin: 18px 0 8px; }
.cv-anexos { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-anexo {
  display: flex; align-items: center; gap: 11px; width: 248px; padding: 10px 12px; border-radius: 13px;
  border: 1px solid var(--linha); text-decoration: none; transition: background var(--t), border-color var(--t), transform var(--t);
}
.cv-anexo:hover { background: var(--realce); border-color: transparent; transform: translateY(-1px); }
.cv-anexo .ext { width: 36px; height: 36px; border-radius: 9px; background: var(--tinta); color: var(--tinta-txt); display: grid; place-items: center; font-size: 9.5px; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; flex: 0 0 auto; }
.cv-anexo .tx { flex: 1; min-width: 0; }
.cv-anexo b { display: block; font-weight: 560; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-anexo .tx span { font-size: 12px; opacity: .55; }
.cv-anexo svg { width: 18px; height: 18px; opacity: .5; }
.cv-desinscrever { margin-top: 14px; font-size: 12.5px; opacity: .6; text-decoration: underline; text-underline-offset: 3px; }
.cv-desinscrever:hover { opacity: 1; }
.cv-resp { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px 40px 76px; }
.cv-resp .bt { height: 40px; padding: 0 20px 0 16px; }
.cv-resp-cmp { padding: 10px 28px 40px 76px; }
.cv-carregando { padding: 20px 28px 0 76px; }
.cv-carregando i { display: block; height: 12px; border-radius: 6px; background: var(--campo); margin-bottom: 12px; animation: pulsa 1.2s ease-in-out infinite; }

/* ----------------------------------------------------------- menus (vidro) */
.menu {
  position: fixed; z-index: 60; min-width: 220px; max-width: 380px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 16px;
  background: var(--glass-fundo); border: 1px solid var(--glass-borda); box-shadow: var(--glass-brilho), var(--glass-sombra);
  -webkit-backdrop-filter: var(--glass-filtro); backdrop-filter: var(--glass-filtro); animation: surge .16s var(--ease);
}
.menu button, .menu a {
  width: 100%; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 11px; border-radius: 10px;
  text-align: left; text-decoration: none; font-size: 13.5px; white-space: nowrap;
}
.menu button svg { width: 18px; height: 18px; opacity: .8; }
.menu button:hover, .menu a:hover { background: var(--realce); }
.menu .perigo:hover { color: var(--perigo); }
.menu hr { border: 0; border-top: 1px solid var(--linha); margin: 6px 4px; }
.menu .tit { font-size: 11.5px; font-weight: 600; opacity: .5; padding: 9px 11px 5px; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .marca { margin-left: auto; }
.menu .marca svg { opacity: 1; width: 16px; height: 16px; }
.menu .cab-conta { display: flex; align-items: center; gap: 12px; padding: 12px 11px 10px; }
.menu .cab-conta div { min-width: 0; }
.menu .cab-conta b { display: block; font-weight: 620; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .cab-conta div span { display: block; font-size: 12.5px; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------- compositor */
.cmp {
  position: fixed; right: 24px; bottom: 0; z-index: 40; width: 580px; height: min(600px, calc(100dvh - 72px));
  display: flex; flex-direction: column; border-radius: 16px 16px 0 0; overflow: hidden;
  background: var(--cartao); box-shadow: var(--sombra-cmp); animation: sobe .28s var(--ease);
}
.cmp.min { height: 46px; width: 320px; }
.cmp.cheio { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: min(1000px, 92vw); height: min(780px, 88dvh); border-radius: 20px; animation: none; }
.cmp-scrim { position: fixed; inset: 0; z-index: 39; background: var(--glass-scrim); animation: aparece .2s ease; }
.cmp-topo { display: flex; align-items: center; gap: 2px; height: 46px; padding: 0 6px 0 16px; flex: 0 0 auto; background: var(--cmp-topo); cursor: default; user-select: none; }
.cmp-topo b { flex: 1; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-topo .estado { font-size: 12px; opacity: .55; margin-right: 6px; white-space: nowrap; }
.cmp-topo .bt-ic { width: 32px; height: 32px; }
.cmp-topo .bt-ic svg { width: 17px; height: 17px; }
.cmp-campos { flex: 0 0 auto; padding: 0 16px; }
.cmp-linha { display: flex; align-items: center; gap: 8px; min-height: 42px; border-bottom: 1px solid var(--linha); }
.cmp-linha > label { font-size: 13.5px; opacity: .55; flex: 0 0 auto; min-width: 30px; }
.cmp-linha input.livre { flex: 1; min-width: 100px; height: 36px; border: 0; outline: none; background: transparent; font-size: 14px; }
.cmp-linha input.cmp-assunto { font-weight: 500; }
.cmp-linha .lk { font-size: 13px; opacity: .6; padding: 4px 7px; border-radius: 8px; }
.cmp-linha .lk:hover { opacity: 1; background: var(--realce); }
.chips { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 4px 0; min-width: 0; cursor: text; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 4px 0 11px; border-radius: 999px; background: var(--sel); font-size: 13px; }
.chip.ruim { box-shadow: inset 0 0 0 1.5px var(--perigo); }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; opacity: .55; flex: 0 0 auto; }
.chip button:hover { opacity: 1; background: var(--realce); }
.chip button svg { width: 12px; height: 12px; stroke-width: 2.2; }
.cmp-editor { flex: 1; overflow-y: auto; padding: 14px 16px; outline: none; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.cmp-editor:empty::before { content: attr(data-dica); opacity: .4; pointer-events: none; }
.cmp-editor blockquote { margin: 8px 0 8px 2px; padding-left: 12px; border-left: 2px solid var(--linha-forte); opacity: .8; }
.cmp-editor img { max-width: 100%; }
.cmp-editor a { text-decoration: underline; }
.cmp-anexos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; flex: 0 0 auto; }
.cmp-anexos .chip { border-radius: 10px; height: 34px; padding-left: 10px; background: var(--campo); }
.cmp-anexos .chip svg.ic { width: 15px; height: 15px; }
.cmp-anexos .prog { font-size: 12px; opacity: .6; }
.cmp-base { display: flex; align-items: center; gap: 4px; padding: 10px 10px 12px 14px; flex: 0 0 auto; }
.cmp-base .bt-tinta { height: 40px; padding: 0 24px; }
.cmp-base .esp { flex: 1; }
.cmp-ferr { display: flex; gap: 0; margin-left: 8px; }
.cmp-ferr .bt-ic, .cmp-base > .bt-ic { width: 34px; height: 34px; }
.cmp-ferr .bt-ic svg, .cmp-base > .bt-ic svg { width: 18px; height: 18px; }

/* resposta dentro da conversa */
.cmp.inline { position: static; width: auto; height: auto; min-height: 260px; border-radius: 16px; animation: entra .25s var(--ease); box-shadow: 0 0 0 1px var(--linha), 0 12px 32px -18px rgba(0, 0, 0, .25); }
.cmp.inline .cmp-topo { background: transparent; height: 44px; padding-left: 14px; border-bottom: 1px solid var(--linha); }
.cmp.inline .cmp-topo b { font-weight: 560; font-size: 13.5px; opacity: .75; }
.cmp.inline .cmp-editor { min-height: 160px; }
.cmp.inline [data-c="min"] { display: none; }

/* ----------------------------------------------------------- dialogo + toast */
.dlg-scrim { position: fixed; inset: 0; z-index: 80; background: var(--glass-scrim); display: grid; place-items: center; padding: 20px; animation: aparece .2s ease; }
.dlg {
  width: 100%; max-width: 460px; padding: 26px; border-radius: 22px;
  background: var(--glass-fundo); border: 1px solid var(--glass-borda); box-shadow: var(--glass-brilho), var(--glass-sombra);
  -webkit-backdrop-filter: var(--glass-filtro); backdrop-filter: var(--glass-filtro); animation: folha .28s var(--ease);
}
.dlg h3 { margin: 0 0 8px; font-size: 19px; font-weight: 580; letter-spacing: -.02em; }
.dlg .tx { opacity: .7; }
.dlg .acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.dlg .campo { margin-top: 14px; }
.dlg dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 12px 0 0; font-size: 13.5px; }
.dlg dt { opacity: .55; }
.dlg dd { margin: 0; font-weight: 560; overflow-wrap: anywhere; }
.dlg .bloco { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linha); }
.dlg .bloco b { font-size: 12px; font-weight: 600; opacity: .55; }

.toasts { position: fixed; left: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 6px 6px 6px 18px;
  border-radius: 14px; background: #1c1c1f; color: #fff; font-size: 14px; box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .45); animation: sobe .24s var(--ease);
}
:root[data-tema="escuro"] .toast { background: #f2f2f3; color: #000; }
.toast button { height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 650; color: inherit; }
.toast button:hover { background: rgba(127, 127, 127, .2); }
.toast.sem-acao { padding-right: 18px; }

.carregando { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100; background: var(--tinta); transition: width .4s var(--ease), opacity .3s; }

/* ----------------------------------------------------------- configuracoes */
.cfg-tit { font-size: 16px; font-weight: 580; letter-spacing: -.015em; margin-left: 6px; }
.cfg-abas { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--linha); overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.cfg-abas::-webkit-scrollbar { display: none; }
.cfg-abas button {
  display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 10px; font-size: 13px; font-weight: 550;
  opacity: .6; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: opacity var(--t), border-color var(--t);
}
.cfg-abas button svg { width: 17px; height: 17px; }
.cfg-abas button:hover { opacity: .9; }
.cfg-abas button.ativa { opacity: 1; border-bottom-color: var(--tinta); }
.cfg-corpo { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.cfg-miolo { max-width: 860px; padding: 28px 36px 60px; animation: entra .25s var(--ease); }
.cfg-h { font-size: 19px; font-weight: 580; letter-spacing: -.02em; margin: 0 0 6px; }
.cfg-p { opacity: .6; margin: 0 0 18px; max-width: 620px; }
.cfg-linha { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--linha); align-items: center; }
.cfg-linha:first-of-type { border-top: 1px solid var(--linha); margin-top: 14px; }
.cfg-rot b { display: block; font-weight: 600; }
.cfg-rot span { display: block; font-size: 13px; opacity: .55; margin-top: 2px; }
.cfg-rot a { text-decoration: underline; text-underline-offset: 3px; }
.cfg-ctl .campo { height: 42px; border-radius: 12px; }
.cfg-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cfg-inline .campo { flex: 1; min-width: 160px; }
.cfg-inline .bt { height: 42px; border-radius: 12px; }
.cfg-ate { font-size: 13px; opacity: .6; white-space: nowrap; }
.cfg-ctl .cfg-area, .cfg-area { height: 140px; padding: 12px 15px; resize: vertical; line-height: 1.5; }
.cfg-sel { height: 42px; width: auto; min-width: 0; flex: 0 0 auto; padding: 0 12px; border-radius: 12px; }
.cfg-acoes { display: flex; justify-content: flex-start; gap: 10px; margin-top: 22px; }
.cfg-acoes .bt { height: 42px; padding: 0 22px; }
.cfg-seg button { height: 32px; padding: 0 14px; font-size: 13px; }
.sw { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; border-radius: 13px; background: var(--linha-forte); transition: background var(--t); }
.sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t); }
.sw input:checked + span { background: var(--tinta); }
.sw input:checked + span::after { transform: translateX(18px); background: var(--tinta-txt); }
.sw input:focus-visible + span { outline: 2px solid var(--tinta); outline-offset: 2px; }
.cfg-editor-caixa { border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; max-width: 680px; }
.cfg-ferr { display: flex; gap: 0; padding: 4px 6px; border-bottom: 1px solid var(--linha); background: var(--campo); }
.cfg-ferr .bt-ic { width: 34px; height: 34px; }
.cfg-ferr .bt-ic svg { width: 17px; height: 17px; }
.cfg-editor { min-height: 140px; padding: 14px 16px; outline: none; line-height: 1.55; }
.cfg-editor:empty::before { content: attr(data-dica); opacity: .4; }
.cfg-lista { display: flex; flex-direction: column; border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; margin-bottom: 14px; max-width: 680px; }
.cfg-item { display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 16px; }
.cfg-item + .cfg-item { border-top: 1px solid var(--linha); }
.cfg-item > svg { opacity: .6; }
.cfg-item .tx { flex: 1; min-width: 0; }
.cfg-item .tx b { display: block; font-weight: 560; overflow-wrap: anywhere; }
.cfg-item .tx span { display: block; font-size: 12.5px; opacity: .55; }
.cfg-vazio { padding: 16px; opacity: .5; font-size: 13.5px; }
.cfg-tag { font-style: normal; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 6px; background: var(--sel); margin-left: 6px; }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-width: 680px; }
.cfg-chips .chip svg.ic { width: 14px; height: 14px; opacity: .6; }
.cfg-card { margin-top: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--linha); background: var(--cartao); box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .25); max-width: 680px; }
.cfg-acoes-f { display: grid; gap: 10px; margin-top: 16px; }
.cfg-check { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.cfg-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--tinta); margin: 0; }
.cfg-check .campo { height: 38px; flex: 1; min-width: 180px; max-width: 320px; }
.cfg-form { display: grid; gap: 14px; max-width: 440px; margin-top: 14px; }
.cfg-form label:not(.cfg-check) { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.cfg-form .campo { height: 44px; font-weight: 400; }
.forca { font-size: 12px; font-weight: 600; opacity: .6; }
.forca:empty { display: none; }
.cfg-cota { max-width: 560px; padding: 22px; border: 1px solid var(--linha); border-radius: 16px; margin-top: 14px; }
.cfg-cota .num b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.cfg-cota .num span { opacity: .55; margin-left: 8px; }
.cfg-cota .barra { height: 8px; border-radius: 4px; background: var(--campo); margin: 14px 0; overflow: hidden; }
.cfg-cota .barra i { display: block; height: 100%; background: var(--tinta); border-radius: 4px; }
.cfg-cota .cfg-p { margin: 0; }
.cfg-dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 18px 0 0; padding: 20px; border: 1px solid var(--linha); border-radius: 16px; max-width: 640px; }
.cfg-dl dt { opacity: .55; }
.cfg-dl dd { margin: 0; font-weight: 560; overflow-wrap: anywhere; }
.cfg-segredo { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--campo); }
.cfg-segredo code { flex: 1; font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.cfg-atalhos { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0 0; }
.cfg-atalhos dd { margin: 0; align-self: center; }
kbd { display: inline-block; min-width: 24px; padding: 2px 8px; border-radius: 7px; border: 1px solid var(--linha-forte); font: 600 12px var(--fonte); text-align: center; background: var(--cartao); }
.cmp-editor .ap-assinatura { opacity: .75; }

/* ----------------------------------------------------------- apps da Airpost */
.apps-menu { width: 336px; max-width: calc(100vw - 20px); padding: 10px; border-radius: 22px; }
.apps-cab { font-size: 13px; font-weight: 600; opacity: .6; padding: 6px 10px 10px; }
.apps-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.menu .app-it {
  height: auto; flex-direction: column; justify-content: center; gap: 9px; padding: 14px 4px 12px; border-radius: 16px;
  font-size: 12.5px; font-weight: 520; text-align: center; white-space: nowrap;
}
.app-it .app-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tinta); color: var(--tinta-txt); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
  transition: transform var(--t);
}
.app-it .app-ic svg { width: 22px; height: 22px; opacity: 1; stroke-width: 1.8; }
.menu .app-it:hover .app-ic { transform: translateY(-2px); }
.app-it.atual { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 4px 12px; border-radius: 16px; font-size: 12.5px; font-weight: 650; background: var(--realce); }
.menu .apps-rod { justify-content: center; margin-top: 8px; height: 40px; border-top: 1px solid var(--linha); border-radius: 0 0 12px 12px; font-size: 13px; font-weight: 560; opacity: .75; }
.menu .apps-rod svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------- espaco no fim do menu */
.wm-cota { display: block; margin: 6px 14px 14px 24px; padding: 10px 0 0; text-align: left; border-top: 1px solid var(--linha); opacity: .7; transition: opacity var(--t); }
.wm-cota:hover { opacity: 1; }
.wm-cota .barra { display: block; height: 4px; border-radius: 2px; background: var(--campo); overflow: hidden; }
.wm-cota .barra i { display: block; height: 100%; border-radius: 2px; background: var(--tinta); }
.wm-cota .tx { display: block; font-size: 12px; margin-top: 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wm-cota.cheia { opacity: 1; }
.wm-cota.cheia .barra i { background: var(--perigo); }
body.lado-recolhido .wm-cota { display: none; }

/* ----------------------------------------------------------- guia de configuracao */
.cfg-miolo.largo { max-width: 1040px; }
.gp-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.gp-h { font-size: 24px; font-weight: 580; letter-spacing: -.03em; margin: 0 0 6px; }
.gp-sub { opacity: .6; margin: 0; max-width: 560px; }
.gp-email { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; width: 320px; max-width: 100%; }
.gp-email .campo { height: 44px; font-weight: 400; }
.gp-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gp-gtit { font-size: 12px; font-weight: 600; opacity: .5; margin-bottom: 8px; }
.gp-apps { display: grid; gap: 6px; }
.gp-app {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left;
  border: 1px solid var(--linha); transition: background var(--t), border-color var(--t), transform var(--t);
}
.gp-app:hover { background: var(--realce); border-color: transparent; transform: translateY(-1px); }
.gp-app.ativo { background: var(--tinta); color: var(--tinta-txt); border-color: var(--tinta); }
.gp-app.ativo .gp-ico { background: rgba(127, 127, 127, .25); color: inherit; }
.gp-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--campo); flex: 0 0 auto; }
.gp-ico svg { width: 19px; height: 19px; }
.gp-ico.g { width: 48px; height: 48px; border-radius: 14px; background: var(--tinta); color: var(--tinta-txt); }
.gp-ico.g svg { width: 24px; height: 24px; }
.gp-tx { min-width: 0; }
.gp-tx b { display: block; font-weight: 600; font-size: 13.5px; }
.gp-tx span { display: block; font-size: 12px; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-escolha { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 18px; border-radius: 16px; background: var(--campo); opacity: .75; }
.gp-guia { margin-top: 30px; padding: 28px; border-radius: 22px; border: 1px solid var(--linha); background: var(--cartao); box-shadow: 0 18px 44px -30px rgba(0, 0, 0, .3); scroll-margin-top: 16px; animation: entra .3s var(--ease); }
.gp-guia-topo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.gp-guia-topo h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.gp-guia-topo span { opacity: .6; font-size: 13px; }
.gp-perfil { display: flex; align-items: center; gap: 24px; padding: 20px; border-radius: 18px; background: var(--campo); margin-bottom: 24px; }
.gp-perfil .tx { flex: 1; min-width: 0; }
.gp-perfil .tx b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.gp-perfil .tx > span { display: block; opacity: .65; margin-bottom: 14px; max-width: 460px; }
.gp-perfil .bt { height: 42px; text-decoration: none; }
.gp-perfil .bt[aria-disabled="true"] { opacity: .45; }
.gp-qr { display: grid; justify-items: center; gap: 8px; flex: 0 0 auto; }
.gp-qr svg { width: 128px; height: 128px; padding: 10px; background: #fff; border-radius: 14px; }
.gp-qr span { font-size: 11.5px; opacity: .6; }
.gp-qr.p svg { width: 96px; height: 96px; padding: 8px; }
.gp-passos { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.gp-passo { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.gp-passo:not(:last-child)::before { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 6px; width: 1.5px; background: var(--linha); }
.gp-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 14px; border: 1.5px solid var(--linha-forte); background: var(--cartao); position: relative; }
.gp-passo.fim .gp-num { background: var(--tinta); color: var(--tinta-txt); border-color: var(--tinta); }
.gp-passo.fim .gp-num svg { width: 18px; height: 18px; stroke-width: 2.4; }
.gp-pc { padding-top: 6px; min-width: 0; }
.gp-pt { display: block; font-size: 15.5px; font-weight: 620; letter-spacing: -.01em; margin-bottom: 4px; }
.gp-pc p { margin: 0 0 10px; opacity: .78; line-height: 1.55; }
.gp-pc p b { opacity: 1; font-weight: 650; }
.gp-cam { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 7px 10px; border-radius: 11px; background: var(--campo); margin: 2px 0 10px; font-size: 13px; }
.gp-cam b { font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--cartao); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.gp-cam i { font-style: normal; opacity: .4; }
.gp-campos { display: grid; border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; max-width: 620px; margin-bottom: 10px; }
.gp-campo { display: grid; grid-template-columns: 210px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 8px 6px 8px 14px; min-height: 46px; }
.gp-campo + .gp-campo { border-top: 1px solid var(--linha); }
.gp-campo > span { font-size: 13px; opacity: .6; }
.gp-campo code { font: 600 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.gp-copiar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; opacity: .55; transition: var(--t); }
.gp-copiar:hover { opacity: 1; background: var(--realce); }
.gp-copiar svg { width: 16px; height: 16px; }
.gp-copiar.ok { opacity: 1; }
.gp-dica { font-size: 13px; opacity: .6 !important; padding-left: 12px; border-left: 2px solid var(--linha-forte); }
.gp-rodape { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--campo); font-size: 13px; }
.gp-rodape svg { width: 16px; height: 16px; margin-top: 2px; opacity: .6; flex: 0 0 auto; }
.gp-rodape span { opacity: .75; }
.gp-celular { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--linha-forte); font-size: 13px; }
.gp-celular span { opacity: .7; max-width: 360px; }

/* pagina publica /configurar */
body.pagina-guia { overflow: auto; background: var(--app); }
.pg-topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: var(--glass-fundo); -webkit-backdrop-filter: var(--glass-filtro); backdrop-filter: var(--glass-filtro); border-bottom: 1px solid var(--linha); }
.pg-topo .wm-logo { text-decoration: none; }
.pg-topo .bt { height: 38px; text-decoration: none; }
.pg-miolo { max-width: 1080px; margin: 0 auto; padding: 40px 24px 60px; }
.pg-ajuda { text-align: center; opacity: .6; font-size: 13px; margin-top: 28px; }
.pg-ajuda a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .gp-grade { grid-template-columns: 1fr; gap: 16px; }
  .gp-guia { padding: 18px; border-radius: 18px; }
  .gp-perfil { flex-direction: column; align-items: stretch; }
  .gp-perfil .bt { width: 100%; }
  .gp-campo { grid-template-columns: minmax(0, 1fr) 40px; }
  .gp-campo > span { grid-column: 1 / -1; margin-bottom: -6px; }
  .gp-qr { display: none; }
  .gp-celular { display: none; }
  .pg-miolo { padding: 24px 16px 48px; }
  .pg-topo { padding: 10px 16px; }
}

/* densidade compacta */
body.compacto .wm-linha { height: 36px; }
body.compacto .wm-linha .ckb { width: 34px; height: 34px; }
body.compacto .wm-pasta { height: 32px; }

.wm-fab { display: none; }
.lado-scrim { display: none; }

@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
@keyframes surge { from { opacity: 0; transform: scale(.97) translateY(-4px); } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } }
@keyframes folha { from { opacity: 0; transform: scale(.96); } }
@keyframes aparece { from { opacity: 0; } }
@keyframes pulsa { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ================================================================
   TELAS MEDIAS
   ================================================================ */
@media (max-width: 1240px) {
  .wm-linha { grid-template-columns: 44px 32px minmax(110px, 180px) minmax(0, 1fr) 84px; }
  #wm-filtros button:nth-child(4) { display: none; }
}
@media (max-width: 1060px) {
  .wm-topo-dir .bt-ic { display: none; }
  #wm-filtros { display: none; }
}

/* ================================================================
   CELULAR (padrao do app do Gmail)
   ================================================================ */
@media (max-width: 760px) {
  body { background: var(--cartao); }
  .esq { grid-template-columns: 52px 1fr; grid-template-rows: 18px 18px; row-gap: 6px; height: auto; padding: 14px 16px; border: 0; }
  .esq i:nth-child(1) { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; margin: 0; }
  .esq i:nth-child(2), .esq i:nth-child(5) { display: none; }
  .esq i:nth-child(3) { grid-column: 2; grid-row: 1; width: 45%; align-self: center; }
  .esq i:nth-child(4) { grid-column: 2; grid-row: 2; width: 85%; align-self: center; }
  .wm { grid-template-columns: 1fr; grid-template-rows: 64px minmax(0, 1fr); grid-template-areas: "topo" "principal"; }
  .wm-topo { padding: 0 12px; gap: 4px; }
  .wm-topo-esq, .wm-topo-dir { display: none; }
  .wm-busca { max-width: none; height: 50px; border-radius: 25px; }
  .wm-busca .lupa { display: none; }
  .wm-busca::before { content: ""; width: 8px; }
  .wm-busca input { padding-left: 44px; }
  .wm-busca .menu-movel { display: inline-flex; position: absolute; left: 6px; top: 6px; }
  .wm-conta-movel { display: inline-flex; margin-right: 6px; }

  .wm-lado {
    position: fixed; inset: 0 auto 0 0; width: 288px; z-index: 50; padding-top: 16px; background: var(--cartao);
    transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--glass-sombra);
  }
  .wm-lado::before { content: "Airpost Mail"; display: block; font-weight: 560; letter-spacing: -.035em; font-size: 20px; padding: 4px 24px 18px; }
  .wm-lado .wm-escrever { display: none; }
  body.lado-aberto .wm-lado { transform: none; }
  body.lado-aberto .lado-scrim { display: block; position: fixed; inset: 0; z-index: 49; background: var(--glass-scrim); }

  .wm-principal { padding: 0; }
  .wm-cartao { border-radius: 0; background: var(--cartao); box-shadow: none; }
  #wm-vista-lista .wm-barra { display: none; }
  #wm-vista-lista .wm-barra.lote-ativo { display: flex; position: sticky; top: 0; z-index: 3; background: var(--cartao); }
  #wm-vista-lista .wm-barra.lote-ativo #wm-filtros, #wm-vista-lista .wm-barra.lote-ativo .pag { display: none; }
  .wm-titulo-movel { display: block; font-size: 12.5px; font-weight: 600; opacity: .6; padding: 10px 20px 6px; }

  .wm-linha {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "av rem meta" "av ass ass" "av prev est";
    height: auto; padding: 10px 14px 10px 14px; border: 0; background: transparent; row-gap: 1px;
  }
  .wm-linha.nao-lida { background: transparent; }
  .wm-linha:hover { box-shadow: none; }
  .wm-linha:active { background: var(--realce); }
  .wm-linha.sel { background: var(--sel); }
  .wm-linha .ckb { display: none; }
  .wm-linha .av { display: inline-flex; width: 40px; height: 40px; font-size: 14px; align-self: start; margin-top: 2px; }
  .wm-linha.sel .av { background: var(--tinta); color: transparent; position: relative; }
  .wm-linha.sel .av::after { content: ""; position: absolute; left: 15px; top: 10px; width: 7px; height: 14px; border: solid var(--tinta-txt); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
  .wm-linha .rem { padding-right: 8px; font-size: 15px; }
  .wm-linha .cont { display: contents; }
  .wm-linha .cont .ass { grid-area: ass; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .wm-linha .cont .prev { grid-area: prev; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
  .wm-linha .cont .sep { display: none; }
  .wm-linha .meta { font-size: 12px; }
  .wm-linha .est { grid-area: est; width: 30px; height: 26px; justify-self: end; margin-right: -6px; }
  .wm-linha .acoes { display: none !important; }
  .wm-linha:hover .meta { visibility: visible; }

  .wm-fab {
    display: inline-flex; align-items: center; gap: 12px; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
    height: 56px; padding: 0 22px 0 18px; border-radius: 18px; background: var(--tinta); color: var(--tinta-txt);
    font-weight: 600; font-size: 15px; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .5);
  }
  body.ver-conversa .wm-fab { display: none; }

  #wm-vista-conversa { background: var(--cartao); }
  #wm-vista-conversa .wm-barra { padding: 0 4px; position: sticky; top: 0; }
  #wm-vista-conversa .pag { display: none; }
  .cv-cab { padding: 16px 18px 6px; }
  .cv-cab h1 { font-size: 20px; }
  .cv-msg { grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; padding: 14px 14px 14px 14px; }
  .cv-msg .av.g { width: 36px; height: 36px; font-size: 13px; }
  .cv-l1 .em { display: none; }
  .cv-corpo { grid-column: 1 / -1; margin-top: 12px; }
  .cv-resp, .cv-resp-cmp { padding: 14px 14px 40px; }
  .cv-resp .bt { flex: 1; padding: 0 10px; }

  .cfg-miolo { padding: 20px 18px 60px; }
  .cfg-linha { grid-template-columns: 1fr; gap: 12px; }
  .cfg-abas { padding: 0 6px; }
  #wm-vista-config { background: var(--cartao); }
  .cmp, .cmp.cheio, .cmp.min { inset: 0; width: auto; height: 100dvh; transform: none; border-radius: 0; }
  .cmp.inline { height: auto; }
  .cmp-scrim { display: none; }
  .cmp-ferr { display: none; }
  .toasts { left: 12px; right: 12px; bottom: 90px; align-items: stretch; }
}

/* ----------------------------------------------------------- compositor: enviar dividido, de, sugestoes */
.cmp-enviar { display: inline-flex; }
.cmp-enviar .bt { border-radius: 999px 0 0 999px; padding: 0 18px 0 22px; }
.cmp-enviar .bt.seta { border-radius: 0 999px 999px 0; padding: 0 12px 0 10px; margin-left: 1px; }
.cmp-enviar .bt.seta svg { width: 16px; height: 16px; }
.cmp-base .cmp-enviar .bt-tinta { height: 40px; }
.cmp-de { flex: 1; height: 36px; border: 0; background: transparent; outline: none; font-size: 14px; cursor: pointer; }
.sug { position: fixed; z-index: 70; width: 320px; padding: 6px; }
.sug button { height: auto; min-height: 48px; padding: 6px 10px; gap: 12px; }
.sug .sug-tx { display: flex; flex-direction: column; min-width: 0; }
.sug .sug-tx b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.sug .sug-tx i { font-style: normal; font-size: 12.5px; opacity: .6; overflow: hidden; text-overflow: ellipsis; }
.sug button.foco { background: var(--sel); }

/* ----------------------------------------------------------- programados */
.wm-linha.programado .acoes { display: none !important; }
.wm-linha.programado .meta svg { opacity: .7; }
.wm-linha.programado:hover .meta { visibility: visible; }

/* ----------------------------------------------------------- conversa vazia (painel a direita) */
.cv-vazia { height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; opacity: .55; }
.cv-vazia .marca-sel { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 10px; opacity: .5; }
.cv-vazia b { font-size: 15px; font-weight: 600; }

/* ----------------------------------------------------------- visualizador de anexos */
.visor { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: rgba(10, 10, 12, .92); color: #fff; animation: aparece .18s ease; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.visor-topo { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px 0 18px; flex: 0 0 auto; }
.visor-topo b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visor-topo .tam, .visor-topo .pos { opacity: .6; font-size: 13px; white-space: nowrap; }
.visor-topo .esp { flex: 1; }
.visor-topo .bt-ic { color: #fff; }
.visor-topo .bt-ic:hover { background: rgba(255, 255, 255, .12); }
.visor .ext { width: 34px; height: 34px; border-radius: 9px; background: #fff; color: #000; display: grid; place-items: center; font-size: 9.5px; font-weight: 750; text-transform: uppercase; flex: 0 0 auto; }
.visor .ext.g { width: 64px; height: 64px; border-radius: 16px; font-size: 13px; }
.visor-palco { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 28px; }
.visor-palco img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.visor-palco iframe { width: min(1000px, 100%); height: 100%; border: 0; border-radius: 10px; background: #fff; }
.visor-sem { display: grid; justify-items: center; gap: 14px; text-align: center; }
.visor-sem .bt-tinta { background: #fff; color: #000; text-decoration: none; }
.visor-nav { position: absolute; top: 50%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); }
.visor-nav:hover { background: rgba(255, 255, 255, .2); }
.visor-nav.ant { left: 12px; }
.visor-nav.prox { right: 12px; }

/* ----------------------------------------------------------- arrastar para pastas */
.arrasto { position: fixed; top: -100px; left: -100px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--tinta); color: var(--tinta-txt); font-size: 13px; font-weight: 600; }
.arrasto svg { width: 16px; height: 16px; }
body.arrastando .wm-pasta[data-pasta] { outline: 1px dashed transparent; }
.wm-pasta.alvo-drop { background: var(--tinta) !important; color: var(--tinta-txt); }

/* ----------------------------------------------------------- contatos */
.ct-busca { position: relative; display: flex; align-items: center; margin-right: 8px; }
.ct-busca svg { position: absolute; left: 11px; width: 16px; height: 16px; opacity: .5; }
.ct-busca input { height: 36px; width: 240px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--linha); background: var(--campo); outline: none; }
.ct-novo { height: 36px; padding: 0 16px 0 12px; }
.ct-corpo { flex: 1; overflow-y: auto; }
.ct-cab, .ct-linha { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(200px, 1.4fr) minmax(120px, .8fr) minmax(120px, .8fr) 120px; align-items: center; gap: 16px; padding: 0 16px 0 20px; }
.ct-cab { height: 40px; font-size: 12px; font-weight: 600; opacity: .55; border-bottom: 1px solid var(--linha); }
.ct-linha { min-height: 54px; border-bottom: 1px solid var(--linha-lista); cursor: pointer; }
.ct-linha:hover { background: var(--realce); }
.ct-linha > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.ct-nome { display: flex; align-items: center; gap: 12px; }
.ct-nome b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.ct-em { opacity: .75; }
.ct-ac { display: flex; justify-content: flex-end; opacity: 0; transition: opacity var(--t); }
.ct-linha:hover .ct-ac { opacity: 1; }
.ct-ac .bt-ic { width: 34px; height: 34px; }
.ct-ac .bt-ic svg { width: 17px; height: 17px; }
.ct-rod { padding: 14px 20px; font-size: 12.5px; opacity: .5; }
.ct-form { display: grid; gap: 12px; margin-top: 12px; }
.ct-form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ct-form .campo { margin: 0; height: 42px; font-weight: 400; }
.ct-form textarea.campo { height: auto; padding: 10px 14px; resize: vertical; }

/* ----------------------------------------------------------- painel de leitura a direita */
body.painel-direita:not(.ver-pagina) .wm-principal { display: grid; grid-template-columns: minmax(360px, 40%) minmax(0, 1fr); gap: 12px; }
body.painel-direita .wm-principal > [hidden] { display: none !important; }
body.painel-direita #wm-vista-lista .wm-linha {
  grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ck rem meta" "ck ass ass" "ck prev est";
  height: auto; padding: 9px 12px 9px 4px; row-gap: 1px;
}
body.painel-direita #wm-vista-lista .wm-linha .ckb { align-self: start; width: 34px; height: 34px; }
body.painel-direita #wm-vista-lista .wm-linha .cont { display: contents; }
body.painel-direita #wm-vista-lista .wm-linha .cont .ass { grid-area: ass; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.painel-direita #wm-vista-lista .wm-linha .cont .prev { grid-area: prev; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
body.painel-direita #wm-vista-lista .wm-linha .cont .sep, body.painel-direita #wm-vista-lista .wm-linha .cont .pasta-chip { display: none; }
body.painel-direita #wm-vista-lista .wm-linha .est { grid-area: est; justify-self: end; width: 28px; height: 24px; }
body.painel-direita #wm-vista-lista .wm-linha .acoes { top: 8px; transform: none; }
body.painel-direita #wm-vista-lista .wm-linha.foco { background: var(--sel); }
body.painel-direita #wm-vista-lista #wm-filtros { display: none; }
body.painel-direita #wm-vista-conversa [data-acao="voltar-lista"], body.painel-direita #wm-vista-conversa .grupo > .div:first-of-type { display: none; }
body.painel-direita .cv-cab { padding-left: 28px; }
body.painel-direita .cv-msg { padding-left: 20px; }
body.painel-direita .cv-resp, body.painel-direita .cv-resp-cmp { padding-left: 76px; }

/* ----------------------------------------------------------- botao direito */
.menu button > span:not(.marca) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wm-linha.menu-alvo { background: var(--sel); box-shadow: var(--hover-linha); z-index: 2; }

@media (max-width: 760px) {
  .ct-cab { display: none; }
  .ct-linha { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 12px; }
  .ct-linha > span:nth-child(2), .ct-linha > span:nth-child(3), .ct-linha > span:nth-child(4) { display: none; }
  .ct-ac { opacity: 1; }
  .ct-busca input { width: 130px; }
  .visor-palco { padding: 0 8px 12px; }
  .visor-nav { display: none; }
}
#wm-vista-conversa.vazia .wm-barra > * { visibility: hidden; }
