:root {
  --bg: #0b0c10;
  --bg-elev: #12141a;
  --bg-card: #171a22;
  --line: rgba(255, 247, 230, 0.08);
  --text: #f4efe4;
  --muted: #9a937f;
  --gold: #d4b06a;
  --gold-2: #f0d7a0;
  --danger: #e06b6b;
  --ok: #7dcea0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 176, 106, 0.12), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 80, 160, 0.16), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

.wrap { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #1a1408; display: grid; place-items: center; font-weight: 800;
}
.brand h1 { margin: 0; font-size: 18px; letter-spacing: 0.08em; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a, .btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.nav a.active, .btn.primary {
  background: var(--gold);
  color: #1a1408;
  border-color: transparent;
  font-weight: 700;
}
.btn.danger {
  background: #c45b5b;
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.nav-admin:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
}
.nav-admin-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-admin-menu[hidden] { display: none !important; }
.nav-admin-menu .nav-admin {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
}
.nav-admin-menu .nav-admin:hover,
.nav-admin-menu:hover .nav-admin,
.nav-admin-menu:focus-within .nav-admin,
.nav-admin-menu.is-open .nav-admin {
  border-color: rgba(212, 176, 106, 0.45);
  background: rgba(212, 176, 106, 0.1);
}
.nav-admin-caret {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
.nav-admin-menu.is-open .nav-admin-caret,
.nav-admin-menu:hover .nav-admin-caret,
.nav-admin-menu:focus-within .nav-admin-caret {
  transform: rotate(180deg);
  opacity: 0.8;
}
.nav-admin-drop {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  padding: 8px 6px 6px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #171a22;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 40;
  /* 用上内边距衔接触发区，避免悬停空隙导致菜单收起 */
  padding-top: 12px;
}
.nav-admin-drop::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 12px;
}
.nav-admin-menu:hover .nav-admin-drop,
.nav-admin-menu:focus-within .nav-admin-drop,
.nav-admin-menu.is-open .nav-admin-drop {
  display: grid;
  gap: 2px;
}
.nav-admin-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.nav-admin-item:hover,
.nav-admin-item:focus-visible {
  background: rgba(212, 176, 106, 0.12);
  color: #e8d3a0;
  outline: none;
}
.nav-admin-item.is-danger {
  color: #e8a0a0;
}
.nav-admin-item.is-danger:hover,
.nav-admin-item.is-danger:focus-visible {
  background: rgba(220, 90, 90, 0.12);
  color: #f0a0a0;
}
.nav-admin-sep {
  height: 1px;
  margin: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
}
.nav-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
.nav-avatar,
.nav-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.nav-avatar {
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}
.nav-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #1a1408;
  font-size: 12px;
  font-weight: 800;
}
.nav-avatar[hidden],
.nav-avatar-fallback[hidden] { display: none !important; }
.nav-nick {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin: 22px 0 28px;
}
.search-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.search-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(248px, 300px);
  gap: 20px;
  align-items: stretch;
  margin-top: 18px;
}
.search-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.search-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.search-fields .select {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.search-fields .select select {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
  cursor: pointer;
}
.search-fields .tag-similar-wrap {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1116;
}
.search-controls .query-tags-tip {
  right: 0;
  left: auto;
}
.search-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}
.search-actions .btn {
  width: auto;
  text-align: center;
}
.search-actions #searchBtn {
  flex: 1;
  margin-left: 0;
  width: auto;
  min-width: 0;
}
.search-actions #resetBtn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.search-stage .drop {
  height: auto;
  min-height: 280px;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
}
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 6px; font-size: 22px; }
.panel .desc { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.filter-panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.filter-panel .chips-head {
  align-items: flex-end;
  margin-top: 0;
}
.filter-panel .chips-head .desc {
  margin: 0;
}
.filter-panel .filter-bar {
  margin-top: 14px;
}

.drop {
  border: 1px dashed rgba(212, 176, 106, 0.35);
  border-radius: 16px;
  height: 220px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #0a0b0f;
}
.drop.drag { border-color: var(--gold); background: rgba(212,176,106,0.08); }
.drop > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.drop .hint { position: relative; z-index: 1; padding: 16px; }
.drop.has-file .hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 40px 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.drop-clear {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 13, 16, 0.78);
  color: #fff;
  font-size: 20px;
  line-height: 28px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.drop.has-file .drop-clear,
.drop.has-pending .drop-clear { display: block; }
.drop-clear:hover { background: #c45b5b; }
.tag-similar-wrap {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
}
.tag-similar-wrap[hidden] { display: none; }
.tag-similar-wrap .check { margin: 0; }
.query-tags-dot {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.query-tags-tip {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: min(420px, 78vw);
  padding: 14px 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(212, 176, 106, 0.35);
  background:
    linear-gradient(165deg, rgba(28, 24, 18, 0.98), rgba(14, 16, 22, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(240, 215, 160, 0.12);
}
.query-tags-tip.on { display: block; }
.query-tags-tip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.query-tags-tip::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 100%;
  border: 7px solid transparent;
  border-bottom-color: rgba(212, 176, 106, 0.45);
}
.query-tags-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.query-tags-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(240, 215, 160, 0.55);
}
.query-tags-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}
.query-tags-count {
  font-size: 12px;
  color: var(--gold);
  white-space: nowrap;
}
.query-tags-tip .desc { margin: 0 0 12px; }
.query-tags-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(40vh, 320px);
  overflow: auto;
}
.query-tags-body .dim-row {
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(8, 9, 12, 0.45);
}
.query-tags-body .dim-name {
  flex: 0 0 64px;
  margin: 0;
  font-size: 11px;
  color: var(--gold-2);
  letter-spacing: 0.04em;
}
.query-tags-tip .chip { padding: 4px 9px; }
.query-tags-tip .chip.on {
  box-shadow: 0 0 0 1px rgba(240, 215, 160, 0.25);
}
.query-tags-tip .chip.off {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  opacity: 0.55;
}
.query-tags-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.panel, .hero, .row, .search-stage, .search-controls, .search-fields, .filter-panel { overflow: visible; }
.drop-clear:hover { background: #c45b5b; }
.drop.has-pending {
  height: auto;
  min-height: 220px;
  display: block;
  overflow: visible;
  cursor: default;
  padding: 40px 12px 12px;
  text-align: left;
}
.drop.has-pending .hint { display: none; }
.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.pending-card,
.pending-add {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090a0d;
  cursor: pointer;
}
.pending-card.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.pending-card img,
.pending-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pending-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 13, 16, 0.78);
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}
.pending-del:hover { background: #c45b5b; }
.pending-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pending-card.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 15, 0.45);
}
.pending-add {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  font-size: 13px;
  background: transparent;
}
.pending-add:hover { border-color: var(--gold); color: var(--gold-2); }
.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 53;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.88);
  color: var(--gold-2);
  font-size: 28px;
  line-height: 44px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-nav:hover { background: var(--gold); color: #1a1408; }

.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
#searchBtn {
  margin-left: auto;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  min-height: 48px;
  box-shadow: 0 8px 22px rgba(212, 176, 106, 0.28);
}
.select, .input {
  background: #0f1116;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
}

