:root {
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-soft: #e6f4ff;
  --success: #52c41a;
  --warning: #d48806;
  --error: #ff4d4f;
  --heading: rgba(0, 0, 0, 0.88);
  --text: rgba(0, 0, 0, 0.65);
  --muted: rgba(0, 0, 0, 0.45);
  --border: #f0f0f0;
  --border-input: #d9d9d9;
  --bg: #f5f7fa;
  --card: #fff;
  --sider: #001529;
  --sider-text: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.04);
  --radius: 10px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --sider-w: 220px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body, .pro-body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.57;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
a { color: var(--primary); }

.pro-body { display: flex; min-height: 100vh; }

.pro-sider {
  width: var(--sider-w);
  flex-shrink: 0;
  background: var(--sider);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}
.sider-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.sider-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(145deg, #4096ff, #1677ff);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.35);
}
.sider-menu {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-link, .side-btn.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--sider-text);
  font: inherit;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}
.nav-link:hover, .side-btn.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.is-active, .side-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
}
.nav-link.is-active .muted, .side-btn.active .muted { color: rgba(255,255,255,.8); }
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  text-align: center;
}
.nav-badge:empty { display: none; }
.nav-link.is-active .nav-badge,
.side-btn.active .nav-badge {
  background: #fff;
  color: var(--primary);
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; }
.sider-foot {
  padding: 16px 20px 20px;
  color: rgba(255,255,255,.38);
  font-size: 12px;
}

.pro-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pro-header {
  height: 64px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.header-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 0; background: transparent; color: var(--heading);
  font: inherit; cursor: pointer; padding: 6px 0;
}
.header-crumb {
  font-weight: 600;
  color: var(--heading);
  font-size: 15px;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-user, .user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--heading);
  font-size: 13px;
  padding: 4px 10px 4px 4px;
  background: #f5f7fa;
  border-radius: 999px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8edf3;
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #4b5d73;
}
.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 26px;
}
.avatar-sm {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.avatar-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 20px;
}
.user-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta-chip.author-chip {
  padding-left: 4px;
}
.author-account {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 500;
}
.author-count {
  margin-left: 6px;
  color: var(--primary);
  font-weight: 650;
}
.podium-account,
.author-rank-mid .account {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #8a7a5a;
}
.meta-chip .avatar {
  width: 18px;
  height: 18px;
  margin-right: 2px;
}

.pro-content { padding: 24px 28px 48px; }
.content-inner { width: min(1180px, 100%); margin: 0 auto; }

.page { display: none; }
.page.is-active { display: block; animation: fade .25s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-head h1, .page-intro h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.page-head p, .page-intro p {
  margin: 4px 0 0;
  color: var(--muted);
}
.section-title {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 650;
  color: var(--heading);
}
.guide-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.guide-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 18px;
}
.guide-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--heading);
}
.guide-card p, .guide-card li {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.7;
}
.guide-card ol {
  margin: 0;
  padding-left: 20px;
}
.guide-card.warn {
  background: #fff7e6;
  box-shadow: none;
  border: 1px solid #ffe58f;
}
.guide-card.more {
  background: var(--primary-soft);
  box-shadow: none;
}
.guide-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.kpi-inline {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.kpi-inline span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.kpi-inline b {
  font-size: 18px;
  color: var(--heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.filter-card, .ant-card, .panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-card { padding: 18px 20px 14px; margin-bottom: 20px; }
.filter-card.compact { padding: 12px 20px; }
.panel { padding: 22px; }

.search-field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}
.search-field svg {
  position: absolute;
  left: 12px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 0 12px 0 36px;
  font: inherit;
  outline: none;
  background: #fafbfc;
  margin: 0;
}
.search-field input:focus,
.field input:focus,
.field textarea:focus,
input:focus, textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}

.filter-row, .filter-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px dashed var(--border);
}
.filter-k, .filter-label {
  flex: 0 0 42px;
  color: var(--muted);
  padding-top: 5px;
  font-size: 13px;
}
.tag-list.authors {
  max-height: 92px;
  overflow-y: auto;
}
.filter-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--primary);
}

