/* ────────────────── NoteHub — Notion/Drive feel ─────────────────── */

:root {
  /* ── Slate Blue Theme ──────────────────────────────── */
  /* Main area (white / very light) */
  --bg:   #ffffff;
  --bg-1: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  /* Text — higher contrast than before */
  --fg:   #0f172a;
  --fg-2: #334155;
  --fg-3: #64748b;
  --fg-4: #94a3b8;
  /* Borders */
  --border:        #dde3ec;
  --border-strong: #c4cdd9;
  /* Accent — Blue */
  --accent:      #2563eb;
  --accent-soft: #eff6ff;
  --accent-fg:   #1d4ed8;
  /* Status */
  --warn:    #d97706;
  --danger:  #dc2626;
  /* Selection / hover */
  --selected: #eff6ff;
  --hover:    #f1f5f9;
  /* Sidebar — dark navy */
  --sidebar-bg:          #1e2a3b;
  --sidebar-bg-hover:    #2d3f57;
  --sidebar-bg-active:   #2d3f57;
  --sidebar-border:      #2d3f57;
  --sidebar-fg:          #e2e8f0;
  --sidebar-fg-2:        #94b4d4;
  --sidebar-fg-3:        #64748b;
  --sidebar-accent:      #60a5fa;
  --sidebar-badge-bg:    #3d5270;
  --sidebar-badge-fg:    #94b4d4;
  --sidebar-input-bg:    #253448;
  --sidebar-input-border:#3d5270;

  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);

  --sidebar-w: 264px;
  --detail-w: 380px;

  /* density */
  --row-h: 44px;
  --tile-min: 200px;
  --gap: 14px;
  --pad: 24px;
}

.density-compact {
  --row-h: 36px;
  --tile-min: 168px;
  --gap: 10px;
}
.density-comfortable {
  --row-h: 56px;
  --tile-min: 240px;
  --gap: 18px;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--detail-w);
  height: 100vh;
  overflow: hidden;
}

/* ─────────────── Sidebar ─────────────── */

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 10px 10px;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 16px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 16px;
}
.brand-text { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--sidebar-fg); }
.brand-em { color: var(--sidebar-accent); }

.search-trigger {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--r);
  background: var(--sidebar-input-bg);
  border: 1px solid var(--sidebar-input-border);
  color: var(--sidebar-fg-2);
  font-size: 13px;
  margin-bottom: 8px;
  transition: background .12s, border-color .12s;
}
.search-trigger:hover { background: var(--sidebar-bg-hover); border-color: var(--sidebar-fg-3); }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger kbd, .palette kbd {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sidebar-input-bg);
  border: 1px solid var(--sidebar-input-border);
  color: var(--sidebar-fg-3);
}

.upload-cta {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .3);
  transition: background .12s;
}
.upload-cta:hover { background: #1d4ed8; }

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sidebar-fg-3);
  padding: 12px 10px 6px;
}
.sidebar-section-label.with-action {
  display: flex; align-items: center; justify-content: space-between;
}
.section-action {
  width: 18px; height: 18px;
  border-radius: 4px;
  color: var(--sidebar-fg-3);
  display: grid; place-items: center;
}
.section-action:hover { background: var(--sidebar-bg-hover); color: var(--sidebar-fg); }

.sidebar-nav { display: flex; flex-direction: column; gap: 1px; }

.nav-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--sidebar-fg-2);
  text-align: left;
  transition: background .1s;
}
.nav-item:hover { background: var(--sidebar-bg-hover); color: var(--sidebar-fg); }
.nav-item.is-selected { background: var(--sidebar-bg-active); color: var(--sidebar-fg); font-weight: 500; }
.nav-item i { font-size: 14px; color: var(--sidebar-fg-3); }
.nav-item.is-selected i { color: var(--sidebar-accent); }
.nav-count { font-size: 11px; color: var(--sidebar-badge-fg); font-variant-numeric: tabular-nums; background: var(--sidebar-badge-bg); padding: 1px 6px; border-radius: 99px; }