.chips { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.chips-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.chips-head .desc { margin: 0; flex: 1; }
.chips-head .select.compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}
.chips-head .select.compact select {
  background: transparent;
  border: 0;
  color: var(--gold-2);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  position: relative;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.2;
}
.filter-pill i {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform .15s ease;
}
.filter-pill.open i { transform: rotate(180deg); border-top-color: var(--gold-2); }
.filter-pill.has { border-color: rgba(212, 176, 106, 0.55); color: var(--gold-2); }
.filter-pill.on,
.filter-pill.open {
  background: var(--gold);
  border-color: transparent;
  color: #1a1408;
}
.filter-pill.on i,
.filter-pill.open i { border-top-color: #1a1408; }
.filter-pill .n {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(224, 107, 107, 0.18);
  color: #e06b6b;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.filter-pill.open .n,
.filter-pill.on .n {
  background: rgba(154, 59, 59, 0.18);
  color: #7a2c2c;
}
.filter-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e06b6b;
  flex: 0 0 6px;
}
.filter-pill.on .dot,
.filter-pill.open .dot { background: #9a3b3b; }
.filter-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(212, 176, 106, 0.35);
  background: #161922;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.filter-bar.is-open .filter-menu { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-menu .chip small {
  color: inherit;
  opacity: 0.55;
  font-size: 11px;
}
.dim-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dim-name {
  flex: 0 0 52px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--gold-2);
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: default;
}
button.dim-name { cursor: pointer; }
.dim-del {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(224, 107, 107, 0.2);
  color: var(--danger);
  cursor: pointer;
}
.dim-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.on { color: #1a1408; background: var(--gold); border-color: transparent; }
.chip.add { border-style: dashed; color: var(--gold-2); }
.chip.input { padding: 2px 8px; cursor: default; }
.chip.input input {
  width: 88px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font: inherit;
}
.chip-x {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  font-size: 14px;
}
.chip.on .chip-x { color: #1a1408; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stat b { display: block; font-size: 22px; color: var(--gold-2); }
.stat span { color: var(--muted); font-size: 12px; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.check input { accent-color: var(--gold); }
.check-wrap { position: relative; display: inline-flex; align-items: center; }
.tag-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 280px;
  padding: 8px 12px;
  background: #171a22;
  border: 1px solid rgba(212, 176, 106, 0.4);
  border-radius: 10px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: var(--shadow);
  z-index: 25;
  pointer-events: none;
  text-align: left;
}
.tag-tip::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #171a22;
}
.tag-tip.is-busy { color: var(--gold-2); }
.tag-tip.is-ok { border-color: rgba(125, 206, 160, 0.5); }
.tag-tip.is-err { border-color: rgba(224, 107, 107, 0.55); }
.drop-busy {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 15, 0.68);
  color: var(--gold-2);
  font-size: 14px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.drop.is-busy { cursor: wait; }
.drop.is-busy .drop-busy { display: flex; pointer-events: auto; }
.drop.is-busy .drop-busy::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(240, 215, 160, 0.25);
  border-top-color: var(--gold-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.upload-tags.is-busy {
  outline: 1px dashed rgba(212, 176, 106, 0.45);
  border-radius: 12px;
  padding: 8px 10px;
}

.section-title {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.section-title-main { min-width: 0; flex: 1; }
.section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-bottom: 6px;
}
.section-title h3,
.section-title-row h3 { margin: 0; font-size: 16px; letter-spacing: 0.06em; }
.section-title span { color: var(--muted); font-size: 12px; }
.section-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px 16px;
}
.page-help-btn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(212, 176, 106, 0.35);
  border-radius: 999px;
  background: rgba(212, 176, 106, 0.08);
  color: #d4b06a;
  cursor: pointer;
  flex: 0 0 auto;
}
.page-help-btn[hidden] { display: none !important; }
.page-help-btn:hover,
.page-help-btn.is-on {
  border-color: rgba(240, 215, 160, 0.7);
  background: rgba(212, 176, 106, 0.18);
  color: #f0d7a0;
}
.page-help-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 176, 106, 0.28);
  background: rgba(22, 24, 32, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
}
.page-help-tip[hidden] { display: none !important; }
.gallery-ui-field {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.gallery-ui-tip .btn { width: 100%; }
.gallery-pager { margin-top: 4px; }
.gallery-pager[hidden],
.gallery-scroll-status[hidden] { display: none !important; }
.gallery-scroll-status {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 14px 0 6px;
}
.meta-stat b {
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
  margin-right: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 80px;
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
  min-width: 0;
}
.card:hover { transform: translateY(-3px); border-color: rgba(212,176,106,0.4); }
.card .cover { aspect-ratio: 4/5; background: #090a0d; overflow: hidden; position: relative; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kind-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.78);
  color: var(--gold-2);
  font-weight: 700;
}
.card .meta { padding: 11px 12px 13px; min-width: 0; }
.card .meta h4 {
  margin: 0 0 6px; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.score { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gold-2); }
.bar { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #9a6b2f, var(--gold-2)); }
.tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
}
.tags-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.tags em {
  font-style: normal; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px;
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tags em.more {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  border-color: rgba(212, 176, 106, 0.4);
  color: var(--gold-2);
  font-weight: 700;
}

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  background: #1b1e27; border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: 12px; display: none; max-width: 360px;
}
.toast.show { display: block; }
.toast.err { border-color: rgba(224,107,107,0.5); }

.lightbox {
  position: fixed; inset: 0; background: rgba(4,5,8,0.86);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px;
}
.lightbox.on { display: flex; }
.lightbox-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  width: min(1180px, 100%);
  max-height: 90vh;
  min-height: min(70vh, 560px);
  align-items: stretch;
  overflow: hidden;
}
.lightbox-media {
  position: relative;
  min-width: 0;
  min-height: min(70vh, 560px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #090a0d;
}
.lightbox-media img,
.lightbox-media video.lb-media {
  display: block;
  max-width: 100%;
  max-height: min(86vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #090a0d;
  z-index: 1;
}
.lightbox-media img {
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lightbox-media img.is-ready {
  opacity: 1;
}
.lightbox-media img[hidden],
.lightbox-media video.lb-media[hidden] {
  display: none !important;
}
.lightbox-media video.lb-media {
  width: 100%;
  height: 100%;
  max-height: 80vh;
}
.lightbox-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  place-items: center;
  justify-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(9, 10, 13, 0.42);
  pointer-events: none;
}
.lightbox-media.is-loading .lightbox-loading {
  display: grid;
}
.lightbox-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(212, 176, 106, 0.22);
  border-top-color: var(--gold-2, #f0d7a0);
  box-sizing: border-box;
  animation: lightbox-spin 0.75s linear infinite;
}
.lightbox-media.is-load-error .lightbox-spinner {
  animation: none;
  border-color: rgba(224, 107, 107, 0.35);
  border-top-color: #e06b6b;
  opacity: 0.85;
}
.lightbox-loading-text {
  color: rgba(232, 228, 220, 0.78);
}
@keyframes lightbox-spin {
  to { transform: rotate(360deg); }
}
.lightbox-side {
  background: rgba(18, 20, 26, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 86vh;
  height: auto;
  align-self: stretch;
}
.lightbox-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  min-width: 0;
}
.lightbox-side h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}
.lightbox-close {
  flex: 0 0 32px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 32px;
  padding: 0;
  cursor: pointer;
}
.lightbox-close:hover { background: #c45b5b; }
.lightbox-side .desc { margin: 0 0 12px; }
.lightbox-side .dim-row { flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lightbox-side .dim-name { flex: none; margin: 0; }
#lbTags {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: auto;
  scrollbar-width: thin;
  scrollbar-color: #d4b06a rgba(255, 255, 255, 0.08);
}
#lbTags::-webkit-scrollbar { width: 10px; }
#lbTags::-webkit-scrollbar-thumb {
  background: #d4b06a;
  border-radius: 99px;
  border: 2px solid #12141a;
}
#lbTags::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
.lightbox-side-foot {
  flex: 0 0 auto;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lightbox-side-foot .btn { flex: 1; width: auto; }
.tag-diff-actions { margin: 0; }
.tag-diff-actions .btn {
  position: relative;
  overflow: hidden;
  padding-right: 18px;
}
.tag-diff-actions .btn.is-picked {
  border-color: var(--ok);
  color: var(--ok);
  box-shadow: none;
}
.tag-diff-actions .ok-mark {
  display: none;
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0;
  background: var(--ok);
  box-shadow: 0 0 0 2px #171a22;
}
.tag-diff-actions .ok-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: solid #102016;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tag-diff-actions .btn.is-picked .ok-mark { display: block; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .search-stage { grid-template-columns: 1fr; }
  .search-stage .drop { min-height: 220px; }
  .lightbox-frame { grid-template-columns: 1fr; max-height: 92vh; min-height: 0; overflow: auto; }
  .lightbox-media { min-height: 42vh; max-height: 52vh; }
  .lightbox-media img,
  .lightbox-media video.lb-media { max-height: 48vh; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); }
.help { color: var(--muted); font-size: 12px; line-height: 1.7; }
.progress {
  height: 8px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin: 10px 0;
}
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #9a6b2f, var(--gold-2)); transition: width .2s ease; }
.progress.is-wait i {
  width: 32% !important;
  animation: idx-wait 1.1s ease-in-out infinite;
}
@keyframes idx-wait {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
.log {
  max-height: 220px; overflow: auto; background: #0c0e13; border-radius: 12px;
  padding: 10px 12px; font-size: 12px; color: var(--muted); white-space: pre-wrap;
}
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; }
.badge.ok { background: rgba(125,206,160,0.15); color: var(--ok); }
.badge.warn { background: rgba(212,176,106,0.15); color: var(--gold); }
.badge.err { background: rgba(224,107,107,0.15); color: var(--danger); }

.stack { margin-bottom: 40px; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.mini-grid > .help { grid-column: 1 / -1; }
.tag-manage-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.tag-manage-title h2 { margin: 0; }
.tag-manage-title .help { margin: 0; }
.tag-manage-title .tag-query-ai-check {
  margin: 0 4px 0 2px;
  white-space: nowrap;
}
.tag-ai-box {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tag-ai-box .desc { margin: 0; }
.tag-ai-box .field { margin-top: 2px; }
.tag-ai-box textarea.input {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}
.tag-ai-box .lightbox-side-foot {
  margin-top: 8px;
  padding-top: 12px;
}
.tag-ai-box .lightbox-side-foot .btn { width: auto; min-width: 96px; }
.secret-input {
  position: relative;
  display: block;
}
.secret-input .input {
  width: 100%;
  padding-right: 42px;
}
.secret-input .input::-ms-reveal,
.secret-input .input::-ms-clear,
.secret-input .input::-webkit-credentials-auto-fill-button,
.secret-input .input::-webkit-contacts-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
.secret-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.secret-toggle:hover { color: var(--gold-2); background: rgba(255, 255, 255, 0.06); }
.secret-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.secret-toggle .eye-off { display: none; }
.secret-toggle.is-on .eye-on { display: none; }
.secret-toggle.is-on .eye-off { display: block; }
.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap .input {
  width: 100%;
  padding-right: 42px;
}
.pw-wrap .input.is-masked {
  -webkit-text-security: disc;
  text-security: disc;
}
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.pw-toggle:hover { color: var(--gold-2); background: rgba(255, 255, 255, 0.06); }
.pw-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.pw-toggle .eye-off { display: none; }
.pw-toggle.is-on .eye-on { display: none; }
.pw-toggle.is-on .eye-off { display: block; }
#uploadTagsHint { margin: 14px 0 0; }
.tag-manage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.tag-manage-head h2 { margin: 0 0 6px; }
.tag-manage-head .desc { margin: 0; max-width: 46em; }
.tag-manage-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.tag-manage-counts {
  display: flex;
  gap: 18px;
}
.tag-dim-create {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tag-dim-create .input {
  width: 160px;
  padding: 8px 12px;
}
.tag-dim-create .btn { white-space: nowrap; }
.tag-manage-counts b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--gold-2);
}
.tag-manage-counts span { color: var(--muted); font-size: 12px; }
.tag-manage-body {
  display: flex;
  align-items: stretch;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 11, 15, 0.35);
}
.tag-dim-list {
  display: flex;
  flex-direction: column;
  flex: 0 0 212px;
  width: 212px;
  min-width: 212px;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.gold-scroll {
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #d4b06a rgba(255, 255, 255, 0.08);
}
.gold-scroll::-webkit-scrollbar { width: 10px; }
.gold-scroll::-webkit-scrollbar-thumb {
  background: #d4b06a;
  border-radius: 99px;
  border: 2px solid #12141a;
}
.gold-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
.tag-dim-scroll {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px 8px 10px;
}
.tag-dim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
}
.tag-dim-item:not(.add) {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.tag-dim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.tag-dim-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-dim-item em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.dim-weight-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.dim-weight {
  flex: 1 1 auto;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.dim-weight-val {
  flex: 0 0 2.2em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tag-dim-item.on .dim-weight-val { color: var(--gold-2); }
.tag-dim-item:hover { background: rgba(255, 255, 255, 0.04); }
.tag-dim-item.on {
  background: rgba(212, 176, 106, 0.16);
  color: var(--gold-2);
}
.tag-dim-item.on em { color: var(--gold-2); }
.tag-dim-item.add {
  flex: 0 0 auto;
  margin: 6px 10px 10px;
  border: 1px dashed var(--line);
  color: var(--muted);
  justify-content: center;
  background: transparent;
}
.tag-dim-item.add:hover { border-color: var(--gold); color: var(--gold-2); }
.tag-dim-list .chip.input { width: 100%; justify-content: stretch; }
.tag-dim-list .chip.input input { width: 100%; }
.tag-dim-detail {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 16px;
}
.tag-dim-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tag-dim-toolbar .dim-name {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-2);
}
.tag-dim-toolbar .dim-del {
  flex: 0 0 auto;
  width: auto;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}
.tag-dim-detail .help { margin: 28px 0; text-align: center; }
@media (max-width: 720px) {
  .tag-manage-head { flex-direction: column; }
  .tag-manage-actions { align-items: stretch; width: 100%; }
  .tag-dim-create { width: 100%; }
  .tag-dim-create .input { flex: 1; width: auto; }
  .tag-manage-body {
    flex-direction: column;
    height: auto;
  }
  .tag-dim-list {
    width: 100%;
    min-width: 0;
    flex: none;
    height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .tag-dim-scroll {
    height: 0;
  }
}
.lightbox.readonly .chip { cursor: default; }
.lightbox.readonly .chip.on { cursor: default; }
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.mini-card .cover { aspect-ratio: 1; background: #090a0d; position: relative; }
.mini-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 13, 16, 0.78);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.mini-del:hover { background: #c45b5b; }
.mini-card.is-extra { border-color: rgba(212, 176, 106, 0.45); }
.mini-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 700;
}
.mini-badge.video {
  left: 6px;
  right: auto;
  background: rgba(12, 13, 16, 0.78);
  color: var(--gold-2);
}
.mini-card.is-extra.is-video .mini-badge.video {
  top: 28px;
}
.mini-badge.index {
  top: auto;
  bottom: 6px;
  left: 6px;
  background: rgba(125, 206, 160, 0.92);
  color: #0d1a12;
}
.mini-badge.index.off {
  background: rgba(12, 13, 16, 0.78);
  color: #f0d7a0;
}
.mini-index {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gold);
  color: #1a1408;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.mini-index:hover { filter: brightness(1.08); }
.mini-index:disabled { opacity: 0.65; cursor: wait; }
.mini-card.is-indexing { opacity: 0.78; }
.mini-card p {
  margin: 0;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-badge.tags {
  left: auto;
  right: 6px;
  top: 36px;
  background: rgba(12, 13, 16, 0.78);
  color: var(--gold-2);
}
.mini-badge.tags.is-empty {
  color: var(--muted);
}
.mini-badge.artist {
  left: auto;
  right: 6px;
  /* 标签 top 36 + 高约 18 + 间距 14 */
  top: 68px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(12, 13, 16, 0.78);
  color: var(--gold-2);
  font-weight: 600;
}
.gallery-index-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}
.mini-meta { padding: 6px 8px 8px; }
.mini-time {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.85;
}
.pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 4px;
}
.pager-size {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.pager-size .select { padding: 6px 10px; }
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}
.pager .btn { padding: 6px 12px; min-width: 36px; text-align: center; }
.pager .btn.on {
  background: var(--gold);
  color: #1a1408;
  border-color: transparent;
  font-weight: 700;
}
.pager .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-ellipsis { color: var(--muted); padding: 0 2px; }
.confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
#tagDiffMask { z-index: 90; }
#confirmMask { z-index: 250; }
.confirm-mask.on { display: flex; }
.confirm-box {
  width: min(420px, 100%);
  background: #171a22;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.confirm-box h3 { margin: 0 0 8px; font-size: 18px; }
.confirm-box p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; word-break: break-all; }
.confirm-box.tag-diff-box {
  width: min(880px, calc(100vw - 48px));
  height: min(82vh, 720px);
  max-height: min(82vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
}
.tag-diff-box .desc { margin: 0; flex: 0 0 auto; word-break: normal; }
.tag-diff-box .lightbox-side-head { flex: 0 0 auto; }
.tag-diff-box .lightbox-side-head h3 { margin: 0; }
.tag-diff-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tag-diff-cols {
  flex: 1.15 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tag-diff-cols section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 8px 10px;
  background: rgba(255, 255, 255, 0.02);
}
.tag-diff-cols h4,
.tag-diff-result-title {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gold-2);
  font-weight: 600;
  flex: 0 0 auto;
}
.tag-diff-cols .gold-scroll,
#tagDiffResult {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
}
.tag-diff-box .lightbox-side-head h3 { margin: 0; }
.tag-diff-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 0;
  padding: 2px 0 6px;
  overflow: visible;
}
.tag-diff-actions .btn { width: 100%; }
.tag-diff-result-title { margin: 0 0 6px; }
#tagDiffResult {
  border: 1px solid rgba(212, 176, 106, 0.28);
  border-radius: 12px;
  padding: 8px 8px 8px 10px;
}
.tag-diff-box .dim-row {
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.tag-diff-box .dim-name {
  flex: none;
  margin: 0;
  font-size: 11px;
}
.tag-diff-box .dim-chips { gap: 6px; }
.tag-diff-box .chip {
  padding: 4px 8px;
  font-size: 11px;
}
.tag-diff-box .chip small {
  opacity: 0.7;
  font-size: 10px;
}
.tag-diff-box .lightbox-side-foot {
  margin-top: 0;
  flex: 0 0 auto;
}
.tag-diff-nav {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 32px;
  padding: 0;
  cursor: pointer;
}
.tag-diff-nav:hover { background: var(--gold); color: #1a1408; }
.tag-diff-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.tag-diff-meta[hidden] { display: none !important; }
.tag-diff-meta img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #090a0d;
  flex: 0 0 auto;
}
.tag-diff-meta span {
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tagDiffSkip[hidden],
.tag-diff-nav[hidden] { display: none; }
#batchPickMask { z-index: 65; }
.confirm-box.batch-pick-box {
  width: min(980px, calc(100vw - 48px));
  height: min(84vh, 780px);
  max-height: min(84vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
  position: relative;
}
.batch-pick-box .desc { margin: 0; flex: 0 0 auto; word-break: normal; }
.batch-pick-box .lightbox-side-head { flex: 0 0 auto; }
.batch-pick-box .lightbox-side-head h3 { margin: 0; }
.batch-pick-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.batch-pick-toolbar .help { margin: 0 0 0 auto; }
.batch-pick-toolbar .btn { width: auto; padding: 7px 12px; }
.batch-pick-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.batch-pick-grid-wrap {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
}
.batch-pick-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-content: stretch;
  overflow: hidden;
}
.batch-pick-grid > .help { grid-column: 1 / -1; margin: 24px 8px; text-align: center; }
.batch-pick-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #090a0d;
}
.batch-pick-card.on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.batch-pick-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 0;
  min-height: 0;
}
.batch-pick-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 32px 6px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.batch-pick-check {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(12, 13, 16, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.batch-pick-card.on .batch-pick-check {
  background: var(--gold);
  border-color: var(--gold);
}
.batch-pick-card.on .batch-pick-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #1a1408;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.batch-pick-busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(8, 10, 14, 0.82);
  z-index: 3;
  text-align: center;
}
.batch-pick-busy[hidden] { display: none !important; }
.batch-pick-busy p {
  margin: 0;
  color: var(--gold-2);
  font-size: 14px;
  word-break: break-all;
}
.batch-pick-busy .progress { width: min(320px, 100%); }
.batch-pick-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}
.batch-pick-pager-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.batch-pick-pager-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}
.batch-pick-pager-nav .btn {
  min-width: 32px;
  padding: 5px 10px;
  border-radius: 8px;
}
.batch-pick-pager-nav .btn.page-dir { min-width: auto; }
.batch-pick-pager-nav .pager-ellipsis {
  min-width: 18px;
  text-align: center;
  color: var(--muted);
}
.batch-pick-box .lightbox-side-foot { margin-top: 0; }
.batch-pick-box .lightbox-side-foot .btn { flex: 1; }

