/* Aba Explorar (2026-10-05): o Explorador do Windows da VPS. Cores dos tokens de app.css (os dois temas); as cores dos tipos
   de arquivo moram aqui (claro e escuro) e sempre andam com o rótulo do tipo. A lista é virtual: as linhas são posicionadas
   por transform (explorar.js), com altura fixa (30 px; 44 no toque; 52 no compacto; 128 na grade de ícones). */

:root {
  --ex-pasta: #e5a13a;
  --ex-arquivo: #a3a198;
  --ex-imagem: #1b9e72;
  --ex-video: #7357e8;
  --ex-audio: #d4568f;
  --ex-pdf: #d03b3b;
  --ex-codigo: #2a78d6;
  --ex-texto: #6f6d68;
  --ex-compactado: #a86a24;
  --ex-planilha: #13894f;
  --ex-documento: #2b5aa8;
  --ex-apresentacao: #d0582b;
  --ex-executavel: #3d3c39;
  --ex-chave: #c48a00;
  --ex-fonte: #4a3aa7;
  --ex-banco: #0e7d7d;
  --ex-especial: #8a8984;
  --ex-quebrado: #b42828;
  --ex-linha: 30px;
}
:root[data-tema="escuro"] {
  --ex-pasta: #d9962d;
  --ex-arquivo: #8a8882;
  --ex-imagem: #199e70;
  --ex-video: #8f7bf0;
  --ex-audio: #d55181;
  --ex-pdf: #e05555;
  --ex-codigo: #3987e5;
  --ex-texto: #9d9b93;
  --ex-compactado: #c27e33;
  --ex-planilha: #1d9e5e;
  --ex-documento: #4a7fd1;
  --ex-apresentacao: #e06a3c;
  --ex-executavel: #6b6a65;
  --ex-chave: #c98500;
  --ex-fonte: #9085e9;
  --ex-banco: #1aa3a3;
  --ex-especial: #77756f;
  --ex-quebrado: #e66767;
}

/* O main sem margem e sem rolagem própria: a aba ocupa a altura toda e rola por dentro (a lista, a árvore). */
main.com-explorar { grid-row: 4; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
/* No main em flex o margin: 0 auto de .sub-abas (app.css) as centraliza: margem fixa, no lugar da Fila (F2269-01). */
main.com-explorar > .sub-abas { margin: var(--respiro) var(--respiro) 12px; }
.vista-explorar { max-width: none; width: 100%; flex: 1; min-height: 0; display: flex; }
.ex-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ex {
  position: relative; flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  background: var(--fundo); outline: none;
}
.ex-ic { width: 18px; height: 18px; flex: none; color: currentColor; }
.ex-ic-mini { width: 14px; height: 14px; opacity: 0.7; }
.ex-ic-tipo { width: 20px; height: 20px; flex: none; }
.ex-espaco { flex: 1; }
.ex-tipo-pasta { color: var(--ex-pasta); }
.ex-tipo-arquivo { color: var(--ex-arquivo); }
.ex-tipo-imagem { color: var(--ex-imagem); }
.ex-tipo-video { color: var(--ex-video); }
.ex-tipo-audio { color: var(--ex-audio); }
.ex-tipo-pdf { color: var(--ex-pdf); }
.ex-tipo-codigo { color: var(--ex-codigo); }
.ex-tipo-texto { color: var(--ex-texto); }
.ex-tipo-compactado { color: var(--ex-compactado); }
.ex-tipo-planilha { color: var(--ex-planilha); }
.ex-tipo-documento { color: var(--ex-documento); }
.ex-tipo-apresentacao { color: var(--ex-apresentacao); }
.ex-tipo-executavel { color: var(--ex-executavel); }
.ex-tipo-chave { color: var(--ex-chave); }
.ex-tipo-fonte { color: var(--ex-fonte); }
.ex-tipo-banco { color: var(--ex-banco); }
.ex-tipo-especial { color: var(--ex-especial); }
.ex-tipo-quebrado { color: var(--ex-quebrado); }

/* ── Botões da barra ─────────────────────────────────────────────────────────────────────── */
.ex-bt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 7px;
  border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--tinta); cursor: pointer; font-weight: 550;
  white-space: nowrap; flex: none;
}
.ex-bt:hover:not(:disabled) { background: var(--linha-hover); }
.ex-bt:active:not(:disabled) { background: var(--marca-suave); }
.ex-bt:disabled { opacity: 0.38; cursor: default; }
.ex-bt[aria-pressed="true"] { background: var(--marca-suave); border-color: var(--marca); }
.ex-bt-texto { padding: 0 10px 0 8px; }
.ex-bt-perigo { color: var(--critico-tinta); }
.ex-bt-primario { background: var(--marca); color: var(--marca-tinta); }
.ex-bt-primario:hover:not(:disabled) { background: var(--marca); filter: brightness(1.08); }
.ex-bt .contagem { margin-left: -2px; }
.ex-sep { width: 1px; height: 22px; background: var(--borda); margin: 0 4px; flex: none; }