/* tree */
.tree { display: flex; flex-direction: column; }
.tree-row {
  display: flex; align-items: center; gap: 4px;
  height: 28px;
  padding-right: 8px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--sidebar-fg-2);
  cursor: pointer;
  transition: background .1s;
}
.tree-row:hover { background: var(--sidebar-bg-hover); color: var(--sidebar-fg); }
.tree-row.is-selected { background: var(--sidebar-bg-active); color: var(--sidebar-fg); font-weight: 500; }
.tree-caret {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  color: var(--sidebar-fg-3);
  border-radius: 3px;
  flex-shrink: 0;
}
.tree-caret:hover { background: var(--sidebar-bg-hover); }
.tree-caret i { font-size: 10px; }
.tree-icon { font-size: 14px; color: var(--sidebar-accent); }
.tree-row:not(.is-selected) .tree-icon { color: var(--sidebar-fg-2); }
.tree-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-left: 2px;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--sidebar-border);
  padding: 12px 8px 4px;
}
.storage-row { display: flex; justify-content: space-between; font-size: 12px; }
.storage-label { color: var(--sidebar-fg-3); }
.storage-value { color: var(--sidebar-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.storage-bar {
  height: 6px;
  background: var(--sidebar-bg-hover);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.storage-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .3s;
}
.storage-foot {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--sidebar-fg-3);
  margin-top: 4px;
}
.storage-foot a { color: var(--sidebar-accent); text-decoration: none; font-weight: 500; }

/* ─────────────── Main ─────────────── */

.main {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  height: 52px;
}

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--fg-3);
}
.breadcrumb i.sep { font-size: 9px; color: var(--fg-4); }
.breadcrumb i.bi-house-door-fill { color: var(--accent); font-size: 13px; }
.breadcrumb .is-current { color: var(--fg); font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 8px; }

.density-toggle, .view-toggle {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px;
}
.density-toggle button, .view-toggle button {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.view-toggle button { padding: 5px 9px; }
.view-toggle button i { font-size: 13px; }
.density-toggle button.is-active, .view-toggle button.is-active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

.sort-select {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 8px 4px 10px;
  font-size: 12.5px;
  color: var(--fg-2);
}
.sort-select i { font-size: 12px; color: var(--fg-3); }
.sort-select select { border: 0; background: transparent; outline: none; padding-right: 4px; }

.upload-btn {
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.upload-btn:hover { background: #157347; }

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #198754, #0f5c38);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
}

.bulk-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent-soft);
  border: 1px solid #c5e0d2;
  border-radius: var(--r);
  padding: 3px 4px 3px 12px;
  height: 30px;
}
.bulk-count { font-size: 12.5px; color: var(--accent-fg); font-weight: 600; margin-right: 6px; }
.icon-btn {
  width: 26px; height: 26px;
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--fg-2);
}
.icon-btn:hover { background: rgba(0,0,0,.05); }
.icon-btn.danger:hover { background: #fee2e2; color: var(--danger); }

/* main body */
.main-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--pad);
}

.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 6px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0;
}
.page-sub {
  font-size: 12.5px;
  color: var(--fg-3);
  margin-top: 4px;
}

.filter-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg-2);
  transition: all .12s;
}
.pill i { font-size: 11px; }
.pill:hover { border-color: var(--border-strong); background: var(--bg-1); }
.pill.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ─────────────── List view ─────────────── */

.list-view {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}
.list-head, .list-row {
  display: grid;
  grid-template-columns: 36px minmax(220px, 2.4fr) minmax(120px, 1fr) 110px 90px 130px 36px;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}
.list-head {
  height: 36px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fg-4);
}
.list-row {
  height: var(--row-h);
  border-bottom: 1px solid var(--border-subtle, var(--border));
  font-size: 13px;
  cursor: pointer;
  transition: background .1s;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--bg-1); }
.list-row.is-focused { background: var(--selected); }
.list-row.is-selected { background: var(--accent-soft); }

.col-check { display: flex; align-items: center; }
.col-check input { accent-color: var(--accent); }

