/* ==========================================================
   个人网盘 · 样式
   ========================================================== */
:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --text: #171a21;
  --text-2: #5b6472;
  --muted: #8b93a1;
  --border: #e8eaf1;
  --border-strong: #dcdfe9;
  --accent: #4f6ef7;
  --accent-2: #7a5cf5;
  --accent-soft: #eef1fe;
  --danger: #e5484d;
  --ok: #12a150;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 6px 20px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .18);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0d0f14;
  --panel: #151922;
  --panel-2: #1a1f2a;
  --text: #e9ecf2;
  --text-2: #a8b1c2;
  --muted: #7e8798;
  --border: #232936;
  --border-strong: #2e3646;
  --accent: #6b8afd;
  --accent-2: #9a7bff;
  --accent-soft: #1c2233;
  --danger: #f2555a;
  --ok: #2fce7d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: .16s ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0); }
.btn.ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { color: var(--text); border-color: var(--muted); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.06); }
.btn.block { width: 100%; justify-content: center; height: 42px; font-size: 14.5px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.split { display: inline-flex; }
.split .btn.primary:first-child { border-radius: 10px 0 0 10px; padding-right: 10px; }
.split .btn.caret { border-radius: 0 10px 10px 0; padding: 0 6px; border-left: 1px solid rgba(255, 255, 255, .22); }
.split .btn.caret svg { width: 14px; height: 14px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--text-2);
  transition: .15s;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }

.link { color: var(--accent); font-size: 12.5px; font-weight: 600; }

/* ---------------- 登录 ---------------- */
.login {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(900px 500px at 12% 8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(760px 480px at 88% 92%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 384px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: pop .32s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  flex: none;
}
.mark svg { width: 22px; height: 22px; }
.mark.lg { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 18px; }
.mark.lg svg { width: 30px; height: 30px; }
.login h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.2px; }
.login .sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.field { display: block; text-align: left; margin-bottom: 16px; }
.field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  outline: none;
  transition: .15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--panel); }
.login-err { color: var(--danger); font-size: 12.5px; height: 18px; margin-top: 10px; }
.login-foot { margin-top: 18px; font-size: 11.5px; color: var(--muted); }

/* ---------------- 布局 ---------------- */
.app { display: flex; height: 100dvh; overflow: hidden; }

.sidebar {
  width: 244px;
  flex: none;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 18px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { font-size: 15px; letter-spacing: -.2px; }
.brand-txt span { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }

.nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: .14s;
  text-align: left;
}
.nav-item svg { width: 18px; height: 18px; opacity: .85; }
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.nav-item.active svg { opacity: 1; }

.side-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.storage { padding: 4px 8px 12px; }
.storage-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.storage-top strong { color: var(--text-2); font-weight: 600; }
.storage-bar { height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; }
.storage-bar i { display: block; height: 100%; width: 2%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.storage-sub { font-size: 11px; color: var(--muted); margin-top: 7px; }
.side-actions { display: flex; gap: 4px; }

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

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  flex: none;
  padding: 0 20px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; overflow: hidden; }
.crumb {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: .14s;
}
.crumb:hover { background: var(--panel-2); color: var(--text); }
.crumb.current { color: var(--text); font-weight: 650; }
.crumb-sep { color: var(--border-strong); font-size: 12px; flex: none; }

.search {
  position: relative;
  flex: none;
  width: 220px;
}
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  outline: none;
  font-size: 13px;
  transition: .15s;
}
.search input:focus { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 14%, transparent); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.content {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 20px 60px;
  scroll-behavior: smooth;
}

.statusbar {
  flex: none;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 11.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--panel);
}

