:root {
  --bg: #071019;
  --bg-2: #0a1420;
  --panel: rgba(15, 27, 41, .9);
  --panel-2: #101e2d;
  --border: rgba(132, 180, 214, .14);
  --border-strong: rgba(95, 188, 255, .28);
  --text: #edf7ff;
  --muted: #8ea6b9;
  --blue: #4da3ff;
  --cyan: #7dd3fc;
  --green: #60d394;
  --yellow: #ffd166;
  --red: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 10% 0%, rgba(77,163,255,.09), transparent 32%), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--border); background: rgba(5, 13, 21, .92); backdrop-filter: blur(16px); z-index: 5; }
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 24px; }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; color: #08111a; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 10px 30px rgba(77,163,255,.25); }
.brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.brand span { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.nav { display: grid; gap: 6px; }
.nav-item { width: 100%; border: 0; background: transparent; border-radius: 12px; padding: 11px 12px; text-align: left; display: flex; align-items: center; gap: 11px; color: #a9bdcb; cursor: pointer; transition: .18s ease; }
.nav-item span { width: 22px; text-align: center; color: #6f8ca2; font-weight: 800; }
.nav-item:hover { background: rgba(77,163,255,.07); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(77,163,255,.16), rgba(125,211,252,.06)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(77,163,255,.13); }
.nav-item.active span { color: var(--cyan); }
.sidebar-footer { margin-top: auto; padding: 18px 8px 2px; border-top: 1px solid var(--border); }
.connection-pill { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b8c8d4; }
.connection-pill i { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,209,102,.08); }
.connection-pill.online i { background: var(--green); box-shadow: 0 0 0 4px rgba(96,211,148,.08); }
.mini-copy { margin-top: 8px; color: #587083; font-size: 11px; line-height: 1.45; }

.main { min-width: 0; padding: 0 28px 48px; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 4; background: linear-gradient(180deg, rgba(7,16,25,.98) 65%, rgba(7,16,25,.75) 85%, transparent); }
.topbar h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.03em; }
.eyebrow { color: #5f89a6; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.top-actions, .inline-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.btn { border: 1px solid var(--border-strong); background: #102235; color: #ddecf8; padding: 9px 13px; border-radius: 10px; cursor: pointer; transition: .18s ease; font-weight: 700; font-size: 13px; }
.btn:hover { transform: translateY(-1px); border-color: rgba(125,211,252,.55); }
.btn.primary { border-color: transparent; color: #071019; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.btn.ghost { background: rgba(255,255,255,.025); }
.btn.danger-soft { background: rgba(255,107,107,.075); border-color: rgba(255,107,107,.17); color: #ffb3b3; }
.btn.small { padding: 7px 10px; font-size: 12px; }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 26px; line-height: 1; }

.notice { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; background: rgba(77,163,255,.06); color: #bcd1df; font-size: 13px; line-height: 1.5; margin: 0 0 20px; }
.notice strong { color: #e6f4ff; white-space: nowrap; }
.notice.subtle { margin-top: 18px; background: rgba(255,255,255,.018); }
.page { display: none; }
.page.active { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 17px; background: linear-gradient(180deg, rgba(19,35,52,.94), rgba(12,24,36,.94)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card span { color: #718da3; font-size: 12px; }
.stat-card strong { display: block; margin: 8px 0 3px; font-size: 22px; letter-spacing: -.02em; }
.stat-card small { color: #7790a3; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.panel, .preview-card { background: linear-gradient(180deg, rgba(15,27,41,.95), rgba(10,21,32,.95)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.panel-head h2, .form-section h3, .section-title-row h3 { margin: 4px 0 0; }
.panel-head h2 { font-size: 18px; }
.form-section h3, .section-title-row h3 { font-size: 14px; }
.panel-intro { margin: -3px 0 18px; color: var(--muted); line-height: 1.6; font-size: 13px; }
.feature-list { display: grid; gap: 10px; }
.feature-list > div { padding: 12px; border: 1px solid rgba(255,255,255,.055); border-radius: 12px; background: rgba(255,255,255,.018); }
.feature-list b { display: block; font-size: 13px; margin-bottom: 4px; color: #dff2ff; }
.feature-list span { color: var(--muted); line-height: 1.45; font-size: 12px; }
.timeline { display: grid; gap: 11px; }
.timeline > div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.timeline span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(77,163,255,.1); color: var(--cyan); font-weight: 800; font-size: 12px; }
.timeline p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.timeline b { color: #dcebf5; }

.input, input, textarea, select { width: 100%; border: 1px solid rgba(122,174,211,.18); background: rgba(3,10,17,.55); color: var(--text); border-radius: 10px; padding: 10px 11px; outline: none; transition: .15s ease; }
input:focus, textarea:focus, select:focus { border-color: rgba(77,163,255,.65); box-shadow: 0 0 0 3px rgba(77,163,255,.08); }
textarea { resize: vertical; line-height: 1.45; }
.search { max-width: 250px; }
.field { display: grid; gap: 6px; margin-bottom: 13px; }
.field > span { font-size: 12px; font-weight: 750; color: #d4e5f1; }
.field small, .switch-row small, .section-title-row small { color: #6f899d; line-height: 1.35; font-size: 11px; font-weight: 500; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-section { margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.form-section h3 { margin-bottom: 12px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-title-row > div { min-width: 0; }
.switch-row { min-height: 52px; border: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.015); border-radius: 11px; padding: 10px 11px; display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; margin-bottom: 12px; }
.switch-row.compact { min-height: auto; border: 0; padding: 0; margin: 0; background: transparent; gap: 8px; }
.switch-row > span { min-width: 0; font-size: 12px; color: #cfe0eb; }
.switch-row b { display: block; margin-bottom: 2px; }
.switch-row input { display: none; }
.switch-row i { width: 38px; height: 21px; border-radius: 999px; background: #223748; position: relative; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.switch-row i::after { content: ''; width: 15px; height: 15px; position: absolute; top: 3px; left: 3px; background: #99afbd; border-radius: 50%; transition: .18s ease; }
.switch-row input:checked + i { background: rgba(77,163,255,.35); }
.switch-row input:checked + i::after { transform: translateX(17px); background: var(--cyan); }

.plugin-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.plugin-chip { border: 1px solid rgba(255,255,255,.055); border-radius: 11px; padding: 11px; background: rgba(255,255,255,.015); min-width: 0; }
.plugin-chip b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plugin-chip span { display: block; color: #607d91; font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.designer-layout { display: grid; grid-template-columns: minmax(520px, 1.12fr) minmax(360px, .88fr); gap: 18px; align-items: start; }
.editor-panel { padding-bottom: 76px; position: relative; }
.preview-stack { display: grid; gap: 14px; position: sticky; top: 112px; }
.preview-card { padding: 14px; }
.preview-label { font-size: 11px; color: #698aa1; text-transform: uppercase; font-weight: 800; letter-spacing: .13em; margin-bottom: 12px; }
.save-state { font-size: 11px; border: 1px solid rgba(255,255,255,.07); padding: 5px 8px; border-radius: 999px; color: #7891a4; }
.save-state.saved { color: #9ee5bd; border-color: rgba(96,211,148,.18); background: rgba(96,211,148,.05); }
.save-state.saving { color: var(--yellow); }
.save-state.error { color: #ffaaa8; border-color: rgba(255,107,107,.18); }
.sticky-actions { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--border); background: rgba(10,21,32,.92); backdrop-filter: blur(10px); border-radius: 0 0 var(--radius) var(--radius); }
.tip-panel { font-size: 12px; color: var(--muted); line-height: 1.55; }
.tip-panel b { color: #dceaf4; }
.tip-panel p { margin: 7px 0 0; }

.minecraft-window { background: #0b1015; border: 1px solid rgba(255,255,255,.08); min-height: 430px; box-shadow: inset 0 0 70px rgba(0,0,0,.38); font-family: "Courier New", ui-monospace, monospace; font-size: 14px; text-shadow: 1px 1px 0 rgba(0,0,0,.8); }
.tab-window { display: flex; flex-direction: column; justify-content: space-between; }
.tab-header, .tab-footer { text-align: center; padding: 16px 12px; min-height: 74px; display: grid; align-content: center; gap: 3px; }
.player-list { padding: 8px 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3px 18px; }
.player-row { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.player-head { width: 16px; height: 16px; image-rendering: pixelated; background: linear-gradient(45deg, #b27b58 25%, #5a8fb6 25% 50%, #d4a26c 50% 75%, #345a74 75%); flex: 0 0 auto; }
.player-name { overflow: hidden; text-overflow: ellipsis; }
.ping-bars { margin-left: auto; color: #62d777; letter-spacing: -2px; font-size: 12px; }
.rank-preview-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-badge { padding: 7px 9px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.05); border-radius: 9px; font-family: "Courier New", monospace; font-size: 12px; }

.minecraft-scene { min-height: 440px; position: relative; background: linear-gradient(#3c6075 0 45%, #6b7753 45% 48%, #536243 48%); overflow: hidden; border: 1px solid rgba(255,255,255,.07); }
.minecraft-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px); background-size: 22px 22px; opacity: .4; }
.scoreboard-preview { position: absolute; top: 46px; right: 18px; min-width: 232px; max-width: 280px; background: rgba(0,0,0,.35); padding: 4px 4px 6px; font-family: "Courier New", ui-monospace, monospace; text-shadow: 1px 1px 0 #000; font-size: 14px; }
.scoreboard-title { text-align: center; padding: 3px 7px 5px; font-weight: 700; }
.scoreboard-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 19px; white-space: nowrap; }
.scoreboard-row .score { color: #ff5555; }
.line-editor { display: grid; gap: 7px; }
.line-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 80px 62px 30px; gap: 6px; align-items: center; }
.line-row input { padding: 8px 9px; font-size: 12px; }
.line-row .move { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.line-row .move button, .line-row .remove { border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); border-radius: 6px; color: #7792a6; cursor: pointer; height: 17px; line-height: 11px; font-size: 10px; padding: 0; }
.line-row .remove { height: 30px; color: #d98a8a; }

.chat-preview { background: #11161c; border: 1px solid rgba(255,255,255,.07); min-height: 330px; padding: 18px; font-family: "Courier New", ui-monospace, monospace; font-size: 14px; line-height: 1.7; text-shadow: 1px 1px 0 #000; }
.chat-line { margin-bottom: 2px; }
.chat-meta { color: #6c7780; font-size: 11px; margin-bottom: 12px; font-family: Inter, sans-serif; text-shadow: none; }

.rank-table { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 1.2fr 1.5fr 90px auto; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.015); border-radius: 12px; padding: 11px 12px; }
.rank-row .group { min-width: 0; }
.rank-row .group b { display: block; font-size: 13px; }
.rank-row .group small { color: #668298; }
.rank-row .sample { font-family: "Courier New", monospace; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-row .priority { color: #7891a3; font-size: 12px; }
.rank-row .actions { display: flex; gap: 6px; }
.modal { width: min(680px, calc(100vw - 32px)); border: 1px solid var(--border-strong); background: #0c1824; color: var(--text); border-radius: 18px; padding: 0; box-shadow: 0 35px 90px rgba(0,0,0,.55); }
.modal::backdrop { background: rgba(0,0,0,.64); backdrop-filter: blur(4px); }
.modal form { padding: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.modal-head h2 { margin: 3px 0 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.rank-live-sample { margin-top: 12px; padding: 12px; border-radius: 10px; background: #070c11; font-family: "Courier New", monospace; }
.rank-live-sample > span { display: block; color: #617b8d; font: 700 10px Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }

.plugin-manager { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 16px; min-height: 650px; }
.plugin-list-panel { padding-right: 12px; }
.plugin-list-panel .search { max-width: none; margin-bottom: 10px; }
.plugin-list { display: grid; gap: 4px; max-height: calc(100vh - 270px); overflow: auto; padding-right: 4px; }
.plugin-item { border: 0; background: transparent; color: #a9bdcb; border-radius: 9px; padding: 9px 10px; text-align: left; cursor: pointer; }
.plugin-item:hover, .plugin-item.active { background: rgba(77,163,255,.075); color: #e7f5ff; }
.plugin-item b { display: block; font-size: 12px; }
.plugin-item span { display: block; color: #607b8f; font-size: 10px; margin-top: 2px; }
.config-panel { min-width: 0; }
.empty-state { min-height: 520px; display: grid; place-items: center; align-content: center; text-align: center; color: #607b8e; }
.empty-state > div { font-size: 40px; opacity: .35; }
.empty-state h2 { color: #a9bfce; margin-bottom: 5px; }
.empty-state p { margin: 0; font-size: 12px; }
.plugin-description { margin: -4px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.config-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.config-toolbar select { max-width: 520px; }
.segmented { display: flex; border: 1px solid var(--border); padding: 3px; border-radius: 10px; background: rgba(0,0,0,.18); }
.segmented button { border: 0; background: transparent; color: #6d879a; padding: 6px 10px; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 800; }
.segmented button.active { color: #d9edf9; background: rgba(77,163,255,.12); }
.guided-config { display: grid; gap: 8px; }
.config-group { border: 1px solid rgba(255,255,255,.05); border-radius: 12px; overflow: hidden; }
.config-group > summary { cursor: pointer; padding: 10px 12px; color: #bfd2df; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.018); }
.config-group-body { padding: 8px 10px 10px; display: grid; gap: 8px; }
.config-setting { display: grid; grid-template-columns: minmax(180px,.65fr) minmax(280px,1.35fr); gap: 14px; align-items: start; padding: 8px; border-radius: 9px; }
.config-setting:hover { background: rgba(255,255,255,.015); }
.setting-info b { display: block; font-size: 12px; color: #d7e8f3; word-break: break-word; }
.setting-info code { display: block; color: #57778d; margin-top: 3px; font-size: 10px; word-break: break-all; }
.setting-info p { margin: 5px 0 0; color: #70899c; line-height: 1.4; font-size: 11px; }
.setting-control textarea { min-height: 70px; }
.raw-warning { padding: 9px 11px; border: 1px solid rgba(255,209,102,.12); background: rgba(255,209,102,.04); color: #bea86e; border-radius: 10px; font-size: 11px; margin-bottom: 8px; }
.raw-config textarea { min-height: 560px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; tab-size: 2; }


.player-management { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 18px; align-items: start; }
.player-directory-panel { position: sticky; top: 112px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; min-height: 560px; }
.player-directory-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 8px; }
.player-directory-toolbar .search { max-width: none; }
.player-counts { display: flex; gap: 8px; margin: 11px 0; color: #6e8ba0; font-size: 11px; }
.player-counts span { border: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.018); border-radius: 999px; padding: 5px 8px; }
.player-counts b { color: #d9edf9; }
.player-directory { display: grid; gap: 5px; overflow: auto; padding-right: 3px; }
.player-directory-item { width: 100%; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 9px 10px; text-align: left; cursor: pointer; }
.player-directory-item:hover { background: rgba(77,163,255,.055); }
.player-directory-item.active { background: rgba(77,163,255,.11); border-color: rgba(77,163,255,.16); }
.player-directory-item span { min-width: 0; }
.player-directory-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.player-directory-item small { display: block; color: #607b8f; font-size: 10px; margin-top: 2px; }
.player-directory-item em { font-style: normal; color: #7895aa; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.player-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #465867; box-shadow: 0 0 0 3px rgba(255,255,255,.025); }
.player-status-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(96,211,148,.09); }
.directory-empty { color: #607b8f; text-align: center; padding: 34px 10px; font-size: 12px; line-height: 1.5; }
.player-workspace { min-width: 0; display: grid; gap: 18px; }
.player-summary-panel { min-height: 130px; }
.compact-empty { min-height: 96px; }
.player-summary-head { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.player-avatar { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; font-weight: 900; color: #071019; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 10px 25px rgba(77,163,255,.15); }
.player-identity h2 { margin: 3px 0 4px; font-size: 22px; }
.player-identity code { color: #66869c; font-size: 10px; word-break: break-all; }
.player-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.player-badge { border: 1px solid rgba(125,211,252,.13); background: rgba(125,211,252,.045); color: #9fcce5; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 800; }
.player-badge.good { border-color: rgba(96,211,148,.18); background: rgba(96,211,148,.05); color: #9ee5bd; }
.player-badge.warn { border-color: rgba(255,209,102,.18); background: rgba(255,209,102,.05); color: #ead18a; }
.player-badge.danger { border-color: rgba(255,107,107,.2); background: rgba(255,107,107,.055); color: #ffaaaa; }
.player-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.action-card { min-width: 0; }
.action-card .panel-head { margin-bottom: 13px; }
.button-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.button-grid .btn { min-height: 39px; }
.compact-buttons { grid-template-columns: repeat(2, minmax(0,1fr)); }
.coord-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-bottom: 9px; }
.helper-copy { margin: 10px 0 0; color: #70899c; font-size: 11px; line-height: 1.5; }
.helper-copy code { color: #8dc9ec; }
.danger-card { border-color: rgba(255,107,107,.09); }
.player-action-log-panel { margin-top: 18px; }
.player-action-log { display: grid; gap: 5px; max-height: 250px; overflow: auto; }
.player-action-log > div:not(.muted-line) { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.04); padding: 7px 2px; font-size: 11px; }
.player-action-log time { color: #587486; font-family: ui-monospace, monospace; }
.player-action-log span { color: #b9cdda; }
.player-action-log b { color: #dff2ff; }
.muted-line { color: #617b8d; font-size: 11px; padding: 8px 2px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

.console-panel { min-height: 500px; }
.command-bar { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; border: 1px solid rgba(77,163,255,.2); background: #060c12; border-radius: 12px; padding: 6px; }
.command-bar span { color: var(--cyan); text-align: center; font-family: ui-monospace, monospace; }
.command-bar input { border: 0; background: transparent; box-shadow: none; font-family: ui-monospace, monospace; }
.command-history { margin-top: 14px; background: #060b10; border: 1px solid rgba(255,255,255,.05); min-height: 280px; max-height: 430px; overflow: auto; padding: 12px; border-radius: 12px; font-family: ui-monospace, monospace; font-size: 12px; color: #7f9aab; }
.command-history div { margin-bottom: 6px; }
.command-history b { color: #9fdcff; }

.settings-grid { align-items: start; }
.security-box { border: 1px solid rgba(125,211,252,.09); background: rgba(125,211,252,.035); border-radius: 12px; padding: 12px; color: #8ba7ba; font-size: 12px; line-height: 1.5; }
.security-box b { color: #cfe6f4; }
.security-box p { margin: 5px 0 0; }
.endpoint-list { display: grid; gap: 7px; }
.endpoint-list code { padding: 9px 10px; background: rgba(0,0,0,.2); border-radius: 9px; color: #81b8d8; font-size: 11px; word-break: break-all; }

.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 8px; }
.toast { width: min(360px, calc(100vw - 40px)); border: 1px solid var(--border-strong); background: #0c1b28; color: #dcebf5; border-radius: 12px; padding: 11px 13px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-size: 12px; line-height: 1.4; animation: toastIn .2s ease; }
.toast.error { border-color: rgba(255,107,107,.3); }
.toast.success { border-color: rgba(96,211,148,.28); }
@keyframes toastIn { from { opacity: 0; transform: translateY(7px); } }

.mc-black{color:#000}.mc-dark-blue{color:#0000aa}.mc-dark-green{color:#00aa00}.mc-dark-aqua{color:#00aaaa}.mc-dark-red{color:#aa0000}.mc-dark-purple{color:#aa00aa}.mc-gold{color:#ffaa00}.mc-gray{color:#aaa}.mc-dark-gray{color:#555}.mc-blue{color:#5555ff}.mc-green{color:#55ff55}.mc-aqua{color:#55ffff}.mc-red{color:#ff5555}.mc-light-purple{color:#ff55ff}.mc-yellow{color:#ffff55}.mc-white{color:#fff}.mc-bold{font-weight:800}.mc-italic{font-style:italic}.mc-under{text-decoration:underline}.mc-strike{text-decoration:line-through}

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plugin-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .designer-layout { grid-template-columns: 1fr; }
  .preview-stack { position: static; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > div:not(.brand-mark), .nav-item:not(.active) span + *, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .nav-item span { font-size: 16px; }
  .sidebar-footer .mini-copy, .connection-pill span { display: none; }
  .connection-pill { justify-content: center; }
  .main { padding-inline: 18px; }
  .topbar { align-items: flex-start; padding-top: 22px; }
  .top-actions { justify-content: flex-end; }
  .plugin-manager { grid-template-columns: 230px minmax(0,1fr); }
  .player-management { grid-template-columns: 270px minmax(0,1fr); }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 67px; flex-direction: row; align-items: center; padding: 7px; border-right: 0; border-top: 1px solid var(--border); z-index: 20; overflow-x: auto; }
  .brand, .sidebar-footer { display: none; }
  .nav { display: flex; gap: 4px; width: max-content; }
  .nav-item { width: 58px; height: 52px; }
  .main { padding: 0 12px 84px; }
  .topbar { min-height: 92px; position: static; }
  .topbar h1 { font-size: 23px; }
  .top-actions .switch-row, #restartBtn { display: none; }
  .grid-2, .row-2, .stat-grid { grid-template-columns: 1fr; }
  .plugin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plugin-manager { grid-template-columns: 1fr; }
  .plugin-list { max-height: 240px; }
  .player-management { grid-template-columns: 1fr; }
  .player-directory-panel { position: static; max-height: none; min-height: auto; }
  .player-directory { max-height: 320px; }
  .player-action-grid { grid-template-columns: 1fr; }
  .player-summary-head { grid-template-columns: 48px minmax(0,1fr); }
  .player-summary-head > .inline-actions { grid-column: 1 / -1; }
  .player-avatar { width: 48px; height: 48px; }
  .config-setting { grid-template-columns: 1fr; gap: 8px; }
  .rank-row { grid-template-columns: 1fr; }
  .line-row { grid-template-columns: 26px minmax(0,1fr) 30px; }
  .line-row .meta-refresh, .line-row .meta-score { display: none; }
}

/* ============================================================
   MHQ Premium UI refresh — clean graphite + restrained blue
   ============================================================ */
:root {
  --bg: #080b0f;
  --bg-2: #0b0f14;
  --panel: #0f141a;
  --panel-2: #121820;
  --panel-3: #171e27;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(91,155,255,.28);
  --text: #f5f7fa;
  --muted: #8e99a8;
  --muted-2: #667281;
  --blue: #5b9bff;
  --cyan: #7fc8ff;
  --green: #64d69a;
  --yellow: #e9c46a;
  --red: #ef7b7b;
  --shadow: 0 18px 50px rgba(0,0,0,.26);
  --shadow-soft: 0 8px 28px rgba(0,0,0,.18);
  --radius: 14px;
  --radius-sm: 10px;
}

html, body {
  background:
    radial-gradient(circle at 22% -10%, rgba(91,155,255,.07), transparent 30%),
    linear-gradient(180deg, #090c11 0%, #080b0f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.005em;
}

::selection { background: rgba(91,155,255,.28); color: #fff; }
* { scrollbar-color: #29313b transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #29313b; border: 3px solid transparent; background-clip: padding-box; border-radius: 99px; }

.app-shell { grid-template-columns: 264px minmax(0,1fr); }
.sidebar {
  padding: 20px 14px 16px;
  background: rgba(9,12,16,.96);
  border-right: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(24px);
}
.brand { gap: 11px; padding: 2px 9px 25px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, #202833, #11161c);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.25);
  color: #dbe9ff;
}
.brand-mark span { font-size: 9px; letter-spacing: .08em; font-weight: 900; }
.brand strong { font-size: 14px; font-weight: 760; letter-spacing: -.01em; }
.brand span { color: #788493; font-size: 11px; }

.nav { display: block; }
.nav-label {
  color: #4f5966;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  padding: 12px 12px 7px;
}
.nav-item {
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 11px;
  border-radius: 9px;
  gap: 10px;
  color: #919dac;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.035); color: #e7ebf0; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(91,155,255,.13), rgba(91,155,255,.055));
  color: #f3f7ff;
  border-color: rgba(91,155,255,.12);
  box-shadow: inset 2px 0 0 #5b9bff;
}
.nav-icon {
  width: 18px !important; height: 18px; display: grid; place-items: center;
  color: #697686 !important; flex: 0 0 18px;
}
.nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active .nav-icon { color: #8db7ff !important; }
.sidebar-footer { padding: 15px 9px 0; border-color: rgba(255,255,255,.055); }
.connection-pill { font-size: 11px; color: #8c97a4; }
.connection-pill i { width: 7px; height: 7px; }
.mini-copy { color: #495460; font-size: 10px; }

.main { max-width: 1700px; width: 100%; padding: 0 30px 52px; }
.topbar {
  min-height: 92px;
  background: linear-gradient(180deg, rgba(8,11,15,.98) 76%, rgba(8,11,15,.76) 92%, transparent);
  border-bottom: 0;
}
.topbar h1 { margin-top: 3px; font-size: 25px; font-weight: 720; letter-spacing: -.035em; }
.eyebrow { color: #647180; font-size: 9px; letter-spacing: .15em; font-weight: 800; }
.top-actions { gap: 8px; }

.btn {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.09);
  background: #151b22;
  color: #dce2e9;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 680;
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 1px 2px rgba(0,0,0,.16);
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); background: #19212a; border-color: rgba(255,255,255,.15); }
.btn:active { transform: translateY(0); }
.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #5b9bff, #4a88ea);
  border-color: rgba(131,181,255,.55);
  box-shadow: 0 6px 18px rgba(57,116,215,.18), inset 0 1px rgba(255,255,255,.18);
}
.btn.primary:hover { background: linear-gradient(180deg, #68a4ff, #518fea); border-color: rgba(170,203,255,.65); }
.btn.ghost { background: transparent; color: #aab3be; border-color: rgba(255,255,255,.075); }
.btn.ghost:hover { background: rgba(255,255,255,.04); color: #edf2f7; }
.btn.danger-soft { background: rgba(239,123,123,.07); border-color: rgba(239,123,123,.16); color: #f1a1a1; }
.btn.danger-soft:hover { background: rgba(239,123,123,.11); border-color: rgba(239,123,123,.25); }
.btn.small { min-height: 31px; padding: 6px 9px; font-size: 11px; }

.notice {
  margin-bottom: 18px;
  border-radius: 10px;
  border-color: rgba(91,155,255,.12);
  background: rgba(91,155,255,.045);
  color: #9ca9b8;
  font-size: 12px;
  padding: 11px 13px;
}
.notice strong { color: #dbe8fb; font-weight: 700; }
.notice.subtle { background: rgba(255,255,255,.018); }

.stat-grid { gap: 12px; margin-bottom: 16px; }
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 17px;
  background: linear-gradient(180deg, #11171e, #0e1319);
  border-color: rgba(255,255,255,.065);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.stat-card::before {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(91,155,255,.42), transparent 42%);
}
.stat-card span { color: #788493; font-size: 10.5px; font-weight: 650; }
.stat-card strong { margin: 10px 0 4px; font-size: 21px; font-weight: 710; }
.stat-card small { color: #5f6b79; font-size: 10.5px; }

.grid-2 { gap: 16px; margin-bottom: 16px; }
.panel, .preview-card {
  background: linear-gradient(180deg, #10161d 0%, #0e1319 100%);
  border-color: rgba(255,255,255,.067);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.panel { padding: 18px; }
.panel-head { margin-bottom: 15px; }
.panel-head h2 { font-size: 16px; font-weight: 710; letter-spacing: -.02em; }
.form-section h3, .section-title-row h3 { font-size: 12.5px; font-weight: 700; }
.panel-intro { color: #818d9a; font-size: 12px; }
.feature-list { gap: 7px; }
.feature-list > div {
  padding: 11px 12px;
  background: rgba(255,255,255,.014);
  border-color: rgba(255,255,255,.045);
  border-radius: 9px;
}
.feature-list b { font-size: 12px; color: #e8edf3; }
.feature-list span { color: #788493; font-size: 11px; }
.timeline { gap: 12px; }
.timeline > div { grid-template-columns: 27px 1fr; }
.timeline span {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(91,155,255,.085); color: #8eb9ff;
  border: 1px solid rgba(91,155,255,.09);
}
.timeline p { color: #7b8795; font-size: 11px; }
.timeline b { color: #e2e7ed; }

.input, input, textarea, select {
  border-color: rgba(255,255,255,.085);
  background: #0a0f14;
  color: #e9edf2;
  border-radius: 8px;
  padding: 9px 10px;
  min-height: 36px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.16);
}
input::placeholder, textarea::placeholder { color: #4e5966; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(91,155,255,.58);
  box-shadow: 0 0 0 3px rgba(91,155,255,.075);
}
textarea { min-height: auto; }
.search { max-width: 270px; }
.field { gap: 6px; margin-bottom: 12px; }
.field > span { color: #cbd2db; font-size: 11px; font-weight: 670; }
.field small, .switch-row small, .section-title-row small { color: #65717e; font-size: 10.5px; }
.row-2 { gap: 10px; }
.form-section { margin: 15px 0; padding-top: 15px; border-color: rgba(255,255,255,.055); }

.switch-row {
  min-height: 50px;
  background: rgba(255,255,255,.012);
  border-color: rgba(255,255,255,.055);
  border-radius: 9px;
  padding: 9px 10px;
}
.switch-row.compact { min-height: auto; }
.switch-row > span { color: #c4ccd5; font-size: 11px; }
.switch-row i { width: 36px; height: 20px; background: #252c34; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.switch-row i::after { width: 14px; height: 14px; background: #8893a0; }
.switch-row input:checked + i { background: rgba(91,155,255,.38); }
.switch-row input:checked + i::after { transform: translateX(16px); background: #dceaff; }

.plugin-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.plugin-chip {
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(255,255,255,.012);
  border-color: rgba(255,255,255,.05);
}
.plugin-chip:hover { border-color: rgba(91,155,255,.14); background: rgba(91,155,255,.025); }
.plugin-chip b { color: #d8dee6; font-size: 11px; }
.plugin-chip span { color: #5b6673; font-size: 9.5px; }

.designer-layout { gap: 16px; }
.editor-panel { padding-bottom: 70px; }
.preview-stack { gap: 12px; top: 101px; }
.preview-card { padding: 12px; }
.preview-label { color: #606c79; font-size: 9px; margin-bottom: 9px; }
.save-state { color: #697582; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.015); }
.sticky-actions {
  padding: 11px 18px;
  background: rgba(14,19,25,.94);
  border-color: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}
.minecraft-window, .chat-preview {
  border-color: rgba(255,255,255,.07);
  border-radius: 8px;
  overflow: hidden;
}

.rank-row {
  background: rgba(255,255,255,.012);
  border-color: rgba(255,255,255,.05);
  border-radius: 9px;
}
.modal {
  border-color: rgba(255,255,255,.1);
  background: #11171e;
  border-radius: 14px;
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
}
.modal::backdrop { background: rgba(2,5,8,.76); backdrop-filter: blur(8px); }

.plugin-manager { grid-template-columns: 270px minmax(0,1fr); gap: 14px; }
.plugin-list-panel { padding-right: 14px; }
.plugin-list { gap: 3px; }
.plugin-item { border-radius: 8px; padding: 9px 10px; color: #8c98a6; }
.plugin-item:hover { background: rgba(255,255,255,.03); color: #e2e7ed; }
.plugin-item.active { background: rgba(91,155,255,.09); color: #e8f1ff; box-shadow: inset 2px 0 0 #5b9bff; }
.plugin-item b { font-size: 11px; }
.plugin-item span { color: #57626e; font-size: 9.5px; }
.segmented { border-color: rgba(255,255,255,.065); background: #0b1015; border-radius: 8px; }
.segmented button { border-radius: 6px; color: #697582; }
.segmented button.active { color: #e1ebfa; background: rgba(91,155,255,.11); }
.config-group { border-color: rgba(255,255,255,.05); border-radius: 9px; }
.config-group > summary { background: rgba(255,255,255,.015); color: #c7d0da; }
.config-setting:hover { background: rgba(255,255,255,.012); }
.raw-warning { border-color: rgba(233,196,106,.14); background: rgba(233,196,106,.035); color: #b7a475; }

/* Player Management */
.player-management { grid-template-columns: 292px minmax(0,1fr); gap: 14px; }
.player-directory-panel {
  top: 101px;
  min-height: 590px;
  max-height: calc(100vh - 122px);
  padding: 15px;
}
.player-directory-toolbar { grid-template-columns: minmax(0,1fr) 112px; gap: 7px; }
.player-counts { gap: 6px; margin: 10px 0 11px; }
.player-counts span {
  border-color: rgba(255,255,255,.055);
  background: rgba(255,255,255,.012);
  color: #65717d;
  padding: 4px 7px;
  font-size: 9.5px;
}
.player-counts b { color: #c9d1da; }
.player-directory { gap: 3px; }
.player-directory-item {
  min-height: 48px;
  grid-template-columns: 8px minmax(0,1fr) auto;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 8px;
}
.player-directory-item:hover { background: rgba(255,255,255,.028); }
.player-directory-item.active {
  background: rgba(91,155,255,.085);
  border-color: rgba(91,155,255,.11);
  box-shadow: inset 2px 0 0 #5b9bff;
}
.player-directory-item b { font-size: 11.5px; font-weight: 680; }
.player-directory-item small { color: #5f6b77; font-size: 9.5px; }
.player-directory-item em { color: #677482; font-size: 8.5px; }
.player-status-dot { width: 6px; height: 6px; }
.player-workspace { gap: 14px; }
.player-summary-panel {
  min-height: 118px;
  background:
    linear-gradient(110deg, rgba(91,155,255,.045), transparent 42%),
    linear-gradient(180deg, #11171e, #0e1319);
}
.player-summary-head { grid-template-columns: 52px minmax(0,1fr) auto; gap: 13px; }
.player-avatar {
  width: 52px; height: 52px;
  border-radius: 11px;
  background: linear-gradient(145deg, #6ca5ff, #4e7fcf);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 24px rgba(49,91,159,.17), inset 0 1px rgba(255,255,255,.16);
}
.player-identity h2 { font-size: 19px; font-weight: 720; margin: 2px 0 3px; }
.player-identity code { color: #596674; font-size: 9.5px; }
.player-badges { gap: 5px; margin-top: 8px; }
.player-badge {
  padding: 3px 6px;
  border-color: rgba(255,255,255,.065);
  background: rgba(255,255,255,.018);
  color: #8f9aa7;
  font-size: 9px;
  font-weight: 750;
}
.player-badge.good { border-color: rgba(100,214,154,.14); background: rgba(100,214,154,.045); color: #8ed7ad; }
.player-badge.warn { border-color: rgba(233,196,106,.14); background: rgba(233,196,106,.04); color: #d7c27d; }
.player-badge.danger { border-color: rgba(239,123,123,.15); background: rgba(239,123,123,.045); color: #e79999; }
.player-action-grid { gap: 14px; }
.action-card { padding: 16px; }
.action-card .panel-head { margin-bottom: 12px; }
.button-grid { gap: 7px; }
.button-grid .btn { min-height: 36px; }
.coord-grid { gap: 7px; }
.helper-copy { color: #65717e; font-size: 10.5px; }
.helper-copy code { color: #82aee9; }
.danger-card {
  border-color: rgba(239,123,123,.11);
  background: linear-gradient(180deg, rgba(239,123,123,.025), #0e1319 38%);
}
.player-action-log-panel { margin-top: 14px; }
.player-action-log > div:not(.muted-line) { border-color: rgba(255,255,255,.045); }

.console-panel { min-height: 520px; }
.command-bar {
  border-color: rgba(91,155,255,.16);
  background: #080c10;
  border-radius: 9px;
  padding: 5px;
}
.command-history {
  background: #080c10;
  border-color: rgba(255,255,255,.055);
  border-radius: 9px;
  color: #71808e;
}
.command-history b { color: #86b5f8; }
.security-box { border-color: rgba(91,155,255,.10); background: rgba(91,155,255,.03); color: #7c8997; }
.endpoint-list code { background: #0a0f14; color: #7ca9e9; }

.toast-host { right: 18px; bottom: 18px; }
.toast {
  border-color: rgba(255,255,255,.09);
  background: rgba(17,23,30,.97);
  color: #dfe5ec;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.empty-state { color: #596572; }
.empty-state > div { opacity: .2; }
.empty-state h2 { color: #aeb8c4; }

@media (max-width: 1180px) {
  .plugin-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  .brand-mark { width: 36px; height: 36px; }
  .nav-label { display: none; }
  .nav-item { margin: 4px 0; }
  .nav-item .nav-icon { font-size: initial; }
  .nav-item:not(.active) span + * { font-size: inherit; }
  .player-management { grid-template-columns: 250px minmax(0,1fr); }
}
@media (max-width: 700px) {
  .sidebar { height: 64px; }
  .nav-item { width: 56px; height: 49px; margin: 0; }
  .main { padding-inline: 12px; }
  .topbar { min-height: 84px; }
  .player-management { grid-template-columns: 1fr; }
  .player-directory-panel { max-height: none; min-height: auto; }
  .player-action-grid { grid-template-columns: 1fr; }
}


/* ===== MHQ premium editor v3 ===== */
.premium-section{border:1px solid rgba(117,149,185,.12);background:linear-gradient(180deg,rgba(16,24,35,.72),rgba(10,16,24,.42));border-radius:16px;padding:18px;margin:16px 0}
.premium-section h3,.rank-style-builder h3{margin:0}.premium-section h4,.subcard h4{margin:0 0 12px;color:#e9f1fb}.subcard{margin-top:14px;padding:14px;border:1px solid rgba(117,149,185,.12);border-radius:14px;background:rgba(5,10,16,.28)}
.row-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.row-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.compact-fields .field{margin:0}.mini-toggle{display:inline-flex;align-items:center;gap:8px;color:#9fb0c5;font-size:12px}.mini-toggle input{accent-color:#5aa9ff}
.quick-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.stat-preset{border:1px solid rgba(117,149,185,.14);background:#0b121b;color:#b9c8d8;border-radius:10px;padding:10px 12px;text-align:left;cursor:pointer}.stat-preset:hover{border-color:rgba(90,169,255,.46);color:#eef6ff;background:#0d1723}
.designer-toolbar{display:flex;justify-content:space-between;gap:12px;margin:0 0 14px;flex-wrap:wrap}.toolbar-cluster{display:flex;gap:8px;flex-wrap:wrap}.premium-toolbar{padding:10px;border:1px solid rgba(117,149,185,.1);background:rgba(5,10,16,.22);border-radius:12px}.accent-soft{background:rgba(90,169,255,.09)!important;color:#9fd0ff!important;border-color:rgba(90,169,255,.25)!important}
.stat-line-builder{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto auto;gap:10px;align-items:center;padding:12px;border:1px solid rgba(117,149,185,.12);border-radius:12px;background:rgba(5,10,16,.24);margin-bottom:14px}.stat-line-builder small{display:block;color:#738399;margin-top:3px}
.format-composer,.rank-style-builder{border:1px solid rgba(117,149,185,.12);border-radius:14px;padding:14px;margin:14px 0;background:rgba(5,10,16,.25)}.format-composer-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.format-composer-head small{display:block;color:#738399;margin-top:3px}.compact-control{min-height:48px;margin:0}.field input[type=color]{height:42px;padding:4px;border-radius:9px;cursor:pointer}
.builder-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.color-presets{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.color-presets button{border:1px solid rgba(117,149,185,.14);background:#0b121b;color:#9fb0c5;border-radius:999px;padding:7px 10px;cursor:pointer;font-size:11px}.color-presets button:hover{color:#fff;border-color:rgba(90,169,255,.35)}
.player-source-status{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid rgba(245,158,11,.2);background:rgba(245,158,11,.06);border-radius:10px;color:#d4b878;font-size:11px;margin-bottom:10px}.player-source-status i{width:7px;height:7px;border-radius:50%;background:#f59e0b}.player-source-status.ok{border-color:rgba(34,197,94,.18);background:rgba(34,197,94,.05);color:#86d89e}.player-source-status.ok i{background:#22c55e}.manual-player-add{display:grid;grid-template-columns:1fr auto;gap:8px;margin:10px 0}.manual-player-add input{min-width:0;background:#080e15;border:1px solid rgba(117,149,185,.15);color:#dce8f5;border-radius:9px;padding:9px 10px}
.page-subtabs{display:inline-flex;margin-bottom:16px}.rex-editor-tab{display:none}.rex-editor-tab.active{display:block}.rex-minecraft-scene{min-height:520px;position:relative;overflow:hidden;border-radius:14px;background:radial-gradient(circle at 70% 25%,rgba(100,160,210,.25),transparent 35%),linear-gradient(180deg,#263647 0 48%,#172318 49% 62%,#111714 63%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}.rex-minecraft-scene:before{content:"";position:absolute;left:-10%;right:-10%;bottom:0;height:38%;background:linear-gradient(135deg,rgba(60,70,60,.4) 25%,transparent 25%) 0 0/32px 32px,linear-gradient(315deg,rgba(40,48,42,.5) 25%,transparent 25%) 0 0/32px 32px;opacity:.6}.rex-title-wrap{position:absolute;top:36%;left:50%;transform:translate(-50%,-50%);width:90%;text-align:center;text-shadow:2px 2px 0 #111;z-index:2}.rex-title{font-family:monospace;font-size:30px;font-weight:800}.rex-subtitle{font-family:monospace;font-size:14px;margin-top:8px}.rex-chat{position:absolute;left:16px;bottom:18px;width:88%;font-family:monospace;font-size:12px;text-shadow:1px 1px 0 #000;z-index:2}.rex-chat>div{line-height:1.45}
.live-console-panel{padding-bottom:18px}.console-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.live-status{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(117,149,185,.14);border-radius:999px;color:#8292a7;font-size:11px}.live-status i{width:7px;height:7px;border-radius:50%;background:#607086}.live-status.ok{color:#82d89a;border-color:rgba(34,197,94,.2)}.live-status.ok i{background:#22c55e;box-shadow:0 0 10px rgba(34,197,94,.6)}.live-status.warn{color:#e7bf6c;border-color:rgba(245,158,11,.22)}.live-status.warn i{background:#f59e0b}.live-status.bad{color:#f08e8e;border-color:rgba(239,68,68,.2)}.live-status.bad i{background:#ef4444}.console-stats{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.console-stats span{padding:7px 10px;border:1px solid rgba(117,149,185,.09);border-radius:8px;background:#080e15;color:#68788d;font-size:11px}.console-stats b{color:#c6d4e3;margin-left:5px}.console-stream{height:520px;overflow:auto;border:1px solid rgba(117,149,185,.13);border-radius:12px;background:#05090e;padding:12px;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;color:#a9b8c8;box-shadow:inset 0 0 40px rgba(0,0,0,.35)}.console-line{white-space:pre-wrap;word-break:break-word;padding:1px 0}.console-line.command{color:#79bfff}.console-line.system{color:#d7b96b}.console-placeholder{color:#526174;padding:12px}.compact-history{max-height:100px}
.plugin-description{border-left:2px solid rgba(90,169,255,.35);padding-left:12px}
@media(max-width:980px){.row-3,.row-4,.quick-stat-grid{grid-template-columns:1fr 1fr}.stat-line-builder{grid-template-columns:1fr 1fr}.stat-line-builder>div{grid-column:1/-1}}@media(max-width:640px){.row-3,.row-4,.quick-stat-grid,.stat-line-builder{grid-template-columns:1fr}.console-stream{height:420px}}

.tag-manager{margin-top:22px;padding-top:20px;border-top:1px solid rgba(117,149,185,.1)}.badge-table{display:grid;gap:8px;margin-top:14px}.badge-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(180px,1.4fr) auto auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid rgba(117,149,185,.1);border-radius:10px;background:rgba(5,10,16,.24)}.badge-row small{display:block;color:#66778b;margin-top:2px}.badge-row .sample{font-family:monospace;background:#070c12;border-radius:8px;padding:8px 10px}@media(max-width:700px){.badge-row{grid-template-columns:1fr 1fr}.badge-row .sample{grid-column:1/-1}}

.compact-section{padding:14px;margin-top:12px}.section-title-row h3{margin:0}
