/* HomeDrive */
:root {
  --bg: #f8fafd;
  --surface: #ffffff;
  --surface-2: #f0f4f9;
  --menu: #ffffff;
  --hover: rgba(31, 31, 31, .06);
  --text: #1f1f1f;
  --text-2: #444746;
  --muted: #5e5e5e;
  --border: #e3e3e3;
  --accent: #0b57d0;
  --on-accent: #ffffff;
  --accent-soft: #c2e7ff;
  --accent-text: #001d35;
  --sel: #c2e7ff;
  --danger: #b3261e;
  --folder: #444746;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px 1px rgba(0, 0, 0, .15);
  --shadow-2: 0 2px 6px 2px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1b1d22;
    --surface-2: #262a31;
    --menu: #2b2f36;
    --hover: rgba(255, 255, 255, .07);
    --text: #e3e3e3;
    --text-2: #c4c7c5;
    --muted: #9aa0a6;
    --border: #33373e;
    --accent: #a8c7fa;
    --on-accent: #062e6f;
    --accent-soft: #004a77;
    --accent-text: #c2e7ff;
    --sel: #004a77;
    --danger: #f2b8b5;
    --folder: #c4c7c5;
    --shadow-1: 0 1px 3px rgba(0, 0, 0, .6);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 14px/1.43 "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

.ic { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.ic.big { width: 64px; height: 64px; }
.ic.huge { width: 96px; height: 96px; }
.k-folder { color: var(--folder); }
.k-image { color: #d93025; }
.k-video { color: #d93025; }
.k-audio { color: #e8710a; }
.k-pdf { color: #ea4335; }
.k-text, .k-doc { color: #4285f4; }
.k-code { color: #1e8e3e; }
.k-sheet { color: #188038; }
.k-slides { color: #f9ab00; }
.k-archive, .k-file { color: var(--muted); }

/* ---------- buttons ---------- */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: transparent; color: var(--text-2);
  display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0;
  text-decoration: none;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn:disabled { opacity: .38; cursor: default; background: transparent; }
.btn {
  height: 40px; padding: 0 24px; border-radius: 20px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; cursor: pointer; background: transparent; color: var(--accent);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { box-shadow: var(--shadow-1); filter: brightness(1.05); }
.btn.primary:disabled { opacity: .38; box-shadow: none; cursor: default; }
.btn.danger { color: var(--danger); }
.btn.primary.danger { background: var(--danger); color: var(--surface); }
.btn.outline { border: 1px solid var(--border); color: var(--text-2); }
.chip {
  height: 32px; padding: 0 12px 0 8px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  color: var(--text-2); font-weight: 500;
}
.chip:hover { background: var(--hover); }
.chip .ic { width: 18px; height: 18px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.sidebar { padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.brand {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px;
  font-size: 22px; color: var(--text-2); text-decoration: none;
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.new-btn {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  height: 56px; padding: 0 24px 0 16px; margin: 0 0 16px 4px; border-radius: 16px; border: 0;
  background: var(--surface); box-shadow: var(--shadow-1); font-weight: 500; cursor: pointer;
}
.new-btn:hover { box-shadow: var(--shadow-2); background: var(--surface-2); }
.nav a {
  display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 16px;
  border-radius: 18px; color: var(--text); text-decoration: none;
}
.nav a .ic { width: 20px; height: 20px; color: var(--text-2); }
.nav a:hover { background: var(--hover); }
.nav a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav a.active .ic { color: var(--accent-text); }
.storage { margin-top: 20px; padding: 0 16px; color: var(--text-2); font-size: 13px; }
.storage-label { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text); }
.storage-label .ic { width: 20px; height: 20px; color: var(--text-2); }
.bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 10px 0 6px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.bar.full > i { background: var(--danger); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 16px 16px 0; }
.topbar { height: 64px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.menu-btn { display: none; }
.search {
  flex: 1; max-width: 720px; height: 48px; display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border-radius: 24px; padding: 0 4px 0 16px; color: var(--text-2);
}
.search:focus-within { background: var(--surface); box-shadow: var(--shadow-1); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.search input::-webkit-search-cancel-button { display: none; }
.avatar {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; flex-shrink: 0;
}

.panel {
  position: relative; flex: 1; min-height: 0; background: var(--surface); border-radius: 16px;
  display: flex; flex-direction: column;
}
.toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px 16px; min-height: 64px; }
.crumbs { display: flex; align-items: center; flex: 1; min-width: 0; font-size: 22px; }
.crumbs .sep { width: 20px; height: 20px; color: var(--muted); }
.crumb {
  padding: 4px 12px; border-radius: 20px; cursor: pointer; border: 0; background: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; min-width: 0;
  flex-shrink: 1; font-size: inherit; color: var(--text-2);
}
.crumb:hover { background: var(--hover); }
.crumb.current { color: var(--text); flex-shrink: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 4px; }
.crumb.current .ic { width: 20px; height: 20px; }
.crumb.static { cursor: default; color: var(--text); }
.crumb.static:hover { background: none; }
.tools { display: flex; align-items: center; gap: 4px; }

.infobar { display: flex; align-items: center; gap: 8px; height: 48px; margin: 0 16px 4px 24px; flex-shrink: 0; }
.infobar .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.infobar.selbar { background: var(--surface-2); border-radius: 24px; padding: 0 4px; margin-left: 16px; gap: 2px; }
.sel-count { font-weight: 500; margin: 0 12px 0 4px; white-space: nowrap; }

.content { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 24px; }

/* ---------- list ---------- */
.row {
  display: grid; align-items: center; min-height: 48px; padding: 0 4px 0 8px;
  border-bottom: 1px solid var(--border); user-select: none; -webkit-user-select: none;
  grid-template-columns: 36px minmax(0, 1fr) 160px 100px 44px;
}
.v-search .row, .v-trash .row { grid-template-columns: 36px minmax(0, 1fr) 180px 150px 100px 44px; }
.row.head {
  position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--text-2);
  font-weight: 500; min-height: 44px;
}
.row.head .sortable { cursor: pointer; display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.row.head .sortable:hover { color: var(--text); }
.row.head .active { color: var(--text); }
.sort-ic { width: 18px; height: 18px; }
.row.item { cursor: default; border-radius: 0; }
.row.item:hover { background: var(--hover); }
.row.item.sel { background: var(--sel); border-bottom-color: transparent; }
.row > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.row .c-name { display: flex; align-items: center; gap: 14px; color: var(--text); padding-right: 12px; }
.c-name .txt { display: flex; flex-direction: column; min-width: 0; }
.c-name .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.c-name .sub { display: none; font-size: 12px; color: var(--muted); }
.c-check { display: grid; place-items: center; }
.c-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.c-more { display: flex; justify-content: flex-end; }
.loc-link {
  border: 0; background: none; padding: 2px 8px; margin-left: -8px; border-radius: 12px; cursor: pointer;
  color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.loc-link:hover { background: var(--hover); color: var(--text); }
.drop { outline: 2px solid var(--accent) !important; outline-offset: -2px; background: var(--accent-soft) !important; }

/* ---------- grid ---------- */
.section-title { font-weight: 500; margin: 12px 8px 12px; color: var(--text); }
.grid { display: grid; gap: 12px; padding: 0 8px 8px; }
.grid.folders { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.files { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile, .card { background: var(--surface-2); border-radius: 12px; user-select: none; -webkit-user-select: none; cursor: default; min-width: 0; }
.tile { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 2px 0 16px; }
.tile .name, .card .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
/* names use dir="auto" for Hebrew/Arabic; keep them next to their icon instead of drifting right */
.tile .name, .card .name, .pv-title, .up-name, .picker-item span { text-align: left; }
.tile:hover, .card:hover { background: var(--hover); box-shadow: inset 0 0 0 100px var(--hover); }
.tile.sel, .card.sel { background: var(--sel); }
.card { display: flex; flex-direction: column; padding: 0 2px 10px; }
.card-head { display: flex; align-items: center; gap: 12px; height: 48px; padding-left: 14px; }
.card-head .ic:first-child { width: 20px; height: 20px; }
.thumb {
  height: 160px; margin: 0 8px; border-radius: 8px; background: var(--surface);
  display: grid; place-items: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- empty / loading ---------- */
.empty { text-align: center; padding: 72px 16px; color: var(--muted); }
.empty .ic { width: 120px; height: 120px; color: var(--border); }
.empty h3 { color: var(--text); font-weight: 400; font-size: 22px; margin: 16px 0 8px; }
.empty .btn { margin-top: 16px; }
.loading { display: grid; place-items: center; padding: 72px 0; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 4px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.drop-overlay {
  position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 16px;
  background: rgba(11, 87, 208, .06); display: none; pointer-events: none;
  align-items: flex-end; justify-content: center; padding-bottom: 32px; z-index: 5;
}
.panel.dragging .drop-overlay { display: flex; }
.drop-overlay .pill {
  background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 24px;
  display: flex; align-items: center; gap: 10px; font-weight: 500; box-shadow: var(--shadow-2);
  max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drag-ghost {
  position: fixed; top: -100px; left: -100px; padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 500; max-width: 260px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- menus ---------- */
.menu {
  position: fixed; z-index: 90; min-width: 220px; max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px); overflow-y: auto;
  background: var(--menu); border-radius: 8px; box-shadow: var(--shadow-2); padding: 8px 0;
}
.menu button {
  display: flex; align-items: center; gap: 16px; width: 100%; height: 40px; padding: 0 20px 0 16px;
  border: 0; background: none; color: var(--text); cursor: pointer; text-align: start; white-space: nowrap;
}
.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: 0; }
.menu button .ic { width: 20px; height: 20px; color: var(--text-2); }
.menu button.danger, .menu button.danger .ic { color: var(--danger); }
.menu button span { overflow: hidden; text-overflow: ellipsis; }
.menu .menu-head { padding: 6px 16px 10px; color: var(--muted); font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }
.menu .blank { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- modals ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 100;
  display: grid; place-items: center; padding: 16px; animation: fade .15s;
}
.modal {
  background: var(--surface); border-radius: 28px; padding: 24px; width: min(400px, 100%);
  box-shadow: var(--shadow-2); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
}
.modal.wide { width: min(520px, 100%); }
.modal h2 { margin: 0 0 16px; font-size: 24px; font-weight: 400; }
.modal p { margin: 0; color: var(--text-2); }
.modal input[type=text] {
  width: 100%; height: 48px; border: 1px solid var(--muted); border-radius: 4px; padding: 0 14px;
  background: transparent; font-size: 16px; outline: 0;
}
.modal input[type=text]:focus { border: 2px solid var(--accent); padding: 0 13px; }
.modal .actions { display: flex; align-items: center; gap: 8px; margin-top: 24px; justify-content: flex-end; }
.modal .actions .btn { padding: 0 16px; }
.picker-head { display: flex; align-items: center; gap: 8px; margin: -4px 0 8px -8px; }
.picker-title { font-weight: 500; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-list { border: 1px solid var(--border); border-radius: 12px; height: 320px; max-height: 45vh; overflow-y: auto; padding: 4px 0; }
.picker-item {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 44px; padding: 0 8px 0 16px;
  border: 0; background: none; cursor: pointer; text-align: start;
}
.picker-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-item:hover { background: var(--hover); }
.picker-item:disabled { opacity: .4; cursor: not-allowed; background: none; }
.picker-item .chev { width: 20px; height: 20px; color: var(--muted); }
.picker-msg { padding: 24px; text-align: center; color: var(--muted); }

/* ---------- preview ---------- */
.preview {
  position: fixed; inset: 0; z-index: 80; background: rgba(12, 12, 14, .92); color: #fff;
  display: flex; flex-direction: column; animation: fade .15s;
}
.preview .icon-btn { color: #e8eaed; }
.preview .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.pv-head { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 12px; flex-shrink: 0; }
.pv-head .ic { color: inherit; }
.pv-title { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-count { color: #bdc1c6; font-size: 13px; padding: 0 8px; white-space: nowrap; }
.pv-body {
  position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 72px 24px;
}
.pv-media { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
video.pv-media { background: #000; }
.pv-frame { width: min(1100px, 100%); height: 100%; border: 0; border-radius: 4px; background: #fff; }
.pv-text {
  width: min(1000px, 100%); height: 100%; overflow: auto; margin: 0; padding: 24px; border-radius: 8px;
  background: var(--surface); color: var(--text); white-space: pre-wrap; word-break: break-word;
  font: 13px/1.6 ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; text-align: start;
}
.pv-audio { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pv-audio audio { width: min(480px, 80vw); }
.pv-none {
  background: var(--surface); color: var(--text); border-radius: 16px; padding: 32px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 100%;
}
.pv-none p { margin: 0; }
.pv-none .btn { margin-top: 16px; }
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  background: rgba(32, 33, 36, .7) !important; z-index: 2;
}
.pv-nav:hover { background: rgba(60, 64, 67, .9) !important; }
.pv-prev { left: 12px; }
.pv-next { right: 12px; }

/* ---------- uploads panel ---------- */
.uploads {
  position: fixed; right: 24px; bottom: 0; width: 380px; z-index: 70;
  background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-2); overflow: hidden;
}
.up-head { display: flex; align-items: center; height: 56px; padding: 0 6px 0 20px; background: var(--surface-2); gap: 2px; }
.up-title { flex: 1; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-total { height: 3px; background: var(--border); }
.up-total > i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.up-list { max-height: 300px; overflow-y: auto; }
.uploads.min .up-list { display: none; }
.up-item { display: flex; align-items: center; gap: 14px; padding: 8px 6px 8px 20px; min-height: 52px; }
.up-item .ic:first-child { width: 20px; height: 20px; }
.up-meta { flex: 1; min-width: 0; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item.error .up-sub { color: var(--danger); }
.up-item .ok { color: #1e8e3e; margin: 0 8px; }
.up-item .small { font-size: 12px; margin: 0 8px; }
.prog { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; margin-top: 4px; }
.prog > i { display: block; height: 100%; background: var(--accent); }
.up-more { padding: 8px 20px 12px; font-size: 12px; color: var(--muted); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 24px; bottom: 24px; z-index: 110; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; background: #303030; color: #f2f2f2; border-radius: 8px; padding: 6px 6px 6px 16px;
  min-height: 48px; min-width: 288px; max-width: min(520px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-2); animation: rise .2s;
}
.toast.error { background: #601410; }
.toast-msg { flex: 1; overflow-wrap: anywhere; padding: 8px 0; }
.toast button { border: 0; background: none; color: #a8c7fa; font-weight: 500; cursor: pointer; padding: 8px 10px; border-radius: 6px; }
.toast button:hover { background: rgba(255, 255, 255, .08); }
.toast .toast-x { color: #e8eaed; padding: 6px; display: grid; }
.toast .toast-x .ic { width: 18px; height: 18px; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 16px;
  border: 0; background: var(--accent-soft); color: var(--accent-text); box-shadow: var(--shadow-2);
  place-items: center; cursor: pointer; z-index: 30;
}
.scrim { display: none; }

/* ---------- login ---------- */
.login-page { display: grid; place-items: center; min-height: 100%; padding: 16px; }
.login-card {
  width: min(400px, 100%); background: var(--surface); border-radius: 28px; padding: 40px 32px 32px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-1);
}
.login-card h1 { margin: 8px 0 0; font-weight: 400; font-size: 28px; }
.login-card .muted { margin: -12px 0 8px; }
.login-logo { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.field input {
  height: 48px; border: 1px solid var(--muted); border-radius: 4px; padding: 0 14px; font-size: 16px;
  background: transparent; outline: 0;
}
.field input:focus { border: 2px solid var(--accent); padding: 0 13px; }
.login-card .btn { align-self: flex-end; margin-top: 8px; }
.login-error { background: rgba(179, 38, 30, .1); color: var(--danger); padding: 10px 14px; border-radius: 8px; }

/* ---------- small screens ---------- */
@media (max-width: 800px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: 290px; max-width: 85vw; z-index: 60;
    background: var(--bg); transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-2);
  }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 55; }
  .new-btn { display: none; }
  .main { padding: 0 8px 8px; }
  .topbar { gap: 4px; }
  .menu-btn { display: inline-grid; }
  .search { padding-left: 12px; }
  .toolbar { padding: 8px 4px 0 4px; min-height: 52px; }
  .crumbs { font-size: 18px; }
  .crumb { max-width: 140px; padding: 4px 8px; }
  .infobar { margin: 0 8px 4px 12px; }
  .infobar.selbar { margin-left: 8px; }
  .content { padding: 0 4px 96px; }
  .row, .v-search .row, .v-trash .row { grid-template-columns: 36px minmax(0, 1fr) 44px; min-height: 60px; }
  .row .c-mtime, .row .c-size, .row .c-location, .row .c-deleted { display: none; }
  .row.head { display: none; }
  .c-name .sub { display: block; }
  .grid.folders { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .grid.files { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .thumb { height: 120px; }
  .fab { display: grid; }
  .uploads { right: 0; left: 0; width: auto; }
  .toasts { left: 8px; right: 8px; bottom: 84px; }
  .toast { min-width: 0; }
  .pv-body { padding: 0 0 8px; }
  .pv-nav { display: none; }
  .modal { border-radius: 20px; }
}