.help a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tag-login {
  max-width: 440px;
  margin: 36px auto 80px;
}
.tag-login h2 { margin-bottom: 8px; }
.tag-login .field { margin-top: 16px; }
.tag-login-err {
  color: var(--danger);
  font-size: 13px;
  margin: 10px 0 0;
}
.login-card { max-width: 440px; }
body[data-page="login"] .wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body[data-page="login"] .login-card.stack {
  width: 100%;
  margin: auto;
}
body[data-page="login"] #adminLoginForm .row {
  justify-content: flex-end;
}
body[data-page="login"] #adminLoginForm .row:has(> :only-child) {
  justify-content: center;
}
body[data-page="login"] #adminLoginForm .btn.primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(100%, 280px);
  min-height: 44px;
  padding: 11px 28px;
  font-size: 15px;
  letter-spacing: 0.22em;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 22px rgba(212, 176, 106, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
body[data-page="login"] #adminLoginForm .row:has(> :only-child) .btn.primary {
  width: 100%;
}
body[data-page="login"] #adminLoginForm .btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
}
body[data-page="login"] #adminLoginForm .btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(212, 176, 106, 0.4);
}
body[data-page="login"] #adminLoginForm .btn.primary:hover::before {
  animation: login-shine 0.65s ease;
}
body[data-page="login"] #adminLoginForm .btn.primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 6px 16px rgba(212, 176, 106, 0.22);
}
@keyframes login-shine {
  0% { left: -45%; opacity: 0; }
  18% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
#tagApp[hidden], #tagLogin[hidden] { display: none !important; }
body[data-page="tags"] .tag-manage { margin-top: 18px; }
.ffmpeg-settings h2 { margin-bottom: 8px; }
.ffmpeg-settings .desc { margin: 0; max-width: 54em; }
.ffmpeg-settings .form-grid { margin-top: 16px; }
.ffmpeg-status { margin: 12px 0 0; word-break: break-all; }
.ffmpeg-status.is-ok { color: var(--ok); }
.ffmpeg-status.is-err { color: var(--danger); }
.ffmpeg-actions { margin-top: 16px; }
.mysql-settings { margin-top: 18px; }
.mysql-settings h2 { margin-bottom: 8px; }
.mysql-settings .desc { margin: 0; max-width: 54em; }
.mysql-settings .check { margin: 14px 0 0; }
.mysql-settings .form-grid { margin-top: 16px; }
.recycle-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 210;
  padding: 24px;
}
.recycle-mask.on { display: flex; }
.recycle-bin {
  width: min(1280px, calc(100vw - 48px));
  max-height: min(86vh, 740px);
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
}
.recycle-bin.stack { margin-bottom: 0; }
.recycle-bin .lightbox-side-head { margin: 0; }
.recycle-bin h2 { margin: 0; font-size: 18px; }
.recycle-bin .desc { margin: 0; max-width: 54em; }
.recycle-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
  flex: 0 0 auto;
}
.recycle-toolbar .select { width: auto; min-width: 140px; }
.recycle-toolbar #recycleKw {
  width: 200px;
  max-width: min(200px, 100%);
  flex: 0 0 auto;
}
.recycle-pager {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 2px;
}
.recycle-table-wrap {
  margin-top: 4px;
  flex: 1 1 auto;
  min-height: 180px;
  max-height: none;
  overflow: auto;
  border: 1px solid rgba(212, 175, 106, 0.18);
  border-radius: 12px;
}
.recycle-table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.recycle-table th,
.recycle-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  box-sizing: border-box;
}
.recycle-table th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1a1712;
  user-select: none;
  overflow: hidden;
}
.recycle-table .th-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
}
.recycle-table .th-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recycle-table .th-resizer {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
}
.recycle-table .th-resizer:hover,
.recycle-table .th-resizer.is-on {
  background: rgba(212, 176, 106, 0.38);
}
body.is-col-resizing,
body.is-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
.recycle-table .col-ops,
.recycle-table td.recycle-acts {
  position: sticky;
  right: 0;
  z-index: 3;
  width: var(--ops-w, 180px);
  min-width: var(--ops-w, 180px);
  white-space: nowrap;
  text-align: right;
  background: #1a1712;
  box-shadow: -8px 0 10px -8px rgba(0, 0, 0, 0.55);
  overflow: visible;
}
.recycle-table thead .col-ops { z-index: 4; }
.recycle-table tbody td.col-ops,
.recycle-table tbody td.recycle-acts {
  background: #16130f;
}
.recycle-table tbody tr:hover td.col-ops,
.recycle-table tbody tr:hover td.recycle-acts {
  background: #1c1812;
}
.recycle-table .th-ops {
  justify-content: flex-end;
  gap: 8px;
}
.recycle-table .btn { padding: 4px 10px; font-size: 12px; margin-left: 6px; }
.recycle-table tr.is-purging {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.97);
  transition: opacity 0.38s ease, filter 0.38s ease, transform 0.38s ease;
}
.recycle-table tr.is-restoring {
  background: rgba(125, 206, 160, 0.12);
  box-shadow: inset 0 0 0 1px rgba(125, 206, 160, 0.28);
  transition: opacity 0.36s ease, filter 0.36s ease, transform 0.36s ease, background 0.36s ease;
}
.recycle-table tr.is-restored {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-10px);
}
.recycle-file { min-width: 92px; overflow: hidden; }
.recycle-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(212, 175, 106, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  cursor: pointer;
}
.recycle-thumb img,
.recycle-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recycle-thumb.is-video::after {
  content: '▶';
  position: absolute;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.recycle-thumb { position: relative; }
.recycle-fname {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recycle-file-empty { color: rgba(255, 255, 255, 0.35); }
.lightbox.is-recycle .lightbox-side-foot { display: none; }
.lightbox.is-recycle .chip,
.lightbox.readonly .chip { pointer-events: none; }
.recycle-kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  color: var(--gold);
  font-size: 12px;
}
.recycle-table-wrap.is-empty {
  display: flex;
  flex-direction: column;
}
.recycle-table-wrap.is-empty .recycle-table {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.recycle-table-wrap.is-empty thead {
  display: table;
  width: 100%;
  table-layout: fixed;
  flex: 0 0 auto;
}
.recycle-table-wrap.is-empty tbody {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 138px;
}
.recycle-table-wrap.is-empty .recycle-empty-row {
  width: 100%;
}
.recycle-table-wrap.is-empty .recycle-empty-row td {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--muted);
  padding: 12px;
  border-bottom: none;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .ffmpeg-settings .form-grid,
  .mysql-settings .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .confirm-box.tag-diff-box { height: min(90vh, 760px); }
  .tag-diff-cols { grid-template-columns: 1fr; }
  .tag-diff-actions { grid-template-columns: 1fr; }
  .confirm-box.batch-pick-box { height: min(90vh, 760px); }
  .batch-pick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }
}

