*, *::before, *::after { box-sizing: border-box; }
/* 关键：作者样式中的 display 会覆盖浏览器对 [hidden] 的默认处理，必须显式声明 */
[hidden] { display: none !important; }
:root {
  --bg: #080d18;
  --bg-2: #0c1424;
  --panel: #111a2b;
  --panel-2: #162136;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #e8eefb;
  --muted: #93a3b8;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
}
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1100px 500px at 12% -8%, rgba(56, 189, 248, .13), transparent 60%),
    radial-gradient(900px 480px at 92% 0%, rgba(99, 102, 241, .14), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .28); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100dvh; }
.layout[hidden], .auth-page[hidden] { display: none; }
.sidebar {
  width: 236px; flex: none; display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px; border-right: 1px solid var(--line);
  background: rgba(9, 14, 25, .82); backdrop-filter: blur(12px);
  position: sticky; top: 0; height: 100dvh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 0; }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121f;
  font-weight: 800; font-size: 17px; flex: none;
}
.logo-lg { width: 54px; height: 54px; border-radius: 16px; font-size: 24px; }
.side-title { font-weight: 650; font-size: 14.5px; letter-spacing: .2px; }
.side-sub { font-size: 10.5px; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
  color: #c7d2e2; font-size: 14px; transition: background .16s, color .16s;
}
.nav-item:hover { background: rgba(148, 163, 184, .1); color: #fff; }
.nav-item.active { background: rgba(56, 189, 248, .14); color: #e0f2fe; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .28); }
.nav-ico { font-size: 15px; width: 18px; text-align: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; background: rgba(148, 163, 184, .08); border: 1px solid var(--line); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(56, 189, 248, .35), rgba(99, 102, 241, .4));
  font-size: 13px; font-weight: 700; color: #e0f2fe;
}
.user-meta { min-width: 0; }
.user-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--muted); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 14px clamp(14px, 3vw, 30px);
  background: rgba(8, 13, 24, .8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 16px; font-weight: 640; letter-spacing: .2px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.menu-btn { display: none; }
.view { padding: clamp(14px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; flex: 1; }

/* ---------------- 通用组件 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(148, 163, 184, .1); color: #e2e8f0; cursor: pointer;
  font-size: 13.5px; font-weight: 560; transition: background .16s, border-color .16s, transform .12s, opacity .16s;
  white-space: nowrap;
}
.btn:hover { background: rgba(148, 163, 184, .18); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #04121f; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.07); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(248, 113, 113, .4); color: #fecaca; background: rgba(248, 113, 113, .1); }
.btn-danger:hover { background: rgba(248, 113, 113, .2); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(148, 163, 184, .1); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 16px;
}

.card {
  background: linear-gradient(180deg, rgba(22, 33, 54, .72), rgba(17, 26, 43, .72));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, .28);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { font-size: 14.5px; font-weight: 640; display: flex; align-items: center; gap: 8px; }
.card-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(56, 189, 248, .8); }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 4px 9px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(148, 163, 184, .09);
  white-space: nowrap;
}
.badge-ok { color: #bbf7d0; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .12); }
.badge-warn { color: #fde68a; border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .12); }
.badge-danger { color: #fecaca; border-color: rgba(248, 113, 113, .38); background: rgba(248, 113, 113, .12); }
.badge-info { color: #bae6fd; border-color: rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .12); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12.5px; color: var(--muted); font-weight: 560; }
.field-hint { font-size: 11.5px; color: rgba(148, 163, 184, .8); line-height: 1.55; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(2, 6, 23, .45); color: var(--text); outline: none; font-size: 14px;
  transition: border-color .16s, box-shadow .16s;
}
.textarea { min-height: 74px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 0 3px rgba(56, 189, 248, .14); }
.input::placeholder { color: rgba(148, 163, 184, .6); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(2, 6, 23, .5); border: 1px solid var(--line); flex-wrap: wrap; }
.segmented button {
  padding: 7px 12px; border-radius: 8px; border: 0; background: transparent; color: #c7d2e2;
  font-size: 12.5px; cursor: pointer; transition: background .16s, color .16s;
}
.segmented button.active { background: rgba(56, 189, 248, .2); color: #e0f2fe; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .3); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 42px; height: 24px; border-radius: 99px; background: rgba(148, 163, 184, .3);
  position: relative; transition: background .18s; flex: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .18s;
}
.switch input:checked + .track { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .switch-label { font-size: 13px; color: #cbd5e1; }

.range-row { display: flex; align-items: center; gap: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; flex: 1; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: rgba(148, 163, 184, .3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #e0f2fe; margin-top: -5px; box-shadow: 0 0 0 3px rgba(56, 189, 248, .25); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 99px; background: rgba(148, 163, 184, .3); }
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #e0f2fe; }
.range-val { font-size: 12.5px; color: #cbd5e1; width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
input[type="color"] { width: 44px; height: 34px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(2, 6, 23, .5); cursor: pointer; }

.empty {
  text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); line-height: 1.8; background: rgba(148, 163, 184, .04);
}
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .8; }

/* ---------------- 登录页 ---------------- */
.auth-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.field[hidden] { display: none; }
.auth-card {
  width: 100%; max-width: 412px; background: rgba(17, 26, 43, .82); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px; box-shadow: 0 30px 70px rgba(2, 6, 23, .6); backdrop-filter: blur(18px);
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand h1 { font-size: 20px; margin: 14px 0 6px; font-weight: 680; }
.auth-brand p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(2, 6, 23, .5); border-radius: 11px; margin-bottom: 18px; border: 1px solid var(--line); }
.tab { flex: 1; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: #c7d2e2; font-size: 13.5px; cursor: pointer; transition: background .16s, color .16s; }
.tab.active { background: rgba(56, 189, 248, .18); color: #e0f2fe; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .3); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-error { color: var(--danger); font-size: 12.5px; min-height: 16px; }
.auth-note { margin-top: 16px; text-align: center; font-size: 11.5px; color: rgba(148, 163, 184, .75); }

/* ---------------- 项目 ---------------- */
.project-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.project-card {
  position: relative; text-align: left; cursor: pointer; padding: 16px;
  background: linear-gradient(180deg, rgba(22, 33, 54, .8), rgba(17, 26, 43, .8));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .16s, border-color .16s, box-shadow .16s; color: var(--text);
  display: flex; flex-direction: column; gap: 10px;
}
.project-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, .38); box-shadow: 0 18px 44px rgba(2, 6, 23, .45); }
.project-name { font-size: 15px; font-weight: 640; display: flex; align-items: center; gap: 8px; padding-right: 26px; }
.project-name .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-client { font-size: 12.5px; color: var(--muted); }
.project-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.project-stats b { color: #e2e8f0; font-weight: 600; }
.project-card .more { position: absolute; top: 12px; right: 10px; color: var(--muted); font-size: 14px; }
.project-card.is-expired { opacity: .82; }
.project-card.is-expired .project-name .txt::after { content: " · 已结束"; color: rgba(248, 113, 113, .85); font-size: 11.5px; font-weight: 500; }
.project-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- 上传 ---------------- */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 26px 18px;
  text-align: center; cursor: pointer; transition: border-color .16s, background .16s; background: rgba(148, 163, 184, .04);
}
.dropzone:hover, .dropzone.drag { border-color: rgba(56, 189, 248, .65); background: rgba(56, 189, 248, .07); }
.dropzone .dz-ico { font-size: 26px; display: block; margin-bottom: 8px; opacity: .9; }
.dropzone .dz-main { font-size: 13.8px; font-weight: 560; margin-bottom: 4px; }
.dropzone .dz-sub { font-size: 11.8px; color: var(--muted); }
.upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.upload-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #cbd5e1; }
.upload-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item .bar { flex: 0 0 130px; height: 5px; border-radius: 99px; background: rgba(148, 163, 184, .22); overflow: hidden; }
.upload-item .bar > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }

.asset-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.asset-card {
  position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: #0b1220; display: flex; flex-direction: column;
}
.asset-thumb { height: 104px; background: #060b14 center/cover no-repeat; position: relative; display: grid; place-items: center; color: #475569; }
.asset-thumb img, .asset-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-kind {
  position: absolute; top: 6px; left: 6px; font-size: 10.5px; padding: 3px 7px; border-radius: 6px;
  background: rgba(2, 6, 23, .84); color: #93c5fd; border: 1px solid rgba(147, 197, 253, .3);
}
.asset-meta { padding: 8px 10px; font-size: 11.8px; color: #cbd5e1; display: flex; flex-direction: column; gap: 2px; }
.asset-card.is-purged { border-style: dashed; opacity: .88; }
.asset-card.is-purged .asset-thumb { background: repeating-linear-gradient(45deg, rgba(148,163,184,.06), rgba(148,163,184,.06) 8px, transparent 8px, transparent 16px); }
.asset-purged-tag {
  position: absolute; bottom: 6px; right: 6px; font-size: 10px; padding: 2px 6px; border-radius: 5px;
  background: rgba(248, 113, 113, .16); color: #fecaca; border: 1px solid rgba(248, 113, 113, .38);
}
.asset-meta .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta .sz { color: var(--muted); font-size: 11px; }
.asset-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; opacity: 0; transition: opacity .16s; }
.asset-card:hover .asset-actions { opacity: 1; }
.mini-btn {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; cursor: pointer;
  background: rgba(2, 6, 23, .82); border: 1px solid var(--line); color: #e2e8f0; font-size: 12px; padding: 0;
}
.mini-btn:hover { background: rgba(56, 189, 248, .26); }
.mini-btn.danger:hover { background: rgba(248, 113, 113, .3); }

/* ---------------- 分享 ---------------- */
.share-list { display: flex; flex-direction: column; gap: 12px; }
.share-card {
  display: flex; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(2, 6, 23, .32); flex-wrap: wrap; align-items: flex-start;
}
.share-card .qr-mini { width: 74px; height: 74px; border-radius: 9px; background: #fff; padding: 4px; flex: none; }
.share-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 7px; }
.share-title { font-size: 14px; font-weight: 620; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-url {
  font-size: 12px; color: #93c5fd; word-break: break-all; background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .18); border-radius: 8px; padding: 7px 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.share-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 水印预览 */
.wm-preview {
  position: relative; height: 148px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, .2), transparent 55%),
    linear-gradient(135deg, #16233a, #0a1120 60%, #131c2e);
  display: grid; place-items: center;
}
.wm-preview .pv-label { font-size: 11px; color: rgba(148, 163, 184, .7); letter-spacing: 1px; }
.wm-preview .pv-text {
  position: absolute; white-space: pre; font-weight: 650; letter-spacing: .8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8); pointer-events: none;
}
.wm-preview .pv-center-tip {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: 12px; color: rgba(226, 232, 240, .5);
}

/* ---------------- 模态框 / 提示 ---------------- */
.modal-root { position: fixed; inset: 0; z-index: 800; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 6, 23, .72); backdrop-filter: blur(4px); }
.modal-root:not([hidden]) { display: flex; }
.modal-card {
  width: min(520px, 100%); max-height: 90dvh; overflow: auto;
  background: linear-gradient(180deg, #16213a, #101a2c); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(2, 6, 23, .7);
  animation: modalIn .22s ease;
}
.modal-card.wide { width: min(760px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-title { font-size: 16px; font-weight: 660; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal-close:hover { background: rgba(148, 163, 184, .16); color: #fff; }

.qr-show { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-img { width: 260px; height: 260px; background: #fff; border-radius: 14px; padding: 10px; }
.qr-link { width: 100%; font-size: 12.5px; padding: 10px; border-radius: 10px; background: rgba(2, 6, 23, .5); border: 1px solid var(--line); color: #93c5fd; word-break: break-all; text-align: center; font-family: ui-monospace, Menlo, monospace; }
.qr-tips { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.8; }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 950; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast {
  padding: 11px 16px; border-radius: 11px; font-size: 13.5px; line-height: 1.5; text-align: center;
  background: rgba(15, 23, 42, .97); border: 1px solid var(--line); color: #e2e8f0;
  box-shadow: 0 14px 40px rgba(2, 6, 23, .6); animation: toastIn .26s ease; max-width: 100%;
}
.toast.ok { border-color: rgba(52, 211, 153, .45); color: #d1fae5; }
.toast.warn { border-color: rgba(251, 191, 36, .45); color: #fef3c7; }
.toast.err { border-color: rgba(248, 113, 113, .5); color: #fee2e2; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.detail-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.detail-title { font-size: 19px; font-weight: 680; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.kv { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.kv b { color: #e2e8f0; font-weight: 600; }
.note {
  font-size: 12px; color: #fde68a; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 10px; padding: 10px 12px; line-height: 1.7;
}
.note.info { color: #bae6fd; background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .26); }

@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%);
    transition: transform .24s ease; box-shadow: 0 0 60px rgba(2, 6, 23, .7); background: #0b1322;
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; }
  .view { padding: 14px; }
  .asset-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .qr-img { width: 210px; height: 210px; }
  .topbar { padding: 12px 14px; }
}