.col-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.density-compact .file-icon { width: 26px; height: 26px; font-size: 14px; }
.name-block { min-width: 0; flex: 1; }
.name-line { display: flex; align-items: center; gap: 6px; }
.filename {
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.path-line {
  font-size: 11.5px;
  color: var(--fg-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.density-compact .path-line { display: none; }
.star-on { color: var(--warn); font-size: 12px; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: 11px;
  color: var(--fg-2);
  margin-right: 4px;
  border: 1px solid var(--border);
}
.tag-more {
  font-size: 11px;
  color: var(--fg-3);
}

.avatar-stack { display: flex; }
.mini-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -6px;
}
.mini-avatar:first-child { margin-left: 0; }

.col-size, .col-mod {
  font-size: 12px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.row-action {
  width: 24px; height: 24px;
  border-radius: 4px;
  color: var(--fg-3);
  display: grid; place-items: center;
}
.row-action:hover { background: var(--bg-3); color: var(--fg); }

.muted { color: var(--fg-4); }
.small { font-size: 11.5px; }

/* ─────────────── Tiles view ─────────────── */

.tiles-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
  gap: var(--gap);
}
.tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.tile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.tile.is-focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.tile.is-selected { border-color: var(--accent); background: var(--accent-soft); }

.tile-preview {
  aspect-ratio: 16 / 10;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.tile-preview-icon {
  font-size: 42px;
  color: rgba(0,0,0,.35);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.1));
}
.density-compact .tile-preview-icon { font-size: 32px; }
.tile-preview-icon i { color: inherit; }

.tile-overlay-top {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between;
  opacity: 0;
  transition: opacity .15s;
}
.tile:hover .tile-overlay-top, .tile.is-selected .tile-overlay-top { opacity: 1; }
.tile-overlay-top input[type="checkbox"] { accent-color: var(--accent); }
.tile-overlay-actions { display: flex; gap: 4px; }
.tile-icon {
  width: 24px; height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: var(--fg-2);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}
.tile-icon:hover { background: #fff; color: var(--fg); }

.tile-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.tile-type-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.tile-hover-hint {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tile-body {
  padding: 10px 12px 12px;
}
.tile-name {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-meta {
  font-size: 11.5px;
  color: var(--fg-3);
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.tile-meta .dot { color: var(--fg-4); }

/* ─────────────── Gallery view ─────────────── */
.gallery-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px;
}
.gallery-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform .12s;
}
.gallery-tile:hover { transform: scale(1.02); z-index: 1; }
.gallery-tile.is-focused { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery-tile i { font-size: 32px; color: rgba(0,0,0,.35); }
.gallery-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  color: #fff;
  font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─────────────── Detail panel ─────────────── */

.detail-panel {
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.detail-panel.empty { justify-content: center; align-items: center; padding: 30px; }
.detail-empty { text-align: center; color: var(--fg-3); }
.detail-empty i { font-size: 36px; color: var(--fg-4); display: block; margin-bottom: 10px; }
.detail-empty .muted { display: block; margin-top: 4px; font-size: 12px; }

.detail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.detail-head-label {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-4);
}

.detail-preview {
  margin: 16px;
  height: 180px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 64px;
  color: rgba(0,0,0,.35);
  position: relative;
  border: 1px solid var(--border);
}
.detail-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.detail-title-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 0 16px;
}
.detail-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  flex: 1;
  word-break: break-word;
  line-height: 1.35;
}
.star-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  color: var(--fg-3);
  display: grid; place-items: center;
}
.star-btn:hover { background: var(--bg-3); }
.star-btn.on { color: var(--warn); }

.detail-tags {
  display: flex; gap: 5px; flex-wrap: wrap;
  padding: 10px 16px 0;
}
.detail-tags .tag { margin: 0; }
.tag-add {
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--border-strong);
  color: var(--fg-3);
  display: grid; place-items: center;
  font-size: 11px;
}
.tag-add:hover { background: var(--bg-2); color: var(--fg); }

.detail-actions {
  display: flex; gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.primary-btn {
  flex: 1;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.primary-btn:hover { background: #157347; }
.ghost-btn {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--fg-2);
  display: grid; place-items: center;
  font-size: 13px;
  background: var(--bg);
}
.ghost-btn:hover { background: var(--bg-2); }

.detail-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.detail-section h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin: 0 0 8px;
}
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; }
.detail-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 12.5px;
}
.meta-grid dt { color: var(--fg-4); }
.meta-grid dd { margin: 0; color: var(--fg); font-weight: 500; word-break: break-word; }
.meta-grid dd.path-dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 400; }

.share-empty { display: flex; justify-content: space-between; align-items: center; }
.share-list { display: flex; flex-direction: column; gap: 8px; }
.share-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.share-name { font-weight: 500; }
.share-role { color: var(--fg-4); font-size: 11.5px; }
.link-btn {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  padding: 0;
  text-align: left;
}
.link-btn:hover { text-decoration: underline; }

