/* =========================================================
   files.css — файлы: строки, группы, хранилище
   ========================================================= */

.fgrp { margin-bottom: 20px; }
.fgrp__h {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.fgrp__h span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; }

.frow {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  transition: background var(--dur-fast);
}
.frow:hover { background: var(--bg-soft); }
/* Основная кликабельная область — нативная кнопка без стилей кнопки. */
.frow__main {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.frow__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); background: var(--bg-tint); color: var(--brand); flex: none; }
.frow__ic svg { width: 20px; height: 20px; }
.frow__ic.photo { color: var(--info-ink); }
.frow__ic.video { color: var(--amber-strong); }
.frow__ic.voice { color: var(--ok-line); }
.frow__thumb { width: 38px; height: 38px; border-radius: var(--radius); object-fit: cover; flex: none; border: 1px solid var(--line); }
.frow__m { min-width: 0; flex: 1; }
.frow__n { font-size: 13.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__up { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; color: var(--ok-text); border: 1px solid var(--ok-line); border-radius: 3px; padding: 0 4px; margin-left: 6px; }
.frow__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.frow__dl { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); color: var(--muted); flex: none; padding: 0; border: 0; background: none; cursor: pointer; appearance: none; -webkit-appearance: none; }
.frow:hover .frow__dl { color: var(--brand); background: var(--bg); }
.frow__dl svg { width: 18px; height: 18px; }

/* Плашка хранилища */
.storage {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.storage__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--bg); color: var(--brand); flex: none; box-shadow: var(--shadow-1); }
.storage__ic svg { width: 24px; height: 24px; }
.storage__meta { line-height: 1.3; }
.storage__t { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.storage__v { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
