/* ── File Manager — files.css ──────────────────────────────────────────────── */
/* Palette: navy bg, champagne gold accent, Space Grotesk / JetBrains Mono    */

.fm-shell {
  display: flex;
  height: calc(100vh - 64px); /* subtract nav height */
  overflow: hidden;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  background: var(--bg, #050b14);
  color: var(--text, #e2e8f0);
}

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.fm-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--surface, #0a1628);
  border-right: 1px solid rgba(200,184,143,0.12);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 1rem;
}

.fm-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.1rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #C8B88F);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(200,184,143,0.1);
}

.fm-sidebar-logo { color: var(--accent, #C8B88F); display: flex; }

.fm-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.1rem 0.3rem;
}

.fm-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.6rem;
  gap: 1px;
}

.fm-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.83rem;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.fm-nav-item:hover, .fm-nav-item.active {
  background: rgba(200,184,143,0.1);
  color: var(--text, #e2e8f0);
}

.fm-nav-item.active { color: var(--accent, #C8B88F); }

.fm-workspaces {
  display: flex;
  flex-direction: column;
  padding: 0.3rem 0.6rem;
  gap: 1px;
}

.fm-ws-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.fm-ws-item:hover, .fm-ws-item.active {
  background: rgba(200,184,143,0.1);
  color: var(--text, #e2e8f0);
}

.fm-ws-item.active { color: var(--accent, #C8B88F); font-weight: 500; }

.fm-ws-count {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(200,184,143,0.15);
  color: var(--accent, #C8B88F);
  border-radius: 9px;
  padding: 1px 6px;
  font-variant-numeric: tabular-nums;
}

.fm-ws-new-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: color 0.15s;
}

.fm-ws-new-btn:hover { color: var(--accent, #C8B88F); }

/* Folder tree */
.fm-folder-tree { padding: 0.3rem 0.6rem; }
.fm-tree-list { list-style: none; margin: 0; padding: 0; }
.fm-tree-item { padding: 1px 0; }

.fm-tree-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: background 0.15s;
}

.fm-tree-link:hover, .fm-tree-link.active {
  background: rgba(200,184,143,0.1);
  color: var(--accent, #C8B88F);
}

.fm-tree-list .fm-tree-list { padding-left: 1rem; }

/* Storage box */
.fm-storage-box {
  margin: auto 0.75rem 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(200,184,143,0.12);
  border-radius: 8px;
  background: rgba(200,184,143,0.04);
}

.fm-storage-label { font-size: 0.7rem; color: var(--text-muted, #64748b); margin-bottom: 0.15rem; }
.fm-storage-value { font-size: 1.05rem; font-weight: 600; color: var(--accent, #C8B88F); font-family: 'JetBrains Mono', monospace; }

/* ── Main area ──────────────────────────────────────────────────────────────── */
.fm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Toolbar */
.fm-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(200,184,143,0.1);
  background: var(--surface, #0a1628);
  flex-shrink: 0;
}

.fm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.fm-breadcrumb a {
  color: var(--text, #e2e8f0);
  text-decoration: none;
  font-weight: 500;
}
.fm-breadcrumb a:hover { color: var(--accent, #C8B88F); }
.fm-crumb-sep { opacity: 0.4; }

.fm-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Search */
.fm-search-form { display: flex; align-items: center; gap: 0; }
.fm-search-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,184,143,0.2);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--text, #e2e8f0);
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  width: 180px;
  outline: none;
  transition: border-color 0.15s;
}
.fm-search-input:focus { border-color: var(--accent, #C8B88F); }
.fm-search-btn {
  background: rgba(200,184,143,0.12);
  border: 1px solid rgba(200,184,143,0.2);
  border-radius: 0 6px 6px 0;
  color: var(--accent, #C8B88F);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.fm-search-btn:hover { background: rgba(200,184,143,0.22); }

/* View toggle */
.fm-view-toggle { display: flex; gap: 2px; }
.fm-view-btn {
  display: flex;
  align-items: center;
  padding: 0.38rem 0.5rem;
  border-radius: 5px;
  color: var(--text-muted, #64748b);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.fm-view-btn:hover, .fm-view-btn.active {
  background: rgba(200,184,143,0.12);
  color: var(--accent, #C8B88F);
}

/* Buttons */
.fm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.fm-btn-primary {
  background: var(--accent, #C8B88F);
  color: #050b14;
}
.fm-btn-primary:hover { background: #d6c9a8; }
.fm-btn-primary:disabled { opacity: 0.4; cursor: default; }

.fm-btn-ghost {
  background: rgba(200,184,143,0.1);
  color: var(--text, #e2e8f0);
  border: 1px solid rgba(200,184,143,0.2);
}
.fm-btn-ghost:hover { background: rgba(200,184,143,0.18); }

/* ── Folder grid ────────────────────────────────────────────────────────────── */
.fm-folder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem 1rem;
}

.fm-folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100px;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(200,184,143,0.1);
  background: rgba(200,184,143,0.04);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.fm-folder-card:hover {
  background: rgba(200,184,143,0.1);
  border-color: rgba(200,184,143,0.25);
}

.fm-folder-card-icon { color: var(--accent, #C8B88F); }

.fm-folder-card-name {
  font-size: 0.73rem;
  text-align: center;
  word-break: break-word;
  color: var(--text, #e2e8f0);
  line-height: 1.3;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fm-folder-card-actions {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  gap: 2px;
}
.fm-folder-card:hover .fm-folder-card-actions { display: flex; }
.fm-folder-card-actions button {
  background: rgba(10,22,40,0.85);
  border: none;
  border-radius: 4px;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 3px;
  display: flex;
  transition: color 0.1s;
}
.fm-folder-card-actions button:hover { color: var(--accent, #C8B88F); }

/* ── File grid ──────────────────────────────────────────────────────────────── */
.fm-main > .fm-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  align-content: start;
}

.fm-file-card {
  border: 1px solid rgba(200,184,143,0.12);
  border-radius: 10px;
  background: var(--surface-2, #0f1f35);
  overflow: hidden;
  cursor: default;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}

.fm-file-card:hover {
  border-color: rgba(200,184,143,0.3);
  transform: translateY(-1px);
}

.fm-file-card-thumb {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(200,184,143,0.06);
  overflow: hidden;
}

.fm-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-file-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 5px;
  letter-spacing: 0.05em;
}

/* Icon color per type */
.fm-icon-pdf .fm-file-icon { background: rgba(239,68,68,0.15); color: #f87171; }
.fm-icon-word .fm-file-icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
.fm-icon-excel .fm-file-icon { background: rgba(16,185,129,0.15); color: #34d399; }
.fm-icon-ppt .fm-file-icon { background: rgba(245,158,11,0.15); color: #fbbf24; }
.fm-icon-image .fm-file-icon { background: rgba(168,85,247,0.15); color: #c084fc; }
.fm-icon-zip .fm-file-icon { background: rgba(251,191,36,0.15); color: #fde047; }
.fm-icon-text .fm-file-icon { background: rgba(148,163,184,0.1); color: #94a3b8; }
.fm-icon-default .fm-file-icon { background: rgba(200,184,143,0.1); color: #C8B88F; }

.fm-star-btn {
  position: absolute;
  top: 5px;
  left: 6px;
  background: none;
  border: none;
  font-size: 1rem;
  color: rgba(200,184,143,0.25);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
  padding: 0;
}
.fm-star-btn:hover, .fm-star-btn.starred { color: var(--accent, #C8B88F); }
.fm-star-btn.starred { transform: scale(1.1); }

.fm-file-card-body {
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fm-file-card-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text, #e2e8f0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.fm-file-card-meta {
  font-size: 0.68rem;
  color: var(--text-muted, #64748b);
  font-variant-numeric: tabular-nums;
}

.fm-file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}

.fm-tag {
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(200,184,143,0.12);
  color: var(--accent, #C8B88F);
  font-family: 'JetBrains Mono', monospace;
}

.fm-file-card-actions {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  gap: 3px;
  flex-direction: column;
}

.fm-file-card:hover .fm-file-card-actions { display: flex; }

.fm-file-card-actions button {
  background: rgba(5,11,20,0.88);
  border: 1px solid rgba(200,184,143,0.15);
  border-radius: 5px;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 4px 5px;
  display: flex;
  transition: color 0.1s, background 0.1s;
}
.fm-file-card-actions button:hover { color: var(--accent, #C8B88F); background: rgba(5,11,20,1); }
.fm-file-card-actions .fm-delete-btn:hover { color: #f87171; }

/* ── File list ──────────────────────────────────────────────────────────────── */
.fm-file-list {
  overflow-y: auto;
  flex: 1;
}

.fm-list-header, .fm-list-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 120px 130px;
  align-items: center;
  padding: 0.55rem 1.5rem;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(200,184,143,0.07);
  font-size: 0.8rem;
}

.fm-list-header {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: sticky;
  top: 0;
  background: var(--bg, #050b14);
  z-index: 1;
}

.fm-list-row:hover { background: rgba(200,184,143,0.04); }

.fm-list-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.fm-list-name a {
  color: var(--text, #e2e8f0);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}
.fm-list-name a:hover { color: var(--accent, #C8B88F); }

.fm-list-ext-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fm-ext-pdf { background: rgba(239,68,68,0.15); color: #f87171; }
.fm-ext-word { background: rgba(59,130,246,0.15); color: #60a5fa; }
.fm-ext-excel { background: rgba(16,185,129,0.15); color: #34d399; }
.fm-ext-ppt { background: rgba(245,158,11,0.15); color: #fbbf24; }
.fm-ext-image { background: rgba(168,85,247,0.15); color: #c084fc; }
.fm-ext-zip { background: rgba(251,191,36,0.15); color: #fde047; }
.fm-ext-text { background: rgba(148,163,184,0.1); color: #94a3b8; }
.fm-ext-default { background: rgba(200,184,143,0.1); color: #C8B88F; }

.fm-star-inline {
  position: static;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.fm-list-mime { color: var(--text-muted, #64748b); font-size: 0.75rem; }
.fm-list-size { color: var(--text-muted, #64748b); font-size: 0.75rem; font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; }
.fm-list-date { color: var(--text-muted, #64748b); font-size: 0.75rem; }

.fm-list-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.fm-list-row:hover .fm-list-actions { opacity: 1; }
.fm-list-actions button {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: color 0.1s, background 0.1s;
}
.fm-list-actions button:hover { color: var(--accent, #C8B88F); background: rgba(200,184,143,0.08); }
.fm-list-actions .fm-delete-btn:hover { color: #f87171; background: rgba(248,113,113,0.08); }

/* ── Empty state ────────────────────────────────────────────────────────────── */
.fm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-muted, #64748b);
  text-align: center;
  flex: 1;
}

.fm-empty svg { color: var(--accent, #C8B88F); opacity: 0.4; }
.fm-empty p { font-size: 0.9rem; margin: 0; }

/* ── Modals ─────────────────────────────────────────────────────────────────── */
.fm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

.fm-modal-panel {
  position: relative;
  background: #0c1b2f;
  border: 1px solid rgba(200,184,143,0.2);
  border-radius: 12px;
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.fm-modal-sm { width: 380px; }

.fm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem 0.8rem;
  border-bottom: 1px solid rgba(200,184,143,0.1);
}

.fm-modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text, #e2e8f0);
}

.fm-modal-close {
  background: none;
  border: none;
  color: var(--text-muted, #64748b);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
  padding: 0;
}
.fm-modal-close:hover { color: var(--text, #e2e8f0); }

.fm-modal-body { padding: 1rem 1.3rem; }
.fm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-top: 1px solid rgba(200,184,143,0.1);
}

/* Drop zone */
.fm-drop-zone {
  border: 2px dashed rgba(200,184,143,0.25);
  border-radius: 10px;
  margin: 1rem 1.3rem;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.fm-drop-zone.drag-over {
  border-color: var(--accent, #C8B88F);
  background: rgba(200,184,143,0.06);
}
.fm-drop-zone svg { color: var(--accent, #C8B88F); opacity: 0.6; }
.fm-drop-zone p { margin: 0; font-size: 0.88rem; }
.fm-drop-hint { font-size: 0.72rem !important; color: var(--text-muted, #64748b); }

.fm-file-label {
  color: var(--accent, #C8B88F);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Upload queue */
.fm-upload-queue {
  padding: 0 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
}

.fm-queue-item {
  background: rgba(200,184,143,0.05);
  border: 1px solid rgba(200,184,143,0.12);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.fm-queue-item-name { font-size: 0.8rem; font-weight: 500; margin-bottom: 0.3rem; }
.fm-queue-progress { height: 3px; background: rgba(200,184,143,0.15); border-radius: 2px; overflow: hidden; }
.fm-queue-bar { height: 100%; background: var(--accent, #C8B88F); border-radius: 2px; transition: width 0.3s; }
.fm-queue-status { font-size: 0.7rem; color: var(--text-muted, #64748b); margin-top: 0.2rem; }
.fm-queue-status.success { color: #34d399; }
.fm-queue-status.error { color: #f87171; }

/* Modal fields */
.fm-modal-fields { padding: 0 1.3rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.fm-modal-fields label { font-size: 0.75rem; color: var(--text-muted, #64748b); font-weight: 500; }
.fm-modal-fields label span { opacity: 0.6; font-weight: 400; }

.fm-label { font-size: 0.75rem; color: var(--text-muted, #64748b); font-weight: 500; display: block; margin-bottom: 0.3rem; }

.fm-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,184,143,0.2);
  border-radius: 6px;
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.fm-input:focus { border-color: var(--accent, #C8B88F); }

.fm-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,184,143,0.2);
  border-radius: 6px;
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
}

/* Share link row */
.fm-share-link-row { display: flex; gap: 0.5rem; }
.fm-share-link-row .fm-input { flex: 1; }
.fm-copy-btn { flex-shrink: 0; padding: 0.42rem 0.75rem; }

/* ── Audit log ──────────────────────────────────────────────────────────────── */
.fm-audit-log { overflow-y: auto; flex: 1; }

.fm-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.fm-audit-table th {
  text-align: left;
  padding: 0.6rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(200,184,143,0.1);
  background: var(--bg, #050b14);
  position: sticky;
  top: 0;
  z-index: 1;
}

.fm-audit-table td {
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid rgba(200,184,143,0.06);
  color: var(--text, #e2e8f0);
  vertical-align: middle;
}

.fm-audit-table tr:hover td { background: rgba(200,184,143,0.03); }

.fm-audit-action {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: lowercase;
}

.fm-audit-upload { background: rgba(16,185,129,0.15); color: #34d399; }
.fm-audit-download { background: rgba(59,130,246,0.15); color: #60a5fa; }
.fm-audit-delete { background: rgba(239,68,68,0.15); color: #f87171; }
.fm-audit-share { background: rgba(200,184,143,0.15); color: #C8B88F; }
.fm-audit-star { background: rgba(251,191,36,0.15); color: #fde047; }
.fm-audit-create_folder { background: rgba(168,85,247,0.15); color: #c084fc; }
.fm-audit-delete_folder { background: rgba(239,68,68,0.12); color: #f87171; }

.fm-audit-file { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted, #94a3b8); }
.fm-audit-meta { color: var(--text-muted, #64748b); font-size: 0.75rem; }
.fm-audit-meta span + span::before { content: ' · '; }
.fm-audit-time { color: var(--text-muted, #64748b); font-family: 'JetBrains Mono', monospace; font-size: 0.73rem; white-space: nowrap; }

/* Section label in main area */
.fm-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fm-sidebar { display: none; }
  .fm-shell { height: auto; flex-direction: column; }
  .fm-toolbar { flex-wrap: wrap; }
  .fm-search-input { width: 130px; }
  .fm-main > .fm-file-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .fm-list-header, .fm-list-row { grid-template-columns: 1fr 70px 70px 100px; }
  .fm-list-actions { display: none; }
}
