/* Sections "files" (upload + recent jobs) and "projects" (all translated documents). */

/* ---------- files ---------- */
.files-card { padding: 18px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 190px; padding: 24px; border: 2px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2);
  cursor: pointer; transition: border-color .15s, background .15s; outline: none;
}
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.drop-icon svg { width: 26px; height: 26px; }
.drop-title { font-size: 17px; font-weight: 650; }
.drop-title u { color: var(--accent); text-decoration: none; }
.drop-sub { color: var(--text-2); font-size: 14px; }
.drop-limit { color: var(--muted); font-size: 13px; }
.file-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.chip-icon, .job-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chip-icon svg, .job-icon svg { width: 22px; height: 22px; }
.chip-meta { flex: 1; min-width: 0; }
.chip-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-meta span { font-size: 13px; color: var(--text-2); }
.files-opts { display: grid; grid-template-columns: 1fr auto 1fr 1fr 1fr; gap: 12px; align-items: end; margin-top: 16px; }
.fo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fo-label { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fo.locked { cursor: pointer; }
.fo.locked select { pointer-events: none; background: var(--surface-2); color: var(--muted); }
.files-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.files-err { color: var(--danger); font-size: 14px; }
.jobs { padding: 4px 0; }
.job { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.job + .job { border-top: 1px solid var(--border); }
.job-meta { flex: 1; min-width: 0; }
.job-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta span { font-size: 13px; color: var(--text-2); }
.job-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.job-status.working { color: var(--text-2); }
.job-status.error { color: var(--danger); max-width: 280px; }
.job-status-wrap { flex: none; }
.job-del { flex: none; }

.files-all { font-size: 14px; font-weight: 600; }

/* ---------- projects ---------- */
.pj-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pj-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-chip {
  height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.pj-chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.pj-chip:hover { border-color: var(--text-2); color: var(--text); }
.pj-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pj-chip.on span { color: var(--accent); }
.pj-count { font-size: 14px; color: var(--text-2); margin-bottom: 10px; min-height: 21px; }

@media (max-width: 1100px) {
  .files-opts { grid-template-columns: 1fr auto 1fr; }
  .fo-tone, .fo-gloss { grid-column: span 1; }
}
@media (max-width: 640px) {
  .files-opts { grid-template-columns: 1fr; }
  .files-opts .fo-arrow { display: none; }
  .files-actions { flex-direction: column-reverse; align-items: stretch; }
  .job { flex-wrap: wrap; }
  .job-status-wrap { order: 3; width: 100%; padding-left: 54px; }
  .pj-tools .search-box { width: 100%; }
}
