/* Owner: P2 (Panel core and security). File manager (#/siti/:site/file); tokens from tokens.css. */
.page-files .files-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin-block: var(--space-2); }
.page-files .files-sep { color: var(--muted); }
.page-files .files-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.page-files .files-ro { color: var(--muted); font-size: var(--fs-sm); }
.page-files .files-status:empty { display: none; }
.page-files .files-scroll { overflow-x: auto; }
.page-files .files-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.page-files .files-table th, .page-files .files-table td { text-align: left; vertical-align: middle; padding: var(--space-2); border-bottom: 1px solid var(--line); }
.page-files .files-table th { color: var(--muted); font-weight: var(--fw-bold); white-space: nowrap; }
.page-files .files-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-files .files-acts { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.page-files .files-name { font-family: var(--font-mono); font-size: var(--fs-sm); overflow-wrap: anywhere; text-align: left; }
.page-files .files-dir { font-weight: var(--fw-bold); }
.page-files .btn-link { background: none; border: 0; padding: 0; color: var(--interactive); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.page-files .files-danger { color: var(--danger); }
.page-files .files-path { font-family: var(--font-mono); font-size: var(--fs-xs); overflow-wrap: anywhere; max-width: 32rem; }
.page-files .files-empty { color: var(--muted); }
.page-files .files-editor-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.page-files .files-editor-path { font-family: var(--font-mono); font-size: var(--fs-sm); overflow-wrap: anywhere; flex: 1 1 16rem; }
.page-files .files-editor-meta { color: var(--muted); font-size: var(--fs-xs); }
.page-files .files-dirty { color: var(--warn); font-size: var(--fs-sm); }
.page-files .files-editor { width: 100%; min-height: 60vh; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; tab-size: 4;
  padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; resize: vertical; white-space: pre; }
@media (max-width: 640px) {
  .page-files .files-table th:nth-child(3), .page-files .files-table td:nth-child(3) { display: none; }
  .page-files .files-editor { min-height: 50vh; font-size: 12px; }
}
