/* Admin dashboard (admin.html). Builds on style.css. */
.admin { max-width: 1280px; margin: 0 auto; padding: 18px 28px 60px; display: flex; flex-direction: column; gap: 18px; }
.ad-pane { display: flex; flex-direction: column; gap: 18px; }
.ad-pane[hidden] { display: none; }
#denied { text-align: center; padding: 80px 20px; }

/* header tabs */
.ad-tabs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.ad-tabs button { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.ad-tabs button:hover { color: var(--text); }
.ad-tabs button.active { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.badge { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #2a0006; font-size: 11px; font-weight: 800; text-align: center; }
.badge.soft { background: var(--gold); color: #2a1a00; }

.ad-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ad-range { margin: 0; grid-template-columns: repeat(4, auto); }
.ad-check { flex-direction: row !important; align-items: center; gap: 8px !important; margin: 0 !important; font-size: 13px; color: var(--muted); cursor: pointer; }
#updated { margin-left: auto; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.kpi .v { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi.hero { background: linear-gradient(140deg, #2a2210, var(--card) 70%); border-color: #4a3c18; }
.kpi.hero .v { color: var(--gold); font-size: 28px; }
.pos { color: var(--green); }
.neg { color: var(--red); }

.ad-grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.ad-grid2 > .card { min-width: 0; }

/* tables */
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-table th, .ad-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ad-table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ad-table .r { text-align: right; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.ad-table th.r { font-family: inherit; }
.ad-table tr.total td { border-bottom: 0; font-weight: 800; }
.ad-table tr.total td:first-child { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.ad-table .note { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
td.actions { display: flex; gap: 6px; justify-content: flex-end; }
.share { width: 90px; }
.share i { display: block; height: 6px; border-radius: 3px; background: var(--gold); min-width: 2px; }
.share i.neg { background: var(--red); }

.approve { background: var(--green); color: #052; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.reject { background: var(--red); color: #300; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.tag { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tag.deposit { background: #12352a; color: var(--green); }
.tag.withdraw { background: #3a1820; color: var(--red); }
.row { display: flex; gap: 8px; align-items: center; }
.row input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-family: 'JetBrains Mono', monospace; }

/* clickable player */
.pl { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; cursor: pointer; padding: 0; text-align: left; }
.pl:hover span { text-decoration: underline; }
.pl img { width: 22px; height: 22px; image-rendering: pixelated; border-radius: 4px; flex: none; }
.pl em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

/* money flow */
.flow { display: flex; flex-direction: column; }
.flow div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flow div:last-child { border-bottom: 0; }
.flow .k { color: var(--muted); }
.flow .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; }
.flow .v small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.flow .sum { border-top: 1px solid #39425a; }
.flow .sum .k { color: var(--text); font-weight: 700; }

/* chart */
.chart { position: relative; height: 200px; display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; align-items: stretch; padding-top: 6px; }
.chart .col { position: relative; display: flex; flex-direction: column; cursor: default; }
.chart .up, .chart .down { flex: 1; display: flex; flex-direction: column; }
.chart .up { justify-content: flex-end; }
.chart .up i, .chart .down i { display: block; width: 100%; }
.chart .up i:last-child { border-radius: 3px 3px 0 0; }
.chart .down i:last-child { border-radius: 0 0 3px 3px; }
.chart .col:hover { background: rgba(255, 255, 255, .04); border-radius: 4px; }
.chart .axis { position: absolute; left: 0; right: 0; height: 1px; background: #39425a; pointer-events: none; }
.chart .day { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: #0e1119; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; min-width: 190px; box-shadow: 0 12px 30px -10px #000; }
.chart-tip b { display: block; margin-bottom: 6px; }
.chart-tip div { display: flex; justify-content: space-between; gap: 14px; }
.chart-tip span:last-child { font-family: 'JetBrains Mono', monospace; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 28px; font-size: 12px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i, .chart-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* books */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.books div { background: var(--bg2); border-radius: 10px; padding: 12px 14px; }
.books .k { font-size: 12px; color: var(--muted); }
.books .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; margin-top: 3px; }
.ok { color: var(--green); font-weight: 700; }
.bad { color: var(--red); font-weight: 700; }

/* rich lists */
.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lists .card { min-width: 0; padding: 16px; }
.lists h2 { font-size: 15px; }
.lists ol { list-style: none; margin: 0; padding: 0; }
.lists li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lists li:last-child { border-bottom: 0; }
.lists li .n { color: var(--muted); font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.lists li .amt { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; }
.lists li .amt small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.lists .pl { min-width: 0; }
.lists .pl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* flags */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-weight: 700; font-size: 12px; }
.chips button.active { color: var(--text); border-color: #4a5470; background: var(--card); }
.flags { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.flag { display: grid; grid-template-columns: 4px 1fr auto; gap: 14px; background: var(--bg2); border-radius: 12px; padding: 12px 14px 12px 0; overflow: hidden; }
.flag > i { border-radius: 0 3px 3px 0; }
.flag .kind { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.flag .title { font-weight: 700; margin: 2px 0 4px; }
.flag .detail { font-size: 13px; color: var(--muted); }
.flag .who { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; justify-content: center; }
.lv-high { --lv: var(--red); }
.lv-medium { --lv: #ff9d1c; }
.lv-low { --lv: #ffd36b; }
.lv-info { --lv: #6b8cff; }
.flag > i { background: var(--lv); }
.flag .kind { color: var(--lv); }
.chips .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--lv); }

/* player drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); z-index: 41; background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; padding: 22px 24px 40px; box-shadow: -20px 0 50px -20px #000; }
.drawer-x { position: absolute; top: 14px; right: 16px; font-size: 18px; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.drawer-x:hover { background: var(--bg2); color: var(--text); }
.dr-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.dr-head img { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 8px; }
.dr-head h2 { margin: 0; font-size: 24px; }
.dr-head .muted { font-size: 13px; }
.drawer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.dr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dr-kpis div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.dr-kpis .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dr-kpis .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer .ad-table { font-size: 13px; }
.drawer .ad-table td, .drawer .ad-table th { padding: 7px 6px; }
.ledger-wrap { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.ledger-wrap .ad-table th { position: sticky; top: 0; background: var(--bg2); }
.k-chip { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--bg2); color: var(--muted); }

@media (max-width: 1100px) {
  .kpis, .books { grid-template-columns: repeat(2, 1fr); }
  .ad-grid2, .lists { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dr-kpis { grid-template-columns: repeat(2, 1fr); }
  .admin { padding: 14px; }
}

/* case editor */
img.px { image-rendering: pixelated; }
.case-ic { width: 40px; height: 40px; display: block; }
.ce-top { display: grid; grid-template-columns: 72px 1fr; gap: 10px 14px; align-items: end; margin-bottom: 14px; }
.ce-top label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); margin: 0; }
.ce-top .ce-check { grid-column: 2; flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 13px; }
.ce-art { grid-row: span 3; align-self: start; width: 72px; height: 72px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ce-big { width: 56px; height: 56px; }
.drawer input:not([type=checkbox]), .drawer select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-size: 13px; min-width: 0; }
.drawer input.r { text-align: right; font-family: 'JetBrains Mono', monospace; }
.ce-items td { padding: 5px 4px; }
.ce-items input[data-f=name] { width: 100%; }
.ce-items input[data-f=value] { width: 96px; }
.ce-items input[data-f=odds] { width: 84px; }
/* site switches (maintenance, withdrawals) */
.switches { display: grid; gap: 10px; }
.switch-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--bg2); border: 2px solid var(--line); }
.switch-row.on { border-color: var(--red); background: rgba(255, 93, 108, .07); }
.switch-row b { font-size: 15px; }
.switch-row b::after { content: attr(data-since); font-weight: 500; color: var(--muted); font-size: 12px; }
.switch-row p { margin: 4px 0 8px; max-width: 70ch; }
.switch-row .sw-msg { width: 100%; max-width: 480px; padding: 8px 10px; }
.sw-btn { padding: 10px 16px; border-radius: 10px; font-weight: 800; border: 0; cursor: pointer; white-space: nowrap; }
.sw-btn.btn-off { background: #2a3142; color: var(--text); }
.sw-btn.btn-off:hover { background: #343c51; }
.sw-btn.btn-on { background: var(--red); color: #1a0508; }
@media (max-width: 640px) { .switch-row { grid-template-columns: 1fr; } }
/* site background picker */
.bg-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bg-pick { display: grid; gap: 4px; text-align: left; padding: 8px 8px 12px; border-radius: 12px; background: var(--bg2); border: 2px solid var(--line); color: inherit; cursor: pointer; }
.bg-pick:hover { border-color: #4a5470; }
.bg-pick.active { border-color: #4f8dff; box-shadow: 0 0 0 3px rgba(79, 141, 255, .2); cursor: default; }
.bg-pick b { padding: 4px 4px 0; font-size: 15px; }
.bg-pick small { padding: 0 4px; }
.bg-art { display: flex; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b0d12; }
.bg-art video { width: 100%; height: 100%; object-fit: cover; }
.bg-art img { width: 44px; height: 44px; filter: blur(.6px); opacity: .85; }
.bg-art.bg-blocks img:nth-child(2) { width: 64px; height: 64px; filter: blur(2px); }
.ce-search { position: relative; display: flex; gap: 6px; margin: 4px 0 10px; }
.ce-search input { flex: 1; padding: 11px 12px; font-size: 14px; }
.ce-hits { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 340px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; padding: 6px; background: var(--panel, #12162a); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.ce-hits p { grid-column: 1 / -1; margin: 6px; }
.ce-hit { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 6px 8px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: inherit; cursor: pointer; }
.ce-hit:hover, .ce-hit.first { background: var(--card); border-color: var(--line); }
.ce-hit img { grid-row: span 2; width: 32px; height: 32px; }
.ce-hit span { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-hit small { font-size: 11px; color: var(--muted, #8a93ad); }
.ce-pic { display: grid; place-items: center; width: 40px; height: 40px; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ce-pic:hover { border-color: #4f8dff; }
.ce-pic img { width: 32px; height: 32px; }
.ce-empty { padding: 18px 8px !important; text-align: center; }
.ip { display: flex; align-items: center; gap: 4px; }
.ip-prev { width: 32px; height: 32px; flex: none; background: var(--card); border-radius: 6px; }
.ip select { padding: 6px 4px !important; font-size: 12px !important; max-width: 92px; }
.ip input { width: 150px; }
.ip-prev[data-ipchoose] { cursor: pointer; }
.ip-mc { max-width: 150px; padding: 6px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip select option[value="mc"] { font-weight: 700; }

/* Minecraft item picker */
.mcp-bg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5, 7, 14, .72); padding: 20px; }
.mcp-bg[hidden] { display: none; }
.mcp { width: min(860px, 100%); max-height: min(720px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px #000; }
.mcp-top { display: flex; gap: 8px; align-items: center; }
.mcp-top input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: inherit; }
.mcp-kinds { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg); }
.mcp-kinds button { padding: 6px 10px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mcp-kinds button.active { background: var(--card); color: inherit; }
.mcp-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 2px; }
.mcp-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 9px; background: var(--bg); border: 1px solid transparent; }
.mcp-item:hover { border-color: #6b8cff; }
.mcp-item img { width: 36px; height: 36px; image-rendering: pixelated; }
.mcp-item span { font-size: 11px; line-height: 1.2; text-align: center; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mcp-count { margin: 0; text-align: right; }
.ce-bonus-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 201, 64, .15); color: #ffc940; font-size: 11px; font-weight: 800; }
.ce-bonus-tag img { width: 12px; height: 12px; }
.ce-tools { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
.ce-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ce-sum div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ce-sum span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ce-sum b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 18px; margin: 2px 0; }
.ce-sum b.price { color: var(--gold); }
.ce-sum small { font-size: 11px; color: var(--muted); }
.ce-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 16px; position: sticky; bottom: -40px; background: var(--bg); padding: 12px 0; }
.ce-foot .err { margin: 0 auto 0 0; }
.ce-foot .primary:disabled { opacity: .45; cursor: not-allowed; }
input.switch { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: #2a3042; position: relative; cursor: pointer; flex: none; margin: 0; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #c9cfdd; transition: transform .15s; }
input.switch:checked { background: var(--green); }
input.switch:checked::after { transform: translateX(16px); background: #fff; }
.drawer { width: min(860px, 100vw); }

/* ===== house bots (live) ===== */
#botsTabDot { width: 7px; height: 7px; margin: 0 3px 0 0; }
.hb-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 4px; animation: hbPulse 1.6s ease-in-out infinite; vertical-align: middle; }
@keyframes hbPulse { 50% { opacity: .3; } }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hb-acc { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.hb-acc.off { opacity: .75; }
.hb-acc img { width: 56px; height: 56px; border-radius: 10px; image-rendering: pixelated; grid-row: span 2; }
.hb-acc.off img { filter: grayscale(1); }
.hb-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; min-width: 0; }
.hb-state { font-size: 12px; font-weight: 700; color: var(--green); }
.hb-acc.off .hb-state { color: var(--red); }
.hb-sub { font-size: 12px; color: var(--muted); }
.hb-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.hb-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.hb-stats .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hb-stats .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-stats .v.gold { color: var(--gold); }
.hb-stats small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-empty { color: var(--muted); padding: 10px 2px; }
/* left sidebar with every house bot (all tabs) */
.hb-side { position: fixed; left: 24px; top: 84px; width: 270px; max-height: calc(100vh - 108px); overflow: auto; display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.hb-side[hidden] { display: none; }
.hb-side-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14px; padding: 0 2px; }
.hb-side-head small { color: var(--muted); font-weight: 600; font-size: 12px; }
#hbSideList { display: flex; flex-direction: column; gap: 10px; }
.hbs { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); display: flex; flex-direction: column; gap: 8px; }
.hbs.off { opacity: .75; }
.hbs-who { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: 8px; }
.hbs-who:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hbs-who img { width: 34px; height: 34px; border-radius: 8px; image-rendering: pixelated; flex: none; }
.hbs-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbs-who img, .hbs-name { filter: blur(6px); transition: filter .15s; user-select: none; }
.hbs-who.shown img, .hbs-who.shown .hbs-name { filter: none; user-select: text; }
.hbs.off .hbs-who.shown img { filter: grayscale(1); }
.hbs-state { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--green); }
.hbs.off .hbs-state { color: var(--red); }
.hbs-bal { display: flex; justify-content: space-between; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12px; }
.hbs-bal b { font-family: 'JetBrains Mono', monospace; font-size: 16px; }
.hbs-bal .gold { color: var(--gold); }
/* owner command box under the bots */
.hb-cmd { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); display: flex; flex-direction: column; gap: 8px; }
.hb-cmd[hidden] { display: none; }
.hb-cmd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hb-cmd-head select { max-width: 130px; font-size: 12px; padding: 3px 6px; text-transform: none; letter-spacing: 0; }
.hb-cmd-head select[hidden] { display: none; }
.hb-cmd-row { display: flex; gap: 6px; }
.hb-cmd-row input { flex: 1; min-width: 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.hb-cmd-row .btn { padding: 0 14px; }
.hb-cmd-log { list-style: none; margin: 0; padding: 6px 8px; max-height: 220px; overflow: auto; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; display: flex; flex-direction: column; gap: 4px; }
.hb-cmd-log li { display: grid; grid-template-columns: auto 1fr; gap: 8px; word-break: break-word; }
.hb-cmd-log time { color: var(--muted); }
.hb-cmd-log li.cmd span { color: var(--gold); font-weight: 700; }
.hb-cmd-log li.cmd span::before { content: '> '; }
.hb-cmd-log li.muted { display: block; font-family: inherit; }
/* make room for it: the panel moves right when the screen isn't wide enough to fit both */
body.has-hbside .admin { margin-left: max(318px, calc((100% - 1280px) / 2)); }
@media (max-width: 1000px) {
  .hb-side { display: none; }
  body.has-hbside .admin { margin-left: auto; }
}
.hb-feed { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow: auto; }
.hb-feed li { display: grid; grid-template-columns: 74px 22px 1fr; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hb-feed li.new { animation: hbNew 1.2s ease-out; }
@keyframes hbNew { from { background: color-mix(in srgb, var(--gold) 16%, transparent); } }
.hb-feed time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.hb-feed i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--card); border: 1px solid var(--line); }
.hb-feed .t-online i, .hb-feed .t-payout i { color: var(--green); }
.hb-feed .t-offline i, .hb-feed .t-kicked i, .hb-feed .t-payout-failed i { color: var(--red); }
.hb-feed .t-deposit i { color: var(--gold); }
.hb-feed b { font-weight: 800; }
