.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
  border: 0;
}

.crumbs-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
}

.crumb-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.crumb-btn:hover {
  background: var(--subtle-bg);
  color: var(--text);
}

.crumb-current {
  color: var(--text);
  font-weight: 700;
  cursor: default;
}

.crumb-current:hover {
  background: transparent;
}

.crumb-ellipsis {
  cursor: pointer;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: 0.6;
}

.crumb-ellipsis:hover {
  opacity: 1;
}

.crumb-sep {
  color: var(--muted);
  opacity: 0.5;
  font-size: 13px;
  flex-shrink: 0;
}

.crumb {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.crumb.is-current {
  font-weight: 700;
  background: var(--panel-soft);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 280ms ease;
  cursor: pointer;
  overflow: hidden;
  height: 200px;
  justify-content: flex-start;
}

.item-pick {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.item-card:hover .item-pick {
  opacity: 0.6;
  transform: scale(1);
}

.item-pick.is-active {
  opacity: 1;
  transform: scale(1);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.item-pick.is-active svg {
  width: 12px;
  height: 12px;
}

.item-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.item-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: #f8fcfd;
}

.item-card-legacy {
  justify-content: center;
}

.item-icon {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--bg);
  border: none;
}

.item-icon.folder {
  color: #d97706;
  background: #fef3c7;
}

.item-icon.pdf {
  color: #dc2626;
  background: #fee2e2;
}

.item-icon.image {
  color: #0891b2;
  background: #cffafe;
}

.item-icon-image {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.item-icon.video {
  color: #7c3aed;
  background: #ede9fe;
}

.item-icon.audio {
  color: #db2777;
  background: #fce7f3;
}

.item-icon.archive {
  color: #65a30d;
  background: #ecfccb;
}

.item-icon.file,
.item-icon.text,
.item-icon.app {
  color: #64748b;
  background: var(--bg);
}

.item-icon svg {
  width: 30px;
  height: 30px;
}

.item-content {
  min-width: 0;
  max-width: 100%;
  flex: 1;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}

.item-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.item-meta {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--muted);
  font-size: 12px;
}

.item-card-back {
  justify-content: center;
  width: 150px;
}

.item-card-back .item-icon {
  color: var(--muted);
  background: var(--bg);
}

.item-card-back .item-title {
  font-size: 13px;
  color: var(--muted);
}

.item-chip {
  display: inline-flex;
  align-items: center;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.item-card:hover .item-actions,
.item-card.is-selected .item-actions {
  opacity: 1;
}

.item-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: all 160ms ease;
}

.item-action-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.item-action-btn svg {
  width: 16px;
  height: 16px;
}

.details-drawer-wrap {
  position: fixed;
  inset: 0;
  z-index: 26;
  pointer-events: none;
}

.details-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 180ms ease;
}

.details-drawer {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease, background 280ms ease, border-color 280ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.details-drawer.is-open {
  transform: translateX(0);
}

.details-drawer-wrap.is-open {
  pointer-events: auto;
}

.details-drawer-wrap.is-open .details-drawer-backdrop {
  opacity: 1;
}

.details-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.details-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 20px;
}

.details-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.details-panel-shell,
.details-panel-empty {
  display: grid;
  gap: 14px;
}

.details-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.details-panel-copy {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  word-break: break-all;
}

.details-panel-grid {
  display: grid;
  gap: 10px;
}