.trash-dock {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 300;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(212, 176, 106, 0.4);
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(247, 227, 176, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(40, 36, 30, 0.96), rgba(14, 12, 16, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(247, 227, 176, 0.22);
  cursor: grab;
  touch-action: none;
  display: grid;
  place-items: center;
  user-select: none;
}
.trash-dock:hover {
  border-color: rgba(240, 215, 160, 0.7);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(212, 176, 106, 0.18);
}
.trash-dock.is-dragging { cursor: grabbing; }
.trash-can { width: 46px; height: 46px; overflow: visible; transform-origin: 50% 88%; }
.trash-lid {
  transform-origin: 36px 16px;
  transform-box: view-box;
  transition: transform 0.28s cubic-bezier(.22, 1.2, .36, 1);
}
.trash-body { transform-origin: 36px 48px; transform-box: view-box; }
.trash-dock.is-open .trash-lid { transform: rotate(-52deg); }
.trash-dock.is-swallow .trash-body { animation: trash-gulp 0.48s ease; }
.trash-dock.is-swallow { animation: trash-glow 0.48s ease; }
.trash-dock.is-dump .trash-lid {
  transition: none;
  animation: trash-dump-lid 1.15s cubic-bezier(.22, 1.1, .36, 1) both;
}
.trash-dock.is-dump .trash-can {
  animation: trash-dump-tilt 1.15s cubic-bezier(.22, 1.12, .36, 1) both;
}
.trash-dock.is-dump { animation: trash-glow 1.15s ease; }
.trash-dock.is-dump-all .trash-lid,
.trash-dock.is-dump-all .trash-can { animation-duration: 1.4s; }
.trash-dock.is-dump-all { animation-duration: 1.4s; }
.trash-dock.is-restore .trash-lid {
  transition: none;
  animation: trash-restore-lid 0.95s cubic-bezier(.22, 1.1, .36, 1) both;
}
.trash-dock.is-restore .trash-can {
  animation: trash-restore-tilt 0.95s cubic-bezier(.22, 1.12, .36, 1) both;
}
.trash-dock.is-restore { animation: trash-glow 0.95s ease; }
@keyframes trash-gulp {
  0% { transform: scale(1); }
  30% { transform: scale(1.1, 0.9); }
  58% { transform: scale(0.92, 1.1); }
  100% { transform: scale(1); }
}
@keyframes trash-glow {
  0%, 100% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(247, 227, 176, 0.22); }
  40% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46), 0 0 28px rgba(212, 176, 106, 0.45); }
}
@keyframes trash-dump-tilt {
  0% { transform: rotate(0deg); }
  16% { transform: rotate(-40deg); }
  30% { transform: rotate(-66deg); }
  50% { transform: rotate(-58deg); }
  70% { transform: rotate(11deg); }
  84% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}