/* ── A barra de cima: navegação, endereço, pesquisa ─────────────────────────────────────── */
.ex-barra {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--cartao); border-bottom: 1px solid var(--borda); min-width: 0;
}
.ex-nav { display: flex; gap: 2px; flex: none; }
.ex-endereco {
  flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; border: 1px solid var(--borda-forte); border-radius: 8px;
  background: var(--fundo); cursor: text; overflow: hidden;
}
.ex-endereco:hover { border-color: var(--marca); }
.ex-migalhas { display: flex; align-items: center; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 0 4px; flex: 1; height: 100%; }
.ex-migalhas::-webkit-scrollbar { display: none; }
.ex-migalha {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent;
  color: var(--tinta); cursor: pointer; white-space: nowrap; flex: none; font-size: 13.5px;
}
.ex-migalha:hover { background: var(--linha-hover); }
.ex-migalha.atual { font-weight: 650; }
.ex-migalha.alvo { background: var(--marca-suave); outline: 2px dashed var(--marca); }
.ex-migalha .ex-ic { width: 16px; height: 16px; color: var(--sutil); }
.ex-migalha-sep { display: inline-flex; color: var(--apagado); flex: none; }
.ex-migalha-sep .ex-ic { width: 14px; height: 14px; }
.ex-endereco-campo {
  flex: 1; height: 100%; border: 0; outline: none; padding: 0 10px; background: transparent; font-family: var(--mono); font-size: 13px; min-width: 0;
}
.ex-endereco:focus-within { border-color: var(--marca); box-shadow: 0 0 0 3px var(--marca-suave); }
.ex-busca { position: relative; flex: 0 1 280px; min-width: 150px; height: 34px; }
.ex-busca-ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--apagado); pointer-events: none; }
.ex-busca-campo {
  width: 100%; height: 100%; padding: 0 30px 0 32px; border: 1px solid var(--borda-forte); border-radius: 8px; background: var(--fundo);
}
.ex-busca-campo:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 3px var(--marca-suave); }
.ex-busca-campo::-webkit-search-cancel-button { display: none; }
.ex-busca-limpar { position: absolute; right: 2px; top: 1px; min-width: 30px; height: 30px; }
.ex-busca-limpar .ex-ic { width: 14px; height: 14px; }