.details-kv {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.details-k {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.details-v {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
}

.details-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: batchBarIn 0.2s ease;
}

@keyframes batchBarIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.preview-modal-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.preview-media-shell {
  min-height: min(72vh, 760px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.preview-media-shell img,
.preview-media-shell video,
.preview-media-shell iframe {
  width: 100%;
  max-height: min(72vh, 760px);
  border: 0;
  object-fit: contain;
  background: white;
  border-radius: var(--radius-md);
}

.preview-text {
  margin: 0;
  padding: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.preview-editor {
  width: 100%;
  min-height: min(70vh, 720px);
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  padding: 20px;
  line-height: 1.7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.preview-stage {
  flex: 1;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.preview-stage img,
.preview-stage video,
.preview-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: white;
}

.preview-edit-meta {
  font-size: 12px;
  color: var(--muted);
  margin-right: auto;
  align-self: center;
}

.preview-edit-meta[data-dirty="true"] {
  color: #c0392b;
}

.upload-panel {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(800px, calc(100vw - 48px));
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: fadeSlideUp 260ms ease;
}

.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.upload-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.upload-panel-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.upload-panel-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.upload-panel-btn:hover {
  background: var(--subtle-bg);
}

.upload-panel-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.upload-panel-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 120px;
  overflow-x: auto;
  overflow-y: hidden;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  flex: 1 1 auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--subtle-bg);
}

.upload-row-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--muted);
}

.upload-row-icon svg { width: 100%; height: 100%; }

.upload-row[data-status="success"] .upload-row-icon { color: #18794e; }
.upload-row[data-status="error"] .upload-row-icon { color: #c0392b; }

.upload-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.upload-row-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.upload-row-track {
  height: 4px;
  border-radius: 999px;
  background: var(--track-bg);
  overflow: hidden;
}

.upload-row-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.upload-row[data-status="success"] .upload-row-bar { background: #18794e; }
.upload-row[data-status="error"] .upload-row-bar { background: #c0392b; }

.upload-row-status {
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 36px;
  text-align: right;
}

.upload-row-remove,
.upload-row-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background .15s;
}

.upload-row-btn:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.result-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 12px;
  font-size: 13px;
  color: var(--muted);
}

.result-hint .status-dot { flex: 0 0 auto; }

.markdown-body {
  line-height: 1.7;
  color: var(--text);
  word-wrap: break-word;
  overflow-y: auto;
  max-height: 100%;
  padding: 4px 2px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 1.2em 0 0.6em;
  line-height: 1.3;
  font-weight: 700;
}

.markdown-body h1 { font-size: 1.6em; }
.markdown-body h2 { font-size: 1.35em; }
.markdown-body h3 { font-size: 1.15em; }
.markdown-body p { margin: 0.6em 0; }
.markdown-body ul,
.markdown-body ol { margin: 0.6em 0; padding-left: 1.6em; }
.markdown-body li { margin: 0.25em 0; }

.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--subtle-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.markdown-body pre {
  background: var(--subtle-bg);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
}

.markdown-body blockquote {
  margin: 0.8em 0;
  padding: 0.2em 1em;
  border-left: 3px solid rgba(191, 58, 45, 0.5);
  color: var(--muted);
}

.markdown-body a { color: #c0392b; text-decoration: underline; }

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-strong) 10%, transparent);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.drop-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 60px;
  border: 2px dashed var(--accent-strong);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.drop-overlay-icon {
  font-size: 40px;
  color: var(--accent-strong);
  line-height: 1;
}

.drop-overlay-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-strong);
}

/* Notifications */
.notif-wrap {
  position: relative;
}

.notif-bell {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  width: min(380px, calc(100vw - 32px));
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 400px;
}

.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.notif-dropdown-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.notif-dropdown-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 120ms ease;
}

.notif-item:hover {
  background: var(--hover-bg);
}

.notif-item-unread {
  background: var(--accent-soft);
}

.notif-item-main {
  flex: 1;
  min-width: 0;
}

.notif-item-msg {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
}

.notif-item-time {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.notif-item-dismiss {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  font-size: 14px;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 120ms ease;
}

.notif-item:hover .notif-item-dismiss {
  opacity: 1;
}

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* List Table Mode */
.list-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 200px);
}

.list-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.list-table-wrap::-webkit-scrollbar-track {
  background: var(--subtle-bg);
  border-radius: 4px;
}

