/* STAR Poker — admin panel */
body { background: var(--bg); }
.star-img { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-box { width: min(380px, 100%); display: grid; gap: 16px; padding: 28px; }
.login-box h1 { font-family: var(--display); letter-spacing: .14em; font-size: 20px; text-align: center; color: var(--gold-hi); text-transform: uppercase; }
.login-box img { width: 64px; height: 64px; justify-self: center; }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; }
.nav { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); background: #0a0d13; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-family: var(--display); letter-spacing: .14em; font-weight: 700; color: var(--gold-hi); font-size: 14px; }
.brand img { width: 28px; height: 28px; }
.brand small { display: block; font: 600 10px/1.2 var(--sans); letter-spacing: .16em; color: var(--muted); }
.nav button { text-align: left; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; }
.nav button:hover { color: var(--ivory); background: rgba(255, 255, 255, .04); }
.nav button.on { background: rgba(216, 181, 106, .14); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nav .grow { flex: 1; }
.main { padding: 22px 26px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: var(--display); font-size: 22px; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .input { width: 260px; min-height: 40px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 16px; }
.stat small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font: 700 28px/1.2 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; margin-top: 4px; }
.box { padding: 18px; margin-bottom: 18px; }
.box h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, .02); }
td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: rgba(216, 181, 106, .06); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; overflow-wrap: anywhere; max-width: 520px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img, .who .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: #1c2536; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--gold); border: 1px solid var(--line-strong); }
.who b { display: block; color: var(--ivory); } .who small { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #3b4352; margin-right: 6px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(69, 192, 140, .2); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; color: var(--muted); font-size: 13px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.up { color: #8be0bb; } .down { color: #ffb3ad; }
.seats { display: flex; flex-wrap: wrap; gap: 6px; }
.seat-pill { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.seat-pill.bot { color: var(--muted); } .seat-pill.human { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line-strong); }
.deleted { opacity: .45; text-decoration: line-through; }

.drawer-back { position: fixed; inset: 0; z-index: 60; background: rgba(3, 5, 8, .6); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: fade .15s; }
.drawer { width: min(560px, 100%); height: 100%; overflow-y: auto; background: linear-gradient(180deg, #151b26, #0d1118); border-left: 1px solid var(--line-strong); padding: 22px; display: grid; gap: 18px; align-content: start; animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer h2 { font-family: var(--serif); font-size: 24px; color: var(--ivory); overflow-wrap: anywhere; }
.drawer h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.drawer section { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); display: grid; gap: 10px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline .input { flex: 1 1 140px; min-height: 40px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.big-bal { font: 700 30px/1.2 var(--serif); color: var(--gold-hi); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .nav { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav .brand, .nav .grow { display: none; }
  .nav button { white-space: nowrap; }
  .main { padding: 16px 12px 60px; }
  .toolbar .input { width: 100%; }
}
