/* =========================================================
   液态玻璃（Liquid Glass）主题
   - 模糊 + 饱和度 + 边缘高光的玻璃材质（所有浏览器）
   - Chromium 内核额外叠加 SVG 位移贴图折射（由 js/glass.js 生成并设置 --lg-url）
   - 控件的水滴张力 / 拖拽 / 回弹由 js/glass.js 用弹簧物理驱动
   ========================================================= */
:root {
  --bg: #e9eef7;
  --text: #121722;
  --muted: #5b6577;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --accent-soft: rgba(37, 99, 235, .14);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, .13);
  --ok: #15803d;
  --ok-soft: rgba(22, 163, 74, .15);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, .15);

  /* 玻璃材质 */
  --glass-panel: rgba(255, 255, 255, .42);
  --glass-ctl: rgba(255, 255, 255, .38);
  --glass-ctl-hover: rgba(255, 255, 255, .55);
  --glass-field: rgba(255, 255, 255, .5);
  --glass-line: rgba(18, 23, 34, .08);
  --rim-a: rgba(255, 255, 255, .95);
  --rim-b: rgba(255, 255, 255, .18);
  --inner-hi: rgba(255, 255, 255, .7);
  --inner-lo: rgba(255, 255, 255, .25);
  --glass-shadow: 0 10px 30px -8px rgba(30, 41, 80, .22), 0 2px 6px rgba(30, 41, 80, .08);
  --ctl-shadow: 0 4px 12px -4px rgba(30, 41, 80, .25), 0 1px 2px rgba(30, 41, 80, .1);
  --spec: rgba(255, 255, 255, .75);

  --radius: 22px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a12;
    --text: #eef1f7;
    --muted: #9aa3b5;
    --accent: #6d9bff;
    --accent-2: #a78bfa;
    --accent-soft: rgba(109, 155, 255, .18);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, .16);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, .15);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .15);

    --glass-panel: rgba(28, 33, 46, .45);
    --glass-ctl: rgba(255, 255, 255, .09);
    --glass-ctl-hover: rgba(255, 255, 255, .16);
    --glass-field: rgba(0, 0, 0, .22);
    --glass-line: rgba(255, 255, 255, .08);
    --rim-a: rgba(255, 255, 255, .45);
    --rim-b: rgba(255, 255, 255, .06);
    --inner-hi: rgba(255, 255, 255, .22);
    --inner-lo: rgba(255, 255, 255, .06);
    --glass-shadow: 0 14px 40px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --ctl-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .3);
    --spec: rgba(255, 255, 255, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 背景：玻璃需要有内容可折射 ---------- */
body::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 34vmax at 12% 18%, #60a5fa 0%, transparent 62%),
    radial-gradient(34vmax 30vmax at 88% 12%, #f472b6 0%, transparent 60%),
    radial-gradient(40vmax 36vmax at 78% 82%, #34d399 0%, transparent 62%),
    radial-gradient(30vmax 30vmax at 22% 88%, #fbbf24 0%, transparent 60%),
    radial-gradient(44vmax 40vmax at 50% 50%, #a78bfa 0%, transparent 65%);
  opacity: .55;
  filter: saturate(1.15);
}
body::after {
  /* 细网格：让折射时的弯曲清晰可见 */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--glass-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: .5; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0; font-weight: 650; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }

/* =========================================================
   玻璃材质（面板）
   ========================================================= */
.card, .stat, .toast { position: relative; }
.card, .stat, dialog, .topbar, .sidenav, .toast {
  background: var(--glass-panel);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  backdrop-filter: var(--lg-url,) blur(18px) saturate(185%);
  border: 0;
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 1px var(--inner-hi),
    inset 0 -1px 1px var(--inner-lo),
    inset 0 0 18px -6px var(--inner-lo);
}
/* 边缘高光：渐变描边，模拟玻璃厚度的反光 */
.card::after, .stat::after, dialog::after, .topbar::after, .sidenav::after, .toast::after,
.btn::after, .seg button::after, .sidenav a.active::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(var(--rim-angle, 135deg), var(--rim-a), var(--rim-b) 38%, var(--rim-b) 62%, var(--rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* =========================================================
   按钮（玻璃水滴）
   ========================================================= */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 0; color: var(--text);
  background: var(--glass-ctl);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  backdrop-filter: var(--lg-url,) blur(8px) saturate(180%);
  box-shadow: var(--ctl-shadow), inset 0 1px 1px var(--inner-hi), inset 0 -1px 2px var(--inner-lo);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, opacity .2s;
  will-change: transform;
  user-select: none; -webkit-user-select: none;
}
/* 指针跟随的高光 */
.btn::before, .seg button::before, .sidenav a::before, .stat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--spec), transparent 62%);
  opacity: 0; transition: opacity .25s;
}
.btn:hover::before, .seg button:hover::before, .sidenav a:hover::before, .stat:hover::before, .lg-hot::before { opacity: 1; }
.btn:hover { background: var(--glass-ctl-hover); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #fff 22%), var(--accent));
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(0, 0, 0, .12);
  --spec: rgba(255, 255, 255, .55);
  --rim-a: rgba(255, 255, 255, .8);
}
.btn.primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff 30%), var(--accent)); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.ghost::after { opacity: 0; transition: opacity .2s; }
.btn.ghost:hover { background: var(--glass-ctl); }
.btn.ghost:hover::after { opacity: 1; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.lg svg { width: 18px; height: 18px; }

/* =========================================================
   表单
   ========================================================= */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 550; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; height: 40px; padding: 0 14px; border-radius: 14px;
  border: 1px solid transparent; color: var(--text); font: inherit;
  background: var(--glass-field);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), inset 0 0 0 1px var(--glass-line), 0 1px 0 var(--inner-lo);
  transition: box-shadow .2s, background-color .2s;
}
select { padding-right: 8px; }
textarea { height: auto; padding: 10px 14px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: color-mix(in srgb, var(--glass-field) 70%, var(--accent-soft));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn:focus-visible, .seg button:focus-visible, .sidenav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:disabled { opacity: .55; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* =========================================================
   卡片
   ========================================================= */
.card { border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- 居中页面（登录、注册、分享） ---------- */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.center-page .card { border-radius: 30px; padding: 30px 28px; }
.narrow { width: 100%; max-width: 420px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 700; font-size: 16px; }
.logo {
  width: 36px; height: 36px; border-radius: 12px; color: #fff; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent) 55%, var(--accent-2));
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 -2px 4px rgba(0, 0, 0, .15);
}
.logo svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-line) 30%, var(--glass-line) 70%, transparent); }
.alert { padding: 10px 14px; border-radius: 14px; margin-bottom: 14px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--glass-line); }
.alert.err { background: var(--danger-soft); color: var(--danger); }
.alert.info { background: var(--accent-soft); color: var(--accent); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }

/* =========================================================
   应用框架
   ========================================================= */
.topbar {
  position: sticky; top: 10px; z-index: 10; height: 56px;
  display: flex; align-items: center; gap: 16px; padding: 0 12px 0 18px;
  max-width: 1256px; margin: 10px auto 0; border-radius: 999px;
}
@media (max-width: 1296px) { .topbar { margin: 10px 20px 0; } }
.topbar .brand { margin: 0; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), 0 3px 8px -3px rgba(0, 0, 0, .35);
}
.layout { display: flex; max-width: 1296px; margin: 0 auto; gap: 24px; padding: 24px 20px 40px; }
.sidenav {
  width: 200px; flex: none; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 90px; align-self: flex-start; padding: 8px; border-radius: 24px;
}
.sidenav a {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 16px;
  color: var(--text); font-weight: 550; will-change: transform;
}
.sidenav a:hover { text-decoration: none; }
.sidenav a.active {
  color: var(--accent);
  background: var(--glass-ctl-hover);
  box-shadow: var(--ctl-shadow), inset 0 1px 1px var(--inner-hi);
}
.sidenav svg { width: 18px; height: 18px; flex: none; }
main { flex: 1; min-width: 0; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; padding: 0 4px; }
.page-title h1 { margin: 0; }

@media (max-width: 820px) {
  .topbar { margin: 8px 12px 0; top: 8px; padding: 0 8px 0 14px; }
  .layout { flex-direction: column; padding: 14px 12px 32px; gap: 14px; }
  .sidenav { width: auto; flex-direction: row; overflow-x: auto; position: relative; top: 0; gap: 4px; padding: 6px; border-radius: 22px; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav a { white-space: nowrap; padding: 7px 12px; }
  .user-chip .uname { display: none; }
  .card { padding: 16px; border-radius: 20px; }
}

/* =========================================================
   表格
   ========================================================= */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 4px 22px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--glass-line); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: color-mix(in srgb, var(--glass-ctl) 70%, transparent); }
tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; }
tbody tr:hover td:last-child { border-radius: 0 12px 12px 0; }
tbody tr:last-child td { border-bottom: none; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 4px; }
.fname { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.fname .ficon {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--accent); flex: none; text-transform: uppercase;
  background: var(--accent-soft); box-shadow: inset 0 1px 1px var(--inner-hi), inset 0 0 0 1px var(--glass-line);
}
.fname .n { font-weight: 550; word-break: break-all; }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }

@media (max-width: 820px) {
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  table.responsive thead { display: none; }
  table.responsive tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--glass-line); }
  table.responsive tr:last-child { border-bottom: none; }
  table.responsive tbody tr:hover { background: none; }
  table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 3px 0; text-align: right; }
  table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  table.responsive td.main { display: block; text-align: left; }
  table.responsive td.main::before { display: none; }
  table.responsive td.actions { justify-content: flex-end; padding-top: 8px; flex-wrap: wrap; gap: 6px; }
  table.responsive td.actions .btn { margin: 0; }
  table.responsive td.actions::before { display: none; }
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 550; white-space: nowrap;
  background: var(--glass-ctl); color: var(--muted); box-shadow: inset 0 1px 1px var(--inner-lo), inset 0 0 0 1px var(--glass-line);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--accent-soft); color: var(--accent); }

