/* 酒馆 Rebuy 记录 · 网页版 —— 与小程序 app.wxss 同一套色值与字号 */
:root {
  --bg: #08120F;
  --bg-deep: #050D0A;
  --panel: #10241D;
  --panel-2: #0C1A15;
  --gold: #D9B25F;
  --gold-hi: #F1D493;
  --text: #EAF2EE;
  --muted: #8CA398;
  --dim: #5E756A;
  --green: #4CC38A;
  --red: #E4695B;
  --blue: #6FA8FF;
  --line: rgba(217, 178, 95, 0.18);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(31, 82, 64, 0.32), transparent 60%),
    radial-gradient(700px 460px at 100% 10%, rgba(217, 178, 95, 0.07), transparent 55%),
    #030907;
  color: var(--text);
  padding: 24px 20px;
  display: flex;
  justify-content: center;
}

.shell {
  width: 560px;
  max-width: 100%;
  min-height: calc(100vh - 48px);
  background: var(--bg);
  border: 1px solid rgba(217, 178, 95, 0.14);
  border-radius: 26px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------- 顶栏 ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(217, 178, 95, 0.1);
  background: linear-gradient(180deg, rgba(18, 40, 33, 0.9), rgba(8, 18, 15, 0.9));
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #20180A;
  background: linear-gradient(150deg, #F3DA9C, #C99B45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.top-mid { min-width: 0; flex: 1; }
.top-title { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.top-sub { margin-top: 3px; font-size: 11px; color: var(--muted); }
.top-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted);
  border: 1px solid rgba(217, 178, 95, 0.2);
  padding: 6px 10px; border-radius: 999px;
  white-space: nowrap;
}
.top-user b { color: var(--gold); font-weight: 600; }
.link-btn {
  border: none; background: none; color: var(--muted); font-size: 11px;
  cursor: pointer; padding: 4px 2px;
}
.link-btn:hover { color: var(--gold); }

.main { padding: 18px 20px 26px; flex: 1; }

/* ---------- 通用 ---------- */
.btn {
  height: 50px; border-radius: 13px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(180deg, #F0D79E, #C99B45);
  color: #241A08;
  transition: transform 0.08s ease, filter 0.15s ease;
  width: 100%;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.ghost {
  background: transparent; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 500;
}
.btn.danger {
  background: rgba(228, 105, 91, 0.08); color: var(--red);
  border: 1px solid rgba(228, 105, 91, 0.4); font-weight: 500;
}
.btn.small { height: 38px; font-size: 13px; width: auto; padding: 0 16px; border-radius: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold-hi); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.hint { font-size: 11px; color: var(--dim); line-height: 1.8; }
.err { color: var(--red); font-size: 12px; margin-top: 8px; }

.field { margin-top: 16px; }
.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.input, textarea.input {
  width: 100%; height: 48px; border-radius: 12px; padding: 0 14px;
  background: var(--panel-2); border: 1px solid rgba(217, 178, 95, 0.16);
  color: var(--text); font-size: 15px; font-family: inherit; outline: none;
}
.input:focus { border-color: rgba(217, 178, 95, 0.5); }
textarea.input { height: 84px; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.card + .card { margin-top: 14px; }
.card-title { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.divider { height: 1px; background: rgba(217, 178, 95, 0.1); margin: 14px 0; }

/* ---------- 登录 ---------- */
.login { padding: 26px 6px 10px; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 230px); }
.login-hero { text-align: center; }
.login-logo {
  width: 96px; height: 96px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #1D1507;
  background: radial-gradient(circle at 32% 28%, #F7E4B4, #C99B45 68%, #A97C2E);
  box-shadow: 0 18px 44px rgba(201, 155, 69, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.5);
}
.login-title { margin-top: 20px; font-size: 25px; font-weight: 700; letter-spacing: 1px; }
.login-sub { margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.roles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.roles-2 { grid-template-columns: 1fr 1fr; }
.role {
  height: 54px; border-radius: 12px; cursor: pointer;
  background: var(--panel-2); border: 1px solid rgba(217, 178, 95, 0.14);
  color: var(--muted); font-size: 13px; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.role small { font-size: 10px; color: var(--dim); }
.role.on {
  border-color: #EBCA85; background: rgba(217, 178, 95, 0.12); color: var(--gold-hi);
  box-shadow: 0 0 22px rgba(217, 178, 95, 0.12) inset;
}
.role.on small { color: var(--gold); }
.login-foot { margin-top: 18px; font-size: 10.5px; color: #4E6259; text-align: center; line-height: 1.9; }

/* ---------- 看板 ---------- */
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.board-title { font-size: 19px; font-weight: 700; color: var(--gold-hi); }
.board-title .sep { color: var(--dim); font-weight: 400; margin: 0 5px; }
.board-sub { margin-top: 5px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-btn {
  border: 1px solid rgba(217, 178, 95, 0.25); background: rgba(217, 178, 95, 0.06);
  color: var(--muted); font-size: 11px; padding: 7px 11px; border-radius: 9px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.chip-btn:hover { color: var(--gold); border-color: rgba(217, 178, 95, 0.5); }

.seat-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seat {
  height: 112px; border-radius: 15px; padding: 9px 10px;
  background: linear-gradient(170deg, #16352B, #0E211A);
  border: 1px solid rgba(217, 178, 95, 0.16);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; text-align: left; cursor: pointer; color: inherit;
  font-family: inherit; transition: border-color 0.15s ease, transform 0.1s ease;
}
.seat:hover { border-color: rgba(217, 178, 95, 0.4); }
.seat:active { transform: scale(0.99); }
.seat.empty {
  background: rgba(12, 26, 21, 0.55);
  border: 1px dashed rgba(140, 163, 152, 0.28);
  align-items: center; justify-content: center; gap: 6px;
}
.seat.empty:hover { border-color: rgba(217, 178, 95, 0.42); }
.sno { font-size: 10px; color: var(--dim); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.seat.empty .sno { position: absolute; top: 8px; left: 10px; }
.seat .detail {
  position: absolute; top: 7px; right: 9px; font-size: 10px; color: var(--dim);
  padding: 2px 6px; border: 1px solid rgba(140, 163, 152, 0.22); border-radius: 5px;
}
.seat .detail:hover { color: var(--gold); border-color: rgba(217, 178, 95, 0.4); }
.seat-mid { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #08120F;
}
.c0 { background: #7ED0B0; } .c1 { background: #E3B36A; } .c2 { background: #8FB3F0; }
.c3 { background: #D690C8; } .c4 { background: #E4A08A; } .c5 { background: #B7CE7E; }
.nick { font-size: 14px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no { font-size: 10px; color: var(--dim); margin-top: 2px; }
.seat-bot { display: flex; align-items: baseline; justify-content: space-between; font-variant-numeric: tabular-nums; }
.cnt { font-size: 11px; color: var(--muted); }
.chips { font-size: 17px; font-weight: 700; color: var(--gold-hi); }
.seat.hl {
  border-color: #F1D493;
  box-shadow: 0 0 0 1px rgba(241, 212, 147, 0.55), 0 0 26px rgba(217, 178, 95, 0.3);
}
.seat.hl .cnt { color: var(--gold-hi); font-weight: 600; }
.seat.hl .cnt::after { content: " " attr(data-flash); color: var(--green); font-weight: 700; }
.plus { font-size: 11px; color: #6B8377; }
.legend { margin-top: 16px; font-size: 10.5px; color: #6B8377; line-height: 2; text-align: center; }
.foot-note { margin-top: 14px; text-align: center; font-size: 10px; color: #4E6259; letter-spacing: 1px; }

/* ---------- 玩家详情 ---------- */
.p-head { display: flex; align-items: center; gap: 13px; }
.p-av { width: 50px; height: 50px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700; color: #08120F; }
.p-name { font-size: 19px; font-weight: 700; }
.p-meta { margin-top: 4px; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat {
  border-radius: 15px; padding: 15px 0; text-align: center;
  background: rgba(16, 36, 29, 0.9); border: 1px solid rgba(217, 178, 95, 0.16);
}
.stat .n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .n.gold { color: var(--gold-hi); }
.stat .l { margin-top: 4px; font-size: 10px; color: var(--muted); }
.rec { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(217, 178, 95, 0.09); }
.rec:last-child { border-bottom: none; }
.rec.rev { opacity: 0.55; }
.rec-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tag { font-size: 9.5px; padding: 2px 7px; border-radius: 5px; letter-spacing: 0.5px; }
.tag.initial { color: #8FB3F0; background: rgba(143, 179, 240, 0.12); border: 1px solid rgba(143, 179, 240, 0.3); }
.tag.rebuy { color: #4CC38A; background: rgba(76, 195, 138, 0.1); border: 1px solid rgba(76, 195, 138, 0.3); }
.tag.reversal { color: #E4695B; background: rgba(228, 105, 91, 0.1); border: 1px solid rgba(228, 105, 91, 0.32); }
.rec-lv { font-size: 11.5px; color: #C9D8D0; }
.rec-meta { margin-top: 3px; font-size: 10px; color: #7E958A; }
.rec-reason { margin-top: 2px; font-size: 10px; color: var(--red); }
.rec-right { text-align: right; flex: none; }
.amt { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amt.plus { color: var(--green); } .amt.minus { color: var(--red); }
.rev-btn {
  display: inline-block; margin-top: 5px; font-size: 10px; color: var(--gold); cursor: pointer;
  border: 1px solid rgba(217, 178, 95, 0.32); padding: 2px 8px; border-radius: 5px;
  background: transparent; font-family: inherit;
}
.rev-btn:hover { background: rgba(217, 178, 95, 0.1); }
.badge-rev { display: block; margin-top: 4px; font-size: 9px; color: var(--red); }

/* ---------- 店长 ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 13px; background: rgba(12, 26, 21, 0.85); border: 1px solid rgba(217, 178, 95, 0.14); }
.tab {
  flex: 1; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); border-radius: 9px; cursor: pointer;
  border: none; background: none; font-family: inherit;
}
.tab.on { background: rgba(217, 178, 95, 0.16); color: var(--gold-hi); font-weight: 600; }
.datebar { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.arrow {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--gold); background: rgba(217, 178, 95, 0.08); font-size: 18px;
  border: none; cursor: pointer; font-family: inherit;
}
.date-text { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="date"].date-input {
  background: var(--panel-2); border: 1px solid rgba(217, 178, 95, 0.18);
  color: var(--text); border-radius: 9px; padding: 7px 10px; font-size: 12px;
  font-family: inherit; color-scheme: dark;
}
.tbl {
  margin-top: 12px; padding: 15px; border-radius: 17px;
  background: linear-gradient(180deg, rgba(21, 48, 41, 0.95), rgba(14, 32, 26, 0.95));
  border: 1px solid rgba(217, 178, 95, 0.18);
}
.tbl-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tbl-name { font-size: 17px; font-weight: 700; color: var(--gold-hi); }
.tbl-sub { font-size: 10px; color: var(--muted); }
.kv { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.kv-i { padding: 8px 9px; border-radius: 9px; background: rgba(8, 18, 15, 0.5); }
.kv-i .k { display: block; font-size: 9.5px; color: #7E958A; }
.kv-i .v { display: block; margin-top: 3px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lv-line { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid rgba(217, 178, 95, 0.08); font-size: 11px; }
.lv-line:last-of-type { border-bottom: none; }
.lv-line .code { color: var(--gold); width: 14px; }
.lv-line .nm { flex: 1; color: #C9D8D0; }
.lv-line .ct { color: var(--muted); }
.lv-line .ch { width: 66px; text-align: right; color: var(--gold-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-cap { margin-top: 12px; font-size: 9.5px; color: #6B8377; letter-spacing: 0.5px; }
.pl-list { margin-top: 4px; }
.pl { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-bottom: 1px solid rgba(217, 178, 95, 0.07); }
.pl:last-child { border-bottom: none; }
.pl-seat { width: 20px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-top { display: flex; align-items: baseline; gap: 6px; }
.pl-name { font-size: 12px; color: var(--text); font-weight: 600; }
.pl-no { font-size: 9.5px; color: var(--muted); }
.pl-off { font-size: 9px; color: #7E938A; border: 1px solid rgba(126, 147, 138, 0.35); border-radius: 4px; padding: 0 3px; }
.pl-sum { font-size: 11.5px; color: var(--gold-hi); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-meta { margin-top: 2px; font-size: 10px; color: #8CA398; }
.pl-left { opacity: 0.62; }
.tbl-ft { margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(217, 178, 95, 0.18); display: flex; justify-content: space-between; font-size: 11px; }

.filters .frow { display: flex; gap: 8px; align-items: center; }
.filters .frow + .frow { margin-top: 9px; }
.filters .input, .filters select {
  height: 40px; font-size: 12.5px; border-radius: 10px;
}
select.input {
  background: var(--panel-2); border: 1px solid rgba(217, 178, 95, 0.16);
  color: var(--text); padding: 0 10px; font-family: inherit; outline: none;
}
.rows { margin-top: 12px; }
.q-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid rgba(217, 178, 95, 0.09); cursor: pointer; }
.q-row:hover { background: rgba(217, 178, 95, 0.04); }
.q-row:last-child { border-bottom: none; }
.pager { display: flex; gap: 10px; margin-top: 12px; }
.pager .btn.small { flex: 1; width: auto; }

.setting-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(217, 178, 95, 0.08); }
.setting-row:last-child { border-bottom: none; }
.lv-badge {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: rgba(217, 178, 95, 0.16); color: #F1D493; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.mini-input {
  height: 38px; border-radius: 9px; background: var(--panel-2);
  border: 1px solid rgba(217, 178, 95, 0.16); color: var(--text);
  padding: 0 10px; font-size: 13px; font-family: inherit; outline: none; width: 100%;
}
.mini-input.num { text-align: right; font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: rgba(140, 163, 152, 0.25);
  transition: background 0.15s ease; pointer-events: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #D7E3DC; transition: transform 0.15s ease;
}
.switch input:checked + .track { background: rgba(217, 178, 95, 0.65); }
.switch input:checked + .track::after { transform: translateX(18px); background: #FFF3D6; }
.audit { font-size: 10.5px; color: var(--muted); line-height: 1.9; }
.audit b { color: #C9D8D0; font-weight: 500; }

/* ---------- 弹层 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 7, 5, 0.72);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.overlay.center { align-items: center; padding: 20px; }
.sheet, .dialog {
  width: 560px; max-width: 100%;
  background: linear-gradient(180deg, #16352B, #0D2019);
  border-top: 1px solid rgba(217, 178, 95, 0.3);
  border-radius: 22px 22px 0 0;
  padding: 20px 20px 24px;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.5);
  animation: up 0.18s ease-out;
  max-height: 92vh;
  overflow-y: auto;
}
.dialog {
  border-radius: 20px; border: 1px solid rgba(217, 178, 95, 0.24);
  padding: 20px;
  animation: pop 0.16s ease-out;
}
@keyframes up { from { transform: translateY(18px); opacity: 0.6; } }
@keyframes pop { from { transform: scale(0.97); opacity: 0.6; } }
.sheet-head { display: flex; align-items: center; gap: 11px; }
.sheet-name { font-size: 17px; font-weight: 600; }
.sheet-name .muted { font-size: 12px; font-weight: 400; }
.sheet-sub { margin-top: 4px; font-size: 11px; color: var(--muted); }
.sheet-close {
  margin-left: auto; font-size: 12px; color: var(--gold); background: transparent;
  border: 1px solid rgba(217, 178, 95, 0.3); padding: 6px 11px; border-radius: 8px;
  cursor: pointer; font-family: inherit;
}
.dialog-title { font-size: 16px; font-weight: 600; }
.lv-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.lv {
  height: 92px; border-radius: 14px; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(165deg, rgba(35, 72, 59, 0.95), rgba(15, 35, 28, 0.95));
  border: 1px solid rgba(217, 178, 95, 0.32); color: var(--text);
}
.lv:hover { border-color: #EBCA85; background: rgba(217, 178, 95, 0.12); }
.lv:active { transform: scale(0.98); }
.lv .code { font-size: 10px; color: var(--muted); letter-spacing: 2px; }
.lv .num { font-size: 24px; font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.lv .name { font-size: 10px; color: #7E958A; }
.lv.mini { height: 60px; }
.lv.mini .num { font-size: 16px; }
.lv.mini.on { border-color: #EBCA85; background: rgba(217, 178, 95, 0.14); }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; height: 46px; font-size: 14px; }
.rev-target {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(8, 18, 15, 0.6); border: 1px solid rgba(217, 178, 95, 0.14);
  font-size: 12px; color: #C9D8D0; line-height: 1.6;
}
.warn-tip { margin-top: 10px; font-size: 10.5px; color: var(--dim); line-height: 1.8; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  z-index: 100; padding: 11px 18px; border-radius: 12px;
  background: rgba(20, 44, 36, 0.96); border: 1px solid rgba(217, 178, 95, 0.32);
  color: #EAF2EE; font-size: 12.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.18s ease-out; white-space: nowrap; max-width: 90vw;
}
.toast.gold { border-color: rgba(241, 212, 147, 0.6); }
@keyframes toast-in { from { transform: translate(-50%, 8px); opacity: 0.5; } }

/* ---------- 响应式 ---------- */
@media (max-width: 620px) {
  body { padding: 0; display: block; overflow-x: hidden; }
  .shell { width: 100%; max-width: none; min-width: 0; min-height: 100vh; border-radius: 0; border: none; box-shadow: none; }
  .main { padding: 16px 16px 112px; }
  .top { padding: 14px 16px; }
  .top-user { display: none; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role { padding: 0 3px; }
  .sheet, .dialog { width: 100%; }
}

/* ---------- 扫码入座 / 备注 / 名次 ---------- */
.seat.pending {
  height: 124px; border-color: rgba(217, 178, 95, 0.5);
  background: linear-gradient(170deg, #2A2A16, #131C15);
  box-shadow: 0 0 0 1px rgba(217, 178, 95, 0.12) inset;
}
.pend-badge {
  position: absolute; top: 7px; right: 8px; font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; color: var(--gold);
  background: rgba(217, 178, 95, 0.14); border: 1px solid rgba(217, 178, 95, 0.42);
}
.pend-tip { font-size: 10px; color: var(--gold); font-weight: 600; }
.no.remark { color: #C9B98F; font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.nick .rank { margin-left: 4px; vertical-align: 1px; }
.rank {
  display: inline-flex; align-items: center; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 999px; line-height: 1.4;
}
.rank.sm { font-size: 8.5px; padding: 0 4px; }
.rank.champion { color: #2A1F08; background: linear-gradient(160deg, #F6DC9B, #D9B25F); }
.rank.runnerUp { color: #1A2621; background: linear-gradient(160deg, #EDF2F0, #C9D2CE); }
.rank.third { color: #2A1708; background: linear-gradient(160deg, #E7B78E, #C98A5B); }
.pill-wait {
  display: inline-flex; align-items: center; font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; color: var(--gold);
  background: rgba(217, 178, 95, 0.14); border: 1px solid rgba(217, 178, 95, 0.42);
}
.pend-info {
  margin-top: 12px; padding: 11px 12px; border-radius: 12px;
  background: rgba(217, 178, 95, 0.06); border: 1px solid rgba(217, 178, 95, 0.22);
  font-size: 12px; color: #D8E4DD; line-height: 1.8;
}
.p-remark { margin-top: 4px; font-size: 10.5px; color: #C9B98F; }
.rankbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rankopt {
  border: 1px solid #2E5A47; background: transparent; color: var(--muted);
  border-radius: 9px; padding: 7px 12px; font: inherit; font-size: 11px; cursor: pointer;
}
.rankopt.on.champion { background: rgba(217, 178, 95, 0.16); border-color: rgba(217, 178, 95, 0.6); color: #F1D794; font-weight: 700; }
.rankopt.on.runnerUp { background: rgba(201, 210, 206, 0.14); border-color: rgba(201, 210, 206, 0.5); color: #E6EDEA; font-weight: 700; }
.rankopt.on.third { background: rgba(201, 138, 91, 0.16); border-color: rgba(201, 138, 91, 0.55); color: #E7B78E; font-weight: 700; }
.rankopt.on.none { border-color: #4A7A63; color: var(--text); }
.join-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(46, 90, 71, 0.5); }
.join-row:last-of-type { border-bottom: 0; }
.qrbox {
  width: 92px; height: 92px; flex: none; background: #fff; border-radius: 10px;
  padding: 4px; display: grid; place-items: center; overflow: hidden;
}
.qrbox svg { width: 100%; height: 100%; display: block; }
.join-t { font-size: 13px; font-weight: 700; }
.join-url { font-size: 9.5px; color: var(--muted); word-break: break-all; line-height: 1.5; margin-top: 3px; max-height: 30px; overflow: hidden; }
@media (max-width: 420px) {
  .qrbox { width: 78px; height: 78px; }
  .pend-badge { font-size: 8px; }
}

