:root {
  --bg-a: #1b0936;
  --bg-b: #2a0d4f;
  --bg-c: #3b1368;

  --glass: rgba(255, 255, 255, 0.1);
  --glass-2: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.2);
  --shadow-xl: 0 24px 60px rgba(9, 12, 35, 0.42);
  --shadow-md: 0 10px 24px rgba(9, 12, 35, 0.3);

  --surface: rgba(250, 252, 255, 0.96);
  --surface-2: rgba(242, 246, 255, 0.96);
  --text-main: #1b1e3a;
  --text-muted: #5c6488;

  --primary-a: #7c3aed;
  --primary-b: #a855f7;
  --danger-a: #ef4444;
  --danger-b: #dc2626;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100dvh;
  overflow-x: hidden;
}

html {
  background:
    radial-gradient(1200px 680px at 10% 0%, rgba(168, 85, 247, 0.22), transparent 58%),
    radial-gradient(920px 620px at 100% 20%, rgba(124, 58, 237, 0.3), transparent 58%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b) 52%, var(--bg-c));
  background-color: var(--bg-a);
}

body {
  margin: 0;
  color: #fff;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 680px at 10% 0%, rgba(168, 85, 247, 0.22), transparent 58%),
    radial-gradient(920px 620px at 100% 20%, rgba(124, 58, 237, 0.3), transparent 58%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b) 52%, var(--bg-c));
  padding-top: 92px;
  background-color: var(--bg-a);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: none;
}

.header,
header.header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(130deg, rgba(38, 10, 76, 0.78), rgba(61, 17, 118, 0.64));
  box-shadow: var(--shadow-md);
}

.h-left,
.h-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.liveClock {
  min-width: 104px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
}

.headerLogo2025 {
  width: min(208px, 42vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(3, 6, 20, 0.42));
}

.headerLogoGuest {
  display: none;
  width: min(208px, 42vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(3, 6, 20, 0.42));
}

body.user-guest:not(.adminBody) .headerLogo2025 {
  display: none;
}

body.user-guest:not(.adminBody) .headerLogoGuest {
  display: block;
}

.btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-a), var(--danger-b));
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.container {
  width: min(1060px, 100%);
  margin: 0 auto;
}

.pageTitle {
  margin: 14px 0 18px;
  text-align: center;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.02em;
}

.card,
.queuePanel,
#authBox,
.dailyCard,
.authModal,
.guestHeroCard,
.statChip {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  color: var(--text-main);
}

.input {
  border-radius: 14px;
  border: 1px solid rgba(96, 115, 173, 0.28);
  background: #fbf8ff;
  color: var(--text-main);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 600;
}

.input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16);
}

.inlineErr,
.authErr {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* Guest */
body:not(.adminBody) .homeShell {
  min-height: calc(100vh - 126px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

body:not(.adminBody) .guestGate {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guestHeroCard {
  width: min(560px, 94vw);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}

.guestHeroGlow {
  display: none;
}

.guestHeroTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.guestEyebrow,
.guestMiniChip,
.authMiniBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(238, 225, 255, 0.8);
  color: #5b21b6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guestHeroLogoWrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 16px;
}

.guestHeroLogo {
  width: min(260px, 62vw);
  filter: drop-shadow(0 10px 24px rgba(10, 18, 42, 0.25));
}

.guestLoginBtn {
  width: min(320px, 82vw);
  min-height: 58px;
  border-radius: 18px;
  font-size: 21px;
  display: block;
  margin: 0 auto;
}

.guestLoginBtn.morphLoginBtn {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.morphLoginBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  transition: width 0.3s ease, border-radius 0.3s ease;
}

.morphLoginSpinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border: 0 solid rgba(255, 255, 255, 0.9);
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
}

.morphLoginBtn.is-morphing {
  width: 72px;
  min-width: 72px;
  border-radius: 999px;
}

.morphLoginBtn.is-morphing .morphLoginLabel {
  opacity: 0;
}

.morphLoginBtn.is-morphing .morphLoginSpinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
  opacity: 1;
  animation: spin 0.7s linear infinite;
}

/* User area */
body:not(.adminBody) .userArea {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Keep join controls pinned to the bottom for logged-in user view */
body.user-authed:not(.adminBody) .userArea {
  padding-bottom: 196px;
}

body:not(.adminBody) .homeQueue.userNarrow {
  width: min(560px, 94vw);
  margin-top: 8px;
  padding: 18px;
}

.queuePanelHead {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.queuePanelMeta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.queueCardClock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  width: fit-content;
  width: 112px;
  min-width: 112px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(238, 225, 255, 0.84);
  color: #5b21b6;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.queueCardTitle {
  color: var(--text-main);
  font-size: clamp(17px, 1.95vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.1;
  text-align: center;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 6px;
}

.queueTitleEmoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.92em;
}

.queueTitleText {
  display: inline-block;
}

.queueCount {
  justify-self: end;
  align-self: start;
  width: 96px;
  min-width: 96px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(238, 225, 255, 0.84);
  color: #5b21b6;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.myStatusCard {
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(135deg, rgba(237, 224, 255, 0.82), rgba(243, 232, 255, 0.82));
  text-align: center;
}

.myStatusLabel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6d28d9;
  font-weight: 800;
}

.myStatusValue {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  color: #4c1d95;
  margin-top: 4px;
}

.myStatusSub {
  font-size: 14px;
  color: #6b21a8;
  margin-top: 6px;
  font-weight: 700;
}

.queueGridHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 0 14px 8px 14px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.queueGridHead span:first-child {
  justify-self: start;
}

.queueGridHead span:last-child {
  justify-self: end;
  text-align: right;
}

.queueList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 38vh;
  overflow: auto;
  padding-right: 0;
}

.queueRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(160, 175, 220, 0.3);
  background: #fbf8ff;
  box-shadow: 0 8px 16px rgba(16, 25, 56, 0.12);
}

.queueRow:hover {
  transform: translateY(-1px);
}

.queuePersonWrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.queueAvatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #5b21b6;
  background: linear-gradient(135deg, rgba(216, 180, 254, 0.95), rgba(192, 132, 252, 0.92));
}

.queuePerson {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queueTimePill {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(192, 132, 252, 0.46);
  background: linear-gradient(135deg, #3b0764, #5b21b6);
  box-shadow: 0 10px 20px rgba(59, 7, 100, 0.35);
}

.queueRow--me {
  border-color: rgba(168, 85, 247, 0.65);
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  box-shadow: 0 14px 28px rgba(76, 29, 149, 0.38);
}

.queueRow--me .queuePerson,
.queueRow--me .queueAvatar {
  color: #ffffff;
}

.queueRow--me .queueAvatar {
  background: rgba(255, 255, 255, 0.18);
}

.queueTimePill--me {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}

.queueEmptyState,
.queueEmptyCell {
  text-align: center;
  color: #5f6992;
  font-weight: 700;
  padding: 14px;
}

.bottomDock {
  width: min(560px, 94vw);
  margin: 16px auto 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

body.user-authed:not(.adminBody) .bottomDock {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 120;
}

.modernJoinForm,
.homeForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nameFieldShell {
  width: min(286px, 72vw);
}

#nameInput,
.modernNameInput,
.nameInputSmall {
  width: 100%;
  height: 50px;
  text-align: center;
  border-radius: 14px;
  font-size: 17px;
}

#btnJoin,
.joinBtnBig,
.animatedJoinBtn {
  width: min(560px, 94vw);
  min-height: 52px;
  border-radius: 16px;
  font-size: 19px;
}

.animatedJoinBtn {
  position: relative;
  overflow: hidden;
}

.morphJoinBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: width 0.3s ease, border-radius 0.3s ease;
}

.morphJoinSpinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border: 0 solid rgba(255, 255, 255, 0.9);
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
}

.morphJoinBtn.is-morphing {
  width: 72px;
  min-width: 72px;
  border-radius: 999px;
}

.morphJoinBtn.is-morphing .morphJoinLabel {
  opacity: 0;
}

.morphJoinBtn.is-morphing .morphJoinSpinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
  opacity: 1;
  animation: spin 0.7s linear infinite;
}

.animatedJoinBtn.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.homeLogo img {
  width: min(122px, 36vw);
  height: auto;
  opacity: 0.92;
}

/* Auth modal */
.authOverlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 10, 24, 0.58);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.authOverlay.is-open {
  opacity: 1;
}

.authModal,
.authModalPremium {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(500px, 94vw);
  padding: 24px 22px 20px;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.authModal.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.authModalAura {
  position: absolute;
  right: -90px;
  top: -100px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.24), transparent 72%);
  pointer-events: none;
}

.authModalTopBar,
.authBottomRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.authPopoverTitle {
  font-size: clamp(20px, 4.2vw, 40px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-align: center;
  text-wrap: nowrap;
}

.authLabel {
  display: block;
  margin: 10px 0 6px;
  color: #5b21b6;
  font-weight: 800;
}

.authInputPremium {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  text-align: left;
  padding-inline: 14px;
}

.authRow,
.authRowPremium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5e93;
  font-weight: 700;
}

.authCloseBtn {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
}