.tag-list, .seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.seg-item, .chip {
  border: 0;
  background: #f5f7fa;
  color: var(--text);
  font: inherit;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 22px;
}
.seg-item:hover, .chip:hover { color: var(--primary); background: var(--primary-soft); }
.seg-item.is-active, .chip.active {
  color: #fff;
  background: var(--primary);
  font-weight: 500;
}
.seg-item.is-active:hover, .chip.active:hover {
  color: #fff;
  background: var(--primary);
}

.seg.compact {
  display: flex;
  gap: 24px;
  background: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  padding: 0;
}
.seg.compact .seg-item {
  background: none;
  border-radius: 0;
  padding: 8px 0;
  color: var(--text);
  position: relative;
}
.seg.compact .seg-item.is-active {
  color: var(--primary);
  background: none;
}
.seg.compact .seg-item.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.app-grid, .weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.weapon-card, .app-card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.weapon-card:hover, .app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.1);
  border-color: #bae0ff;
}
.weapon-card .thumb-wrap, .app-card .thumb-wrap {
  height: 128px;
  background:
    radial-gradient(120px 60px at 50% 80%, rgba(22,119,255,.12), transparent 70%),
    linear-gradient(180deg, #f7f9fc, #eef2f6);
  display: grid;
  place-items: center;
  position: relative;
}
.weapon-card img, .app-card img {
  width: 82%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.12));
}
.card-count {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.card-count.likes {
  background: #cf1322;
  font-size: 12px;
  padding: 3px 9px;
}
.weapon-card .thumb-wrap .rank-n {
  position: absolute;
  top: 10px; left: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
  line-height: 1;
}
.weapon-card.top1 .thumb-wrap .rank-n { color: #cf1322; }
.weapon-card.top2 .thumb-wrap .rank-n { color: #d48806; }
.weapon-card.top3 .thumb-wrap .rank-n { color: #1677ff; }
.weapon-card .name {
  justify-content: space-between;
}
.weapon-card .name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-likes {
  color: #cf1322;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.author-rank {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.author-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 0;
  background: transparent;
}
.podium-col {
  flex: 1;
  max-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px 22px;
  cursor: pointer;
  transition: transform .18s ease;
}
.podium-col:hover { transform: translateY(-3px); }
.podium-col.place1 { min-height: 292px; z-index: 2; }
.podium-col.place2 { min-height: 246px; }
.podium-col.place3 { min-height: 220px; }
.podium-col.is-empty { cursor: default; opacity: .72; }
.podium-col.is-empty:hover { transform: none; }
.podium-icon { width: 48px; height: 36px; margin-bottom: 10px; }
.podium-col.place1 .podium-icon { width: 64px; height: 46px; }
.podium-crown { width: 100%; height: 100%; display: block; }
.podium-avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
  margin: 2px 0 12px;
  border: 2px solid #f0e6cc;
  box-shadow: 0 2px 8px rgba(160, 130, 60, .12);
}
.podium-col.place1 .podium-avatar {
  width: 72px;
  height: 72px;
  font-size: 26px;
  border-color: #e8c35a;
}
.podium-col.place2 .podium-avatar { border-color: #cfcbc3; }
.podium-col.place3 .podium-avatar { border-color: #d4a574; }
.podium-name {
  font-weight: 700;
  font-size: 18px;
  color: #3f3a34;
  line-height: 1.3;
  word-break: break-all;
}
.podium-col.place1 .podium-name { font-size: 20px; }
.podium-title {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #c4a35a;
}
.podium-col.place2 .podium-title { color: #9a958c; }
.podium-col.place3 .podium-title { color: #b07d4a; }
.author-rank-board {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.author-rank-row {
  display: grid;
  grid-template-columns: 40px 40px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #ead9b0;
  cursor: pointer;
}
.author-rank-row:last-child { border-bottom: 0; }
.author-rank-row:hover { background: #faf7f0; }
.author-rank-row.is-empty {
  cursor: default;
  opacity: .62;
}
.author-rank-row.is-empty:hover { background: transparent; }
.author-rank-row .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.rank-medal { width: 32px; height: 40px; display: block; }
.author-rank-mid { min-width: 0; }
.author-rank-mid .name {
  font-weight: 700;
  font-size: 16px;
  color: #3f3a34;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-badge {
  justify-self: end;
  padding: 5px 12px;
  border: 1px solid #d8c089;
  border-radius: 999px;
  color: #b08940;
  font-size: 13px;
  font-weight: 600;
  background: #fffdf8;
  white-space: nowrap;
}
.detail-hero .avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.weapon-card .card-body {
  padding: 12px 14px 14px;
}
.weapon-card .name, .app-card .name {
  font-weight: 650;
  font-size: 15px;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 6px;
}
.weapon-card .meta, .app-card .meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-rec {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 18px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.link-back, .back-btn {
  border: 0; background: transparent;
  color: var(--primary); font: inherit;
  cursor: pointer; padding: 0; margin-bottom: 14px;
}
.detail-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-hero img {
  width: 96px; height: 72px;
  object-fit: contain;
  background: #f5f7fa;
  border-radius: 8px;
}
.detail-hero h2 {
  margin: 0;
  font-size: 22px;
  color: var(--heading);
  font-weight: 700;
}

.code-list { display: flex; flex-direction: column; gap: 10px; }
.code-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.code-item.has-img {
  grid-template-columns: 64px 1fr auto;
}
.code-item img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f7fa;
}
img.js-zoom {
  cursor: zoom-in;
}
.code-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.code-item .title { font-weight: 650; color: var(--heading); }
.code-item .code {
  margin-top: 10px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--primary);
  word-break: break-all;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.meta-chip {
  font-size: 12px;
  background: #f5f7fa;
  color: var(--text);
  border-radius: 6px;
  padding: 2px 8px;
}
.meta-chip em { font-style: normal; color: var(--muted); margin-right: 4px; }
.code-item .tags { margin-top: 8px; color: var(--text); font-size: 13px; line-height: 1.5; }
.code-item .tags .k {
  display: inline-block;
  margin-right: 6px;
  color: var(--muted);
  font-size: 12px;
}
.code-item .tags.note {
  background: #fff1f0;
  color: var(--error);
  padding: 6px 8px;
  border-radius: 6px;
}

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 0 8px;
  line-height: 20px;
  border-radius: 4px;
  background: #f0f0f0;
  color: var(--text);
}
.pill.rec { background: var(--primary-soft); color: var(--primary); }
.pill.gs { background: #fff7e6; color: var(--warning); }

.status-pill {
  display: inline-block;
  font-size: 12px;
  padding: 0 8px;
  line-height: 20px;
  border-radius: 10px;
  margin-right: 8px;
  background: #f0f0f0;
}
.status-pill.pending { color: var(--primary); background: var(--primary-soft); }
.status-pill.approved { color: var(--success); background: #f6ffed; }
.status-pill.rejected { color: var(--error); background: #fff1f0; }

.btn, .btn.ghost, .btn.primary {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { height: 32px; }
.btn-primary, .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.code-item .btn-primary, .code-item .btn.primary {
  height: 32px;
  padding: 0 14px;
}
.code-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 76px;
}
.btn-download {
  height: 32px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-download:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-like {
  height: 32px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border-input);
  color: var(--text);
}
.btn-like:hover, .btn-like.is-on {
  color: #cf1322;
  border-color: #ffa39e;
  background: #fff1f0;
}
.pill.rank {
  background: #fff7e6;
  color: #d48806;
  font-weight: 700;
}
.pill.rank.top {
  background: #fff1f0;
  color: #cf1322;
}
.btn-ghost, .btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover, .btn.ghost:hover { color: var(--primary); background: var(--primary-soft); }
.btn-block { width: 100%; height: 40px; }
.btn.danger, .btn-danger {
  color: var(--error);
  border-color: #ffa39e;
  background: #fff;
}
.btn.danger:hover { background: #fff1f0; color: var(--error); }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--heading);
}
.field input, .field textarea, input, textarea {
  width: 100%;
  border: 1px solid var(--border-input);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  color: var(--heading);
  outline: none;
}
.field textarea { resize: vertical; min-height: 88px; }
.field-row, .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.result-box, .result {
  margin-top: 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  min-height: 1.2em;
}
.form-err, .err { color: var(--error); min-height: 1.2em; margin: 8px 0 0; }
.req { color: var(--error); font-style: normal; font-size: 12px; font-weight: 500; margin-left: 4px; }
.muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field input[type="file"] {
  padding: 6px 8px;
  max-width: 280px;
  cursor: pointer;
}
.upload-preview-wrap {
  position: relative;
  display: inline-flex;
}
.upload-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f7fa;
  border: 1px solid var(--border);
}
.upload-clear {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #ff4d4f;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
}
.upload-clear:hover { background: #d9363e; }
.field input[readonly] {
  background: #f5f7fa;
  color: var(--muted);
  cursor: default;
}
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--text); }
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.remember-row input {
  width: 16px !important;
  height: 16px !important;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.login-form label.remember-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
}

.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: rgba(0, 0, 0, 0.78);
  cursor: zoom-out;
}
.img-zoom img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
  background: transparent;
}
.img-zoom-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.img-zoom-close:hover { background: rgba(255, 255, 255, 0.28); }
body.zoom-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 21, 41, 0.45);
  backdrop-filter: blur(4px);
}
.modal-sheet {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  padding: 24px 28px 28px;
  max-height: min(92vh, 720px);
  overflow: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--heading);
  font-weight: 700;
}
.icon-close {
  border: 0; background: transparent;
  font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--muted);
}
.modal-body { display: flex; flex-direction: column; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(0, 21, 41, 0.88);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
}

.admin-body { background: var(--bg); }
.top { display: none; }
.login-wrap {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 12% 8%, #4096ff 0%, transparent 52%),
    radial-gradient(700px 480px at 92% 88%, #003eb3 0%, transparent 48%),
    linear-gradient(135deg, #0958d9 0%, #1677ff 55%, #69b1ff 100%);
  position: relative;
  overflow: hidden;
}
.login-wrap::before,
.login-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.login-wrap::before { width: 320px; height: 320px; left: -60px; top: 40px; }
.login-wrap::after { width: 220px; height: 220px; right: 8%; bottom: 10%; }

.login-card {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 1;
}
.login-art {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.55), transparent 46%),
    linear-gradient(165deg, #e6f4ff, #bae0ff);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  color: #0958d9;
}
.login-art h2 { margin: 0; font-size: 28px; color: #003eb3; font-weight: 750; }
.login-art p { margin: 12px 0 0; color: #1677ff; }
.login-form {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.login-form .brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin-bottom: 4px;
}
.login-form .muted { text-align: center; margin-bottom: 18px; }
.login-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--heading); margin-bottom: 12px;
}

.admin-main { display: block; padding: 0; max-width: none; margin: 0; }
.admin-side { display: none; }
.admin-panels { padding: 24px 28px; }
.admin-panels .panel {
  display: none;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.admin-panels .panel.active { display: block; }
.admin-panels label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--heading);
  margin: 10px 0;
}
.admin-panels input:not([type="checkbox"]):not([type="file"]):not([type="search"]) {
  height: 36px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}
.admin-panels .btn { margin: 6px 8px 6px 0; }
#panel-disk hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.upload-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px dashed var(--border-input);
  border-radius: 8px;
  background: #fafafa;
  margin: 8px 0 10px;
}
.upload-drop.is-over { border-color: var(--primary); background: var(--primary-soft); }
.file-queue { margin: 0 0 12px; font-size: 13px; }
.file-queue ul { margin: 6px 0 0; padding-left: 18px; color: var(--text); }
.file-queue li { margin: 4px 0; }

.toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"] { max-width: 380px; height: 36px; border-radius: 8px; }
.review-modes { margin: 0 0 16px; padding-top: 4px; border-top: 0; }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  border-bottom: 1px solid var(--border);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
th { color: var(--heading); font-weight: 600; background: #fafafa; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #f5faff; }
.thumb {
  width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
  background: #f5f7fa; vertical-align: middle; margin-right: 8px;
}
.note-input { width: 100%; min-width: 140px; margin-bottom: 6px; height: 32px; }
.review-list, #reviewList { display: flex; flex-direction: column; gap: 10px; }
.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 16px 20px;
  align-items: start;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-card:has(.review-thumb) {
  grid-template-columns: 72px minmax(0, 1fr) 200px;
}
.review-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f7fa;
}
.review-thumb.placeholder {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  border: 1px dashed var(--border);
}
.review-thumb.placeholder[data-pick-img] { cursor: pointer; }
.review-thumb.placeholder[data-pick-img]:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.review-file { display: none; }
.review-upload-btn {
  width: 100%;
  height: 36px;
  margin: 0;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.review-upload-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}
.review-meta span {
  background: #f5f7fa;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text);
}
.review-body .code { margin-top: 0; color: var(--primary); word-break: break-all; }
.code-row .k { color: var(--muted); font-size: 12px; }
.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.copyable { cursor: pointer; }
.copyable:hover { text-decoration: underline; }
.invite-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.invite-gen-result {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: #f5f7fa;
  border-radius: 8px;
}
.invite-gen-result:empty { display: none; }
.invite-gen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--heading);
  font-weight: 600;
}
.invite-gen-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invite-gen-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.invite-gen-list code, .invite-cell code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
}
.btn-copy { height: 28px; padding: 0 10px; font-size: 12px; }
.review-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 200px;
  max-width: 100%;
  justify-self: end;
}
.review-side .btn {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  margin: 0;
  white-space: nowrap;
}
.review-fc { margin: 0; }
.review-fc input, .review-fc select {
  height: 32px;
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 0 8px;
  font: inherit;
  background: #fff;
}
.review-btns {
  display: flex;
  gap: 8px;
  width: 100%;
}
.review-btns .btn {
  flex: 1;
  width: auto;
  height: 32px;
  padding: 0 10px;
  margin: 0;
}
.link-admin { color: var(--primary); text-decoration: none; font-size: 14px; }
.undo-done td { color: var(--muted); }
.undo-done .status-pill { opacity: .8; }

