/* 远航云盘 — p.trade222.com */

:root {
  --bg: #f4f6fa;
  --bg-elev: #ffffff;
  --bg-sunken: #eaeef5;
  --bg-hover: #eef2f9;
  --text: #16202e;
  --text-2: #5b6b80;
  --text-3: #8b9aad;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #e8f0fe;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --ok: #059669;
  --warn: #d97706;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .18);
  --radius: 10px;
  --radius-lg: 16px;
  --topbar-h: 58px;
  --sidebar-w: 220px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0d1420;
  --bg-elev: #16202e;
  --bg-sunken: #0a1019;
  --bg-hover: #1e2b3d;
  --text: #e6ecf5;
  --text-2: #9aabc2;
  --text-3: #6b7c93;
  --border: #223044;
  --border-strong: #33465f;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: #1a2b45;
  --danger: #f87171;
  --danger-soft: #3b1d1d;
  --ok: #34d399;
  --shadow: 0 4px 16px rgba(0, 0, 0, .4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--text-2); }

button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: inherit; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 17px; height: 17px; flex: none; }

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--text);
  font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .06s;
}
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border); background: var(--bg-elev); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; justify-content: center; height: 40px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.small { width: 26px; height: 26px; font-size: 18px; line-height: 1; }

.link-btn {
  border: none; background: none; color: var(--primary);
  padding: 2px 4px; font-size: 12px;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- 登录 ---------- */
.auth-view {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: radial-gradient(1200px 600px at 50% -10%, var(--primary-soft), transparent 70%), var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 380px; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.2px; }
.brand p { margin: 2px 0 0; font-size: 12px; }
.brand-logo, .logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.brand-logo::after, .logo-mark::after { content: "航"; }
.logo-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--text-2); font-weight: 500; }
.field input {
  height: 40px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--bg); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-msg { margin: 0; font-size: 12.5px; color: var(--danger); min-height: 16px; }
.setup-tip { margin: 0 0 4px; font-size: 13px; color: var(--text-2); }
.auth-foot { font-size: 12px; color: var(--text-3); margin: 0; }

/* ---------- 主布局 ---------- */
.app { height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px; background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.menu-toggle { display: none; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.logo-text { font-weight: 650; font-size: 15px; letter-spacing: -.2px; }
.topbar-center { flex: 1; display: flex; justify-content: center; }
.searchbox {
  position: relative; width: 100%; max-width: 460px;
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 11px; width: 16px; height: 16px;
  color: var(--text-3); pointer-events: none;
}
.searchbox input {
  width: 100%; height: 36px; padding: 0 34px 0 34px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--bg-elev); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 6px; width: 24px; height: 24px;
  border: none; border-radius: 50%; background: transparent;
  color: var(--text-3); font-size: 17px; line-height: 1;
}
.search-clear:hover { background: var(--bg-hover); }
.topbar-right { display: flex; align-items: center; gap: 8px; min-width: 180px; justify-content: flex-end; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #6366f1, #2563eb); color: #fff;
  font-weight: 600; font-size: 14px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
}
.usermenu { position: relative; }
.usermenu-pop {
  position: absolute; right: 0; top: 42px; width: 210px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 50;
}
.um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.um-name { font-weight: 600; }
.um-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.um-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border: none; border-radius: 7px;
  background: none; color: var(--text); font-size: 13.5px;
}
.um-item:hover { background: var(--bg-hover); }
.um-item.danger { color: var(--danger); }

.body { flex: 1; display: flex; min-height: 0; }

.sidebar {
  width: var(--sidebar-w); flex: none;
  background: var(--bg-elev); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 12px 10px;
  gap: 14px; overflow-y: auto;
}
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 11px; border: none; border-radius: 8px;
  background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500;
  text-align: left; position: relative;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
html[data-theme="dark"] .nav-item.active { color: #93c5fd; }
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}

