/* =================================================================== WMSCloud Files */
.brand img { width: 40px; height: 32px; }
.espaco { padding: 10px 12px; font-size: 12px; color: var(--muted); }
.espaco .bar { margin-top: 6px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.migalhas { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 15px; min-width: 0; }
.migalhas a { color: var(--muted); padding: 3px 7px; border-radius: 7px; }
.migalhas a:hover { background: var(--surface2); color: var(--text); }
.migalhas a:last-child { color: var(--text); font-weight: 600; }
.migalhas .sep { color: var(--muted); opacity: .5; }

.barra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.barra .busca { flex: 1; min-width: 180px; max-width: 340px; margin-left: auto; }
.selbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); margin-bottom: 12px; }
.selbar b { margin-right: auto; }

table.arq td { padding-top: 7px; padding-bottom: 7px; }
table.arq td.nome { width: 100%; max-width: 0; }
table.arq .nm { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; color: var(--text); }
table.arq .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.arq .nm:hover span { text-decoration: underline; }
table.arq tr.sel td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
table.arq td.acoes { white-space: nowrap; text-align: right; }
table.arq td.acoes button { opacity: .55; }
table.arq tr:hover td.acoes button { opacity: 1; }
.fi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.fi svg { width: 17px; height: 17px; }
.fi.pasta { background: linear-gradient(135deg, #f5b84a, #e4932b); }
.fi.img { background: linear-gradient(135deg, #3ecf8e, #1f9e68); }
.fi.pdf { background: linear-gradient(135deg, #f2667a, #c43b50); }
.fi.vid { background: linear-gradient(135deg, #b07cff, #7a4fe0); }
.fi.aud { background: linear-gradient(135deg, #f78fb3, #d4588a); }
.fi.zip { background: linear-gradient(135deg, #9aa3b5, #6c7486); }
.fi.doc { background: linear-gradient(135deg, #4f8bff, #2d5fd4); }
.fi.xls { background: linear-gradient(135deg, #2fb36d, #1c7f4b); }
.fi.txt, .fi.out { background: linear-gradient(135deg, #5b6478, #3c4354); }

.arrastar { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--accent) 22%, rgba(0,0,0,.55)); display: none; align-items: center; justify-content: center; pointer-events: none; }
.arrastar.on { display: flex; }
.arrastar div { border: 3px dashed #fff; border-radius: 20px; padding: 48px 60px; color: #fff; font-size: 20px; font-weight: 600; text-align: center; }

/* fila de envios */
.fila { position: fixed; right: 16px; bottom: 16px; z-index: 55; width: min(420px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.fila header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 600; }
.fila header span { margin-right: auto; }
.fila .itens { max-height: 260px; overflow: auto; }
.fila .it { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.fila .it:last-child { border-bottom: 0; }
.fila .it .l1 { display: flex; gap: 8px; }
.fila .it .l1 span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila .it .bar { margin-top: 5px; height: 4px; }
.fila .it.ok .bar > i { background: var(--ok); }
.fila .it.err { color: var(--bad); }
.fila .it.err .bar > i { background: var(--bad); }
.fila.mini .itens { display: none; }

/* pré-visualização */
.ver { position: fixed; inset: 0; z-index: 70; background: rgba(5, 7, 12, .92); display: flex; flex-direction: column; }
.ver header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; }
.ver header b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver .palco { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px 12px; }
.ver img, .ver video { max-width: 100%; max-height: 100%; border-radius: 8px; }
.ver iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
.ver audio { width: min(600px, 100%); }
.ver .nav-l, .ver .nav-r { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 44px; height: 64px; border-radius: 10px; }
.ver .nav-l { left: 10px; } .ver .nav-r { right: 10px; }

/* escolher pasta (mover/copiar) */
.pastas { border: 1px solid var(--border); border-radius: 10px; max-height: 300px; overflow: auto; }
.pastas div { padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.pastas div:hover { background: var(--surface2); }
.pastas div svg { width: 16px; height: 16px; color: #f5b84a; }

.linkbox { display: flex; gap: 6px; }
.linkbox input { flex: 1; font-family: ui-monospace, monospace; font-size: 12.5px; }
.mob-only { display: none; }
@media (max-width: 820px) {
  .mob-only { display: inline-flex; }
  table.arq .col-tam, table.arq .col-mod { display: none; }
  .barra .busca { max-width: none; margin-left: 0; flex-basis: 100%; }
}

/* ---------- página pública do link ---------- */
body.pub { min-height: 100vh; }
.pub-wrap { max-width: 860px; margin: 0 auto; padding: 28px 16px 60px; }
.pub-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pub-top img { width: 52px; }
.pub-top .t b { display: block; font-size: 18px; }
.pub-top .t small { color: var(--muted); }
.pub-card { text-align: center; padding: 34px 20px; }
.pub-card .fi { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; font-size: 15px; }
.pub-card .fi svg { width: 30px; height: 30px; }
.pub-card h1 { font-size: 20px; word-break: break-word; }
.pub-card .acoes { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pub-senha { max-width: 340px; margin: 0 auto; display: grid; gap: 10px; }
.pub-drop { border: 2px dashed var(--border); border-radius: 16px; padding: 40px 16px; text-align: center; cursor: pointer; color: var(--muted); transition: .15s; }
.pub-drop:hover, .pub-drop.over { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pub-drop svg { width: 40px; height: 40px; margin-bottom: 8px; }
.pub-drop b { color: var(--text); font-size: 16px; display: block; margin-bottom: 4px; }
.pub-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }
.nav a.mob-only { display: none; }
@media (max-width: 820px) { .nav a.mob-only { display: flex; } }
td.nowrap > svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
