/* mc.c7fx.dev: visual language follows c7fx.dev (near-black, white type, soft glass surfaces). */
:root {
  --bg: #08080a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.36);
  --accent: #4f8bff;
  --accent-deep: #0a35f0;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(79, 139, 255, 0.35); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; }
.brand span.dim { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, opacity .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover:not(:disabled) { background: rgba(255,255,255,.88); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: #fff; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-green { background: var(--green); color: #04130c; }
.btn-green:hover:not(:disabled) { background: #5ee0ad; }
.btn-red { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.btn-red:hover:not(:disabled) { background: rgba(248, 113, 113, 0.2); }

/* ---------- aurora background ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9;
}
.aurora::before {
  width: 820px; height: 460px; left: 50%; top: -60px; transform: translateX(-62%) rotate(-12deg);
  background: radial-gradient(closest-side, rgba(10,53,240,.42), rgba(79,139,255,.16) 55%, transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora::after {
  width: 600px; height: 360px; left: 50%; top: 120px; transform: translateX(-5%) rotate(18deg);
  background: radial-gradient(closest-side, rgba(52,211,153,.20), rgba(79,139,255,.14) 60%, transparent);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { translate: -30px 0; } to { translate: 30px 20px; } }
@media (prefers-reduced-motion: reduce) { .aurora::before, .aurora::after { animation: none; } }

/* ---------- home ---------- */
.hero { position: relative; padding: 120px 24px 72px; text-align: center; }
.hero > *:not(.aurora) { position: relative; z-index: 1; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 auto 18px; max-width: 760px; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 40px; }

.join-card {
  margin: 0 auto; max-width: 520px; padding: 22px;
  background: rgba(14, 14, 18, 0.72); border: 1px solid var(--border); border-radius: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-align: left;
}
.join-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.address-row { display: flex; gap: 10px; align-items: stretch; }
.address {
  flex: 1 1 auto; display: flex; align-items: center; padding: 0 16px; min-height: 48px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--mono); font-size: 16px; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis;
}
.join-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.dot.starting, .dot.stopping { background: var(--amber); box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
.dot.offline, .dot.unreachable { background: var(--red); box-shadow: 0 0 0 3px rgba(248,113,113,.15); }

.section { max-width: 960px; margin: 0 auto; padding: 48px 24px; }
.section h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step .num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step code, .muted code { font-family: var(--mono); font-size: 13px; color: #fff; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }

.online-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.player-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.player-chip img { width: 22px; height: 22px; border-radius: 6px; image-rendering: pixelated; }

.site-footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 48px; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- login ---------- */
.auth-wrap { position: relative; min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 380px; padding: 32px; border-radius: 16px; background: rgba(14,14,18,.78); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.auth-card p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.input, .select {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: rgba(79,139,255,.7); box-shadow: 0 0 0 3px rgba(79,139,255,.18); }
.form-error { min-height: 20px; color: var(--red); font-size: 13px; margin: 4px 0 12px; }
.w-full { width: 100%; }

/* ---------- panel ---------- */
.panel-shell { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 64px); }
.sidebar { border-right: 1px solid rgba(255,255,255,.06); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 64px; height: calc(100vh - 64px); }
.side-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14px; cursor: pointer; border: 0; background: none; text-align: left; }
.side-link svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.side-link:hover { color: #fff; background: var(--surface); }
.side-link.active { color: #fff; background: var(--surface-2); }
.side-spacer { flex: 1; }
.side-foot { font-size: 12px; color: var(--faint); padding: 8px 12px; }

.main { padding: 28px 32px 64px; max-width: 1180px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card + .card { margin-top: 16px; }
.grid-2 > .card { margin-top: 0; }
.card h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.status-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; flex-wrap: wrap; }
.status-big { display: flex; align-items: center; gap: 14px; }
.status-big .dot { width: 14px; height: 14px; }
.status-word { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-transform: capitalize; }
.status-sub { color: var(--muted); font-size: 14px; }
.power { display: flex; gap: 10px; flex-wrap: wrap; }

.stat { padding: 16px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border); min-width: 0; }
.stat .k { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-size: 20px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .v.mono { font-family: var(--mono); font-size: 16px; }

.console {
  height: 520px; overflow: auto; padding: 14px 16px; border-radius: 12px;
  background: #050507; border: 1px solid var(--border);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.console .l-warn { color: var(--amber); }
.console .l-error { color: var(--red); }
.console .l-panel { color: #93b4ff; }
.console .l-done { color: var(--green); }
.console .muted { color: var(--faint); }
.console-input { display: flex; gap: 10px; margin-top: 12px; }
.console-input .prompt { display: flex; align-items: center; flex: 1; background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: 10px; padding-left: 12px; }
.console-input .prompt:focus-within { border-color: rgba(79,139,255,.7); box-shadow: 0 0 0 3px rgba(79,139,255,.18); }
.console-input .prompt span { color: var(--faint); font-family: var(--mono); }
.console-input input { flex: 1; height: 42px; border: 0; background: transparent; outline: none; padding: 0 10px 0 6px; font-family: var(--mono); font-size: 13px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .input { max-width: 280px; height: 36px; }
.player-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.player-form .input { flex: 1 1 200px; max-width: 320px; height: 38px; }
.player-form .select { width: 200px; height: 38px; }
.head-fallback { display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--muted); }

.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid rgba(255,255,255,.06); }
.row:first-child { border-top: 0; }
.row .head { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; background: var(--surface-2); flex: none; }
.row .name { font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row .sub { color: var(--faint); font-size: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { color: var(--faint); font-size: 14px; padding: 8px 4px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); width: fit-content; margin-bottom: 16px; flex-wrap: wrap; }
.tab { height: 32px; padding: 0 14px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.tab.active { background: var(--surface-2); color: #fff; }

.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-top: 1px solid rgba(255,255,255,.06); }
.opt:first-child { border-top: 0; }
.opt .k { font-weight: 500; }
.opt .d { color: var(--faint); font-size: 13px; }
.opt .select { width: 180px; height: 36px; }
.props { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; font-family: var(--mono); font-size: 12.5px; }
.props div { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.props .pk { color: var(--muted); }

.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); background: rgba(79,139,255,.08); border: 1px solid rgba(79,139,255,.25); margin-bottom: 16px; }
.notice.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.3); }
.muted { color: var(--muted); }

.toast-wrap { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: calc(100vw - 32px); }
.toast { padding: 12px 16px; border-radius: 10px; background: #15151a; border: 1px solid var(--border-strong); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 420px; white-space: pre-wrap; }
.toast.error { border-color: rgba(248,113,113,.5); }

/* ---------- panel additions ---------- */
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.srv-icon { width: 56px; height: 56px; border-radius: 10px; image-rendering: pixelated; background: rgba(0,0,0,.3); border: 1px solid var(--border); }
.status-line { display: flex; align-items: center; gap: 10px; }
.status-line .dot { width: 10px; height: 10px; }

.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-toolbar .tabs { margin-bottom: 0; }
.search { max-width: 260px; height: 38px; }
.tab-count { color: var(--faint); font-size: 12px; margin-left: 2px; }
.row.clickable { cursor: pointer; border-radius: 10px; }
.row.clickable:hover { background: var(--surface); }
.row .meta { color: var(--faint); font-size: 12px; white-space: nowrap; }
.badge.on { color: #a7f3d0; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); }
.badge.bad { color: #fecaca; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.1); }
.badge.op { color: #fde68a; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.1); }

.wl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wl-head .k { font-weight: 600; }
.wl-head .d { color: var(--faint); font-size: 13px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--border-strong); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--green); border-color: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79,139,255,.35); }

.pd-header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pd-header h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.pd-header .grow { flex: 1; min-width: 200px; }
.pd-header .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-avatar { width: 72px; height: 72px; border-radius: 12px; image-rendering: pixelated; background: var(--surface-2); }
.pd-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.loc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.loc { padding: 14px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border); min-width: 0; }
.loc .k { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.loc .v { font-family: var(--mono); font-size: 15px; margin-top: 4px; }
.loc .dim { color: var(--muted); font-size: 13px; margin-top: 2px; }
.loc button { margin-top: 10px; }

/* Minecraft-style inventory */
.inventory { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; overflow-x: auto; }
.inv-wrap { display: flex; gap: 14px; align-items: flex-start; }
.inv-col { display: grid; gap: 4px; }
.inv-grid { display: grid; grid-template-columns: repeat(9, 40px); gap: 4px; }
.inv-label { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.slot {
  position: relative; width: 40px; height: 40px; border-radius: 6px;
  background: #15151b; border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 2px 0 rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.slot.filled { cursor: default; }
.slot.filled:hover { border-color: rgba(255,255,255,.35); background: #1d1d25; }
.slot.container { cursor: pointer; }
.slot.selected { border-color: rgba(255,255,255,.7); }
.slot .placeholder { width: 22px; height: 22px; opacity: .14; }
.slot img.icon { width: 30px; height: 30px; image-rendering: pixelated; pointer-events: none; }
.slot .txt { font-size: 9px; line-height: 1.05; text-align: center; color: var(--muted); padding: 0 2px; overflow: hidden; max-height: 32px; word-break: break-word; pointer-events: none; }
.slot .cnt { position: absolute; right: 3px; bottom: 1px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 1px 1px 0 #3f3f3f; pointer-events: none; }
.slot .ench { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(135deg, rgba(168,85,247,.0) 30%, rgba(168,85,247,.28) 50%, rgba(168,85,247,0) 70%); pointer-events: none; }
.slot .dur { position: absolute; left: 5px; right: 5px; bottom: 3px; height: 3px; background: #000; pointer-events: none; }
.slot .dur i { display: block; height: 100%; }
.slot .badge-dot { position: absolute; top: 2px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); pointer-events: none; }
.shulker { width: 26px; height: 26px; border-radius: 4px; position: relative; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); pointer-events: none; }
.shulker::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(0,0,0,.35); }

.mc-tooltip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 300px;
  background: rgba(16, 0, 16, .94); border: 2px solid #25025a; outline: 1px solid #100010; border-radius: 4px;
  padding: 6px 8px; font-size: 13px; line-height: 1.45; font-family: var(--mono);
}
.mc-tooltip .t-name { color: #fff; }
.mc-tooltip .t-name.custom { color: #55ffff; font-style: italic; }
.mc-tooltip .t-ench { color: #aaaaaa; }
.mc-tooltip .t-lore { color: #aa00aa; font-style: italic; }
.mc-tooltip .t-id { color: #555; font-size: 11px; }

.modal { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.modal-card { background: #101015; border: 1px solid var(--border-strong); border-radius: 16px; padding: 20px; max-width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

.mc-preview { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; background: #0b0b0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23171310'/%3E%3Crect width='4' height='4' fill='%231b1612'/%3E%3C/svg%3E"); border: 1px solid #000; margin-bottom: 18px; max-width: 560px; font-family: var(--mono); }
.mc-preview img { width: 64px; height: 64px; image-rendering: pixelated; flex: none; }
.mc-preview .grow { flex: 1; min-width: 0; }
.pv-top { display: flex; justify-content: space-between; gap: 10px; }
.pv-name { color: #fff; }
.pv-count { color: #aaa; }
.pv-motd { color: #aaa; white-space: pre-wrap; min-height: 2.9em; margin-top: 2px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field .d { color: var(--faint); font-size: 12.5px; }
.textarea { height: auto; padding: 10px 12px; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.logo-thumb { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; background: rgba(0,0,0,.3); border: 1px solid var(--border); }
.file-btn { cursor: pointer; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 14px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.seg button.active { background: #fff; color: #000; }
.rp-pane { margin-bottom: 12px; }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 12px; max-width: 420px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--green); }
.notice .toolbar span { flex: 1; }

@media (max-width: 860px) {
  .loc-grid, .settings-grid { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: repeat(9, 34px); gap: 3px; }
  .slot { width: 34px; height: 34px; }
  .slot img.icon { width: 26px; height: 26px; }
  .search { max-width: none; width: 100%; }
}


/* ---------- server switcher (header) ---------- */
.header-tools { flex-wrap: nowrap; gap: 8px; }
.server-switch { position: relative; }
.switch-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border-strong); cursor: pointer; font-size: 13px; font-weight: 500; color: #fff; max-width: 240px; }
.switch-btn:hover { background: var(--surface-2); }
.switch-btn img { width: 24px; height: 24px; border-radius: 5px; image-rendering: pixelated; background: rgba(0,0,0,.3); flex: none; }
.switch-btn .sw-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.switch-btn svg { color: var(--faint); flex: none; }
.sw-icon { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; background: rgba(0,0,0,.3); flex: none; }
.switch-item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.switch-item .sw-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-addr { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.switch-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 280px; background: #121217; border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.switch-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; }
.switch-item:hover { background: var(--surface-2); }
.switch-item.current { background: var(--surface); }
.switch-item.all { color: var(--muted); font-size: 13px; justify-content: center; border-top: 1px solid rgba(255,255,255,.06); border-radius: 0 0 8px 8px; margin-top: 4px; }
#servers-btn svg { opacity: .8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- description formatting ---------- */
.fmt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fmt-colors { display: grid; grid-template-columns: repeat(16, 20px); gap: 4px; }
.fmt-swatch { width: 20px; height: 20px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.fmt-swatch:hover { transform: scale(1.15); }
.fmt-styles { display: flex; gap: 4px; }
.fmt-btn { min-width: 30px; height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px; color: #fff; }
.fmt-btn:hover { background: var(--surface-2); }
.fmt-btn.wide { color: var(--muted); }

/* ---------- plugin library ---------- */
.browse-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.browse-bar .seg { margin-bottom: 0; }
.browse-bar .search { flex: 1; min-width: 200px; max-width: none; }
.browse-bar .select { height: 40px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lib-grid > .empty { grid-column: 1 / -1; }
.lib-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.lib-card:hover { border-color: var(--border-strong); }
.lib-top { display: flex; gap: 12px; align-items: center; }
.lib-top .grow { flex: 1; min-width: 0; }
.lib-top .sub { color: var(--faint); font-size: 12px; }
.lib-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); flex: none; object-fit: cover; }
.lib-icon.folder { font-size: 16px; color: var(--faint); }
.row .lib-icon { width: 36px; height: 36px; }
.lib-title { font-weight: 600; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-title:hover { text-decoration: underline; }
.lib-desc { color: var(--muted); font-size: 13px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--faint); }
.chip { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); text-transform: capitalize; }
.chip.bad { color: #fecaca; background: rgba(248,113,113,.12); text-transform: none; }
.lib-actions { display: flex; justify-content: flex-end; gap: 6px; }
.version-list { width: min(620px, 86vw); max-height: 60vh; overflow: auto; }

/* ---------- world ---------- */
.seed.clickable { cursor: pointer; }
.seed.clickable:hover { color: var(--accent); }
.danger-card { border-color: rgba(248,113,113,.25); }
.list-title { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px 6px; }
.clickable { cursor: pointer; }
.dim { color: var(--faint); }

/* ---------- platform ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.plat-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.plat-card:hover { border-color: var(--border-strong); }
.plat-card.active { border-color: var(--accent); background: rgba(79,139,255,.08); box-shadow: 0 0 0 1px var(--accent) inset; }
.plat-card .name { font-weight: 600; display: flex; align-items: center; }
.plat-card .sub { font-size: 13px; color: var(--muted); }
.plat-card .sub.dim { color: var(--faint); font-size: 12px; margin-top: 4px; }
.plat-badge { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; font-weight: 800; flex: none; }
.plat-badge.sm { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }

/* ---------- servers ---------- */
.srv-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.srv-list .card + .card { margin-top: 0; }
.srv-card.current { border-color: rgba(79,139,255,.45); }
.srv-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.srv-row .grow { flex: 1; min-width: 200px; }
.srv-row .name { font-weight: 600; font-size: 16px; display: flex; align-items: center; }
.srv-row .sub { color: var(--muted); font-size: 13px; }
.srv-row .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.srv-icon.sm { width: 44px; height: 44px; }
.srv-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 110px; }
.prov-steps { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 6px; }
.prov-step { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.step-icon { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; background: var(--surface-2); color: var(--muted); }
.prov-step.done .step-icon { background: rgba(52,211,153,.18); color: var(--green); }
.prov-step.error .step-icon { background: rgba(248,113,113,.18); color: var(--red); }
.prov-step.running .step-icon { background: rgba(251,191,36,.18); color: var(--amber); }
.step-name { font-weight: 500; min-width: 110px; }
.step-msg { color: var(--faint); word-break: break-word; }
.prov-step.error .step-msg { color: #fecaca; }
.addr-input { display: flex; align-items: center; gap: 6px; }
.addr-input .input { flex: 1; min-width: 0; }
#modal-body { max-width: 86vw; }
.grid-2 + .card { margin-top: 16px; }
.settings-grid { align-items: start; }
.stat .v.seed.placeholder { font-family: inherit; font-size: 14px; color: var(--faint); font-weight: 500; }

[hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .steps, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .panel-shell { grid-template-columns: 1fr; align-content: start; }
  .brand span.dim { display: none; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); padding: 10px 12px; }
  .side-spacer, .side-foot { display: none; }
  .side-link { flex: none; }
  .fmt-colors { grid-template-columns: repeat(8, 22px); }
  .main { padding: 20px 16px 48px; }
  .console { height: 420px; }
  .props { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { padding: 0 16px; }
  .nav { display: none; }
  .hero { padding: 88px 16px 48px; }
  .section { padding: 36px 16px; }
  .address-row { flex-direction: column; }
  .opt { flex-direction: column; align-items: stretch; }
  .opt .select { width: 100%; }
}
@media (max-width: 560px) {
  .switch-btn { max-width: 130px; }
  #servers-btn svg, .brand > span { display: none; }
  .switch-menu { position: fixed; top: 60px; left: 16px; right: 16px; width: auto; }
}
