:root {
  --bg: #0f1216; --card: #1a1f26; --line: #2a323c; --text: #e6e9ee;
  --muted: #8a94a3; --accent: #57f287; --over: #57f287; --neth: #ff6b3d; --end: #b06bff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
header { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 1.5rem;
  background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text); }
nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
.who { color: var(--muted); font-size: .9rem; }
.btn-sm { border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 6px; }
main { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; }
.card h2 { margin: 0 0 1rem; font-size: 1.1rem; }
h3.dim { margin: 1rem 0 .3rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.dim.overworld { color: var(--over); } .dim.nether { color: var(--neth); } .dim.end { color: var(--end); }

table { width: 100%; border-collapse: collapse; }
table.wide th { text-align: left; color: var(--muted); font-weight: 600; padding: .3rem 0; }
td { padding: .35rem .4rem; border-bottom: 1px solid var(--line); }
td.num { text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.muted, .muted { color: var(--muted); font-size: .85rem; }

.top10 { margin: 0; padding-left: 1.4rem; line-height: 1.9; }
.tag { font-size: .7rem; padding: .1rem .4rem; border-radius: 5px; margin-left: .3rem; background: var(--line); }
.tag.overworld { color: var(--over); } .tag.nether { color: var(--neth); } .tag.end { color: var(--end); }

.addform { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.addform.col { flex-direction: column; max-width: 300px; }
.addform input, .addform select { background: var(--bg); border: 1px solid var(--line);
  color: var(--text); padding: .4rem .5rem; border-radius: 6px; flex: 1; min-width: 0; }
button { background: var(--accent); color: #06210f; border: none; padding: .4rem .8rem;
  border-radius: 6px; font-weight: 600; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button.del { background: transparent; color: var(--muted); font-size: 1.1rem; padding: 0 .4rem; }
button.del:hover { color: #ff5c5c; }
.chk { display: flex; align-items: center; gap: .4rem; color: var(--muted); flex: none; }

.tabbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tabbtn { background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: .55rem 1rem; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; }
.tabbtn:hover { color: var(--text); }
.tabbtn.active { background: var(--accent); color: #06210f; border-color: var(--accent); }
.panes .card { max-width: 720px; }
.wide-card { grid-column: 1 / -1; }
h3.job { margin: 1rem 0 .3rem; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent); }
.editform { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.editform input, .editform select { background: var(--bg); border: 1px solid var(--line);
  color: var(--text); padding: .3rem .4rem; border-radius: 5px; font-size: .85rem; }
.editform input:not([type=number]) { flex: 1; min-width: 6rem; }
button.save { background: transparent; color: var(--accent); border: 1px solid var(--line);
  padding: .25rem .5rem; font-size: .9rem; }
button.save:hover { background: var(--accent); color: #06210f; }

.thumb { width: 26px; height: 26px; object-fit: contain; vertical-align: middle;
  margin-right: .3rem; image-rendering: pixelated; }
.top10 img.thumb { width: 22px; height: 22px; }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin-top: 1rem; }
.mobcard { background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .5rem; text-align: center; position: relative; }
.mobimg { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; }
.mobname { font-weight: 600; margin-top: .4rem; font-size: .9rem; }
.small { font-size: .75rem; }
.eggimg { position: absolute; top: .4rem; right: .4rem; width: 26px; height: 26px;
  object-fit: contain; image-rendering: pixelated; }

.login-box { max-width: 340px; margin: 4rem auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 2rem; }
.login-box h1 { margin-top: 0; }
.login-box label { display: block; margin-bottom: 1rem; color: var(--muted); }
.login-box input { width: 100%; margin-top: .3rem; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); padding: .5rem; border-radius: 6px; }
.login-box button { width: 100%; padding: .6rem; }
.error { color: #ff5c5c; }