.list-table-wrap::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.list-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.list-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.list-table th {
  padding: 0;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.list-table th .th-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.list-table th.col-sortable {
  cursor: pointer;
  transition: background 0.15s ease;
}

.list-table th.col-sortable:hover {
  background: var(--hover-bg);
}

.list-table th.col-sortable .sort-icon {
  opacity: 0.3;
  transition: opacity 0.15s ease;
}

.list-table th.col-sortable:hover .sort-icon {
  opacity: 0.6;
}

.list-table th.col-sortable.sort-active .sort-icon {
  opacity: 1;
  color: var(--accent);
}

.list-table th.col-right .th-inner {
  justify-content: flex-end;
}

.list-table td {
  padding: 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.list-table tbody tr {
  transition: background 0.12s ease;
}

.list-table tbody tr:hover {
  background: rgba(14, 116, 144, 0.03);
}

.list-table tbody tr.is-selected {
  background: rgba(14, 116, 144, 0.06);
}

[data-theme="dark"] .list-table tbody tr:hover {
  background: rgba(14, 116, 144, 0.08);
}

[data-theme="dark"] .list-table tbody tr.is-selected {
  background: rgba(14, 116, 144, 0.12);
}

.list-table tbody tr:last-child td {
  border-bottom: none;
}

.list-table .col-checkbox {
  width: 48px;
  text-align: center;
}

.list-table .col-checkbox .th-inner {
  justify-content: center;
  padding: 12px 8px;
}

.list-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  opacity: 0;
  transform: scale(0.8);
}

.list-table tbody tr:hover .list-checkbox,
.list-checkbox.is-checked {
  opacity: 1;
  transform: scale(1);
}

.list-checkbox:hover {
  border-color: var(--accent);
  background: rgba(14, 116, 144, 0.05);
}

.list-checkbox.is-checked {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 6px rgba(14, 116, 144, 0.25);
}

.list-checkbox.is-checked svg {
  width: 12px;
  height: 12px;
}

.list-table .row-back td {
  padding: 0;
}

.list-table .row-back:hover {
  background: transparent;
}

.list-back-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.list-back-btn:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.list-back-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.list-table .col-name {
  min-width: 200px;
}

.list-table .col-name .th-inner {
  padding: 12px 16px;
}

.list-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.list-name-cell .cell-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.list-table tbody tr:hover .list-name-cell .cell-icon {
  transform: scale(1.05);
}

.list-name-cell .cell-icon svg {
  width: 20px;
  height: 20px;
}

.list-name-cell .cell-icon.folder {
  color: #d97706;
  background: #fef3c7;
}

.list-name-cell .cell-icon.pdf {
  color: #dc2626;
  background: #fee2e2;
}

.list-name-cell .cell-icon.image {
  color: #0891b2;
  background: #cffafe;
}

.list-name-cell .cell-icon.video {
  color: #7c3aed;
  background: #ede9fe;
}

.list-name-cell .cell-icon.audio {
  color: #db2777;
  background: #fce7f3;
}

.list-name-cell .cell-icon.archive {
  color: #65a30d;
  background: #ecfccb;
}

.list-name-cell .cell-icon.file,
.list-name-cell .cell-icon.text {
  color: #64748b;
  background: var(--bg);
}

[data-theme="dark"] .list-name-cell .cell-icon.folder { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
[data-theme="dark"] .list-name-cell .cell-icon.pdf { color: #f87171; background: rgba(248, 113, 113, 0.12); }
[data-theme="dark"] .list-name-cell .cell-icon.image { color: #22d3ee; background: rgba(34, 211, 238, 0.12); }
[data-theme="dark"] .list-name-cell .cell-icon.video { color: #a78bfa; background: rgba(167, 139, 250, 0.12); }
[data-theme="dark"] .list-name-cell .cell-icon.audio { color: #f472b6; background: rgba(244, 114, 182, 0.12); }
[data-theme="dark"] .list-name-cell .cell-icon.archive { color: #a3e635; background: rgba(163, 230, 53, 0.12); }

.list-name-cell .cell-name {
  min-width: 0;
  flex: 1;
}

.list-name-cell .cell-name-text {
  display: block;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.list-table tbody tr:hover .list-name-cell .cell-name-text {
  color: var(--accent-strong);
}

.list-name-cell .cell-name-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.list-table .col-size,
.list-table .col-time {
  white-space: nowrap;
}

.list-table .col-size .th-inner,
.list-table .col-time .th-inner {
  padding: 12px 16px;
}

.list-cell-text {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.list-table tbody tr:hover .list-cell-text {
  color: var(--text);
}

.list-table .col-ops {
  width: 100px;
  text-align: right;
}

.list-table .col-ops .th-inner {
  justify-content: flex-end;
  padding: 12px 16px;
}

.list-ops-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.list-table tbody tr:hover .list-ops-cell {
  opacity: 1;
}

.list-ops-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.list-ops-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.list-ops-btn svg {
  width: 14px;
  height: 14px;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  background: #1e293b;
  color: white;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

.list-cell-placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--hover-bg);
}

.notif-table-row-unread {
  background: var(--accent-soft);
}

.table-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hover-bg);
  color: var(--muted);
}

.table-tag-unread {
  background: var(--primary-soft);
  color: var(--primary);
}

.inspector {
  padding: 18px;
}

.inspector-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.inspector-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.inspector-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Dark Mode: Tailwind utility overrides */
[data-theme="dark"] body,
[data-theme="dark"] .text-slate-800 { color: var(--text); }
[data-theme="dark"] .text-slate-900 { color: var(--text); }
[data-theme="dark"] .text-slate-700 { color: #cbd5e1; }
[data-theme="dark"] .text-slate-600 { color: #94a3b8; }
[data-theme="dark"] .text-slate-500 { color: #64748b; }
[data-theme="dark"] .text-slate-400 { color: #475569; }

[data-theme="dark"] .bg-white { background-color: var(--panel); }
[data-theme="dark"] .bg-\[\#fafbfc\] { background-color: var(--panel-soft); }
[data-theme="dark"] .bg-slate-50 { background-color: var(--panel-soft); }
[data-theme="dark"] .bg-slate-100 { background-color: var(--subtle-bg); }

[data-theme="dark"] .border-slate-200 { border-color: var(--line); }
[data-theme="dark"] .border-slate-200\/60 { border-color: var(--line); }
[data-theme="dark"] .border-slate-300 { border-color: var(--line-strong); }
[data-theme="dark"] .header-icon-btn { border-color: var(--line); }

[data-theme="dark"] .hover\:bg-slate-50:hover { background-color: var(--hover-bg); }
[data-theme="dark"] .hover\:bg-slate-100:hover { background-color: var(--hover-bg); }

[data-theme="dark"] .focus\:bg-white:focus { background-color: var(--panel); }
[data-theme="dark"] .focus\:border-slate-300:focus { border-color: var(--line-strong); }

[data-theme="dark"] .item-card.is-selected {
  background: rgba(56, 189, 248, 0.06);
}

[data-theme="dark"] .item-pick {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--accent);
}
[data-theme="dark"] .item-pick.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

[data-theme="dark"] .item-icon { color: var(--muted); background: var(--panel); }
[data-theme="dark"] .item-icon.folder { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
[data-theme="dark"] .item-icon.pdf { color: #f87171; background: rgba(248, 113, 113, 0.12); }
[data-theme="dark"] .item-icon.image { color: #22d3ee; background: rgba(34, 211, 238, 0.12); }
[data-theme="dark"] .item-icon.video { color: #a78bfa; background: rgba(167, 139, 250, 0.12); }
[data-theme="dark"] .item-icon.audio { color: #f472b6; background: rgba(244, 114, 182, 0.12); }
[data-theme="dark"] .item-icon.archive { color: #a3e635; background: rgba(163, 230, 53, 0.12); }

[data-theme="dark"] .text-red-600 { color: #f87171; }
[data-theme="dark"] .border-red-200 { border-color: rgba(248, 113, 113, 0.3); }
[data-theme="dark"] .hover\:bg-red-50:hover { background-color: rgba(248, 113, 113, 0.1); }

[data-theme="dark"] .bg-sky-100 { background-color: rgba(56, 189, 248, 0.15); }
[data-theme="dark"] .text-sky-600 { color: #38bdf8; }
[data-theme="dark"] .bg-sky-600 { background-color: #0284c7; }
[data-theme="dark"] .hover\:bg-sky-700:hover { background-color: #0369a1; }
[data-theme="dark"] .focus\:border-sky-500:focus { border-color: #0ea5e9; }
