:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #778197;
  --line: #e7eaf0;
  --surface: #ffffff;
  --page: #f4f6fa;
  --navy: #111b2e;
  --blue: #4668e8;
  --blue-dark: #3453cf;
  --green: #15966a;
  --red: #d94b5b;
  --shadow: 0 16px 42px rgba(27, 39, 67, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 15px; line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 36px; }
.topbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 13px; letter-spacing: .09em; font-weight: 700; }
.brand strong { color: var(--blue); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; letter-spacing: -.04em; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 4vw, 38px); line-height: 1.15; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.25; }
.muted { color: var(--muted); margin-bottom: 0; }
.live-pill, .admin-label { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.live-pill { color: #0e8058; background: #e5f7ef; }
.live-dot, .admin-dot { width: 7px; height: 7px; border-radius: 50%; background: #17ad75; box-shadow: 0 0 0 3px rgba(23, 173, 117, .13); }
.content-card, .stat-card, .admin-panel, .admin-stat-card { background: var(--surface); border: 1px solid rgba(226, 231, 240, .8); border-radius: 18px; box-shadow: var(--shadow); }
.content-card { padding: 24px; }
.section-heading, .panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sort-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.sort-note span { color: var(--green); font-size: 16px; font-weight: 900; }
.table-wrap { width: 100%; overflow-x: auto; }
.queue-table { width: 100%; border-collapse: collapse; text-align: left; }
.queue-table th { padding: 12px 14px; color: #8992a4; background: #f8f9fc; font-size: 11px; font-weight: 700; white-space: nowrap; }
.queue-table th:first-child { border-radius: 9px 0 0 9px; }
.queue-table th:last-child { border-radius: 0 9px 9px 0; }
.queue-table td { padding: 15px 14px; border-bottom: 1px solid #edf0f5; font-size: 13px; }
.queue-table tbody tr:last-child td { border-bottom: 0; }
.rank-column { width: 82px; }
.amount-column { text-align: right !important; white-space: nowrap; }
.empty-state { padding: 34px 14px !important; color: #98a1b2; text-align: center; }
.table-footnote { margin: 14px 0 0; color: #98a1b2; font-size: 11px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 4px 0; color: #98a1b2; font-size: 11px; }
.page-footer a { color: var(--blue); font-weight: 650; }
.primary-button, .secondary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 17px; border: 0; border-radius: 11px; font-weight: 750; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.primary-button { background: var(--blue); color: white; box-shadow: 0 7px 16px rgba(70, 104, 232, .2); }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.secondary-button { color: #566176; background: #eef1f6; }
.secondary-button:hover { background: #e4e8f0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(70, 104, 232, .26); outline-offset: 2px; }
@media (max-width: 640px) {
  .page-shell { width: min(100% - 28px, 560px); padding-top: 15px; }
  .topbar { margin-bottom: 20px; }
  .brand { font-size: 11px; }
  .brand-mark { width: 32px; height: 32px; }
  .content-card { padding: 17px 13px; border-radius: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 15px; }
  .queue-table th { padding: 11px 9px; font-size: 10px; }
  .queue-table td { padding: 13px 9px; font-size: 12px; }
  .rank-column { width: 54px; }
  .page-footer { flex-direction: column; gap: 5px; }
}