.version-list { display: flex; flex-direction: column; gap: 10px; }
.version-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  position: relative;
}
.version-row::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: -10px;
  width: 1px;
  background: var(--border-strong);
}
.version-row:last-child::before { display: none; }
.version-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
}
.version-row:not(:first-child) .version-dot { border-color: var(--border-strong); }
.version-label { font-weight: 600; }
.version-when { color: var(--fg-3); font-size: 11.5px; margin-top: 1px; }
.now {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-fg);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ─────────────── Command palette ─────────────── */

.palette-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 14vh;
  z-index: 100;
  animation: fadeIn .12s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.palette {
  width: 560px;
  max-width: 92vw;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.palette-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.palette-input-row i { color: var(--fg-3); font-size: 16px; }
.palette-input-row input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
}
.palette-section-label {
  padding: 10px 16px 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-4);
}
.palette-list { padding: 0 8px 8px; max-height: 400px; overflow-y: auto; }
.palette-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  text-align: left;
}
.palette-row:hover, .palette-row:focus-visible { background: var(--bg-2); outline: none; }
.palette-row .file-icon { width: 30px; height: 30px; font-size: 14px; }
.palette-name > div:first-child { font-weight: 500; }
.palette-empty { padding: 30px; text-align: center; color: var(--fg-3); font-size: 13px; }
.palette-foot {
  display: flex; gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  font-size: 11px;
  color: var(--fg-3);
}

/* ─────────────── Drop overlay ─────────────── */

.drop-overlay {
  position: fixed; inset: 0;
  background: rgba(25, 135, 84, .12);
  backdrop-filter: blur(2px);
  border: 4px dashed var(--accent);
  border-radius: 0;
  display: grid; place-items: center;
  z-index: 90;
  pointer-events: none;
}
.drop-card {
  background: var(--bg);
  padding: 30px 50px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.drop-card i { font-size: 48px; color: var(--accent); display: block; margin-bottom: 12px; }
.drop-title { font-size: 18px; font-weight: 700; }
.drop-sub { font-size: 13px; color: var(--fg-3); margin-top: 4px; }

/* ─────────────── Toast ─────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--r);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 110;
  animation: toastIn .25s ease;
}
.toast i { color: #4ade80; font-size: 15px; }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* tweaks panel position override */
:root { --tweaks-z: 50; }

/* ─────────────── Ergänzungen für Django-Templates ─────────────── */

/* Main area */
.main-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--bg);
}
.main-area > :last-child { flex: 1; overflow-y: auto; }

/* Topbar */
.topbar {
  height: 52px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

/* List-Header */
.list-view {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.list-header {
  display: grid;
  grid-template-columns: 36px minmax(220px, 2.4fr) minmax(100px, 1fr) 90px 130px 36px;
  align-items: center;
  gap: 0;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-4);
  letter-spacing: .03em;
}
.list-row {
  display: grid;
  grid-template-columns: 36px minmax(220px, 2.4fr) minmax(100px, 1fr) 90px 130px 36px;
  align-items: center;
  height: var(--row-h);
  padding: 0 12px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .08s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--hover); }
.list-row.is-focused { background: var(--selected); }
.list-row.is-selected { background: var(--accent-soft); }

/* Tiles */
.tiles-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
  gap: var(--gap);
}
.tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.tile.is-selected { background: var(--accent-soft); border-color: var(--accent); }

.tile-preview {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: rgba(0,0,0,.25);
}
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .1s;
}
.tile:hover .tile-overlay { opacity: 1; }
.tile-action-btn {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.8);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--fg-2);
  border: 0;
  cursor: pointer;
}
.tile-action-btn:hover { background: #fff; }
.tile-type-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.tile-body { padding: 10px 12px 12px; }
.tile-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.tile-meta { font-size: 11.5px; color: var(--fg-3); }

/* Gallery */
.gallery-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px;
}
.gallery-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: 12px;
  padding: 20px 8px 8px;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .15s;
}

