/* =========================================================================
   Talkline - Drive Marketing - drive.css
   Identidade: teal #0A3C47 #134E5B #1B606E #247780, claros #E6F0F2 #CFE3E7,
   papel #F3F2EF. Inter no texto, Plus Jakarta Sans nos titulos.
   Comentarios sem acento (padrao dos css da Talkline).
   ========================================================================= */
:root {
  --t900: #0A3C47; --t800: #134E5B; --t700: #1B606E; --t600: #247780;
  --c100: #E6F0F2; --c200: #CFE3E7; --papel: #F3F2EF;
  --branco: #fff; --texto: #17323a; --dim: #5d7479; --dim2: #8aa0a5; --borda: #dbe6e8;
  --perigo: #b9433f; --perigo-claro: #fbeceb; --ok: #138a74; --aviso: #a8620a;
  --raio: 14px; --raio-sm: 9px;
  --sombra: 0 1px 2px rgba(10, 60, 71, .06), 0 4px 14px rgba(10, 60, 71, .06);
  --sombra-alta: 0 12px 40px rgba(10, 60, 71, .22);
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titulo: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --topo: 64px; --lateral: 256px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--fonte); font-size: 14px; color: var(--texto); background: var(--papel); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--t600); }
h1, h2, h3 { font-family: var(--titulo); margin: 0; color: var(--t900); }

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-primario { background: var(--t600); color: #fff; }
.btn-primario:hover:not(:disabled) { background: var(--t700); }
.btn-claro { background: var(--branco); color: var(--t800); border-color: var(--borda); }
.btn-claro:hover:not(:disabled) { background: var(--c100); }
.btn-perigo { background: var(--perigo); color: #fff; }
.btn-perigo:hover:not(:disabled) { background: #9e3532; }
.btn-perigo-claro { color: var(--perigo); }
.btn-perigo-claro:hover:not(:disabled) { background: var(--perigo-claro); }
.btn-grande { padding: 13px 26px; font-size: 15px; }
.btn-icone {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: transparent; color: var(--t800); cursor: pointer; font-size: 16px; flex: none; text-decoration: none;
}
.btn-icone:hover { background: var(--c100); }
.btn-icone.ativo { background: var(--c200); color: var(--t900); }
:focus-visible { outline: 2px solid var(--t600); outline-offset: 2px; }

/* ---------- tela "entre pelo CRM" ---------- */
.entrar {
  min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 10% -10%, #1B606E 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 110%, #247780 0%, transparent 55%), var(--t900);
}
.entrar-cartao {
  width: min(460px, 100%); background: var(--branco); border-radius: 22px; padding: 34px 32px 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35); display: grid; gap: 14px; justify-items: start;
}
.marca-talkline { display: flex; align-items: center; gap: 8px; }
.marca-palavra { font-family: var(--titulo); font-weight: 800; font-size: 26px; color: var(--t900); letter-spacing: -.5px; }
.marca-ponto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--t600); margin-left: 2px; }
.entrar-selo {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: var(--c100); color: var(--t700); font-weight: 700; font-size: 12.5px; margin-top: 6px;
}
.entrar h1 { font-size: 28px; letter-spacing: -.4px; }
.entrar-txt { margin: 0; color: var(--dim); line-height: 1.55; font-size: 15px; }
.entrar-txt b { color: var(--t800); }
.entrar-aviso {
  width: 100%; padding: 11px 14px; border-radius: var(--raio-sm); background: #fff6e6; color: #7a4a06;
  border: 1px solid #f1d29a; font-size: 13.5px; line-height: 1.45;
}
.entrar-aviso.erro { background: var(--perigo-claro); color: #8a2b28; border-color: #efc2c0; }
.entrar .btn-grande { width: 100%; margin-top: 4px; }
.entrar-lista { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--borda); display: grid; gap: 9px; width: 100%; }
.entrar-lista li { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 13.5px; }
.entrar-lista i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--c100); color: var(--t600); flex: none; }

