[v-cloak] { display: none; }
:root { --bg: #f5f6f8; --line: #e4e7ed; --muted: #8a8f99; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2329; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 52px; background: #1f2329; color: #fff; }
.topbar .brand { font-weight: 600; font-size: 15px; margin-right: 8px; white-space: nowrap; }
.topbar .nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.topbar .nav a { color: #c9cdd4; padding: 6px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.topbar .nav a.on, .topbar .nav a:hover { background: #3a3f47; color: #fff; }
.topbar .right { display: flex; align-items: center; gap: 8px; }
.page { max-width: 1280px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 12px; font-size: 15px; }
.muted { color: var(--muted); font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.game { border: 1px solid var(--line); border-radius: 8px; padding: 14px; cursor: pointer; background: #fff; }
.game.on { border-color: #409eff; box-shadow: 0 0 0 2px #409eff33; }
.game b { font-size: 15px; }
.entry { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; }
.entry.off { opacity: .5; }
.entry-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.entry-head .title { font-weight: 600; }
.entry-body { padding: 10px 12px; }
.fields { width: 100%; border-collapse: collapse; }
.fields td { padding: 4px 6px; vertical-align: top; border-bottom: 1px dashed #eee; }
.fields td.k { width: 170px; color: #555; font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding-top: 9px; word-break: break-all; }
.fields td.s { width: 70px; padding-top: 8px; }
.fields tr.need td.k { color: #e6a23c; font-weight: 600; }
.fields tr.need-miss td.k { color: #f56c6c; font-weight: 600; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.thumb { width: 132px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 12px 12px; position: relative; }
.thumb img { width: 100%; height: 110px; object-fit: contain; display: block; }
.thumb .cap { font-size: 11px; color: #555; background: #fff; word-break: break-all; padding: 2px; line-height: 1.3; max-height: 44px; overflow: hidden; }
.thumb .badge { position: absolute; top: 4px; right: 4px; }
.thumb.err { border-color: #f56c6c; }
.cropper { position: relative; display: inline-block; user-select: none; touch-action: none; max-width: 100%; }
.cropper img { display: block; max-width: 100%; max-height: 62vh; }
.cropper .box { position: absolute; border: 2px solid #409eff; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; }
.cropper .handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #409eff; border-radius: 50%; cursor: nwse-resize; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diff pre, pre.json { margin: 0; background: #f7f8fa; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.log { background: #1f2329; color: #d0d3d9; font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 8px; border-radius: 6px; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.login { max-width: 360px; margin: 12vh auto; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
@media (max-width: 720px) {
  .fields td.k { width: 110px; }
  .fields td.s { display: none; }
  .diff { grid-template-columns: 1fr; }
  .topbar .brand { display: none; }
}
.git-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 10px; font-size: 12px; line-height: 18px; font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.git-tag.add { background: #e3f9e5; color: #1a7f37; }
.git-tag.upd { background: #fff4d6; color: #9a6700; }
.git-tag.same { background: #f0f1f3; color: #6e7781; }