/* File type icons */
.file-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.file-icon--pdf,.file-icon--document { background: rgba(239,68,68,.1); color: #dc2626; }
.file-icon--image { background: rgba(99,102,241,.1); color: #6366f1; }
.file-icon--video { background: rgba(236,72,153,.1); color: #db2777; }
.file-icon--audio { background: rgba(245,158,11,.1); color: #d97706; }
.file-icon--note  { background: rgba(16,185,129,.1); color: #059669; }
.file-icon--spreadsheet { background: rgba(5,150,105,.1); color: #047857; }
.file-icon--archive { background: rgba(107,114,128,.1); color: #4b5563; }
.file-icon--other { background: rgba(156,163,175,.1); color: #6b7280; }

/* Tile preview color-coded backgrounds */
.file-preview--pdf    { background: linear-gradient(135deg,#fef2f2 0%,#fecaca 100%); }
.file-preview--image  { background: linear-gradient(135deg,#eef2ff 0%,#c7d2fe 100%); }
.file-preview--video  { background: linear-gradient(135deg,#fdf4ff 0%,#e9d5ff 100%); }
.file-preview--audio  { background: linear-gradient(135deg,#fffbeb 0%,#fde68a 100%); }
.file-preview--note   { background: linear-gradient(135deg,#f0fdf4 0%,#bbf7d0 100%); }
.file-preview--spreadsheet { background: linear-gradient(135deg,#ecfdf5 0%,#a7f3d0 100%); }
.file-preview--archive{ background: linear-gradient(135deg,#f9fafb 0%,#e5e7eb 100%); }
.file-preview--document{ background: linear-gradient(135deg,#fafafa 0%,#e5e5e5 100%); }
.file-preview--other  { background: linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%); }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  color: var(--fg-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Detail panel scroll */
.detail-panel {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ─── Korrekturen & fehlende Klassen (aus Design-CSS) ─────── */

/* Sidebar-Footer (exakte Klassen) */
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 12px 8px 4px;
  flex-shrink: 0;
}
.storage-row { display: flex; justify-content: space-between; font-size: 12px; }
.storage-label { color: var(--sidebar-fg-3); }
.storage-value { color: var(--sidebar-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.storage-bar { height: 6px; background: var(--bg-3); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.storage-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.storage-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-4); margin-top: 4px; }
.storage-foot a { color: var(--sidebar-accent); text-decoration: none; font-weight: 500; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid var(--border); background: var(--bg); flex-shrink: 0; height: 52px; }
.topbar-left { flex: 1; min-width: 0; overflow: hidden; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-3); flex-wrap: nowrap; }
.breadcrumb .sep { font-size: 9px; color: var(--fg-4); }
.breadcrumb .bi-house-door-fill { color: var(--accent); font-size: 13px; }
.breadcrumb .is-current { color: var(--fg); font-weight: 500; }
.breadcrumb a { color: var(--fg-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }

/* Density Toggle (exakt wie Design) */
.density-toggle, .view-toggle {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px;
  gap: 0;
}
.density-toggle button, .view-toggle button, .view-toggle a {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.view-toggle button, .view-toggle a { padding: 5px 9px; }
.view-toggle button i, .view-toggle a i { font-size: 13px; }
.density-toggle button.is-active,
.view-toggle button.is-active,
.view-toggle a.is-active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

/* Sort Select */
.sort-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 8px 4px 10px;
  font-size: 12.5px;
  color: var(--fg-2);
}
.sort-select i { font-size: 12px; color: var(--fg-3); }
.sort-select select { border: 0; background: transparent; outline: none; padding-right: 4px; font-size: 12.5px; }

/* Upload-Button Topbar (kleiner als Sidebar-CTA) */
.upload-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .12s;
}
.upload-btn:hover { background: #157347; }

/* Avatar (Topbar) */
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,#198754,#0f5c38);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

/* Bulk-Bar */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid #c5e0d2;
  border-radius: var(--r);
  padding: 3px 4px 3px 12px;
  height: 30px;
}
.bulk-count { font-size: 12.5px; color: var(--accent-fg); font-weight: 600; margin-right: 6px; }

/* Icon-Button (generisch, im Topbar und Detail) */
.icon-btn {
  width: 26px; height: 26px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--fg-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
}
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn.danger:hover { background: #fee2e2; color: var(--danger); }

/* List: exakte Spalten aus Design */
.list-view { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.list-head, .list-row {
  display: grid;
  grid-template-columns: 36px minmax(220px, 2.4fr) minmax(120px, 1fr) 110px 90px 130px 36px;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}
.list-head {
  height: 36px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fg-4);
}
.list-row {
  height: var(--row-h);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  transition: background .1s;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--bg-1); }
.list-row.is-focused { background: var(--selected); }
.list-row.is-selected { background: var(--accent-soft); }

/* List: Spalten-Inhalt */
.col-check { display: flex; align-items: center; }
.col-name  { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.col-tags  { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.col-shared{ display: flex; align-items: center; }
.col-size, .col-mod { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.file-icon { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }
.density-compact .file-icon { width: 26px; height: 26px; font-size: 14px; }

.name-block { min-width: 0; flex: 1; overflow: hidden; }
.name-line  { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.filename   { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path-line  { font-size: 11.5px; color: var(--fg-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.density-compact .path-line { display: none; }
.star-on { color: var(--warn); font-size: 12px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-2); font-size: 11px; color: var(--fg-2); border: 1px solid var(--border); white-space: nowrap; }
.tag-more { font-size: 11px; color: var(--fg-3); }

/* Avatar-Stack für Geteilt-Spalte */
.avatar-stack { display: flex; }
.mini-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -6px;
}
.mini-avatar:first-child { margin-left: 0; }

/* Row-Action (⋯ Knopf) */
.row-action {
  width: 24px; height: 24px;
  border-radius: 4px;
  color: var(--fg-3);
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.row-action:hover { background: var(--bg-3); color: var(--fg); }

/* Page-Head (Filter-Bereich) */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-4); margin-bottom: 6px;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin: 0; color: var(--fg); }
.page-sub   { font-size: 12.5px; color: var(--fg-3); margin-top: 4px; }

/* Filter-Pills */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .1s;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--fg-2);
}
.filter-pill:hover { background: var(--bg-3); color: var(--fg); }
.filter-pill.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }

/* Main area scroll */
.main-area { display: flex; flex-direction: column; min-width: 0; background: var(--bg); overflow: hidden; }
.main-body { flex: 1; overflow-y: auto; padding: var(--pad); }

/* ── Detail-Panel Medien-Vorschau ─────────────────────────────── */

/* Vollbild-Overlay für Bilder */
#img-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#img-fullscreen img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}

/* PDF-embed im Detail-Panel: sauber ohne Scrollbars rundherum */
.detail-panel embed[type="application/pdf"],
.detail-panel object[type="application/pdf"] {
  background: var(--bg-2);
  min-height: 340px;
}

/* Bild: Hover-Effekt zeigt Zoom-Cursor */
.detail-panel img[style*="zoom-in"] {
  transition: transform .15s;
}
.detail-panel img[style*="zoom-in"]:hover {
  transform: scale(1.01);
}

/* ── Recent-Cards (Zuletzt geöffnet Leiste) ───────────────────── */
.recent-card {
  flex-shrink: 0;
  width: 130px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .12s, border-color .12s, transform .12s;
}
.recent-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.recent-card__thumb {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.recent-card__body {
  padding: 7px 9px 8px;
  border-top: 1px solid var(--border);
}
.recent-card__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.recent-card__meta {
  font-size: 10.5px;
  color: var(--fg-4);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ── Versions-Timeline (Detail-Panel + Notes-Editor) ──────────── */
.version-dot.old {
  background: var(--bg-3);
  border: 1.5px solid var(--border-strong);
}

/* ── Quick-Stats Leiste ────────────────────────────────────────── */
.qs-bar {
  display: flex;
  gap: 10px;
  padding: 14px 24px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.qs-bar::-webkit-scrollbar { display: none; }

.qs-card {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .12s, border-color .12s, transform .12s;
  cursor: pointer;
  flex-shrink: 0;
}
.qs-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.qs-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.qs-body { min-width: 0; flex: 1; }
.qs-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.qs-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  margin-top: 2px;
  white-space: nowrap;
}
.qs-sub {
  font-size: 11px;
  color: var(--fg-4);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Speicher-Ring-Karte */
.qs-storage { cursor: default; }
.qs-storage:hover { transform: none; box-shadow: none; border-color: var(--border); }
.qs-ring-wrap { flex-shrink: 0; }
.qs-ring { width: 52px; height: 52px; }