/* ---------------- 文件网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.grid.loading { opacity: .5; pointer-events: none; transition: opacity .15s; }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 10px 11px;
  transition: .18s cubic-bezier(.2, .8, .3, 1);
  cursor: pointer;
  animation: cardIn .26s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } }
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 9px;
  background: var(--panel-2);
  color: var(--k, var(--muted));
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--k, #888) 11%, transparent);
}
.thumb svg { width: 34px; height: 34px; position: relative; stroke-width: 1.5; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(10, 12, 18, .62);
  backdrop-filter: blur(4px);
}

.card-body { min-width: 0; }
.card .name {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.card .meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-menu {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text-2);
  opacity: 0;
  transition: .15s;
}
.card-menu svg { width: 15px; height: 15px; }
.card:hover .card-menu, .card-menu:focus-visible { opacity: 1; }
.card-menu:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 类型配色 */
.kind-folder { --k: #f0a531; }
.kind-image { --k: #ea8a1f; }
.kind-video { --k: #8b5cf6; }
.kind-audio { --k: #10b981; }
.kind-doc { --k: #3b82f6; }
.kind-archive { --k: #ef4444; }
.kind-other { --k: #7c8899; }

/* 空状态 */
.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 90px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .ico {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  margin-bottom: 6px;
}
.empty .ico svg { width: 34px; height: 34px; opacity: .55; }
.empty strong { color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.empty p { margin: 0; font-size: 12.5px; }

/* 拖拽提示 */
.drop-hint {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, .55));
  backdrop-filter: blur(3px);
}
[data-theme="dark"] .drop-hint { background: rgba(8, 10, 16, .6); }
.content.dragging .drop-hint { display: grid; }
.drop-inner {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 42px 60px;
  border-radius: 20px;
  border: 2px dashed var(--accent);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.drop-inner svg { width: 38px; height: 38px; color: var(--accent); margin-bottom: 4px; }
.drop-inner strong { font-size: 15px; }
.drop-inner span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 弹出菜单 ---------------- */
.menu {
  position: fixed;
  z-index: 100;
  min-width: 168px;
  padding: 5px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: menuIn .13s ease;
}
@keyframes menuIn { from { opacity: 0; transform: scale(.97); } }
.menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
}
.menu button svg { width: 16px; height: 16px; opacity: .8; }
.menu button:hover { background: var(--accent-soft); color: var(--accent); }
.menu button.danger { color: var(--danger); }
.menu button.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 6px; }

/* ---------------- 弹窗 ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 13, 20, .48);
  backdrop-filter: blur(4px);
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } }

.dialog {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  animation: pop .22s cubic-bezier(.2, .8, .3, 1);
}
.dialog h3 { margin: 0 0 8px; font-size: 16px; }
.dialog p { margin: 0 0 16px; font-size: 13px; color: var(--text-2); line-height: 1.6; word-break: break-word; }
.dialog input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  outline: none;
  margin-bottom: 16px;
}
.dialog input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 15%, transparent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

.folder-list {
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--panel-2);
}
.folder-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.folder-list button:last-child { border-bottom: 0; }
.folder-list button:hover { background: var(--accent-soft); color: var(--accent); }
.folder-list button.sel { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.folder-list button svg { width: 15px; height: 15px; color: var(--k, var(--accent)); }

/* 预览 */
.preview-box {
  width: min(1100px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pop .22s cubic-bezier(.2, .8, .3, 1);
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--border);
}
.preview-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-tools { display: flex; align-items: center; gap: 6px; }
.preview-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, var(--panel-2) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(-45deg, var(--panel-2) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(45deg, transparent 75%, var(--panel-2) 75%) -10px 0/20px 20px,
    linear-gradient(-45deg, transparent 75%, var(--panel-2) 75%) -10px 0/20px 20px;
  padding: 0;
}
.preview-body img, .preview-body video { max-width: 100%; max-height: 78vh; display: block; }
.preview-body audio { width: min(560px, 80vw); margin: 60px; }
.preview-body iframe { width: 100%; height: 78vh; border: 0; background: #fff; }
.preview-body pre {
  margin: 0;
  padding: 20px 24px;
  width: 100%;
  height: 100%;
  max-height: 78vh;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--panel);
  place-self: stretch;
  white-space: pre-wrap;
  word-break: break-word;
}
.preview-fallback { display: grid; justify-items: center; gap: 12px; padding: 70px 40px; color: var(--muted); font-size: 13px; }
.preview-fallback svg { width: 46px; height: 46px; opacity: .5; }

/* ---------------- 上传队列 ---------------- */
.uploader {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop .22s cubic-bezier(.2, .8, .3, 1);
}
.up-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.up-head strong { font-size: 12.5px; font-weight: 650; }
.up-list { max-height: 240px; overflow-y: auto; padding: 4px 0; }
.up-item { padding: 8px 14px; }
.up-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-bottom: 6px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.up-pct { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; font-size: 11px; }
.up-bar { height: 4px; border-radius: 99px; background: var(--border); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.up-item.done .up-pct { color: var(--ok); }
.up-item.done .up-bar i { background: var(--ok); }
.up-item.error .up-pct { color: var(--danger); }
.up-item.error .up-bar i { background: var(--danger); }

/* ---------------- Toast ---------------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
.toast {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: rgba(24, 28, 38, .94);
  box-shadow: var(--shadow);
  animation: toastIn .2s ease;
  max-width: min(80vw, 460px);
  text-align: center;
}
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- 响应式 ---------------- */
.only-mobile { display: none; }
.drawer-mask { display: none; }

@media (max-width: 940px) {
  .only-mobile { display: inline-grid; }
  .hide-sm { display: none; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.2, .8, .3, 1);
    box-shadow: var(--shadow-lg);
    width: 264px;
  }
  .app.drawer-open .sidebar { transform: none; }
  .app.drawer-open .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 20, .45);
    z-index: 35;
  }
  .topbar { height: 56px; padding: 0 12px; gap: 8px; }
  .search { width: 150px; }
  .content { padding: 14px 12px 70px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .card { padding: 8px 8px 9px; }
  .card .name { font-size: 12.5px; -webkit-line-clamp: 2; }
  .thumb svg { width: 28px; height: 28px; }
  .uploader { right: 10px; bottom: 10px; left: 10px; width: auto; }
  .preview-box { width: 100%; max-height: 94vh; }
  .preview-body iframe { height: 70vh; }
}

@media (max-width: 560px) {
  .search { display: none; }
  .card-menu { opacity: 1; width: 24px; height: 24px; }
  .top-actions .btn.ghost { padding: 0 10px; }
}