.authSubmitBtn,
.authSubmitBtnPremium {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  margin-top: 8px;
  font-size: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.authSubmitBtnPremium.is-busy {
  opacity: 0.85;
  cursor: wait;
}

/* Admin */
body.adminBody {
  padding-top: 100px;
}

body.adminBody .card,
body.adminBody .dailyCard {
  padding: 14px;
}

.sectionTitle,
.adminActionsTitle {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.adminStatsBar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.statChip {
  min-width: 154px;
  padding: 10px 12px;
  text-align: center;
}

.statChipLabel {
  display: block;
  color: #51619a;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.statChipValue {
  display: block;
  margin-top: 4px;
  color: #5b21b6;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}

.adminActionsRow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.adminActionButtons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.adminTopBtn {
  min-height: 40px;
}

.adminUndoBtn {
  justify-self: end;
}

.adminActionsTitle {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  width: max-content;
}

.tableWrap {
  border-radius: 16px;
  border: 1px solid rgba(159, 175, 217, 0.35);
  background: #fff;
}

.userTable,
.compact,
table {
  border-radius: 0;
  background: transparent;
}

.userTable th,
.compact th,
table th {
  background: #f3e8ff;
  color: #5b21b6;
  font-weight: 800;
}

.userTable td,
.compact td,
table td {
  color: var(--text-main);
}

.warnBadge,
.warnIcon {
  margin-left: 6px;
}

.miniConfirm {
  position: absolute;
  z-index: 30000;
  width: min(230px, calc(100vw - 20px));
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(170, 182, 218, 0.65);
  box-shadow: 0 14px 28px rgba(13, 20, 49, 0.24);
}

.miniConfirmTitle {
  color: #263467;
  text-align: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.miniConfirmBtns {
  display: flex;
  gap: 8px;
}

.miniConfirmBtns .btn {
  flex: 1;
}

/* Toast */
.toastHost {
  position: fixed;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toastItem {
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(168, 85, 247, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(9, 12, 35, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toastItem.is-show {
  opacity: 1;
  transform: translateY(0);
}

body:not(.adminBody) .liveClock {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scrollbars */
.queueList::-webkit-scrollbar,
.tableWrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.queueList::-webkit-scrollbar-thumb,
.tableWrap::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.48);
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 900px) {
  .adminActionsRow {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "left right";
  }

  .adminActionsTitle {
    grid-area: title;
    text-align: center;
  }

  .adminActionButtons {
    grid-area: left;
  }

  .adminUndoBtn {
    grid-area: right;
  }
}

@media (max-width: 640px) {
  body.user-authed:not(.adminBody) .userArea {
    padding-bottom: 178px;
  }

  body.user-authed:not(.adminBody) .bottomDock {
    width: min(95vw, 470px);
    bottom: 8px;
  }

  body {
    padding-top: 88px;
  }

  body.adminBody {
    padding-top: 94px;
  }

  .header,
  header.header {
    top: 8px;
    left: 8px;
    right: 8px;
    border-radius: 16px;
    padding: 8px 8px;
  }

  .headerLogo2025 {
    width: min(164px, 46vw);
  }

  .liveClock {
    min-width: 80px;
    font-size: 13px;
    padding: 7px 9px;
  }

  .h-right {
    gap: 6px;
  }

  .h-right .btn {
    padding: 7px 8px;
    font-size: 11px;
  }

  .page {
    padding: 10px 8px 16px;
  }

  .guestHeroCard {
    padding: 20px 14px;
    border-radius: 22px;
  }

  .guestHeroTop {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .guestEyebrow,
  .guestMiniChip {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .guestLoginBtn {
    min-height: 54px;
    font-size: 19px;
  }

  body:not(.adminBody) .homeQueue.userNarrow {
    width: min(95vw, 470px);
    padding: 14px 10px;
  }

  .queueCardTitle {
    font-size: 18px;
  }

  .queuePanelHead {
    grid-template-columns: 102px minmax(0, 1fr) 84px;
    gap: 8px;
  }

  .queueCardClock {
    width: 102px;
    min-width: 102px;
    font-size: 14px;
    padding: 7px 9px;
  }

  .queueCount {
    width: 84px;
    min-width: 84px;
    padding: 8px 8px;
    font-size: 14px;
  }

  .queueGridHead {
    display: none;
  }

  .queueList {
    max-height: 34vh;
    padding-right: 2px;
  }

  .queueRow {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .queueTimePill {
    justify-self: end;
  }

  #nameInput,
  .modernNameInput {
    height: 46px;
    font-size: 15px;
  }

  #btnJoin,
  .joinBtnBig,
  .animatedJoinBtn {
    width: min(95vw, 470px);
    min-height: 48px;
    font-size: 18px;
  }

  .authModal,
  .authModalPremium {
    width: min(95vw, 420px);
    padding: 18px 14px 14px;
    border-radius: 22px;
  }

  .authPopoverTitle { font-size: clamp(20px, 6vw, 28px); }

  body.adminBody .tableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.adminBody table.compact {
    min-width: 720px;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
  }

  body.adminBody table.compact thead {
    display: table-header-group;
  }

  body.adminBody table.compact tr {
    display: table-row;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  body.adminBody table.compact td,
  body.adminBody table.compact th {
    display: table-cell;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(22, 33, 68, 0.08);
    text-align: left;
    white-space: nowrap;
  }

  body.adminBody table.compact td::before {
    content: none;
  }

  body.adminBody .tdActions {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