/* ── Os comandos ──────────────────────────────────────────────────────────────────────────── */
.ex-comandos {
  display: flex; align-items: center; gap: 2px; padding: 4px 8px; background: var(--cartao); border-bottom: 1px solid var(--borda);
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.ex-comandos::-webkit-scrollbar { display: none; }

/* ── O corpo: navegação | lista | detalhes ───────────────────────────────────────────────── */
.ex-corpo { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 0; }
.ex-com-painel .ex-corpo { grid-template-columns: 236px minmax(0, 1fr) 300px; }
.ex-lateral {
  min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px 6px 16px; background: var(--cartao); border-right: 1px solid var(--borda);
}
.ex-lateral-veu { position: absolute; inset: 0; background: rgba(10, 10, 14, 0.32); z-index: 25; }
.ex-grupo { margin: 12px 8px 4px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; color: var(--apagado); }
.ex-grupo:first-child { margin-top: 4px; }
.ex-no {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; padding: 0 8px; border: 0; border-radius: 6px;
  background: transparent; color: var(--tinta); cursor: pointer; text-align: left; font-size: 13.5px;
}
.ex-no .ex-ic { width: 17px; height: 17px; color: var(--sutil); }
.ex-no:hover { background: var(--linha-hover); }
.ex-no.atual { background: var(--marca-suave); font-weight: 600; }
.ex-no.alvo, .ex-ramo-nome.alvo { outline: 2px dashed var(--marca); background: var(--marca-suave); }
.ex-no-rotulo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-no-n { font-size: 11px; color: var(--sutil); background: var(--cartao-2); border: 1px solid var(--borda); border-radius: 99px; padding: 0 6px; }
.ex-arvore { display: grid; }
.ex-ramo { display: flex; align-items: center; height: 28px; padding-left: calc(var(--nivel, 0) * 14px); border-radius: 6px; min-width: 0; }
.ex-ramo:hover { background: var(--linha-hover); }
.ex-ramo.atual { background: var(--marca-suave); }
.ex-ramo.atual .ex-ramo-nome { font-weight: 600; }
.ex-ramo-seta {
  width: 20px; height: 24px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: var(--apagado); cursor: pointer; padding: 0;
}
.ex-ramo-seta .ex-ic { width: 13px; height: 13px; transition: transform 0.12s ease-out; }
.ex-ramo-seta.aberto .ex-ic { transform: rotate(90deg); }
.ex-ramo-seta.vazia { visibility: hidden; }
.ex-ramo-nome {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 6px 0 2px; border: 0; border-radius: 5px;
  background: transparent; color: var(--tinta); cursor: pointer; text-align: left; font-size: 13px;
}
.ex-ramo-nome span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-ramo-nome .ex-ic, .ex-ramo-nome .ex-ic-tipo { width: 17px; height: 17px; }
.ex-ramo-nome .ex-ic { color: var(--sutil); }
.ex-ramo-mais {
  display: block; width: 100%; height: 26px; padding: 0 8px 0 calc(var(--nivel, 0) * 14px + 26px); border: 0; border-radius: 6px; background: transparent;
  color: var(--marca-texto); font-size: 12.5px; text-align: left; cursor: pointer;
}
.ex-ramo-mais:hover { background: var(--linha-hover); }

.ex-principal { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--fundo); }
.ex-carga { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 5; overflow: hidden; background: var(--marca-suave); }
.ex-carga::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--marca); animation: ex-carga 0.9s ease-in-out infinite; }
@keyframes ex-carga { from { left: -30%; } to { left: 100%; } }
.ex-faixa { padding: 7px 14px; font-size: 12.5px; border-bottom: 1px solid var(--borda); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ex-faixa.info { background: var(--info-fundo); color: var(--info-tinta); }
.ex-faixa.erro { background: var(--critico-fundo); color: var(--critico-tinta); }

/* ── A lista ──────────────────────────────────────────────────────────────────────────────── */
.ex-lista { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; outline: none; overflow-anchor: none; contain: strict; }
.ex-lista:focus-visible { box-shadow: inset 0 0 0 2px var(--marca); }
.ex-cab {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: var(--ex-colunas); height: 32px; align-items: stretch;
  background: var(--fundo); border-bottom: 1px solid var(--borda); padding: 0 8px; min-width: 100%;
}
.ex-cab-c {
  position: relative; display: flex; align-items: center; gap: 4px; padding: 0 8px; font-size: 12.5px; font-weight: 600; color: var(--sutil);
  white-space: nowrap; overflow: hidden; user-select: none;
}
.ex-cab-c.ordenavel { cursor: pointer; }
.ex-cab-c.ordenavel:hover { color: var(--tinta); background: var(--linha-hover); }
.ex-cab-c[aria-sort="ascending"]::after { content: "▴"; color: var(--marca); }
.ex-cab-c[aria-sort="descending"]::after { content: "▾"; color: var(--marca); }
.ex-cab-c.ex-c-tamanho { justify-content: flex-end; }
.ex-cab-alca { position: absolute; left: -4px; top: 6px; bottom: 6px; width: 8px; cursor: col-resize; z-index: 1; border-left: 1px solid var(--borda); margin-left: 3px; touch-action: none; }
.ex-mundo { position: relative; width: 100%; }
.ex-item {
  position: absolute; left: 0; top: 0; right: 0; height: var(--ex-linha); display: grid; grid-template-columns: var(--ex-colunas);
  align-items: center; padding: 0 8px; margin: 0 4px; border-radius: 6px; cursor: default; user-select: none; will-change: transform;
  color: var(--tinta); font-size: 13.5px; contain: layout style;
}
.ex-item:hover { background: var(--linha-hover); }
.ex-item.sel { background: var(--marca-suave); }
.ex-item.sel:hover { background: color-mix(in srgb, var(--marca) 18%, transparent); }
.ex-item.foco { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--marca) 55%, transparent); }
.ex-lista:not(:focus-within) .ex-item.foco:not(.sel) { box-shadow: none; }
.ex-item.alvo { background: var(--marca-suave); box-shadow: inset 0 0 0 2px var(--marca); }
.ex-item.recortado .ex-ic-tipo, .ex-item.recortado .ex-nome, .ex-item.recortado .ex-mini img { opacity: 0.45; }
.ex-item.oculto .ex-ic-tipo, .ex-item.oculto .ex-mini img { opacity: 0.6; }
.ex-item.bloqueado .ex-nome { color: var(--sutil); }
.ex-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; color: var(--sutil); font-variant-numeric: tabular-nums; }
.ex-c-nome { display: flex; align-items: center; gap: 9px; color: var(--tinta); padding-left: 4px; }
.ex-c-tamanho { text-align: right; }
.ex-calculado { color: var(--tinta); font-weight: 550; }
.ex-nome-e-sub { min-width: 0; display: flex; flex-direction: column; }
.ex-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-sub { display: none; font-size: 12px; color: var(--sutil); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-marca {
  display: none; width: 18px; height: 18px; flex: none; place-items: center; border: 1.5px solid var(--borda-forte); border-radius: 5px;
  background: var(--cartao); color: transparent;
}
.ex-marca .ex-ic { width: 13px; height: 13px; }
.ex-selecionando .ex-marca { display: grid; }
.ex-item.sel .ex-marca { background: var(--marca); border-color: var(--marca); color: var(--marca-tinta); }
.ex-renomear {
  flex: 1; min-width: 60px; height: 24px; padding: 0 5px; border: 1px solid var(--marca); border-radius: 4px; background: var(--cartao);
  color: var(--tinta); font: inherit; outline: none; box-shadow: 0 0 0 3px var(--marca-suave); user-select: text;
}
.ex-item.renomeando { background: var(--cartao); }
.ex-laco { position: absolute; z-index: 3; border: 1px solid var(--marca); background: color-mix(in srgb, var(--marca) 14%, transparent); pointer-events: none; border-radius: 2px; }
.ex-vazio { position: absolute; left: 0; right: 0; top: 96px; display: grid; justify-items: center; gap: 12px; padding: 0 24px; text-align: center; color: var(--sutil); pointer-events: none; }
.ex-vazio .botao { pointer-events: auto; }
.ex-vazio-texto { max-width: 520px; }
.ex-vazio-dica { font-size: 12.5px; color: var(--apagado); }

/* Compacto (lista estreita): o nome e, embaixo, a data e o tamanho; o cabeçalho sai. */
.ex-compacto .ex-cab { display: none; }
.ex-compacto .ex-item { --ex-colunas: minmax(0, 1fr); height: 52px; }
.ex-compacto .ex-item > .ex-c:not(.ex-c-nome) { display: none; }
.ex-compacto .ex-sub { display: block; }
.ex-compacto .ex-ic-tipo { width: 30px; height: 30px; }
.ex-toque:not(.ex-compacto) .ex-item { height: 44px; }

/* Ícones (grade): a miniatura (ou o ícone grande) e o nome em até duas linhas. */
.ex-vista-icones .ex-cab { display: none; }
.ex-bloco {
  right: auto; height: 120px; margin: 0; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 6px; text-align: center;
}
.ex-bloco .ex-mini { width: 76px; height: 72px; display: grid; place-items: center; flex: none; }
.ex-bloco .ex-mini .ex-ic-tipo { width: 64px; height: 64px; }
.ex-bloco .ex-mini img { max-width: 76px; max-height: 72px; object-fit: contain; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22); background: repeating-conic-gradient(#e7e6e1 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.ex-bloco .ex-nome { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; font-size: 12.5px; word-break: break-word; max-width: 100%; }
.ex-bloco .ex-marca { position: absolute; top: 6px; left: 6px; }

/* ── O painel de detalhes ────────────────────────────────────────────────────────────────── */
.ex-detalhes { display: none; min-height: 0; overflow: auto; padding: 16px; background: var(--cartao); border-left: 1px solid var(--borda); }
.ex-com-painel .ex-detalhes { display: block; }
.ex-detalhes h3 { margin: 10px 0 12px; font-size: 15px; font-weight: 650; word-break: break-word; text-align: center; }
.ex-det-ic { display: grid; place-items: center; min-height: 110px; }
.ex-det-grande { width: 96px; height: 96px; }
.ex-det-img { max-width: 100%; max-height: 220px; border-radius: 6px; object-fit: contain; box-shadow: var(--sombra); background: repeating-conic-gradient(#e7e6e1 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.ex-det-lista { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 12.5px; }
.ex-det-lista dt { color: var(--sutil); }
.ex-det-lista dd { margin: 0; word-break: break-word; }
.ex-det-texto {
  margin: 14px 0 0; padding: 8px 10px; max-height: 260px; overflow: auto; font: 11.5px/1.45 var(--mono); background: var(--cartao-2); border: 1px solid var(--borda);
  border-radius: 8px; white-space: pre; color: var(--sutil);
}
.ex-det-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ── Status e a barra da seleção (celular) ───────────────────────────────────────────────── */
.ex-status {
  display: flex; align-items: center; gap: 16px; min-height: 28px; padding: 3px 12px; font-size: 12px; color: var(--sutil); background: var(--cartao);
  border-top: 1px solid var(--borda); white-space: nowrap; overflow: hidden;
}
.ex-status-sel { color: var(--tinta); font-weight: 550; }
.ex-status-medidor { width: 90px; margin-top: 0; height: 6px; flex: none; }
.ex-barra-sel {
  display: flex; align-items: center; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--cartao);
  border-top: 1px solid var(--borda); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); overflow-x: auto;
}
.ex-barra-sel .ex-bt { min-width: 42px; height: 42px; }
.ex-barra-sel .ex-ic { width: 21px; height: 21px; }
.ex-barra-sel-n { font-weight: 650; padding: 0 6px; }

/* ── O menu ──────────────────────────────────────────────────────────────────────────────── */
.ex-menu {
  position: fixed; z-index: 60; min-width: 230px; max-width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto;
  padding: 4px; background: var(--cartao); border: 1px solid var(--borda); border-radius: 10px; box-shadow: var(--sombra-forte);
}
.ex-menu-item {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; min-height: 32px;
  padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--tinta); cursor: pointer; text-align: left; font-size: 13.5px;
}
.ex-menu-item .ex-ic { width: 17px; height: 17px; color: var(--sutil); }
.ex-menu-item:hover:not(:disabled), .ex-menu-item:focus-visible { background: var(--linha-hover); outline: none; }
.ex-menu-item:focus-visible { box-shadow: inset 0 0 0 1px var(--marca); }
.ex-menu-item:disabled { opacity: 0.42; cursor: default; }
.ex-menu-item.perigo { color: var(--critico-tinta); }
.ex-menu-item.perigo .ex-ic { color: var(--critico-tinta); }
.ex-menu-item[aria-checked="true"] .ex-ic { color: var(--marca); }
.ex-menu-rotulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-menu-item kbd { font: 11px var(--mono); color: var(--apagado); }
.ex-menu-sep { height: 1px; margin: 4px 6px; background: var(--borda); }

/* ── Arrastar e soltar ───────────────────────────────────────────────────────────────────── */
.ex-soltar {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 15; padding: 8px 16px; border-radius: 99px;
  background: var(--marca); color: var(--marca-tinta); font-weight: 600; box-shadow: var(--sombra-forte); pointer-events: none; white-space: nowrap;
}
.ex-fantasma {
  position: fixed; top: -200px; left: 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--cartao); color: var(--tinta);
  border: 1px solid var(--borda); border-radius: 8px; box-shadow: var(--sombra); font-size: 13px; font-weight: 600;
}