/* ---------- estrutura ---------- */
.app {
  height: 100%; display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); grid-template-rows: var(--topo) minmax(0, 1fr);
  grid-template-areas: "topo topo" "lateral principal";
}
.topo {
  grid-area: topo; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 18px;
  background: linear-gradient(90deg, var(--t900) 0%, var(--t800) 60%, var(--t700) 100%); color: #fff; position: relative; z-index: 30;
}
.topo .btn-icone { color: #d6ecf0; }
.topo .btn-icone:hover { background: rgba(255, 255, 255, .1); }
.topo-menu, .topo-busca-celular { display: none !important; }
.topo-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; width: calc(var(--lateral) - 32px); flex: none; }
.topo-titulo { font-family: var(--titulo); font-weight: 600; font-size: 19px; letter-spacing: -.2px; color: #e3f1f4; }
.topo-titulo b { font-weight: 800; color: #fff; }
.busca {
  flex: 1; max-width: 680px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s;
}
.busca:focus-within { background: #fff; border-color: #fff; }
.busca-ico { color: #b9dbe1; }
.busca:focus-within .busca-ico { color: var(--t600); }
.busca input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; outline: none; font-size: 14.5px; }
.busca input::placeholder { color: #b9dbe1; }
.busca:focus-within input { color: var(--texto); }
.busca:focus-within input::placeholder { color: var(--dim2); }
.busca input::-webkit-search-cancel-button { display: none; }
.busca-limpar { width: 32px; height: 32px; color: #b9dbe1 !important; }
.busca:focus-within .busca-limpar { color: var(--dim) !important; }
.topo-usuario { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: #8fbfc8; color: var(--t900); flex: none; letter-spacing: .3px;
}
.topo-usuario-txt { display: grid; line-height: 1.2; max-width: 190px; }
.topo-usuario-txt b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-usuario-txt small { color: #a9d0d8; font-size: 11.5px; text-transform: capitalize; }

.lateral {
  grid-area: lateral; background: var(--branco); border-right: 1px solid var(--borda); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto; z-index: 20;
}
.novo-wrap { position: relative; }
.btn-novo {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 20px; border-radius: 16px; border: 0;
  background: var(--t600); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(36, 119, 128, .35); transition: background .15s, transform .1s;
}
.btn-novo:hover { background: var(--t700); }
.btn-novo:active { transform: translateY(1px); }
.btn-novo i { font-size: 17px; }
.menu-flutuante, .menu-contexto {
  position: fixed; z-index: 85; min-width: 220px; background: var(--branco); border-radius: 12px; padding: 6px;
  box-shadow: var(--sombra-alta); border: 1px solid var(--borda);
}
.menu-flutuante button, .menu-contexto button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none;
  border-radius: 8px; cursor: pointer; text-align: left; font-size: 13.5px; color: var(--texto);
}
.menu-flutuante button i, .menu-contexto button i { width: 18px; text-align: center; color: var(--t600); }
.menu-flutuante button:hover, .menu-contexto button:hover { background: var(--c100); }
.menu-contexto button.perigo, .menu-contexto button.perigo i { color: var(--perigo); }
.menu-flutuante hr, .menu-contexto hr { border: 0; border-top: 1px solid var(--borda); margin: 5px 4px; }

.nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 999px; color: var(--texto);
  text-decoration: none; font-weight: 500;
}
.nav-item i { width: 18px; text-align: center; color: var(--dim); }
.nav-item:hover { background: var(--c100); }
.nav-item.ativo { background: var(--c200); color: var(--t900); font-weight: 700; }
.nav-item.ativo i { color: var(--t700); }

.espaco { margin-top: auto; padding: 14px; border-radius: var(--raio); background: var(--c100); }
.espaco h3 { font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; color: var(--t800); margin-bottom: 10px; }
.espaco-barra { height: 7px; border-radius: 999px; background: var(--c200); overflow: hidden; }
.espaco-barra span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--t600), var(--t900)); border-radius: 999px; transition: width .4s; }
.espaco-txt { margin: 9px 0 0; font-size: 12.5px; color: var(--t800); font-weight: 600; }
.espaco-dm { margin: 4px 0 0; font-size: 12px; color: var(--dim); line-height: 1.4; }

.principal { grid-area: principal; overflow-y: auto; position: relative; padding: 0 26px 110px; }
.vista { position: relative; min-height: 100%; }

/* ---------- barra superior da vista ---------- */
.barra {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 18px 0 14px; background: var(--papel);
}
.trilha { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; font-family: var(--titulo); }
.trilha a, .trilha span.atual {
  font-size: 20px; font-weight: 700; color: var(--dim); text-decoration: none; padding: 4px 10px; border-radius: 10px;
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trilha a:hover { background: var(--c100); color: var(--t800); }
.trilha span.atual { color: var(--t900); font-weight: 800; }
.trilha .sep { color: var(--dim2); font-size: 12px; }
.trilha .busca-tit { font-size: 20px; font-weight: 800; color: var(--t900); padding: 4px 10px; }
.barra-acoes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ordem, .campo-filtro {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--branco); border: 1px solid var(--borda); color: var(--dim);
}
.ordem select, .campo-filtro select { border: 0; background: transparent; outline: none; padding: 6px 4px; cursor: pointer; color: var(--texto); font-weight: 500; max-width: 210px; }
.alternar { display: inline-flex; background: var(--branco); border: 1px solid var(--borda); border-radius: 999px; padding: 2px; margin-left: 4px; }
.alternar .btn-icone { width: 34px; height: 34px; font-size: 14px; }
.vista-cab h1 { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.vista-cab h1 i { color: var(--t600); font-size: 19px; }
.ajuda { margin: 4px 0 0; color: var(--dim); font-size: 13px; }

.selecao {
  position: sticky; top: 70px; z-index: 9; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 10px 6px 6px; margin-bottom: 12px; border-radius: 999px; background: var(--c200); color: var(--t900); font-weight: 600;
}
.selecao-acoes { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.selecao .btn { padding: 7px 14px; }

/* ---------- lista ---------- */
.conteudo { min-height: 200px; }
.tabela { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.linha {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 170px 150px 100px 44px; align-items: center; min-height: 54px;
  padding: 0 6px; border-top: 1px solid var(--borda); cursor: default; transition: background .1s;
}
.linha.cab { min-height: 42px; border-top: 0; color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; background: #fafcfc; }
.linha:not(.cab):hover { background: #f4f9fa; }
.linha.sel { background: var(--c100); }
.linha .col { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 13px; }
.linha.lixeira-linha { grid-template-columns: 44px minmax(0, 1fr) 170px 230px 100px 44px; }
.linha.busca-linha { grid-template-columns: 44px minmax(0, 1fr) 220px 150px 100px 44px; }
.chk { display: grid; place-items: center; }
.chk input { width: 17px; height: 17px; accent-color: var(--t600); cursor: pointer; margin: 0; }
.nome { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 8px; }
.nome-btn {
  display: flex; align-items: center; gap: 12px; min-width: 0; border: 0; background: none; padding: 6px 0; cursor: pointer; text-align: left;
}
.nome-btn:hover .nome-txt { color: var(--t600); text-decoration: underline; text-underline-offset: 2px; }
.nome-bloco { display: grid; min-width: 0; }
.nome-txt { font-weight: 600; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nome-meta { display: none; color: var(--dim); font-size: 12px; margin-top: 2px; }
.ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 16px; }
.ico-mini { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; background: var(--c100); }
.col-local a { color: var(--dim); text-decoration: none; }
.col-local a:hover { color: var(--t600); text-decoration: underline; }
.mais-btn { width: 36px; height: 36px; font-size: 15px; color: var(--dim); }

/* ---------- grade ---------- */
.grade-titulo { font-family: var(--titulo); font-weight: 700; color: var(--dim); font-size: 13px; margin: 6px 2px 10px; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cartao {
  position: relative; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden;
  box-shadow: var(--sombra); transition: box-shadow .15s, transform .15s, border-color .15s; display: flex; flex-direction: column;
}
.cartao:hover { box-shadow: 0 10px 26px rgba(10, 60, 71, .14); transform: translateY(-1px); }
.cartao.sel { border-color: var(--t600); box-shadow: 0 0 0 2px var(--c200); }
.cartao-capa { aspect-ratio: 4 / 3; background: var(--c100); display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; width: 100%; overflow: hidden; }
.cartao-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cartao-capa .ico-grande { font-size: 44px; }
.cartao-pe { display: flex; align-items: center; gap: 8px; padding: 8px 4px 8px 12px; min-width: 0; }
.cartao-pe .ico { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
.cartao-pe .nome-txt { flex: 1; font-size: 13px; }
.cartao .chk { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .92); opacity: 0; transition: opacity .15s; box-shadow: var(--sombra); }
.cartao:hover .chk, .cartao.sel .chk, .grade.com-sel .chk { opacity: 1; }
.grade-pastas { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cartao-pasta { flex-direction: row; align-items: center; }
.cartao-pasta .nome-btn { flex: 1; min-width: 0; padding: 14px 4px 14px 14px; }
.cartao-pasta .chk { position: static; background: none; box-shadow: none; width: 30px; margin-left: 8px; display: none; opacity: 1; }
.cartao-pasta:hover .chk, .cartao-pasta.sel .chk, .grade.com-sel .cartao-pasta .chk { display: grid; }
.cartao-pasta:hover .nome-btn, .cartao-pasta.sel .nome-btn, .grade.com-sel .cartao-pasta .nome-btn { padding-left: 4px; }

/* ---------- vazio / carregando ---------- */
.vazio { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 70px 20px; color: var(--dim); }
.vazio .vazio-ico { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--c100); color: var(--t600); font-size: 34px; }
.vazio h2 { font-size: 18px; }
.vazio p { margin: 0; max-width: 420px; line-height: 1.5; }
.carregando { display: grid; place-items: center; padding: 70px 0; color: var(--t600); font-size: 26px; }
.esqueleto { height: 54px; border-top: 1px solid var(--borda); background: linear-gradient(90deg, #fff 0%, #f1f6f7 50%, #fff 100%); background-size: 200% 100%; animation: brilho 1.2s infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- soltar arquivos ---------- */
.soltar { position: fixed; inset: var(--topo) 0 0 var(--lateral); z-index: 40; display: grid; place-items: center; background: rgba(10, 60, 71, .18); padding: 30px; pointer-events: none; }
.soltar-caixa {
  width: min(520px, 100%); padding: 44px 30px; border-radius: 22px; border: 3px dashed var(--t600); background: rgba(255, 255, 255, .96);
  display: grid; justify-items: center; gap: 8px; text-align: center; box-shadow: var(--sombra-alta);
}
.soltar-caixa i { font-size: 46px; color: var(--t600); }
.soltar-caixa b { font-family: var(--titulo); font-size: 20px; color: var(--t900); }
.soltar-caixa span { color: var(--dim); }

/* ---------- atividade ---------- */
.ativ { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.ativ-linha { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--borda); }
.ativ-linha:first-child { border-top: 0; }
.ativ-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; }
.ativ-txt { min-width: 0; line-height: 1.45; }
.ativ-txt b { font-weight: 600; }
.ativ-txt .ativ-item { color: var(--t800); font-weight: 600; word-break: break-word; }
.ativ-det { display: block; color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ativ-quando { color: var(--dim); font-size: 12.5px; white-space: nowrap; text-align: right; }
.mais { display: flex; justify-content: center; padding: 18px 0; }

/* ---------- envios ---------- */
.envios {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 380px; max-height: 60vh; display: flex; flex-direction: column;
  background: var(--branco); border-radius: 16px; box-shadow: var(--sombra-alta); border: 1px solid var(--borda); overflow: hidden;
}
.envios-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; background: var(--t900); color: #fff; }
.envios-cab b { font-family: var(--titulo); font-weight: 700; font-size: 14.5px; }
.envios-cab .btn-icone { color: #d6ecf0; width: 34px; height: 34px; }
.envios-cab .btn-icone:hover { background: rgba(255, 255, 255, .12); }
.envios-total { height: 3px; background: var(--c200); }
.envios-total span { display: block; height: 100%; width: 0; background: var(--t600); transition: width .3s; }
.envios-lista { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; }
.envios.minimizado .envios-lista { display: none; }
.envios.minimizado #envios-min i { transform: rotate(180deg); }
.envio { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px 9px 16px; }
.envio .ico { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
.envio-nome { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.envio-barra { height: 5px; border-radius: 999px; background: var(--c100); margin-top: 6px; overflow: hidden; }
.envio-barra span { display: block; height: 100%; width: 0; background: var(--t600); border-radius: 999px; transition: width .2s; }
.envio.ok .envio-barra span { background: var(--ok); }
.envio.erro .envio-barra span { background: var(--perigo); }
.envio-status { font-size: 11.5px; color: var(--dim); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.envio.erro .envio-status { color: var(--perigo); white-space: normal; }
.envio-acoes { display: flex; gap: 2px; }
.envio-acoes .btn-icone { width: 30px; height: 30px; font-size: 13px; }
.envio .feito { color: var(--ok); font-size: 18px; }

/* ---------- modal ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 90; background: rgba(8, 30, 36, .5); display: grid; place-items: center; padding: 18px; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; background: var(--branco); border-radius: 18px; box-shadow: var(--sombra-alta); }
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 14px 6px 22px; }
.modal-cab h2 { font-size: 18px; }
.modal-corpo { padding: 8px 22px 6px; overflow-y: auto; color: var(--dim); line-height: 1.5; }
.modal-corpo p { margin: 0 0 10px; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; flex-wrap: wrap; }
.campo-texto {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--borda); background: #fff; color: var(--texto);
  font-size: 14.5px; outline: none; margin: 6px 0 4px;
}
.campo-texto:focus { border-color: var(--t600); box-shadow: 0 0 0 3px rgba(36, 119, 128, .15); }
.mover-trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 8px; font-size: 13px; }
.mover-trilha button { border: 0; background: none; color: var(--t600); cursor: pointer; padding: 3px 6px; border-radius: 6px; font-weight: 600; }
.mover-trilha button:hover { background: var(--c100); }
.mover-trilha .sep { color: var(--dim2); font-size: 10px; }
.mover-lista { border: 1px solid var(--borda); border-radius: 12px; max-height: 300px; overflow-y: auto; }
.mover-lista button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-top: 1px solid var(--borda);
  background: none; cursor: pointer; text-align: left; color: var(--texto);
}
.mover-lista button:first-child { border-top: 0; }
.mover-lista button:hover { background: var(--c100); }
.mover-lista button:disabled { opacity: .45; cursor: not-allowed; }
.mover-lista i.fa-folder { color: var(--t600); }
.mover-lista .seta { margin-left: auto; color: var(--dim2); font-size: 12px; }
.mover-vazio { padding: 18px; text-align: center; color: var(--dim); font-size: 13px; }

/* ---------- previa ---------- */
.previa { position: fixed; inset: 0; z-index: 95; background: #0a1e24; display: flex; flex-direction: column; color: #e8f3f5; }
.previa-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: #06161b; }
.previa-titulo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.previa-titulo i { font-size: 18px; }
.previa-titulo b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previa-acoes { display: flex; gap: 4px; }
.previa .btn-icone { color: #e8f3f5; }
.previa .btn-icone:hover { background: rgba(255, 255, 255, .12); }
.previa-corpo { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 70px 26px; }
.previa-corpo img, .previa-corpo video { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); background: #000; }
.previa-corpo iframe { width: min(1100px, 100%); height: 100%; border: 0; border-radius: 8px; background: #fff; }
.previa-audio { display: grid; justify-items: center; gap: 22px; }
.previa-audio .ico-grande { width: 130px; height: 130px; border-radius: 34px; display: grid; place-items: center; font-size: 54px; background: rgba(255, 255, 255, .08); }
.previa-audio audio { width: min(460px, 86vw); }
.previa-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer;
}
.previa-nav:hover { background: rgba(255, 255, 255, .2); }
.previa-ant { left: 12px; }
.previa-prox { right: 12px; }
.previa-erro { text-align: center; color: #b8d3d8; display: grid; gap: 14px; justify-items: center; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px; border-radius: 12px; background: #11292f; color: #eaf5f7; box-shadow: var(--sombra-alta);
  font-size: 13.5px; max-width: calc(100vw - 32px);
}
.toast.erro { background: #7d2321; }
.toast button { border: 0; background: none; color: #8fd3df; font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.toast button:hover { background: rgba(255, 255, 255, .1); }

.fab { display: none; }
.lateral-fundo { display: none; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  :root { --topo: 58px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topo" "principal"; }
  .topo { gap: 6px; padding: 0 8px; }
  .topo-menu, .topo-busca-celular { display: inline-grid !important; }
  .topo-marca { width: auto; flex: 1; min-width: 0; }
  .topo-titulo { font-size: 17px; }
  .busca { display: none; }
  .topo.busca-aberta .busca { display: flex; position: absolute; left: 8px; right: 8px; top: 7px; max-width: none; background: #fff; }
  .topo.busca-aberta .busca input { color: var(--texto); }
  .topo-usuario-txt { display: none; }
  .topo-usuario { gap: 2px; }
  .avatar { width: 32px; height: 32px; font-size: 12px; }
  .lateral {
    position: fixed; top: 0; bottom: 0; left: 0; width: 284px; transform: translateX(-102%); transition: transform .22s ease;
    z-index: 80; box-shadow: var(--sombra-alta); padding-top: 22px;
  }
  .lateral.aberta { transform: none; }
  .lateral-fundo { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(8, 30, 36, .45); }
  .principal { padding: 0 12px 110px; }
  .barra { padding: 12px 0 10px; gap: 8px; }
  .trilha a, .trilha span.atual, .trilha .busca-tit { font-size: 17px; max-width: 170px; padding: 4px 6px; }
  .barra-acoes { width: 100%; justify-content: flex-end; }
  .ordem { margin-right: auto; }
  .linha, .linha.lixeira-linha, .linha.busca-linha { grid-template-columns: 40px minmax(0, 1fr) 40px; min-height: 62px; }
  .linha .col { display: none; }
  .linha.cab { display: none; }
  .tabela .linha:nth-child(2) { border-top: 0; }
  .nome-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grade-pastas { grid-template-columns: minmax(0, 1fr); }
  .cartao .chk { opacity: 1; }
  .cartao-pasta .chk { display: grid; }
  .cartao-pasta .nome-btn { padding-left: 4px; }
  .selecao { top: 58px; border-radius: 14px; }
  .selecao .btn span { display: none; }
  .selecao .btn { padding: 8px 12px; }
  .soltar { inset: var(--topo) 0 0 0; }
  .fab {
    display: grid; place-items: center; position: fixed; right: 18px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 18px;
    border: 0; background: var(--t600); color: #fff; font-size: 22px; box-shadow: 0 10px 26px rgba(36, 119, 128, .45); cursor: pointer;
  }
  .envios { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 50vh; }
  .ativ-linha { grid-template-columns: 38px minmax(0, 1fr); padding: 12px; }
  .ativ-quando { grid-column: 2; text-align: left; margin-top: -6px; }
  .filtros { width: 100%; }
  .campo-filtro { flex: 1; min-width: 0; }
  .campo-filtro select { width: 100%; max-width: none; }
  .previa-corpo { padding: 6px 6px 70px; }
  .previa-nav { top: auto; bottom: 14px; transform: none; }
  .previa-ant { left: calc(50% - 60px); }
  .previa-prox { right: calc(50% - 60px); }
  .entrar-cartao { padding: 28px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