.storage-card {
  margin-top: auto; padding: 12px; border-radius: var(--radius);
  background: var(--bg-sunken); border: 1px solid var(--border);
}
.storage-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); margin-bottom: 7px; }
.storage-bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.storage-fill { height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #06b6d4); transition: width .4s; }
.storage-fill.warn { background: linear-gradient(90deg, #f59e0b, #f97316); }
.storage-fill.danger { background: linear-gradient(90deg, #ef4444, #dc2626); }
.storage-text { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.sidebar-foot { display: flex; gap: 6px; }
.mini-btn {
  flex: 1; height: 28px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-elev); color: var(--text-2); font-size: 12px;
}
.mini-btn:hover { background: var(--bg-hover); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.toolbar {
  height: 52px; flex: none; display: flex; align-items: center;
  padding: 0 16px; gap: 12px; border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.crumbs { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.crumb {
  border: none; background: none; color: var(--text-2);
  padding: 4px 7px; border-radius: 6px; font-size: 13.5px;
  white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.crumb:hover { background: var(--bg-hover); color: var(--text); }
.crumb.last { color: var(--text); font-weight: 600; }
.crumb-sep { color: var(--text-3); font-size: 12px; user-select: none; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.selinfo { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.viewswitch { display: flex; background: var(--bg-sunken); border-radius: 8px; padding: 2px; }
.vs-btn {
  width: 30px; height: 28px; border: none; border-radius: 6px;
  background: none; color: var(--text-3); display: flex; align-items: center; justify-content: center;
}
.vs-btn svg { width: 15px; height: 15px; }
.vs-btn.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.sort-select {
  height: 30px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-elev); color: var(--text-2); padding: 0 6px; outline: none; font-size: 12.5px;
}

.content { flex: 1; overflow-y: auto; padding: 16px; position: relative; }

/* ---------- 文件网格 ---------- */
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}
.tile {
  position: relative; border: 1px solid transparent; border-radius: var(--radius);
  padding: 10px 8px 9px; cursor: default; user-select: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: background .12s, border-color .12s;
}
.tile:hover { background: var(--bg-hover); }
.tile.selected { background: var(--primary-soft); border-color: rgba(37, 99, 235, .35); }
.tile.dragover { border-color: var(--primary); background: var(--primary-soft); }
.thumb {
  width: 100%; aspect-ratio: 1 / 1; max-height: 92px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; overflow: hidden; background: var(--bg-sunken);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .fico { width: 42px; height: 42px; }
.tile-name {
  width: 100%; text-align: center; font-size: 12.5px; line-height: 1.35;
  word-break: normal; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-meta { font-size: 11px; color: var(--text-3); }
.tile-star { position: absolute; top: 8px; right: 8px; font-size: 12px; color: #f59e0b; }
.tile-check {
  position: absolute; top: 9px; left: 9px; width: 17px; height: 17px;
  border-radius: 50%; border: 1.5px solid var(--border-strong);
  background: var(--bg-elev); display: none;
}
.tile.selected .tile-check { display: flex; align-items: center; justify-content: center; background: var(--primary); border-color: var(--primary); color: #fff; font-size: 11px; }
.tile.selected .tile-check::after { content: "✓"; }

/* ---------- 文件列表 ---------- */
.listview { width: 100%; border-collapse: separate; border-spacing: 0; }
.listview thead th {
  position: sticky; top: -16px; z-index: 2;
  text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3);
  padding: 8px 12px; background: var(--bg-elev); border-bottom: 1px solid var(--border);
}
.listview tbody tr { cursor: default; }
.listview tbody td {
  padding: 9px 12px; font-size: 13px; border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.listview tbody tr:hover td { background: var(--bg-hover); }
.listview tbody tr.selected td { background: var(--primary-soft); }
.listview .c-name { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 500; }
.listview .c-name .fico { width: 20px; height: 20px; flex: none; }
.listview .c-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listview .c-size, .listview .c-time { font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--text-2); }
.empty-icon { font-size: 46px; margin-bottom: 10px; opacity: .55; }
.empty p { margin: 0 0 16px; font-size: 14px; }

.dropzone-hint {
  position: absolute; inset: 10px; border: 2px dashed var(--primary);
  border-radius: var(--radius-lg); background: rgba(37, 99, 235, .06);
  display: none; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--primary); z-index: 20;
  pointer-events: none;
}
.content.dragging .dropzone-hint { display: flex; }

/* ---------- 右键菜单 ---------- */
.ctxmenu {
  position: fixed; z-index: 200; min-width: 172px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px;
}
.ctx-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 12px; border: none; border-radius: 7px;
  background: none; color: var(--text); font-size: 13px; text-align: left;
}
.ctx-item:hover { background: var(--bg-hover); }
.ctx-item.danger { color: var(--danger); }
.ctx-item .ic { width: 15px; height: 15px; color: var(--text-3); }
.ctx-item.danger .ic { color: var(--danger); }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 6px; }
.ctx-label { padding: 6px 10px 4px; font-size: 11px; color: var(--text-3); }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(9, 15, 25, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px); animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal {
  width: 100%; max-width: 420px; background: var(--bg-elev);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden; animation: pop .18s;
}
.modal.wide { max-width: 560px; }
.modal-head { padding: 16px 18px 0; font-size: 15.5px; font-weight: 600; }
.modal-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-body p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.modal-input {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--bg); color: var(--text); outline: none;
}
.modal-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.modal-foot {
  padding: 0 18px 16px; display: flex; justify-content: flex-end; gap: 8px;
}
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-size: 12px; color: var(--text-2); }
.form-row input, .form-row select {
  height: 36px; padding: 0 10px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--bg); color: var(--text); outline: none;
}
.form-row input:focus, .form-row select:focus { border-color: var(--primary); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.check-row input { width: 15px; height: 15px; accent-color: var(--primary); }

/* ---------- 上传面板 ---------- */
.upload-panel {
  position: fixed; right: 18px; bottom: 18px; width: 340px; max-height: 46vh;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 250;
  display: flex; flex-direction: column; overflow: hidden;
}
.up-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
}
.up-head > div { display: flex; align-items: center; gap: 4px; }
.up-list { overflow-y: auto; padding: 6px; }
.up-item { padding: 8px 10px; border-radius: 8px; }
.up-item:hover { background: var(--bg-hover); }
.up-name { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.up-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-name span:last-child { color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.up-bar { height: 4px; border-radius: 2px; background: var(--bg-sunken); overflow: hidden; }
.up-fill { height: 100%; width: 0; background: var(--primary); border-radius: 2px; transition: width .2s; }
.up-item.done .up-fill { background: var(--ok); }
.up-item.err .up-fill { background: var(--danger); }

/* ---------- 预览 ---------- */
.preview-root {
  position: fixed; inset: 0; z-index: 400; background: rgba(8, 12, 20, .93);
  display: flex; flex-direction: column; animation: fade .15s;
}
.pv-head {
  height: 56px; flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; color: #e8eef7;
}
.pv-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-btn {
  width: 36px; height: 36px; border: none; border-radius: 8px;
  background: rgba(255, 255, 255, .1); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.pv-btn:hover { background: rgba(255, 255, 255, .2); }
.pv-body { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 0 16px 24px; }
.pv-body img, .pv-body video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pv-body iframe { width: 100%; height: 100%; border: none; background: #fff; border-radius: 8px; }
.pv-text {
  width: 100%; height: 100%; overflow: auto; background: var(--bg-elev);
  color: var(--text); border-radius: 8px; padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
  margin: 0;
}
.pv-audio { width: 100%; max-width: 560px; }

/* ---------- Toast ---------- */
.toast-root {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: 999px;
  background: rgba(20, 28, 40, .95); color: #fff; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: pop .18s; max-width: 80vw;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }

/* ---------- 分享页 ---------- */
.share-view {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(900px 500px at 50% 0%, var(--primary-soft), transparent 70%), var(--bg);
}
.share-card {
  width: 100%; max-width: 440px; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.share-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 14px; margin-bottom: 20px; color: var(--text-2);
}
.share-fileico {
  width: 62px; height: 62px; border-radius: 14px; margin: 0 auto 14px;
  background: var(--bg-sunken); display: flex; align-items: center; justify-content: center;
}
.share-fileico .fico { width: 34px; height: 34px; }
.share-name { text-align: center; font-size: 16px; font-weight: 600; margin: 0 0 6px; word-break: break-all; }
.share-meta { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 0 0 20px; }
.share-actions { display: flex; flex-direction: column; gap: 10px; }
.share-expired { text-align: center; color: var(--text-2); padding: 24px 0; }

/* 文件类型图标配色 */
.fico-dir { color: #f59e0b; }
.fico-img { color: #10b981; }
.fico-vid { color: #8b5cf6; }
.fico-aud { color: #ec4899; }
.fico-pdf { color: #ef4444; }
.fico-doc { color: #2563eb; }
.fico-xls { color: #16a34a; }
.fico-ppt { color: #ea580c; }
.fico-zip { color: #a16207; }
.fico-code { color: #0891b2; }
.fico-txt { color: #64748b; }
.fico-exe { color: #475569; }
.fico-file { color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .topbar-center { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar-left { min-width: 0; }
  .topbar-right { min-width: 0; }
  .logo-text { display: none; }
  .sidebar {
    position: fixed; left: 0; top: var(--topbar-h); bottom: 0; z-index: 40;
    transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .toolbar { padding: 0 10px; gap: 8px; }
  .sort-select { display: none; }
  .content { padding: 10px; }
  .listview thead th:nth-child(3), .listview tbody td:nth-child(3) { display: none; }
  .upload-panel { left: 10px; right: 10px; width: auto; bottom: 10px; }
  .pv-body { padding: 0 4px 10px; }
}