/* ── Transferências ──────────────────────────────────────────────────────────────────────── */
/* No canto esquerdo da lista: o direito é dos avisos do painel (que no celular descem do topo). */
.ex-tr {
  position: absolute; left: 250px; bottom: 40px; z-index: 20; width: min(400px, calc(100% - 264px)); max-height: min(56%, 460px); display: flex;
  flex-direction: column; background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; box-shadow: var(--sombra-forte); overflow: hidden;
}
.ex-tr.recolhido { max-height: none; }
.ex-tr.recolhido .ex-tr-lista { display: none; }
.ex-tr-topo { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--borda); cursor: default; }
.ex-tr-titulo { font-size: 13.5px; }
.ex-tr-barra { height: 3px; background: var(--grade); }
.ex-tr-barra > span { display: block; height: 100%; background: var(--marca); transition: width 0.25s ease-out; }
.ex-tr-lista { list-style: none; margin: 0; padding: 4px 0; overflow: auto; overscroll-behavior: contain; }
.ex-tr-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; font-size: 12.5px; }
.ex-tr-item + .ex-tr-item { border-top: 1px solid var(--grade); }
.ex-tr-ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ex-tr-ic .ex-ic, .ex-tr-ic .ex-ic-tipo { width: 20px; height: 20px; }
.ex-tr-item.ok .ex-tr-ic { color: var(--bom-tinta); }
.ex-tr-item.erro .ex-tr-info { color: var(--critico-tinta); }
.ex-tr-item.cancelado { opacity: 0.6; }
.ex-tr-texto { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ex-tr-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.ex-tr-info { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sutil); font-variant-numeric: tabular-nums; }
.ex-tr-prog { display: block; height: 4px; border-radius: 99px; background: var(--grade); overflow: hidden; margin-top: 2px; }
.ex-tr-prog > span { display: block; height: 100%; background: var(--marca); border-radius: 99px; transition: width 0.2s ease-out; }
.ex-tr-prog.indefinido > span { width: 30%; animation: ex-carga 1.1s ease-in-out infinite; position: relative; }

