:root {
	--bg: #121417; --panel: #1b1e23; --line: #2a2e35; --text: #e6e8eb; --muted: #8b929c;
	--mxb: #f07c00; --gpb: #d32f2f; --warn: #ffb74d; --link: #8ab4f8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #16181c; position: sticky; top: 0; z-index: 2; }
.brand { font-weight: 700; font-size: 18px; }
.brand span { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 8px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.who form { margin: 0; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; background: var(--panel); }
.chip[data-site="mxb-mods.com"] { border-color: var(--mxb); }
.chip[data-site="gpb-mods.com"] { border-color: var(--gpb); }
.chip.ghost { color: var(--muted); border-style: dashed; }
button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; cursor: pointer; font: inherit; font-size: 13px; }
button:hover { color: var(--text); }

main { max-width: 1400px; margin: 0 auto; padding: 20px; }
h2 { font-size: 18px; margin: 28px 0 12px; display: flex; gap: 12px; align-items: baseline; }
h2 a, h3 a { font-size: 13px; font-weight: 400; }
h3 { font-size: 14px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 8px; align-items: baseline; }
h3:first-child { margin-top: 0; }
.site { border-left: 4px solid var(--line); padding-left: 16px; }
.site[data-site="mxb-mods.com"] { border-color: var(--mxb); }
.site[data-site="gpb-mods.com"] { border-color: var(--gpb); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stats.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); }
a.stat:hover { border-color: var(--link); text-decoration: none; }
.stat .v { font-size: 24px; font-weight: 700; }
.stats.small .stat .v { font-size: 18px; }
.stat .l { font-size: 12px; color: var(--muted); }
.stat.warn { border-color: var(--warn); }
.stat.warn .v { color: var(--warn); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
ul { list-style: none; margin: 0; padding: 0; }
ul li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
ul li:last-child { border-bottom: 0; }
ul li small { display: block; color: var(--muted); font-size: 12px; }
ul.inline { display: flex; flex-wrap: wrap; gap: 6px; }
ul.inline li { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
ul.inline li small { display: inline; margin-left: 4px; }
.badge { font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; text-transform: none; letter-spacing: 0; }
.muted { color: var(--muted); }
.foot { margin-top: 30px; font-size: 12px; text-align: center; }

.login { max-width: 460px; margin: 12vh auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; text-align: center; }
.login h1 { margin-top: 0; }
.buttons { display: grid; gap: 10px; margin-top: 18px; }
.btn { display: block; padding: 12px; border-radius: 8px; color: #fff; font-weight: 600; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn[data-site="mxb-mods.com"] { background: var(--mxb); }
.btn[data-site="gpb-mods.com"] { background: var(--gpb); }

@media (max-width: 600px) {
	main { padding: 12px 16px; }
	.top { padding: 10px 16px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
}
.server { border-left: 4px solid var(--link); padding-left: 16px; }
h2 small { font-size: 12px; font-weight: 400; }