/* ---------- 上传区 ---------- */
.dropzone {
  border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 18px; padding: 24px; text-align: center;
  color: var(--muted); transition: border-color .2s, background-color .2s, color .2s, transform .35s cubic-bezier(.34, 1.56, .64, 1); cursor: pointer; margin-bottom: 16px;
  background: color-mix(in srgb, var(--glass-ctl) 50%, transparent);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone.over { transform: scale(1.015); }
.dropzone svg { width: 28px; height: 28px; display: block; margin: 0 auto 6px; }
.uploads { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.upload-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 14px; border-radius: 14px; background: var(--glass-ctl); box-shadow: inset 0 1px 1px var(--inner-lo); font-size: 13px; }
.upload-item .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--glass-line); overflow: hidden; }
.upload-item .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.upload-item.done .bar i { background: var(--ok); }
.upload-item.fail .bar i { background: var(--danger); }

/* ---------- 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { isolation: isolate; border-radius: 20px; padding: 16px 18px; will-change: transform; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.stat .k { font-size: 12px; color: var(--muted); }

/* ---------- 对话框 ---------- */
dialog {
  border-radius: 28px; padding: 0; width: min(480px, calc(100vw - 32px));
  color: var(--text);
  --glass-panel: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45), inset 0 1px 1px var(--inner-hi), inset 0 -1px 1px var(--inner-lo);
  overflow: visible;
}
dialog[open] { animation: dlg-in .5s cubic-bezier(.34, 1.56, .64, 1); }
dialog::backdrop { background: rgba(10, 14, 24, .28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes dlg-in { from { opacity: 0; transform: scale(.88); } 60% { opacity: 1; } }
dialog > form { border-radius: inherit; }
.dlg-head { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: center; }
.dlg-body { padding: 16px 22px; max-height: 70vh; overflow: auto; }
.dlg-foot { padding: 0 22px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.copybox { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.copybox input { font-family: var(--mono); font-size: 12.5px; }
.qr { display: flex; justify-content: center; padding: 8px; margin: 6px 0 12px; }
.qr img { width: 180px; height: 180px; border-radius: 18px; background: #fff; padding: 10px; image-rendering: pixelated; box-shadow: var(--ctl-shadow); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  position: relative; isolation: isolate;
  height: 32px; padding: 0 14px; border-radius: 999px; border: 0; color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
  background: var(--glass-ctl); box-shadow: var(--ctl-shadow), inset 0 1px 1px var(--inner-hi);
  -webkit-backdrop-filter: blur(6px) saturate(170%);
  backdrop-filter: var(--lg-url,) blur(6px) saturate(170%);
  will-change: transform;
}
.seg button.on { background: var(--accent); color: #fff; --spec: rgba(255, 255, 255, .5); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 1px rgba(255, 255, 255, .5); }

/* ---------- 提示 ---------- */
#toasts {
  position: fixed; z-index: 100; inset: 16px auto auto 50%; transform: translateX(-50%);
  margin: 0; padding: 4px; border: 0; background: transparent; color: inherit; overflow: visible;
}
#toasts:not([popover]), #toasts:popover-open { display: flex; }
#toasts { flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast {
  pointer-events: auto; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 550; max-width: 100%;
  animation: tin .55s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.err { color: var(--danger); --glass-panel: color-mix(in srgb, var(--danger-soft) 60%, var(--bg) 40%); }
.toast.ok { color: var(--ok); --glass-panel: color-mix(in srgb, var(--ok-soft) 60%, var(--bg) 40%); }
@keyframes tin { from { opacity: 0; transform: translateY(-14px) scale(.8); } }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input[type=search] { max-width: 260px; }
.filters select { width: auto; }

/* ---------- 分享页 ---------- */
.share-file {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; margin: 16px 0;
  background: var(--glass-ctl); box-shadow: inset 0 1px 1px var(--inner-hi), inset 0 0 0 1px var(--glass-line);
}
.share-file .ficon {
  width: 50px; height: 50px; border-radius: 15px; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; text-transform: uppercase;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 6px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.share-file .n { font-weight: 650; font-size: 15px; word-break: break-all; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin-bottom: 18px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 水滴被按住/拖拽时置顶，避免被相邻元素遮住 */
.avatar, .logo { position: relative; will-change: transform; }
.lg-active { z-index: 5; }
/* 折射滤镜的引用不继承，避免子元素误用父元素尺寸的贴图 */
@property --lg-url { syntax: "*"; inherits: false; }

@media (prefers-reduced-motion: reduce) {
  dialog[open], .toast { animation: none; }
}