.pro-body.sider-open .pro-sider { transform: none; }

@media (max-width: 960px) {
  .pro-body { display: block; }
  .pro-sider {
    position: fixed;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 8px 0 24px rgba(0,0,0,.2);
  }
  .pro-body.sider-open .pro-sider { transform: none; }
  .header-toggle { display: inline-flex; }
  .header-crumb { display: none; }
  .kpi-inline { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .login-card { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .field-row, .form-row { grid-template-columns: 1fr; }
  .code-item, .code-item.has-img, .review-card, .review-card:has(.review-thumb) { grid-template-columns: 1fr; }
  .review-side { width: 100%; justify-self: stretch; }
  .admin-panels, .pro-content { padding: 14px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .weapon-card .thumb-wrap { height: 96px; }
  .author-podium { padding: 4px 0 0; gap: 6px; }
  .podium-col { padding: 14px 6px 16px; }
  .podium-col.place1 { min-height: 236px; }
  .podium-col.place2 { min-height: 204px; }
  .podium-col.place3 { min-height: 186px; }
  .podium-avatar { width: 44px; height: 44px; font-size: 18px; }
  .podium-col.place1 .podium-avatar { width: 56px; height: 56px; font-size: 22px; }
  .podium-name { font-size: 14px; }
  .podium-col.place1 .podium-name { font-size: 15px; }
  .podium-title { font-size: 13px; }
  .author-rank-row { padding: 12px; grid-template-columns: 32px 32px minmax(0, 1fr) 72px; }
  .author-rank-row .avatar { width: 30px; height: 30px; }
  .author-rank-mid .name { font-size: 14px; }
  .place-badge { font-size: 12px; padding: 4px 8px; }
}