@keyframes trash-dump-lid {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-74deg); }
  48% { transform: rotate(-74deg); }
  74% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}
@keyframes trash-restore-tilt {
  0% { transform: rotate(0deg); }
  18% { transform: rotate(-30deg); }
  38% { transform: rotate(-24deg); }
  66% { transform: rotate(10deg); }
  82% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}
@keyframes trash-restore-lid {
  0% { transform: rotate(0deg); }
  12% { transform: rotate(-64deg); }
  46% { transform: rotate(-64deg); }
  76% { transform: rotate(-8deg); }
  100% { transform: rotate(0deg); }
}
.trash-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7e3b0, #d4b06a);
  color: #1a1408;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(212, 176, 106, 0.4);
}
.trash-badge[hidden] { display: none; }
.trash-fly {
  position: fixed;
  z-index: 290;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.trash-fly.chip {
  background: var(--gold);
  color: #1a1408;
  border-color: transparent;
  overflow: hidden;
  white-space: nowrap;
}
.trash-dump {
  position: fixed;
  z-index: 291;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}
.trash-dump.chip {
  background: var(--gold);
  color: #1a1408;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
}
.trash-dump.lump {
  border-radius: 50% 42% 50% 46%;
  background: linear-gradient(145deg, #f7e3b0, #c49a4a 55%, #7a5a28);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