/* ── Diálogos: propriedades, conflito, escolher a pasta ──────────────────────────────────── */
.ex-propriedades { width: min(600px, calc(100% - 24px)); }
.ex-propriedades form { max-height: calc(100dvh - 48px); overflow: auto; }
.ex-prop-topo { display: flex; align-items: center; gap: 14px; }
.ex-prop-topo .ex-det-grande { width: 56px; height: 56px; }
.ex-prop-topo b { font-size: 15px; word-break: break-word; }
.ex-prop-topo .sutil { font-size: 12px; word-break: break-all; }
.ex-prop-lista { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 14px; margin: 4px 0 0; font-size: 13px; }
.ex-prop-lista dt { color: var(--sutil); }
.ex-prop-lista dd { margin: 0; word-break: break-word; }
.ex-perm { border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px 12px; margin: 0; }
.ex-perm legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.ex-perm-grade { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 72px); gap: 6px 4px; align-items: center; font-size: 12.5px; }
.ex-perm-grade b { font-weight: 600; color: var(--sutil); text-align: center; }
.ex-perm-cb { display: grid; place-items: center; }
.ex-perm-cb input { width: 16px; height: 16px; accent-color: var(--marca); }
.ex-perm-pe { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.ex-perm-rotulo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sutil); }
.dialogo .ex-perm-octal { width: 76px; font-size: 14px; }
.ex-conflitos { margin: 0; padding-left: 18px; max-height: 200px; overflow: auto; font-size: 13px; display: grid; gap: 4px; }
.ex-dialogo-largo { width: min(640px, calc(100% - 24px)); }
.ex-previa-lista { max-height: min(50vh, 360px); overflow-y: auto; overscroll-behavior: contain; } /* F2219-08: a prévia do «Enviar (do computador)»; muitos arquivos rolam dentro do diálogo */
.ex-escolher-lista { height: 300px; overflow: auto; border: 1px solid var(--borda); border-radius: 8px; padding: 4px; display: grid; align-content: start; background: var(--fundo); }
.ex-escolher-item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--tinta); cursor: pointer; text-align: left; }
.ex-escolher-item:hover { background: var(--linha-hover); }

/* ── O visor (escuro sempre, como o Fotos: a imagem aparece melhor) ──────────────────────── */
.ex-visor {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #121211; color: #ecebe7; outline: none; overflow: hidden;
  --cv-texto: #f0efec; --cv-texto-2: #c3c2b7; --cv-borda: #2c2c2a; --cv-borda-2: #3a3a37; --cv-cinza: #232322; --cv-codigo: #f2c879; --cv-botao: #1b1b1a; --cv-azul: #86b6ef;
}
.ex-visor::backdrop { background: rgba(0, 0, 0, 0.7); }
.ex-visor-topo {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px;
  background: #1b1b1a; border-bottom: 1px solid #2c2c2a; z-index: 3;
}
.ex-visor .ex-bt { color: #ecebe7; }
.ex-visor .ex-bt:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); }
.ex-visor .ex-bt-primario { background: #3987e5; color: #fff; }
.ex-visor-titulo { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ex-visor-ic .ex-ic-tipo { width: 26px; height: 26px; }
.ex-visor-nomes { min-width: 0; display: grid; }
.ex-visor-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.ex-visor-sub { font-size: 12px; color: #a9a79f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-visor-acoes { display: flex; align-items: center; gap: 2px; flex: none; overflow-x: auto; scrollbar-width: none; max-width: 60vw; }
.ex-zoom-n { min-width: 46px; text-align: center; font-size: 12px; color: #c3c2b7; font-variant-numeric: tabular-nums; }
.ex-visor-corpo { position: absolute; top: 54px; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ex-visor-seta {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(30, 30, 29, 0.7); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.ex-visor-seta .ex-ic { width: 24px; height: 24px; }
.ex-visor-seta.ant { left: 14px; }
.ex-visor-seta.prox { right: 14px; }
.ex-visor:hover .ex-visor-seta, .ex-visor-seta:focus-visible { opacity: 1; }
@media (hover: none) { .ex-visor-seta { opacity: 0.8; width: 38px; height: 38px; margin-top: -19px; } }
.ex-visor-aviso, .ex-visor-sem { color: #c3c2b7; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 24px; }
.ex-visor-sem .botoes { display: flex; gap: 8px; }
.ex-img-palco { position: absolute; inset: 0; touch-action: none; overflow: hidden; cursor: zoom-in; }
.ex-img-palco.zoomado { cursor: grab; }
.ex-img-palco.zoomado:active { cursor: grabbing; }
.ex-img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; user-select: none; -webkit-user-drag: none; image-rendering: auto; }
.ex-midia.ex-video { max-width: 100%; max-height: 100%; background: #000; }
.ex-midia.ex-audio { width: min(560px, calc(100% - 32px)); }
.ex-visor-corpo:has(.ex-audio) { flex-direction: column; gap: 28px; }
.ex-audio-ic { width: 140px; height: 140px; }
.ex-visor-pdf { background: #525659; }
.ex-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.ex-visor-texto { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--term-fundo); color: var(--term-tinta); }
.ex-visor-nota { padding: 8px 16px; font-size: 12.5px; color: #e8c887; background: #2c2312; border-bottom: 1px solid #3a2f17; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-texto-area { flex: 1; min-height: 0; overflow: auto; }
.ex-codigo { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 100%; font: 13px/1.55 var(--mono); }
.ex-linhas { margin: 0; padding: 12px 10px 24px 16px; text-align: right; color: #6f6d68; user-select: none; border-right: 1px solid var(--term-borda); background: #181817; }
.ex-texto { margin: 0; padding: 12px 18px 24px; white-space: pre; tab-size: 4; outline: none; color: var(--term-tinta); }
.quebra .ex-texto { white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-texto-area.editando { overflow: hidden; display: flex; }
.ex-texto-area.editando .ex-codigo { flex: 1; height: 100%; }
.ex-texto-area.editando .ex-linhas { overflow: hidden; }
.ex-editor {
  margin: 0; padding: 12px 18px 24px; border: 0; outline: none; resize: none; background: transparent; color: var(--term-tinta); font: inherit; tab-size: 4;
  width: 100%; height: 100%; white-space: pre; overflow: auto; caret-color: #86b6ef;
}
.ex-md { max-width: 880px; margin: 0 auto; padding: 28px 28px 48px; font-size: 15px; line-height: 1.6; color: var(--cv-texto); }
.ex-visor-hex { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; background: var(--term-fundo); }
.ex-hex { margin: 0; padding: 14px 18px; overflow: auto; flex: 1; font: 12.5px/1.6 var(--mono); color: var(--term-tinta); white-space: pre; }

/* ── Telas estreitas (celular) e toque ───────────────────────────────────────────────────── */
.ex-so-estreito { display: none; }
.ex-estreito .ex-so-estreito { display: inline-flex; }
.ex-estreito .ex-so-largo { display: none; }
.ex-estreito .ex-barra { flex-wrap: wrap; row-gap: 6px; padding: 6px 8px; }
.ex-estreito .ex-endereco { order: 2; flex: 1 1 calc(100% - 140px); }
.ex-estreito .ex-busca { order: 3; flex: 1 1 100%; }
.ex-estreito .ex-avancar, .ex-estreito .ex-nav .ex-bt:nth-child(3) { display: none; }
.ex-estreito .ex-corpo, .ex-estreito.ex-com-painel .ex-corpo { grid-template-columns: minmax(0, 1fr); }
.ex-estreito .ex-lateral {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 26; width: min(300px, 86%); transform: translateX(-102%); transition: transform 0.18s ease-out;
  box-shadow: var(--sombra-forte);
}
.ex-estreito.ex-lateral-aberta .ex-lateral { transform: none; }
.ex-estreito .ex-detalhes { display: none !important; }
.ex-estreito [aria-label="Painel de detalhes"] { display: none; }
.ex-estreito .ex-bt-texto span { display: none; }
.ex-estreito .ex-bt-texto { padding: 0 7px; }
.ex-estreito .ex-status-medidor { display: none; }
.ex-estreito .ex-tr { left: 8px; right: 8px; width: auto; bottom: 36px; }
.ex-medio .ex-comandos .ex-bt-texto:not(.ex-bt-perigo) span { display: none; }
.ex-medio .ex-comandos .ex-bt-texto { padding: 0 7px; }
.ex-toque .ex-no { height: 40px; }
.ex-toque .ex-ramo { height: 38px; }
.ex-toque .ex-menu-item { min-height: 42px; }
